llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmp17be038y.c'
source_filename = "/tmp/tmp17be038y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"x = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"x_ptr = %p\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store i32 42, ptr %2, align 4
store ptr %2, ptr %3, align 8
%4 = load i32, ptr %2, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %4)
%6 = load ptr, ptr %3, align 8
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %6)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp17be038y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"x = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"x_ptr = %p\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store i32 42, ptr %2, align 4
store ptr %2, ptr %3, align 8
%4 = load i32, ptr %2, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %4)
%6 = load ptr, ptr %3, align 8
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %6)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkz0btis0.c'
source_filename = "/tmp/tmpkz0btis0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [43 x i8] c"Using Bisection Method the root is: %lf \0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [48 x i8] c"Using False Position Method the root is: %lf \0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [48 x i8] c"Using Newton-Raphson Method the root is: %lf \0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [45 x i8] c"Using Fixed Point Method the root is: %lf \0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [40 x i8] c"Using Secant Method the root is: %lf \0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
store i32 0, ptr %1, align 4
%3 = call double (...) @BisectionMethod()
store double %3, ptr %2, align 8
%4 = load double, ptr %2, align 8
%5 = call i32 @printf(ptr noundef @.str, double noundef %4)
%6 = call double (...) @FalsePosition()
store double %6, ptr %2, align 8
%7 = load double, ptr %2, align 8
%8 = call i32 @printf(ptr noundef @.str.1, double noundef %7)
%9 = call double (...) @NewtonRaphson()
store double %9, ptr %2, align 8
%10 = load double, ptr %2, align 8
%11 = call i32 @printf(ptr noundef @.str.2, double noundef %10)
%12 = call double (...) @FixedPoint()
store double %12, ptr %2, align 8
%13 = load double, ptr %2, align 8
%14 = call i32 @printf(ptr noundef @.str.3, double noundef %13)
%15 = call double (...) @Secant()
store double %15, ptr %2, align 8
%16 = load double, ptr %2, align 8
%17 = call i32 @printf(ptr noundef @.str.4, double noundef %16)
ret i32 0
}
declare double @BisectionMethod(...) #1
declare i32 @printf(ptr noundef, double noundef) #1
declare double @FalsePosition(...) #1
declare double @NewtonRaphson(...) #1
declare double @FixedPoint(...) #1
declare double @Secant(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkz0btis0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [43 x i8] c"Using Bisection Method the root is: %lf \0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [48 x i8] c"Using False Position Method the root is: %lf \0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [48 x i8] c"Using Newton-Raphson Method the root is: %lf \0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [45 x i8] c"Using Fixed Point Method the root is: %lf \0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [40 x i8] c"Using Secant Method the root is: %lf \0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
store i32 0, ptr %1, align 4
%3 = call double (...) @BisectionMethod()
store double %3, ptr %2, align 8
%4 = load double, ptr %2, align 8
%5 = call i32 @printf(ptr noundef @.str, double noundef %4)
%6 = call double (...) @FalsePosition()
store double %6, ptr %2, align 8
%7 = load double, ptr %2, align 8
%8 = call i32 @printf(ptr noundef @.str.1, double noundef %7)
%9 = call double (...) @NewtonRaphson()
store double %9, ptr %2, align 8
%10 = load double, ptr %2, align 8
%11 = call i32 @printf(ptr noundef @.str.2, double noundef %10)
%12 = call double (...) @FixedPoint()
store double %12, ptr %2, align 8
%13 = load double, ptr %2, align 8
%14 = call i32 @printf(ptr noundef @.str.3, double noundef %13)
%15 = call double (...) @Secant()
store double %15, ptr %2, align 8
%16 = load double, ptr %2, align 8
%17 = call i32 @printf(ptr noundef @.str.4, double noundef %16)
ret i32 0
}
declare double @BisectionMethod(...) #1
declare i32 @printf(ptr noundef, double noundef) #1
declare double @FalsePosition(...) #1
declare double @NewtonRaphson(...) #1
declare double @FixedPoint(...) #1
declare double @Secant(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpev51iyun.c'
source_filename = "/tmp/tmpev51iyun.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @refit(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
br label %5
5: ; preds = %12, %2
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr %4, align 4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds ptr, ptr %6, i64 %8
%10 = load ptr, ptr %9, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %25
12: ; preds = %5
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %4, align 4
%15 = add nsw i32 %14, 1
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %13, i64 %16
%18 = load ptr, ptr %17, align 8
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %4, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds ptr, ptr %19, i64 %21
store ptr %18, ptr %22, align 8
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %4, align 4
br label %5, !llvm.loop !6
25: ; preds = %5
%26 = load ptr, ptr %3, align 8
ret ptr %26
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpev51iyun.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @refit(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds ptr, ptr %5, i64 %7
%9 = load ptr, ptr %8, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %.lr.ph, label %30
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %11
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %4, align 4
%14 = add nsw i32 %13, 1
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds ptr, ptr %12, i64 %15
%17 = load ptr, ptr %16, align 8
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %4, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds ptr, ptr %18, i64 %20
store ptr %17, ptr %21, align 8
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %4, align 4
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %4, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %24, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = icmp ne ptr %28, null
br i1 %29, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %30
30: ; preds = %._crit_edge, %2
%31 = load ptr, ptr %3, align 8
ret ptr %31
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp4zu_plry.c'
source_filename = "/tmp/tmp4zu_plry.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_next2(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
%7 = 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
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %8, align 8
store ptr %9, ptr %6, align 8
br label %10
10: ; preds = %24, %1
%11 = load ptr, ptr %6, align 8
%12 = load i8, ptr %11, align 1
%13 = icmp ne i8 %12, 0
br i1 %13, label %14, label %27
14: ; preds = %10
%15 = load ptr, ptr %6, align 8
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = load i8, ptr %18, align 1
%20 = call i64 @isspace(i8 noundef signext %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %23, label %22
22: ; preds = %14
br label %27
23: ; preds = %14
br label %24
24: ; preds = %23
%25 = load ptr, ptr %6, align 8
%26 = getelementptr inbounds i8, ptr %25, i32 1
store ptr %26, ptr %6, align 8
br label %10, !llvm.loop !6
27: ; preds = %22, %10
%28 = load ptr, ptr %6, align 8
%29 = load i8, ptr %28, align 1
%30 = icmp ne i8 %29, 0
br i1 %30, label %34, label %31
31: ; preds = %27
%32 = load ptr, ptr %6, align 8
%33 = load ptr, ptr %3, align 8
store ptr %32, ptr %33, align 8
store ptr null, ptr %2, align 8
br label %246
34: ; preds = %27
%35 = load ptr, ptr %6, align 8
%36 = call i32 @strlen(ptr noundef %35)
store i32 %36, ptr %7, align 4
store i32 0, ptr %4, align 4
store i32 1, ptr %5, align 4
br label %37
37: ; preds = %67, %34
%38 = load i32, ptr %5, align 4
%39 = load i32, ptr %7, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %41, label %70
41: ; preds = %37
%42 = load ptr, ptr %6, align 8
%43 = load i32, ptr %5, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, ptr %42, i64 %44
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %47, 61
br i1 %48, label %65, label %49
49: ; preds = %41
%50 = load ptr, ptr %6, align 8
%51 = load i32, ptr %5, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, ptr %50, i64 %52
%54 = load i8, ptr %53, align 1
%55 = call i64 @isspace(i8 noundef signext %54)
%56 = icmp ne i64 %55, 0
br i1 %56, label %65, label %57
57: ; preds = %49
%58 = load ptr, ptr %6, align 8
%59 = load i32, ptr %5, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i8, ptr %58, i64 %60
%62 = load i8, ptr %61, align 1
%63 = sext i8 %62 to i32
%64 = icmp eq i32 %63, 44
br i1 %64, label %65, label %66
65: ; preds = %57, %49, %41
store i32 1, ptr %4, align 4
br label %70
66: ; preds = %57
br label %67
67: ; preds = %66
%68 = load i32, ptr %5, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %5, align 4
br label %37, !llvm.loop !8
70: ; preds = %65, %37
%71 = load i32, ptr %4, align 4
%72 = icmp ne i32 %71, 0
br i1 %72, label %82, label %73
73: ; preds = %70
%74 = load ptr, ptr %6, align 8
%75 = load i32, ptr %7, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8, ptr %74, i64 %76
%78 = load ptr, ptr %3, align 8
store ptr %77, ptr %78, align 8
%79 = load ptr, ptr %6, align 8
%80 = load i32, ptr %7, align 4
%81 = call ptr @new_string2(ptr noundef %79, i32 noundef %80)
store ptr %81, ptr %2, align 8
br label %246
82: ; preds = %70
store i32 0, ptr %4, align 4
br label %83
83: ; preds = %97, %82
%84 = load i32, ptr %5, align 4
%85 = load i32, ptr %7, align 4
%86 = icmp slt i32 %84, %85
br i1 %86, label %87, label %100
87: ; preds = %83
%88 = load ptr, ptr %6, align 8
%89 = load i32, ptr %5, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i8, ptr %88, i64 %90
%92 = load i8, ptr %91, align 1
%93 = call i64 @isspace(i8 noundef signext %92)
%94 = icmp ne i64 %93, 0
br i1 %94, label %96, label %95
95: ; preds = %87
store i32 1, ptr %4, align 4
br label %100
96: ; preds = %87
br label %97
97: ; preds = %96
%98 = load i32, ptr %5, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %5, align 4
br label %83, !llvm.loop !9
100: ; preds = %95, %83
%101 = load i32, ptr %4, align 4
%102 = icmp ne i32 %101, 0
br i1 %102, label %112, label %103
103: ; preds = %100
%104 = load ptr, ptr %6, align 8
%105 = load i32, ptr %7, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i8, ptr %104, i64 %106
%108 = load ptr, ptr %3, align 8
store ptr %107, ptr %108, align 8
%109 = load ptr, ptr %6, align 8
%110 = load i32, ptr %7, align 4
%111 = call ptr @new_string2(ptr noundef %109, i32 noundef %110)
store ptr %111, ptr %2, align 8
br label %246
112: ; preds = %100
%113 = load ptr, ptr %6, align 8
%114 = load i32, ptr %5, align 4
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds i8, ptr %113, i64 %115
%117 = load i8, ptr %116, align 1
%118 = sext i8 %117 to i32
%119 = icmp ne i32 %118, 61
br i1 %119, label %120, label %145
120: ; preds = %112
%121 = load ptr, ptr %6, align 8
%122 = load i32, ptr %5, align 4
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds i8, ptr %121, i64 %123
%125 = load i8, ptr %124, align 1
%126 = sext i8 %125 to i32
%127 = icmp eq i32 %126, 44
br i1 %127, label %128, label %135
128: ; preds = %120
%129 = load ptr, ptr %6, align 8
%130 = load i32, ptr %5, align 4
%131 = add nsw i32 %130, 1
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds i8, ptr %129, i64 %132
%134 = load ptr, ptr %3, align 8
store ptr %133, ptr %134, align 8
br label %141
135: ; preds = %120
%136 = load ptr, ptr %6, align 8
%137 = load i32, ptr %5, align 4
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds i8, ptr %136, i64 %138
%140 = load ptr, ptr %3, align 8
store ptr %139, ptr %140, align 8
br label %141
141: ; preds = %135, %128
%142 = load ptr, ptr %6, align 8
%143 = load i32, ptr %5, align 4
%144 = call ptr @new_string2(ptr noundef %142, i32 noundef %143)
store ptr %144, ptr %2, align 8
br label %246
145: ; preds = %112
store i32 0, ptr %4, align 4
%146 = load i32, ptr %5, align 4
%147 = add nsw i32 %146, 1
store i32 %147, ptr %5, align 4
br label %148
148: ; preds = %162, %145
%149 = load i32, ptr %5, align 4
%150 = load i32, ptr %7, align 4
%151 = icmp slt i32 %149, %150
br i1 %151, label %152, label %165
152: ; preds = %148
%153 = load ptr, ptr %6, align 8
%154 = load i32, ptr %5, align 4
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds i8, ptr %153, i64 %155
%157 = load i8, ptr %156, align 1
%158 = call i64 @isspace(i8 noundef signext %157)
%159 = icmp ne i64 %158, 0
br i1 %159, label %161, label %160
160: ; preds = %152
store i32 1, ptr %4, align 4
br label %165
161: ; preds = %152
br label %162
162: ; preds = %161
%163 = load i32, ptr %5, align 4
%164 = add nsw i32 %163, 1
store i32 %164, ptr %5, align 4
br label %148, !llvm.loop !10
165: ; preds = %160, %148
%166 = load i32, ptr %4, align 4
%167 = icmp ne i32 %166, 0
br i1 %167, label %177, label %168
168: ; preds = %165
%169 = load ptr, ptr %6, align 8
%170 = load i32, ptr %7, align 4
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds i8, ptr %169, i64 %171
%173 = load ptr, ptr %3, align 8
store ptr %172, ptr %173, align 8
%174 = load ptr, ptr %6, align 8
%175 = load i32, ptr %7, align 4
%176 = call ptr @new_string2(ptr noundef %174, i32 noundef %175)
store ptr %176, ptr %2, align 8
br label %246
177: ; preds = %165
br label %178
178: ; preds = %200, %177
%179 = load i32, ptr %5, align 4
%180 = load i32, ptr %7, align 4
%181 = icmp slt i32 %179, %180
br i1 %181, label %182, label %203
182: ; preds = %178
%183 = load ptr, ptr %6, align 8
%184 = load i32, ptr %5, align 4
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds i8, ptr %183, i64 %185
%187 = load i8, ptr %186, align 1
%188 = call i64 @isspace(i8 noundef signext %187)
%189 = icmp ne i64 %188, 0
br i1 %189, label %198, label %190
190: ; preds = %182
%191 = load ptr, ptr %6, align 8
%192 = load i32, ptr %5, align 4
%193 = sext i32 %192 to i64
%194 = getelementptr inbounds i8, ptr %191, i64 %193
%195 = load i8, ptr %194, align 1
%196 = sext i8 %195 to i32
%197 = icmp eq i32 %196, 44
br i1 %197, label %198, label %199
198: ; preds = %190, %182
br label %203
199: ; preds = %190
br label %200
200: ; preds = %199
%201 = load i32, ptr %5, align 4
%202 = add nsw i32 %201, 1
store i32 %202, ptr %5, align 4
br label %178, !llvm.loop !11
203: ; preds = %198, %178
br label %204
204: ; preds = %218, %203
%205 = load i32, ptr %5, align 4
%206 = load i32, ptr %7, align 4
%207 = icmp slt i32 %205, %206
br i1 %207, label %208, label %221
208: ; preds = %204
%209 = load ptr, ptr %6, align 8
%210 = load i32, ptr %5, align 4
%211 = sext i32 %210 to i64
%212 = getelementptr inbounds i8, ptr %209, i64 %211
%213 = load i8, ptr %212, align 1
%214 = call i64 @isspace(i8 noundef signext %213)
%215 = icmp ne i64 %214, 0
br i1 %215, label %217, label %216
216: ; preds = %208
br label %221
217: ; preds = %208
br label %218
218: ; preds = %217
%219 = load i32, ptr %5, align 4
%220 = add nsw i32 %219, 1
store i32 %220, ptr %5, align 4
br label %204, !llvm.loop !12
221: ; preds = %216, %204
%222 = load i32, ptr %5, align 4
%223 = load i32, ptr %7, align 4
%224 = icmp slt i32 %222, %223
br i1 %224, label %225, label %237
225: ; preds = %221
%226 = load ptr, ptr %6, align 8
%227 = load i32, ptr %5, align 4
%228 = sext i32 %227 to i64
%229 = getelementptr inbounds i8, ptr %226, i64 %228
%230 = load i8, ptr %229, align 1
%231 = sext i8 %230 to i32
%232 = icmp eq i32 %231, 44
br i1 %232, label %233, label %236
233: ; preds = %225
%234 = load i32, ptr %5, align 4
%235 = add nsw i32 %234, 1
store i32 %235, ptr %5, align 4
br label %236
236: ; preds = %233, %225
br label %237
237: ; preds = %236, %221
%238 = load ptr, ptr %6, align 8
%239 = load i32, ptr %5, align 4
%240 = sext i32 %239 to i64
%241 = getelementptr inbounds i8, ptr %238, i64 %240
%242 = load ptr, ptr %3, align 8
store ptr %241, ptr %242, align 8
%243 = load ptr, ptr %6, align 8
%244 = load i32, ptr %5, align 4
%245 = call ptr @new_string2(ptr noundef %243, i32 noundef %244)
store ptr %245, ptr %2, align 8
br label %246
246: ; preds = %237, %168, %141, %103, %73, %31
%247 = load ptr, ptr %2, align 8
ret ptr %247
}
declare i64 @isspace(i8 noundef signext) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @new_string2(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}
!12 = distinct !{!12, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4zu_plry.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_next2(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
%7 = 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
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %8, align 8
store ptr %9, ptr %6, align 8
%10 = load ptr, ptr %6, align 8
%11 = load i8, ptr %10, align 1
%12 = icmp ne i8 %11, 0
br i1 %12, label %.lr.ph, label %.loopexit5
.lr.ph: ; preds = %1
br label %13
13: ; preds = %.lr.ph, %23
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
%19 = call i64 @isspace(i8 noundef signext %18)
%20 = icmp ne i64 %19, 0
br i1 %20, label %22, label %21
21: ; preds = %13
br label %29
22: ; preds = %13
br label %23
23: ; preds = %22
%24 = load ptr, ptr %6, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %6, align 8
%26 = load ptr, ptr %6, align 8
%27 = load i8, ptr %26, align 1
%28 = icmp ne i8 %27, 0
br i1 %28, label %13, label %..loopexit5_crit_edge, !llvm.loop !6
..loopexit5_crit_edge: ; preds = %23
br label %.loopexit5
.loopexit5: ; preds = %..loopexit5_crit_edge, %1
br label %29
29: ; preds = %.loopexit5, %21
%30 = load ptr, ptr %6, align 8
%31 = load i8, ptr %30, align 1
%32 = icmp ne i8 %31, 0
br i1 %32, label %36, label %33
33: ; preds = %29
%34 = load ptr, ptr %6, align 8
%35 = load ptr, ptr %3, align 8
store ptr %34, ptr %35, align 8
store ptr null, ptr %2, align 8
br label %258
36: ; preds = %29
%37 = load ptr, ptr %6, align 8
%38 = call i32 @strlen(ptr noundef %37)
store i32 %38, ptr %7, align 4
store i32 0, ptr %4, align 4
store i32 1, ptr %5, align 4
%39 = load i32, ptr %5, align 4
%40 = load i32, ptr %7, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %.lr.ph6, label %.loopexit4
.lr.ph6: ; preds = %36
br label %42
42: ; preds = %.lr.ph6, %68
%43 = load ptr, ptr %6, align 8
%44 = load i32, ptr %5, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i8, ptr %43, i64 %45
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %48, 61
br i1 %49, label %66, label %50
50: ; preds = %42
%51 = load ptr, ptr %6, align 8
%52 = load i32, ptr %5, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %51, i64 %53
%55 = load i8, ptr %54, align 1
%56 = call i64 @isspace(i8 noundef signext %55)
%57 = icmp ne i64 %56, 0
br i1 %57, label %66, label %58
58: ; preds = %50
%59 = load ptr, ptr %6, align 8
%60 = load i32, ptr %5, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8, ptr %59, i64 %61
%63 = load i8, ptr %62, align 1
%64 = sext i8 %63 to i32
%65 = icmp eq i32 %64, 44
br i1 %65, label %66, label %67
66: ; preds = %58, %50, %42
store i32 1, ptr %4, align 4
br label %74
67: ; preds = %58
br label %68
68: ; preds = %67
%69 = load i32, ptr %5, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %5, align 4
%71 = load i32, ptr %5, align 4
%72 = load i32, ptr %7, align 4
%73 = icmp slt i32 %71, %72
br i1 %73, label %42, label %..loopexit4_crit_edge, !llvm.loop !8
..loopexit4_crit_edge: ; preds = %68
br label %.loopexit4
.loopexit4: ; preds = %..loopexit4_crit_edge, %36
br label %74
74: ; preds = %.loopexit4, %66
%75 = load i32, ptr %4, align 4
%76 = icmp ne i32 %75, 0
br i1 %76, label %86, label %77
77: ; preds = %74
%78 = load ptr, ptr %6, align 8
%79 = load i32, ptr %7, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i8, ptr %78, i64 %80
%82 = load ptr, ptr %3, align 8
store ptr %81, ptr %82, align 8
%83 = load ptr, ptr %6, align 8
%84 = load i32, ptr %7, align 4
%85 = call ptr @new_string2(ptr noundef %83, i32 noundef %84)
store ptr %85, ptr %2, align 8
br label %258
86: ; preds = %74
store i32 0, ptr %4, align 4
%87 = load i32, ptr %5, align 4
%88 = load i32, ptr %7, align 4
%89 = icmp slt i32 %87, %88
br i1 %89, label %.lr.ph7, label %.loopexit3
.lr.ph7: ; preds = %86
br label %90
90: ; preds = %.lr.ph7, %100
%91 = load ptr, ptr %6, align 8
%92 = load i32, ptr %5, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i8, ptr %91, i64 %93
%95 = load i8, ptr %94, align 1
%96 = call i64 @isspace(i8 noundef signext %95)
%97 = icmp ne i64 %96, 0
br i1 %97, label %99, label %98
98: ; preds = %90
store i32 1, ptr %4, align 4
br label %106
99: ; preds = %90
br label %100
100: ; preds = %99
%101 = load i32, ptr %5, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %5, align 4
%103 = load i32, ptr %5, align 4
%104 = load i32, ptr %7, align 4
%105 = icmp slt i32 %103, %104
br i1 %105, label %90, label %..loopexit3_crit_edge, !llvm.loop !9
..loopexit3_crit_edge: ; preds = %100
br label %.loopexit3
.loopexit3: ; preds = %..loopexit3_crit_edge, %86
br label %106
106: ; preds = %.loopexit3, %98
%107 = load i32, ptr %4, align 4
%108 = icmp ne i32 %107, 0
br i1 %108, label %118, label %109
109: ; preds = %106
%110 = load ptr, ptr %6, align 8
%111 = load i32, ptr %7, align 4
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds i8, ptr %110, i64 %112
%114 = load ptr, ptr %3, align 8
store ptr %113, ptr %114, align 8
%115 = load ptr, ptr %6, align 8
%116 = load i32, ptr %7, align 4
%117 = call ptr @new_string2(ptr noundef %115, i32 noundef %116)
store ptr %117, ptr %2, align 8
br label %258
118: ; preds = %106
%119 = load ptr, ptr %6, align 8
%120 = load i32, ptr %5, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds i8, ptr %119, i64 %121
%123 = load i8, ptr %122, align 1
%124 = sext i8 %123 to i32
%125 = icmp ne i32 %124, 61
br i1 %125, label %126, label %151
126: ; preds = %118
%127 = load ptr, ptr %6, align 8
%128 = load i32, ptr %5, align 4
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds i8, ptr %127, i64 %129
%131 = load i8, ptr %130, align 1
%132 = sext i8 %131 to i32
%133 = icmp eq i32 %132, 44
br i1 %133, label %134, label %141
134: ; preds = %126
%135 = load ptr, ptr %6, align 8
%136 = load i32, ptr %5, align 4
%137 = add nsw i32 %136, 1
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds i8, ptr %135, i64 %138
%140 = load ptr, ptr %3, align 8
store ptr %139, ptr %140, align 8
br label %147
141: ; preds = %126
%142 = load ptr, ptr %6, align 8
%143 = load i32, ptr %5, align 4
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds i8, ptr %142, i64 %144
%146 = load ptr, ptr %3, align 8
store ptr %145, ptr %146, align 8
br label %147
147: ; preds = %141, %134
%148 = load ptr, ptr %6, align 8
%149 = load i32, ptr %5, align 4
%150 = call ptr @new_string2(ptr noundef %148, i32 noundef %149)
store ptr %150, ptr %2, align 8
br label %258
151: ; preds = %118
store i32 0, ptr %4, align 4
%152 = load i32, ptr %5, align 4
%153 = add nsw i32 %152, 1
store i32 %153, ptr %5, align 4
%154 = load i32, ptr %5, align 4
%155 = load i32, ptr %7, align 4
%156 = icmp slt i32 %154, %155
br i1 %156, label %.lr.ph8, label %.loopexit2
.lr.ph8: ; preds = %151
br label %157
157: ; preds = %.lr.ph8, %167
%158 = load ptr, ptr %6, align 8
%159 = load i32, ptr %5, align 4
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds i8, ptr %158, i64 %160
%162 = load i8, ptr %161, align 1
%163 = call i64 @isspace(i8 noundef signext %162)
%164 = icmp ne i64 %163, 0
br i1 %164, label %166, label %165
165: ; preds = %157
store i32 1, ptr %4, align 4
br label %173
166: ; preds = %157
br label %167
167: ; preds = %166
%168 = load i32, ptr %5, align 4
%169 = add nsw i32 %168, 1
store i32 %169, ptr %5, align 4
%170 = load i32, ptr %5, align 4
%171 = load i32, ptr %7, align 4
%172 = icmp slt i32 %170, %171
br i1 %172, label %157, label %..loopexit2_crit_edge, !llvm.loop !10
..loopexit2_crit_edge: ; preds = %167
br label %.loopexit2
.loopexit2: ; preds = %..loopexit2_crit_edge, %151
br label %173
173: ; preds = %.loopexit2, %165
%174 = load i32, ptr %4, align 4
%175 = icmp ne i32 %174, 0
br i1 %175, label %185, label %176
176: ; preds = %173
%177 = load ptr, ptr %6, align 8
%178 = load i32, ptr %7, align 4
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds i8, ptr %177, i64 %179
%181 = load ptr, ptr %3, align 8
store ptr %180, ptr %181, align 8
%182 = load ptr, ptr %6, align 8
%183 = load i32, ptr %7, align 4
%184 = call ptr @new_string2(ptr noundef %182, i32 noundef %183)
store ptr %184, ptr %2, align 8
br label %258
185: ; preds = %173
%186 = load i32, ptr %5, align 4
%187 = load i32, ptr %7, align 4
%188 = icmp slt i32 %186, %187
br i1 %188, label %.lr.ph9, label %.loopexit1
.lr.ph9: ; preds = %185
br label %189
189: ; preds = %.lr.ph9, %207
%190 = load ptr, ptr %6, align 8
%191 = load i32, ptr %5, align 4
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds i8, ptr %190, i64 %192
%194 = load i8, ptr %193, align 1
%195 = call i64 @isspace(i8 noundef signext %194)
%196 = icmp ne i64 %195, 0
br i1 %196, label %205, label %197
197: ; preds = %189
%198 = load ptr, ptr %6, align 8
%199 = load i32, ptr %5, align 4
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds i8, ptr %198, i64 %200
%202 = load i8, ptr %201, align 1
%203 = sext i8 %202 to i32
%204 = icmp eq i32 %203, 44
br i1 %204, label %205, label %206
205: ; preds = %197, %189
br label %213
206: ; preds = %197
br label %207
207: ; preds = %206
%208 = load i32, ptr %5, align 4
%209 = add nsw i32 %208, 1
store i32 %209, ptr %5, align 4
%210 = load i32, ptr %5, align 4
%211 = load i32, ptr %7, align 4
%212 = icmp slt i32 %210, %211
br i1 %212, label %189, label %..loopexit1_crit_edge, !llvm.loop !11
..loopexit1_crit_edge: ; preds = %207
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %185
br label %213
213: ; preds = %.loopexit1, %205
%214 = load i32, ptr %5, align 4
%215 = load i32, ptr %7, align 4
%216 = icmp slt i32 %214, %215
br i1 %216, label %.lr.ph10, label %.loopexit
.lr.ph10: ; preds = %213
br label %217
217: ; preds = %.lr.ph10, %227
%218 = load ptr, ptr %6, align 8
%219 = load i32, ptr %5, align 4
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds i8, ptr %218, i64 %220
%222 = load i8, ptr %221, align 1
%223 = call i64 @isspace(i8 noundef signext %222)
%224 = icmp ne i64 %223, 0
br i1 %224, label %226, label %225
225: ; preds = %217
br label %233
226: ; preds = %217
br label %227
227: ; preds = %226
%228 = load i32, ptr %5, align 4
%229 = add nsw i32 %228, 1
store i32 %229, ptr %5, align 4
%230 = load i32, ptr %5, align 4
%231 = load i32, ptr %7, align 4
%232 = icmp slt i32 %230, %231
br i1 %232, label %217, label %..loopexit_crit_edge, !llvm.loop !12
..loopexit_crit_edge: ; preds = %227
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %213
br label %233
233: ; preds = %.loopexit, %225
%234 = load i32, ptr %5, align 4
%235 = load i32, ptr %7, align 4
%236 = icmp slt i32 %234, %235
br i1 %236, label %237, label %249
237: ; preds = %233
%238 = load ptr, ptr %6, align 8
%239 = load i32, ptr %5, align 4
%240 = sext i32 %239 to i64
%241 = getelementptr inbounds i8, ptr %238, i64 %240
%242 = load i8, ptr %241, align 1
%243 = sext i8 %242 to i32
%244 = icmp eq i32 %243, 44
br i1 %244, label %245, label %248
245: ; preds = %237
%246 = load i32, ptr %5, align 4
%247 = add nsw i32 %246, 1
store i32 %247, ptr %5, align 4
br label %248
248: ; preds = %245, %237
br label %249
249: ; preds = %248, %233
%250 = load ptr, ptr %6, align 8
%251 = load i32, ptr %5, align 4
%252 = sext i32 %251 to i64
%253 = getelementptr inbounds i8, ptr %250, i64 %252
%254 = load ptr, ptr %3, align 8
store ptr %253, ptr %254, align 8
%255 = load ptr, ptr %6, align 8
%256 = load i32, ptr %5, align 4
%257 = call ptr @new_string2(ptr noundef %255, i32 noundef %256)
store ptr %257, ptr %2, align 8
br label %258
258: ; preds = %249, %176, %147, %109, %77, %33
%259 = load ptr, ptr %2, align 8
ret ptr %259
}
declare i64 @isspace(i8 noundef signext) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @new_string2(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}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmpcu459rj3.c'
source_filename = "/tmp/tmpcu459rj3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"jecodeavecleCUL\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"0\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"235UMA 346DBRO\00", align 1
@.str.3 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"1\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"aflibgaius\00", align 1
@.str.6 = private unnamed_addr constant [66 x i8] c"str: %s, your_result: %i, actual_result: %i, execution time = %f\0A\00", align 1
@.str.7 = private unnamed_addr constant [29 x i8] c"\1B[0;31mFAKE AND GAY \E2\9C\97\1B[0m\0A\00", align 1
@.str.8 = private unnamed_addr constant [34 x i8] c"\1B[0;33mYOU ARE TOO SLOW! \E2\9C\97\1B[0m\0A\00", align 1
@.str.9 = private unnamed_addr constant [21 x i8] c"\1B[0;32mGOES \E2\9C\93\1B[0m\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 double, align 8
%5 = alloca [4 x [2 x ptr]], align 16
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
%10 = getelementptr inbounds [4 x [2 x ptr]], ptr %5, i64 0, i64 0
%11 = getelementptr inbounds [2 x ptr], ptr %10, i64 0, i64 0
%12 = call i32 @ft_add_test_case(ptr noundef %11, ptr noundef @.str, ptr noundef @.str.1)
%13 = getelementptr inbounds [4 x [2 x ptr]], ptr %5, i64 0, i64 1
%14 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 0
%15 = call i32 @ft_add_test_case(ptr noundef %14, ptr noundef @.str.2, ptr noundef @.str.1)
%16 = getelementptr inbounds [4 x [2 x ptr]], ptr %5, i64 0, i64 2
%17 = getelementptr inbounds [2 x ptr], ptr %16, i64 0, i64 0
%18 = call i32 @ft_add_test_case(ptr noundef %17, ptr noundef @.str.3, ptr noundef @.str.4)
%19 = getelementptr inbounds [4 x [2 x ptr]], ptr %5, i64 0, i64 3
%20 = getelementptr inbounds [2 x ptr], ptr %19, i64 0, i64 0
%21 = call i32 @ft_add_test_case(ptr noundef %20, ptr noundef @.str.5, ptr noundef @.str.4)
store i32 0, ptr %9, align 4
br label %22
22: ; preds = %61, %0
%23 = load i32, ptr %9, align 4
%24 = icmp slt i32 %23, 4
br i1 %24, label %25, label %64
25: ; preds = %22
%26 = load i32, ptr %9, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [4 x [2 x ptr]], ptr %5, i64 0, i64 %27
%29 = getelementptr inbounds [2 x ptr], ptr %28, i64 0, i64 0
%30 = call i32 @ft_get_values(ptr noundef %29, ptr noundef %6, ptr noundef %8)
%31 = call i32 @time(ptr noundef %2)
%32 = load ptr, ptr %6, align 8
%33 = call i32 @ft_str_is_lowercase(ptr noundef %32)
store i32 %33, ptr %7, align 4
%34 = call i32 @time(ptr noundef %3)
%35 = load i32, ptr %3, align 4
%36 = load i32, ptr %2, align 4
%37 = call double @difftime(i32 noundef %35, i32 noundef %36)
store double %37, ptr %4, align 8
%38 = load ptr, ptr %6, align 8
%39 = load i32, ptr %7, align 4
%40 = load ptr, ptr %8, align 8
%41 = getelementptr inbounds i8, ptr %40, i64 0
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = sub nsw i32 %43, 48
%45 = load double, ptr %4, align 8
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %38, i32 noundef %39, i32 noundef %44, double noundef %45)
%47 = load i32, ptr %7, align 4
%48 = load ptr, ptr %8, align 8
%49 = getelementptr inbounds i8, ptr %48, i64 0
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = sub nsw i32 %51, 48
%53 = icmp ne i32 %47, %52
br i1 %53, label %54, label %56
54: ; preds = %25
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
store i32 %55, ptr %1, align 4
br label %66
56: ; preds = %25
%57 = load double, ptr %4, align 8
%58 = fcmp oge double %57, 2.000000e+00
br i1 %58, label %59, label %61
59: ; preds = %56
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
store i32 %60, ptr %1, align 4
br label %66
61: ; preds = %56
%62 = load i32, ptr %9, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %9, align 4
br label %22, !llvm.loop !6
64: ; preds = %22
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
store i32 %65, ptr %1, align 4
br label %66
66: ; preds = %64, %59, %54
%67 = load i32, ptr %1, align 4
ret i32 %67
}
declare i32 @ft_add_test_case(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @ft_get_values(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @ft_str_is_lowercase(ptr noundef) #1
declare double @difftime(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcu459rj3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"jecodeavecleCUL\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"0\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"235UMA 346DBRO\00", align 1
@.str.3 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"1\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"aflibgaius\00", align 1
@.str.6 = private unnamed_addr constant [66 x i8] c"str: %s, your_result: %i, actual_result: %i, execution time = %f\0A\00", align 1
@.str.7 = private unnamed_addr constant [29 x i8] c"\1B[0;31mFAKE AND GAY \E2\9C\97\1B[0m\0A\00", align 1
@.str.8 = private unnamed_addr constant [34 x i8] c"\1B[0;33mYOU ARE TOO SLOW! \E2\9C\97\1B[0m\0A\00", align 1
@.str.9 = private unnamed_addr constant [21 x i8] c"\1B[0;32mGOES \E2\9C\93\1B[0m\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 double, align 8
%5 = alloca [4 x [2 x ptr]], align 16
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
%10 = getelementptr inbounds [4 x [2 x ptr]], ptr %5, i64 0, i64 0
%11 = getelementptr inbounds [2 x ptr], ptr %10, i64 0, i64 0
%12 = call i32 @ft_add_test_case(ptr noundef %11, ptr noundef @.str, ptr noundef @.str.1)
%13 = getelementptr inbounds [4 x [2 x ptr]], ptr %5, i64 0, i64 1
%14 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 0
%15 = call i32 @ft_add_test_case(ptr noundef %14, ptr noundef @.str.2, ptr noundef @.str.1)
%16 = getelementptr inbounds [4 x [2 x ptr]], ptr %5, i64 0, i64 2
%17 = getelementptr inbounds [2 x ptr], ptr %16, i64 0, i64 0
%18 = call i32 @ft_add_test_case(ptr noundef %17, ptr noundef @.str.3, ptr noundef @.str.4)
%19 = getelementptr inbounds [4 x [2 x ptr]], ptr %5, i64 0, i64 3
%20 = getelementptr inbounds [2 x ptr], ptr %19, i64 0, i64 0
%21 = call i32 @ft_add_test_case(ptr noundef %20, ptr noundef @.str.5, ptr noundef @.str.4)
store i32 0, ptr %9, align 4
%22 = load i32, ptr %9, align 4
%23 = icmp slt i32 %22, 4
br i1 %23, label %.lr.ph, label %65
.lr.ph: ; preds = %0
br label %24
24: ; preds = %.lr.ph, %60
%25 = load i32, ptr %9, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [4 x [2 x ptr]], ptr %5, i64 0, i64 %26
%28 = getelementptr inbounds [2 x ptr], ptr %27, i64 0, i64 0
%29 = call i32 @ft_get_values(ptr noundef %28, ptr noundef %6, ptr noundef %8)
%30 = call i32 @time(ptr noundef %2)
%31 = load ptr, ptr %6, align 8
%32 = call i32 @ft_str_is_lowercase(ptr noundef %31)
store i32 %32, ptr %7, align 4
%33 = call i32 @time(ptr noundef %3)
%34 = load i32, ptr %3, align 4
%35 = load i32, ptr %2, align 4
%36 = call double @difftime(i32 noundef %34, i32 noundef %35)
store double %36, ptr %4, align 8
%37 = load ptr, ptr %6, align 8
%38 = load i32, ptr %7, align 4
%39 = load ptr, ptr %8, align 8
%40 = getelementptr inbounds i8, ptr %39, i64 0
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = sub nsw i32 %42, 48
%44 = load double, ptr %4, align 8
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %37, i32 noundef %38, i32 noundef %43, double noundef %44)
%46 = load i32, ptr %7, align 4
%47 = load ptr, ptr %8, align 8
%48 = getelementptr inbounds i8, ptr %47, i64 0
%49 = load i8, ptr %48, align 1
%50 = sext i8 %49 to i32
%51 = sub nsw i32 %50, 48
%52 = icmp ne i32 %46, %51
br i1 %52, label %53, label %55
53: ; preds = %24
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
store i32 %54, ptr %1, align 4
br label %67
55: ; preds = %24
%56 = load double, ptr %4, align 8
%57 = fcmp oge double %56, 2.000000e+00
br i1 %57, label %58, label %60
58: ; preds = %55
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
store i32 %59, ptr %1, align 4
br label %67
60: ; preds = %55
%61 = load i32, ptr %9, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %9, align 4
%63 = load i32, ptr %9, align 4
%64 = icmp slt i32 %63, 4
br i1 %64, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %60
br label %65
65: ; preds = %._crit_edge, %0
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
store i32 %66, ptr %1, align 4
br label %67
67: ; preds = %65, %58, %53
%68 = load i32, ptr %1, align 4
ret i32 %68
}
declare i32 @ft_add_test_case(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @ft_get_values(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @ft_str_is_lowercase(ptr noundef) #1
declare double @difftime(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpc03a61hf.c'
source_filename = "/tmp/tmpc03a61hf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"this is fun%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fun1(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc03a61hf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"this is fun%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fun1(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpun_oqmjd.c'
source_filename = "/tmp/tmpun_oqmjd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %3
3: ; preds = %9, %0
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 100
br i1 %5, label %6, label %12
6: ; preds = %3
%7 = load i32, ptr %2, align 4
%8 = call i32 @Trees(i32 noundef %7)
br label %9
9: ; preds = %6
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %2, align 4
br label %3, !llvm.loop !6
12: ; preds = %3
ret i32 0
}
declare i32 @Trees(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/tmpun_oqmjd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp slt i32 %3, 100
br i1 %4, label %.lr.ph, label %13
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %8
%6 = load i32, ptr %2, align 4
%7 = call i32 @Trees(i32 noundef %6)
br label %8
8: ; preds = %5
%9 = load i32, ptr %2, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %2, align 4
%11 = load i32, ptr %2, align 4
%12 = icmp slt i32 %11, 100
br i1 %12, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %8
br label %13
13: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @Trees(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/tmp5vkts9tu.c'
source_filename = "/tmp/tmp5vkts9tu.c"
target datalayout = "e-m:e-p270: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_un = type { i32, i32 }
@.str = private unnamed_addr constant [14 x i8] c"POSEIDON_SOCK\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"/tmp/poseidon.sock\00", align 1
@AF_UNIX = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [24 x i8] c"Could not create socket\00", align 1
@.str.3 = private unnamed_addr constant [52 x i8] c"Could not connect to UNIX socket for master process\00", align 1
@.str.4 = private unnamed_addr constant [41 x i8] c"Could not receive exitstatus from master\00", align 1
@.str.5 = private unnamed_addr constant [26 x i8] c"Master hung up connection\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca %struct.sockaddr_un, align 4
%9 = alloca [4 x i8], align 1
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca [4 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
%14 = call ptr @getenv(ptr noundef @.str)
store ptr %14, ptr %6, align 8
%15 = load ptr, ptr %6, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %18, label %17
17: ; preds = %2
store ptr @.str.1, ptr %6, align 8
br label %18
18: ; preds = %17, %2
%19 = load i32, ptr @AF_UNIX, align 4
%20 = load i32, ptr @SOCK_STREAM, align 4
%21 = call i32 @socket(i32 noundef %19, i32 noundef %20, i32 noundef 0)
store i32 %21, ptr %7, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %18
%24 = call i32 @handle_error(ptr noundef @.str.2)
br label %25
25: ; preds = %23, %18
%26 = load i32, ptr @AF_UNIX, align 4
%27 = getelementptr inbounds %struct.sockaddr_un, ptr %8, i32 0, i32 1
store i32 %26, ptr %27, align 4
%28 = getelementptr inbounds %struct.sockaddr_un, ptr %8, i32 0, i32 0
%29 = load i32, ptr %28, align 4
%30 = load ptr, ptr %6, align 8
%31 = call i32 @strncpy(i32 noundef %29, ptr noundef %30, i32 noundef 3)
%32 = load i32, ptr %7, align 4
%33 = call i64 @connect(i32 noundef %32, ptr noundef %8, i32 noundef 8)
%34 = icmp slt i64 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %25
%36 = call i32 @handle_error(ptr noundef @.str.3)
br label %37
37: ; preds = %35, %25
%38 = load i32, ptr %7, align 4
%39 = call i32 @checked_sendfd(i32 noundef %38, i32 noundef 0)
%40 = load i32, ptr %7, align 4
%41 = call i32 @checked_sendfd(i32 noundef %40, i32 noundef 1)
%42 = load i32, ptr %7, align 4
%43 = call i32 @checked_sendfd(i32 noundef %42, i32 noundef 2)
%44 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
%45 = load i32, ptr %4, align 4
%46 = sub nsw i32 %45, 1
%47 = call i32 @pack_int(ptr noundef %44, i32 noundef %46)
%48 = load i32, ptr %7, align 4
%49 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
%50 = call i32 (i32, ...) @checked_send(i32 noundef %48, ptr noundef %49, i32 noundef 4)
store i32 1, ptr %10, align 4
br label %51
51: ; preds = %70, %37
%52 = load i32, ptr %10, align 4
%53 = load i32, ptr %4, align 4
%54 = icmp slt i32 %52, %53
br i1 %54, label %55, label %73
55: ; preds = %51
%56 = load i32, ptr %7, align 4
%57 = load ptr, ptr %5, align 8
%58 = load i32, ptr %10, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds ptr, ptr %57, i64 %59
%61 = load ptr, ptr %60, align 8
%62 = load ptr, ptr %5, align 8
%63 = load i32, ptr %10, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds ptr, ptr %62, i64 %64
%66 = load ptr, ptr %65, align 8
%67 = call i32 @strlen(ptr noundef %66)
%68 = add nsw i32 %67, 1
%69 = call i32 (i32, ...) @checked_send(i32 noundef %56, ptr noundef %61, i32 noundef %68)
br label %70
70: ; preds = %55
%71 = load i32, ptr %10, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %10, align 4
br label %51, !llvm.loop !6
73: ; preds = %51
store i32 0, ptr %12, align 4
br label %74
74: ; preds = %95, %73
%75 = load i32, ptr %12, align 4
%76 = icmp slt i32 %75, 4
br i1 %76, label %77, label %99
77: ; preds = %74
%78 = load i32, ptr %7, align 4
%79 = getelementptr inbounds [4 x i8], ptr %13, i64 0, i64 0
%80 = load i32, ptr %12, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i8, ptr %79, i64 %81
%83 = load i32, ptr %12, align 4
%84 = sub nsw i32 4, %83
%85 = call i32 @recv(i32 noundef %78, ptr noundef %82, i32 noundef %84, i32 noundef 0)
store i32 %85, ptr %11, align 4
%86 = icmp slt i32 %85, 0
br i1 %86, label %87, label %89
87: ; preds = %77
%88 = call i32 @handle_error(ptr noundef @.str.4)
br label %95
89: ; preds = %77
%90 = load i32, ptr %11, align 4
%91 = icmp eq i32 %90, 0
br i1 %91, label %92, label %94
92: ; preds = %89
%93 = call i32 @handle_error(ptr noundef @.str.5)
br label %94
94: ; preds = %92, %89
br label %95
95: ; preds = %94, %87
%96 = load i32, ptr %11, align 4
%97 = load i32, ptr %12, align 4
%98 = add nsw i32 %97, %96
store i32 %98, ptr %12, align 4
br label %74, !llvm.loop !8
99: ; preds = %74
%100 = load i32, ptr %7, align 4
%101 = call i32 @close(i32 noundef %100)
%102 = getelementptr inbounds [4 x i8], ptr %13, i64 0, i64 0
%103 = call i32 @unpack_int(ptr noundef %102)
ret i32 %103
}
declare ptr @getenv(ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @handle_error(ptr noundef) #1
declare i32 @strncpy(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @checked_sendfd(i32 noundef, i32 noundef) #1
declare i32 @pack_int(ptr noundef, i32 noundef) #1
declare i32 @checked_send(i32 noundef, ...) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @unpack_int(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp5vkts9tu.c"
target datalayout = "e-m:e-p270: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_un = type { i32, i32 }
@.str = private unnamed_addr constant [14 x i8] c"POSEIDON_SOCK\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"/tmp/poseidon.sock\00", align 1
@AF_UNIX = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [24 x i8] c"Could not create socket\00", align 1
@.str.3 = private unnamed_addr constant [52 x i8] c"Could not connect to UNIX socket for master process\00", align 1
@.str.4 = private unnamed_addr constant [41 x i8] c"Could not receive exitstatus from master\00", align 1
@.str.5 = private unnamed_addr constant [26 x i8] c"Master hung up connection\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca %struct.sockaddr_un, align 4
%9 = alloca [4 x i8], align 1
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca [4 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
%14 = call ptr @getenv(ptr noundef @.str)
store ptr %14, ptr %6, align 8
%15 = load ptr, ptr %6, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %18, label %17
17: ; preds = %2
store ptr @.str.1, ptr %6, align 8
br label %18
18: ; preds = %17, %2
%19 = load i32, ptr @AF_UNIX, align 4
%20 = load i32, ptr @SOCK_STREAM, align 4
%21 = call i32 @socket(i32 noundef %19, i32 noundef %20, i32 noundef 0)
store i32 %21, ptr %7, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %18
%24 = call i32 @handle_error(ptr noundef @.str.2)
br label %25
25: ; preds = %23, %18
%26 = load i32, ptr @AF_UNIX, align 4
%27 = getelementptr inbounds %struct.sockaddr_un, ptr %8, i32 0, i32 1
store i32 %26, ptr %27, align 4
%28 = getelementptr inbounds %struct.sockaddr_un, ptr %8, i32 0, i32 0
%29 = load i32, ptr %28, align 4
%30 = load ptr, ptr %6, align 8
%31 = call i32 @strncpy(i32 noundef %29, ptr noundef %30, i32 noundef 3)
%32 = load i32, ptr %7, align 4
%33 = call i64 @connect(i32 noundef %32, ptr noundef %8, i32 noundef 8)
%34 = icmp slt i64 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %25
%36 = call i32 @handle_error(ptr noundef @.str.3)
br label %37
37: ; preds = %35, %25
%38 = load i32, ptr %7, align 4
%39 = call i32 @checked_sendfd(i32 noundef %38, i32 noundef 0)
%40 = load i32, ptr %7, align 4
%41 = call i32 @checked_sendfd(i32 noundef %40, i32 noundef 1)
%42 = load i32, ptr %7, align 4
%43 = call i32 @checked_sendfd(i32 noundef %42, i32 noundef 2)
%44 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
%45 = load i32, ptr %4, align 4
%46 = sub nsw i32 %45, 1
%47 = call i32 @pack_int(ptr noundef %44, i32 noundef %46)
%48 = load i32, ptr %7, align 4
%49 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
%50 = call i32 (i32, ...) @checked_send(i32 noundef %48, ptr noundef %49, i32 noundef 4)
store i32 1, ptr %10, align 4
%51 = load i32, ptr %10, align 4
%52 = load i32, ptr %4, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %.lr.ph, label %75
.lr.ph: ; preds = %37
br label %54
54: ; preds = %.lr.ph, %69
%55 = load i32, ptr %7, align 4
%56 = load ptr, ptr %5, align 8
%57 = load i32, ptr %10, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds ptr, ptr %56, i64 %58
%60 = load ptr, ptr %59, align 8
%61 = load ptr, ptr %5, align 8
%62 = load i32, ptr %10, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds ptr, ptr %61, i64 %63
%65 = load ptr, ptr %64, align 8
%66 = call i32 @strlen(ptr noundef %65)
%67 = add nsw i32 %66, 1
%68 = call i32 (i32, ...) @checked_send(i32 noundef %55, ptr noundef %60, i32 noundef %67)
br label %69
69: ; preds = %54
%70 = load i32, ptr %10, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %10, align 4
%72 = load i32, ptr %10, align 4
%73 = load i32, ptr %4, align 4
%74 = icmp slt i32 %72, %73
br i1 %74, label %54, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %69
br label %75
75: ; preds = %._crit_edge, %37
store i32 0, ptr %12, align 4
%76 = load i32, ptr %12, align 4
%77 = icmp slt i32 %76, 4
br i1 %77, label %.lr.ph2, label %102
.lr.ph2: ; preds = %75
br label %78
78: ; preds = %.lr.ph2, %96
%79 = load i32, ptr %7, align 4
%80 = getelementptr inbounds [4 x i8], ptr %13, i64 0, i64 0
%81 = load i32, ptr %12, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i8, ptr %80, i64 %82
%84 = load i32, ptr %12, align 4
%85 = sub nsw i32 4, %84
%86 = call i32 @recv(i32 noundef %79, ptr noundef %83, i32 noundef %85, i32 noundef 0)
store i32 %86, ptr %11, align 4
%87 = icmp slt i32 %86, 0
br i1 %87, label %88, label %90
88: ; preds = %78
%89 = call i32 @handle_error(ptr noundef @.str.4)
br label %96
90: ; preds = %78
%91 = load i32, ptr %11, align 4
%92 = icmp eq i32 %91, 0
br i1 %92, label %93, label %95
93: ; preds = %90
%94 = call i32 @handle_error(ptr noundef @.str.5)
br label %95
95: ; preds = %93, %90
br label %96
96: ; preds = %95, %88
%97 = load i32, ptr %11, align 4
%98 = load i32, ptr %12, align 4
%99 = add nsw i32 %98, %97
store i32 %99, ptr %12, align 4
%100 = load i32, ptr %12, align 4
%101 = icmp slt i32 %100, 4
br i1 %101, label %78, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %96
br label %102
102: ; preds = %._crit_edge3, %75
%103 = load i32, ptr %7, align 4
%104 = call i32 @close(i32 noundef %103)
%105 = getelementptr inbounds [4 x i8], ptr %13, i64 0, i64 0
%106 = call i32 @unpack_int(ptr noundef %105)
ret i32 %106
}
declare ptr @getenv(ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @handle_error(ptr noundef) #1
declare i32 @strncpy(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @checked_sendfd(i32 noundef, i32 noundef) #1
declare i32 @pack_int(ptr noundef, i32 noundef) #1
declare i32 @checked_send(i32 noundef, ...) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @unpack_int(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp3lt7kvd4.c'
source_filename = "/tmp/tmp3lt7kvd4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nb_kernel020nf_f77_single(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %29, ptr noundef %30) #0 {
%32 = alloca ptr, align 8
%33 = alloca ptr, align 8
%34 = alloca ptr, align 8
%35 = alloca ptr, align 8
%36 = alloca ptr, align 8
%37 = alloca ptr, align 8
%38 = alloca ptr, align 8
%39 = alloca ptr, align 8
%40 = alloca ptr, align 8
%41 = alloca ptr, align 8
%42 = alloca ptr, align 8
%43 = alloca ptr, align 8
%44 = alloca ptr, align 8
%45 = alloca ptr, align 8
%46 = alloca ptr, align 8
%47 = alloca ptr, align 8
%48 = alloca ptr, align 8
%49 = alloca ptr, align 8
%50 = alloca ptr, align 8
%51 = alloca ptr, align 8
%52 = alloca ptr, align 8
%53 = alloca ptr, align 8
%54 = alloca ptr, align 8
%55 = alloca ptr, align 8
%56 = alloca ptr, align 8
%57 = alloca ptr, align 8
%58 = alloca ptr, align 8
%59 = alloca ptr, align 8
%60 = alloca ptr, align 8
%61 = alloca ptr, align 8
%62 = alloca ptr, align 8
store ptr %0, ptr %32, align 8
store ptr %1, ptr %33, align 8
store ptr %2, ptr %34, align 8
store ptr %3, ptr %35, align 8
store ptr %4, ptr %36, align 8
store ptr %5, ptr %37, align 8
store ptr %6, ptr %38, align 8
store ptr %7, ptr %39, align 8
store ptr %8, ptr %40, align 8
store ptr %9, ptr %41, align 8
store ptr %10, ptr %42, align 8
store ptr %11, ptr %43, align 8
store ptr %12, ptr %44, align 8
store ptr %13, ptr %45, align 8
store ptr %14, ptr %46, align 8
store ptr %15, ptr %47, align 8
store ptr %16, ptr %48, align 8
store ptr %17, ptr %49, align 8
store ptr %18, ptr %50, align 8
store ptr %19, ptr %51, align 8
store ptr %20, ptr %52, align 8
store ptr %21, ptr %53, align 8
store ptr %22, ptr %54, align 8
store ptr %23, ptr %55, align 8
store ptr %24, ptr %56, align 8
store ptr %25, ptr %57, align 8
store ptr %26, ptr %58, align 8
store ptr %27, ptr %59, align 8
store ptr %28, ptr %60, align 8
store ptr %29, ptr %61, align 8
store ptr %30, ptr %62, align 8
%63 = load ptr, ptr %32, align 8
%64 = load ptr, ptr %33, align 8
%65 = load ptr, ptr %34, align 8
%66 = load ptr, ptr %35, align 8
%67 = load ptr, ptr %36, align 8
%68 = load ptr, ptr %37, align 8
%69 = load ptr, ptr %38, align 8
%70 = load ptr, ptr %39, align 8
%71 = load ptr, ptr %40, align 8
%72 = load ptr, ptr %41, align 8
%73 = load ptr, ptr %42, align 8
%74 = load ptr, ptr %43, align 8
%75 = load ptr, ptr %44, align 8
%76 = load ptr, ptr %45, align 8
%77 = load ptr, ptr %46, align 8
%78 = load ptr, ptr %47, align 8
%79 = load ptr, ptr %48, align 8
%80 = load ptr, ptr %49, align 8
%81 = load ptr, ptr %50, align 8
%82 = load ptr, ptr %51, align 8
%83 = load ptr, ptr %52, align 8
%84 = load ptr, ptr %53, align 8
%85 = load ptr, ptr %54, align 8
%86 = load ptr, ptr %55, align 8
%87 = load ptr, ptr %56, align 8
%88 = load ptr, ptr %57, align 8
%89 = load ptr, ptr %58, align 8
%90 = load ptr, ptr %59, align 8
%91 = load ptr, ptr %60, align 8
%92 = load ptr, ptr %61, align 8
%93 = load ptr, ptr %62, align 8
%94 = call i32 @f77skernel020nf_(ptr noundef %63, ptr noundef %64, ptr noundef %65, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %72, ptr noundef %73, ptr noundef %74, ptr noundef %75, ptr noundef %76, ptr noundef %77, ptr noundef %78, ptr noundef %79, ptr noundef %80, ptr noundef %81, ptr noundef %82, ptr noundef %83, ptr noundef %84, ptr noundef %85, ptr noundef %86, ptr noundef %87, ptr noundef %88, ptr noundef %89, ptr noundef %90, ptr noundef %91, ptr noundef %92, ptr noundef %93)
ret void
}
declare i32 @f77skernel020nf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3lt7kvd4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nb_kernel020nf_f77_single(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %29, ptr noundef %30) #0 {
%32 = alloca ptr, align 8
%33 = alloca ptr, align 8
%34 = alloca ptr, align 8
%35 = alloca ptr, align 8
%36 = alloca ptr, align 8
%37 = alloca ptr, align 8
%38 = alloca ptr, align 8
%39 = alloca ptr, align 8
%40 = alloca ptr, align 8
%41 = alloca ptr, align 8
%42 = alloca ptr, align 8
%43 = alloca ptr, align 8
%44 = alloca ptr, align 8
%45 = alloca ptr, align 8
%46 = alloca ptr, align 8
%47 = alloca ptr, align 8
%48 = alloca ptr, align 8
%49 = alloca ptr, align 8
%50 = alloca ptr, align 8
%51 = alloca ptr, align 8
%52 = alloca ptr, align 8
%53 = alloca ptr, align 8
%54 = alloca ptr, align 8
%55 = alloca ptr, align 8
%56 = alloca ptr, align 8
%57 = alloca ptr, align 8
%58 = alloca ptr, align 8
%59 = alloca ptr, align 8
%60 = alloca ptr, align 8
%61 = alloca ptr, align 8
%62 = alloca ptr, align 8
store ptr %0, ptr %32, align 8
store ptr %1, ptr %33, align 8
store ptr %2, ptr %34, align 8
store ptr %3, ptr %35, align 8
store ptr %4, ptr %36, align 8
store ptr %5, ptr %37, align 8
store ptr %6, ptr %38, align 8
store ptr %7, ptr %39, align 8
store ptr %8, ptr %40, align 8
store ptr %9, ptr %41, align 8
store ptr %10, ptr %42, align 8
store ptr %11, ptr %43, align 8
store ptr %12, ptr %44, align 8
store ptr %13, ptr %45, align 8
store ptr %14, ptr %46, align 8
store ptr %15, ptr %47, align 8
store ptr %16, ptr %48, align 8
store ptr %17, ptr %49, align 8
store ptr %18, ptr %50, align 8
store ptr %19, ptr %51, align 8
store ptr %20, ptr %52, align 8
store ptr %21, ptr %53, align 8
store ptr %22, ptr %54, align 8
store ptr %23, ptr %55, align 8
store ptr %24, ptr %56, align 8
store ptr %25, ptr %57, align 8
store ptr %26, ptr %58, align 8
store ptr %27, ptr %59, align 8
store ptr %28, ptr %60, align 8
store ptr %29, ptr %61, align 8
store ptr %30, ptr %62, align 8
%63 = load ptr, ptr %32, align 8
%64 = load ptr, ptr %33, align 8
%65 = load ptr, ptr %34, align 8
%66 = load ptr, ptr %35, align 8
%67 = load ptr, ptr %36, align 8
%68 = load ptr, ptr %37, align 8
%69 = load ptr, ptr %38, align 8
%70 = load ptr, ptr %39, align 8
%71 = load ptr, ptr %40, align 8
%72 = load ptr, ptr %41, align 8
%73 = load ptr, ptr %42, align 8
%74 = load ptr, ptr %43, align 8
%75 = load ptr, ptr %44, align 8
%76 = load ptr, ptr %45, align 8
%77 = load ptr, ptr %46, align 8
%78 = load ptr, ptr %47, align 8
%79 = load ptr, ptr %48, align 8
%80 = load ptr, ptr %49, align 8
%81 = load ptr, ptr %50, align 8
%82 = load ptr, ptr %51, align 8
%83 = load ptr, ptr %52, align 8
%84 = load ptr, ptr %53, align 8
%85 = load ptr, ptr %54, align 8
%86 = load ptr, ptr %55, align 8
%87 = load ptr, ptr %56, align 8
%88 = load ptr, ptr %57, align 8
%89 = load ptr, ptr %58, align 8
%90 = load ptr, ptr %59, align 8
%91 = load ptr, ptr %60, align 8
%92 = load ptr, ptr %61, align 8
%93 = load ptr, ptr %62, align 8
%94 = call i32 @f77skernel020nf_(ptr noundef %63, ptr noundef %64, ptr noundef %65, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %72, ptr noundef %73, ptr noundef %74, ptr noundef %75, ptr noundef %76, ptr noundef %77, ptr noundef %78, ptr noundef %79, ptr noundef %80, ptr noundef %81, ptr noundef %82, ptr noundef %83, ptr noundef %84, ptr noundef %85, ptr noundef %86, ptr noundef %87, ptr noundef %88, ptr noundef %89, ptr noundef %90, ptr noundef %91, ptr noundef %92, ptr noundef %93)
ret void
}
declare i32 @f77skernel020nf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpw622vwqb.c'
source_filename = "/tmp/tmpw622vwqb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isPowerOfTwo(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 0, ptr %2, align 4
br label %20
7: ; preds = %1
br label %8
8: ; preds = %16, %7
%9 = load i32, ptr %3, align 4
%10 = icmp ne i32 %9, 1
br i1 %10, label %11, label %19
11: ; preds = %8
%12 = load i32, ptr %3, align 4
%13 = srem i32 %12, 2
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %11
store i32 0, ptr %2, align 4
br label %20
16: ; preds = %11
%17 = load i32, ptr %3, align 4
%18 = sdiv i32 %17, 2
store i32 %18, ptr %3, align 4
br label %8, !llvm.loop !6
19: ; preds = %8
store i32 1, ptr %2, align 4
br label %20
20: ; preds = %19, %15, %6
%21 = load i32, ptr %2, align 4
ret i32 %21
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw622vwqb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isPowerOfTwo(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 0, ptr %2, align 4
br label %21
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = icmp ne i32 %8, 1
br i1 %9, label %.lr.ph, label %20
.lr.ph: ; preds = %7
br label %10
10: ; preds = %.lr.ph, %15
%11 = load i32, ptr %3, align 4
%12 = srem i32 %11, 2
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %10
store i32 0, ptr %2, align 4
br label %21
15: ; preds = %10
%16 = load i32, ptr %3, align 4
%17 = sdiv i32 %16, 2
store i32 %17, ptr %3, align 4
%18 = load i32, ptr %3, align 4
%19 = icmp ne i32 %18, 1
br i1 %19, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %20
20: ; preds = %._crit_edge, %7
store i32 1, ptr %2, align 4
br label %21
21: ; preds = %20, %14, %6
%22 = load i32, ptr %2, align 4
ret i32 %22
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp9yl3wlye.c'
source_filename = "/tmp/tmp9yl3wlye.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @towupper(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = sext i8 %3 to i32
%5 = sub nsw i32 %4, 97
%6 = icmp ult i32 %5, 26
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = load i8, ptr %2, align 1
%9 = sext i8 %8 to i32
%10 = add nsw i32 %9, -32
%11 = trunc i32 %10 to i8
store i8 %11, ptr %2, align 1
br label %12
12: ; preds = %7, %1
%13 = load i8, ptr %2, align 1
ret i8 %13
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9yl3wlye.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @towupper(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = sext i8 %3 to i32
%5 = sub nsw i32 %4, 97
%6 = icmp ult i32 %5, 26
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = load i8, ptr %2, align 1
%9 = sext i8 %8 to i32
%10 = add nsw i32 %9, -32
%11 = trunc i32 %10 to i8
store i8 %11, ptr %2, align 1
br label %12
12: ; preds = %7, %1
%13 = load i8, ptr %2, align 1
ret i8 %13
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5gr7z14x.c'
source_filename = "/tmp/tmp5gr7z14x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @filename_extension(ptr noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load i64, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call ptr @ext_split(ptr noundef %7, i64 noundef %8, ptr noundef %9, i8 noundef signext 46, i32 noundef 1)
ret ptr %10
}
declare ptr @ext_split(ptr noundef, i64 noundef, ptr noundef, i8 noundef signext, 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/tmp5gr7z14x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @filename_extension(ptr noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load i64, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call ptr @ext_split(ptr noundef %7, i64 noundef %8, ptr noundef %9, i8 noundef signext 46, i32 noundef 1)
ret ptr %10
}
declare ptr @ext_split(ptr noundef, i64 noundef, ptr noundef, i8 noundef signext, 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/tmpwvk1it8h.c'
source_filename = "/tmp/tmpwvk1it8h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@RAND_MAX = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @TestingMostlyDescending(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %4, align 8
%6 = load i64, ptr %3, align 8
%7 = sub i64 %5, %6
%8 = uitofp i64 %7 to double
%9 = call double (...) @rand()
%10 = fmul double %9, 1.000000e+00
%11 = load double, ptr @RAND_MAX, align 8
%12 = fdiv double %10, %11
%13 = call double @llvm.fmuladd.f64(double %12, double 5.000000e+00, double %8)
%14 = fsub double %13, 2.500000e+00
%15 = fptoui double %14 to i64
ret i64 %15
}
declare double @rand(...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwvk1it8h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@RAND_MAX = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @TestingMostlyDescending(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %4, align 8
%6 = load i64, ptr %3, align 8
%7 = sub i64 %5, %6
%8 = uitofp i64 %7 to double
%9 = call double (...) @rand()
%10 = fmul double %9, 1.000000e+00
%11 = load double, ptr @RAND_MAX, align 8
%12 = fdiv double %10, %11
%13 = call double @llvm.fmuladd.f64(double %12, double 5.000000e+00, double %8)
%14 = fsub double %13, 2.500000e+00
%15 = fptoui double %14 to i64
ret i64 %15
}
declare double @rand(...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpk8k7lw49.c'
source_filename = "/tmp/tmpk8k7lw49.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sais_bwt(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
%12 = load ptr, ptr %6, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %23, label %14
14: ; preds = %4
%15 = load ptr, ptr %7, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %23, label %17
17: ; preds = %14
%18 = load ptr, ptr %8, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %23, label %20
20: ; preds = %17
%21 = load i32, ptr %9, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %20, %17, %14, %4
store i32 -1, ptr %5, align 4
br label %100
24: ; preds = %20
%25 = load i32, ptr %9, align 4
%26 = icmp sle i32 %25, 1
br i1 %26, label %27, label %38
27: ; preds = %24
%28 = load i32, ptr %9, align 4
%29 = icmp eq i32 %28, 1
br i1 %29, label %30, label %36
30: ; preds = %27
%31 = load ptr, ptr %6, align 8
%32 = getelementptr inbounds i8, ptr %31, i64 0
%33 = load i8, ptr %32, align 1
%34 = load ptr, ptr %7, align 8
%35 = getelementptr inbounds i8, ptr %34, i64 0
store i8 %33, ptr %35, align 1
br label %36
36: ; preds = %30, %27
%37 = load i32, ptr %9, align 4
store i32 %37, ptr %5, align 4
br label %100
38: ; preds = %24
%39 = load ptr, ptr %6, align 8
%40 = load ptr, ptr %8, align 8
%41 = load i32, ptr %9, align 4
%42 = call i32 @sais_main(ptr noundef %39, ptr noundef %40, i32 noundef 0, i32 noundef %41, i32 noundef 256, i32 noundef 1, i32 noundef 1)
store i32 %42, ptr %11, align 4
%43 = load i32, ptr %11, align 4
%44 = icmp slt i32 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %38
%46 = load i32, ptr %11, align 4
store i32 %46, ptr %5, align 4
br label %100
47: ; preds = %38
%48 = load ptr, ptr %6, align 8
%49 = load i32, ptr %9, align 4
%50 = sub nsw i32 %49, 1
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i8, ptr %48, i64 %51
%53 = load i8, ptr %52, align 1
%54 = load ptr, ptr %7, align 8
%55 = getelementptr inbounds i8, ptr %54, i64 0
store i8 %53, ptr %55, align 1
store i32 0, ptr %10, align 4
br label %56
56: ; preds = %72, %47
%57 = load i32, ptr %10, align 4
%58 = load i32, ptr %11, align 4
%59 = icmp slt i32 %57, %58
br i1 %59, label %60, label %75
60: ; preds = %56
%61 = load ptr, ptr %8, align 8
%62 = load i32, ptr %10, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i32, ptr %61, i64 %63
%65 = load i32, ptr %64, align 4
%66 = trunc i32 %65 to i8
%67 = load ptr, ptr %7, align 8
%68 = load i32, ptr %10, align 4
%69 = add nsw i32 %68, 1
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, ptr %67, i64 %70
store i8 %66, ptr %71, align 1
br label %72
72: ; preds = %60
%73 = load i32, ptr %10, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %10, align 4
br label %56, !llvm.loop !6
75: ; preds = %56
%76 = load i32, ptr %10, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %10, align 4
br label %78
78: ; preds = %93, %75
%79 = load i32, ptr %10, align 4
%80 = load i32, ptr %9, align 4
%81 = icmp slt i32 %79, %80
br i1 %81, label %82, label %96
82: ; preds = %78
%83 = load ptr, ptr %8, align 8
%84 = load i32, ptr %10, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i32, ptr %83, i64 %85
%87 = load i32, ptr %86, align 4
%88 = trunc i32 %87 to i8
%89 = load ptr, ptr %7, align 8
%90 = load i32, ptr %10, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i8, ptr %89, i64 %91
store i8 %88, ptr %92, align 1
br label %93
93: ; preds = %82
%94 = load i32, ptr %10, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %10, align 4
br label %78, !llvm.loop !8
96: ; preds = %78
%97 = load i32, ptr %11, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %11, align 4
%99 = load i32, ptr %11, align 4
store i32 %99, ptr %5, align 4
br label %100
100: ; preds = %96, %45, %36, %23
%101 = load i32, ptr %5, align 4
ret i32 %101
}
declare i32 @sais_main(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk8k7lw49.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sais_bwt(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
%12 = load ptr, ptr %6, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %23, label %14
14: ; preds = %4
%15 = load ptr, ptr %7, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %23, label %17
17: ; preds = %14
%18 = load ptr, ptr %8, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %23, label %20
20: ; preds = %17
%21 = load i32, ptr %9, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %20, %17, %14, %4
store i32 -1, ptr %5, align 4
br label %104
24: ; preds = %20
%25 = load i32, ptr %9, align 4
%26 = icmp sle i32 %25, 1
br i1 %26, label %27, label %38
27: ; preds = %24
%28 = load i32, ptr %9, align 4
%29 = icmp eq i32 %28, 1
br i1 %29, label %30, label %36
30: ; preds = %27
%31 = load ptr, ptr %6, align 8
%32 = getelementptr inbounds i8, ptr %31, i64 0
%33 = load i8, ptr %32, align 1
%34 = load ptr, ptr %7, align 8
%35 = getelementptr inbounds i8, ptr %34, i64 0
store i8 %33, ptr %35, align 1
br label %36
36: ; preds = %30, %27
%37 = load i32, ptr %9, align 4
store i32 %37, ptr %5, align 4
br label %104
38: ; preds = %24
%39 = load ptr, ptr %6, align 8
%40 = load ptr, ptr %8, align 8
%41 = load i32, ptr %9, align 4
%42 = call i32 @sais_main(ptr noundef %39, ptr noundef %40, i32 noundef 0, i32 noundef %41, i32 noundef 256, i32 noundef 1, i32 noundef 1)
store i32 %42, ptr %11, align 4
%43 = load i32, ptr %11, align 4
%44 = icmp slt i32 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %38
%46 = load i32, ptr %11, align 4
store i32 %46, ptr %5, align 4
br label %104
47: ; preds = %38
%48 = load ptr, ptr %6, align 8
%49 = load i32, ptr %9, align 4
%50 = sub nsw i32 %49, 1
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i8, ptr %48, i64 %51
%53 = load i8, ptr %52, align 1
%54 = load ptr, ptr %7, align 8
%55 = getelementptr inbounds i8, ptr %54, i64 0
store i8 %53, ptr %55, align 1
store i32 0, ptr %10, align 4
%56 = load i32, ptr %10, align 4
%57 = load i32, ptr %11, align 4
%58 = icmp slt i32 %56, %57
br i1 %58, label %.lr.ph, label %77
.lr.ph: ; preds = %47
br label %59
59: ; preds = %.lr.ph, %71
%60 = load ptr, ptr %8, align 8
%61 = load i32, ptr %10, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i32, ptr %60, i64 %62
%64 = load i32, ptr %63, align 4
%65 = trunc i32 %64 to i8
%66 = load ptr, ptr %7, align 8
%67 = load i32, ptr %10, align 4
%68 = add nsw i32 %67, 1
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8, ptr %66, i64 %69
store i8 %65, ptr %70, align 1
br label %71
71: ; preds = %59
%72 = load i32, ptr %10, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %10, align 4
%74 = load i32, ptr %10, align 4
%75 = load i32, ptr %11, align 4
%76 = icmp slt i32 %74, %75
br i1 %76, label %59, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %71
br label %77
77: ; preds = %._crit_edge, %47
%78 = load i32, ptr %10, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %10, align 4
%80 = load i32, ptr %10, align 4
%81 = load i32, ptr %9, align 4
%82 = icmp slt i32 %80, %81
br i1 %82, label %.lr.ph2, label %100
.lr.ph2: ; preds = %77
br label %83
83: ; preds = %.lr.ph2, %94
%84 = load ptr, ptr %8, align 8
%85 = load i32, ptr %10, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i32, ptr %84, i64 %86
%88 = load i32, ptr %87, align 4
%89 = trunc i32 %88 to i8
%90 = load ptr, ptr %7, align 8
%91 = load i32, ptr %10, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i8, ptr %90, i64 %92
store i8 %89, ptr %93, align 1
br label %94
94: ; preds = %83
%95 = load i32, ptr %10, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %10, align 4
%97 = load i32, ptr %10, align 4
%98 = load i32, ptr %9, align 4
%99 = icmp slt i32 %97, %98
br i1 %99, label %83, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %94
br label %100
100: ; preds = %._crit_edge3, %77
%101 = load i32, ptr %11, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %11, align 4
%103 = load i32, ptr %11, align 4
store i32 %103, ptr %5, align 4
br label %104
104: ; preds = %100, %45, %36, %23
%105 = load i32, ptr %5, align 4
ret i32 %105
}
declare i32 @sais_main(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp45kn7hcx.c'
source_filename = "/tmp/tmp45kn7hcx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @init_vec_orth1(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %18, %2
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %21
10: ; preds = %6
%11 = call i32 (...) @rand()
%12 = srem i32 %11, 500
%13 = sitofp i32 %12 to double
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds double, ptr %14, i64 %16
store double %13, ptr %17, align 8
br label %18
18: ; preds = %10
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4
br label %6, !llvm.loop !6
21: ; preds = %6
%22 = load i32, ptr %3, align 4
%23 = load ptr, ptr %4, align 8
%24 = call i32 @orthog1(i32 noundef %22, ptr noundef %23)
ret void
}
declare i32 @rand(...) #1
declare i32 @orthog1(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/tmp45kn7hcx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @init_vec_orth1(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %23
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %17
%10 = call i32 (...) @rand()
%11 = srem i32 %10, 500
%12 = sitofp i32 %11 to double
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds double, ptr %13, i64 %15
store double %12, ptr %16, align 8
br label %17
17: ; preds = %9
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %3, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %23
23: ; preds = %._crit_edge, %2
%24 = load i32, ptr %3, align 4
%25 = load ptr, ptr %4, align 8
%26 = call i32 @orthog1(i32 noundef %24, ptr noundef %25)
ret void
}
declare i32 @rand(...) #1
declare i32 @orthog1(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/tmpvv7c6eo_.c'
source_filename = "/tmp/tmpvv7c6eo_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"*** Error: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @yyerror(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvv7c6eo_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"*** Error: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @yyerror(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4dk6dftc.c'
source_filename = "/tmp/tmp4dk6dftc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"Hello, World!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4dk6dftc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"Hello, World!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9mngd5h2.c'
source_filename = "/tmp/tmp9mngd5h2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f07(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @f06(i32 noundef %3)
%5 = call i32 @f06(i32 noundef %4)
ret i32 %5
}
declare i32 @f06(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/tmp9mngd5h2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f07(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @f06(i32 noundef %3)
%5 = call i32 @f06(i32 noundef %4)
ret i32 %5
}
declare i32 @f06(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/tmpnzg6g668.c'
source_filename = "/tmp/tmpnzg6g668.c"
target datalayout = "e-m:e-p270: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 [2 x i8] c" \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c" \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca 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 = call i64 @malloc(i32 noundef 2048)
%11 = inttoptr i64 %10 to ptr
store ptr %11, ptr %6, align 8
store ptr null, ptr %7, align 8
store ptr null, ptr %8, align 8
store ptr null, ptr %9, align 8
%12 = load ptr, ptr %6, align 8
%13 = load i32, ptr @stdin, align 4
%14 = call i32 @fgets(ptr noundef %12, i32 noundef 2048, i32 noundef %13)
%15 = load ptr, ptr %6, align 8
%16 = call ptr @strtok(ptr noundef %15, ptr noundef @.str)
store ptr %16, ptr %7, align 8
br label %17
17: ; preds = %20, %2
%18 = load ptr, ptr %7, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %20, label %24
20: ; preds = %17
%21 = load ptr, ptr %7, align 8
%22 = call i32 @insertNode(ptr noundef %8, ptr noundef %9, ptr noundef %21)
%23 = call ptr @strtok(ptr noundef null, ptr noundef @.str.1)
store ptr %23, ptr %7, align 8
br label %17, !llvm.loop !6
24: ; preds = %17
%25 = load ptr, ptr %8, align 8
%26 = call i32 @printList(ptr noundef %25)
%27 = load ptr, ptr %8, align 8
%28 = call i32 @destroyList(ptr noundef %27)
ret i32 0
}
declare i64 @malloc(i32 noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @strtok(ptr noundef, ptr noundef) #1
declare i32 @insertNode(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printList(ptr noundef) #1
declare i32 @destroyList(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpnzg6g668.c"
target datalayout = "e-m:e-p270: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 [2 x i8] c" \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c" \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca 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 = call i64 @malloc(i32 noundef 2048)
%11 = inttoptr i64 %10 to ptr
store ptr %11, ptr %6, align 8
store ptr null, ptr %7, align 8
store ptr null, ptr %8, align 8
store ptr null, ptr %9, align 8
%12 = load ptr, ptr %6, align 8
%13 = load i32, ptr @stdin, align 4
%14 = call i32 @fgets(ptr noundef %12, i32 noundef 2048, i32 noundef %13)
%15 = load ptr, ptr %6, align 8
%16 = call ptr @strtok(ptr noundef %15, ptr noundef @.str)
store ptr %16, ptr %7, align 8
%17 = load ptr, ptr %7, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %.lr.ph, label %25
.lr.ph: ; preds = %2
br label %19
19: ; preds = %.lr.ph, %19
%20 = load ptr, ptr %7, align 8
%21 = call i32 @insertNode(ptr noundef %8, ptr noundef %9, ptr noundef %20)
%22 = call ptr @strtok(ptr noundef null, ptr noundef @.str.1)
store ptr %22, ptr %7, align 8
%23 = load ptr, ptr %7, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %25
25: ; preds = %._crit_edge, %2
%26 = load ptr, ptr %8, align 8
%27 = call i32 @printList(ptr noundef %26)
%28 = load ptr, ptr %8, align 8
%29 = call i32 @destroyList(ptr noundef %28)
ret i32 0
}
declare i64 @malloc(i32 noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @strtok(ptr noundef, ptr noundef) #1
declare i32 @insertNode(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printList(ptr noundef) #1
declare i32 @destroyList(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpx6__153l.c'
source_filename = "/tmp/tmpx6__153l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @determ_le_float(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = call i32 @_mm_load_ss(ptr noundef %3)
%6 = call i32 @_mm_load_ss(ptr noundef %4)
%7 = call i32 @_mm_comile_ss(i32 noundef %5, i32 noundef %6)
%8 = icmp ne i32 %7, 0
%9 = xor i1 %8, true
%10 = xor i1 %9, true
%11 = zext i1 %10 to i32
ret i32 %11
}
declare i32 @_mm_comile_ss(i32 noundef, i32 noundef) #1
declare i32 @_mm_load_ss(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx6__153l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @determ_le_float(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = call i32 @_mm_load_ss(ptr noundef %3)
%6 = call i32 @_mm_load_ss(ptr noundef %4)
%7 = call i32 @_mm_comile_ss(i32 noundef %5, i32 noundef %6)
%8 = icmp ne i32 %7, 0
%9 = xor i1 %8, true
%10 = xor i1 %9, true
%11 = zext i1 %10 to i32
ret i32 %11
}
declare i32 @_mm_comile_ss(i32 noundef, i32 noundef) #1
declare i32 @_mm_load_ss(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpr8irajou.c'
source_filename = "/tmp/tmpr8irajou.c"
target datalayout = "e-m:e-p270: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.epoll_event = type { i32, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32 }
@.str = private unnamed_addr constant [7 x i8] c"./pone\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [7 x i8] c"./ptwo\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"fd1 is %d & fd2 is %d \0A\00", align 1
@EPOLLIN = dso_local global i32 0, align 4
@EPOLLET = dso_local global i32 0, align 4
@EPOLL_CTL_ADD = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [10 x i8] c"epoll_ctl\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"About to epoll_wait()\0A\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"epoll_wait\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"Ready: %d\0A\00", align 1
@.str.7 = private unnamed_addr constant [37 x i8] c"file descriptor return by epoll %d \0A\00", align 1
@.str.8 = private unnamed_addr constant [21 x i8] c" read %d from fd%d \0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca %struct.epoll_event, align 4
%7 = alloca [10 x %struct.epoll_event], align 16
%8 = alloca [10 x i8], align 1
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %1, align 4
%11 = load i32, ptr @O_RDWR, align 4
%12 = call i32 @open(ptr noundef @.str, i32 noundef %11)
store i32 %12, ptr %2, align 4
%13 = load i32, ptr @O_RDWR, align 4
%14 = call i32 @open(ptr noundef @.str.1, i32 noundef %13)
store i32 %14, ptr %3, align 4
%15 = call i32 @epoll_create(i32 noundef 4096)
store i32 %15, ptr %4, align 4
%16 = load i32, ptr %2, align 4
%17 = load i32, ptr %3, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %16, i32 noundef %17)
%19 = load i32, ptr @EPOLLIN, align 4
%20 = load i32, ptr @EPOLLET, align 4
%21 = or i32 %19, %20
%22 = getelementptr inbounds %struct.epoll_event, ptr %6, i32 0, i32 0
store i32 %21, ptr %22, align 4
%23 = load i32, ptr %2, align 4
%24 = getelementptr inbounds %struct.epoll_event, ptr %6, i32 0, i32 1
%25 = getelementptr inbounds %struct.TYPE_2__, ptr %24, i32 0, i32 0
store i32 %23, ptr %25, align 4
%26 = load i32, ptr %4, align 4
%27 = load i32, ptr @EPOLL_CTL_ADD, align 4
%28 = load i32, ptr %2, align 4
%29 = call i32 @epoll_ctl(i32 noundef %26, i32 noundef %27, i32 noundef %28, ptr noundef %6)
%30 = icmp eq i32 %29, -1
br i1 %30, label %31, label %33
31: ; preds = %0
%32 = call i32 @perror(ptr noundef @.str.3)
br label %33
33: ; preds = %31, %0
%34 = load i32, ptr @EPOLLIN, align 4
%35 = getelementptr inbounds %struct.epoll_event, ptr %6, i32 0, i32 0
store i32 %34, ptr %35, align 4
%36 = load i32, ptr %3, align 4
%37 = getelementptr inbounds %struct.epoll_event, ptr %6, i32 0, i32 1
%38 = getelementptr inbounds %struct.TYPE_2__, ptr %37, i32 0, i32 0
store i32 %36, ptr %38, align 4
%39 = load i32, ptr %4, align 4
%40 = load i32, ptr @EPOLL_CTL_ADD, align 4
%41 = load i32, ptr %3, align 4
%42 = call i32 @epoll_ctl(i32 noundef %39, i32 noundef %40, i32 noundef %41, ptr noundef %6)
%43 = icmp eq i32 %42, -1
br i1 %43, label %44, label %46
44: ; preds = %33
%45 = call i32 @perror(ptr noundef @.str.3)
br label %46
46: ; preds = %44, %33
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%48 = load i32, ptr %4, align 4
%49 = getelementptr inbounds [10 x %struct.epoll_event], ptr %7, i64 0, i64 0
%50 = call i32 @epoll_wait(i32 noundef %48, ptr noundef %49, i32 noundef 2, i32 noundef -1)
store i32 %50, ptr %5, align 4
%51 = load i32, ptr %5, align 4
%52 = icmp slt i32 %51, 0
br i1 %52, label %53, label %56
53: ; preds = %46
%54 = call i32 @perror(ptr noundef @.str.5)
%55 = call i32 @exit(i32 noundef 1) #3
unreachable
56: ; preds = %46
%57 = load i32, ptr %5, align 4
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %57)
store i32 0, ptr %10, align 4
br label %59
59: ; preds = %97, %56
%60 = load i32, ptr %10, align 4
%61 = load i32, ptr %5, align 4
%62 = icmp slt i32 %60, %61
br i1 %62, label %63, label %100
63: ; preds = %59
%64 = load i32, ptr %10, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [10 x %struct.epoll_event], ptr %7, i64 0, i64 %65
%67 = getelementptr inbounds %struct.epoll_event, ptr %66, i32 0, i32 0
%68 = load i32, ptr %67, align 8
%69 = load i32, ptr @EPOLLIN, align 4
%70 = and i32 %68, %69
%71 = icmp ne i32 %70, 0
br i1 %71, label %72, label %96
72: ; preds = %63
%73 = load i32, ptr %10, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [10 x %struct.epoll_event], ptr %7, i64 0, i64 %74
%76 = getelementptr inbounds %struct.epoll_event, ptr %75, i32 0, i32 1
%77 = getelementptr inbounds %struct.TYPE_2__, ptr %76, i32 0, i32 0
%78 = load i32, ptr %77, align 4
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %78)
%80 = load i32, ptr %10, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [10 x %struct.epoll_event], ptr %7, i64 0, i64 %81
%83 = getelementptr inbounds %struct.epoll_event, ptr %82, i32 0, i32 1
%84 = getelementptr inbounds %struct.TYPE_2__, ptr %83, i32 0, i32 0
%85 = load i32, ptr %84, align 4
%86 = getelementptr inbounds [10 x i8], ptr %8, i64 0, i64 0
%87 = call i32 @read(i32 noundef %85, ptr noundef %86, i32 noundef 10)
store i32 %87, ptr %9, align 4
%88 = load i32, ptr %9, align 4
%89 = load i32, ptr %10, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [10 x %struct.epoll_event], ptr %7, i64 0, i64 %90
%92 = getelementptr inbounds %struct.epoll_event, ptr %91, i32 0, i32 1
%93 = getelementptr inbounds %struct.TYPE_2__, ptr %92, i32 0, i32 0
%94 = load i32, ptr %93, align 4
%95 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %88, i32 noundef %94)
br label %96
96: ; preds = %72, %63
br label %97
97: ; preds = %96
%98 = load i32, ptr %10, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %10, align 4
br label %59, !llvm.loop !6
100: ; preds = %59
%101 = load i32, ptr @EXIT_SUCCESS, align 4
%102 = call i32 @exit(i32 noundef %101) #3
unreachable
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @epoll_create(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @epoll_ctl(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @epoll_wait(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr8irajou.c"
target datalayout = "e-m:e-p270: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.epoll_event = type { i32, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32 }
@.str = private unnamed_addr constant [7 x i8] c"./pone\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [7 x i8] c"./ptwo\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"fd1 is %d & fd2 is %d \0A\00", align 1
@EPOLLIN = dso_local global i32 0, align 4
@EPOLLET = dso_local global i32 0, align 4
@EPOLL_CTL_ADD = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [10 x i8] c"epoll_ctl\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"About to epoll_wait()\0A\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"epoll_wait\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"Ready: %d\0A\00", align 1
@.str.7 = private unnamed_addr constant [37 x i8] c"file descriptor return by epoll %d \0A\00", align 1
@.str.8 = private unnamed_addr constant [21 x i8] c" read %d from fd%d \0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca %struct.epoll_event, align 4
%7 = alloca [10 x %struct.epoll_event], align 16
%8 = alloca [10 x i8], align 1
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %1, align 4
%11 = load i32, ptr @O_RDWR, align 4
%12 = call i32 @open(ptr noundef @.str, i32 noundef %11)
store i32 %12, ptr %2, align 4
%13 = load i32, ptr @O_RDWR, align 4
%14 = call i32 @open(ptr noundef @.str.1, i32 noundef %13)
store i32 %14, ptr %3, align 4
%15 = call i32 @epoll_create(i32 noundef 4096)
store i32 %15, ptr %4, align 4
%16 = load i32, ptr %2, align 4
%17 = load i32, ptr %3, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %16, i32 noundef %17)
%19 = load i32, ptr @EPOLLIN, align 4
%20 = load i32, ptr @EPOLLET, align 4
%21 = or i32 %19, %20
%22 = getelementptr inbounds %struct.epoll_event, ptr %6, i32 0, i32 0
store i32 %21, ptr %22, align 4
%23 = load i32, ptr %2, align 4
%24 = getelementptr inbounds %struct.epoll_event, ptr %6, i32 0, i32 1
%25 = getelementptr inbounds %struct.TYPE_2__, ptr %24, i32 0, i32 0
store i32 %23, ptr %25, align 4
%26 = load i32, ptr %4, align 4
%27 = load i32, ptr @EPOLL_CTL_ADD, align 4
%28 = load i32, ptr %2, align 4
%29 = call i32 @epoll_ctl(i32 noundef %26, i32 noundef %27, i32 noundef %28, ptr noundef %6)
%30 = icmp eq i32 %29, -1
br i1 %30, label %31, label %33
31: ; preds = %0
%32 = call i32 @perror(ptr noundef @.str.3)
br label %33
33: ; preds = %31, %0
%34 = load i32, ptr @EPOLLIN, align 4
%35 = getelementptr inbounds %struct.epoll_event, ptr %6, i32 0, i32 0
store i32 %34, ptr %35, align 4
%36 = load i32, ptr %3, align 4
%37 = getelementptr inbounds %struct.epoll_event, ptr %6, i32 0, i32 1
%38 = getelementptr inbounds %struct.TYPE_2__, ptr %37, i32 0, i32 0
store i32 %36, ptr %38, align 4
%39 = load i32, ptr %4, align 4
%40 = load i32, ptr @EPOLL_CTL_ADD, align 4
%41 = load i32, ptr %3, align 4
%42 = call i32 @epoll_ctl(i32 noundef %39, i32 noundef %40, i32 noundef %41, ptr noundef %6)
%43 = icmp eq i32 %42, -1
br i1 %43, label %44, label %46
44: ; preds = %33
%45 = call i32 @perror(ptr noundef @.str.3)
br label %46
46: ; preds = %44, %33
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%48 = load i32, ptr %4, align 4
%49 = getelementptr inbounds [10 x %struct.epoll_event], ptr %7, i64 0, i64 0
%50 = call i32 @epoll_wait(i32 noundef %48, ptr noundef %49, i32 noundef 2, i32 noundef -1)
store i32 %50, ptr %5, align 4
%51 = load i32, ptr %5, align 4
%52 = icmp slt i32 %51, 0
br i1 %52, label %53, label %56
53: ; preds = %46
%54 = call i32 @perror(ptr noundef @.str.5)
%55 = call i32 @exit(i32 noundef 1) #3
unreachable
56: ; preds = %46
%57 = load i32, ptr %5, align 4
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %57)
store i32 0, ptr %10, align 4
%59 = load i32, ptr %10, align 4
%60 = load i32, ptr %5, align 4
%61 = icmp slt i32 %59, %60
br i1 %61, label %.lr.ph, label %102
.lr.ph: ; preds = %56
br label %62
62: ; preds = %.lr.ph, %96
%63 = load i32, ptr %10, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [10 x %struct.epoll_event], ptr %7, i64 0, i64 %64
%66 = getelementptr inbounds %struct.epoll_event, ptr %65, i32 0, i32 0
%67 = load i32, ptr %66, align 8
%68 = load i32, ptr @EPOLLIN, align 4
%69 = and i32 %67, %68
%70 = icmp ne i32 %69, 0
br i1 %70, label %71, label %95
71: ; preds = %62
%72 = load i32, ptr %10, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [10 x %struct.epoll_event], ptr %7, i64 0, i64 %73
%75 = getelementptr inbounds %struct.epoll_event, ptr %74, i32 0, i32 1
%76 = getelementptr inbounds %struct.TYPE_2__, ptr %75, i32 0, i32 0
%77 = load i32, ptr %76, align 4
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %77)
%79 = load i32, ptr %10, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [10 x %struct.epoll_event], ptr %7, i64 0, i64 %80
%82 = getelementptr inbounds %struct.epoll_event, ptr %81, i32 0, i32 1
%83 = getelementptr inbounds %struct.TYPE_2__, ptr %82, i32 0, i32 0
%84 = load i32, ptr %83, align 4
%85 = getelementptr inbounds [10 x i8], ptr %8, i64 0, i64 0
%86 = call i32 @read(i32 noundef %84, ptr noundef %85, i32 noundef 10)
store i32 %86, ptr %9, align 4
%87 = load i32, ptr %9, align 4
%88 = load i32, ptr %10, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [10 x %struct.epoll_event], ptr %7, i64 0, i64 %89
%91 = getelementptr inbounds %struct.epoll_event, ptr %90, i32 0, i32 1
%92 = getelementptr inbounds %struct.TYPE_2__, ptr %91, i32 0, i32 0
%93 = load i32, ptr %92, align 4
%94 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %87, i32 noundef %93)
br label %95
95: ; preds = %71, %62
br label %96
96: ; preds = %95
%97 = load i32, ptr %10, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %10, align 4
%99 = load i32, ptr %10, align 4
%100 = load i32, ptr %5, align 4
%101 = icmp slt i32 %99, %100
br i1 %101, label %62, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %96
br label %102
102: ; preds = %._crit_edge, %56
%103 = load i32, ptr @EXIT_SUCCESS, align 4
%104 = call i32 @exit(i32 noundef %103) #3
unreachable
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @epoll_create(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @epoll_ctl(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @epoll_wait(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpywu4f4e8.c'
source_filename = "/tmp/tmpywu4f4e8.c"
target datalayout = "e-m:e-p270: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/tmpywu4f4e8.c"
target datalayout = "e-m:e-p270: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/tmpqb4neb_r.c'
source_filename = "/tmp/tmpqb4neb_r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"Hello mem\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
store i32 0, ptr %1, align 4
%3 = call ptr @malloc(i32 noundef 128)
store ptr %3, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @snprintf(ptr noundef %4, i32 noundef 128, ptr noundef @.str)
%6 = load ptr, ptr %2, align 8
%7 = call i32 @puts(ptr noundef %6)
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqb4neb_r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"Hello mem\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
store i32 0, ptr %1, align 4
%3 = call ptr @malloc(i32 noundef 128)
store ptr %3, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @snprintf(ptr noundef %4, i32 noundef 128, ptr noundef @.str)
%6 = load ptr, ptr %2, align 8
%7 = call i32 @puts(ptr noundef %6)
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp86bzumb6.c'
source_filename = "/tmp/tmp86bzumb6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [43 x i8] c"Enter the Value for the Radius of Cirlce: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"Area of the Cirlce is: %.2f \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
store i32 0, ptr %1, align 4
store float 0x40091EB860000000, ptr %2, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%6 = load float, ptr %3, align 4
%7 = fmul float 0x40091EB860000000, %6
%8 = load float, ptr %3, align 4
%9 = fmul float %7, %8
%10 = fpext float %9 to double
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %10)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp86bzumb6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [43 x i8] c"Enter the Value for the Radius of Cirlce: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"Area of the Cirlce is: %.2f \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
store i32 0, ptr %1, align 4
store float 0x40091EB860000000, ptr %2, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%6 = load float, ptr %3, align 4
%7 = fmul float 0x40091EB860000000, %6
%8 = load float, ptr %3, align 4
%9 = fmul float %7, %8
%10 = fpext float %9 to double
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %10)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdgoqyfy2.c'
source_filename = "/tmp/tmpdgoqyfy2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @deq(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 ptr @deq_impl(ptr noundef %3, i32 noundef 0)
ret ptr %4
}
declare ptr @deq_impl(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/tmpdgoqyfy2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @deq(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 ptr @deq_impl(ptr noundef %3, i32 noundef 0)
ret ptr %4
}
declare ptr @deq_impl(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/tmpp9pn8gr0.c'
source_filename = "/tmp/tmpp9pn8gr0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ssort(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %6, label %13
6: ; preds = %1
%7 = load ptr, ptr %2, align 8
%8 = call i32 @strlen(ptr noundef %7)
store i32 %8, ptr %3, align 4
%9 = load ptr, ptr %2, align 8
%10 = load i32, ptr %3, align 4
%11 = sub nsw i32 %10, 1
%12 = call i32 @qsort(ptr noundef %9, i32 noundef 0, i32 noundef %11)
br label %13
13: ; preds = %6, %1
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i32 @qsort(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/tmpp9pn8gr0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ssort(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %6, label %13
6: ; preds = %1
%7 = load ptr, ptr %2, align 8
%8 = call i32 @strlen(ptr noundef %7)
store i32 %8, ptr %3, align 4
%9 = load ptr, ptr %2, align 8
%10 = load i32, ptr %3, align 4
%11 = sub nsw i32 %10, 1
%12 = call i32 @qsort(ptr noundef %9, i32 noundef 0, i32 noundef %11)
br label %13
13: ; preds = %6, %1
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i32 @qsort(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/tmpjwl3t4cv.c'
source_filename = "/tmp/tmpjwl3t4cv.c"
target datalayout = "e-m:e-p270: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.stat = type { i32 }
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [37 x i8] c"%s:%d: Could not open tree file '%s'\00", align 1
@.str.2 = private unnamed_addr constant [137 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bmvdgeijn/WASP/refs/heads/master/snp2h5/util.c\00", align 1
@.str.3 = private unnamed_addr constant [39 x i8] c"%s:%d: Could not read entire file '%s'\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @util_read_entire_file(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca %struct.stat, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call ptr @fopen(ptr noundef %6, ptr noundef @.str)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = load ptr, ptr %2, align 8
%12 = call i32 @my_err(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 48, ptr noundef %11)
br label %13
13: ; preds = %10, %1
%14 = load ptr, ptr %3, align 8
%15 = call i32 @fileno(ptr noundef %14)
%16 = call i32 @fstat(i32 noundef %15, ptr noundef %4)
%17 = getelementptr inbounds %struct.stat, ptr %4, i32 0, i32 0
%18 = load i32, ptr %17, align 4
%19 = sext i32 %18 to i64
%20 = mul i64 1, %19
%21 = add i64 %20, 1
%22 = trunc i64 %21 to i32
%23 = call i64 @my_malloc(i32 noundef %22)
%24 = inttoptr i64 %23 to ptr
store ptr %24, ptr %5, align 8
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds %struct.stat, ptr %4, i32 0, i32 0
%27 = load i32, ptr %26, align 4
%28 = load ptr, ptr %3, align 8
%29 = call i64 @fread(ptr noundef %25, i32 noundef %27, i32 noundef 1, ptr noundef %28)
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %13
%32 = load ptr, ptr %2, align 8
%33 = call i32 @my_err(ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 58, ptr noundef %32)
br label %34
34: ; preds = %31, %13
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds %struct.stat, ptr %4, i32 0, i32 0
%37 = load i32, ptr %36, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %35, i64 %38
store i8 0, ptr %39, align 1
%40 = load ptr, ptr %5, align 8
ret ptr %40
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @my_err(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @fstat(i32 noundef, ptr noundef) #1
declare i32 @fileno(ptr noundef) #1
declare i64 @my_malloc(i32 noundef) #1
declare i64 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjwl3t4cv.c"
target datalayout = "e-m:e-p270: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.stat = type { i32 }
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [37 x i8] c"%s:%d: Could not open tree file '%s'\00", align 1
@.str.2 = private unnamed_addr constant [137 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bmvdgeijn/WASP/refs/heads/master/snp2h5/util.c\00", align 1
@.str.3 = private unnamed_addr constant [39 x i8] c"%s:%d: Could not read entire file '%s'\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @util_read_entire_file(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca %struct.stat, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call ptr @fopen(ptr noundef %6, ptr noundef @.str)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = load ptr, ptr %2, align 8
%12 = call i32 @my_err(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 48, ptr noundef %11)
br label %13
13: ; preds = %10, %1
%14 = load ptr, ptr %3, align 8
%15 = call i32 @fileno(ptr noundef %14)
%16 = call i32 @fstat(i32 noundef %15, ptr noundef %4)
%17 = getelementptr inbounds %struct.stat, ptr %4, i32 0, i32 0
%18 = load i32, ptr %17, align 4
%19 = sext i32 %18 to i64
%20 = mul i64 1, %19
%21 = add i64 %20, 1
%22 = trunc i64 %21 to i32
%23 = call i64 @my_malloc(i32 noundef %22)
%24 = inttoptr i64 %23 to ptr
store ptr %24, ptr %5, align 8
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds %struct.stat, ptr %4, i32 0, i32 0
%27 = load i32, ptr %26, align 4
%28 = load ptr, ptr %3, align 8
%29 = call i64 @fread(ptr noundef %25, i32 noundef %27, i32 noundef 1, ptr noundef %28)
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %13
%32 = load ptr, ptr %2, align 8
%33 = call i32 @my_err(ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 58, ptr noundef %32)
br label %34
34: ; preds = %31, %13
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds %struct.stat, ptr %4, i32 0, i32 0
%37 = load i32, ptr %36, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %35, i64 %38
store i8 0, ptr %39, align 1
%40 = load ptr, ptr %5, align 8
ret ptr %40
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @my_err(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @fstat(i32 noundef, ptr noundef) #1
declare i32 @fileno(ptr noundef) #1
declare i64 @my_malloc(i32 noundef) #1
declare i64 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8xbcl26x.c'
source_filename = "/tmp/tmp8xbcl26x.c"
target datalayout = "e-m:e-p270: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/tmp8xbcl26x.c"
target datalayout = "e-m:e-p270: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/tmpdr3n_e06.c'
source_filename = "/tmp/tmpdr3n_e06.c"
target datalayout = "e-m:e-p270: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/tmpdr3n_e06.c"
target datalayout = "e-m:e-p270: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/tmpmilb2ng2.c'
source_filename = "/tmp/tmpmilb2ng2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [42 x i8] c"Couldn't open output file \22%s\22 for read.\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@.str.3 = private unnamed_addr constant [43 x i8] c"Couldn't open output file \22%s\22 for write.\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
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i8, align 1
%15 = alloca i8, align 1
%16 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%17 = load i32, ptr %4, align 4
%18 = icmp ne i32 %17, 4
br i1 %18, label %19, label %24
19: ; preds = %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 0
%22 = load ptr, ptr %21, align 8
%23 = call i32 @usage(ptr noundef %22)
br label %24
24: ; preds = %19, %2
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
store ptr %27, ptr %6, align 8
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 2
%30 = load ptr, ptr %29, align 8
store ptr %30, ptr %7, align 8
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 3
%33 = load ptr, ptr %32, align 8
store ptr %33, ptr %8, align 8
%34 = load ptr, ptr %6, align 8
%35 = call ptr @fopen(ptr noundef %34, ptr noundef @.str)
store ptr %35, ptr %9, align 8
%36 = load ptr, ptr %9, align 8
%37 = icmp eq ptr %36, null
br i1 %37, label %38, label %43
38: ; preds = %24
%39 = load i32, ptr @stderr, align 4
%40 = load ptr, ptr %6, align 8
%41 = call i32 @fprintf(i32 noundef %39, ptr noundef @.str.1, ptr noundef %40)
%42 = call i32 @exit(i32 noundef 1) #3
unreachable
43: ; preds = %24
%44 = load ptr, ptr %7, align 8
%45 = call ptr @fopen(ptr noundef %44, ptr noundef @.str)
store ptr %45, ptr %10, align 8
%46 = load ptr, ptr %10, align 8
%47 = icmp eq ptr %46, null
br i1 %47, label %48, label %55
48: ; preds = %43
%49 = load i32, ptr @stderr, align 4
%50 = load ptr, ptr %7, align 8
%51 = call i32 @fprintf(i32 noundef %49, ptr noundef @.str.1, ptr noundef %50)
%52 = load ptr, ptr %9, align 8
%53 = call i32 @fclose(ptr noundef %52)
%54 = call i32 @exit(i32 noundef 1) #3
unreachable
55: ; preds = %43
%56 = load ptr, ptr %8, align 8
%57 = call ptr @fopen(ptr noundef %56, ptr noundef @.str.2)
store ptr %57, ptr %11, align 8
%58 = load ptr, ptr %11, align 8
%59 = icmp eq ptr %58, null
br i1 %59, label %60, label %69
60: ; preds = %55
%61 = load i32, ptr @stderr, align 4
%62 = load ptr, ptr %8, align 8
%63 = call i32 @fprintf(i32 noundef %61, ptr noundef @.str.3, ptr noundef %62)
%64 = load ptr, ptr %9, align 8
%65 = call i32 @fclose(ptr noundef %64)
%66 = load ptr, ptr %10, align 8
%67 = call i32 @fclose(ptr noundef %66)
%68 = call i32 @exit(i32 noundef 1) #3
unreachable
69: ; preds = %55
%70 = load ptr, ptr %9, align 8
%71 = call i32 @fread(ptr noundef %14, i32 noundef 1, i32 noundef 1, ptr noundef %70)
store i32 %71, ptr %12, align 4
%72 = load ptr, ptr %10, align 8
%73 = call i32 @fread(ptr noundef %15, i32 noundef 1, i32 noundef 1, ptr noundef %72)
store i32 %73, ptr %13, align 4
br label %74
74: ; preds = %82, %69
%75 = load i32, ptr %12, align 4
%76 = icmp eq i32 %75, 1
br i1 %76, label %77, label %80
77: ; preds = %74
%78 = load i32, ptr %13, align 4
%79 = icmp eq i32 %78, 1
br label %80
80: ; preds = %77, %74
%81 = phi i1 [ false, %74 ], [ %79, %77 ]
br i1 %81, label %82, label %95
82: ; preds = %80
%83 = load i8, ptr %14, align 1
%84 = zext i8 %83 to i32
%85 = load i8, ptr %15, align 1
%86 = zext i8 %85 to i32
%87 = xor i32 %84, %86
%88 = trunc i32 %87 to i8
store i8 %88, ptr %16, align 1
%89 = load ptr, ptr %11, align 8
%90 = call i32 @fwrite(ptr noundef %16, i32 noundef 1, i32 noundef 1, ptr noundef %89)
%91 = load ptr, ptr %9, align 8
%92 = call i32 @fread(ptr noundef %14, i32 noundef 1, i32 noundef 1, ptr noundef %91)
store i32 %92, ptr %12, align 4
%93 = load ptr, ptr %10, align 8
%94 = call i32 @fread(ptr noundef %15, i32 noundef 1, i32 noundef 1, ptr noundef %93)
store i32 %94, ptr %13, align 4
br label %74, !llvm.loop !6
95: ; preds = %80
%96 = load ptr, ptr %9, align 8
%97 = call i32 @fclose(ptr noundef %96)
%98 = load ptr, ptr %10, align 8
%99 = call i32 @fclose(ptr noundef %98)
%100 = load ptr, ptr %11, align 8
%101 = call i32 @fclose(ptr noundef %100)
ret i32 0
}
declare i32 @usage(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fclose(ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmilb2ng2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [42 x i8] c"Couldn't open output file \22%s\22 for read.\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@.str.3 = private unnamed_addr constant [43 x i8] c"Couldn't open output file \22%s\22 for write.\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
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i8, align 1
%15 = alloca i8, align 1
%16 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%17 = load i32, ptr %4, align 4
%18 = icmp ne i32 %17, 4
br i1 %18, label %19, label %24
19: ; preds = %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 0
%22 = load ptr, ptr %21, align 8
%23 = call i32 @usage(ptr noundef %22)
br label %24
24: ; preds = %19, %2
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
store ptr %27, ptr %6, align 8
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 2
%30 = load ptr, ptr %29, align 8
store ptr %30, ptr %7, align 8
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 3
%33 = load ptr, ptr %32, align 8
store ptr %33, ptr %8, align 8
%34 = load ptr, ptr %6, align 8
%35 = call ptr @fopen(ptr noundef %34, ptr noundef @.str)
store ptr %35, ptr %9, align 8
%36 = load ptr, ptr %9, align 8
%37 = icmp eq ptr %36, null
br i1 %37, label %38, label %43
38: ; preds = %24
%39 = load i32, ptr @stderr, align 4
%40 = load ptr, ptr %6, align 8
%41 = call i32 @fprintf(i32 noundef %39, ptr noundef @.str.1, ptr noundef %40)
%42 = call i32 @exit(i32 noundef 1) #3
unreachable
43: ; preds = %24
%44 = load ptr, ptr %7, align 8
%45 = call ptr @fopen(ptr noundef %44, ptr noundef @.str)
store ptr %45, ptr %10, align 8
%46 = load ptr, ptr %10, align 8
%47 = icmp eq ptr %46, null
br i1 %47, label %48, label %55
48: ; preds = %43
%49 = load i32, ptr @stderr, align 4
%50 = load ptr, ptr %7, align 8
%51 = call i32 @fprintf(i32 noundef %49, ptr noundef @.str.1, ptr noundef %50)
%52 = load ptr, ptr %9, align 8
%53 = call i32 @fclose(ptr noundef %52)
%54 = call i32 @exit(i32 noundef 1) #3
unreachable
55: ; preds = %43
%56 = load ptr, ptr %8, align 8
%57 = call ptr @fopen(ptr noundef %56, ptr noundef @.str.2)
store ptr %57, ptr %11, align 8
%58 = load ptr, ptr %11, align 8
%59 = icmp eq ptr %58, null
br i1 %59, label %60, label %69
60: ; preds = %55
%61 = load i32, ptr @stderr, align 4
%62 = load ptr, ptr %8, align 8
%63 = call i32 @fprintf(i32 noundef %61, ptr noundef @.str.3, ptr noundef %62)
%64 = load ptr, ptr %9, align 8
%65 = call i32 @fclose(ptr noundef %64)
%66 = load ptr, ptr %10, align 8
%67 = call i32 @fclose(ptr noundef %66)
%68 = call i32 @exit(i32 noundef 1) #3
unreachable
69: ; preds = %55
%70 = load ptr, ptr %9, align 8
%71 = call i32 @fread(ptr noundef %14, i32 noundef 1, i32 noundef 1, ptr noundef %70)
store i32 %71, ptr %12, align 4
%72 = load ptr, ptr %10, align 8
%73 = call i32 @fread(ptr noundef %15, i32 noundef 1, i32 noundef 1, ptr noundef %72)
store i32 %73, ptr %13, align 4
br label %74
74: ; preds = %82, %69
%75 = load i32, ptr %12, align 4
%76 = icmp eq i32 %75, 1
br i1 %76, label %77, label %80
77: ; preds = %74
%78 = load i32, ptr %13, align 4
%79 = icmp eq i32 %78, 1
br label %80
80: ; preds = %77, %74
%81 = phi i1 [ false, %74 ], [ %79, %77 ]
br i1 %81, label %82, label %95
82: ; preds = %80
%83 = load i8, ptr %14, align 1
%84 = zext i8 %83 to i32
%85 = load i8, ptr %15, align 1
%86 = zext i8 %85 to i32
%87 = xor i32 %84, %86
%88 = trunc i32 %87 to i8
store i8 %88, ptr %16, align 1
%89 = load ptr, ptr %11, align 8
%90 = call i32 @fwrite(ptr noundef %16, i32 noundef 1, i32 noundef 1, ptr noundef %89)
%91 = load ptr, ptr %9, align 8
%92 = call i32 @fread(ptr noundef %14, i32 noundef 1, i32 noundef 1, ptr noundef %91)
store i32 %92, ptr %12, align 4
%93 = load ptr, ptr %10, align 8
%94 = call i32 @fread(ptr noundef %15, i32 noundef 1, i32 noundef 1, ptr noundef %93)
store i32 %94, ptr %13, align 4
br label %74, !llvm.loop !6
95: ; preds = %80
%96 = load ptr, ptr %9, align 8
%97 = call i32 @fclose(ptr noundef %96)
%98 = load ptr, ptr %10, align 8
%99 = call i32 @fclose(ptr noundef %98)
%100 = load ptr, ptr %11, align 8
%101 = call i32 @fclose(ptr noundef %100)
ret i32 0
}
declare i32 @usage(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fclose(ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpxod8ufci.c'
source_filename = "/tmp/tmpxod8ufci.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sysinfo_ncores() #0 {
%1 = call i32 (...) @get_nprocs()
ret i32 %1
}
declare i32 @get_nprocs(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxod8ufci.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sysinfo_ncores() #0 {
%1 = call i32 (...) @get_nprocs()
ret i32 %1
}
declare i32 @get_nprocs(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpiy20znrm.c'
source_filename = "/tmp/tmpiy20znrm.c"
target datalayout = "e-m:e-p270: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/tmpiy20znrm.c"
target datalayout = "e-m:e-p270: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/tmpucjbwht_.c'
source_filename = "/tmp/tmpucjbwht_.c"
target datalayout = "e-m:e-p270: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_3__ = type { i32, ptr, i32 }
@V_ASN1_OCTET_STRING = dso_local global i32 0, align 4
@RSA_PKCS1_PADDING_SIZE = dso_local global i32 0, align 4
@RSA_F_RSA_SIGN_ASN1_OCTET_STRING = dso_local global i32 0, align 4
@RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY = dso_local global i32 0, align 4
@ERR_R_MALLOC_FAILURE = dso_local global i32 0, align 4
@RSA_PKCS1_PADDING = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @RSA_sign_ASN1_OCTET_STRING(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca %struct.TYPE_3__, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
store i32 %0, ptr %8, align 4
store ptr %1, ptr %9, align 8
store i32 %2, ptr %10, align 4
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
store i32 1, ptr %17, align 4
%20 = load i32, ptr @V_ASN1_OCTET_STRING, align 4
%21 = getelementptr inbounds %struct.TYPE_3__, ptr %14, i32 0, i32 2
store i32 %20, ptr %21, align 8
%22 = load i32, ptr %10, align 4
%23 = getelementptr inbounds %struct.TYPE_3__, ptr %14, i32 0, i32 0
store i32 %22, ptr %23, align 8
%24 = load ptr, ptr %9, align 8
%25 = getelementptr inbounds %struct.TYPE_3__, ptr %14, i32 0, i32 1
store ptr %24, ptr %25, align 8
%26 = call i32 @i2d_ASN1_OCTET_STRING(ptr noundef %14, ptr noundef null)
store i32 %26, ptr %15, align 4
%27 = load ptr, ptr %13, align 8
%28 = call i32 @RSA_size(ptr noundef %27)
store i32 %28, ptr %16, align 4
%29 = load i32, ptr %15, align 4
%30 = load i32, ptr %16, align 4
%31 = load i32, ptr @RSA_PKCS1_PADDING_SIZE, align 4
%32 = sub nsw i32 %30, %31
%33 = icmp sgt i32 %29, %32
br i1 %33, label %34, label %38
34: ; preds = %6
%35 = load i32, ptr @RSA_F_RSA_SIGN_ASN1_OCTET_STRING, align 4
%36 = load i32, ptr @RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY, align 4
%37 = call i32 @RSAerr(i32 noundef %35, i32 noundef %36)
store i32 0, ptr %7, align 4
br label %71
38: ; preds = %6
%39 = load i32, ptr %16, align 4
%40 = add i32 %39, 1
%41 = call ptr @malloc(i32 noundef %40)
store ptr %41, ptr %19, align 8
%42 = load ptr, ptr %19, align 8
%43 = icmp eq ptr %42, null
br i1 %43, label %44, label %48
44: ; preds = %38
%45 = load i32, ptr @RSA_F_RSA_SIGN_ASN1_OCTET_STRING, align 4
%46 = load i32, ptr @ERR_R_MALLOC_FAILURE, align 4
%47 = call i32 @RSAerr(i32 noundef %45, i32 noundef %46)
store i32 0, ptr %7, align 4
br label %71
48: ; preds = %38
%49 = load ptr, ptr %19, align 8
store ptr %49, ptr %18, align 8
%50 = call i32 @i2d_ASN1_OCTET_STRING(ptr noundef %14, ptr noundef %18)
%51 = load i32, ptr %15, align 4
%52 = load ptr, ptr %19, align 8
%53 = load ptr, ptr %11, align 8
%54 = load ptr, ptr %13, align 8
%55 = load i32, ptr @RSA_PKCS1_PADDING, align 4
%56 = call i32 @RSA_private_encrypt(i32 noundef %51, ptr noundef %52, ptr noundef %53, ptr noundef %54, i32 noundef %55)
store i32 %56, ptr %15, align 4
%57 = load i32, ptr %15, align 4
%58 = icmp sle i32 %57, 0
br i1 %58, label %59, label %60
59: ; preds = %48
store i32 0, ptr %17, align 4
br label %63
60: ; preds = %48
%61 = load i32, ptr %15, align 4
%62 = load ptr, ptr %12, align 8
store i32 %61, ptr %62, align 4
br label %63
63: ; preds = %60, %59
%64 = load ptr, ptr %19, align 8
%65 = load i32, ptr %16, align 4
%66 = add i32 %65, 1
%67 = call i32 @OPENSSL_cleanse(ptr noundef %64, i32 noundef %66)
%68 = load ptr, ptr %19, align 8
%69 = call i32 @free(ptr noundef %68)
%70 = load i32, ptr %17, align 4
store i32 %70, ptr %7, align 4
br label %71
71: ; preds = %63, %44, %34
%72 = load i32, ptr %7, align 4
ret i32 %72
}
declare i32 @i2d_ASN1_OCTET_STRING(ptr noundef, ptr noundef) #1
declare i32 @RSA_size(ptr noundef) #1
declare i32 @RSAerr(i32 noundef, i32 noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @RSA_private_encrypt(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @OPENSSL_cleanse(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpucjbwht_.c"
target datalayout = "e-m:e-p270: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_3__ = type { i32, ptr, i32 }
@V_ASN1_OCTET_STRING = dso_local global i32 0, align 4
@RSA_PKCS1_PADDING_SIZE = dso_local global i32 0, align 4
@RSA_F_RSA_SIGN_ASN1_OCTET_STRING = dso_local global i32 0, align 4
@RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY = dso_local global i32 0, align 4
@ERR_R_MALLOC_FAILURE = dso_local global i32 0, align 4
@RSA_PKCS1_PADDING = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @RSA_sign_ASN1_OCTET_STRING(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca %struct.TYPE_3__, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
store i32 %0, ptr %8, align 4
store ptr %1, ptr %9, align 8
store i32 %2, ptr %10, align 4
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
store i32 1, ptr %17, align 4
%20 = load i32, ptr @V_ASN1_OCTET_STRING, align 4
%21 = getelementptr inbounds %struct.TYPE_3__, ptr %14, i32 0, i32 2
store i32 %20, ptr %21, align 8
%22 = load i32, ptr %10, align 4
%23 = getelementptr inbounds %struct.TYPE_3__, ptr %14, i32 0, i32 0
store i32 %22, ptr %23, align 8
%24 = load ptr, ptr %9, align 8
%25 = getelementptr inbounds %struct.TYPE_3__, ptr %14, i32 0, i32 1
store ptr %24, ptr %25, align 8
%26 = call i32 @i2d_ASN1_OCTET_STRING(ptr noundef %14, ptr noundef null)
store i32 %26, ptr %15, align 4
%27 = load ptr, ptr %13, align 8
%28 = call i32 @RSA_size(ptr noundef %27)
store i32 %28, ptr %16, align 4
%29 = load i32, ptr %15, align 4
%30 = load i32, ptr %16, align 4
%31 = load i32, ptr @RSA_PKCS1_PADDING_SIZE, align 4
%32 = sub nsw i32 %30, %31
%33 = icmp sgt i32 %29, %32
br i1 %33, label %34, label %38
34: ; preds = %6
%35 = load i32, ptr @RSA_F_RSA_SIGN_ASN1_OCTET_STRING, align 4
%36 = load i32, ptr @RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY, align 4
%37 = call i32 @RSAerr(i32 noundef %35, i32 noundef %36)
store i32 0, ptr %7, align 4
br label %71
38: ; preds = %6
%39 = load i32, ptr %16, align 4
%40 = add i32 %39, 1
%41 = call ptr @malloc(i32 noundef %40)
store ptr %41, ptr %19, align 8
%42 = load ptr, ptr %19, align 8
%43 = icmp eq ptr %42, null
br i1 %43, label %44, label %48
44: ; preds = %38
%45 = load i32, ptr @RSA_F_RSA_SIGN_ASN1_OCTET_STRING, align 4
%46 = load i32, ptr @ERR_R_MALLOC_FAILURE, align 4
%47 = call i32 @RSAerr(i32 noundef %45, i32 noundef %46)
store i32 0, ptr %7, align 4
br label %71
48: ; preds = %38
%49 = load ptr, ptr %19, align 8
store ptr %49, ptr %18, align 8
%50 = call i32 @i2d_ASN1_OCTET_STRING(ptr noundef %14, ptr noundef %18)
%51 = load i32, ptr %15, align 4
%52 = load ptr, ptr %19, align 8
%53 = load ptr, ptr %11, align 8
%54 = load ptr, ptr %13, align 8
%55 = load i32, ptr @RSA_PKCS1_PADDING, align 4
%56 = call i32 @RSA_private_encrypt(i32 noundef %51, ptr noundef %52, ptr noundef %53, ptr noundef %54, i32 noundef %55)
store i32 %56, ptr %15, align 4
%57 = load i32, ptr %15, align 4
%58 = icmp sle i32 %57, 0
br i1 %58, label %59, label %60
59: ; preds = %48
store i32 0, ptr %17, align 4
br label %63
60: ; preds = %48
%61 = load i32, ptr %15, align 4
%62 = load ptr, ptr %12, align 8
store i32 %61, ptr %62, align 4
br label %63
63: ; preds = %60, %59
%64 = load ptr, ptr %19, align 8
%65 = load i32, ptr %16, align 4
%66 = add i32 %65, 1
%67 = call i32 @OPENSSL_cleanse(ptr noundef %64, i32 noundef %66)
%68 = load ptr, ptr %19, align 8
%69 = call i32 @free(ptr noundef %68)
%70 = load i32, ptr %17, align 4
store i32 %70, ptr %7, align 4
br label %71
71: ; preds = %63, %44, %34
%72 = load i32, ptr %7, align 4
ret i32 %72
}
declare i32 @i2d_ASN1_OCTET_STRING(ptr noundef, ptr noundef) #1
declare i32 @RSA_size(ptr noundef) #1
declare i32 @RSAerr(i32 noundef, i32 noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @RSA_private_encrypt(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @OPENSSL_cleanse(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"}
|
; ModuleID = '/tmp/tmp4ffbulcv.c'
source_filename = "/tmp/tmp4ffbulcv.c"
target datalayout = "e-m:e-p270: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/tmp4ffbulcv.c"
target datalayout = "e-m:e-p270: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/tmpasx71bkl.c'
source_filename = "/tmp/tmpasx71bkl.c"
target datalayout = "e-m:e-p270: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/tmpasx71bkl.c"
target datalayout = "e-m:e-p270: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/tmp2ij2wafe.c'
source_filename = "/tmp/tmp2ij2wafe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"bash\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"-c\00", align 1
@.str.2 = private unnamed_addr constant [39 x i8] c"echo 1 > /proc/sys/net/ipv4/ip_forward\00", align 1
@__const.forward_ip.forw_argv = private unnamed_addr constant [4 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr null], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @forward_ip(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [4 x ptr], align 16
store ptr %0, ptr %2, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.forward_ip.forw_argv, i64 32, i1 false)
%4 = getelementptr inbounds [4 x ptr], ptr %3, i64 0, i64 0
%5 = load ptr, ptr %2, align 8
%6 = call i32 @do_exec(ptr noundef %4, i32 noundef 0, ptr noundef %5)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @do_exec(ptr noundef, i32 noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2ij2wafe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"bash\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"-c\00", align 1
@.str.2 = private unnamed_addr constant [39 x i8] c"echo 1 > /proc/sys/net/ipv4/ip_forward\00", align 1
@__const.forward_ip.forw_argv = private unnamed_addr constant [4 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr null], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @forward_ip(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [4 x ptr], align 16
store ptr %0, ptr %2, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.forward_ip.forw_argv, i64 32, i1 false)
%4 = getelementptr inbounds [4 x ptr], ptr %3, i64 0, i64 0
%5 = load ptr, ptr %2, align 8
%6 = call i32 @do_exec(ptr noundef %4, i32 noundef 0, ptr noundef %5)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @do_exec(ptr noundef, i32 noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfp1mnti1.c'
source_filename = "/tmp/tmpfp1mnti1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memcpy(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %7, align 8
%10 = load ptr, ptr %5, align 8
store ptr %10, ptr %8, align 8
br label %11
11: ; preds = %15, %3
%12 = load i32, ptr %6, align 4
%13 = add i32 %12, -1
store i32 %13, ptr %6, align 4
%14 = icmp ugt i32 %12, 0
br i1 %14, label %15, label %21
15: ; preds = %11
%16 = load ptr, ptr %8, align 8
%17 = getelementptr inbounds i8, ptr %16, i32 1
store ptr %17, ptr %8, align 8
%18 = load i8, ptr %16, align 1
%19 = load ptr, ptr %7, align 8
%20 = getelementptr inbounds i8, ptr %19, i32 1
store ptr %20, ptr %7, align 8
store i8 %18, ptr %19, align 1
br label %11, !llvm.loop !6
21: ; preds = %11
%22 = load ptr, ptr %4, align 8
ret ptr %22
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpfp1mnti1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memcpy(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %7, align 8
%10 = load ptr, ptr %5, align 8
store ptr %10, ptr %8, align 8
%11 = load i32, ptr %6, align 4
%12 = add i32 %11, -1
store i32 %12, ptr %6, align 4
%13 = icmp ugt i32 %11, 0
br i1 %13, label %.lr.ph, label %23
.lr.ph: ; preds = %3
br label %14
14: ; preds = %.lr.ph, %14
%15 = load ptr, ptr %8, align 8
%16 = getelementptr inbounds i8, ptr %15, i32 1
store ptr %16, ptr %8, align 8
%17 = load i8, ptr %15, align 1
%18 = load ptr, ptr %7, align 8
%19 = getelementptr inbounds i8, ptr %18, i32 1
store ptr %19, ptr %7, align 8
store i8 %17, ptr %18, align 1
%20 = load i32, ptr %6, align 4
%21 = add i32 %20, -1
store i32 %21, ptr %6, align 4
%22 = icmp ugt i32 %20, 0
br i1 %22, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %23
23: ; preds = %._crit_edge, %3
%24 = load ptr, ptr %4, align 8
ret ptr %24
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp0ujj_uzj.c'
source_filename = "/tmp/tmp0ujj_uzj.c"
target datalayout = "e-m:e-p270: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 [24 x i8] c"Usage: %s ignored seed\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%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 [11 x i8], align 1
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = 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
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 0
%14 = load ptr, ptr %13, align 8
%15 = call ptr @environ_get_application_name(ptr noundef %14)
store ptr %15, ptr %6, align 8
%16 = load i32, ptr %4, align 4
%17 = load ptr, ptr %5, align 8
%18 = load ptr, ptr %6, align 8
%19 = call i32 @appaserver_error_starting_argv_append_file(i32 noundef %16, ptr noundef %17, ptr noundef %18)
%20 = load i32, ptr %4, align 4
%21 = icmp ne i32 %20, 3
br i1 %21, label %22, label %29
22: ; preds = %2
%23 = load i32, ptr @stderr, align 4
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 0
%26 = load ptr, ptr %25, align 8
%27 = call i32 @fprintf(i32 noundef %23, ptr noundef @.str, ptr noundef %26)
%28 = call i32 @exit(i32 noundef 1) #3
unreachable
29: ; preds = %2
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 2
%32 = load ptr, ptr %31, align 8
%33 = call i32 @atoi(ptr noundef %32)
store i32 %33, ptr %11, align 4
%34 = call i64 @time(ptr noundef null)
%35 = load i32, ptr %11, align 4
%36 = sext i32 %35 to i64
%37 = add nsw i64 %36, %34
%38 = trunc i64 %37 to i32
store i32 %38, ptr %11, align 4
%39 = load i32, ptr %11, align 4
%40 = call i32 @srand48(i32 noundef %39)
%41 = getelementptr inbounds [11 x i8], ptr %7, i64 0, i64 0
store ptr %41, ptr %8, align 8
%42 = call i32 @timlib_random(i32 noundef 9)
%43 = sub nsw i32 %42, 1
%44 = add nsw i32 %43, 49
store i32 %44, ptr %10, align 4
%45 = load i32, ptr %10, align 4
%46 = trunc i32 %45 to i8
%47 = load ptr, ptr %8, align 8
%48 = getelementptr inbounds i8, ptr %47, i32 1
store ptr %48, ptr %8, align 8
store i8 %46, ptr %47, align 1
store i32 0, ptr %9, align 4
br label %49
49: ; preds = %60, %29
%50 = load i32, ptr %9, align 4
%51 = icmp slt i32 %50, 9
br i1 %51, label %52, label %63
52: ; preds = %49
%53 = call i32 @timlib_random(i32 noundef 10)
%54 = sub nsw i32 %53, 1
%55 = add nsw i32 %54, 48
store i32 %55, ptr %10, align 4
%56 = load i32, ptr %10, align 4
%57 = trunc i32 %56 to i8
%58 = load ptr, ptr %8, align 8
%59 = getelementptr inbounds i8, ptr %58, i32 1
store ptr %59, ptr %8, align 8
store i8 %57, ptr %58, align 1
br label %60
60: ; preds = %52
%61 = load i32, ptr %9, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %9, align 4
br label %49, !llvm.loop !6
63: ; preds = %49
%64 = load ptr, ptr %8, align 8
store i8 0, ptr %64, align 1
%65 = getelementptr inbounds [11 x i8], ptr %7, i64 0, i64 0
%66 = call i32 @printf(ptr noundef @.str.1, ptr noundef %65)
ret i32 0
}
declare ptr @environ_get_application_name(ptr noundef) #1
declare i32 @appaserver_error_starting_argv_append_file(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare i64 @time(ptr noundef) #1
declare i32 @srand48(i32 noundef) #1
declare i32 @timlib_random(i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0ujj_uzj.c"
target datalayout = "e-m:e-p270: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 [24 x i8] c"Usage: %s ignored seed\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%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 [11 x i8], align 1
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = 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
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 0
%14 = load ptr, ptr %13, align 8
%15 = call ptr @environ_get_application_name(ptr noundef %14)
store ptr %15, ptr %6, align 8
%16 = load i32, ptr %4, align 4
%17 = load ptr, ptr %5, align 8
%18 = load ptr, ptr %6, align 8
%19 = call i32 @appaserver_error_starting_argv_append_file(i32 noundef %16, ptr noundef %17, ptr noundef %18)
%20 = load i32, ptr %4, align 4
%21 = icmp ne i32 %20, 3
br i1 %21, label %22, label %29
22: ; preds = %2
%23 = load i32, ptr @stderr, align 4
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 0
%26 = load ptr, ptr %25, align 8
%27 = call i32 @fprintf(i32 noundef %23, ptr noundef @.str, ptr noundef %26)
%28 = call i32 @exit(i32 noundef 1) #3
unreachable
29: ; preds = %2
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 2
%32 = load ptr, ptr %31, align 8
%33 = call i32 @atoi(ptr noundef %32)
store i32 %33, ptr %11, align 4
%34 = call i64 @time(ptr noundef null)
%35 = load i32, ptr %11, align 4
%36 = sext i32 %35 to i64
%37 = add nsw i64 %36, %34
%38 = trunc i64 %37 to i32
store i32 %38, ptr %11, align 4
%39 = load i32, ptr %11, align 4
%40 = call i32 @srand48(i32 noundef %39)
%41 = getelementptr inbounds [11 x i8], ptr %7, i64 0, i64 0
store ptr %41, ptr %8, align 8
%42 = call i32 @timlib_random(i32 noundef 9)
%43 = sub nsw i32 %42, 1
%44 = add nsw i32 %43, 49
store i32 %44, ptr %10, align 4
%45 = load i32, ptr %10, align 4
%46 = trunc i32 %45 to i8
%47 = load ptr, ptr %8, align 8
%48 = getelementptr inbounds i8, ptr %47, i32 1
store ptr %48, ptr %8, align 8
store i8 %46, ptr %47, align 1
store i32 0, ptr %9, align 4
%49 = load i32, ptr %9, align 4
%50 = icmp slt i32 %49, 9
br i1 %50, label %.lr.ph, label %64
.lr.ph: ; preds = %29
br label %51
51: ; preds = %.lr.ph, %59
%52 = call i32 @timlib_random(i32 noundef 10)
%53 = sub nsw i32 %52, 1
%54 = add nsw i32 %53, 48
store i32 %54, ptr %10, align 4
%55 = load i32, ptr %10, align 4
%56 = trunc i32 %55 to i8
%57 = load ptr, ptr %8, align 8
%58 = getelementptr inbounds i8, ptr %57, i32 1
store ptr %58, ptr %8, align 8
store i8 %56, ptr %57, align 1
br label %59
59: ; preds = %51
%60 = load i32, ptr %9, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %9, align 4
%62 = load i32, ptr %9, align 4
%63 = icmp slt i32 %62, 9
br i1 %63, label %51, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %59
br label %64
64: ; preds = %._crit_edge, %29
%65 = load ptr, ptr %8, align 8
store i8 0, ptr %65, align 1
%66 = getelementptr inbounds [11 x i8], ptr %7, i64 0, i64 0
%67 = call i32 @printf(ptr noundef @.str.1, ptr noundef %66)
ret i32 0
}
declare ptr @environ_get_application_name(ptr noundef) #1
declare i32 @appaserver_error_starting_argv_append_file(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare i64 @time(ptr noundef) #1
declare i32 @srand48(i32 noundef) #1
declare i32 @timlib_random(i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpa74g7_pn.c'
source_filename = "/tmp/tmpa74g7_pn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @digitalWriteBytePiFace(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @writeByte(i32 noundef 18, i32 noundef %3)
ret void
}
declare i32 @writeByte(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/tmpa74g7_pn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @digitalWriteBytePiFace(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @writeByte(i32 noundef 18, i32 noundef %3)
ret void
}
declare i32 @writeByte(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/tmpxk75zs3z.c'
source_filename = "/tmp/tmpxk75zs3z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @arc_math(double noundef %0, double noundef %1, double noundef %2, double noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, i32 noundef %8) #0 {
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca i32, align 4
%20 = alloca double, align 8
%21 = alloca double, align 8
%22 = alloca double, align 8
store double %0, ptr %11, align 8
store double %1, ptr %12, align 8
store double %2, ptr %13, align 8
store double %3, ptr %14, align 8
store ptr %4, ptr %15, align 8
store ptr %5, ptr %16, align 8
store ptr %6, ptr %17, align 8
store ptr %7, ptr %18, align 8
store i32 %8, ptr %19, align 4
%23 = load ptr, ptr %15, align 8
%24 = load double, ptr %23, align 8
%25 = call i32 @isnan(double noundef %24)
%26 = icmp ne i32 %25, 0
br i1 %26, label %94, label %27
27: ; preds = %9
%28 = load double, ptr %13, align 8
%29 = load double, ptr %11, align 8
%30 = fsub double %28, %29
%31 = load double, ptr %14, align 8
%32 = load double, ptr %12, align 8
%33 = fsub double %31, %32
%34 = call double @hypot(double noundef %30, double noundef %33) #4
store double %34, ptr %20, align 8
%35 = load double, ptr %11, align 8
%36 = load double, ptr %13, align 8
%37 = fsub double %35, %36
%38 = fdiv double %37, 2.000000e+00
%39 = load i32, ptr %19, align 4
%40 = icmp ne i32 %39, 0
%41 = zext i1 %40 to i64
%42 = select i1 %40, i32 -1, i32 1
%43 = load ptr, ptr %15, align 8
%44 = load double, ptr %43, align 8
%45 = load ptr, ptr %15, align 8
%46 = load double, ptr %45, align 8
%47 = load double, ptr %20, align 8
%48 = load double, ptr %20, align 8
%49 = fmul double %47, %48
%50 = fdiv double %49, 4.000000e+00
%51 = fneg double %50
%52 = call double @llvm.fmuladd.f64(double %44, double %46, double %51)
%53 = call i32 @sqrt(double noundef %52)
%54 = mul nsw i32 %42, %53
%55 = sitofp i32 %54 to double
%56 = load double, ptr %12, align 8
%57 = load double, ptr %14, align 8
%58 = fsub double %56, %57
%59 = fmul double %55, %58
%60 = load double, ptr %20, align 8
%61 = fdiv double %59, %60
%62 = fadd double %38, %61
%63 = load ptr, ptr %16, align 8
store double %62, ptr %63, align 8
%64 = load double, ptr %12, align 8
%65 = load double, ptr %14, align 8
%66 = fsub double %64, %65
%67 = fdiv double %66, 2.000000e+00
%68 = load i32, ptr %19, align 4
%69 = icmp ne i32 %68, 0
%70 = zext i1 %69 to i64
%71 = select i1 %69, i32 1, i32 -1
%72 = load ptr, ptr %15, align 8
%73 = load double, ptr %72, align 8
%74 = load ptr, ptr %15, align 8
%75 = load double, ptr %74, align 8
%76 = load double, ptr %20, align 8
%77 = load double, ptr %20, align 8
%78 = fmul double %76, %77
%79 = fdiv double %78, 4.000000e+00
%80 = fneg double %79
%81 = call double @llvm.fmuladd.f64(double %73, double %75, double %80)
%82 = call i32 @sqrt(double noundef %81)
%83 = mul nsw i32 %71, %82
%84 = sitofp i32 %83 to double
%85 = load double, ptr %11, align 8
%86 = load double, ptr %13, align 8
%87 = fsub double %85, %86
%88 = fmul double %84, %87
%89 = load double, ptr %20, align 8
%90 = fdiv double %88, %89
%91 = fadd double %67, %90
%92 = load ptr, ptr %17, align 8
store double %91, ptr %92, align 8
%93 = load ptr, ptr %18, align 8
store double 0.000000e+00, ptr %93, align 8
br label %101
94: ; preds = %9
%95 = load ptr, ptr %16, align 8
%96 = load double, ptr %95, align 8
%97 = load ptr, ptr %17, align 8
%98 = load double, ptr %97, align 8
%99 = call double @hypot(double noundef %96, double noundef %98) #4
%100 = load ptr, ptr %15, align 8
store double %99, ptr %100, align 8
br label %101
101: ; preds = %94, %27
%102 = load double, ptr %14, align 8
%103 = load ptr, ptr %17, align 8
%104 = load double, ptr %103, align 8
%105 = fsub double %102, %104
%106 = load double, ptr %13, align 8
%107 = load ptr, ptr %16, align 8
%108 = load double, ptr %107, align 8
%109 = fsub double %106, %108
%110 = call double @atan2(double noundef %105, double noundef %109) #4
store double %110, ptr %21, align 8
%111 = load double, ptr %12, align 8
%112 = load ptr, ptr %17, align 8
%113 = load double, ptr %112, align 8
%114 = fsub double %111, %113
%115 = load double, ptr %11, align 8
%116 = load ptr, ptr %16, align 8
%117 = load double, ptr %116, align 8
%118 = fsub double %115, %117
%119 = call double @atan2(double noundef %114, double noundef %118) #4
store double %119, ptr %22, align 8
%120 = load double, ptr %21, align 8
%121 = load double, ptr %22, align 8
%122 = fcmp oge double %120, %121
br i1 %122, label %123, label %126
123: ; preds = %101
%124 = load i32, ptr %19, align 4
%125 = icmp ne i32 %124, 0
br i1 %125, label %133, label %126
126: ; preds = %123, %101
%127 = load double, ptr %22, align 8
%128 = load double, ptr %21, align 8
%129 = fcmp ogt double %127, %128
br i1 %129, label %130, label %142
130: ; preds = %126
%131 = load i32, ptr %19, align 4
%132 = icmp ne i32 %131, 0
br i1 %132, label %142, label %133
133: ; preds = %130, %123
%134 = load double, ptr %21, align 8
%135 = load double, ptr %22, align 8
%136 = fsub double %134, %135
%137 = call i32 @fabs(double noundef %136)
%138 = sitofp i32 %137 to double
%139 = load ptr, ptr %15, align 8
%140 = load double, ptr %139, align 8
%141 = fmul double %138, %140
store double %141, ptr %10, align 8
br label %154
142: ; preds = %130, %126
%143 = load i32, ptr @M_PI, align 4
%144 = mul nsw i32 2, %143
%145 = load double, ptr %21, align 8
%146 = load double, ptr %22, align 8
%147 = fsub double %145, %146
%148 = call i32 @fabs(double noundef %147)
%149 = sub nsw i32 %144, %148
%150 = sitofp i32 %149 to double
%151 = load ptr, ptr %15, align 8
%152 = load double, ptr %151, align 8
%153 = fmul double %150, %152
store double %153, ptr %10, align 8
br label %154
154: ; preds = %142, %133
%155 = load double, ptr %10, align 8
ret double %155
}
declare i32 @isnan(double noundef) #1
; Function Attrs: nounwind
declare double @hypot(double noundef, double noundef) #2
declare i32 @sqrt(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
; Function Attrs: nounwind
declare double @atan2(double noundef, double noundef) #2
declare i32 @fabs(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" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxk75zs3z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @arc_math(double noundef %0, double noundef %1, double noundef %2, double noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, i32 noundef %8) #0 {
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca i32, align 4
%20 = alloca double, align 8
%21 = alloca double, align 8
%22 = alloca double, align 8
store double %0, ptr %11, align 8
store double %1, ptr %12, align 8
store double %2, ptr %13, align 8
store double %3, ptr %14, align 8
store ptr %4, ptr %15, align 8
store ptr %5, ptr %16, align 8
store ptr %6, ptr %17, align 8
store ptr %7, ptr %18, align 8
store i32 %8, ptr %19, align 4
%23 = load ptr, ptr %15, align 8
%24 = load double, ptr %23, align 8
%25 = call i32 @isnan(double noundef %24)
%26 = icmp ne i32 %25, 0
br i1 %26, label %94, label %27
27: ; preds = %9
%28 = load double, ptr %13, align 8
%29 = load double, ptr %11, align 8
%30 = fsub double %28, %29
%31 = load double, ptr %14, align 8
%32 = load double, ptr %12, align 8
%33 = fsub double %31, %32
%34 = call double @hypot(double noundef %30, double noundef %33) #4
store double %34, ptr %20, align 8
%35 = load double, ptr %11, align 8
%36 = load double, ptr %13, align 8
%37 = fsub double %35, %36
%38 = fdiv double %37, 2.000000e+00
%39 = load i32, ptr %19, align 4
%40 = icmp ne i32 %39, 0
%41 = zext i1 %40 to i64
%42 = select i1 %40, i32 -1, i32 1
%43 = load ptr, ptr %15, align 8
%44 = load double, ptr %43, align 8
%45 = load ptr, ptr %15, align 8
%46 = load double, ptr %45, align 8
%47 = load double, ptr %20, align 8
%48 = load double, ptr %20, align 8
%49 = fmul double %47, %48
%50 = fdiv double %49, 4.000000e+00
%51 = fneg double %50
%52 = call double @llvm.fmuladd.f64(double %44, double %46, double %51)
%53 = call i32 @sqrt(double noundef %52)
%54 = mul nsw i32 %42, %53
%55 = sitofp i32 %54 to double
%56 = load double, ptr %12, align 8
%57 = load double, ptr %14, align 8
%58 = fsub double %56, %57
%59 = fmul double %55, %58
%60 = load double, ptr %20, align 8
%61 = fdiv double %59, %60
%62 = fadd double %38, %61
%63 = load ptr, ptr %16, align 8
store double %62, ptr %63, align 8
%64 = load double, ptr %12, align 8
%65 = load double, ptr %14, align 8
%66 = fsub double %64, %65
%67 = fdiv double %66, 2.000000e+00
%68 = load i32, ptr %19, align 4
%69 = icmp ne i32 %68, 0
%70 = zext i1 %69 to i64
%71 = select i1 %69, i32 1, i32 -1
%72 = load ptr, ptr %15, align 8
%73 = load double, ptr %72, align 8
%74 = load ptr, ptr %15, align 8
%75 = load double, ptr %74, align 8
%76 = load double, ptr %20, align 8
%77 = load double, ptr %20, align 8
%78 = fmul double %76, %77
%79 = fdiv double %78, 4.000000e+00
%80 = fneg double %79
%81 = call double @llvm.fmuladd.f64(double %73, double %75, double %80)
%82 = call i32 @sqrt(double noundef %81)
%83 = mul nsw i32 %71, %82
%84 = sitofp i32 %83 to double
%85 = load double, ptr %11, align 8
%86 = load double, ptr %13, align 8
%87 = fsub double %85, %86
%88 = fmul double %84, %87
%89 = load double, ptr %20, align 8
%90 = fdiv double %88, %89
%91 = fadd double %67, %90
%92 = load ptr, ptr %17, align 8
store double %91, ptr %92, align 8
%93 = load ptr, ptr %18, align 8
store double 0.000000e+00, ptr %93, align 8
br label %101
94: ; preds = %9
%95 = load ptr, ptr %16, align 8
%96 = load double, ptr %95, align 8
%97 = load ptr, ptr %17, align 8
%98 = load double, ptr %97, align 8
%99 = call double @hypot(double noundef %96, double noundef %98) #4
%100 = load ptr, ptr %15, align 8
store double %99, ptr %100, align 8
br label %101
101: ; preds = %94, %27
%102 = load double, ptr %14, align 8
%103 = load ptr, ptr %17, align 8
%104 = load double, ptr %103, align 8
%105 = fsub double %102, %104
%106 = load double, ptr %13, align 8
%107 = load ptr, ptr %16, align 8
%108 = load double, ptr %107, align 8
%109 = fsub double %106, %108
%110 = call double @atan2(double noundef %105, double noundef %109) #4
store double %110, ptr %21, align 8
%111 = load double, ptr %12, align 8
%112 = load ptr, ptr %17, align 8
%113 = load double, ptr %112, align 8
%114 = fsub double %111, %113
%115 = load double, ptr %11, align 8
%116 = load ptr, ptr %16, align 8
%117 = load double, ptr %116, align 8
%118 = fsub double %115, %117
%119 = call double @atan2(double noundef %114, double noundef %118) #4
store double %119, ptr %22, align 8
%120 = load double, ptr %21, align 8
%121 = load double, ptr %22, align 8
%122 = fcmp oge double %120, %121
br i1 %122, label %123, label %126
123: ; preds = %101
%124 = load i32, ptr %19, align 4
%125 = icmp ne i32 %124, 0
br i1 %125, label %133, label %126
126: ; preds = %123, %101
%127 = load double, ptr %22, align 8
%128 = load double, ptr %21, align 8
%129 = fcmp ogt double %127, %128
br i1 %129, label %130, label %142
130: ; preds = %126
%131 = load i32, ptr %19, align 4
%132 = icmp ne i32 %131, 0
br i1 %132, label %142, label %133
133: ; preds = %130, %123
%134 = load double, ptr %21, align 8
%135 = load double, ptr %22, align 8
%136 = fsub double %134, %135
%137 = call i32 @fabs(double noundef %136)
%138 = sitofp i32 %137 to double
%139 = load ptr, ptr %15, align 8
%140 = load double, ptr %139, align 8
%141 = fmul double %138, %140
store double %141, ptr %10, align 8
br label %154
142: ; preds = %130, %126
%143 = load i32, ptr @M_PI, align 4
%144 = mul nsw i32 2, %143
%145 = load double, ptr %21, align 8
%146 = load double, ptr %22, align 8
%147 = fsub double %145, %146
%148 = call i32 @fabs(double noundef %147)
%149 = sub nsw i32 %144, %148
%150 = sitofp i32 %149 to double
%151 = load ptr, ptr %15, align 8
%152 = load double, ptr %151, align 8
%153 = fmul double %150, %152
store double %153, ptr %10, align 8
br label %154
154: ; preds = %142, %133
%155 = load double, ptr %10, align 8
ret double %155
}
declare i32 @isnan(double noundef) #1
; Function Attrs: nounwind
declare double @hypot(double noundef, double noundef) #2
declare i32 @sqrt(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
; Function Attrs: nounwind
declare double @atan2(double noundef, double noundef) #2
declare i32 @fabs(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" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbapwmn8w.c'
source_filename = "/tmp/tmpbapwmn8w.c"
target datalayout = "e-m:e-p270: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/tmpbapwmn8w.c"
target datalayout = "e-m:e-p270: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/tmpw6ekjcb5.c'
source_filename = "/tmp/tmpw6ekjcb5.c"
target datalayout = "e-m:e-p270: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_4__ = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @get_XEvent_xkey_serial(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %struct.TYPE_4__, ptr %3, i32 0, i32 0
%5 = getelementptr inbounds %struct.TYPE_3__, ptr %4, i32 0, i32 0
%6 = load i64, ptr %5, align 8
ret i64 %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw6ekjcb5.c"
target datalayout = "e-m:e-p270: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_4__ = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @get_XEvent_xkey_serial(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %struct.TYPE_4__, ptr %3, i32 0, i32 0
%5 = getelementptr inbounds %struct.TYPE_3__, ptr %4, i32 0, i32 0
%6 = load i64, ptr %5, align 8
ret i64 %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprekdyski.c'
source_filename = "/tmp/tmprekdyski.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"mod\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"couldn't open '%s' !\0A\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [21 x i8] c"file is too small !\0A\00", align 1
@.str.4 = private unnamed_addr constant [31 x i8] c"file is not a ROM extension !\0A\00", align 1
@.str.5 = private unnamed_addr constant [29 x i8] c"sum mismatch should be %04X\0A\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"rb+\00", align 1
@.str.7 = private unnamed_addr constant [45 x i8] c"invalid ROM, please use mod argument to fix\0A\00", align 1
@.str.8 = private unnamed_addr constant [31 x i8] c"file is a valid ROM extension\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 i32, align 4
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i8, align 1
%14 = alloca i64, align 8
%15 = alloca i32, align 4
%16 = alloca i8, align 1
%17 = alloca ptr, align 8
%18 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr null, ptr %6, align 8
store i32 0, ptr %8, align 4
%19 = load i32, ptr %4, align 4
%20 = icmp sgt i32 %19, 1
br i1 %20, label %21, label %36
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
store ptr %24, ptr %6, align 8
%25 = load i32, ptr %4, align 4
%26 = icmp sgt i32 %25, 2
br i1 %26, label %27, label %35
27: ; preds = %21
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 2
%30 = load ptr, ptr %29, align 8
%31 = call i32 @strcmp(ptr noundef %30, ptr noundef @.str)
%32 = icmp ne i32 %31, 0
br i1 %32, label %34, label %33
33: ; preds = %27
store i32 1, ptr %8, align 4
br label %34
34: ; preds = %33, %27
br label %35
35: ; preds = %34, %21
br label %36
36: ; preds = %35, %2
%37 = load ptr, ptr %6, align 8
%38 = call ptr @fopen(ptr noundef %37, ptr noundef @.str.1)
store ptr %38, ptr %7, align 8
%39 = load ptr, ptr %7, align 8
%40 = icmp ne ptr %39, null
br i1 %40, label %44, label %41
41: ; preds = %36
%42 = load ptr, ptr %6, align 8
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %42)
br label %182
44: ; preds = %36
%45 = load ptr, ptr %7, align 8
%46 = load i32, ptr @SEEK_END, align 4
%47 = call i32 @fseek(ptr noundef %45, i32 noundef 0, i32 noundef %46)
%48 = load ptr, ptr %7, align 8
%49 = call i64 @ftell(ptr noundef %48)
store i64 %49, ptr %9, align 8
%50 = load i64, ptr %9, align 8
%51 = icmp slt i64 %50, 3
br i1 %51, label %52, label %55
52: ; preds = %44
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%54 = call i32 @exit(i32 noundef 42) #3
unreachable
55: ; preds = %44
%56 = load ptr, ptr %7, align 8
%57 = call i32 @rewind(ptr noundef %56)
%58 = load i64, ptr %9, align 8
%59 = call ptr @malloc(i64 noundef %58)
store ptr %59, ptr %11, align 8
%60 = load ptr, ptr %11, align 8
%61 = icmp ne ptr %60, null
br i1 %61, label %62, label %179
62: ; preds = %55
store i32 0, ptr %12, align 4
store i32 0, ptr %15, align 4
store i8 0, ptr %16, align 1
%63 = load ptr, ptr %11, align 8
%64 = load i64, ptr %9, align 8
%65 = load ptr, ptr %7, align 8
%66 = call i32 @fread(ptr noundef %63, i64 noundef %64, i32 noundef 1, ptr noundef %65)
%67 = load ptr, ptr %11, align 8
%68 = getelementptr inbounds i8, ptr %67, i64 0
%69 = load i8, ptr %68, align 1
%70 = zext i8 %69 to i32
%71 = icmp ne i32 %70, 85
br i1 %71, label %78, label %72
72: ; preds = %62
%73 = load ptr, ptr %11, align 8
%74 = getelementptr inbounds i8, ptr %73, i64 1
%75 = load i8, ptr %74, align 1
%76 = zext i8 %75 to i32
%77 = icmp ne i32 %76, 170
br i1 %77, label %78, label %81
78: ; preds = %72, %62
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%80 = call i32 @exit(i32 noundef 42) #3
unreachable
81: ; preds = %72
%82 = load ptr, ptr %11, align 8
%83 = getelementptr inbounds i8, ptr %82, i64 2
%84 = load i8, ptr %83, align 1
store i8 %84, ptr %13, align 1
%85 = load i8, ptr %13, align 1
%86 = icmp ne i8 %85, 0
br i1 %86, label %92, label %87
87: ; preds = %81
%88 = load i64, ptr %9, align 8
%89 = sdiv i64 %88, 512
%90 = add nsw i64 %89, 1
%91 = trunc i64 %90 to i8
store i8 %91, ptr %13, align 1
br label %92
92: ; preds = %87, %81
%93 = load i8, ptr %13, align 1
%94 = sext i8 %93 to i32
%95 = mul nsw i32 %94, 512
%96 = sext i32 %95 to i64
store i64 %96, ptr %14, align 8
%97 = load i64, ptr %9, align 8
%98 = load i64, ptr %14, align 8
%99 = icmp slt i64 %97, %98
br i1 %99, label %100, label %114
100: ; preds = %92
%101 = load ptr, ptr %11, align 8
store ptr %101, ptr %17, align 8
%102 = load i64, ptr %14, align 8
%103 = call ptr @malloc(i64 noundef %102)
store ptr %103, ptr %11, align 8
%104 = load ptr, ptr %11, align 8
%105 = load i64, ptr %14, align 8
%106 = call i32 @memset(ptr noundef %104, i32 noundef 0, i64 noundef %105)
%107 = load ptr, ptr %11, align 8
%108 = load ptr, ptr %17, align 8
%109 = load i64, ptr %9, align 8
%110 = call i32 @memcpy(ptr noundef %107, ptr noundef %108, i64 noundef %109)
%111 = load ptr, ptr %17, align 8
%112 = call i32 @free(ptr noundef %111)
%113 = load i64, ptr %14, align 8
store i64 %113, ptr %9, align 8
br label %114
114: ; preds = %100, %92
store i64 0, ptr %10, align 8
br label %115
115: ; preds = %128, %114
%116 = load i64, ptr %10, align 8
%117 = load i64, ptr %14, align 8
%118 = icmp slt i64 %116, %117
br i1 %118, label %119, label %131
119: ; preds = %115
%120 = load ptr, ptr %11, align 8
%121 = load i64, ptr %10, align 8
%122 = getelementptr inbounds i8, ptr %120, i64 %121
%123 = load i8, ptr %122, align 1
store i8 %123, ptr %18, align 1
%124 = load i8, ptr %18, align 1
%125 = zext i8 %124 to i32
%126 = load i32, ptr %12, align 4
%127 = add nsw i32 %126, %125
store i32 %127, ptr %12, align 4
br label %128
128: ; preds = %119
%129 = load i64, ptr %10, align 8
%130 = add nsw i64 %129, 1
store i64 %130, ptr %10, align 8
br label %115, !llvm.loop !6
131: ; preds = %115
%132 = load i32, ptr %12, align 4
%133 = srem i32 %132, 256
%134 = icmp ne i32 %133, 0
br i1 %134, label %135, label %143
135: ; preds = %131
%136 = load i32, ptr %12, align 4
%137 = sub nsw i32 0, %136
%138 = trunc i32 %137 to i8
store i8 %138, ptr %16, align 1
%139 = load i8, ptr %16, align 1
%140 = zext i8 %139 to i16
%141 = zext i16 %140 to i32
%142 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %141)
store i32 1, ptr %15, align 4
br label %144
143: ; preds = %131
br label %144
144: ; preds = %143, %135
%145 = load i32, ptr %15, align 4
%146 = icmp ne i32 %145, 0
br i1 %146, label %147, label %174
147: ; preds = %144
%148 = load i32, ptr %8, align 4
%149 = icmp ne i32 %148, 0
br i1 %149, label %150, label %171
150: ; preds = %147
%151 = load ptr, ptr %7, align 8
%152 = call i32 @fclose(ptr noundef %151)
%153 = load ptr, ptr %6, align 8
%154 = call ptr @fopen(ptr noundef %153, ptr noundef @.str.6)
store ptr %154, ptr %7, align 8
%155 = load i8, ptr %13, align 1
%156 = load ptr, ptr %11, align 8
%157 = getelementptr inbounds i8, ptr %156, i64 2
store i8 %155, ptr %157, align 1
%158 = load ptr, ptr %11, align 8
%159 = load i64, ptr %14, align 8
%160 = sub nsw i64 %159, 2
%161 = getelementptr inbounds i8, ptr %158, i64 %160
store i8 0, ptr %161, align 1
%162 = load i8, ptr %16, align 1
%163 = load ptr, ptr %11, align 8
%164 = load i64, ptr %14, align 8
%165 = sub nsw i64 %164, 1
%166 = getelementptr inbounds i8, ptr %163, i64 %165
store i8 %162, ptr %166, align 1
%167 = load ptr, ptr %11, align 8
%168 = load i64, ptr %9, align 8
%169 = load ptr, ptr %7, align 8
%170 = call i32 @fwrite(ptr noundef %167, i64 noundef %168, i32 noundef 1, ptr noundef %169)
br label %173
171: ; preds = %147
%172 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %173
173: ; preds = %171, %150
br label %176
174: ; preds = %144
%175 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %176
176: ; preds = %174, %173
%177 = load ptr, ptr %11, align 8
%178 = call i32 @free(ptr noundef %177)
br label %179
179: ; preds = %176, %55
%180 = load ptr, ptr %7, align 8
%181 = call i32 @fclose(ptr noundef %180)
br label %182
182: ; preds = %179, %41
ret i32 0
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @rewind(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @fread(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @fwrite(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprekdyski.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"mod\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"couldn't open '%s' !\0A\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [21 x i8] c"file is too small !\0A\00", align 1
@.str.4 = private unnamed_addr constant [31 x i8] c"file is not a ROM extension !\0A\00", align 1
@.str.5 = private unnamed_addr constant [29 x i8] c"sum mismatch should be %04X\0A\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"rb+\00", align 1
@.str.7 = private unnamed_addr constant [45 x i8] c"invalid ROM, please use mod argument to fix\0A\00", align 1
@.str.8 = private unnamed_addr constant [31 x i8] c"file is a valid ROM extension\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 i32, align 4
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i8, align 1
%14 = alloca i64, align 8
%15 = alloca i32, align 4
%16 = alloca i8, align 1
%17 = alloca ptr, align 8
%18 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr null, ptr %6, align 8
store i32 0, ptr %8, align 4
%19 = load i32, ptr %4, align 4
%20 = icmp sgt i32 %19, 1
br i1 %20, label %21, label %36
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
store ptr %24, ptr %6, align 8
%25 = load i32, ptr %4, align 4
%26 = icmp sgt i32 %25, 2
br i1 %26, label %27, label %35
27: ; preds = %21
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 2
%30 = load ptr, ptr %29, align 8
%31 = call i32 @strcmp(ptr noundef %30, ptr noundef @.str)
%32 = icmp ne i32 %31, 0
br i1 %32, label %34, label %33
33: ; preds = %27
store i32 1, ptr %8, align 4
br label %34
34: ; preds = %33, %27
br label %35
35: ; preds = %34, %21
br label %36
36: ; preds = %35, %2
%37 = load ptr, ptr %6, align 8
%38 = call ptr @fopen(ptr noundef %37, ptr noundef @.str.1)
store ptr %38, ptr %7, align 8
%39 = load ptr, ptr %7, align 8
%40 = icmp ne ptr %39, null
br i1 %40, label %44, label %41
41: ; preds = %36
%42 = load ptr, ptr %6, align 8
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %42)
br label %184
44: ; preds = %36
%45 = load ptr, ptr %7, align 8
%46 = load i32, ptr @SEEK_END, align 4
%47 = call i32 @fseek(ptr noundef %45, i32 noundef 0, i32 noundef %46)
%48 = load ptr, ptr %7, align 8
%49 = call i64 @ftell(ptr noundef %48)
store i64 %49, ptr %9, align 8
%50 = load i64, ptr %9, align 8
%51 = icmp slt i64 %50, 3
br i1 %51, label %52, label %55
52: ; preds = %44
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%54 = call i32 @exit(i32 noundef 42) #3
unreachable
55: ; preds = %44
%56 = load ptr, ptr %7, align 8
%57 = call i32 @rewind(ptr noundef %56)
%58 = load i64, ptr %9, align 8
%59 = call ptr @malloc(i64 noundef %58)
store ptr %59, ptr %11, align 8
%60 = load ptr, ptr %11, align 8
%61 = icmp ne ptr %60, null
br i1 %61, label %62, label %181
62: ; preds = %55
store i32 0, ptr %12, align 4
store i32 0, ptr %15, align 4
store i8 0, ptr %16, align 1
%63 = load ptr, ptr %11, align 8
%64 = load i64, ptr %9, align 8
%65 = load ptr, ptr %7, align 8
%66 = call i32 @fread(ptr noundef %63, i64 noundef %64, i32 noundef 1, ptr noundef %65)
%67 = load ptr, ptr %11, align 8
%68 = getelementptr inbounds i8, ptr %67, i64 0
%69 = load i8, ptr %68, align 1
%70 = zext i8 %69 to i32
%71 = icmp ne i32 %70, 85
br i1 %71, label %78, label %72
72: ; preds = %62
%73 = load ptr, ptr %11, align 8
%74 = getelementptr inbounds i8, ptr %73, i64 1
%75 = load i8, ptr %74, align 1
%76 = zext i8 %75 to i32
%77 = icmp ne i32 %76, 170
br i1 %77, label %78, label %81
78: ; preds = %72, %62
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%80 = call i32 @exit(i32 noundef 42) #3
unreachable
81: ; preds = %72
%82 = load ptr, ptr %11, align 8
%83 = getelementptr inbounds i8, ptr %82, i64 2
%84 = load i8, ptr %83, align 1
store i8 %84, ptr %13, align 1
%85 = load i8, ptr %13, align 1
%86 = icmp ne i8 %85, 0
br i1 %86, label %92, label %87
87: ; preds = %81
%88 = load i64, ptr %9, align 8
%89 = sdiv i64 %88, 512
%90 = add nsw i64 %89, 1
%91 = trunc i64 %90 to i8
store i8 %91, ptr %13, align 1
br label %92
92: ; preds = %87, %81
%93 = load i8, ptr %13, align 1
%94 = sext i8 %93 to i32
%95 = mul nsw i32 %94, 512
%96 = sext i32 %95 to i64
store i64 %96, ptr %14, align 8
%97 = load i64, ptr %9, align 8
%98 = load i64, ptr %14, align 8
%99 = icmp slt i64 %97, %98
br i1 %99, label %100, label %114
100: ; preds = %92
%101 = load ptr, ptr %11, align 8
store ptr %101, ptr %17, align 8
%102 = load i64, ptr %14, align 8
%103 = call ptr @malloc(i64 noundef %102)
store ptr %103, ptr %11, align 8
%104 = load ptr, ptr %11, align 8
%105 = load i64, ptr %14, align 8
%106 = call i32 @memset(ptr noundef %104, i32 noundef 0, i64 noundef %105)
%107 = load ptr, ptr %11, align 8
%108 = load ptr, ptr %17, align 8
%109 = load i64, ptr %9, align 8
%110 = call i32 @memcpy(ptr noundef %107, ptr noundef %108, i64 noundef %109)
%111 = load ptr, ptr %17, align 8
%112 = call i32 @free(ptr noundef %111)
%113 = load i64, ptr %14, align 8
store i64 %113, ptr %9, align 8
br label %114
114: ; preds = %100, %92
store i64 0, ptr %10, align 8
%115 = load i64, ptr %10, align 8
%116 = load i64, ptr %14, align 8
%117 = icmp slt i64 %115, %116
br i1 %117, label %.lr.ph, label %133
.lr.ph: ; preds = %114
br label %118
118: ; preds = %.lr.ph, %127
%119 = load ptr, ptr %11, align 8
%120 = load i64, ptr %10, align 8
%121 = getelementptr inbounds i8, ptr %119, i64 %120
%122 = load i8, ptr %121, align 1
store i8 %122, ptr %18, align 1
%123 = load i8, ptr %18, align 1
%124 = zext i8 %123 to i32
%125 = load i32, ptr %12, align 4
%126 = add nsw i32 %125, %124
store i32 %126, ptr %12, align 4
br label %127
127: ; preds = %118
%128 = load i64, ptr %10, align 8
%129 = add nsw i64 %128, 1
store i64 %129, ptr %10, align 8
%130 = load i64, ptr %10, align 8
%131 = load i64, ptr %14, align 8
%132 = icmp slt i64 %130, %131
br i1 %132, label %118, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %127
br label %133
133: ; preds = %._crit_edge, %114
%134 = load i32, ptr %12, align 4
%135 = srem i32 %134, 256
%136 = icmp ne i32 %135, 0
br i1 %136, label %137, label %145
137: ; preds = %133
%138 = load i32, ptr %12, align 4
%139 = sub nsw i32 0, %138
%140 = trunc i32 %139 to i8
store i8 %140, ptr %16, align 1
%141 = load i8, ptr %16, align 1
%142 = zext i8 %141 to i16
%143 = zext i16 %142 to i32
%144 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %143)
store i32 1, ptr %15, align 4
br label %146
145: ; preds = %133
br label %146
146: ; preds = %145, %137
%147 = load i32, ptr %15, align 4
%148 = icmp ne i32 %147, 0
br i1 %148, label %149, label %176
149: ; preds = %146
%150 = load i32, ptr %8, align 4
%151 = icmp ne i32 %150, 0
br i1 %151, label %152, label %173
152: ; preds = %149
%153 = load ptr, ptr %7, align 8
%154 = call i32 @fclose(ptr noundef %153)
%155 = load ptr, ptr %6, align 8
%156 = call ptr @fopen(ptr noundef %155, ptr noundef @.str.6)
store ptr %156, ptr %7, align 8
%157 = load i8, ptr %13, align 1
%158 = load ptr, ptr %11, align 8
%159 = getelementptr inbounds i8, ptr %158, i64 2
store i8 %157, ptr %159, align 1
%160 = load ptr, ptr %11, align 8
%161 = load i64, ptr %14, align 8
%162 = sub nsw i64 %161, 2
%163 = getelementptr inbounds i8, ptr %160, i64 %162
store i8 0, ptr %163, align 1
%164 = load i8, ptr %16, align 1
%165 = load ptr, ptr %11, align 8
%166 = load i64, ptr %14, align 8
%167 = sub nsw i64 %166, 1
%168 = getelementptr inbounds i8, ptr %165, i64 %167
store i8 %164, ptr %168, align 1
%169 = load ptr, ptr %11, align 8
%170 = load i64, ptr %9, align 8
%171 = load ptr, ptr %7, align 8
%172 = call i32 @fwrite(ptr noundef %169, i64 noundef %170, i32 noundef 1, ptr noundef %171)
br label %175
173: ; preds = %149
%174 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %175
175: ; preds = %173, %152
br label %178
176: ; preds = %146
%177 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %178
178: ; preds = %176, %175
%179 = load ptr, ptr %11, align 8
%180 = call i32 @free(ptr noundef %179)
br label %181
181: ; preds = %178, %55
%182 = load ptr, ptr %7, align 8
%183 = call i32 @fclose(ptr noundef %182)
br label %184
184: ; preds = %181, %41
ret i32 0
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @rewind(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @fread(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @fwrite(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpxsuc9wo6.c'
source_filename = "/tmp/tmpxsuc9wo6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [201 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AmesianX/OpenBLT/refs/heads/master/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/Boot/lib/driverlib/uartlib.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @UARTParityModeSet(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %3, align 8
%6 = call i32 @UARTBaseValid(i64 noundef %5)
%7 = icmp ne i32 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %2
%9 = call i32 @AssertFailure(ptr noundef @.str, i32 noundef 174)
br label %10
10: ; preds = %8, %2
%11 = load i64, ptr %4, align 8
%12 = icmp eq i64 %11, 0
br i1 %12, label %27, label %13
13: ; preds = %10
%14 = load i64, ptr %4, align 8
%15 = icmp eq i64 %14, 6
br i1 %15, label %27, label %16
16: ; preds = %13
%17 = load i64, ptr %4, align 8
%18 = icmp eq i64 %17, 2
br i1 %18, label %27, label %19
19: ; preds = %16
%20 = load i64, ptr %4, align 8
%21 = icmp eq i64 %20, 130
br i1 %21, label %27, label %22
22: ; preds = %19
%23 = load i64, ptr %4, align 8
%24 = icmp eq i64 %23, 134
br i1 %24, label %27, label %25
25: ; preds = %22
%26 = call i32 @AssertFailure(ptr noundef @.str, i32 noundef 175)
br label %27
27: ; preds = %25, %22, %19, %16, %13, %10
%28 = load i64, ptr %3, align 8
%29 = add i64 %28, 44
%30 = inttoptr i64 %29 to ptr
%31 = load volatile i64, ptr %30, align 8
%32 = and i64 %31, -135
%33 = load i64, ptr %4, align 8
%34 = or i64 %32, %33
%35 = load i64, ptr %3, align 8
%36 = add i64 %35, 44
%37 = inttoptr i64 %36 to ptr
store volatile i64 %34, ptr %37, align 8
ret void
}
declare i32 @UARTBaseValid(i64 noundef) #1
declare i32 @AssertFailure(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/tmpxsuc9wo6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [201 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AmesianX/OpenBLT/refs/heads/master/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/Boot/lib/driverlib/uartlib.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @UARTParityModeSet(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %3, align 8
%6 = call i32 @UARTBaseValid(i64 noundef %5)
%7 = icmp ne i32 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %2
%9 = call i32 @AssertFailure(ptr noundef @.str, i32 noundef 174)
br label %10
10: ; preds = %8, %2
%11 = load i64, ptr %4, align 8
%12 = icmp eq i64 %11, 0
br i1 %12, label %27, label %13
13: ; preds = %10
%14 = load i64, ptr %4, align 8
%15 = icmp eq i64 %14, 6
br i1 %15, label %27, label %16
16: ; preds = %13
%17 = load i64, ptr %4, align 8
%18 = icmp eq i64 %17, 2
br i1 %18, label %27, label %19
19: ; preds = %16
%20 = load i64, ptr %4, align 8
%21 = icmp eq i64 %20, 130
br i1 %21, label %27, label %22
22: ; preds = %19
%23 = load i64, ptr %4, align 8
%24 = icmp eq i64 %23, 134
br i1 %24, label %27, label %25
25: ; preds = %22
%26 = call i32 @AssertFailure(ptr noundef @.str, i32 noundef 175)
br label %27
27: ; preds = %25, %22, %19, %16, %13, %10
%28 = load i64, ptr %3, align 8
%29 = add i64 %28, 44
%30 = inttoptr i64 %29 to ptr
%31 = load volatile i64, ptr %30, align 8
%32 = and i64 %31, -135
%33 = load i64, ptr %4, align 8
%34 = or i64 %32, %33
%35 = load i64, ptr %3, align 8
%36 = add i64 %35, 44
%37 = inttoptr i64 %36 to ptr
store volatile i64 %34, ptr %37, align 8
ret void
}
declare i32 @UARTBaseValid(i64 noundef) #1
declare i32 @AssertFailure(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/tmpra41v98z.c'
source_filename = "/tmp/tmpra41v98z.c"
target datalayout = "e-m:e-p270: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/tmpra41v98z.c"
target datalayout = "e-m:e-p270: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/tmp119tyaig.c'
source_filename = "/tmp/tmp119tyaig.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @queue_delete(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp119tyaig.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @queue_delete(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6nfu5s27.c'
source_filename = "/tmp/tmp6nfu5s27.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i8 0, 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 i8, align 1
%5 = alloca [1000 x i8], align 16
store i32 0, ptr %1, align 4
store i32 1000, ptr %3, align 4
store i32 0, ptr %2, align 4
br label %6
6: ; preds = %28, %0
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = sub nsw i32 %8, 1
%10 = icmp slt i32 %7, %9
br i1 %10, label %11, label %32
11: ; preds = %6
%12 = load i8, ptr %4, align 1
%13 = sext i8 %12 to i32
%14 = load i8, ptr @EOF, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %13, %15
br i1 %16, label %17, label %23
17: ; preds = %11
%18 = load i8, ptr %4, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 10
br i1 %20, label %21, label %22
21: ; preds = %17
br label %32
22: ; preds = %17
br label %23
23: ; preds = %22, %11
%24 = load i8, ptr %4, align 1
%25 = load i32, ptr %2, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [1000 x i8], ptr %5, i64 0, i64 %26
store i8 %24, ptr %27, align 1
br label %28
28: ; preds = %23
%29 = load i32, ptr %2, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %2, align 4
%31 = call signext i8 (...) @getchar()
store i8 %31, ptr %4, align 1
br label %6, !llvm.loop !6
32: ; preds = %21, %6
ret i32 0
}
declare signext i8 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6nfu5s27.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i8 0, 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 i8, align 1
%5 = alloca [1000 x i8], align 16
store i32 0, ptr %1, align 4
store i32 1000, ptr %3, align 4
store i32 0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = sub nsw i32 %7, 1
%9 = icmp slt i32 %6, %8
br i1 %9, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %27
%11 = load i8, ptr %4, align 1
%12 = sext i8 %11 to i32
%13 = load i8, ptr @EOF, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %12, %14
br i1 %15, label %16, label %22
16: ; preds = %10
%17 = load i8, ptr %4, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 10
br i1 %19, label %20, label %21
20: ; preds = %16
br label %35
21: ; preds = %16
br label %22
22: ; preds = %21, %10
%23 = load i8, ptr %4, align 1
%24 = load i32, ptr %2, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [1000 x i8], ptr %5, i64 0, i64 %25
store i8 %23, ptr %26, align 1
br label %27
27: ; preds = %22
%28 = load i32, ptr %2, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %2, align 4
%30 = call signext i8 (...) @getchar()
store i8 %30, ptr %4, align 1
%31 = load i32, ptr %2, align 4
%32 = load i32, ptr %3, align 4
%33 = sub nsw i32 %32, 1
%34 = icmp slt i32 %31, %33
br i1 %34, label %10, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %27
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %0
br label %35
35: ; preds = %.loopexit, %20
ret i32 0
}
declare signext i8 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpdr0lfli2.c'
source_filename = "/tmp/tmpdr0lfli2.c"
target datalayout = "e-m:e-p270: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/tmpdr0lfli2.c"
target datalayout = "e-m:e-p270: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/tmpdvgrfatp.c'
source_filename = "/tmp/tmpdvgrfatp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_float(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = load i32, ptr @stdout, align 4
%5 = call i32 @fprint_float(float noundef %3, i32 noundef %4)
ret void
}
declare i32 @fprint_float(float 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/tmpdvgrfatp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_float(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = load i32, ptr @stdout, align 4
%5 = call i32 @fprint_float(float noundef %3, i32 noundef %4)
ret void
}
declare i32 @fprint_float(float 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/tmpf2tlqi5t.c'
source_filename = "/tmp/tmpf2tlqi5t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@foo.honour_longs = internal constant i32 0, align 4
@foo.bar = internal global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"Error %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @foo(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %12
5: ; preds = %1
%6 = load i32, ptr @foo.bar, align 4
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %5
%9 = call i32 @printf(ptr noundef @.str, i32 noundef 2)
%10 = call i32 @exit(i32 noundef 2) #3
unreachable
11: ; preds = %5
store i32 1, ptr @foo.bar, align 4
br label %19
12: ; preds = %1
%13 = load i32, ptr @foo.bar, align 4
%14 = icmp ne i32 %13, 1
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = call i32 @printf(ptr noundef @.str, i32 noundef 3)
%17 = call i32 @exit(i32 noundef 3) #3
unreachable
18: ; preds = %12
br label %19
19: ; preds = %18, %11
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf2tlqi5t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@foo.honour_longs = internal constant i32 0, align 4
@foo.bar = internal global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"Error %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @foo(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %12
5: ; preds = %1
%6 = load i32, ptr @foo.bar, align 4
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %5
%9 = call i32 @printf(ptr noundef @.str, i32 noundef 2)
%10 = call i32 @exit(i32 noundef 2) #3
unreachable
11: ; preds = %5
store i32 1, ptr @foo.bar, align 4
br label %19
12: ; preds = %1
%13 = load i32, ptr @foo.bar, align 4
%14 = icmp ne i32 %13, 1
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = call i32 @printf(ptr noundef @.str, i32 noundef 3)
%17 = call i32 @exit(i32 noundef 3) #3
unreachable
18: ; preds = %12
br label %19
19: ; preds = %18, %11
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphsw80weg.c'
source_filename = "/tmp/tmphsw80weg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CLOCK_MONOTONIC = 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/tmphsw80weg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CLOCK_MONOTONIC = 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/tmp3e07z_mk.c'
source_filename = "/tmp/tmp3e07z_mk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"stop\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
br label %2
2: ; preds = %5, %0
%3 = call i64 (...) @clken2()
%4 = icmp ne i64 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %2
br label %2, !llvm.loop !6
6: ; preds = %2
%7 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i64 @clken2(...) #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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3e07z_mk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"stop\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
br label %2
2: ; preds = %2, %0
%3 = call i64 (...) @clken2()
%4 = icmp ne i64 %3, 0
br i1 %4, label %2, label %5, !llvm.loop !6
5: ; preds = %2
%6 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i64 @clken2(...) #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"}
|
; ModuleID = '/tmp/tmpw3itra7m.c'
source_filename = "/tmp/tmpw3itra7m.c"
target datalayout = "e-m:e-p270: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
@ERANGE = dso_local global i64 0, align 8
@LONG_MAX = dso_local global i32 0, align 4
@LONG_MIN = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [16 x i8] c"Wrong argument.\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @string_to_int_with_check(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
store ptr %6, ptr %4, align 8
store i64 0, ptr @errno, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @strtol(ptr noundef %7, ptr noundef %3, i32 noundef 10)
store i32 %8, ptr %5, align 4
%9 = load i64, ptr @errno, align 8
%10 = load i64, ptr @ERANGE, align 8
%11 = icmp eq i64 %9, %10
br i1 %11, label %12, label %20
12: ; preds = %1
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr @LONG_MAX, align 4
%15 = icmp eq i32 %13, %14
br i1 %15, label %30, label %16
16: ; preds = %12
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr @LONG_MIN, align 4
%19 = icmp eq i32 %17, %18
br i1 %19, label %30, label %20
20: ; preds = %16, %1
%21 = load i64, ptr @errno, align 8
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %20
%24 = load i32, ptr %5, align 4
%25 = icmp eq i32 %24, 0
br i1 %25, label %30, label %26
26: ; preds = %23, %20
%27 = load ptr, ptr %3, align 8
%28 = load ptr, ptr %4, align 8
%29 = icmp eq ptr %27, %28
br i1 %29, label %30, label %34
30: ; preds = %26, %23, %16, %12
%31 = call i32 @perror(ptr noundef @.str)
%32 = load i32, ptr @EXIT_FAILURE, align 4
%33 = call i32 @exit(i32 noundef %32) #3
unreachable
34: ; preds = %26
%35 = load i32, ptr %5, align 4
ret i32 %35
}
declare i32 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(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/tmpw3itra7m.c"
target datalayout = "e-m:e-p270: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
@ERANGE = dso_local global i64 0, align 8
@LONG_MAX = dso_local global i32 0, align 4
@LONG_MIN = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [16 x i8] c"Wrong argument.\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @string_to_int_with_check(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
store ptr %6, ptr %4, align 8
store i64 0, ptr @errno, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @strtol(ptr noundef %7, ptr noundef %3, i32 noundef 10)
store i32 %8, ptr %5, align 4
%9 = load i64, ptr @errno, align 8
%10 = load i64, ptr @ERANGE, align 8
%11 = icmp eq i64 %9, %10
br i1 %11, label %12, label %20
12: ; preds = %1
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr @LONG_MAX, align 4
%15 = icmp eq i32 %13, %14
br i1 %15, label %30, label %16
16: ; preds = %12
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr @LONG_MIN, align 4
%19 = icmp eq i32 %17, %18
br i1 %19, label %30, label %20
20: ; preds = %16, %1
%21 = load i64, ptr @errno, align 8
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %20
%24 = load i32, ptr %5, align 4
%25 = icmp eq i32 %24, 0
br i1 %25, label %30, label %26
26: ; preds = %23, %20
%27 = load ptr, ptr %3, align 8
%28 = load ptr, ptr %4, align 8
%29 = icmp eq ptr %27, %28
br i1 %29, label %30, label %34
30: ; preds = %26, %23, %16, %12
%31 = call i32 @perror(ptr noundef @.str)
%32 = load i32, ptr @EXIT_FAILURE, align 4
%33 = call i32 @exit(i32 noundef %32) #3
unreachable
34: ; preds = %26
%35 = load i32, ptr %5, align 4
ret i32 %35
}
declare i32 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(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/tmp70l6cawk.c'
source_filename = "/tmp/tmp70l6cawk.c"
target datalayout = "e-m:e-p270: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/tmp70l6cawk.c"
target datalayout = "e-m:e-p270: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/tmp8jv9ircq.c'
source_filename = "/tmp/tmp8jv9ircq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"%f %f %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"%#x %#x\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store float 0x3FF0000040000000, ptr %6, align 4
store float 0x3FF0000060000000, ptr %7, align 4
store float 1.000000e+00, ptr %8, align 4
store float 1.000000e+00, ptr %9, align 4
%10 = load float, ptr %6, align 4
%11 = fptosi float %10 to i32
%12 = load float, ptr %7, align 4
%13 = fptosi float %12 to i32
%14 = load float, ptr %6, align 4
%15 = load float, ptr %7, align 4
%16 = fcmp oeq float %14, %15
%17 = zext i1 %16 to i32
%18 = call i32 (ptr, i32, i32, ...) @printf(ptr noundef @.str, i32 noundef %11, i32 noundef %13, i32 noundef %17)
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %7, align 4
%21 = call i32 (ptr, i32, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %19, i32 noundef %20)
%22 = load float, ptr %8, align 4
%23 = fptosi float %22 to i32
%24 = load float, ptr %9, align 4
%25 = fptosi float %24 to i32
%26 = load float, ptr %8, align 4
%27 = load float, ptr %9, align 4
%28 = fcmp oeq float %26, %27
%29 = zext i1 %28 to i32
%30 = call i32 (ptr, i32, i32, ...) @printf(ptr noundef @.str, i32 noundef %23, i32 noundef %25, i32 noundef %29)
%31 = load i32, ptr %8, align 4
%32 = load i32, ptr %9, align 4
%33 = call i32 (ptr, i32, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %31, i32 noundef %32)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8jv9ircq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"%f %f %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"%#x %#x\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store float 0x3FF0000040000000, ptr %6, align 4
store float 0x3FF0000060000000, ptr %7, align 4
store float 1.000000e+00, ptr %8, align 4
store float 1.000000e+00, ptr %9, align 4
%10 = load float, ptr %6, align 4
%11 = fptosi float %10 to i32
%12 = load float, ptr %7, align 4
%13 = fptosi float %12 to i32
%14 = load float, ptr %6, align 4
%15 = load float, ptr %7, align 4
%16 = fcmp oeq float %14, %15
%17 = zext i1 %16 to i32
%18 = call i32 (ptr, i32, i32, ...) @printf(ptr noundef @.str, i32 noundef %11, i32 noundef %13, i32 noundef %17)
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %7, align 4
%21 = call i32 (ptr, i32, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %19, i32 noundef %20)
%22 = load float, ptr %8, align 4
%23 = fptosi float %22 to i32
%24 = load float, ptr %9, align 4
%25 = fptosi float %24 to i32
%26 = load float, ptr %8, align 4
%27 = load float, ptr %9, align 4
%28 = fcmp oeq float %26, %27
%29 = zext i1 %28 to i32
%30 = call i32 (ptr, i32, i32, ...) @printf(ptr noundef @.str, i32 noundef %23, i32 noundef %25, i32 noundef %29)
%31 = load i32, ptr %8, align 4
%32 = load i32, ptr %9, align 4
%33 = call i32 (ptr, i32, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %31, i32 noundef %32)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpr2_b4m40.c'
source_filename = "/tmp/tmpr2_b4m40.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"\0A--------------------------------\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"\0ABegin **perfectly valid** test. \0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [47 x i8] c"You should expect to see normal allocations.\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [171 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/PLJNS/Rutgers-Systems-Programming-Fall-2013/refs/heads/master/Malloc/testcases.c\00", align 1
@.str.4 = private unnamed_addr constant [31 x i8] c"\0AEnd **perfectly valid** test.\00", align 1
@.str.5 = private unnamed_addr constant [34 x i8] c"\0A------------------------------\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @perfectly_valid() #0 {
%1 = alloca ptr, align 8
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @printf(ptr noundef @.str.1)
%4 = call i32 @printf(ptr noundef @.str.2)
%5 = call i64 @my_malloc(i32 noundef 100, ptr noundef @.str.3, i32 noundef 59)
%6 = inttoptr i64 %5 to ptr
store ptr %6, ptr %1, align 8
%7 = load ptr, ptr %1, align 8
%8 = call i32 @my_free(ptr noundef %7, ptr noundef @.str.3, i32 noundef 60)
%9 = call i64 @my_malloc(i32 noundef 100, ptr noundef @.str.3, i32 noundef 61)
%10 = inttoptr i64 %9 to ptr
store ptr %10, ptr %1, align 8
%11 = load ptr, ptr %1, align 8
%12 = call i32 @my_free(ptr noundef %11, ptr noundef @.str.3, i32 noundef 62)
%13 = call i32 @printf(ptr noundef @.str.4)
%14 = call i32 @printf(ptr noundef @.str.5)
ret void
}
declare i32 @printf(ptr noundef) #1
declare i64 @my_malloc(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @my_free(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/tmpr2_b4m40.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"\0A--------------------------------\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"\0ABegin **perfectly valid** test. \0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [47 x i8] c"You should expect to see normal allocations.\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [171 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/PLJNS/Rutgers-Systems-Programming-Fall-2013/refs/heads/master/Malloc/testcases.c\00", align 1
@.str.4 = private unnamed_addr constant [31 x i8] c"\0AEnd **perfectly valid** test.\00", align 1
@.str.5 = private unnamed_addr constant [34 x i8] c"\0A------------------------------\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @perfectly_valid() #0 {
%1 = alloca ptr, align 8
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @printf(ptr noundef @.str.1)
%4 = call i32 @printf(ptr noundef @.str.2)
%5 = call i64 @my_malloc(i32 noundef 100, ptr noundef @.str.3, i32 noundef 59)
%6 = inttoptr i64 %5 to ptr
store ptr %6, ptr %1, align 8
%7 = load ptr, ptr %1, align 8
%8 = call i32 @my_free(ptr noundef %7, ptr noundef @.str.3, i32 noundef 60)
%9 = call i64 @my_malloc(i32 noundef 100, ptr noundef @.str.3, i32 noundef 61)
%10 = inttoptr i64 %9 to ptr
store ptr %10, ptr %1, align 8
%11 = load ptr, ptr %1, align 8
%12 = call i32 @my_free(ptr noundef %11, ptr noundef @.str.3, i32 noundef 62)
%13 = call i32 @printf(ptr noundef @.str.4)
%14 = call i32 @printf(ptr noundef @.str.5)
ret void
}
declare i32 @printf(ptr noundef) #1
declare i64 @my_malloc(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @my_free(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/tmp6a6hcf86.c'
source_filename = "/tmp/tmp6a6hcf86.c"
target datalayout = "e-m:e-p270: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/tmp6a6hcf86.c"
target datalayout = "e-m:e-p270: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/tmph2t2tqoe.c'
source_filename = "/tmp/tmph2t2tqoe.c"
target datalayout = "e-m:e-p270: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/tmph2t2tqoe.c"
target datalayout = "e-m:e-p270: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/tmpxfgmzi87.c'
source_filename = "/tmp/tmpxfgmzi87.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AT_FDCWD = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [7 x i8] c"subdir\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"topfile\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"subdir/bottomfile\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"subdir/../topfile\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"../topfile\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"bottomfile\00", align 1
@.str.7 = private unnamed_addr constant [21 x i8] c"../subdir/bottomfile\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c"symlinkup\00", align 1
@.str.9 = private unnamed_addr constant [11 x i8] c"symlinkout\00", align 1
@.str.10 = private unnamed_addr constant [12 x i8] c"/etc/passwd\00", align 1
@.str.11 = private unnamed_addr constant [6 x i8] c"bogus\00", align 1
@ENOENT = dso_local global i32 0, align 4
@.str.12 = private unnamed_addr constant [7 x i8] c"ENOENT\00", align 1
@EBADF = dso_local global i32 0, align 4
@.str.13 = private unnamed_addr constant [6 x i8] c"EBADF\00", align 1
@ENOTDIR = dso_local global i32 0, align 4
@.str.14 = private unnamed_addr constant [8 x i8] c"ENOTDIR\00", align 1
@.str.15 = private unnamed_addr constant [49 x i8] c"Skipping O_BENEATH tests due to missing #define\0A\00", align 1
@.str.16 = private unnamed_addr constant [17 x i8] c"%d tests failed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%10 = call i32 (...) @prerequisites()
%11 = load i32, ptr @AT_FDCWD, align 4
%12 = load i32, ptr @O_RDONLY, align 4
%13 = call i32 @openat_or_die(i32 noundef %11, ptr noundef @.str, i32 noundef %12)
store i32 %13, ptr %7, align 4
%14 = load i32, ptr @AT_FDCWD, align 4
%15 = load i32, ptr @O_RDONLY, align 4
%16 = call i32 @openat_or_die(i32 noundef %14, ptr noundef @.str.1, i32 noundef %15)
store i32 %16, ptr %8, align 4
%17 = load i32, ptr @AT_FDCWD, align 4
%18 = load i32, ptr @O_RDONLY, align 4
%19 = call i32 @openat_or_die(i32 noundef %17, ptr noundef @.str.2, i32 noundef %18)
store i32 %19, ptr %9, align 4
%20 = load i32, ptr @O_RDONLY, align 4
%21 = call i64 @check_open(ptr noundef @.str.2, i32 noundef %20)
%22 = load i32, ptr %6, align 4
%23 = sext i32 %22 to i64
%24 = add nsw i64 %23, %21
%25 = trunc i64 %24 to i32
store i32 %25, ptr %6, align 4
%26 = load i32, ptr @O_RDONLY, align 4
%27 = call i64 @check_open(ptr noundef @.str.3, i32 noundef %26)
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = add nsw i64 %29, %27
%31 = trunc i64 %30 to i32
store i32 %31, ptr %6, align 4
%32 = load i32, ptr @AT_FDCWD, align 4
%33 = load i32, ptr @O_RDONLY, align 4
%34 = call i64 @check_openat(i32 noundef %32, ptr noundef @.str.2, i32 noundef %33)
%35 = load i32, ptr %6, align 4
%36 = sext i32 %35 to i64
%37 = add nsw i64 %36, %34
%38 = trunc i64 %37 to i32
store i32 %38, ptr %6, align 4
%39 = load i32, ptr @AT_FDCWD, align 4
%40 = load i32, ptr @O_RDONLY, align 4
%41 = call i64 @check_openat(i32 noundef %39, ptr noundef @.str.3, i32 noundef %40)
%42 = load i32, ptr %6, align 4
%43 = sext i32 %42 to i64
%44 = add nsw i64 %43, %41
%45 = trunc i64 %44 to i32
store i32 %45, ptr %6, align 4
%46 = load i32, ptr %7, align 4
%47 = load i32, ptr @O_RDONLY, align 4
%48 = call i64 @check_openat(i32 noundef %46, ptr noundef @.str.2, i32 noundef %47)
%49 = load i32, ptr %6, align 4
%50 = sext i32 %49 to i64
%51 = add nsw i64 %50, %48
%52 = trunc i64 %51 to i32
store i32 %52, ptr %6, align 4
%53 = load i32, ptr %7, align 4
%54 = load i32, ptr @O_RDONLY, align 4
%55 = call i64 @check_openat(i32 noundef %53, ptr noundef @.str.3, i32 noundef %54)
%56 = load i32, ptr %6, align 4
%57 = sext i32 %56 to i64
%58 = add nsw i64 %57, %55
%59 = trunc i64 %58 to i32
store i32 %59, ptr %6, align 4
%60 = load i32, ptr %7, align 4
%61 = load i32, ptr @O_RDONLY, align 4
%62 = call i64 @check_openat(i32 noundef %60, ptr noundef @.str.4, i32 noundef %61)
%63 = load i32, ptr %6, align 4
%64 = sext i32 %63 to i64
%65 = add nsw i64 %64, %62
%66 = trunc i64 %65 to i32
store i32 %66, ptr %6, align 4
%67 = load i32, ptr @O_RDONLY, align 4
%68 = call i64 @check_open(ptr noundef @.str.4, i32 noundef %67)
%69 = load i32, ptr %6, align 4
%70 = sext i32 %69 to i64
%71 = add nsw i64 %70, %68
%72 = trunc i64 %71 to i32
store i32 %72, ptr %6, align 4
%73 = load i32, ptr %8, align 4
%74 = load i32, ptr @O_RDONLY, align 4
%75 = call i64 @check_openat(i32 noundef %73, ptr noundef @.str.5, i32 noundef %74)
%76 = load i32, ptr %6, align 4
%77 = sext i32 %76 to i64
%78 = add nsw i64 %77, %75
%79 = trunc i64 %78 to i32
store i32 %79, ptr %6, align 4
%80 = load i32, ptr %8, align 4
%81 = load i32, ptr @O_RDONLY, align 4
%82 = call i64 @check_openat(i32 noundef %80, ptr noundef @.str.6, i32 noundef %81)
%83 = load i32, ptr %6, align 4
%84 = sext i32 %83 to i64
%85 = add nsw i64 %84, %82
%86 = trunc i64 %85 to i32
store i32 %86, ptr %6, align 4
%87 = load i32, ptr %8, align 4
%88 = load i32, ptr @O_RDONLY, align 4
%89 = call i64 @check_openat(i32 noundef %87, ptr noundef @.str.7, i32 noundef %88)
%90 = load i32, ptr %6, align 4
%91 = sext i32 %90 to i64
%92 = add nsw i64 %91, %89
%93 = trunc i64 %92 to i32
store i32 %93, ptr %6, align 4
%94 = load i32, ptr %8, align 4
%95 = load i32, ptr @O_RDONLY, align 4
%96 = call i64 @check_openat(i32 noundef %94, ptr noundef @.str.8, i32 noundef %95)
%97 = load i32, ptr %6, align 4
%98 = sext i32 %97 to i64
%99 = add nsw i64 %98, %96
%100 = trunc i64 %99 to i32
store i32 %100, ptr %6, align 4
%101 = load i32, ptr %8, align 4
%102 = load i32, ptr @O_RDONLY, align 4
%103 = call i64 @check_openat(i32 noundef %101, ptr noundef @.str.9, i32 noundef %102)
%104 = load i32, ptr %6, align 4
%105 = sext i32 %104 to i64
%106 = add nsw i64 %105, %103
%107 = trunc i64 %106 to i32
store i32 %107, ptr %6, align 4
%108 = load i32, ptr @O_RDONLY, align 4
%109 = call i64 @check_open(ptr noundef @.str.10, i32 noundef %108)
%110 = load i32, ptr %6, align 4
%111 = sext i32 %110 to i64
%112 = add nsw i64 %111, %109
%113 = trunc i64 %112 to i32
store i32 %113, ptr %6, align 4
%114 = load i32, ptr @AT_FDCWD, align 4
%115 = load i32, ptr @O_RDONLY, align 4
%116 = call i64 @check_openat(i32 noundef %114, ptr noundef @.str.10, i32 noundef %115)
%117 = load i32, ptr %6, align 4
%118 = sext i32 %117 to i64
%119 = add nsw i64 %118, %116
%120 = trunc i64 %119 to i32
store i32 %120, ptr %6, align 4
%121 = load i32, ptr %7, align 4
%122 = load i32, ptr @O_RDONLY, align 4
%123 = call i64 @check_openat(i32 noundef %121, ptr noundef @.str.10, i32 noundef %122)
%124 = load i32, ptr %6, align 4
%125 = sext i32 %124 to i64
%126 = add nsw i64 %125, %123
%127 = trunc i64 %126 to i32
store i32 %127, ptr %6, align 4
%128 = load i32, ptr %8, align 4
%129 = load i32, ptr @O_RDONLY, align 4
%130 = call i64 @check_openat(i32 noundef %128, ptr noundef @.str.10, i32 noundef %129)
%131 = load i32, ptr %6, align 4
%132 = sext i32 %131 to i64
%133 = add nsw i64 %132, %130
%134 = trunc i64 %133 to i32
store i32 %134, ptr %6, align 4
%135 = load i32, ptr @AT_FDCWD, align 4
%136 = load i32, ptr @O_RDONLY, align 4
%137 = load i32, ptr @ENOENT, align 4
%138 = call i64 @_check_openat_fail(i32 noundef %135, ptr noundef @.str.11, i32 noundef %136, i32 noundef %137, ptr noundef @.str.12)
%139 = load i32, ptr %6, align 4
%140 = sext i32 %139 to i64
%141 = add nsw i64 %140, %138
%142 = trunc i64 %141 to i32
store i32 %142, ptr %6, align 4
%143 = load i32, ptr %7, align 4
%144 = load i32, ptr @O_RDONLY, align 4
%145 = load i32, ptr @ENOENT, align 4
%146 = call i64 @_check_openat_fail(i32 noundef %143, ptr noundef @.str.11, i32 noundef %144, i32 noundef %145, ptr noundef @.str.12)
%147 = load i32, ptr %6, align 4
%148 = sext i32 %147 to i64
%149 = add nsw i64 %148, %146
%150 = trunc i64 %149 to i32
store i32 %150, ptr %6, align 4
%151 = load i32, ptr @O_RDONLY, align 4
%152 = load i32, ptr @EBADF, align 4
%153 = call i64 @_check_openat_fail(i32 noundef 999, ptr noundef @.str.11, i32 noundef %151, i32 noundef %152, ptr noundef @.str.13)
%154 = load i32, ptr %6, align 4
%155 = sext i32 %154 to i64
%156 = add nsw i64 %155, %153
%157 = trunc i64 %156 to i32
store i32 %157, ptr %6, align 4
%158 = load i32, ptr %9, align 4
%159 = load i32, ptr @O_RDONLY, align 4
%160 = load i32, ptr @ENOTDIR, align 4
%161 = call i64 @_check_openat_fail(i32 noundef %158, ptr noundef @.str.11, i32 noundef %159, i32 noundef %160, ptr noundef @.str.14)
%162 = load i32, ptr %6, align 4
%163 = sext i32 %162 to i64
%164 = add nsw i64 %163, %161
%165 = trunc i64 %164 to i32
store i32 %165, ptr %6, align 4
%166 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
%167 = call i64 (...) @check_proc()
%168 = load i32, ptr %6, align 4
%169 = sext i32 %168 to i64
%170 = add nsw i64 %169, %167
%171 = trunc i64 %170 to i32
store i32 %171, ptr %6, align 4
%172 = call i64 (...) @check_setfl()
%173 = load i32, ptr %6, align 4
%174 = sext i32 %173 to i64
%175 = add nsw i64 %174, %172
%176 = trunc i64 %175 to i32
store i32 %176, ptr %6, align 4
%177 = load i32, ptr %6, align 4
%178 = icmp sgt i32 %177, 0
br i1 %178, label %179, label %182
179: ; preds = %2
%180 = load i32, ptr %6, align 4
%181 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %180)
br label %182
182: ; preds = %179, %2
%183 = load i32, ptr %6, align 4
ret i32 %183
}
declare i32 @prerequisites(...) #1
declare i32 @openat_or_die(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @check_open(ptr noundef, i32 noundef) #1
declare i64 @check_openat(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @_check_openat_fail(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @check_proc(...) #1
declare i64 @check_setfl(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxfgmzi87.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AT_FDCWD = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [7 x i8] c"subdir\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"topfile\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"subdir/bottomfile\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"subdir/../topfile\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"../topfile\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"bottomfile\00", align 1
@.str.7 = private unnamed_addr constant [21 x i8] c"../subdir/bottomfile\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c"symlinkup\00", align 1
@.str.9 = private unnamed_addr constant [11 x i8] c"symlinkout\00", align 1
@.str.10 = private unnamed_addr constant [12 x i8] c"/etc/passwd\00", align 1
@.str.11 = private unnamed_addr constant [6 x i8] c"bogus\00", align 1
@ENOENT = dso_local global i32 0, align 4
@.str.12 = private unnamed_addr constant [7 x i8] c"ENOENT\00", align 1
@EBADF = dso_local global i32 0, align 4
@.str.13 = private unnamed_addr constant [6 x i8] c"EBADF\00", align 1
@ENOTDIR = dso_local global i32 0, align 4
@.str.14 = private unnamed_addr constant [8 x i8] c"ENOTDIR\00", align 1
@.str.15 = private unnamed_addr constant [49 x i8] c"Skipping O_BENEATH tests due to missing #define\0A\00", align 1
@.str.16 = private unnamed_addr constant [17 x i8] c"%d tests failed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%10 = call i32 (...) @prerequisites()
%11 = load i32, ptr @AT_FDCWD, align 4
%12 = load i32, ptr @O_RDONLY, align 4
%13 = call i32 @openat_or_die(i32 noundef %11, ptr noundef @.str, i32 noundef %12)
store i32 %13, ptr %7, align 4
%14 = load i32, ptr @AT_FDCWD, align 4
%15 = load i32, ptr @O_RDONLY, align 4
%16 = call i32 @openat_or_die(i32 noundef %14, ptr noundef @.str.1, i32 noundef %15)
store i32 %16, ptr %8, align 4
%17 = load i32, ptr @AT_FDCWD, align 4
%18 = load i32, ptr @O_RDONLY, align 4
%19 = call i32 @openat_or_die(i32 noundef %17, ptr noundef @.str.2, i32 noundef %18)
store i32 %19, ptr %9, align 4
%20 = load i32, ptr @O_RDONLY, align 4
%21 = call i64 @check_open(ptr noundef @.str.2, i32 noundef %20)
%22 = load i32, ptr %6, align 4
%23 = sext i32 %22 to i64
%24 = add nsw i64 %23, %21
%25 = trunc i64 %24 to i32
store i32 %25, ptr %6, align 4
%26 = load i32, ptr @O_RDONLY, align 4
%27 = call i64 @check_open(ptr noundef @.str.3, i32 noundef %26)
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = add nsw i64 %29, %27
%31 = trunc i64 %30 to i32
store i32 %31, ptr %6, align 4
%32 = load i32, ptr @AT_FDCWD, align 4
%33 = load i32, ptr @O_RDONLY, align 4
%34 = call i64 @check_openat(i32 noundef %32, ptr noundef @.str.2, i32 noundef %33)
%35 = load i32, ptr %6, align 4
%36 = sext i32 %35 to i64
%37 = add nsw i64 %36, %34
%38 = trunc i64 %37 to i32
store i32 %38, ptr %6, align 4
%39 = load i32, ptr @AT_FDCWD, align 4
%40 = load i32, ptr @O_RDONLY, align 4
%41 = call i64 @check_openat(i32 noundef %39, ptr noundef @.str.3, i32 noundef %40)
%42 = load i32, ptr %6, align 4
%43 = sext i32 %42 to i64
%44 = add nsw i64 %43, %41
%45 = trunc i64 %44 to i32
store i32 %45, ptr %6, align 4
%46 = load i32, ptr %7, align 4
%47 = load i32, ptr @O_RDONLY, align 4
%48 = call i64 @check_openat(i32 noundef %46, ptr noundef @.str.2, i32 noundef %47)
%49 = load i32, ptr %6, align 4
%50 = sext i32 %49 to i64
%51 = add nsw i64 %50, %48
%52 = trunc i64 %51 to i32
store i32 %52, ptr %6, align 4
%53 = load i32, ptr %7, align 4
%54 = load i32, ptr @O_RDONLY, align 4
%55 = call i64 @check_openat(i32 noundef %53, ptr noundef @.str.3, i32 noundef %54)
%56 = load i32, ptr %6, align 4
%57 = sext i32 %56 to i64
%58 = add nsw i64 %57, %55
%59 = trunc i64 %58 to i32
store i32 %59, ptr %6, align 4
%60 = load i32, ptr %7, align 4
%61 = load i32, ptr @O_RDONLY, align 4
%62 = call i64 @check_openat(i32 noundef %60, ptr noundef @.str.4, i32 noundef %61)
%63 = load i32, ptr %6, align 4
%64 = sext i32 %63 to i64
%65 = add nsw i64 %64, %62
%66 = trunc i64 %65 to i32
store i32 %66, ptr %6, align 4
%67 = load i32, ptr @O_RDONLY, align 4
%68 = call i64 @check_open(ptr noundef @.str.4, i32 noundef %67)
%69 = load i32, ptr %6, align 4
%70 = sext i32 %69 to i64
%71 = add nsw i64 %70, %68
%72 = trunc i64 %71 to i32
store i32 %72, ptr %6, align 4
%73 = load i32, ptr %8, align 4
%74 = load i32, ptr @O_RDONLY, align 4
%75 = call i64 @check_openat(i32 noundef %73, ptr noundef @.str.5, i32 noundef %74)
%76 = load i32, ptr %6, align 4
%77 = sext i32 %76 to i64
%78 = add nsw i64 %77, %75
%79 = trunc i64 %78 to i32
store i32 %79, ptr %6, align 4
%80 = load i32, ptr %8, align 4
%81 = load i32, ptr @O_RDONLY, align 4
%82 = call i64 @check_openat(i32 noundef %80, ptr noundef @.str.6, i32 noundef %81)
%83 = load i32, ptr %6, align 4
%84 = sext i32 %83 to i64
%85 = add nsw i64 %84, %82
%86 = trunc i64 %85 to i32
store i32 %86, ptr %6, align 4
%87 = load i32, ptr %8, align 4
%88 = load i32, ptr @O_RDONLY, align 4
%89 = call i64 @check_openat(i32 noundef %87, ptr noundef @.str.7, i32 noundef %88)
%90 = load i32, ptr %6, align 4
%91 = sext i32 %90 to i64
%92 = add nsw i64 %91, %89
%93 = trunc i64 %92 to i32
store i32 %93, ptr %6, align 4
%94 = load i32, ptr %8, align 4
%95 = load i32, ptr @O_RDONLY, align 4
%96 = call i64 @check_openat(i32 noundef %94, ptr noundef @.str.8, i32 noundef %95)
%97 = load i32, ptr %6, align 4
%98 = sext i32 %97 to i64
%99 = add nsw i64 %98, %96
%100 = trunc i64 %99 to i32
store i32 %100, ptr %6, align 4
%101 = load i32, ptr %8, align 4
%102 = load i32, ptr @O_RDONLY, align 4
%103 = call i64 @check_openat(i32 noundef %101, ptr noundef @.str.9, i32 noundef %102)
%104 = load i32, ptr %6, align 4
%105 = sext i32 %104 to i64
%106 = add nsw i64 %105, %103
%107 = trunc i64 %106 to i32
store i32 %107, ptr %6, align 4
%108 = load i32, ptr @O_RDONLY, align 4
%109 = call i64 @check_open(ptr noundef @.str.10, i32 noundef %108)
%110 = load i32, ptr %6, align 4
%111 = sext i32 %110 to i64
%112 = add nsw i64 %111, %109
%113 = trunc i64 %112 to i32
store i32 %113, ptr %6, align 4
%114 = load i32, ptr @AT_FDCWD, align 4
%115 = load i32, ptr @O_RDONLY, align 4
%116 = call i64 @check_openat(i32 noundef %114, ptr noundef @.str.10, i32 noundef %115)
%117 = load i32, ptr %6, align 4
%118 = sext i32 %117 to i64
%119 = add nsw i64 %118, %116
%120 = trunc i64 %119 to i32
store i32 %120, ptr %6, align 4
%121 = load i32, ptr %7, align 4
%122 = load i32, ptr @O_RDONLY, align 4
%123 = call i64 @check_openat(i32 noundef %121, ptr noundef @.str.10, i32 noundef %122)
%124 = load i32, ptr %6, align 4
%125 = sext i32 %124 to i64
%126 = add nsw i64 %125, %123
%127 = trunc i64 %126 to i32
store i32 %127, ptr %6, align 4
%128 = load i32, ptr %8, align 4
%129 = load i32, ptr @O_RDONLY, align 4
%130 = call i64 @check_openat(i32 noundef %128, ptr noundef @.str.10, i32 noundef %129)
%131 = load i32, ptr %6, align 4
%132 = sext i32 %131 to i64
%133 = add nsw i64 %132, %130
%134 = trunc i64 %133 to i32
store i32 %134, ptr %6, align 4
%135 = load i32, ptr @AT_FDCWD, align 4
%136 = load i32, ptr @O_RDONLY, align 4
%137 = load i32, ptr @ENOENT, align 4
%138 = call i64 @_check_openat_fail(i32 noundef %135, ptr noundef @.str.11, i32 noundef %136, i32 noundef %137, ptr noundef @.str.12)
%139 = load i32, ptr %6, align 4
%140 = sext i32 %139 to i64
%141 = add nsw i64 %140, %138
%142 = trunc i64 %141 to i32
store i32 %142, ptr %6, align 4
%143 = load i32, ptr %7, align 4
%144 = load i32, ptr @O_RDONLY, align 4
%145 = load i32, ptr @ENOENT, align 4
%146 = call i64 @_check_openat_fail(i32 noundef %143, ptr noundef @.str.11, i32 noundef %144, i32 noundef %145, ptr noundef @.str.12)
%147 = load i32, ptr %6, align 4
%148 = sext i32 %147 to i64
%149 = add nsw i64 %148, %146
%150 = trunc i64 %149 to i32
store i32 %150, ptr %6, align 4
%151 = load i32, ptr @O_RDONLY, align 4
%152 = load i32, ptr @EBADF, align 4
%153 = call i64 @_check_openat_fail(i32 noundef 999, ptr noundef @.str.11, i32 noundef %151, i32 noundef %152, ptr noundef @.str.13)
%154 = load i32, ptr %6, align 4
%155 = sext i32 %154 to i64
%156 = add nsw i64 %155, %153
%157 = trunc i64 %156 to i32
store i32 %157, ptr %6, align 4
%158 = load i32, ptr %9, align 4
%159 = load i32, ptr @O_RDONLY, align 4
%160 = load i32, ptr @ENOTDIR, align 4
%161 = call i64 @_check_openat_fail(i32 noundef %158, ptr noundef @.str.11, i32 noundef %159, i32 noundef %160, ptr noundef @.str.14)
%162 = load i32, ptr %6, align 4
%163 = sext i32 %162 to i64
%164 = add nsw i64 %163, %161
%165 = trunc i64 %164 to i32
store i32 %165, ptr %6, align 4
%166 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
%167 = call i64 (...) @check_proc()
%168 = load i32, ptr %6, align 4
%169 = sext i32 %168 to i64
%170 = add nsw i64 %169, %167
%171 = trunc i64 %170 to i32
store i32 %171, ptr %6, align 4
%172 = call i64 (...) @check_setfl()
%173 = load i32, ptr %6, align 4
%174 = sext i32 %173 to i64
%175 = add nsw i64 %174, %172
%176 = trunc i64 %175 to i32
store i32 %176, ptr %6, align 4
%177 = load i32, ptr %6, align 4
%178 = icmp sgt i32 %177, 0
br i1 %178, label %179, label %182
179: ; preds = %2
%180 = load i32, ptr %6, align 4
%181 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %180)
br label %182
182: ; preds = %179, %2
%183 = load i32, ptr %6, align 4
ret i32 %183
}
declare i32 @prerequisites(...) #1
declare i32 @openat_or_die(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @check_open(ptr noundef, i32 noundef) #1
declare i64 @check_openat(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @_check_openat_fail(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @check_proc(...) #1
declare i64 @check_setfl(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8mlv0m68.c'
source_filename = "/tmp/tmp8mlv0m68.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @info_led_off() #0 {
%1 = call i32 (...) @_card_led_off()
ret void
}
declare i32 @_card_led_off(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8mlv0m68.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @info_led_off() #0 {
%1 = call i32 (...) @_card_led_off()
ret void
}
declare i32 @_card_led_off(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkrmo0zoo.c'
source_filename = "/tmp/tmpkrmo0zoo.c"
target datalayout = "e-m:e-p270: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/tmpkrmo0zoo.c"
target datalayout = "e-m:e-p270: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/tmpl_fan9or.c'
source_filename = "/tmp/tmpl_fan9or.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PATH_MAX = 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/tmpl_fan9or.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PATH_MAX = 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/tmpkeysbcw0.c'
source_filename = "/tmp/tmpkeysbcw0.c"
target datalayout = "e-m:e-p270: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/tmpkeysbcw0.c"
target datalayout = "e-m:e-p270: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/tmpn5g27pfg.c'
source_filename = "/tmp/tmpn5g27pfg.c"
target datalayout = "e-m:e-p270: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
@EWOULDBLOCK = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_locked(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = call i64 @sw_nb_ex_flock(i32 noundef %4)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = call i32 @sw_un_flock(i32 noundef %8)
store i32 0, ptr %2, align 4
br label %16
10: ; preds = %1
%11 = load i64, ptr @errno, align 8
%12 = load i64, ptr @EWOULDBLOCK, align 8
%13 = icmp eq i64 %11, %12
br i1 %13, label %14, label %15
14: ; preds = %10
store i32 1, ptr %2, align 4
br label %16
15: ; preds = %10
store i32 -1, ptr %2, align 4
br label %16
16: ; preds = %15, %14, %7
%17 = load i32, ptr %2, align 4
ret i32 %17
}
declare i64 @sw_nb_ex_flock(i32 noundef) #1
declare i32 @sw_un_flock(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/tmpn5g27pfg.c"
target datalayout = "e-m:e-p270: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
@EWOULDBLOCK = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_locked(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = call i64 @sw_nb_ex_flock(i32 noundef %4)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = call i32 @sw_un_flock(i32 noundef %8)
store i32 0, ptr %2, align 4
br label %16
10: ; preds = %1
%11 = load i64, ptr @errno, align 8
%12 = load i64, ptr @EWOULDBLOCK, align 8
%13 = icmp eq i64 %11, %12
br i1 %13, label %14, label %15
14: ; preds = %10
store i32 1, ptr %2, align 4
br label %16
15: ; preds = %10
store i32 -1, ptr %2, align 4
br label %16
16: ; preds = %15, %14, %7
%17 = load i32, ptr %2, align 4
ret i32 %17
}
declare i64 @sw_nb_ex_flock(i32 noundef) #1
declare i32 @sw_un_flock(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/tmpxv29u8vj.c'
source_filename = "/tmp/tmpxv29u8vj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%04d.txt\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"Writing file %s...\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%f \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 void @write(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [255 x i8], align 16
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%12 = getelementptr inbounds [255 x i8], ptr %9, i64 0, i64 0
%13 = load i32, ptr %5, align 4
%14 = call i32 @sprintf(ptr noundef %12, ptr noundef @.str, i32 noundef %13)
%15 = getelementptr inbounds [255 x i8], ptr %9, i64 0, i64 0
%16 = call i32 @printf(ptr noundef @.str.1, ptr noundef %15)
%17 = getelementptr inbounds [255 x i8], ptr %9, i64 0, i64 0
%18 = call ptr @fopen(ptr noundef %17, ptr noundef @.str.2)
store ptr %18, ptr %10, align 8
%19 = load i32, ptr %6, align 4
%20 = sdiv i32 %19, 3
store i32 %20, ptr %11, align 4
store i32 0, ptr %8, align 4
br label %21
21: ; preds = %53, %3
%22 = load i32, ptr %8, align 4
%23 = load i32, ptr %6, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %56
25: ; preds = %21
store i32 0, ptr %7, align 4
br label %26
26: ; preds = %47, %25
%27 = load i32, ptr %7, align 4
%28 = load i32, ptr %6, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %30, label %50
30: ; preds = %26
%31 = load ptr, ptr %10, align 8
%32 = load ptr, ptr %4, align 8
%33 = load i32, ptr %7, align 4
%34 = load i32, ptr %6, align 4
%35 = load i32, ptr %8, align 4
%36 = load i32, ptr %6, align 4
%37 = load i32, ptr %11, align 4
%38 = mul nsw i32 %36, %37
%39 = add nsw i32 %35, %38
%40 = mul nsw i32 %34, %39
%41 = add nsw i32 %33, %40
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds float, ptr %32, i64 %42
%44 = load float, ptr %43, align 4
%45 = fpext float %44 to double
%46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef @.str.3, double noundef %45)
br label %47
47: ; preds = %30
%48 = load i32, ptr %7, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %7, align 4
br label %26, !llvm.loop !6
50: ; preds = %26
%51 = load ptr, ptr %10, align 8
%52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef @.str.4)
br label %53
53: ; preds = %50
%54 = load i32, ptr %8, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %8, align 4
br label %21, !llvm.loop !8
56: ; preds = %21
%57 = load ptr, ptr %10, align 8
%58 = call i32 @fclose(ptr noundef %57)
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
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/tmpxv29u8vj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%04d.txt\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"Writing file %s...\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%f \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 void @write(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [255 x i8], align 16
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%12 = getelementptr inbounds [255 x i8], ptr %9, i64 0, i64 0
%13 = load i32, ptr %5, align 4
%14 = call i32 @sprintf(ptr noundef %12, ptr noundef @.str, i32 noundef %13)
%15 = getelementptr inbounds [255 x i8], ptr %9, i64 0, i64 0
%16 = call i32 @printf(ptr noundef @.str.1, ptr noundef %15)
%17 = getelementptr inbounds [255 x i8], ptr %9, i64 0, i64 0
%18 = call ptr @fopen(ptr noundef %17, ptr noundef @.str.2)
store ptr %18, ptr %10, align 8
%19 = load i32, ptr %6, align 4
%20 = sdiv i32 %19, 3
store i32 %20, ptr %11, align 4
store i32 0, ptr %8, align 4
%21 = load i32, ptr %8, align 4
%22 = load i32, ptr %6, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %.lr.ph2, label %60
.lr.ph2: ; preds = %3
br label %24
24: ; preds = %.lr.ph2, %54
store i32 0, ptr %7, align 4
%25 = load i32, ptr %7, align 4
%26 = load i32, ptr %6, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %.lr.ph, label %51
.lr.ph: ; preds = %24
br label %28
28: ; preds = %.lr.ph, %45
%29 = load ptr, ptr %10, align 8
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %7, align 4
%32 = load i32, ptr %6, align 4
%33 = load i32, ptr %8, align 4
%34 = load i32, ptr %6, align 4
%35 = load i32, ptr %11, align 4
%36 = mul nsw i32 %34, %35
%37 = add nsw i32 %33, %36
%38 = mul nsw i32 %32, %37
%39 = add nsw i32 %31, %38
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds float, ptr %30, i64 %40
%42 = load float, ptr %41, align 4
%43 = fpext float %42 to double
%44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef @.str.3, double noundef %43)
br label %45
45: ; preds = %28
%46 = load i32, ptr %7, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %7, align 4
%48 = load i32, ptr %7, align 4
%49 = load i32, ptr %6, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %45
br label %51
51: ; preds = %._crit_edge, %24
%52 = load ptr, ptr %10, align 8
%53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef @.str.4)
br label %54
54: ; preds = %51
%55 = load i32, ptr %8, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %8, align 4
%57 = load i32, ptr %8, align 4
%58 = load i32, ptr %6, align 4
%59 = icmp slt i32 %57, %58
br i1 %59, label %24, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %54
br label %60
60: ; preds = %._crit_edge3, %3
%61 = load ptr, ptr %10, align 8
%62 = call i32 @fclose(ptr noundef %61)
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
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/tmptjrkqjmg.c'
source_filename = "/tmp/tmptjrkqjmg.c"
target datalayout = "e-m:e-p270: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/tmptjrkqjmg.c"
target datalayout = "e-m:e-p270: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/tmpe3jn4csz.c'
source_filename = "/tmp/tmpe3jn4csz.c"
target datalayout = "e-m:e-p270: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/tmpe3jn4csz.c"
target datalayout = "e-m:e-p270: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/tmps3kg_g54.c'
source_filename = "/tmp/tmps3kg_g54.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i64 }
@FD_SETSIZE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [14 x i8] c"numbyte = %i\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"readport110 n = %i\0A\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"data110 = %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@EAGAIN = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [21 x i8] c"SERIAL EAGAIN ERROR\0A\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"SERIAL read error %d %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @readport110(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i8, align 1
%10 = alloca i32, align 4
%11 = alloca %struct.timeval, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 107, ptr %7, align 4
store i32 0, ptr %8, align 4
%12 = call i32 @FD_ZERO(ptr noundef %10)
%13 = load i32, ptr %4, align 4
%14 = call i32 @FD_SET(i32 noundef %13, ptr noundef %10)
%15 = getelementptr inbounds %struct.timeval, ptr %11, i32 0, i32 1
store i64 0, ptr %15, align 8
%16 = getelementptr inbounds %struct.timeval, ptr %11, i32 0, i32 0
store i32 300000, ptr %16, align 8
%17 = load i32, ptr @FD_SETSIZE, align 4
%18 = call i32 @select(i32 noundef %17, ptr noundef %10, ptr noundef null, ptr noundef null, ptr noundef %11)
store i32 %18, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %19)
%21 = load i32, ptr %8, align 4
%22 = icmp sgt i32 %21, 0
br i1 %22, label %23, label %34
23: ; preds = %2
%24 = load i32, ptr %4, align 4
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %7, align 4
%27 = call i32 @read(i32 noundef %24, ptr noundef %25, i32 noundef %26)
store i32 %27, ptr %6, align 4
%28 = load i32, ptr %6, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %28)
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds i8, ptr %30, i64 109
store i8 0, ptr %31, align 1
%32 = load ptr, ptr %5, align 8
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %32)
br label %34
34: ; preds = %23, %2
%35 = load i32, ptr %6, align 4
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %48
37: ; preds = %34
%38 = load i32, ptr @errno, align 4
%39 = load i32, ptr @EAGAIN, align 4
%40 = icmp eq i32 %38, %39
br i1 %40, label %41, label %43
41: ; preds = %37
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %3, align 4
br label %49
43: ; preds = %37
%44 = load i32, ptr @errno, align 4
%45 = load i32, ptr @errno, align 4
%46 = call ptr @strerror(i32 noundef %45)
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %44, ptr noundef %46)
store i32 0, ptr %3, align 4
br label %49
48: ; preds = %34
store i32 1, ptr %3, align 4
br label %49
49: ; preds = %48, %43, %41
%50 = load i32, ptr %3, align 4
ret i32 %50
}
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare ptr @strerror(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/tmps3kg_g54.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i64 }
@FD_SETSIZE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [14 x i8] c"numbyte = %i\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"readport110 n = %i\0A\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"data110 = %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@EAGAIN = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [21 x i8] c"SERIAL EAGAIN ERROR\0A\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"SERIAL read error %d %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @readport110(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i8, align 1
%10 = alloca i32, align 4
%11 = alloca %struct.timeval, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 107, ptr %7, align 4
store i32 0, ptr %8, align 4
%12 = call i32 @FD_ZERO(ptr noundef %10)
%13 = load i32, ptr %4, align 4
%14 = call i32 @FD_SET(i32 noundef %13, ptr noundef %10)
%15 = getelementptr inbounds %struct.timeval, ptr %11, i32 0, i32 1
store i64 0, ptr %15, align 8
%16 = getelementptr inbounds %struct.timeval, ptr %11, i32 0, i32 0
store i32 300000, ptr %16, align 8
%17 = load i32, ptr @FD_SETSIZE, align 4
%18 = call i32 @select(i32 noundef %17, ptr noundef %10, ptr noundef null, ptr noundef null, ptr noundef %11)
store i32 %18, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %19)
%21 = load i32, ptr %8, align 4
%22 = icmp sgt i32 %21, 0
br i1 %22, label %23, label %34
23: ; preds = %2
%24 = load i32, ptr %4, align 4
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %7, align 4
%27 = call i32 @read(i32 noundef %24, ptr noundef %25, i32 noundef %26)
store i32 %27, ptr %6, align 4
%28 = load i32, ptr %6, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %28)
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds i8, ptr %30, i64 109
store i8 0, ptr %31, align 1
%32 = load ptr, ptr %5, align 8
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %32)
br label %34
34: ; preds = %23, %2
%35 = load i32, ptr %6, align 4
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %48
37: ; preds = %34
%38 = load i32, ptr @errno, align 4
%39 = load i32, ptr @EAGAIN, align 4
%40 = icmp eq i32 %38, %39
br i1 %40, label %41, label %43
41: ; preds = %37
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %3, align 4
br label %49
43: ; preds = %37
%44 = load i32, ptr @errno, align 4
%45 = load i32, ptr @errno, align 4
%46 = call ptr @strerror(i32 noundef %45)
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %44, ptr noundef %46)
store i32 0, ptr %3, align 4
br label %49
48: ; preds = %34
store i32 1, ptr %3, align 4
br label %49
49: ; preds = %48, %43, %41
%50 = load i32, ptr %3, align 4
ret i32 %50
}
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare ptr @strerror(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/tmpy2yzvgz_.c'
source_filename = "/tmp/tmpy2yzvgz_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%d %d %d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.3 = 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 i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
store i32 1, ptr %5, align 4
br label %8
8: ; preds = %46, %0
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp sle i32 %9, %10
br i1 %11, label %12, label %49
12: ; preds = %8
store i32 1, ptr %6, align 4
br label %13
13: ; preds = %41, %12
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %3, align 4
%16 = icmp sle i32 %14, %15
br i1 %16, label %17, label %44
17: ; preds = %13
%18 = load i32, ptr %5, align 4
%19 = icmp eq i32 %18, 1
br i1 %19, label %24, label %20
20: ; preds = %17
%21 = load i32, ptr %5, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp eq i32 %21, %22
br i1 %23, label %24, label %27
24: ; preds = %20, %17
%25 = load i32, ptr %2, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %25)
br label %40
27: ; preds = %20
%28 = load i32, ptr %6, align 4
%29 = icmp eq i32 %28, 1
br i1 %29, label %34, label %30
30: ; preds = %27
%31 = load i32, ptr %6, align 4
%32 = load i32, ptr %3, align 4
%33 = icmp eq i32 %31, %32
br i1 %33, label %34, label %37
34: ; preds = %30, %27
%35 = load i32, ptr %2, align 4
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %35)
br label %39
37: ; preds = %30
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %39
39: ; preds = %37, %34
br label %40
40: ; preds = %39, %24
br label %41
41: ; preds = %40
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
br label %13, !llvm.loop !6
44: ; preds = %13
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %46
46: ; preds = %44
%47 = load i32, ptr %5, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %5, align 4
br label %8, !llvm.loop !8
49: ; preds = %8
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy2yzvgz_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%d %d %d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.3 = 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 i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
store i32 1, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp sle i32 %8, %9
br i1 %10, label %.lr.ph2, label %53
.lr.ph2: ; preds = %0
br label %11
11: ; preds = %.lr.ph2, %47
store i32 1, ptr %6, align 4
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %3, align 4
%14 = icmp sle i32 %12, %13
br i1 %14, label %.lr.ph, label %45
.lr.ph: ; preds = %11
br label %15
15: ; preds = %.lr.ph, %39
%16 = load i32, ptr %5, align 4
%17 = icmp eq i32 %16, 1
br i1 %17, label %22, label %18
18: ; preds = %15
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp eq i32 %19, %20
br i1 %21, label %22, label %25
22: ; preds = %18, %15
%23 = load i32, ptr %2, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %23)
br label %38
25: ; preds = %18
%26 = load i32, ptr %6, align 4
%27 = icmp eq i32 %26, 1
br i1 %27, label %32, label %28
28: ; preds = %25
%29 = load i32, ptr %6, align 4
%30 = load i32, ptr %3, align 4
%31 = icmp eq i32 %29, %30
br i1 %31, label %32, label %35
32: ; preds = %28, %25
%33 = load i32, ptr %2, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %33)
br label %37
35: ; preds = %28
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %37
37: ; preds = %35, %32
br label %38
38: ; preds = %37, %22
br label %39
39: ; preds = %38
%40 = load i32, ptr %6, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %6, align 4
%42 = load i32, ptr %6, align 4
%43 = load i32, ptr %3, align 4
%44 = icmp sle i32 %42, %43
br i1 %44, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %39
br label %45
45: ; preds = %._crit_edge, %11
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %47
47: ; preds = %45
%48 = load i32, ptr %5, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %5, align 4
%50 = load i32, ptr %5, align 4
%51 = load i32, ptr %4, align 4
%52 = icmp sle i32 %50, %51
br i1 %52, label %11, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %47
br label %53
53: ; preds = %._crit_edge3, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpnrrdg8sa.c'
source_filename = "/tmp/tmpnrrdg8sa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @xstrcspn(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @set_up_table(ptr noundef %6, i32 noundef 1)
store i64 0, ptr %5, align 8
br label %8
8: ; preds = %17, %2
%9 = load ptr, ptr %3, align 8
%10 = load i64, ptr %5, align 8
%11 = getelementptr inbounds i8, ptr %9, i64 %10
%12 = load i8, ptr %11, align 1
%13 = call i32 @in_current_set(i8 noundef zeroext %12)
%14 = icmp ne i32 %13, 0
%15 = xor i1 %14, true
br i1 %15, label %16, label %20
16: ; preds = %8
br label %17
17: ; preds = %16
%18 = load i64, ptr %5, align 8
%19 = add i64 %18, 1
store i64 %19, ptr %5, align 8
br label %8, !llvm.loop !6
20: ; preds = %8
%21 = load i64, ptr %5, align 8
ret i64 %21
}
declare i32 @set_up_table(ptr noundef, i32 noundef) #1
declare i32 @in_current_set(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnrrdg8sa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @xstrcspn(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @set_up_table(ptr noundef %6, i32 noundef 1)
store i64 0, ptr %5, align 8
%8 = load ptr, ptr %3, align 8
%9 = load i64, ptr %5, align 8
%10 = getelementptr inbounds i8, ptr %8, i64 %9
%11 = load i8, ptr %10, align 1
%12 = call i32 @in_current_set(i8 noundef zeroext %11)
%13 = icmp ne i32 %12, 0
%14 = xor i1 %13, true
br i1 %14, label %.lr.ph, label %26
.lr.ph: ; preds = %2
br label %15
15: ; preds = %.lr.ph, %16
br label %16
16: ; preds = %15
%17 = load i64, ptr %5, align 8
%18 = add i64 %17, 1
store i64 %18, ptr %5, align 8
%19 = load ptr, ptr %3, align 8
%20 = load i64, ptr %5, align 8
%21 = getelementptr inbounds i8, ptr %19, i64 %20
%22 = load i8, ptr %21, align 1
%23 = call i32 @in_current_set(i8 noundef zeroext %22)
%24 = icmp ne i32 %23, 0
%25 = xor i1 %24, true
br i1 %25, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %26
26: ; preds = %._crit_edge, %2
%27 = load i64, ptr %5, align 8
ret i64 %27
}
declare i32 @set_up_table(ptr noundef, i32 noundef) #1
declare i32 @in_current_set(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp79ih_j_c.c'
source_filename = "/tmp/tmp79ih_j_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 ptr @GetNextLine(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr null, ptr %4, align 8
store i32 0, ptr %5, align 4
%6 = call i64 @malloc(i32 noundef 1)
%7 = inttoptr i64 %6 to ptr
store ptr %7, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %11
10: ; preds = %1
store ptr null, ptr %2, align 8
br label %56
11: ; preds = %1
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 0
store i8 0, ptr %13, align 1
br label %14
14: ; preds = %11, %53
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %5, align 4
%17 = add nsw i32 %16, 2
%18 = call ptr @realloc(ptr noundef %15, i32 noundef %17)
store ptr %18, ptr %4, align 8
%19 = load ptr, ptr %4, align 8
%20 = icmp eq ptr %19, null
br i1 %20, label %21, label %24
21: ; preds = %14
%22 = load ptr, ptr %4, align 8
%23 = call i32 @free(ptr noundef %22)
store ptr null, ptr %2, align 8
br label %56
24: ; preds = %14
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = load ptr, ptr %3, align 8
%30 = call ptr @fgets(ptr noundef %28, i32 noundef 2, ptr noundef %29)
%31 = icmp eq ptr %30, null
br i1 %31, label %32, label %39
32: ; preds = %24
%33 = load i32, ptr %5, align 4
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %32
%36 = load ptr, ptr %4, align 8
%37 = call i32 @free(ptr noundef %36)
store ptr null, ptr %2, align 8
br label %56
38: ; preds = %32
br label %39
39: ; preds = %38, %24
%40 = load ptr, ptr %4, align 8
%41 = load i32, ptr %5, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %40, i64 %42
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %45, 10
br i1 %46, label %47, label %53
47: ; preds = %39
%48 = load ptr, ptr %4, align 8
%49 = load i32, ptr %5, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i8, ptr %48, i64 %50
store i8 0, ptr %51, align 1
%52 = load ptr, ptr %4, align 8
store ptr %52, ptr %2, align 8
br label %56
53: ; preds = %39
%54 = load i32, ptr %5, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %5, align 4
br label %14
56: ; preds = %47, %35, %21, %10
%57 = load ptr, ptr %2, align 8
ret ptr %57
}
declare i64 @malloc(i32 noundef) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp79ih_j_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 ptr @GetNextLine(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr null, ptr %4, align 8
store i32 0, ptr %5, align 4
%6 = call i64 @malloc(i32 noundef 1)
%7 = inttoptr i64 %6 to ptr
store ptr %7, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %11
10: ; preds = %1
store ptr null, ptr %2, align 8
br label %61
11: ; preds = %1
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 0
store i8 0, ptr %13, align 1
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr %5, align 4
%16 = add nsw i32 %15, 2
%17 = call ptr @realloc(ptr noundef %14, i32 noundef %16)
store ptr %17, ptr %4, align 8
%18 = load ptr, ptr %4, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %.lr.ph
.lr.ph: ; preds = %11
br label %23
._crit_edge: ; preds = %52
br label %20
20: ; preds = %._crit_edge, %11
%21 = load ptr, ptr %4, align 8
%22 = call i32 @free(ptr noundef %21)
store ptr null, ptr %2, align 8
br label %61
23: ; preds = %.lr.ph, %52
%24 = load ptr, ptr %4, align 8
%25 = load i32, ptr %5, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
%28 = load ptr, ptr %3, align 8
%29 = call ptr @fgets(ptr noundef %27, i32 noundef 2, ptr noundef %28)
%30 = icmp eq ptr %29, null
br i1 %30, label %31, label %38
31: ; preds = %23
%32 = load i32, ptr %5, align 4
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %37
34: ; preds = %31
%35 = load ptr, ptr %4, align 8
%36 = call i32 @free(ptr noundef %35)
store ptr null, ptr %2, align 8
br label %61
37: ; preds = %31
br label %38
38: ; preds = %37, %23
%39 = load ptr, ptr %4, align 8
%40 = load i32, ptr %5, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, ptr %39, i64 %41
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 10
br i1 %45, label %46, label %52
46: ; preds = %38
%47 = load ptr, ptr %4, align 8
%48 = load i32, ptr %5, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, ptr %47, i64 %49
store i8 0, ptr %50, align 1
%51 = load ptr, ptr %4, align 8
store ptr %51, ptr %2, align 8
br label %61
52: ; preds = %38
%53 = load i32, ptr %5, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %5, align 4
%55 = load ptr, ptr %4, align 8
%56 = load i32, ptr %5, align 4
%57 = add nsw i32 %56, 2
%58 = call ptr @realloc(ptr noundef %55, i32 noundef %57)
store ptr %58, ptr %4, align 8
%59 = load ptr, ptr %4, align 8
%60 = icmp eq ptr %59, null
br i1 %60, label %._crit_edge, label %23
61: ; preds = %46, %34, %20, %10
%62 = load ptr, ptr %2, align 8
ret ptr %62
}
declare i64 @malloc(i32 noundef) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkq3kxj0w.c'
source_filename = "/tmp/tmpkq3kxj0w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"NICK %s\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @irc_nick(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 %3, align 4
%6 = load ptr, ptr %4, align 8
%7 = call i32 @sck_sendf(i32 noundef %5, ptr noundef @.str, ptr noundef %6)
ret i32 %7
}
declare i32 @sck_sendf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkq3kxj0w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"NICK %s\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @irc_nick(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 %3, align 4
%6 = load ptr, ptr %4, align 8
%7 = call i32 @sck_sendf(i32 noundef %5, ptr noundef @.str, ptr noundef %6)
ret i32 %7
}
declare i32 @sck_sendf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpw4lxu3ws.c'
source_filename = "/tmp/tmpw4lxu3ws.c"
target datalayout = "e-m:e-p270: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/tmpw4lxu3ws.c"
target datalayout = "e-m:e-p270: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/tmph1su1fsq.c'
source_filename = "/tmp/tmph1su1fsq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@I2C_SMBUS_WRITE = dso_local global i32 0, align 4
@I2C_SMBUS_BYTE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @i2c_smbus_write_byte(i32 noundef %0, i8 noundef zeroext %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i8, align 1
store i32 %0, ptr %3, align 4
store i8 %1, ptr %4, align 1
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr @I2C_SMBUS_WRITE, align 4
%7 = load i8, ptr %4, align 1
%8 = load i32, ptr @I2C_SMBUS_BYTE, align 4
%9 = call i64 @i2c_smbus_access(i32 noundef %5, i32 noundef %6, i8 noundef zeroext %7, i32 noundef %8, i32 noundef 0)
ret i64 %9
}
declare i64 @i2c_smbus_access(i32 noundef, i32 noundef, i8 noundef zeroext, 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/tmph1su1fsq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@I2C_SMBUS_WRITE = dso_local global i32 0, align 4
@I2C_SMBUS_BYTE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @i2c_smbus_write_byte(i32 noundef %0, i8 noundef zeroext %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i8, align 1
store i32 %0, ptr %3, align 4
store i8 %1, ptr %4, align 1
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr @I2C_SMBUS_WRITE, align 4
%7 = load i8, ptr %4, align 1
%8 = load i32, ptr @I2C_SMBUS_BYTE, align 4
%9 = call i64 @i2c_smbus_access(i32 noundef %5, i32 noundef %6, i8 noundef zeroext %7, i32 noundef %8, i32 noundef 0)
ret i64 %9
}
declare i64 @i2c_smbus_access(i32 noundef, i32 noundef, i8 noundef zeroext, 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/tmpe0ks91i9.c'
source_filename = "/tmp/tmpe0ks91i9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [15 x i8] c"Usage: %s <n>\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca 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 i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %12, 2
br i1 %13, label %14, label %21
14: ; preds = %2
%15 = load i32, ptr @stdout, align 4
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 0
%18 = load ptr, ptr %17, align 8
%19 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %15, ptr noundef @.str, ptr noundef %18)
%20 = call i32 @exit(i32 noundef 1) #3
unreachable
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i32 @atoi(ptr noundef %24)
store i32 %25, ptr %7, align 4
%26 = load i32, ptr %7, align 4
%27 = sext i32 %26 to i64
%28 = mul i64 %27, 4
%29 = trunc i64 %28 to i32
%30 = call i64 @malloc(i32 noundef %29)
%31 = inttoptr i64 %30 to ptr
store ptr %31, ptr %6, align 8
store i32 0, ptr %8, align 4
br label %32
32: ; preds = %58, %21
%33 = load i32, ptr %8, align 4
%34 = load i32, ptr %7, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %36, label %61
36: ; preds = %32
%37 = call i64 (...) @fork()
%38 = icmp ne i64 %37, 0
br i1 %38, label %39, label %52
39: ; preds = %36
%40 = call i64 (...) @fork()
%41 = icmp ne i64 %40, 0
br i1 %41, label %42, label %46
42: ; preds = %39
%43 = call i32 @wait(ptr noundef null)
%44 = call i32 @wait(ptr noundef null)
%45 = call i32 @exit(i32 noundef 0) #3
unreachable
46: ; preds = %39
%47 = load ptr, ptr %6, align 8
%48 = load i32, ptr %8, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, ptr %47, i64 %49
store i32 0, ptr %50, align 4
br label %51
51: ; preds = %46
br label %57
52: ; preds = %36
%53 = load ptr, ptr %6, align 8
%54 = load i32, ptr %8, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i32, ptr %53, i64 %55
store i32 1, ptr %56, align 4
br label %57
57: ; preds = %52, %51
br label %58
58: ; preds = %57
%59 = load i32, ptr %8, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %8, align 4
br label %32, !llvm.loop !6
61: ; preds = %32
store i32 0, ptr %9, align 4
br label %62
62: ; preds = %74, %61
%63 = load i32, ptr %9, align 4
%64 = load i32, ptr %7, align 4
%65 = icmp slt i32 %63, %64
br i1 %65, label %66, label %77
66: ; preds = %62
%67 = load i32, ptr @stdout, align 4
%68 = load ptr, ptr %6, align 8
%69 = load i32, ptr %9, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i32, ptr %68, i64 %70
%72 = load i32, ptr %71, align 4
%73 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %67, ptr noundef @.str.1, i32 noundef %72)
br label %74
74: ; preds = %66
%75 = load i32, ptr %9, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %9, align 4
br label %62, !llvm.loop !8
77: ; preds = %62
%78 = load i32, ptr @stdout, align 4
%79 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %78, ptr noundef @.str.2)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i64 @fork(...) #1
declare i32 @wait(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe0ks91i9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [15 x i8] c"Usage: %s <n>\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca 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 i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %12, 2
br i1 %13, label %14, label %21
14: ; preds = %2
%15 = load i32, ptr @stdout, align 4
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 0
%18 = load ptr, ptr %17, align 8
%19 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %15, ptr noundef @.str, ptr noundef %18)
%20 = call i32 @exit(i32 noundef 1) #3
unreachable
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i32 @atoi(ptr noundef %24)
store i32 %25, ptr %7, align 4
%26 = load i32, ptr %7, align 4
%27 = sext i32 %26 to i64
%28 = mul i64 %27, 4
%29 = trunc i64 %28 to i32
%30 = call i64 @malloc(i32 noundef %29)
%31 = inttoptr i64 %30 to ptr
store ptr %31, ptr %6, align 8
store i32 0, ptr %8, align 4
%32 = load i32, ptr %8, align 4
%33 = load i32, ptr %7, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %.lr.ph, label %63
.lr.ph: ; preds = %21
br label %35
35: ; preds = %.lr.ph, %57
%36 = call i64 (...) @fork()
%37 = icmp ne i64 %36, 0
br i1 %37, label %38, label %51
38: ; preds = %35
%39 = call i64 (...) @fork()
%40 = icmp ne i64 %39, 0
br i1 %40, label %41, label %45
41: ; preds = %38
%42 = call i32 @wait(ptr noundef null)
%43 = call i32 @wait(ptr noundef null)
%44 = call i32 @exit(i32 noundef 0) #3
unreachable
45: ; preds = %38
%46 = load ptr, ptr %6, align 8
%47 = load i32, ptr %8, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i32, ptr %46, i64 %48
store i32 0, ptr %49, align 4
br label %50
50: ; preds = %45
br label %56
51: ; preds = %35
%52 = load ptr, ptr %6, align 8
%53 = load i32, ptr %8, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i32, ptr %52, i64 %54
store i32 1, ptr %55, align 4
br label %56
56: ; preds = %51, %50
br label %57
57: ; preds = %56
%58 = load i32, ptr %8, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %8, align 4
%60 = load i32, ptr %8, align 4
%61 = load i32, ptr %7, align 4
%62 = icmp slt i32 %60, %61
br i1 %62, label %35, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %57
br label %63
63: ; preds = %._crit_edge, %21
store i32 0, ptr %9, align 4
%64 = load i32, ptr %9, align 4
%65 = load i32, ptr %7, align 4
%66 = icmp slt i32 %64, %65
br i1 %66, label %.lr.ph2, label %81
.lr.ph2: ; preds = %63
br label %67
67: ; preds = %.lr.ph2, %75
%68 = load i32, ptr @stdout, align 4
%69 = load ptr, ptr %6, align 8
%70 = load i32, ptr %9, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i32, ptr %69, i64 %71
%73 = load i32, ptr %72, align 4
%74 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %68, ptr noundef @.str.1, i32 noundef %73)
br label %75
75: ; preds = %67
%76 = load i32, ptr %9, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %9, align 4
%78 = load i32, ptr %9, align 4
%79 = load i32, ptr %7, align 4
%80 = icmp slt i32 %78, %79
br i1 %80, label %67, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %75
br label %81
81: ; preds = %._crit_edge3, %63
%82 = load i32, ptr @stdout, align 4
%83 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %82, ptr noundef @.str.2)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i64 @fork(...) #1
declare i32 @wait(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpt6knuseg.c'
source_filename = "/tmp/tmpt6knuseg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_GETFD = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@EBADF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_open(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @atoi(ptr noundef %6)
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr @F_GETFD, align 4
%10 = call i32 @fcntl(i32 noundef %8, i32 noundef %9, ptr noundef %5)
store i32 %10, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %19
13: ; preds = %1
%14 = load i32, ptr @errno, align 4
%15 = load i32, ptr @EBADF, align 4
%16 = icmp eq i32 %14, %15
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = call i32 @exit(i32 noundef 0) #3
unreachable
19: ; preds = %13, %1
%20 = load i32, ptr %4, align 4
%21 = icmp ne i32 %20, -1
br i1 %21, label %22, label %24
22: ; preds = %19
%23 = call i32 @exit(i32 noundef 3) #3
unreachable
24: ; preds = %19
%25 = load i32, ptr @errno, align 4
%26 = call i32 @exit(i32 noundef %25) #3
unreachable
}
declare i32 @atoi(ptr noundef) #1
declare i32 @fcntl(i32 noundef, i32 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/tmpt6knuseg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_GETFD = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@EBADF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_open(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @atoi(ptr noundef %6)
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr @F_GETFD, align 4
%10 = call i32 @fcntl(i32 noundef %8, i32 noundef %9, ptr noundef %5)
store i32 %10, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %19
13: ; preds = %1
%14 = load i32, ptr @errno, align 4
%15 = load i32, ptr @EBADF, align 4
%16 = icmp eq i32 %14, %15
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = call i32 @exit(i32 noundef 0) #3
unreachable
19: ; preds = %13, %1
%20 = load i32, ptr %4, align 4
%21 = icmp ne i32 %20, -1
br i1 %21, label %22, label %24
22: ; preds = %19
%23 = call i32 @exit(i32 noundef 3) #3
unreachable
24: ; preds = %19
%25 = load i32, ptr @errno, align 4
%26 = call i32 @exit(i32 noundef %25) #3
unreachable
}
declare i32 @atoi(ptr noundef) #1
declare i32 @fcntl(i32 noundef, i32 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/tmpvfikwtg2.c'
source_filename = "/tmp/tmpvfikwtg2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"\0Amatriz de indicess\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 \00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"\0Amatriz de indices: \0A\00", align 1
@.str.4 = private unnamed_addr constant [57 x i8] c"\0AIndice escolhido: (dir: %d, col. /lin. : %d, loct: %d)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @chck(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i8 noundef signext %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i8, align 1
%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 i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca [10 x [10 x i32]], align 16
%25 = alloca [10 x [10 x i32]], align 16
%26 = alloca i32, align 4
%27 = alloca i32, align 4
%28 = alloca i32, align 4
%29 = alloca i32, align 4
%30 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store i8 %5, ptr %12, align 1
store i32 0, ptr %17, align 4
store i32 0, ptr %18, align 4
store i32 0, ptr %22, align 4
store i32 0, ptr %23, align 4
store i32 0, ptr %26, align 4
store i32 0, ptr %27, align 4
store i32 0, ptr %28, align 4
store i32 0, ptr %29, align 4
store i32 0, ptr %17, align 4
br label %31
31: ; preds = %56, %6
%32 = load i32, ptr %17, align 4
%33 = icmp slt i32 %32, 10
br i1 %33, label %34, label %59
34: ; preds = %31
store i32 0, ptr %18, align 4
br label %35
35: ; preds = %52, %34
%36 = load i32, ptr %18, align 4
%37 = icmp slt i32 %36, 10
br i1 %37, label %38, label %55
38: ; preds = %35
%39 = load i32, ptr %18, align 4
%40 = load i32, ptr %17, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [10 x [10 x i32]], ptr %24, i64 0, i64 %41
%43 = load i32, ptr %18, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [10 x i32], ptr %42, i64 0, i64 %44
store i32 %39, ptr %45, align 4
%46 = load i32, ptr %17, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %47
%49 = load i32, ptr %18, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [10 x i32], ptr %48, i64 0, i64 %50
store i32 11, ptr %51, align 4
br label %52
52: ; preds = %38
%53 = load i32, ptr %18, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %18, align 4
br label %35, !llvm.loop !6
55: ; preds = %35
br label %56
56: ; preds = %55
%57 = load i32, ptr %17, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %17, align 4
br label %31, !llvm.loop !8
59: ; preds = %31
store i32 0, ptr %13, align 4
store i32 0, ptr %16, align 4
br label %60
60: ; preds = %149, %59
%61 = load i32, ptr %13, align 4
%62 = icmp slt i32 %61, 10
br i1 %62, label %63, label %152
63: ; preds = %60
store i32 1, ptr %14, align 4
br label %64
64: ; preds = %116, %63
%65 = load i32, ptr %14, align 4
%66 = icmp slt i32 %65, 10
br i1 %66, label %67, label %119
67: ; preds = %64
%68 = load ptr, ptr %7, align 8
%69 = load i32, ptr %13, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds ptr, ptr %68, i64 %70
%72 = load ptr, ptr %71, align 8
%73 = load i32, ptr %14, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i8, ptr %72, i64 %74
%76 = load i8, ptr %75, align 1
%77 = sext i8 %76 to i32
%78 = load ptr, ptr %7, align 8
%79 = load i32, ptr %13, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds ptr, ptr %78, i64 %80
%82 = load ptr, ptr %81, align 8
%83 = load i32, ptr %14, align 4
%84 = sub nsw i32 %83, 1
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i8, ptr %82, i64 %85
%87 = load i8, ptr %86, align 1
%88 = sext i8 %87 to i32
%89 = icmp eq i32 %77, %88
br i1 %89, label %90, label %115
90: ; preds = %67
%91 = load ptr, ptr %7, align 8
%92 = load i32, ptr %13, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds ptr, ptr %91, i64 %93
%95 = load ptr, ptr %94, align 8
%96 = load i32, ptr %14, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i8, ptr %95, i64 %97
%99 = load i8, ptr %98, align 1
%100 = sext i8 %99 to i32
%101 = icmp eq i32 %100, 45
br i1 %101, label %102, label %115
102: ; preds = %90
%103 = load i32, ptr %16, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %16, align 4
%105 = load i32, ptr %14, align 4
%106 = sub nsw i32 %105, 1
%107 = load i32, ptr %13, align 4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [10 x [10 x i32]], ptr %24, i64 0, i64 %108
%110 = load i32, ptr %18, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds [10 x i32], ptr %109, i64 0, i64 %111
store i32 %106, ptr %112, align 4
%113 = load i32, ptr %18, align 4
%114 = add nsw i32 %113, 1
store i32 %114, ptr %18, align 4
br label %115
115: ; preds = %102, %90, %67
br label %116
116: ; preds = %115
%117 = load i32, ptr %14, align 4
%118 = add nsw i32 %117, 1
store i32 %118, ptr %14, align 4
br label %64, !llvm.loop !9
119: ; preds = %64
%120 = load i32, ptr %18, align 4
%121 = icmp eq i32 %120, 0
br i1 %121, label %122, label %148
122: ; preds = %119
%123 = load i32, ptr %13, align 4
store i32 %123, ptr %19, align 4
br label %124
124: ; preds = %144, %122
%125 = load i32, ptr %19, align 4
%126 = load i32, ptr %13, align 4
%127 = add nsw i32 %126, 1
%128 = icmp slt i32 %125, %127
br i1 %128, label %129, label %147
129: ; preds = %124
store i32 0, ptr %20, align 4
br label %130
130: ; preds = %140, %129
%131 = load i32, ptr %20, align 4
%132 = icmp slt i32 %131, 10
br i1 %132, label %133, label %143
133: ; preds = %130
%134 = load i32, ptr %19, align 4
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds [10 x [10 x i32]], ptr %24, i64 0, i64 %135
%137 = load i32, ptr %20, align 4
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds [10 x i32], ptr %136, i64 0, i64 %138
store i32 11, ptr %139, align 4
br label %140
140: ; preds = %133
%141 = load i32, ptr %20, align 4
%142 = add nsw i32 %141, 1
store i32 %142, ptr %20, align 4
br label %130, !llvm.loop !10
143: ; preds = %130
br label %144
144: ; preds = %143
%145 = load i32, ptr %19, align 4
%146 = add nsw i32 %145, 1
store i32 %146, ptr %19, align 4
br label %124, !llvm.loop !11
147: ; preds = %124
br label %148
148: ; preds = %147, %119
br label %149
149: ; preds = %148
store i32 0, ptr %16, align 4
store i32 0, ptr %18, align 4
%150 = load i32, ptr %13, align 4
%151 = add nsw i32 %150, 1
store i32 %151, ptr %13, align 4
br label %60, !llvm.loop !12
152: ; preds = %60
%153 = load i32, ptr %10, align 4
%154 = icmp eq i32 %153, 0
br i1 %154, label %155, label %327
155: ; preds = %152
store i32 0, ptr %13, align 4
store i32 0, ptr %23, align 4
br label %156
156: ; preds = %297, %155
%157 = load i32, ptr %13, align 4
%158 = icmp slt i32 %157, 10
br i1 %158, label %159, label %300
159: ; preds = %156
store i32 1, ptr %14, align 4
br label %160
160: ; preds = %256, %159
%161 = load i32, ptr %14, align 4
%162 = icmp slt i32 %161, 10
br i1 %162, label %163, label %259
163: ; preds = %160
%164 = load i32, ptr %13, align 4
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds [10 x [10 x i32]], ptr %24, i64 0, i64 %165
%167 = load i32, ptr %14, align 4
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds [10 x i32], ptr %166, i64 0, i64 %168
%170 = load i32, ptr %169, align 4
%171 = load i32, ptr %13, align 4
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds [10 x [10 x i32]], ptr %24, i64 0, i64 %172
%174 = load i32, ptr %14, align 4
%175 = sub nsw i32 %174, 1
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds [10 x i32], ptr %173, i64 0, i64 %176
%178 = load i32, ptr %177, align 4
%179 = sub nsw i32 %170, %178
%180 = icmp eq i32 %179, 1
br i1 %180, label %181, label %186
181: ; preds = %163
%182 = load i32, ptr %22, align 4
%183 = add nsw i32 %182, 1
store i32 %183, ptr %22, align 4
%184 = load i32, ptr %23, align 4
%185 = add nsw i32 %184, 1
store i32 %185, ptr %23, align 4
br label %187
186: ; preds = %163
store i32 0, ptr %22, align 4
br label %187
187: ; preds = %186, %181
%188 = load i32, ptr %22, align 4
%189 = load i32, ptr %11, align 4
%190 = sub nsw i32 %189, 1
%191 = icmp sge i32 %188, %190
br i1 %191, label %192, label %211
192: ; preds = %187
%193 = load i32, ptr %13, align 4
%194 = sext i32 %193 to i64
%195 = getelementptr inbounds [10 x [10 x i32]], ptr %24, i64 0, i64 %194
%196 = load i32, ptr %14, align 4
%197 = load i32, ptr %11, align 4
%198 = sub nsw i32 %196, %197
%199 = add nsw i32 %198, 1
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds [10 x i32], ptr %195, i64 0, i64 %200
%202 = load i32, ptr %201, align 4
%203 = load i32, ptr %13, align 4
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %204
%206 = load i32, ptr %18, align 4
%207 = sext i32 %206 to i64
%208 = getelementptr inbounds [10 x i32], ptr %205, i64 0, i64 %207
store i32 %202, ptr %208, align 4
%209 = load i32, ptr %18, align 4
%210 = add nsw i32 %209, 1
store i32 %210, ptr %18, align 4
br label %211
211: ; preds = %192, %187
%212 = load i32, ptr %22, align 4
%213 = icmp eq i32 %212, 9
br i1 %213, label %214, label %255
214: ; preds = %211
%215 = load i32, ptr %13, align 4
store i32 %215, ptr %19, align 4
br label %216
216: ; preds = %251, %214
%217 = load i32, ptr %19, align 4
%218 = load i32, ptr %13, align 4
%219 = add nsw i32 %218, 1
%220 = icmp slt i32 %217, %219
br i1 %220, label %221, label %254
221: ; preds = %216
store i32 0, ptr %20, align 4
br label %222
222: ; preds = %247, %221
%223 = load i32, ptr %20, align 4
%224 = icmp slt i32 %223, 10
br i1 %224, label %225, label %250
225: ; preds = %222
%226 = load i32, ptr %20, align 4
%227 = load i32, ptr %11, align 4
%228 = sub nsw i32 10, %227
%229 = add nsw i32 %228, 1
%230 = icmp slt i32 %226, %229
br i1 %230, label %231, label %239
231: ; preds = %225
%232 = load i32, ptr %20, align 4
%233 = load i32, ptr %19, align 4
%234 = sext i32 %233 to i64
%235 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %234
%236 = load i32, ptr %20, align 4
%237 = sext i32 %236 to i64
%238 = getelementptr inbounds [10 x i32], ptr %235, i64 0, i64 %237
store i32 %232, ptr %238, align 4
br label %246
239: ; preds = %225
%240 = load i32, ptr %19, align 4
%241 = sext i32 %240 to i64
%242 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %241
%243 = load i32, ptr %20, align 4
%244 = sext i32 %243 to i64
%245 = getelementptr inbounds [10 x i32], ptr %242, i64 0, i64 %244
store i32 11, ptr %245, align 4
br label %246
246: ; preds = %239, %231
br label %247
247: ; preds = %246
%248 = load i32, ptr %20, align 4
%249 = add nsw i32 %248, 1
store i32 %249, ptr %20, align 4
br label %222, !llvm.loop !13
250: ; preds = %222
br label %251
251: ; preds = %250
%252 = load i32, ptr %19, align 4
%253 = add nsw i32 %252, 1
store i32 %253, ptr %19, align 4
br label %216, !llvm.loop !14
254: ; preds = %216
br label %255
255: ; preds = %254, %211
br label %256
256: ; preds = %255
%257 = load i32, ptr %14, align 4
%258 = add nsw i32 %257, 1
store i32 %258, ptr %14, align 4
br label %160, !llvm.loop !15
259: ; preds = %160
%260 = load i32, ptr %23, align 4
%261 = icmp eq i32 %260, 0
br i1 %261, label %262, label %288
262: ; preds = %259
%263 = load i32, ptr %13, align 4
store i32 %263, ptr %19, align 4
br label %264
264: ; preds = %284, %262
%265 = load i32, ptr %19, align 4
%266 = load i32, ptr %13, align 4
%267 = add nsw i32 %266, 1
%268 = icmp slt i32 %265, %267
br i1 %268, label %269, label %287
269: ; preds = %264
store i32 0, ptr %20, align 4
br label %270
270: ; preds = %280, %269
%271 = load i32, ptr %20, align 4
%272 = icmp slt i32 %271, 10
br i1 %272, label %273, label %283
273: ; preds = %270
%274 = load i32, ptr %19, align 4
%275 = sext i32 %274 to i64
%276 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %275
%277 = load i32, ptr %20, align 4
%278 = sext i32 %277 to i64
%279 = getelementptr inbounds [10 x i32], ptr %276, i64 0, i64 %278
store i32 11, ptr %279, align 4
br label %280
280: ; preds = %273
%281 = load i32, ptr %20, align 4
%282 = add nsw i32 %281, 1
store i32 %282, ptr %20, align 4
br label %270, !llvm.loop !16
283: ; preds = %270
br label %284
284: ; preds = %283
%285 = load i32, ptr %19, align 4
%286 = add nsw i32 %285, 1
store i32 %286, ptr %19, align 4
br label %264, !llvm.loop !17
287: ; preds = %264
br label %288
288: ; preds = %287, %259
store i32 0, ptr %15, align 4
br label %289
289: ; preds = %293, %288
%290 = load i32, ptr %15, align 4
%291 = icmp slt i32 %290, 10
br i1 %291, label %292, label %296
292: ; preds = %289
br label %293
293: ; preds = %292
%294 = load i32, ptr %15, align 4
%295 = add nsw i32 %294, 1
store i32 %295, ptr %15, align 4
br label %289, !llvm.loop !18
296: ; preds = %289
br label %297
297: ; preds = %296
store i32 0, ptr %23, align 4
store i32 0, ptr %22, align 4
store i32 0, ptr %18, align 4
%298 = load i32, ptr %13, align 4
%299 = add nsw i32 %298, 1
store i32 %299, ptr %13, align 4
br label %156, !llvm.loop !19
300: ; preds = %156
%301 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %19, align 4
br label %302
302: ; preds = %323, %300
%303 = load i32, ptr %19, align 4
%304 = icmp slt i32 %303, 10
br i1 %304, label %305, label %326
305: ; preds = %302
%306 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %20, align 4
br label %307
307: ; preds = %319, %305
%308 = load i32, ptr %20, align 4
%309 = icmp slt i32 %308, 10
br i1 %309, label %310, label %322
310: ; preds = %307
%311 = load i32, ptr %19, align 4
%312 = sext i32 %311 to i64
%313 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %312
%314 = load i32, ptr %20, align 4
%315 = sext i32 %314 to i64
%316 = getelementptr inbounds [10 x i32], ptr %313, i64 0, i64 %315
%317 = load i32, ptr %316, align 4
%318 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %317)
br label %319
319: ; preds = %310
%320 = load i32, ptr %20, align 4
%321 = add nsw i32 %320, 1
store i32 %321, ptr %20, align 4
br label %307, !llvm.loop !20
322: ; preds = %307
br label %323
323: ; preds = %322
%324 = load i32, ptr %19, align 4
%325 = add nsw i32 %324, 1
store i32 %325, ptr %19, align 4
br label %302, !llvm.loop !21
326: ; preds = %302
br label %503
327: ; preds = %152
%328 = load i32, ptr %10, align 4
%329 = icmp eq i32 %328, 1
br i1 %329, label %330, label %502
330: ; preds = %327
store i32 0, ptr %13, align 4
br label %331
331: ; preds = %472, %330
%332 = load i32, ptr %13, align 4
%333 = icmp slt i32 %332, 10
br i1 %333, label %334, label %475
334: ; preds = %331
store i32 0, ptr %18, align 4
store i32 0, ptr %22, align 4
store i32 0, ptr %23, align 4
store i32 1, ptr %14, align 4
br label %335
335: ; preds = %439, %334
%336 = load i32, ptr %14, align 4
%337 = icmp slt i32 %336, 10
br i1 %337, label %338, label %442
338: ; preds = %335
%339 = load i32, ptr %14, align 4
%340 = sext i32 %339 to i64
%341 = getelementptr inbounds [10 x [10 x i32]], ptr %24, i64 0, i64 %340
%342 = load i32, ptr %13, align 4
%343 = sext i32 %342 to i64
%344 = getelementptr inbounds [10 x i32], ptr %341, i64 0, i64 %343
%345 = load i32, ptr %344, align 4
%346 = load i32, ptr %14, align 4
%347 = sub nsw i32 %346, 1
%348 = sext i32 %347 to i64
%349 = getelementptr inbounds [10 x [10 x i32]], ptr %24, i64 0, i64 %348
%350 = load i32, ptr %13, align 4
%351 = sext i32 %350 to i64
%352 = getelementptr inbounds [10 x i32], ptr %349, i64 0, i64 %351
%353 = load i32, ptr %352, align 4
%354 = icmp eq i32 %345, %353
br i1 %354, label %355, label %369
355: ; preds = %338
%356 = load i32, ptr %14, align 4
%357 = sext i32 %356 to i64
%358 = getelementptr inbounds [10 x [10 x i32]], ptr %24, i64 0, i64 %357
%359 = load i32, ptr %13, align 4
%360 = sext i32 %359 to i64
%361 = getelementptr inbounds [10 x i32], ptr %358, i64 0, i64 %360
%362 = load i32, ptr %361, align 4
%363 = icmp ne i32 %362, 11
br i1 %363, label %364, label %369
364: ; preds = %355
%365 = load i32, ptr %22, align 4
%366 = add nsw i32 %365, 1
store i32 %366, ptr %22, align 4
%367 = load i32, ptr %23, align 4
%368 = add nsw i32 %367, 1
store i32 %368, ptr %23, align 4
br label %370
369: ; preds = %355, %338
store i32 0, ptr %22, align 4
br label %370
370: ; preds = %369, %364
%371 = load i32, ptr %22, align 4
%372 = load i32, ptr %11, align 4
%373 = sub nsw i32 %372, 1
%374 = icmp sge i32 %371, %373
br i1 %374, label %375, label %394
375: ; preds = %370
%376 = load i32, ptr %14, align 4
%377 = load i32, ptr %11, align 4
%378 = sub nsw i32 %376, %377
%379 = add nsw i32 %378, 1
%380 = sext i32 %379 to i64
%381 = getelementptr inbounds [10 x [10 x i32]], ptr %24, i64 0, i64 %380
%382 = load i32, ptr %13, align 4
%383 = sext i32 %382 to i64
%384 = getelementptr inbounds [10 x i32], ptr %381, i64 0, i64 %383
%385 = load i32, ptr %384, align 4
%386 = load i32, ptr %18, align 4
%387 = sext i32 %386 to i64
%388 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %387
%389 = load i32, ptr %13, align 4
%390 = sext i32 %389 to i64
%391 = getelementptr inbounds [10 x i32], ptr %388, i64 0, i64 %390
store i32 %385, ptr %391, align 4
%392 = load i32, ptr %18, align 4
%393 = add nsw i32 %392, 1
store i32 %393, ptr %18, align 4
br label %394
394: ; preds = %375, %370
%395 = load i32, ptr %22, align 4
%396 = icmp eq i32 %395, 9
br i1 %396, label %397, label %438
397: ; preds = %394
%398 = load i32, ptr %13, align 4
store i32 %398, ptr %19, align 4
br label %399
399: ; preds = %434, %397
%400 = load i32, ptr %19, align 4
%401 = load i32, ptr %13, align 4
%402 = add nsw i32 %401, 1
%403 = icmp slt i32 %400, %402
br i1 %403, label %404, label %437
404: ; preds = %399
store i32 0, ptr %20, align 4
br label %405
405: ; preds = %430, %404
%406 = load i32, ptr %20, align 4
%407 = icmp slt i32 %406, 10
br i1 %407, label %408, label %433
408: ; preds = %405
%409 = load i32, ptr %20, align 4
%410 = load i32, ptr %11, align 4
%411 = sub nsw i32 10, %410
%412 = add nsw i32 %411, 1
%413 = icmp slt i32 %409, %412
br i1 %413, label %414, label %422
414: ; preds = %408
%415 = load i32, ptr %20, align 4
%416 = load i32, ptr %20, align 4
%417 = sext i32 %416 to i64
%418 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %417
%419 = load i32, ptr %19, align 4
%420 = sext i32 %419 to i64
%421 = getelementptr inbounds [10 x i32], ptr %418, i64 0, i64 %420
store i32 %415, ptr %421, align 4
br label %429
422: ; preds = %408
%423 = load i32, ptr %20, align 4
%424 = sext i32 %423 to i64
%425 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %424
%426 = load i32, ptr %19, align 4
%427 = sext i32 %426 to i64
%428 = getelementptr inbounds [10 x i32], ptr %425, i64 0, i64 %427
store i32 11, ptr %428, align 4
br label %429
429: ; preds = %422, %414
br label %430
430: ; preds = %429
%431 = load i32, ptr %20, align 4
%432 = add nsw i32 %431, 1
store i32 %432, ptr %20, align 4
br label %405, !llvm.loop !22
433: ; preds = %405
br label %434
434: ; preds = %433
%435 = load i32, ptr %19, align 4
%436 = add nsw i32 %435, 1
store i32 %436, ptr %19, align 4
br label %399, !llvm.loop !23
437: ; preds = %399
br label %438
438: ; preds = %437, %394
br label %439
439: ; preds = %438
%440 = load i32, ptr %14, align 4
%441 = add nsw i32 %440, 1
store i32 %441, ptr %14, align 4
br label %335, !llvm.loop !24
442: ; preds = %335
%443 = load i32, ptr %23, align 4
%444 = icmp eq i32 %443, 0
br i1 %444, label %445, label %471
445: ; preds = %442
%446 = load i32, ptr %13, align 4
store i32 %446, ptr %19, align 4
br label %447
447: ; preds = %467, %445
%448 = load i32, ptr %19, align 4
%449 = load i32, ptr %13, align 4
%450 = add nsw i32 %449, 1
%451 = icmp slt i32 %448, %450
br i1 %451, label %452, label %470
452: ; preds = %447
store i32 0, ptr %20, align 4
br label %453
453: ; preds = %463, %452
%454 = load i32, ptr %20, align 4
%455 = icmp slt i32 %454, 10
br i1 %455, label %456, label %466
456: ; preds = %453
%457 = load i32, ptr %20, align 4
%458 = sext i32 %457 to i64
%459 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %458
%460 = load i32, ptr %19, align 4
%461 = sext i32 %460 to i64
%462 = getelementptr inbounds [10 x i32], ptr %459, i64 0, i64 %461
store i32 11, ptr %462, align 4
br label %463
463: ; preds = %456
%464 = load i32, ptr %20, align 4
%465 = add nsw i32 %464, 1
store i32 %465, ptr %20, align 4
br label %453, !llvm.loop !25
466: ; preds = %453
br label %467
467: ; preds = %466
%468 = load i32, ptr %19, align 4
%469 = add nsw i32 %468, 1
store i32 %469, ptr %19, align 4
br label %447, !llvm.loop !26
470: ; preds = %447
br label %471
471: ; preds = %470, %442
br label %472
472: ; preds = %471
%473 = load i32, ptr %13, align 4
%474 = add nsw i32 %473, 1
store i32 %474, ptr %13, align 4
br label %331, !llvm.loop !27
475: ; preds = %331
%476 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %19, align 4
br label %477
477: ; preds = %498, %475
%478 = load i32, ptr %19, align 4
%479 = icmp slt i32 %478, 10
br i1 %479, label %480, label %501
480: ; preds = %477
%481 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %20, align 4
br label %482
482: ; preds = %494, %480
%483 = load i32, ptr %20, align 4
%484 = icmp slt i32 %483, 10
br i1 %484, label %485, label %497
485: ; preds = %482
%486 = load i32, ptr %19, align 4
%487 = sext i32 %486 to i64
%488 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %487
%489 = load i32, ptr %20, align 4
%490 = sext i32 %489 to i64
%491 = getelementptr inbounds [10 x i32], ptr %488, i64 0, i64 %490
%492 = load i32, ptr %491, align 4
%493 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %492)
br label %494
494: ; preds = %485
%495 = load i32, ptr %20, align 4
%496 = add nsw i32 %495, 1
store i32 %496, ptr %20, align 4
br label %482, !llvm.loop !28
497: ; preds = %482
br label %498
498: ; preds = %497
%499 = load i32, ptr %19, align 4
%500 = add nsw i32 %499, 1
store i32 %500, ptr %19, align 4
br label %477, !llvm.loop !29
501: ; preds = %477
br label %502
502: ; preds = %501, %327
br label %503
503: ; preds = %502, %326
store i32 0, ptr %19, align 4
store i32 0, ptr %30, align 4
br label %504
504: ; preds = %598, %503
store i32 0, ptr %19, align 4
store i32 0, ptr %29, align 4
%505 = call i32 (...) @rand()
%506 = srem i32 %505, 10
store i32 %506, ptr %27, align 4
%507 = load i32, ptr %27, align 4
store i32 %507, ptr %13, align 4
store i32 0, ptr %29, align 4
br label %508
508: ; preds = %564, %504
%509 = load i32, ptr %13, align 4
%510 = load i32, ptr %27, align 4
%511 = add nsw i32 %510, 1
%512 = icmp slt i32 %509, %511
br i1 %512, label %513, label %567
513: ; preds = %508
%514 = load i32, ptr %10, align 4
%515 = icmp eq i32 %514, 0
br i1 %515, label %516, label %540
516: ; preds = %513
store i32 0, ptr %14, align 4
br label %517
517: ; preds = %536, %516
%518 = load i32, ptr %14, align 4
%519 = icmp slt i32 %518, 10
br i1 %519, label %520, label %539
520: ; preds = %517
%521 = load i32, ptr %13, align 4
%522 = sext i32 %521 to i64
%523 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %522
%524 = load i32, ptr %14, align 4
%525 = sext i32 %524 to i64
%526 = getelementptr inbounds [10 x i32], ptr %523, i64 0, i64 %525
%527 = load i32, ptr %526, align 4
%528 = icmp ne i32 %527, 11
br i1 %528, label %529, label %535
529: ; preds = %520
%530 = load i32, ptr %29, align 4
%531 = add nsw i32 %530, 1
store i32 %531, ptr %29, align 4
%532 = load i32, ptr %19, align 4
%533 = add nsw i32 %532, 1
store i32 %533, ptr %19, align 4
%534 = load i32, ptr %27, align 4
store i32 %534, ptr %30, align 4
br label %535
535: ; preds = %529, %520
br label %536
536: ; preds = %535
%537 = load i32, ptr %14, align 4
%538 = add nsw i32 %537, 1
store i32 %538, ptr %14, align 4
br label %517, !llvm.loop !30
539: ; preds = %517
br label %563
540: ; preds = %513
store i32 0, ptr %14, align 4
br label %541
541: ; preds = %559, %540
%542 = load i32, ptr %14, align 4
%543 = icmp slt i32 %542, 10
br i1 %543, label %544, label %562
544: ; preds = %541
%545 = load i32, ptr %14, align 4
%546 = sext i32 %545 to i64
%547 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %546
%548 = load i32, ptr %13, align 4
%549 = sext i32 %548 to i64
%550 = getelementptr inbounds [10 x i32], ptr %547, i64 0, i64 %549
%551 = load i32, ptr %550, align 4
%552 = icmp ne i32 %551, 11
br i1 %552, label %553, label %558
553: ; preds = %544
%554 = load i32, ptr %29, align 4
%555 = add nsw i32 %554, 1
store i32 %555, ptr %29, align 4
%556 = load i32, ptr %19, align 4
%557 = add nsw i32 %556, 1
store i32 %557, ptr %19, align 4
br label %558
558: ; preds = %553, %544
br label %559
559: ; preds = %558
%560 = load i32, ptr %14, align 4
%561 = add nsw i32 %560, 1
store i32 %561, ptr %14, align 4
br label %541, !llvm.loop !31
562: ; preds = %541
br label %563
563: ; preds = %562, %539
br label %564
564: ; preds = %563
%565 = load i32, ptr %13, align 4
%566 = add nsw i32 %565, 1
store i32 %566, ptr %13, align 4
br label %508, !llvm.loop !32
567: ; preds = %508
%568 = call i32 (...) @rand()
%569 = load i32, ptr %29, align 4
%570 = srem i32 %568, %569
store i32 %570, ptr %28, align 4
br label %571
571: ; preds = %567
%572 = load ptr, ptr %7, align 8
%573 = load i32, ptr %30, align 4
%574 = sext i32 %573 to i64
%575 = getelementptr inbounds ptr, ptr %572, i64 %574
%576 = load ptr, ptr %575, align 8
%577 = load i32, ptr %28, align 4
%578 = sext i32 %577 to i64
%579 = getelementptr inbounds i8, ptr %576, i64 %578
%580 = load i8, ptr %579, align 1
%581 = sext i8 %580 to i32
%582 = icmp ne i32 %581, 45
br i1 %582, label %598, label %583
583: ; preds = %571
%584 = load ptr, ptr %7, align 8
%585 = load i32, ptr %30, align 4
%586 = sext i32 %585 to i64
%587 = getelementptr inbounds ptr, ptr %584, i64 %586
%588 = load ptr, ptr %587, align 8
%589 = load i32, ptr %28, align 4
%590 = load i32, ptr %11, align 4
%591 = add nsw i32 %589, %590
%592 = sub nsw i32 %591, 1
%593 = sext i32 %592 to i64
%594 = getelementptr inbounds i8, ptr %588, i64 %593
%595 = load i8, ptr %594, align 1
%596 = sext i8 %595 to i32
%597 = icmp ne i32 %596, 45
br label %598
598: ; preds = %583, %571
%599 = phi i1 [ true, %571 ], [ %597, %583 ]
br i1 %599, label %504, label %600, !llvm.loop !33
600: ; preds = %598
%601 = load i32, ptr %10, align 4
%602 = icmp eq i32 %601, 0
br i1 %602, label %603, label %611
603: ; preds = %600
%604 = load i32, ptr %30, align 4
%605 = sext i32 %604 to i64
%606 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %605
%607 = load i32, ptr %28, align 4
%608 = sext i32 %607 to i64
%609 = getelementptr inbounds [10 x i32], ptr %606, i64 0, i64 %608
%610 = load i32, ptr %609, align 4
store i32 %610, ptr %26, align 4
br label %619
611: ; preds = %600
%612 = load i32, ptr %28, align 4
%613 = sext i32 %612 to i64
%614 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %613
%615 = load i32, ptr %30, align 4
%616 = sext i32 %615 to i64
%617 = getelementptr inbounds [10 x i32], ptr %614, i64 0, i64 %616
%618 = load i32, ptr %617, align 4
store i32 %618, ptr %26, align 4
br label %619
619: ; preds = %611, %603
%620 = load i32, ptr %10, align 4
%621 = load i32, ptr %30, align 4
%622 = load i32, ptr %26, align 4
%623 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %620, i32 noundef %621, i32 noundef %622)
%624 = load ptr, ptr %7, align 8
%625 = load i32, ptr %10, align 4
%626 = load i32, ptr %30, align 4
%627 = load i32, ptr %26, align 4
%628 = load i32, ptr %11, align 4
%629 = load i8, ptr %12, align 1
%630 = call ptr @ships(ptr noundef %624, i32 noundef %625, i32 noundef %626, i32 noundef %627, i32 noundef %628, i8 noundef signext %629)
store ptr %630, ptr %7, align 8
%631 = load ptr, ptr %7, align 8
ret ptr %631
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @rand(...) #1
declare ptr @ships(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
!16 = distinct !{!16, !7}
!17 = distinct !{!17, !7}
!18 = distinct !{!18, !7}
!19 = distinct !{!19, !7}
!20 = distinct !{!20, !7}
!21 = distinct !{!21, !7}
!22 = distinct !{!22, !7}
!23 = distinct !{!23, !7}
!24 = distinct !{!24, !7}
!25 = distinct !{!25, !7}
!26 = distinct !{!26, !7}
!27 = distinct !{!27, !7}
!28 = distinct !{!28, !7}
!29 = distinct !{!29, !7}
!30 = distinct !{!30, !7}
!31 = distinct !{!31, !7}
!32 = distinct !{!32, !7}
!33 = distinct !{!33, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvfikwtg2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"\0Amatriz de indicess\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 \00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"\0Amatriz de indices: \0A\00", align 1
@.str.4 = private unnamed_addr constant [57 x i8] c"\0AIndice escolhido: (dir: %d, col. /lin. : %d, loct: %d)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @chck(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i8 noundef signext %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i8, align 1
%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 i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca [10 x [10 x i32]], align 16
%25 = alloca [10 x [10 x i32]], align 16
%26 = alloca i32, align 4
%27 = alloca i32, align 4
%28 = alloca i32, align 4
%29 = alloca i32, align 4
%30 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store i8 %5, ptr %12, align 1
store i32 0, ptr %17, align 4
store i32 0, ptr %18, align 4
store i32 0, ptr %22, align 4
store i32 0, ptr %23, align 4
store i32 0, ptr %26, align 4
store i32 0, ptr %27, align 4
store i32 0, ptr %28, align 4
store i32 0, ptr %29, align 4
store i32 0, ptr %17, align 4
%31 = load i32, ptr %17, align 4
%32 = icmp slt i32 %31, 10
br i1 %32, label %.lr.ph2, label %61
.lr.ph2: ; preds = %6
br label %33
33: ; preds = %.lr.ph2, %56
store i32 0, ptr %18, align 4
%34 = load i32, ptr %18, align 4
%35 = icmp slt i32 %34, 10
br i1 %35, label %.lr.ph, label %55
.lr.ph: ; preds = %33
br label %36
36: ; preds = %.lr.ph, %50
%37 = load i32, ptr %18, align 4
%38 = load i32, ptr %17, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [10 x [10 x i32]], ptr %24, i64 0, i64 %39
%41 = load i32, ptr %18, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [10 x i32], ptr %40, i64 0, i64 %42
store i32 %37, ptr %43, align 4
%44 = load i32, ptr %17, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %45
%47 = load i32, ptr %18, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [10 x i32], ptr %46, i64 0, i64 %48
store i32 11, ptr %49, align 4
br label %50
50: ; preds = %36
%51 = load i32, ptr %18, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %18, align 4
%53 = load i32, ptr %18, align 4
%54 = icmp slt i32 %53, 10
br i1 %54, label %36, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %50
br label %55
55: ; preds = %._crit_edge, %33
br label %56
56: ; preds = %55
%57 = load i32, ptr %17, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %17, align 4
%59 = load i32, ptr %17, align 4
%60 = icmp slt i32 %59, 10
br i1 %60, label %33, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %56
br label %61
61: ; preds = %._crit_edge3, %6
store i32 0, ptr %13, align 4
store i32 0, ptr %16, align 4
%62 = load i32, ptr %13, align 4
%63 = icmp slt i32 %62, 10
br i1 %63, label %.lr.ph14, label %160
.lr.ph14: ; preds = %61
br label %64
64: ; preds = %.lr.ph14, %155
store i32 1, ptr %14, align 4
%65 = load i32, ptr %14, align 4
%66 = icmp slt i32 %65, 10
br i1 %66, label %.lr.ph5, label %121
.lr.ph5: ; preds = %64
br label %67
67: ; preds = %.lr.ph5, %116
%68 = load ptr, ptr %7, align 8
%69 = load i32, ptr %13, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds ptr, ptr %68, i64 %70
%72 = load ptr, ptr %71, align 8
%73 = load i32, ptr %14, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i8, ptr %72, i64 %74
%76 = load i8, ptr %75, align 1
%77 = sext i8 %76 to i32
%78 = load ptr, ptr %7, align 8
%79 = load i32, ptr %13, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds ptr, ptr %78, i64 %80
%82 = load ptr, ptr %81, align 8
%83 = load i32, ptr %14, align 4
%84 = sub nsw i32 %83, 1
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i8, ptr %82, i64 %85
%87 = load i8, ptr %86, align 1
%88 = sext i8 %87 to i32
%89 = icmp eq i32 %77, %88
br i1 %89, label %90, label %115
90: ; preds = %67
%91 = load ptr, ptr %7, align 8
%92 = load i32, ptr %13, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds ptr, ptr %91, i64 %93
%95 = load ptr, ptr %94, align 8
%96 = load i32, ptr %14, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i8, ptr %95, i64 %97
%99 = load i8, ptr %98, align 1
%100 = sext i8 %99 to i32
%101 = icmp eq i32 %100, 45
br i1 %101, label %102, label %115
102: ; preds = %90
%103 = load i32, ptr %16, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %16, align 4
%105 = load i32, ptr %14, align 4
%106 = sub nsw i32 %105, 1
%107 = load i32, ptr %13, align 4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [10 x [10 x i32]], ptr %24, i64 0, i64 %108
%110 = load i32, ptr %18, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds [10 x i32], ptr %109, i64 0, i64 %111
store i32 %106, ptr %112, align 4
%113 = load i32, ptr %18, align 4
%114 = add nsw i32 %113, 1
store i32 %114, ptr %18, align 4
br label %115
115: ; preds = %102, %90, %67
br label %116
116: ; preds = %115
%117 = load i32, ptr %14, align 4
%118 = add nsw i32 %117, 1
store i32 %118, ptr %14, align 4
%119 = load i32, ptr %14, align 4
%120 = icmp slt i32 %119, 10
br i1 %120, label %67, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %116
br label %121
121: ; preds = %._crit_edge6, %64
%122 = load i32, ptr %18, align 4
%123 = icmp eq i32 %122, 0
br i1 %123, label %124, label %154
124: ; preds = %121
%125 = load i32, ptr %13, align 4
store i32 %125, ptr %19, align 4
%126 = load i32, ptr %19, align 4
%127 = load i32, ptr %13, align 4
%128 = add nsw i32 %127, 1
%129 = icmp slt i32 %126, %128
br i1 %129, label %.lr.ph11, label %153
.lr.ph11: ; preds = %124
br label %130
130: ; preds = %.lr.ph11, %146
store i32 0, ptr %20, align 4
%131 = load i32, ptr %20, align 4
%132 = icmp slt i32 %131, 10
br i1 %132, label %.lr.ph8, label %145
.lr.ph8: ; preds = %130
br label %133
133: ; preds = %.lr.ph8, %140
%134 = load i32, ptr %19, align 4
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds [10 x [10 x i32]], ptr %24, i64 0, i64 %135
%137 = load i32, ptr %20, align 4
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds [10 x i32], ptr %136, i64 0, i64 %138
store i32 11, ptr %139, align 4
br label %140
140: ; preds = %133
%141 = load i32, ptr %20, align 4
%142 = add nsw i32 %141, 1
store i32 %142, ptr %20, align 4
%143 = load i32, ptr %20, align 4
%144 = icmp slt i32 %143, 10
br i1 %144, label %133, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %140
br label %145
145: ; preds = %._crit_edge9, %130
br label %146
146: ; preds = %145
%147 = load i32, ptr %19, align 4
%148 = add nsw i32 %147, 1
store i32 %148, ptr %19, align 4
%149 = load i32, ptr %19, align 4
%150 = load i32, ptr %13, align 4
%151 = add nsw i32 %150, 1
%152 = icmp slt i32 %149, %151
br i1 %152, label %130, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %146
br label %153
153: ; preds = %._crit_edge12, %124
br label %154
154: ; preds = %153, %121
br label %155
155: ; preds = %154
store i32 0, ptr %16, align 4
store i32 0, ptr %18, align 4
%156 = load i32, ptr %13, align 4
%157 = add nsw i32 %156, 1
store i32 %157, ptr %13, align 4
%158 = load i32, ptr %13, align 4
%159 = icmp slt i32 %158, 10
br i1 %159, label %64, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %155
br label %160
160: ; preds = %._crit_edge15, %61
%161 = load i32, ptr %10, align 4
%162 = icmp eq i32 %161, 0
br i1 %162, label %163, label %348
163: ; preds = %160
store i32 0, ptr %13, align 4
store i32 0, ptr %23, align 4
%164 = load i32, ptr %13, align 4
%165 = icmp slt i32 %164, 10
br i1 %165, label %.lr.ph59, label %319
.lr.ph59: ; preds = %163
br label %166
166: ; preds = %.lr.ph59, %314
store i32 1, ptr %14, align 4
%167 = load i32, ptr %14, align 4
%168 = icmp slt i32 %167, 10
br i1 %168, label %.lr.ph47, label %271
.lr.ph47: ; preds = %166
br label %169
169: ; preds = %.lr.ph47, %266
%170 = load i32, ptr %13, align 4
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds [10 x [10 x i32]], ptr %24, i64 0, i64 %171
%173 = load i32, ptr %14, align 4
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds [10 x i32], ptr %172, i64 0, i64 %174
%176 = load i32, ptr %175, align 4
%177 = load i32, ptr %13, align 4
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds [10 x [10 x i32]], ptr %24, i64 0, i64 %178
%180 = load i32, ptr %14, align 4
%181 = sub nsw i32 %180, 1
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds [10 x i32], ptr %179, i64 0, i64 %182
%184 = load i32, ptr %183, align 4
%185 = sub nsw i32 %176, %184
%186 = icmp eq i32 %185, 1
br i1 %186, label %187, label %192
187: ; preds = %169
%188 = load i32, ptr %22, align 4
%189 = add nsw i32 %188, 1
store i32 %189, ptr %22, align 4
%190 = load i32, ptr %23, align 4
%191 = add nsw i32 %190, 1
store i32 %191, ptr %23, align 4
br label %193
192: ; preds = %169
store i32 0, ptr %22, align 4
br label %193
193: ; preds = %192, %187
%194 = load i32, ptr %22, align 4
%195 = load i32, ptr %11, align 4
%196 = sub nsw i32 %195, 1
%197 = icmp sge i32 %194, %196
br i1 %197, label %198, label %217
198: ; preds = %193
%199 = load i32, ptr %13, align 4
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds [10 x [10 x i32]], ptr %24, i64 0, i64 %200
%202 = load i32, ptr %14, align 4
%203 = load i32, ptr %11, align 4
%204 = sub nsw i32 %202, %203
%205 = add nsw i32 %204, 1
%206 = sext i32 %205 to i64
%207 = getelementptr inbounds [10 x i32], ptr %201, i64 0, i64 %206
%208 = load i32, ptr %207, align 4
%209 = load i32, ptr %13, align 4
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %210
%212 = load i32, ptr %18, align 4
%213 = sext i32 %212 to i64
%214 = getelementptr inbounds [10 x i32], ptr %211, i64 0, i64 %213
store i32 %208, ptr %214, align 4
%215 = load i32, ptr %18, align 4
%216 = add nsw i32 %215, 1
store i32 %216, ptr %18, align 4
br label %217
217: ; preds = %198, %193
%218 = load i32, ptr %22, align 4
%219 = icmp eq i32 %218, 9
br i1 %219, label %220, label %265
220: ; preds = %217
%221 = load i32, ptr %13, align 4
store i32 %221, ptr %19, align 4
%222 = load i32, ptr %19, align 4
%223 = load i32, ptr %13, align 4
%224 = add nsw i32 %223, 1
%225 = icmp slt i32 %222, %224
br i1 %225, label %.lr.ph44, label %264
.lr.ph44: ; preds = %220
br label %226
226: ; preds = %.lr.ph44, %257
store i32 0, ptr %20, align 4
%227 = load i32, ptr %20, align 4
%228 = icmp slt i32 %227, 10
br i1 %228, label %.lr.ph41, label %256
.lr.ph41: ; preds = %226
br label %229
229: ; preds = %.lr.ph41, %251
%230 = load i32, ptr %20, align 4
%231 = load i32, ptr %11, align 4
%232 = sub nsw i32 10, %231
%233 = add nsw i32 %232, 1
%234 = icmp slt i32 %230, %233
br i1 %234, label %235, label %243
235: ; preds = %229
%236 = load i32, ptr %20, align 4
%237 = load i32, ptr %19, align 4
%238 = sext i32 %237 to i64
%239 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %238
%240 = load i32, ptr %20, align 4
%241 = sext i32 %240 to i64
%242 = getelementptr inbounds [10 x i32], ptr %239, i64 0, i64 %241
store i32 %236, ptr %242, align 4
br label %250
243: ; preds = %229
%244 = load i32, ptr %19, align 4
%245 = sext i32 %244 to i64
%246 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %245
%247 = load i32, ptr %20, align 4
%248 = sext i32 %247 to i64
%249 = getelementptr inbounds [10 x i32], ptr %246, i64 0, i64 %248
store i32 11, ptr %249, align 4
br label %250
250: ; preds = %243, %235
br label %251
251: ; preds = %250
%252 = load i32, ptr %20, align 4
%253 = add nsw i32 %252, 1
store i32 %253, ptr %20, align 4
%254 = load i32, ptr %20, align 4
%255 = icmp slt i32 %254, 10
br i1 %255, label %229, label %._crit_edge42, !llvm.loop !13
._crit_edge42: ; preds = %251
br label %256
256: ; preds = %._crit_edge42, %226
br label %257
257: ; preds = %256
%258 = load i32, ptr %19, align 4
%259 = add nsw i32 %258, 1
store i32 %259, ptr %19, align 4
%260 = load i32, ptr %19, align 4
%261 = load i32, ptr %13, align 4
%262 = add nsw i32 %261, 1
%263 = icmp slt i32 %260, %262
br i1 %263, label %226, label %._crit_edge45, !llvm.loop !14
._crit_edge45: ; preds = %257
br label %264
264: ; preds = %._crit_edge45, %220
br label %265
265: ; preds = %264, %217
br label %266
266: ; preds = %265
%267 = load i32, ptr %14, align 4
%268 = add nsw i32 %267, 1
store i32 %268, ptr %14, align 4
%269 = load i32, ptr %14, align 4
%270 = icmp slt i32 %269, 10
br i1 %270, label %169, label %._crit_edge48, !llvm.loop !15
._crit_edge48: ; preds = %266
br label %271
271: ; preds = %._crit_edge48, %166
%272 = load i32, ptr %23, align 4
%273 = icmp eq i32 %272, 0
br i1 %273, label %274, label %304
274: ; preds = %271
%275 = load i32, ptr %13, align 4
store i32 %275, ptr %19, align 4
%276 = load i32, ptr %19, align 4
%277 = load i32, ptr %13, align 4
%278 = add nsw i32 %277, 1
%279 = icmp slt i32 %276, %278
br i1 %279, label %.lr.ph53, label %303
.lr.ph53: ; preds = %274
br label %280
280: ; preds = %.lr.ph53, %296
store i32 0, ptr %20, align 4
%281 = load i32, ptr %20, align 4
%282 = icmp slt i32 %281, 10
br i1 %282, label %.lr.ph50, label %295
.lr.ph50: ; preds = %280
br label %283
283: ; preds = %.lr.ph50, %290
%284 = load i32, ptr %19, align 4
%285 = sext i32 %284 to i64
%286 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %285
%287 = load i32, ptr %20, align 4
%288 = sext i32 %287 to i64
%289 = getelementptr inbounds [10 x i32], ptr %286, i64 0, i64 %288
store i32 11, ptr %289, align 4
br label %290
290: ; preds = %283
%291 = load i32, ptr %20, align 4
%292 = add nsw i32 %291, 1
store i32 %292, ptr %20, align 4
%293 = load i32, ptr %20, align 4
%294 = icmp slt i32 %293, 10
br i1 %294, label %283, label %._crit_edge51, !llvm.loop !16
._crit_edge51: ; preds = %290
br label %295
295: ; preds = %._crit_edge51, %280
br label %296
296: ; preds = %295
%297 = load i32, ptr %19, align 4
%298 = add nsw i32 %297, 1
store i32 %298, ptr %19, align 4
%299 = load i32, ptr %19, align 4
%300 = load i32, ptr %13, align 4
%301 = add nsw i32 %300, 1
%302 = icmp slt i32 %299, %301
br i1 %302, label %280, label %._crit_edge54, !llvm.loop !17
._crit_edge54: ; preds = %296
br label %303
303: ; preds = %._crit_edge54, %274
br label %304
304: ; preds = %303, %271
store i32 0, ptr %15, align 4
%305 = load i32, ptr %15, align 4
%306 = icmp slt i32 %305, 10
br i1 %306, label %.lr.ph56, label %313
.lr.ph56: ; preds = %304
br label %307
307: ; preds = %.lr.ph56, %308
br label %308
308: ; preds = %307
%309 = load i32, ptr %15, align 4
%310 = add nsw i32 %309, 1
store i32 %310, ptr %15, align 4
%311 = load i32, ptr %15, align 4
%312 = icmp slt i32 %311, 10
br i1 %312, label %307, label %._crit_edge57, !llvm.loop !18
._crit_edge57: ; preds = %308
br label %313
313: ; preds = %._crit_edge57, %304
br label %314
314: ; preds = %313
store i32 0, ptr %23, align 4
store i32 0, ptr %22, align 4
store i32 0, ptr %18, align 4
%315 = load i32, ptr %13, align 4
%316 = add nsw i32 %315, 1
store i32 %316, ptr %13, align 4
%317 = load i32, ptr %13, align 4
%318 = icmp slt i32 %317, 10
br i1 %318, label %166, label %._crit_edge60, !llvm.loop !19
._crit_edge60: ; preds = %314
br label %319
319: ; preds = %._crit_edge60, %163
%320 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %19, align 4
%321 = load i32, ptr %19, align 4
%322 = icmp slt i32 %321, 10
br i1 %322, label %.lr.ph65, label %347
.lr.ph65: ; preds = %319
br label %323
323: ; preds = %.lr.ph65, %342
%324 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %20, align 4
%325 = load i32, ptr %20, align 4
%326 = icmp slt i32 %325, 10
br i1 %326, label %.lr.ph62, label %341
.lr.ph62: ; preds = %323
br label %327
327: ; preds = %.lr.ph62, %336
%328 = load i32, ptr %19, align 4
%329 = sext i32 %328 to i64
%330 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %329
%331 = load i32, ptr %20, align 4
%332 = sext i32 %331 to i64
%333 = getelementptr inbounds [10 x i32], ptr %330, i64 0, i64 %332
%334 = load i32, ptr %333, align 4
%335 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %334)
br label %336
336: ; preds = %327
%337 = load i32, ptr %20, align 4
%338 = add nsw i32 %337, 1
store i32 %338, ptr %20, align 4
%339 = load i32, ptr %20, align 4
%340 = icmp slt i32 %339, 10
br i1 %340, label %327, label %._crit_edge63, !llvm.loop !20
._crit_edge63: ; preds = %336
br label %341
341: ; preds = %._crit_edge63, %323
br label %342
342: ; preds = %341
%343 = load i32, ptr %19, align 4
%344 = add nsw i32 %343, 1
store i32 %344, ptr %19, align 4
%345 = load i32, ptr %19, align 4
%346 = icmp slt i32 %345, 10
br i1 %346, label %323, label %._crit_edge66, !llvm.loop !21
._crit_edge66: ; preds = %342
br label %347
347: ; preds = %._crit_edge66, %319
br label %536
348: ; preds = %160
%349 = load i32, ptr %10, align 4
%350 = icmp eq i32 %349, 1
br i1 %350, label %351, label %535
351: ; preds = %348
store i32 0, ptr %13, align 4
%352 = load i32, ptr %13, align 4
%353 = icmp slt i32 %352, 10
br i1 %353, label %.lr.ph32, label %506
.lr.ph32: ; preds = %351
br label %354
354: ; preds = %.lr.ph32, %501
store i32 0, ptr %18, align 4
store i32 0, ptr %22, align 4
store i32 0, ptr %23, align 4
store i32 1, ptr %14, align 4
%355 = load i32, ptr %14, align 4
%356 = icmp slt i32 %355, 10
br i1 %356, label %.lr.ph23, label %467
.lr.ph23: ; preds = %354
br label %357
357: ; preds = %.lr.ph23, %462
%358 = load i32, ptr %14, align 4
%359 = sext i32 %358 to i64
%360 = getelementptr inbounds [10 x [10 x i32]], ptr %24, i64 0, i64 %359
%361 = load i32, ptr %13, align 4
%362 = sext i32 %361 to i64
%363 = getelementptr inbounds [10 x i32], ptr %360, i64 0, i64 %362
%364 = load i32, ptr %363, align 4
%365 = load i32, ptr %14, align 4
%366 = sub nsw i32 %365, 1
%367 = sext i32 %366 to i64
%368 = getelementptr inbounds [10 x [10 x i32]], ptr %24, i64 0, i64 %367
%369 = load i32, ptr %13, align 4
%370 = sext i32 %369 to i64
%371 = getelementptr inbounds [10 x i32], ptr %368, i64 0, i64 %370
%372 = load i32, ptr %371, align 4
%373 = icmp eq i32 %364, %372
br i1 %373, label %374, label %388
374: ; preds = %357
%375 = load i32, ptr %14, align 4
%376 = sext i32 %375 to i64
%377 = getelementptr inbounds [10 x [10 x i32]], ptr %24, i64 0, i64 %376
%378 = load i32, ptr %13, align 4
%379 = sext i32 %378 to i64
%380 = getelementptr inbounds [10 x i32], ptr %377, i64 0, i64 %379
%381 = load i32, ptr %380, align 4
%382 = icmp ne i32 %381, 11
br i1 %382, label %383, label %388
383: ; preds = %374
%384 = load i32, ptr %22, align 4
%385 = add nsw i32 %384, 1
store i32 %385, ptr %22, align 4
%386 = load i32, ptr %23, align 4
%387 = add nsw i32 %386, 1
store i32 %387, ptr %23, align 4
br label %389
388: ; preds = %374, %357
store i32 0, ptr %22, align 4
br label %389
389: ; preds = %388, %383
%390 = load i32, ptr %22, align 4
%391 = load i32, ptr %11, align 4
%392 = sub nsw i32 %391, 1
%393 = icmp sge i32 %390, %392
br i1 %393, label %394, label %413
394: ; preds = %389
%395 = load i32, ptr %14, align 4
%396 = load i32, ptr %11, align 4
%397 = sub nsw i32 %395, %396
%398 = add nsw i32 %397, 1
%399 = sext i32 %398 to i64
%400 = getelementptr inbounds [10 x [10 x i32]], ptr %24, i64 0, i64 %399
%401 = load i32, ptr %13, align 4
%402 = sext i32 %401 to i64
%403 = getelementptr inbounds [10 x i32], ptr %400, i64 0, i64 %402
%404 = load i32, ptr %403, align 4
%405 = load i32, ptr %18, align 4
%406 = sext i32 %405 to i64
%407 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %406
%408 = load i32, ptr %13, align 4
%409 = sext i32 %408 to i64
%410 = getelementptr inbounds [10 x i32], ptr %407, i64 0, i64 %409
store i32 %404, ptr %410, align 4
%411 = load i32, ptr %18, align 4
%412 = add nsw i32 %411, 1
store i32 %412, ptr %18, align 4
br label %413
413: ; preds = %394, %389
%414 = load i32, ptr %22, align 4
%415 = icmp eq i32 %414, 9
br i1 %415, label %416, label %461
416: ; preds = %413
%417 = load i32, ptr %13, align 4
store i32 %417, ptr %19, align 4
%418 = load i32, ptr %19, align 4
%419 = load i32, ptr %13, align 4
%420 = add nsw i32 %419, 1
%421 = icmp slt i32 %418, %420
br i1 %421, label %.lr.ph20, label %460
.lr.ph20: ; preds = %416
br label %422
422: ; preds = %.lr.ph20, %453
store i32 0, ptr %20, align 4
%423 = load i32, ptr %20, align 4
%424 = icmp slt i32 %423, 10
br i1 %424, label %.lr.ph17, label %452
.lr.ph17: ; preds = %422
br label %425
425: ; preds = %.lr.ph17, %447
%426 = load i32, ptr %20, align 4
%427 = load i32, ptr %11, align 4
%428 = sub nsw i32 10, %427
%429 = add nsw i32 %428, 1
%430 = icmp slt i32 %426, %429
br i1 %430, label %431, label %439
431: ; preds = %425
%432 = load i32, ptr %20, align 4
%433 = load i32, ptr %20, align 4
%434 = sext i32 %433 to i64
%435 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %434
%436 = load i32, ptr %19, align 4
%437 = sext i32 %436 to i64
%438 = getelementptr inbounds [10 x i32], ptr %435, i64 0, i64 %437
store i32 %432, ptr %438, align 4
br label %446
439: ; preds = %425
%440 = load i32, ptr %20, align 4
%441 = sext i32 %440 to i64
%442 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %441
%443 = load i32, ptr %19, align 4
%444 = sext i32 %443 to i64
%445 = getelementptr inbounds [10 x i32], ptr %442, i64 0, i64 %444
store i32 11, ptr %445, align 4
br label %446
446: ; preds = %439, %431
br label %447
447: ; preds = %446
%448 = load i32, ptr %20, align 4
%449 = add nsw i32 %448, 1
store i32 %449, ptr %20, align 4
%450 = load i32, ptr %20, align 4
%451 = icmp slt i32 %450, 10
br i1 %451, label %425, label %._crit_edge18, !llvm.loop !22
._crit_edge18: ; preds = %447
br label %452
452: ; preds = %._crit_edge18, %422
br label %453
453: ; preds = %452
%454 = load i32, ptr %19, align 4
%455 = add nsw i32 %454, 1
store i32 %455, ptr %19, align 4
%456 = load i32, ptr %19, align 4
%457 = load i32, ptr %13, align 4
%458 = add nsw i32 %457, 1
%459 = icmp slt i32 %456, %458
br i1 %459, label %422, label %._crit_edge21, !llvm.loop !23
._crit_edge21: ; preds = %453
br label %460
460: ; preds = %._crit_edge21, %416
br label %461
461: ; preds = %460, %413
br label %462
462: ; preds = %461
%463 = load i32, ptr %14, align 4
%464 = add nsw i32 %463, 1
store i32 %464, ptr %14, align 4
%465 = load i32, ptr %14, align 4
%466 = icmp slt i32 %465, 10
br i1 %466, label %357, label %._crit_edge24, !llvm.loop !24
._crit_edge24: ; preds = %462
br label %467
467: ; preds = %._crit_edge24, %354
%468 = load i32, ptr %23, align 4
%469 = icmp eq i32 %468, 0
br i1 %469, label %470, label %500
470: ; preds = %467
%471 = load i32, ptr %13, align 4
store i32 %471, ptr %19, align 4
%472 = load i32, ptr %19, align 4
%473 = load i32, ptr %13, align 4
%474 = add nsw i32 %473, 1
%475 = icmp slt i32 %472, %474
br i1 %475, label %.lr.ph29, label %499
.lr.ph29: ; preds = %470
br label %476
476: ; preds = %.lr.ph29, %492
store i32 0, ptr %20, align 4
%477 = load i32, ptr %20, align 4
%478 = icmp slt i32 %477, 10
br i1 %478, label %.lr.ph26, label %491
.lr.ph26: ; preds = %476
br label %479
479: ; preds = %.lr.ph26, %486
%480 = load i32, ptr %20, align 4
%481 = sext i32 %480 to i64
%482 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %481
%483 = load i32, ptr %19, align 4
%484 = sext i32 %483 to i64
%485 = getelementptr inbounds [10 x i32], ptr %482, i64 0, i64 %484
store i32 11, ptr %485, align 4
br label %486
486: ; preds = %479
%487 = load i32, ptr %20, align 4
%488 = add nsw i32 %487, 1
store i32 %488, ptr %20, align 4
%489 = load i32, ptr %20, align 4
%490 = icmp slt i32 %489, 10
br i1 %490, label %479, label %._crit_edge27, !llvm.loop !25
._crit_edge27: ; preds = %486
br label %491
491: ; preds = %._crit_edge27, %476
br label %492
492: ; preds = %491
%493 = load i32, ptr %19, align 4
%494 = add nsw i32 %493, 1
store i32 %494, ptr %19, align 4
%495 = load i32, ptr %19, align 4
%496 = load i32, ptr %13, align 4
%497 = add nsw i32 %496, 1
%498 = icmp slt i32 %495, %497
br i1 %498, label %476, label %._crit_edge30, !llvm.loop !26
._crit_edge30: ; preds = %492
br label %499
499: ; preds = %._crit_edge30, %470
br label %500
500: ; preds = %499, %467
br label %501
501: ; preds = %500
%502 = load i32, ptr %13, align 4
%503 = add nsw i32 %502, 1
store i32 %503, ptr %13, align 4
%504 = load i32, ptr %13, align 4
%505 = icmp slt i32 %504, 10
br i1 %505, label %354, label %._crit_edge33, !llvm.loop !27
._crit_edge33: ; preds = %501
br label %506
506: ; preds = %._crit_edge33, %351
%507 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %19, align 4
%508 = load i32, ptr %19, align 4
%509 = icmp slt i32 %508, 10
br i1 %509, label %.lr.ph38, label %534
.lr.ph38: ; preds = %506
br label %510
510: ; preds = %.lr.ph38, %529
%511 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %20, align 4
%512 = load i32, ptr %20, align 4
%513 = icmp slt i32 %512, 10
br i1 %513, label %.lr.ph35, label %528
.lr.ph35: ; preds = %510
br label %514
514: ; preds = %.lr.ph35, %523
%515 = load i32, ptr %19, align 4
%516 = sext i32 %515 to i64
%517 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %516
%518 = load i32, ptr %20, align 4
%519 = sext i32 %518 to i64
%520 = getelementptr inbounds [10 x i32], ptr %517, i64 0, i64 %519
%521 = load i32, ptr %520, align 4
%522 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %521)
br label %523
523: ; preds = %514
%524 = load i32, ptr %20, align 4
%525 = add nsw i32 %524, 1
store i32 %525, ptr %20, align 4
%526 = load i32, ptr %20, align 4
%527 = icmp slt i32 %526, 10
br i1 %527, label %514, label %._crit_edge36, !llvm.loop !28
._crit_edge36: ; preds = %523
br label %528
528: ; preds = %._crit_edge36, %510
br label %529
529: ; preds = %528
%530 = load i32, ptr %19, align 4
%531 = add nsw i32 %530, 1
store i32 %531, ptr %19, align 4
%532 = load i32, ptr %19, align 4
%533 = icmp slt i32 %532, 10
br i1 %533, label %510, label %._crit_edge39, !llvm.loop !29
._crit_edge39: ; preds = %529
br label %534
534: ; preds = %._crit_edge39, %506
br label %535
535: ; preds = %534, %348
br label %536
536: ; preds = %535, %347
store i32 0, ptr %19, align 4
store i32 0, ptr %30, align 4
br label %537
537: ; preds = %636, %536
store i32 0, ptr %19, align 4
store i32 0, ptr %29, align 4
%538 = call i32 (...) @rand()
%539 = srem i32 %538, 10
store i32 %539, ptr %27, align 4
%540 = load i32, ptr %27, align 4
store i32 %540, ptr %13, align 4
store i32 0, ptr %29, align 4
%541 = load i32, ptr %13, align 4
%542 = load i32, ptr %27, align 4
%543 = add nsw i32 %542, 1
%544 = icmp slt i32 %541, %543
br i1 %544, label %.lr.ph74, label %605
.lr.ph74: ; preds = %537
br label %545
545: ; preds = %.lr.ph74, %598
%546 = load i32, ptr %10, align 4
%547 = icmp eq i32 %546, 0
br i1 %547, label %548, label %573
548: ; preds = %545
store i32 0, ptr %14, align 4
%549 = load i32, ptr %14, align 4
%550 = icmp slt i32 %549, 10
br i1 %550, label %.lr.ph71, label %572
.lr.ph71: ; preds = %548
br label %551
551: ; preds = %.lr.ph71, %567
%552 = load i32, ptr %13, align 4
%553 = sext i32 %552 to i64
%554 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %553
%555 = load i32, ptr %14, align 4
%556 = sext i32 %555 to i64
%557 = getelementptr inbounds [10 x i32], ptr %554, i64 0, i64 %556
%558 = load i32, ptr %557, align 4
%559 = icmp ne i32 %558, 11
br i1 %559, label %560, label %566
560: ; preds = %551
%561 = load i32, ptr %29, align 4
%562 = add nsw i32 %561, 1
store i32 %562, ptr %29, align 4
%563 = load i32, ptr %19, align 4
%564 = add nsw i32 %563, 1
store i32 %564, ptr %19, align 4
%565 = load i32, ptr %27, align 4
store i32 %565, ptr %30, align 4
br label %566
566: ; preds = %560, %551
br label %567
567: ; preds = %566
%568 = load i32, ptr %14, align 4
%569 = add nsw i32 %568, 1
store i32 %569, ptr %14, align 4
%570 = load i32, ptr %14, align 4
%571 = icmp slt i32 %570, 10
br i1 %571, label %551, label %._crit_edge72, !llvm.loop !30
._crit_edge72: ; preds = %567
br label %572
572: ; preds = %._crit_edge72, %548
br label %597
573: ; preds = %545
store i32 0, ptr %14, align 4
%574 = load i32, ptr %14, align 4
%575 = icmp slt i32 %574, 10
br i1 %575, label %.lr.ph68, label %596
.lr.ph68: ; preds = %573
br label %576
576: ; preds = %.lr.ph68, %591
%577 = load i32, ptr %14, align 4
%578 = sext i32 %577 to i64
%579 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %578
%580 = load i32, ptr %13, align 4
%581 = sext i32 %580 to i64
%582 = getelementptr inbounds [10 x i32], ptr %579, i64 0, i64 %581
%583 = load i32, ptr %582, align 4
%584 = icmp ne i32 %583, 11
br i1 %584, label %585, label %590
585: ; preds = %576
%586 = load i32, ptr %29, align 4
%587 = add nsw i32 %586, 1
store i32 %587, ptr %29, align 4
%588 = load i32, ptr %19, align 4
%589 = add nsw i32 %588, 1
store i32 %589, ptr %19, align 4
br label %590
590: ; preds = %585, %576
br label %591
591: ; preds = %590
%592 = load i32, ptr %14, align 4
%593 = add nsw i32 %592, 1
store i32 %593, ptr %14, align 4
%594 = load i32, ptr %14, align 4
%595 = icmp slt i32 %594, 10
br i1 %595, label %576, label %._crit_edge69, !llvm.loop !31
._crit_edge69: ; preds = %591
br label %596
596: ; preds = %._crit_edge69, %573
br label %597
597: ; preds = %596, %572
br label %598
598: ; preds = %597
%599 = load i32, ptr %13, align 4
%600 = add nsw i32 %599, 1
store i32 %600, ptr %13, align 4
%601 = load i32, ptr %13, align 4
%602 = load i32, ptr %27, align 4
%603 = add nsw i32 %602, 1
%604 = icmp slt i32 %601, %603
br i1 %604, label %545, label %._crit_edge75, !llvm.loop !32
._crit_edge75: ; preds = %598
br label %605
605: ; preds = %._crit_edge75, %537
%606 = call i32 (...) @rand()
%607 = load i32, ptr %29, align 4
%608 = srem i32 %606, %607
store i32 %608, ptr %28, align 4
br label %609
609: ; preds = %605
%610 = load ptr, ptr %7, align 8
%611 = load i32, ptr %30, align 4
%612 = sext i32 %611 to i64
%613 = getelementptr inbounds ptr, ptr %610, i64 %612
%614 = load ptr, ptr %613, align 8
%615 = load i32, ptr %28, align 4
%616 = sext i32 %615 to i64
%617 = getelementptr inbounds i8, ptr %614, i64 %616
%618 = load i8, ptr %617, align 1
%619 = sext i8 %618 to i32
%620 = icmp ne i32 %619, 45
br i1 %620, label %636, label %621
621: ; preds = %609
%622 = load ptr, ptr %7, align 8
%623 = load i32, ptr %30, align 4
%624 = sext i32 %623 to i64
%625 = getelementptr inbounds ptr, ptr %622, i64 %624
%626 = load ptr, ptr %625, align 8
%627 = load i32, ptr %28, align 4
%628 = load i32, ptr %11, align 4
%629 = add nsw i32 %627, %628
%630 = sub nsw i32 %629, 1
%631 = sext i32 %630 to i64
%632 = getelementptr inbounds i8, ptr %626, i64 %631
%633 = load i8, ptr %632, align 1
%634 = sext i8 %633 to i32
%635 = icmp ne i32 %634, 45
br label %636
636: ; preds = %621, %609
%637 = phi i1 [ true, %609 ], [ %635, %621 ]
br i1 %637, label %537, label %638, !llvm.loop !33
638: ; preds = %636
%639 = load i32, ptr %10, align 4
%640 = icmp eq i32 %639, 0
br i1 %640, label %641, label %649
641: ; preds = %638
%642 = load i32, ptr %30, align 4
%643 = sext i32 %642 to i64
%644 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %643
%645 = load i32, ptr %28, align 4
%646 = sext i32 %645 to i64
%647 = getelementptr inbounds [10 x i32], ptr %644, i64 0, i64 %646
%648 = load i32, ptr %647, align 4
store i32 %648, ptr %26, align 4
br label %657
649: ; preds = %638
%650 = load i32, ptr %28, align 4
%651 = sext i32 %650 to i64
%652 = getelementptr inbounds [10 x [10 x i32]], ptr %25, i64 0, i64 %651
%653 = load i32, ptr %30, align 4
%654 = sext i32 %653 to i64
%655 = getelementptr inbounds [10 x i32], ptr %652, i64 0, i64 %654
%656 = load i32, ptr %655, align 4
store i32 %656, ptr %26, align 4
br label %657
657: ; preds = %649, %641
%658 = load i32, ptr %10, align 4
%659 = load i32, ptr %30, align 4
%660 = load i32, ptr %26, align 4
%661 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %658, i32 noundef %659, i32 noundef %660)
%662 = load ptr, ptr %7, align 8
%663 = load i32, ptr %10, align 4
%664 = load i32, ptr %30, align 4
%665 = load i32, ptr %26, align 4
%666 = load i32, ptr %11, align 4
%667 = load i8, ptr %12, align 1
%668 = call ptr @ships(ptr noundef %662, i32 noundef %663, i32 noundef %664, i32 noundef %665, i32 noundef %666, i8 noundef signext %667)
store ptr %668, ptr %7, align 8
%669 = load ptr, ptr %7, align 8
ret ptr %669
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @rand(...) #1
declare ptr @ships(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
!16 = distinct !{!16, !7}
!17 = distinct !{!17, !7}
!18 = distinct !{!18, !7}
!19 = distinct !{!19, !7}
!20 = distinct !{!20, !7}
!21 = distinct !{!21, !7}
!22 = distinct !{!22, !7}
!23 = distinct !{!23, !7}
!24 = distinct !{!24, !7}
!25 = distinct !{!25, !7}
!26 = distinct !{!26, !7}
!27 = distinct !{!27, !7}
!28 = distinct !{!28, !7}
!29 = distinct !{!29, !7}
!30 = distinct !{!30, !7}
!31 = distinct !{!31, !7}
!32 = distinct !{!32, !7}
!33 = distinct !{!33, !7}
|
; ModuleID = '/tmp/tmpp298enaw.c'
source_filename = "/tmp/tmpp298enaw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"do-while Loop Example 4\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"Please enter either A, B or C: \00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%c%c\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"Invalid response, try again.\0A\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"Your valid entry was %c.\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca i8, align 1
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %6
6: ; preds = %35, %0
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%8 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2, ptr noundef %3)
%9 = load i8, ptr %2, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 65
br i1 %11, label %12, label %22
12: ; preds = %6
%13 = load i8, ptr %2, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 66
br i1 %15, label %16, label %22
16: ; preds = %12
%17 = load i8, ptr %2, align 1
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 67
br i1 %19, label %20, label %22
20: ; preds = %16
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %22
22: ; preds = %20, %16, %12, %6
br label %23
23: ; preds = %22
%24 = load i8, ptr %2, align 1
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %25, 65
br i1 %26, label %27, label %35
27: ; preds = %23
%28 = load i8, ptr %2, align 1
%29 = sext i8 %28 to i32
%30 = icmp ne i32 %29, 66
br i1 %30, label %31, label %35
31: ; preds = %27
%32 = load i8, ptr %2, align 1
%33 = sext i8 %32 to i32
%34 = icmp ne i32 %33, 67
br label %35
35: ; preds = %31, %27, %23
%36 = phi i1 [ false, %27 ], [ false, %23 ], [ %34, %31 ]
br i1 %36, label %6, label %37, !llvm.loop !6
37: ; preds = %35
%38 = load i8, ptr %2, align 1
%39 = sext i8 %38 to i32
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %39)
store i32 0, ptr %4, align 4
br label %41
41: ; preds = %59, %37
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%43 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2, ptr noundef %3)
%44 = load i8, ptr %2, align 1
%45 = sext i8 %44 to i32
%46 = icmp ne i32 %45, 65
br i1 %46, label %47, label %57
47: ; preds = %41
%48 = load i8, ptr %2, align 1
%49 = sext i8 %48 to i32
%50 = icmp ne i32 %49, 66
br i1 %50, label %51, label %57
51: ; preds = %47
%52 = load i8, ptr %2, align 1
%53 = sext i8 %52 to i32
%54 = icmp ne i32 %53, 67
br i1 %54, label %55, label %57
55: ; preds = %51
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %58
57: ; preds = %51, %47, %41
store i32 1, ptr %4, align 4
br label %58
58: ; preds = %57, %55
br label %59
59: ; preds = %58
%60 = load i32, ptr %4, align 4
%61 = icmp eq i32 %60, 0
br i1 %61, label %41, label %62, !llvm.loop !8
62: ; preds = %59
%63 = load i8, ptr %2, align 1
%64 = sext i8 %63 to i32
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %64)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp298enaw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"do-while Loop Example 4\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"Please enter either A, B or C: \00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%c%c\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"Invalid response, try again.\0A\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"Your valid entry was %c.\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca i8, align 1
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %6
6: ; preds = %35, %0
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%8 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2, ptr noundef %3)
%9 = load i8, ptr %2, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 65
br i1 %11, label %12, label %22
12: ; preds = %6
%13 = load i8, ptr %2, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 66
br i1 %15, label %16, label %22
16: ; preds = %12
%17 = load i8, ptr %2, align 1
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 67
br i1 %19, label %20, label %22
20: ; preds = %16
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %22
22: ; preds = %20, %16, %12, %6
br label %23
23: ; preds = %22
%24 = load i8, ptr %2, align 1
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %25, 65
br i1 %26, label %27, label %35
27: ; preds = %23
%28 = load i8, ptr %2, align 1
%29 = sext i8 %28 to i32
%30 = icmp ne i32 %29, 66
br i1 %30, label %31, label %35
31: ; preds = %27
%32 = load i8, ptr %2, align 1
%33 = sext i8 %32 to i32
%34 = icmp ne i32 %33, 67
br label %35
35: ; preds = %31, %27, %23
%36 = phi i1 [ false, %27 ], [ false, %23 ], [ %34, %31 ]
br i1 %36, label %6, label %37, !llvm.loop !6
37: ; preds = %35
%38 = load i8, ptr %2, align 1
%39 = sext i8 %38 to i32
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %39)
store i32 0, ptr %4, align 4
br label %41
41: ; preds = %59, %37
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%43 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2, ptr noundef %3)
%44 = load i8, ptr %2, align 1
%45 = sext i8 %44 to i32
%46 = icmp ne i32 %45, 65
br i1 %46, label %47, label %57
47: ; preds = %41
%48 = load i8, ptr %2, align 1
%49 = sext i8 %48 to i32
%50 = icmp ne i32 %49, 66
br i1 %50, label %51, label %57
51: ; preds = %47
%52 = load i8, ptr %2, align 1
%53 = sext i8 %52 to i32
%54 = icmp ne i32 %53, 67
br i1 %54, label %55, label %57
55: ; preds = %51
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %58
57: ; preds = %51, %47, %41
store i32 1, ptr %4, align 4
br label %58
58: ; preds = %57, %55
br label %59
59: ; preds = %58
%60 = load i32, ptr %4, align 4
%61 = icmp eq i32 %60, 0
br i1 %61, label %41, label %62, !llvm.loop !8
62: ; preds = %59
%63 = load i8, ptr %2, align 1
%64 = sext i8 %63 to i32
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %64)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpcxrpfoff.c'
source_filename = "/tmp/tmpcxrpfoff.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stringStartsWith(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @strlen(ptr noundef %8)
store i32 %9, ptr %6, align 4
%10 = load ptr, ptr %5, align 8
%11 = call i32 @strlen(ptr noundef %10)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %7, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %16
15: ; preds = %2
store i32 0, ptr %3, align 4
br label %23
16: ; preds = %2
%17 = load ptr, ptr %4, align 8
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %7, align 4
%20 = call i64 @strncmp(ptr noundef %17, ptr noundef %18, i32 noundef %19)
%21 = icmp eq i64 %20, 0
%22 = zext i1 %21 to i32
store i32 %22, ptr %3, align 4
br label %23
23: ; preds = %16, %15
%24 = load i32, ptr %3, align 4
ret i32 %24
}
declare i32 @strlen(ptr noundef) #1
declare i64 @strncmp(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/tmpcxrpfoff.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stringStartsWith(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @strlen(ptr noundef %8)
store i32 %9, ptr %6, align 4
%10 = load ptr, ptr %5, align 8
%11 = call i32 @strlen(ptr noundef %10)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %7, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %16
15: ; preds = %2
store i32 0, ptr %3, align 4
br label %23
16: ; preds = %2
%17 = load ptr, ptr %4, align 8
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %7, align 4
%20 = call i64 @strncmp(ptr noundef %17, ptr noundef %18, i32 noundef %19)
%21 = icmp eq i64 %20, 0
%22 = zext i1 %21 to i32
store i32 %22, ptr %3, align 4
br label %23
23: ; preds = %16, %15
%24 = load i32, ptr %3, align 4
ret i32 %24
}
declare i32 @strlen(ptr noundef) #1
declare i64 @strncmp(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/tmpj6ucoyhj.c'
source_filename = "/tmp/tmpj6ucoyhj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0AVideo-Test\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @video_test() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj6ucoyhj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0AVideo-Test\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @video_test() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3pgj6bmy.c'
source_filename = "/tmp/tmp3pgj6bmy.c"
target datalayout = "e-m:e-p270: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.stat = type { i32, i32 }
@.str = private unnamed_addr constant [3 x i8] c"-v\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"-q\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [54 x i8] c"usage: %s [-qv] <file> -- print out cache statistics\0A\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"\09-v\09print verbose cache map\0A\00", align 1
@.str.4 = private unnamed_addr constant [45 x i8] c"\09-q\09exit code tells if file is fully cached\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [5 x i8] c"open\00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"fstat\00", align 1
@.str.7 = private unnamed_addr constant [32 x i8] c"%s: S_ISREG: not a regular file\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [64 x i8] c"pages in cache: %d/%d (%.1f%%) [filesize=%.1fK, pagesize=%dK]\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [7 x i8] c"calloc\00", align 1
@PROT_NONE = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
@.str.10 = private unnamed_addr constant [5 x i8] c"mmap\00", align 1
@.str.11 = private unnamed_addr constant [8 x i8] c"mincore\00", align 1
@.str.12 = private unnamed_addr constant [13 x i8] c"\0Acache map:\0A\00", align 1
@.str.13 = private unnamed_addr constant [7 x i8] c"%6d: |\00", align 1
@.str.14 = private unnamed_addr constant [4 x i8] c"%c|\00", align 1
@.str.15 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca %struct.stat, align 4
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
store ptr null, ptr %14, align 8
store ptr null, ptr %15, align 8
%16 = call i32 (...) @getpagesize()
store i32 %16, ptr %9, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp sgt i32 %17, 1
br i1 %18, label %19, label %35
19: ; preds = %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = call i32 @strcmp(ptr noundef @.str, ptr noundef %22)
%24 = icmp ne i32 %23, 0
br i1 %24, label %26, label %25
25: ; preds = %19
store i32 1, ptr %11, align 4
br label %34
26: ; preds = %19
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 1
%29 = load ptr, ptr %28, align 8
%30 = call i32 @strcmp(ptr noundef @.str.1, ptr noundef %29)
%31 = icmp ne i32 %30, 0
br i1 %31, label %33, label %32
32: ; preds = %26
store i32 1, ptr %10, align 4
br label %33
33: ; preds = %32, %26
br label %34
34: ; preds = %33, %25
br label %46
35: ; preds = %2
%36 = load i32, ptr @stderr, align 4
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds ptr, ptr %37, i64 0
%39 = load ptr, ptr %38, align 8
%40 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %36, ptr noundef @.str.2, ptr noundef %39)
%41 = load i32, ptr @stderr, align 4
%42 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %41, ptr noundef @.str.3)
%43 = load i32, ptr @stderr, align 4
%44 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %43, ptr noundef @.str.4)
%45 = call i32 @exit(i32 noundef 1) #3
unreachable
46: ; preds = %34
%47 = load i32, ptr %10, align 4
%48 = icmp ne i32 %47, 0
br i1 %48, label %52, label %49
49: ; preds = %46
%50 = load i32, ptr %11, align 4
%51 = icmp ne i32 %50, 0
br i1 %51, label %52, label %55
52: ; preds = %49, %46
%53 = load ptr, ptr %5, align 8
%54 = getelementptr inbounds ptr, ptr %53, i32 1
store ptr %54, ptr %5, align 8
br label %55
55: ; preds = %52, %49
%56 = load ptr, ptr %5, align 8
%57 = getelementptr inbounds ptr, ptr %56, i64 1
%58 = load ptr, ptr %57, align 8
%59 = load i32, ptr @O_RDONLY, align 4
%60 = call i32 @open(ptr noundef %58, i32 noundef %59)
store i32 %60, ptr %12, align 4
%61 = load i32, ptr %12, align 4
%62 = icmp eq i32 %61, -1
br i1 %62, label %63, label %65
63: ; preds = %55
%64 = call i32 @exiterr(ptr noundef @.str.5)
br label %65
65: ; preds = %63, %55
%66 = load i32, ptr %12, align 4
%67 = call i32 @fstat(i32 noundef %66, ptr noundef %13)
%68 = icmp eq i32 %67, -1
br i1 %68, label %69, label %71
69: ; preds = %65
%70 = call i32 @exiterr(ptr noundef @.str.6)
br label %71
71: ; preds = %69, %65
%72 = getelementptr inbounds %struct.stat, ptr %13, i32 0, i32 1
%73 = load i32, ptr %72, align 4
%74 = call i32 @S_ISREG(i32 noundef %73)
%75 = icmp ne i32 %74, 0
br i1 %75, label %83, label %76
76: ; preds = %71
%77 = load i32, ptr @stderr, align 4
%78 = load ptr, ptr %5, align 8
%79 = getelementptr inbounds ptr, ptr %78, i64 1
%80 = load ptr, ptr %79, align 8
%81 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %77, ptr noundef @.str.7, ptr noundef %80)
%82 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %82, ptr %3, align 4
br label %230
83: ; preds = %71
%84 = getelementptr inbounds %struct.stat, ptr %13, i32 0, i32 0
%85 = load i32, ptr %84, align 4
%86 = icmp eq i32 %85, 0
br i1 %86, label %87, label %92
87: ; preds = %83
%88 = load i32, ptr %9, align 4
%89 = sdiv i32 %88, 1024
%90 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef 0, i32 noundef 0, double noundef 0.000000e+00, double noundef 0.000000e+00, i32 noundef %89)
%91 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %91, ptr %3, align 4
br label %230
92: ; preds = %83
%93 = getelementptr inbounds %struct.stat, ptr %13, i32 0, i32 0
%94 = load i32, ptr %93, align 4
%95 = load i32, ptr %9, align 4
%96 = add nsw i32 %94, %95
%97 = sub nsw i32 %96, 1
%98 = load i32, ptr %9, align 4
%99 = sdiv i32 %97, %98
store i32 %99, ptr %8, align 4
%100 = load i32, ptr %8, align 4
%101 = call ptr @calloc(i32 noundef 1, i32 noundef %100)
store ptr %101, ptr %15, align 8
%102 = load ptr, ptr %15, align 8
%103 = icmp ne ptr %102, null
br i1 %103, label %106, label %104
104: ; preds = %92
%105 = call i32 @exiterr(ptr noundef @.str.9)
br label %106
106: ; preds = %104, %92
%107 = getelementptr inbounds %struct.stat, ptr %13, i32 0, i32 0
%108 = load i32, ptr %107, align 4
%109 = load i32, ptr @PROT_NONE, align 4
%110 = load i32, ptr @MAP_SHARED, align 4
%111 = load i32, ptr %12, align 4
%112 = call ptr @mmap(ptr noundef null, i32 noundef %108, i32 noundef %109, i32 noundef %110, i32 noundef %111, i32 noundef 0)
store ptr %112, ptr %14, align 8
%113 = load ptr, ptr %14, align 8
%114 = load ptr, ptr @MAP_FAILED, align 8
%115 = icmp eq ptr %113, %114
br i1 %115, label %116, label %118
116: ; preds = %106
%117 = call i32 @exiterr(ptr noundef @.str.10)
br label %118
118: ; preds = %116, %106
%119 = load ptr, ptr %14, align 8
%120 = getelementptr inbounds %struct.stat, ptr %13, i32 0, i32 0
%121 = load i32, ptr %120, align 4
%122 = load ptr, ptr %15, align 8
%123 = call i32 @mincore(ptr noundef %119, i32 noundef %121, ptr noundef %122)
%124 = icmp eq i32 %123, -1
br i1 %124, label %125, label %127
125: ; preds = %118
%126 = call i32 @exiterr(ptr noundef @.str.11)
br label %127
127: ; preds = %125, %118
store i32 0, ptr %7, align 4
store i32 0, ptr %6, align 4
br label %128
128: ; preds = %145, %127
%129 = load i32, ptr %6, align 4
%130 = load i32, ptr %8, align 4
%131 = icmp slt i32 %129, %130
br i1 %131, label %132, label %146
132: ; preds = %128
%133 = load ptr, ptr %15, align 8
%134 = load i32, ptr %6, align 4
%135 = add nsw i32 %134, 1
store i32 %135, ptr %6, align 4
%136 = sext i32 %134 to i64
%137 = getelementptr inbounds i8, ptr %133, i64 %136
%138 = load i8, ptr %137, align 1
%139 = zext i8 %138 to i32
%140 = and i32 %139, 1
%141 = icmp ne i32 %140, 0
br i1 %141, label %142, label %145
142: ; preds = %132
%143 = load i32, ptr %7, align 4
%144 = add nsw i32 %143, 1
store i32 %144, ptr %7, align 4
br label %145
145: ; preds = %142, %132
br label %128, !llvm.loop !6
146: ; preds = %128
%147 = load i32, ptr %10, align 4
%148 = icmp ne i32 %147, 0
br i1 %148, label %149, label %157
149: ; preds = %146
%150 = load i32, ptr %7, align 4
%151 = load i32, ptr %6, align 4
%152 = icmp eq i32 %150, %151
br i1 %152, label %153, label %155
153: ; preds = %149
%154 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %154, ptr %3, align 4
br label %230
155: ; preds = %149
%156 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %156, ptr %3, align 4
br label %230
157: ; preds = %146
%158 = load i32, ptr %7, align 4
%159 = load i32, ptr %6, align 4
%160 = load i32, ptr %7, align 4
%161 = sitofp i32 %160 to double
%162 = fmul double 1.000000e+02, %161
%163 = load i32, ptr %6, align 4
%164 = sitofp i32 %163 to double
%165 = fdiv double %162, %164
%166 = getelementptr inbounds %struct.stat, ptr %13, i32 0, i32 0
%167 = load i32, ptr %166, align 4
%168 = sitofp i32 %167 to double
%169 = fmul double 1.000000e+00, %168
%170 = fdiv double %169, 1.024000e+03
%171 = load i32, ptr %9, align 4
%172 = sdiv i32 %171, 1024
%173 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %158, i32 noundef %159, double noundef %165, double noundef %170, i32 noundef %172)
%174 = load i32, ptr %11, align 4
%175 = icmp ne i32 %174, 0
br i1 %175, label %176, label %223
176: ; preds = %157
%177 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
store i32 0, ptr %6, align 4
br label %178
178: ; preds = %219, %176
%179 = load i32, ptr %6, align 4
%180 = load i32, ptr %8, align 4
%181 = sub nsw i32 %180, 1
%182 = sdiv i32 %181, 32
%183 = icmp sle i32 %179, %182
br i1 %183, label %184, label %222
184: ; preds = %178
%185 = load i32, ptr %6, align 4
%186 = mul nsw i32 %185, 32
%187 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %186)
store i32 0, ptr %7, align 4
br label %188
188: ; preds = %214, %184
%189 = load i32, ptr %7, align 4
%190 = icmp slt i32 %189, 32
br i1 %190, label %191, label %217
191: ; preds = %188
%192 = load i32, ptr %6, align 4
%193 = mul nsw i32 %192, 32
%194 = load i32, ptr %7, align 4
%195 = add nsw i32 %193, %194
%196 = load i32, ptr %8, align 4
%197 = icmp eq i32 %195, %196
br i1 %197, label %198, label %199
198: ; preds = %191
br label %217
199: ; preds = %191
%200 = load ptr, ptr %15, align 8
%201 = load i32, ptr %6, align 4
%202 = mul nsw i32 %201, 32
%203 = load i32, ptr %7, align 4
%204 = add nsw i32 %202, %203
%205 = sext i32 %204 to i64
%206 = getelementptr inbounds i8, ptr %200, i64 %205
%207 = load i8, ptr %206, align 1
%208 = zext i8 %207 to i32
%209 = and i32 %208, 1
%210 = icmp ne i32 %209, 0
%211 = zext i1 %210 to i64
%212 = select i1 %210, i32 120, i32 32
%213 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %212)
br label %214
214: ; preds = %199
%215 = load i32, ptr %7, align 4
%216 = add nsw i32 %215, 1
store i32 %216, ptr %7, align 4
br label %188, !llvm.loop !8
217: ; preds = %198, %188
%218 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
br label %219
219: ; preds = %217
%220 = load i32, ptr %6, align 4
%221 = add nsw i32 %220, 1
store i32 %221, ptr %6, align 4
br label %178, !llvm.loop !9
222: ; preds = %178
br label %223
223: ; preds = %222, %157
%224 = load ptr, ptr %14, align 8
%225 = getelementptr inbounds %struct.stat, ptr %13, i32 0, i32 0
%226 = load i32, ptr %225, align 4
%227 = sitofp i32 %226 to double
%228 = call i32 @munmap(ptr noundef %224, double noundef %227)
%229 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %229, ptr %3, align 4
br label %230
230: ; preds = %223, %155, %153, %87, %76
%231 = load i32, ptr %3, align 4
ret i32 %231
}
declare i32 @getpagesize(...) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @exiterr(ptr noundef) #1
declare i32 @fstat(i32 noundef, ptr noundef) #1
declare i32 @S_ISREG(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @calloc(i32 noundef, i32 noundef) #1
declare ptr @mmap(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mincore(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @munmap(ptr noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3pgj6bmy.c"
target datalayout = "e-m:e-p270: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.stat = type { i32, i32 }
@.str = private unnamed_addr constant [3 x i8] c"-v\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"-q\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [54 x i8] c"usage: %s [-qv] <file> -- print out cache statistics\0A\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"\09-v\09print verbose cache map\0A\00", align 1
@.str.4 = private unnamed_addr constant [45 x i8] c"\09-q\09exit code tells if file is fully cached\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [5 x i8] c"open\00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"fstat\00", align 1
@.str.7 = private unnamed_addr constant [32 x i8] c"%s: S_ISREG: not a regular file\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [64 x i8] c"pages in cache: %d/%d (%.1f%%) [filesize=%.1fK, pagesize=%dK]\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [7 x i8] c"calloc\00", align 1
@PROT_NONE = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
@.str.10 = private unnamed_addr constant [5 x i8] c"mmap\00", align 1
@.str.11 = private unnamed_addr constant [8 x i8] c"mincore\00", align 1
@.str.12 = private unnamed_addr constant [13 x i8] c"\0Acache map:\0A\00", align 1
@.str.13 = private unnamed_addr constant [7 x i8] c"%6d: |\00", align 1
@.str.14 = private unnamed_addr constant [4 x i8] c"%c|\00", align 1
@.str.15 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca %struct.stat, align 4
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
store ptr null, ptr %14, align 8
store ptr null, ptr %15, align 8
%16 = call i32 (...) @getpagesize()
store i32 %16, ptr %9, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp sgt i32 %17, 1
br i1 %18, label %19, label %35
19: ; preds = %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = call i32 @strcmp(ptr noundef @.str, ptr noundef %22)
%24 = icmp ne i32 %23, 0
br i1 %24, label %26, label %25
25: ; preds = %19
store i32 1, ptr %11, align 4
br label %34
26: ; preds = %19
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 1
%29 = load ptr, ptr %28, align 8
%30 = call i32 @strcmp(ptr noundef @.str.1, ptr noundef %29)
%31 = icmp ne i32 %30, 0
br i1 %31, label %33, label %32
32: ; preds = %26
store i32 1, ptr %10, align 4
br label %33
33: ; preds = %32, %26
br label %34
34: ; preds = %33, %25
br label %46
35: ; preds = %2
%36 = load i32, ptr @stderr, align 4
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds ptr, ptr %37, i64 0
%39 = load ptr, ptr %38, align 8
%40 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %36, ptr noundef @.str.2, ptr noundef %39)
%41 = load i32, ptr @stderr, align 4
%42 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %41, ptr noundef @.str.3)
%43 = load i32, ptr @stderr, align 4
%44 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %43, ptr noundef @.str.4)
%45 = call i32 @exit(i32 noundef 1) #3
unreachable
46: ; preds = %34
%47 = load i32, ptr %10, align 4
%48 = icmp ne i32 %47, 0
br i1 %48, label %52, label %49
49: ; preds = %46
%50 = load i32, ptr %11, align 4
%51 = icmp ne i32 %50, 0
br i1 %51, label %52, label %55
52: ; preds = %49, %46
%53 = load ptr, ptr %5, align 8
%54 = getelementptr inbounds ptr, ptr %53, i32 1
store ptr %54, ptr %5, align 8
br label %55
55: ; preds = %52, %49
%56 = load ptr, ptr %5, align 8
%57 = getelementptr inbounds ptr, ptr %56, i64 1
%58 = load ptr, ptr %57, align 8
%59 = load i32, ptr @O_RDONLY, align 4
%60 = call i32 @open(ptr noundef %58, i32 noundef %59)
store i32 %60, ptr %12, align 4
%61 = load i32, ptr %12, align 4
%62 = icmp eq i32 %61, -1
br i1 %62, label %63, label %65
63: ; preds = %55
%64 = call i32 @exiterr(ptr noundef @.str.5)
br label %65
65: ; preds = %63, %55
%66 = load i32, ptr %12, align 4
%67 = call i32 @fstat(i32 noundef %66, ptr noundef %13)
%68 = icmp eq i32 %67, -1
br i1 %68, label %69, label %71
69: ; preds = %65
%70 = call i32 @exiterr(ptr noundef @.str.6)
br label %71
71: ; preds = %69, %65
%72 = getelementptr inbounds %struct.stat, ptr %13, i32 0, i32 1
%73 = load i32, ptr %72, align 4
%74 = call i32 @S_ISREG(i32 noundef %73)
%75 = icmp ne i32 %74, 0
br i1 %75, label %83, label %76
76: ; preds = %71
%77 = load i32, ptr @stderr, align 4
%78 = load ptr, ptr %5, align 8
%79 = getelementptr inbounds ptr, ptr %78, i64 1
%80 = load ptr, ptr %79, align 8
%81 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %77, ptr noundef @.str.7, ptr noundef %80)
%82 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %82, ptr %3, align 4
br label %237
83: ; preds = %71
%84 = getelementptr inbounds %struct.stat, ptr %13, i32 0, i32 0
%85 = load i32, ptr %84, align 4
%86 = icmp eq i32 %85, 0
br i1 %86, label %87, label %92
87: ; preds = %83
%88 = load i32, ptr %9, align 4
%89 = sdiv i32 %88, 1024
%90 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef 0, i32 noundef 0, double noundef 0.000000e+00, double noundef 0.000000e+00, i32 noundef %89)
%91 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %91, ptr %3, align 4
br label %237
92: ; preds = %83
%93 = getelementptr inbounds %struct.stat, ptr %13, i32 0, i32 0
%94 = load i32, ptr %93, align 4
%95 = load i32, ptr %9, align 4
%96 = add nsw i32 %94, %95
%97 = sub nsw i32 %96, 1
%98 = load i32, ptr %9, align 4
%99 = sdiv i32 %97, %98
store i32 %99, ptr %8, align 4
%100 = load i32, ptr %8, align 4
%101 = call ptr @calloc(i32 noundef 1, i32 noundef %100)
store ptr %101, ptr %15, align 8
%102 = load ptr, ptr %15, align 8
%103 = icmp ne ptr %102, null
br i1 %103, label %106, label %104
104: ; preds = %92
%105 = call i32 @exiterr(ptr noundef @.str.9)
br label %106
106: ; preds = %104, %92
%107 = getelementptr inbounds %struct.stat, ptr %13, i32 0, i32 0
%108 = load i32, ptr %107, align 4
%109 = load i32, ptr @PROT_NONE, align 4
%110 = load i32, ptr @MAP_SHARED, align 4
%111 = load i32, ptr %12, align 4
%112 = call ptr @mmap(ptr noundef null, i32 noundef %108, i32 noundef %109, i32 noundef %110, i32 noundef %111, i32 noundef 0)
store ptr %112, ptr %14, align 8
%113 = load ptr, ptr %14, align 8
%114 = load ptr, ptr @MAP_FAILED, align 8
%115 = icmp eq ptr %113, %114
br i1 %115, label %116, label %118
116: ; preds = %106
%117 = call i32 @exiterr(ptr noundef @.str.10)
br label %118
118: ; preds = %116, %106
%119 = load ptr, ptr %14, align 8
%120 = getelementptr inbounds %struct.stat, ptr %13, i32 0, i32 0
%121 = load i32, ptr %120, align 4
%122 = load ptr, ptr %15, align 8
%123 = call i32 @mincore(ptr noundef %119, i32 noundef %121, ptr noundef %122)
%124 = icmp eq i32 %123, -1
br i1 %124, label %125, label %127
125: ; preds = %118
%126 = call i32 @exiterr(ptr noundef @.str.11)
br label %127
127: ; preds = %125, %118
store i32 0, ptr %7, align 4
store i32 0, ptr %6, align 4
%128 = load i32, ptr %6, align 4
%129 = load i32, ptr %8, align 4
%130 = icmp slt i32 %128, %129
br i1 %130, label %.lr.ph, label %148
.lr.ph: ; preds = %127
br label %131
131: ; preds = %.lr.ph, %144
%132 = load ptr, ptr %15, align 8
%133 = load i32, ptr %6, align 4
%134 = add nsw i32 %133, 1
store i32 %134, ptr %6, align 4
%135 = sext i32 %133 to i64
%136 = getelementptr inbounds i8, ptr %132, i64 %135
%137 = load i8, ptr %136, align 1
%138 = zext i8 %137 to i32
%139 = and i32 %138, 1
%140 = icmp ne i32 %139, 0
br i1 %140, label %141, label %144
141: ; preds = %131
%142 = load i32, ptr %7, align 4
%143 = add nsw i32 %142, 1
store i32 %143, ptr %7, align 4
br label %144
144: ; preds = %141, %131
%145 = load i32, ptr %6, align 4
%146 = load i32, ptr %8, align 4
%147 = icmp slt i32 %145, %146
br i1 %147, label %131, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %144
br label %148
148: ; preds = %._crit_edge, %127
%149 = load i32, ptr %10, align 4
%150 = icmp ne i32 %149, 0
br i1 %150, label %151, label %159
151: ; preds = %148
%152 = load i32, ptr %7, align 4
%153 = load i32, ptr %6, align 4
%154 = icmp eq i32 %152, %153
br i1 %154, label %155, label %157
155: ; preds = %151
%156 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %156, ptr %3, align 4
br label %237
157: ; preds = %151
%158 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %158, ptr %3, align 4
br label %237
159: ; preds = %148
%160 = load i32, ptr %7, align 4
%161 = load i32, ptr %6, align 4
%162 = load i32, ptr %7, align 4
%163 = sitofp i32 %162 to double
%164 = fmul double 1.000000e+02, %163
%165 = load i32, ptr %6, align 4
%166 = sitofp i32 %165 to double
%167 = fdiv double %164, %166
%168 = getelementptr inbounds %struct.stat, ptr %13, i32 0, i32 0
%169 = load i32, ptr %168, align 4
%170 = sitofp i32 %169 to double
%171 = fmul double 1.000000e+00, %170
%172 = fdiv double %171, 1.024000e+03
%173 = load i32, ptr %9, align 4
%174 = sdiv i32 %173, 1024
%175 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %160, i32 noundef %161, double noundef %167, double noundef %172, i32 noundef %174)
%176 = load i32, ptr %11, align 4
%177 = icmp ne i32 %176, 0
br i1 %177, label %178, label %230
178: ; preds = %159
%179 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
store i32 0, ptr %6, align 4
%180 = load i32, ptr %6, align 4
%181 = load i32, ptr %8, align 4
%182 = sub nsw i32 %181, 1
%183 = sdiv i32 %182, 32
%184 = icmp sle i32 %180, %183
br i1 %184, label %.lr.ph4, label %229
.lr.ph4: ; preds = %178
br label %185
185: ; preds = %.lr.ph4, %221
%186 = load i32, ptr %6, align 4
%187 = mul nsw i32 %186, 32
%188 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %187)
store i32 0, ptr %7, align 4
%189 = load i32, ptr %7, align 4
%190 = icmp slt i32 %189, 32
br i1 %190, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %185
br label %191
191: ; preds = %.lr.ph2, %214
%192 = load i32, ptr %6, align 4
%193 = mul nsw i32 %192, 32
%194 = load i32, ptr %7, align 4
%195 = add nsw i32 %193, %194
%196 = load i32, ptr %8, align 4
%197 = icmp eq i32 %195, %196
br i1 %197, label %198, label %199
198: ; preds = %191
br label %219
199: ; preds = %191
%200 = load ptr, ptr %15, align 8
%201 = load i32, ptr %6, align 4
%202 = mul nsw i32 %201, 32
%203 = load i32, ptr %7, align 4
%204 = add nsw i32 %202, %203
%205 = sext i32 %204 to i64
%206 = getelementptr inbounds i8, ptr %200, i64 %205
%207 = load i8, ptr %206, align 1
%208 = zext i8 %207 to i32
%209 = and i32 %208, 1
%210 = icmp ne i32 %209, 0
%211 = zext i1 %210 to i64
%212 = select i1 %210, i32 120, i32 32
%213 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %212)
br label %214
214: ; preds = %199
%215 = load i32, ptr %7, align 4
%216 = add nsw i32 %215, 1
store i32 %216, ptr %7, align 4
%217 = load i32, ptr %7, align 4
%218 = icmp slt i32 %217, 32
br i1 %218, label %191, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %214
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %185
br label %219
219: ; preds = %.loopexit, %198
%220 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
br label %221
221: ; preds = %219
%222 = load i32, ptr %6, align 4
%223 = add nsw i32 %222, 1
store i32 %223, ptr %6, align 4
%224 = load i32, ptr %6, align 4
%225 = load i32, ptr %8, align 4
%226 = sub nsw i32 %225, 1
%227 = sdiv i32 %226, 32
%228 = icmp sle i32 %224, %227
br i1 %228, label %185, label %._crit_edge5, !llvm.loop !9
._crit_edge5: ; preds = %221
br label %229
229: ; preds = %._crit_edge5, %178
br label %230
230: ; preds = %229, %159
%231 = load ptr, ptr %14, align 8
%232 = getelementptr inbounds %struct.stat, ptr %13, i32 0, i32 0
%233 = load i32, ptr %232, align 4
%234 = sitofp i32 %233 to double
%235 = call i32 @munmap(ptr noundef %231, double noundef %234)
%236 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %236, ptr %3, align 4
br label %237
237: ; preds = %230, %157, %155, %87, %76
%238 = load i32, ptr %3, align 4
ret i32 %238
}
declare i32 @getpagesize(...) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @exiterr(ptr noundef) #1
declare i32 @fstat(i32 noundef, ptr noundef) #1
declare i32 @S_ISREG(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @calloc(i32 noundef, i32 noundef) #1
declare ptr @mmap(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mincore(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @munmap(ptr noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpk2omjdcg.c'
source_filename = "/tmp/tmpk2omjdcg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"unexpected end of file\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Ieof() #0 {
%1 = call i32 @fatserror(ptr noundef @.str)
ret void
}
declare i32 @fatserror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk2omjdcg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"unexpected end of file\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Ieof() #0 {
%1 = call i32 @fatserror(ptr noundef @.str)
ret void
}
declare i32 @fatserror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpasda6pvp.c'
source_filename = "/tmp/tmpasda6pvp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@request_error.err = internal global [100 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [13 x i8] c"Memory error\00", align 1
@.str.1 = private unnamed_addr constant [45 x i8] c"Service not found on this nterfaced instance\00", align 1
@.str.2 = private unnamed_addr constant [35 x i8] c"Transport handler rejected request\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"Transport handler closed connection\00", align 1
@.str.4 = private unnamed_addr constant [49 x i8] c"Transport module not yet loaded for this service\00", align 1
@.str.5 = private unnamed_addr constant [34 x i8] c"Command not found on this service\00", align 1
@.str.6 = private unnamed_addr constant [43 x i8] c"Wrong number of arguments for this command\00", align 1
@.str.7 = private unnamed_addr constant [28 x i8] c"Too many arguments supplied\00", align 1
@.str.8 = private unnamed_addr constant [45 x i8] c"Service not found on this nterfacer instance\00", align 1
@.str.9 = private unnamed_addr constant [29 x i8] c"Unable to find error message\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @request_error(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i8 0, ptr @request_error.err, align 16
%3 = load i32, ptr %2, align 4
switch i32 %3, label %22 [
i32 1, label %4
i32 4, label %6
i32 3, label %8
i32 5, label %10
i32 6, label %12
i32 7, label %14
i32 8, label %16
i32 9, label %18
i32 10, label %20
]
4: ; preds = %1
%5 = call i32 @strncpy(ptr noundef @request_error.err, ptr noundef @.str, i32 noundef 99)
br label %24
6: ; preds = %1
%7 = call i32 @strncpy(ptr noundef @request_error.err, ptr noundef @.str.1, i32 noundef 99)
br label %24
8: ; preds = %1
%9 = call i32 @strncpy(ptr noundef @request_error.err, ptr noundef @.str.2, i32 noundef 99)
br label %24
10: ; preds = %1
%11 = call i32 @strncpy(ptr noundef @request_error.err, ptr noundef @.str.3, i32 noundef 99)
br label %24
12: ; preds = %1
%13 = call i32 @strncpy(ptr noundef @request_error.err, ptr noundef @.str.4, i32 noundef 99)
br label %24
14: ; preds = %1
%15 = call i32 @strncpy(ptr noundef @request_error.err, ptr noundef @.str.5, i32 noundef 99)
br label %24
16: ; preds = %1
%17 = call i32 @strncpy(ptr noundef @request_error.err, ptr noundef @.str.6, i32 noundef 99)
br label %24
18: ; preds = %1
%19 = call i32 @strncpy(ptr noundef @request_error.err, ptr noundef @.str.7, i32 noundef 99)
br label %24
20: ; preds = %1
%21 = call i32 @strncpy(ptr noundef @request_error.err, ptr noundef @.str.8, i32 noundef 99)
br label %24
22: ; preds = %1
%23 = call i32 @strncpy(ptr noundef @request_error.err, ptr noundef @.str.9, i32 noundef 99)
br label %24
24: ; preds = %22, %20, %18, %16, %14, %12, %10, %8, %6, %4
store i8 0, ptr getelementptr inbounds ([100 x i8], ptr @request_error.err, i64 0, i64 99), align 1
ret ptr @request_error.err
}
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpasda6pvp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@request_error.err = internal global [100 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [13 x i8] c"Memory error\00", align 1
@.str.1 = private unnamed_addr constant [45 x i8] c"Service not found on this nterfaced instance\00", align 1
@.str.2 = private unnamed_addr constant [35 x i8] c"Transport handler rejected request\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"Transport handler closed connection\00", align 1
@.str.4 = private unnamed_addr constant [49 x i8] c"Transport module not yet loaded for this service\00", align 1
@.str.5 = private unnamed_addr constant [34 x i8] c"Command not found on this service\00", align 1
@.str.6 = private unnamed_addr constant [43 x i8] c"Wrong number of arguments for this command\00", align 1
@.str.7 = private unnamed_addr constant [28 x i8] c"Too many arguments supplied\00", align 1
@.str.8 = private unnamed_addr constant [45 x i8] c"Service not found on this nterfacer instance\00", align 1
@.str.9 = private unnamed_addr constant [29 x i8] c"Unable to find error message\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @request_error(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i8 0, ptr @request_error.err, align 16
%3 = load i32, ptr %2, align 4
switch i32 %3, label %22 [
i32 1, label %4
i32 4, label %6
i32 3, label %8
i32 5, label %10
i32 6, label %12
i32 7, label %14
i32 8, label %16
i32 9, label %18
i32 10, label %20
]
4: ; preds = %1
%5 = call i32 @strncpy(ptr noundef @request_error.err, ptr noundef @.str, i32 noundef 99)
br label %24
6: ; preds = %1
%7 = call i32 @strncpy(ptr noundef @request_error.err, ptr noundef @.str.1, i32 noundef 99)
br label %24
8: ; preds = %1
%9 = call i32 @strncpy(ptr noundef @request_error.err, ptr noundef @.str.2, i32 noundef 99)
br label %24
10: ; preds = %1
%11 = call i32 @strncpy(ptr noundef @request_error.err, ptr noundef @.str.3, i32 noundef 99)
br label %24
12: ; preds = %1
%13 = call i32 @strncpy(ptr noundef @request_error.err, ptr noundef @.str.4, i32 noundef 99)
br label %24
14: ; preds = %1
%15 = call i32 @strncpy(ptr noundef @request_error.err, ptr noundef @.str.5, i32 noundef 99)
br label %24
16: ; preds = %1
%17 = call i32 @strncpy(ptr noundef @request_error.err, ptr noundef @.str.6, i32 noundef 99)
br label %24
18: ; preds = %1
%19 = call i32 @strncpy(ptr noundef @request_error.err, ptr noundef @.str.7, i32 noundef 99)
br label %24
20: ; preds = %1
%21 = call i32 @strncpy(ptr noundef @request_error.err, ptr noundef @.str.8, i32 noundef 99)
br label %24
22: ; preds = %1
%23 = call i32 @strncpy(ptr noundef @request_error.err, ptr noundef @.str.9, i32 noundef 99)
br label %24
24: ; preds = %22, %20, %18, %16, %14, %12, %10, %8, %6, %4
store i8 0, ptr getelementptr inbounds ([100 x i8], ptr @request_error.err, i64 0, i64 99), align 1
ret ptr @request_error.err
}
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"}
|
; ModuleID = '/tmp/tmps0r077zt.c'
source_filename = "/tmp/tmps0r077zt.c"
target datalayout = "e-m:e-p270: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__, i32, i32 }
%struct.TYPE_2__ = type { i64 }
@.str = private unnamed_addr constant [18 x i8] c"Usage: %s ip port\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"This is a UDP client\0A\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [7 x i8] c"socket\00", align 1
@INADDR_NONE = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [22 x i8] c"Incorrect ip address!\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"sendto\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"received:\00", align 1
@.str.6 = private unnamed_addr constant [15 x i8] c"server closed\0A\00", align 1
@.str.7 = private unnamed_addr constant [9 x i8] c"recvfrom\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 %struct.sockaddr_in, align 8
%7 = alloca i32, align 4
%8 = alloca [512 x i8], align 16
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 3
br i1 %12, label %13, label %19
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %16)
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
19: ; preds = %2
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%21 = load i32, ptr @AF_INET, align 4
%22 = load i32, ptr @SOCK_DGRAM, align 4
%23 = call i32 @socket(i32 noundef %21, i32 noundef %22, i32 noundef 0)
store i32 %23, ptr %7, align 4
%24 = icmp slt i32 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %19
%26 = call i32 @perror(ptr noundef @.str.2)
%27 = call i32 @exit(i32 noundef 1) #3
unreachable
28: ; preds = %19
%29 = load i32, ptr @AF_INET, align 4
%30 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 2
store i32 %29, ptr %30, align 4
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 2
%33 = load ptr, ptr %32, align 8
%34 = call i32 @atoi(ptr noundef %33)
%35 = call i32 @htons(i32 noundef %34)
%36 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 1
store i32 %35, ptr %36, align 8
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds ptr, ptr %37, i64 1
%39 = load ptr, ptr %38, align 8
%40 = call i64 @inet_addr(ptr noundef %39)
%41 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 0
%42 = getelementptr inbounds %struct.TYPE_2__, ptr %41, i32 0, i32 0
store i64 %40, ptr %42, align 8
%43 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 0
%44 = getelementptr inbounds %struct.TYPE_2__, ptr %43, i32 0, i32 0
%45 = load i64, ptr %44, align 8
%46 = load i64, ptr @INADDR_NONE, align 8
%47 = icmp eq i64 %45, %46
br i1 %47, label %48, label %53
48: ; preds = %28
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%50 = load i32, ptr %7, align 4
%51 = call i32 @close(i32 noundef %50)
%52 = call i32 @exit(i32 noundef 1) #3
unreachable
53: ; preds = %28
store i32 16, ptr %9, align 4
br label %54
54: ; preds = %53, %97
%55 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
%56 = call i32 @gets(ptr noundef %55)
%57 = load i32, ptr %7, align 4
%58 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
%59 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
%60 = call i32 @strlen(ptr noundef %59)
%61 = call i32 @sendto(i32 noundef %57, ptr noundef %58, i32 noundef %60, i32 noundef 0, ptr noundef %6, i32 noundef 16)
store i32 %61, ptr %10, align 4
%62 = load i32, ptr %10, align 4
%63 = icmp slt i32 %62, 0
br i1 %63, label %64, label %68
64: ; preds = %54
%65 = call i32 @perror(ptr noundef @.str.4)
%66 = load i32, ptr %7, align 4
%67 = call i32 @close(i32 noundef %66)
br label %98
68: ; preds = %54
%69 = load i32, ptr %7, align 4
%70 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
%71 = call i32 @recvfrom(i32 noundef %69, ptr noundef %70, i32 noundef 512, i32 noundef 0, ptr noundef %6, ptr noundef %9)
store i32 %71, ptr %10, align 4
%72 = load i32, ptr %10, align 4
%73 = icmp sgt i32 %72, 0
br i1 %73, label %74, label %81
74: ; preds = %68
%75 = load i32, ptr %10, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 %76
store i8 0, ptr %77, align 1
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%79 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
%80 = call i32 @puts(ptr noundef %79)
br label %97
81: ; preds = %68
%82 = load i32, ptr %10, align 4
%83 = icmp eq i32 %82, 0
br i1 %83, label %84, label %88
84: ; preds = %81
%85 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%86 = load i32, ptr %7, align 4
%87 = call i32 @close(i32 noundef %86)
br label %98
88: ; preds = %81
%89 = load i32, ptr %10, align 4
%90 = icmp eq i32 %89, -1
br i1 %90, label %91, label %95
91: ; preds = %88
%92 = call i32 @perror(ptr noundef @.str.7)
%93 = load i32, ptr %7, align 4
%94 = call i32 @close(i32 noundef %93)
br label %98
95: ; preds = %88
br label %96
96: ; preds = %95
br label %97
97: ; preds = %96, %74
br label %54
98: ; preds = %91, %84, %64
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i64 @inet_addr(ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @gets(ptr noundef) #1
declare i32 @sendto(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @recvfrom(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmps0r077zt.c"
target datalayout = "e-m:e-p270: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__, i32, i32 }
%struct.TYPE_2__ = type { i64 }
@.str = private unnamed_addr constant [18 x i8] c"Usage: %s ip port\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"This is a UDP client\0A\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [7 x i8] c"socket\00", align 1
@INADDR_NONE = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [22 x i8] c"Incorrect ip address!\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"sendto\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"received:\00", align 1
@.str.6 = private unnamed_addr constant [15 x i8] c"server closed\0A\00", align 1
@.str.7 = private unnamed_addr constant [9 x i8] c"recvfrom\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 %struct.sockaddr_in, align 8
%7 = alloca i32, align 4
%8 = alloca [512 x i8], align 16
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 3
br i1 %12, label %13, label %19
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %16)
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
19: ; preds = %2
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%21 = load i32, ptr @AF_INET, align 4
%22 = load i32, ptr @SOCK_DGRAM, align 4
%23 = call i32 @socket(i32 noundef %21, i32 noundef %22, i32 noundef 0)
store i32 %23, ptr %7, align 4
%24 = icmp slt i32 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %19
%26 = call i32 @perror(ptr noundef @.str.2)
%27 = call i32 @exit(i32 noundef 1) #3
unreachable
28: ; preds = %19
%29 = load i32, ptr @AF_INET, align 4
%30 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 2
store i32 %29, ptr %30, align 4
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 2
%33 = load ptr, ptr %32, align 8
%34 = call i32 @atoi(ptr noundef %33)
%35 = call i32 @htons(i32 noundef %34)
%36 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 1
store i32 %35, ptr %36, align 8
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds ptr, ptr %37, i64 1
%39 = load ptr, ptr %38, align 8
%40 = call i64 @inet_addr(ptr noundef %39)
%41 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 0
%42 = getelementptr inbounds %struct.TYPE_2__, ptr %41, i32 0, i32 0
store i64 %40, ptr %42, align 8
%43 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 0
%44 = getelementptr inbounds %struct.TYPE_2__, ptr %43, i32 0, i32 0
%45 = load i64, ptr %44, align 8
%46 = load i64, ptr @INADDR_NONE, align 8
%47 = icmp eq i64 %45, %46
br i1 %47, label %48, label %53
48: ; preds = %28
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%50 = load i32, ptr %7, align 4
%51 = call i32 @close(i32 noundef %50)
%52 = call i32 @exit(i32 noundef 1) #3
unreachable
53: ; preds = %28
store i32 16, ptr %9, align 4
%54 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
%55 = call i32 @gets(ptr noundef %54)
%56 = load i32, ptr %7, align 4
%57 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
%58 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
%59 = call i32 @strlen(ptr noundef %58)
%60 = call i32 @sendto(i32 noundef %56, ptr noundef %57, i32 noundef %59, i32 noundef 0, ptr noundef %6, i32 noundef 16)
store i32 %60, ptr %10, align 4
%61 = load i32, ptr %10, align 4
%62 = icmp slt i32 %61, 0
br i1 %62, label %63, label %.lr.ph
.lr.ph: ; preds = %53
br label %67
._crit_edge: ; preds = %96
br label %63
63: ; preds = %._crit_edge, %53
%64 = call i32 @perror(ptr noundef @.str.4)
%65 = load i32, ptr %7, align 4
%66 = call i32 @close(i32 noundef %65)
br label %103
67: ; preds = %.lr.ph, %96
%68 = load i32, ptr %7, align 4
%69 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
%70 = call i32 @recvfrom(i32 noundef %68, ptr noundef %69, i32 noundef 512, i32 noundef 0, ptr noundef %6, ptr noundef %9)
store i32 %70, ptr %10, align 4
%71 = load i32, ptr %10, align 4
%72 = icmp sgt i32 %71, 0
br i1 %72, label %73, label %80
73: ; preds = %67
%74 = load i32, ptr %10, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 %75
store i8 0, ptr %76, align 1
%77 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%78 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
%79 = call i32 @puts(ptr noundef %78)
br label %96
80: ; preds = %67
%81 = load i32, ptr %10, align 4
%82 = icmp eq i32 %81, 0
br i1 %82, label %83, label %87
83: ; preds = %80
%84 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%85 = load i32, ptr %7, align 4
%86 = call i32 @close(i32 noundef %85)
br label %103
87: ; preds = %80
%88 = load i32, ptr %10, align 4
%89 = icmp eq i32 %88, -1
br i1 %89, label %90, label %94
90: ; preds = %87
%91 = call i32 @perror(ptr noundef @.str.7)
%92 = load i32, ptr %7, align 4
%93 = call i32 @close(i32 noundef %92)
br label %103
94: ; preds = %87
br label %95
95: ; preds = %94
br label %96
96: ; preds = %95, %73
%97 = call i32 @gets(ptr noundef %54)
%98 = load i32, ptr %7, align 4
%99 = call i32 @strlen(ptr noundef %58)
%100 = call i32 @sendto(i32 noundef %98, ptr noundef %57, i32 noundef %99, i32 noundef 0, ptr noundef %6, i32 noundef 16)
store i32 %100, ptr %10, align 4
%101 = load i32, ptr %10, align 4
%102 = icmp slt i32 %101, 0
br i1 %102, label %._crit_edge, label %67
103: ; preds = %90, %83, %63
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i64 @inet_addr(ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @gets(ptr noundef) #1
declare i32 @sendto(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @recvfrom(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmp2rkwv566.c'
source_filename = "/tmp/tmp2rkwv566.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 ptr, align 8
store ptr null, ptr %1, align 8
%2 = load ptr, ptr %1, align 8
%3 = call ptr @push(ptr noundef %2, i32 noundef 5)
store ptr %3, ptr %1, align 8
%4 = load ptr, ptr %1, align 8
%5 = call ptr @push(ptr noundef %4, i32 noundef 6)
store ptr %5, ptr %1, align 8
%6 = load ptr, ptr %1, align 8
%7 = call ptr @push(ptr noundef %6, i32 noundef 7)
store ptr %7, ptr %1, align 8
%8 = load ptr, ptr %1, align 8
%9 = call ptr @push(ptr noundef %8, i32 noundef 8)
store ptr %9, ptr %1, align 8
%10 = load ptr, ptr %1, align 8
%11 = call i32 @printer(ptr noundef %10)
ret i32 0
}
declare ptr @push(ptr noundef, i32 noundef) #1
declare i32 @printer(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2rkwv566.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 ptr, align 8
store ptr null, ptr %1, align 8
%2 = load ptr, ptr %1, align 8
%3 = call ptr @push(ptr noundef %2, i32 noundef 5)
store ptr %3, ptr %1, align 8
%4 = load ptr, ptr %1, align 8
%5 = call ptr @push(ptr noundef %4, i32 noundef 6)
store ptr %5, ptr %1, align 8
%6 = load ptr, ptr %1, align 8
%7 = call ptr @push(ptr noundef %6, i32 noundef 7)
store ptr %7, ptr %1, align 8
%8 = load ptr, ptr %1, align 8
%9 = call ptr @push(ptr noundef %8, i32 noundef 8)
store ptr %9, ptr %1, align 8
%10 = load ptr, ptr %1, align 8
%11 = call i32 @printer(ptr noundef %10)
ret i32 0
}
declare ptr @push(ptr noundef, i32 noundef) #1
declare i32 @printer(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp94dhe0jl.c'
source_filename = "/tmp/tmp94dhe0jl.c"
target datalayout = "e-m:e-p270: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/tmp94dhe0jl.c"
target datalayout = "e-m:e-p270: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/tmpdt0y67in.c'
source_filename = "/tmp/tmpdt0y67in.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [18 x i8] c"%d factorial: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = call i32 @factorial(i32 noundef %5)
%7 = call i32 @printf(ptr noundef @.str.1, i32 noundef %4, i32 noundef %6)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 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/tmpdt0y67in.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [18 x i8] c"%d factorial: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = call i32 @factorial(i32 noundef %5)
%7 = call i32 @printf(ptr noundef @.str.1, i32 noundef %4, i32 noundef %6)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 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/tmp1pmyln17.c'
source_filename = "/tmp/tmp1pmyln17.c"
target datalayout = "e-m:e-p270: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/tmp1pmyln17.c"
target datalayout = "e-m:e-p270: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/tmp9r1j1s8s.c'
source_filename = "/tmp/tmp9r1j1s8s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @create_dct_matrix(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %5
5: ; preds = %82, %1
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 16
br i1 %7, label %8, label %85
8: ; preds = %5
store i32 0, ptr %4, align 4
br label %9
9: ; preds = %78, %8
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 32
br i1 %11, label %12, label %81
12: ; preds = %9
%13 = load i32, ptr %3, align 4
%14 = mul nsw i32 2, %13
%15 = add nsw i32 %14, 1
%16 = load i32, ptr %4, align 4
%17 = mul nsw i32 %15, %16
%18 = sitofp i32 %17 to double
%19 = fmul double %18, 0x400921FB54442D11
%20 = fdiv double %19, 6.400000e+01
%21 = call i32 @cos(double noundef %20)
%22 = sitofp i32 %21 to double
%23 = fmul double 1.000000e+09, %22
%24 = load ptr, ptr %2, align 8
%25 = load i32, ptr %3, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [32 x double], ptr %24, i64 %26
%28 = load i32, ptr %4, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [32 x double], ptr %27, i64 0, i64 %29
store double %23, ptr %30, align 8
%31 = fcmp oge double %23, 0.000000e+00
br i1 %31, label %32, label %50
32: ; preds = %12
%33 = load ptr, ptr %2, align 8
%34 = load i32, ptr %3, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [32 x double], ptr %33, i64 %35
%37 = load i32, ptr %4, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [32 x double], ptr %36, i64 0, i64 %38
%40 = load double, ptr %39, align 8
%41 = fadd double %40, 5.000000e-01
%42 = load ptr, ptr %2, align 8
%43 = load i32, ptr %3, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [32 x double], ptr %42, i64 %44
%46 = load i32, ptr %4, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [32 x double], ptr %45, i64 0, i64 %47
%49 = call i32 @modf(double noundef %41, ptr noundef %48)
br label %68
50: ; preds = %12
%51 = load ptr, ptr %2, align 8
%52 = load i32, ptr %3, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [32 x double], ptr %51, i64 %53
%55 = load i32, ptr %4, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [32 x double], ptr %54, i64 0, i64 %56
%58 = load double, ptr %57, align 8
%59 = fsub double %58, 5.000000e-01
%60 = load ptr, ptr %2, align 8
%61 = load i32, ptr %3, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [32 x double], ptr %60, i64 %62
%64 = load i32, ptr %4, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [32 x double], ptr %63, i64 0, i64 %65
%67 = call i32 @modf(double noundef %59, ptr noundef %66)
br label %68
68: ; preds = %50, %32
%69 = load ptr, ptr %2, align 8
%70 = load i32, ptr %3, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [32 x double], ptr %69, i64 %71
%73 = load i32, ptr %4, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [32 x double], ptr %72, i64 0, i64 %74
%76 = load double, ptr %75, align 8
%77 = fmul double %76, 1.000000e-09
store double %77, ptr %75, align 8
br label %78
78: ; preds = %68
%79 = load i32, ptr %4, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %4, align 4
br label %9, !llvm.loop !6
81: ; preds = %9
br label %82
82: ; preds = %81
%83 = load i32, ptr %3, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %3, align 4
br label %5, !llvm.loop !8
85: ; preds = %5
ret void
}
declare i32 @cos(double noundef) #1
declare i32 @modf(double noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9r1j1s8s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @create_dct_matrix(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, 16
br i1 %6, label %.lr.ph2, label %87
.lr.ph2: ; preds = %1
br label %7
7: ; preds = %.lr.ph2, %82
store i32 0, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 32
br i1 %9, label %.lr.ph, label %81
.lr.ph: ; preds = %7
br label %10
10: ; preds = %.lr.ph, %76
%11 = load i32, ptr %3, align 4
%12 = mul nsw i32 2, %11
%13 = add nsw i32 %12, 1
%14 = load i32, ptr %4, align 4
%15 = mul nsw i32 %13, %14
%16 = sitofp i32 %15 to double
%17 = fmul double %16, 0x400921FB54442D11
%18 = fdiv double %17, 6.400000e+01
%19 = call i32 @cos(double noundef %18)
%20 = sitofp i32 %19 to double
%21 = fmul double 1.000000e+09, %20
%22 = load ptr, ptr %2, align 8
%23 = load i32, ptr %3, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [32 x double], ptr %22, i64 %24
%26 = load i32, ptr %4, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [32 x double], ptr %25, i64 0, i64 %27
store double %21, ptr %28, align 8
%29 = fcmp oge double %21, 0.000000e+00
br i1 %29, label %30, label %48
30: ; preds = %10
%31 = load ptr, ptr %2, align 8
%32 = load i32, ptr %3, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [32 x double], ptr %31, i64 %33
%35 = load i32, ptr %4, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [32 x double], ptr %34, i64 0, i64 %36
%38 = load double, ptr %37, align 8
%39 = fadd double %38, 5.000000e-01
%40 = load ptr, ptr %2, align 8
%41 = load i32, ptr %3, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [32 x double], ptr %40, i64 %42
%44 = load i32, ptr %4, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [32 x double], ptr %43, i64 0, i64 %45
%47 = call i32 @modf(double noundef %39, ptr noundef %46)
br label %66
48: ; preds = %10
%49 = load ptr, ptr %2, align 8
%50 = load i32, ptr %3, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [32 x double], ptr %49, i64 %51
%53 = load i32, ptr %4, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [32 x double], ptr %52, i64 0, i64 %54
%56 = load double, ptr %55, align 8
%57 = fsub double %56, 5.000000e-01
%58 = load ptr, ptr %2, align 8
%59 = load i32, ptr %3, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [32 x double], ptr %58, i64 %60
%62 = load i32, ptr %4, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [32 x double], ptr %61, i64 0, i64 %63
%65 = call i32 @modf(double noundef %57, ptr noundef %64)
br label %66
66: ; preds = %48, %30
%67 = load ptr, ptr %2, align 8
%68 = load i32, ptr %3, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [32 x double], ptr %67, i64 %69
%71 = load i32, ptr %4, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [32 x double], ptr %70, i64 0, i64 %72
%74 = load double, ptr %73, align 8
%75 = fmul double %74, 1.000000e-09
store double %75, ptr %73, align 8
br label %76
76: ; preds = %66
%77 = load i32, ptr %4, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %4, align 4
%79 = load i32, ptr %4, align 4
%80 = icmp slt i32 %79, 32
br i1 %80, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %76
br label %81
81: ; preds = %._crit_edge, %7
br label %82
82: ; preds = %81
%83 = load i32, ptr %3, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %3, align 4
%85 = load i32, ptr %3, align 4
%86 = icmp slt i32 %85, 16
br i1 %86, label %7, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %82
br label %87
87: ; preds = %._crit_edge3, %1
ret void
}
declare i32 @cos(double noundef) #1
declare i32 @modf(double noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp48tc4_xx.c'
source_filename = "/tmp/tmp48tc4_xx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f5() #0 {
%1 = alloca [4608 x i8], align 16
%2 = getelementptr inbounds [4608 x i8], ptr %1, i64 0, i64 0
%3 = call i32 @foo(ptr noundef %2)
ret void
}
declare i32 @foo(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp48tc4_xx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f5() #0 {
%1 = alloca [4608 x i8], align 16
%2 = getelementptr inbounds [4608 x i8], ptr %1, i64 0, i64 0
%3 = call i32 @foo(ptr noundef %2)
ret void
}
declare i32 @foo(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6x1e_i1y.c'
source_filename = "/tmp/tmp6x1e_i1y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"The first time:\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"%d %d %d\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"The second time:\0A\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 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 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1, ptr noundef %2, ptr noundef %3)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%10 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %4, ptr noundef %5, ptr noundef %6)
%11 = load i32, ptr %1, align 4
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %3, align 4
%14 = call i32 @clock(i32 noundef %11, i32 noundef %12, i32 noundef %13)
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %6, align 4
%18 = call i32 @clock(i32 noundef %15, i32 noundef %16, i32 noundef %17)
%19 = sub nsw i32 %14, %18
%20 = icmp sgt i32 %19, 0
br i1 %20, label %21, label %31
21: ; preds = %0
%22 = load i32, ptr %1, align 4
%23 = load i32, ptr %2, align 4
%24 = load i32, ptr %3, align 4
%25 = call i32 @clock(i32 noundef %22, i32 noundef %23, i32 noundef %24)
%26 = load i32, ptr %4, align 4
%27 = load i32, ptr %5, align 4
%28 = load i32, ptr %6, align 4
%29 = call i32 @clock(i32 noundef %26, i32 noundef %27, i32 noundef %28)
%30 = sub nsw i32 %25, %29
br label %41
31: ; preds = %0
%32 = load i32, ptr %4, align 4
%33 = load i32, ptr %5, align 4
%34 = load i32, ptr %6, align 4
%35 = call i32 @clock(i32 noundef %32, i32 noundef %33, i32 noundef %34)
%36 = load i32, ptr %1, align 4
%37 = load i32, ptr %2, align 4
%38 = load i32, ptr %3, align 4
%39 = call i32 @clock(i32 noundef %36, i32 noundef %37, i32 noundef %38)
%40 = sub nsw i32 %35, %39
br label %41
41: ; preds = %31, %21
%42 = phi i32 [ %30, %21 ], [ %40, %31 ]
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %42)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @clock(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/tmp6x1e_i1y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"The first time:\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"%d %d %d\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"The second time:\0A\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 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 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1, ptr noundef %2, ptr noundef %3)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%10 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %4, ptr noundef %5, ptr noundef %6)
%11 = load i32, ptr %1, align 4
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %3, align 4
%14 = call i32 @clock(i32 noundef %11, i32 noundef %12, i32 noundef %13)
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %6, align 4
%18 = call i32 @clock(i32 noundef %15, i32 noundef %16, i32 noundef %17)
%19 = sub nsw i32 %14, %18
%20 = icmp sgt i32 %19, 0
br i1 %20, label %21, label %31
21: ; preds = %0
%22 = load i32, ptr %1, align 4
%23 = load i32, ptr %2, align 4
%24 = load i32, ptr %3, align 4
%25 = call i32 @clock(i32 noundef %22, i32 noundef %23, i32 noundef %24)
%26 = load i32, ptr %4, align 4
%27 = load i32, ptr %5, align 4
%28 = load i32, ptr %6, align 4
%29 = call i32 @clock(i32 noundef %26, i32 noundef %27, i32 noundef %28)
%30 = sub nsw i32 %25, %29
br label %41
31: ; preds = %0
%32 = load i32, ptr %4, align 4
%33 = load i32, ptr %5, align 4
%34 = load i32, ptr %6, align 4
%35 = call i32 @clock(i32 noundef %32, i32 noundef %33, i32 noundef %34)
%36 = load i32, ptr %1, align 4
%37 = load i32, ptr %2, align 4
%38 = load i32, ptr %3, align 4
%39 = call i32 @clock(i32 noundef %36, i32 noundef %37, i32 noundef %38)
%40 = sub nsw i32 %35, %39
br label %41
41: ; preds = %31, %21
%42 = phi i32 [ %30, %21 ], [ %40, %31 ]
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %42)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @clock(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/tmp7rguhfag.c'
source_filename = "/tmp/tmp7rguhfag.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @seq_ctrl_toggle_song_mode() #0 {
%1 = call i64 (...) @seq_ctrl_get_song_mode()
%2 = icmp ne i64 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = call i32 @seq_ctrl_set_song_mode(i32 noundef 0)
br label %7
5: ; preds = %0
%6 = call i32 @seq_ctrl_set_song_mode(i32 noundef 1)
br label %7
7: ; preds = %5, %3
ret void
}
declare i64 @seq_ctrl_get_song_mode(...) #1
declare i32 @seq_ctrl_set_song_mode(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/tmp7rguhfag.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @seq_ctrl_toggle_song_mode() #0 {
%1 = call i64 (...) @seq_ctrl_get_song_mode()
%2 = icmp ne i64 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = call i32 @seq_ctrl_set_song_mode(i32 noundef 0)
br label %7
5: ; preds = %0
%6 = call i32 @seq_ctrl_set_song_mode(i32 noundef 1)
br label %7
7: ; preds = %5, %3
ret void
}
declare i64 @seq_ctrl_get_song_mode(...) #1
declare i32 @seq_ctrl_set_song_mode(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/tmptnbfv709.c'
source_filename = "/tmp/tmptnbfv709.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"P5\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"255\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pgmWrite(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
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
%10 = load ptr, ptr %5, align 8
%11 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef @.str)
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %8, align 4
%15 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef @.str.1, i32 noundef %13, i32 noundef %14)
%16 = load ptr, ptr %5, align 8
%17 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef @.str.2)
store i32 0, ptr %9, align 4
br label %18
18: ; preds = %31, %4
%19 = load i32, ptr %9, align 4
%20 = load i32, ptr %8, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %34
22: ; preds = %18
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %7, align 4
%25 = load ptr, ptr %5, align 8
%26 = call i32 @fwrite(ptr noundef %23, i32 noundef %24, i32 noundef 1, ptr noundef %25)
%27 = load i32, ptr %7, align 4
%28 = load ptr, ptr %6, align 8
%29 = sext i32 %27 to i64
%30 = getelementptr inbounds i8, ptr %28, i64 %29
store ptr %30, ptr %6, align 8
br label %31
31: ; preds = %22
%32 = load i32, ptr %9, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %9, align 4
br label %18, !llvm.loop !6
34: ; preds = %18
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptnbfv709.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"P5\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"255\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pgmWrite(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
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
%10 = load ptr, ptr %5, align 8
%11 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef @.str)
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %8, align 4
%15 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef @.str.1, i32 noundef %13, i32 noundef %14)
%16 = load ptr, ptr %5, align 8
%17 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef @.str.2)
store i32 0, ptr %9, align 4
%18 = load i32, ptr %9, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %.lr.ph, label %36
.lr.ph: ; preds = %4
br label %21
21: ; preds = %.lr.ph, %30
%22 = load ptr, ptr %6, align 8
%23 = load i32, ptr %7, align 4
%24 = load ptr, ptr %5, align 8
%25 = call i32 @fwrite(ptr noundef %22, i32 noundef %23, i32 noundef 1, ptr noundef %24)
%26 = load i32, ptr %7, align 4
%27 = load ptr, ptr %6, align 8
%28 = sext i32 %26 to i64
%29 = getelementptr inbounds i8, ptr %27, i64 %28
store ptr %29, ptr %6, align 8
br label %30
30: ; preds = %21
%31 = load i32, ptr %9, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %9, align 4
%33 = load i32, ptr %9, align 4
%34 = load i32, ptr %8, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %36
36: ; preds = %._crit_edge, %4
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpt15ubzrb.c'
source_filename = "/tmp/tmpt15ubzrb.c"
target datalayout = "e-m:e-p270: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/tmpt15ubzrb.c"
target datalayout = "e-m:e-p270: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/tmp4e44r9qy.c'
source_filename = "/tmp/tmp4e44r9qy.c"
target datalayout = "e-m:e-p270: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/tmp4e44r9qy.c"
target datalayout = "e-m:e-p270: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/tmpjypziigm.c'
source_filename = "/tmp/tmpjypziigm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @init_printer(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 @fputc(i8 noundef signext 27, ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @fputc(i8 noundef signext 69, ptr noundef %5)
ret void
}
declare i32 @fputc(i8 noundef signext, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjypziigm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @init_printer(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 @fputc(i8 noundef signext 27, ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @fputc(i8 noundef signext 69, ptr noundef %5)
ret void
}
declare i32 @fputc(i8 noundef signext, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1bfhfm9n.c'
source_filename = "/tmp/tmp1bfhfm9n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"a-z-\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"z-a-\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"-1-6-\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"a-ee-a\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"a-R-L\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"1-9-1\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"5-5\00", align 1
@__const.main.s = private unnamed_addr constant [8 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3, ptr @.str.4, ptr @.str.5, ptr @.str.6, ptr null], align 16
@.str.7 = private unnamed_addr constant [16 x i8] c"Unexpanded: %s\0A\00", align 1
@.str.8 = private unnamed_addr constant [16 x i8] c"Expanded : %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [8 x ptr], align 16
%3 = alloca [100 x i8], align 16
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.s, i64 64, i1 false)
store i32 0, ptr %4, align 4
br label %5
5: ; preds = %11, %0
%6 = load i32, ptr %4, align 4
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds [8 x ptr], ptr %2, i64 0, i64 %7
%9 = load ptr, ptr %8, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %27
11: ; preds = %5
%12 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%13 = load i32, ptr %4, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [8 x ptr], ptr %2, i64 0, i64 %14
%16 = load ptr, ptr %15, align 8
%17 = call i32 @expand(ptr noundef %12, ptr noundef %16)
%18 = load i32, ptr %4, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [8 x ptr], ptr %2, i64 0, i64 %19
%21 = load ptr, ptr %20, align 8
%22 = call i32 @printf(ptr noundef @.str.7, ptr noundef %21)
%23 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%24 = call i32 @printf(ptr noundef @.str.8, ptr noundef %23)
%25 = load i32, ptr %4, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %4, align 4
br label %5, !llvm.loop !6
27: ; preds = %5
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 @expand(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1bfhfm9n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"a-z-\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"z-a-\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"-1-6-\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"a-ee-a\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"a-R-L\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"1-9-1\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"5-5\00", align 1
@__const.main.s = private unnamed_addr constant [8 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3, ptr @.str.4, ptr @.str.5, ptr @.str.6, ptr null], align 16
@.str.7 = private unnamed_addr constant [16 x i8] c"Unexpanded: %s\0A\00", align 1
@.str.8 = private unnamed_addr constant [16 x i8] c"Expanded : %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [8 x ptr], align 16
%3 = alloca [100 x i8], align 16
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.s, i64 64, i1 false)
store i32 0, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds [8 x ptr], ptr %2, i64 0, i64 %6
%8 = load ptr, ptr %7, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %.lr.ph, label %31
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %10
%11 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%12 = load i32, ptr %4, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [8 x ptr], ptr %2, i64 0, i64 %13
%15 = load ptr, ptr %14, align 8
%16 = call i32 @expand(ptr noundef %11, ptr noundef %15)
%17 = load i32, ptr %4, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [8 x ptr], ptr %2, i64 0, i64 %18
%20 = load ptr, ptr %19, align 8
%21 = call i32 @printf(ptr noundef @.str.7, ptr noundef %20)
%22 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%23 = call i32 @printf(ptr noundef @.str.8, ptr noundef %22)
%24 = load i32, ptr %4, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %4, align 4
%26 = load i32, ptr %4, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [8 x ptr], ptr %2, i64 0, i64 %27
%29 = load ptr, ptr %28, align 8
%30 = icmp ne ptr %29, null
br i1 %30, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %31
31: ; preds = %._crit_edge, %0
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @expand(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpndg12qog.c'
source_filename = "/tmp/tmpndg12qog.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@TIOCGPGRP = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tcgetpgrp(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr @TIOCGPGRP, align 4
%7 = call i64 @__ioctl(i32 noundef %5, i32 noundef %6, ptr noundef %4)
%8 = icmp slt i64 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %1
store i32 -1, ptr %2, align 4
br label %12
10: ; preds = %1
%11 = load i32, ptr %4, align 4
store i32 %11, ptr %2, align 4
br label %12
12: ; preds = %10, %9
%13 = load i32, ptr %2, align 4
ret i32 %13
}
declare i64 @__ioctl(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpndg12qog.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@TIOCGPGRP = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tcgetpgrp(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr @TIOCGPGRP, align 4
%7 = call i64 @__ioctl(i32 noundef %5, i32 noundef %6, ptr noundef %4)
%8 = icmp slt i64 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %1
store i32 -1, ptr %2, align 4
br label %12
10: ; preds = %1
%11 = load i32, ptr %4, align 4
store i32 %11, ptr %2, align 4
br label %12
12: ; preds = %10, %9
%13 = load i32, ptr %2, align 4
ret i32 %13
}
declare i64 @__ioctl(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpoja5ou2y.c'
source_filename = "/tmp/tmpoja5ou2y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@UCHAR_MAX = 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/tmpoja5ou2y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@UCHAR_MAX = 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/tmpo88z9_ec.c'
source_filename = "/tmp/tmpo88z9_ec.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @TimerIntRegister(i64 noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load i64, ptr %4, align 8
%8 = icmp eq i64 %7, 1073938432
br i1 %8, label %9, label %10
9: ; preds = %3
br label %21
10: ; preds = %3
%11 = load i64, ptr %4, align 8
%12 = icmp eq i64 %11, 1073942528
br i1 %12, label %13, label %14
13: ; preds = %10
br label %19
14: ; preds = %10
%15 = load i64, ptr %4, align 8
%16 = icmp eq i64 %15, 1073946624
%17 = zext i1 %16 to i64
%18 = select i1 %16, i32 39, i32 51
br label %19
19: ; preds = %14, %13
%20 = phi i32 [ 37, %13 ], [ %18, %14 ]
br label %21
21: ; preds = %19, %9
%22 = phi i32 [ 35, %9 ], [ %20, %19 ]
%23 = sext i32 %22 to i64
store i64 %23, ptr %4, align 8
%24 = load i64, ptr %5, align 8
%25 = and i64 %24, 255
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %33
27: ; preds = %21
%28 = load i64, ptr %4, align 8
%29 = load ptr, ptr %6, align 8
%30 = call i32 @IntRegister(i64 noundef %28, ptr noundef %29)
%31 = load i64, ptr %4, align 8
%32 = call i32 @IntEnable(i64 noundef %31)
br label %33
33: ; preds = %27, %21
%34 = load i64, ptr %5, align 8
%35 = and i64 %34, 65280
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %45
37: ; preds = %33
%38 = load i64, ptr %4, align 8
%39 = add i64 %38, 1
%40 = load ptr, ptr %6, align 8
%41 = call i32 @IntRegister(i64 noundef %39, ptr noundef %40)
%42 = load i64, ptr %4, align 8
%43 = add i64 %42, 1
%44 = call i32 @IntEnable(i64 noundef %43)
br label %45
45: ; preds = %37, %33
ret void
}
declare i32 @IntRegister(i64 noundef, ptr noundef) #1
declare i32 @IntEnable(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/tmpo88z9_ec.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @TimerIntRegister(i64 noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load i64, ptr %4, align 8
%8 = icmp eq i64 %7, 1073938432
br i1 %8, label %9, label %10
9: ; preds = %3
br label %21
10: ; preds = %3
%11 = load i64, ptr %4, align 8
%12 = icmp eq i64 %11, 1073942528
br i1 %12, label %13, label %14
13: ; preds = %10
br label %19
14: ; preds = %10
%15 = load i64, ptr %4, align 8
%16 = icmp eq i64 %15, 1073946624
%17 = zext i1 %16 to i64
%18 = select i1 %16, i32 39, i32 51
br label %19
19: ; preds = %14, %13
%20 = phi i32 [ 37, %13 ], [ %18, %14 ]
br label %21
21: ; preds = %19, %9
%22 = phi i32 [ 35, %9 ], [ %20, %19 ]
%23 = sext i32 %22 to i64
store i64 %23, ptr %4, align 8
%24 = load i64, ptr %5, align 8
%25 = and i64 %24, 255
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %33
27: ; preds = %21
%28 = load i64, ptr %4, align 8
%29 = load ptr, ptr %6, align 8
%30 = call i32 @IntRegister(i64 noundef %28, ptr noundef %29)
%31 = load i64, ptr %4, align 8
%32 = call i32 @IntEnable(i64 noundef %31)
br label %33
33: ; preds = %27, %21
%34 = load i64, ptr %5, align 8
%35 = and i64 %34, 65280
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %45
37: ; preds = %33
%38 = load i64, ptr %4, align 8
%39 = add i64 %38, 1
%40 = load ptr, ptr %6, align 8
%41 = call i32 @IntRegister(i64 noundef %39, ptr noundef %40)
%42 = load i64, ptr %4, align 8
%43 = add i64 %42, 1
%44 = call i32 @IntEnable(i64 noundef %43)
br label %45
45: ; preds = %37, %33
ret void
}
declare i32 @IntRegister(i64 noundef, ptr noundef) #1
declare i32 @IntEnable(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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.