llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmpjkcg5zny.c'
source_filename = "/tmp/tmpjkcg5zny.c"
target datalayout = "e-m:e-p270: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/tmpjkcg5zny.c"
target datalayout = "e-m:e-p270: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/tmptsdrew44.c'
source_filename = "/tmp/tmptsdrew44.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Matrix1:\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"Matrix2:\0A\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"Matrix3:\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 [3 x [2 x double]], align 16
%7 = alloca [2 x [4 x double]], align 16
%8 = alloca [3 x [4 x double]], 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
store i32 0, ptr %9, align 4
br label %11
11: ; preds = %31, %2
%12 = load i32, ptr %9, align 4
%13 = icmp slt i32 %12, 3
br i1 %13, label %14, label %34
14: ; preds = %11
store i32 0, ptr %10, align 4
br label %15
15: ; preds = %27, %14
%16 = load i32, ptr %10, align 4
%17 = icmp slt i32 %16, 2
br i1 %17, label %18, label %30
18: ; preds = %15
%19 = load i32, ptr %9, align 4
%20 = sitofp i32 %19 to double
%21 = load i32, ptr %9, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [3 x [2 x double]], ptr %6, i64 0, i64 %22
%24 = load i32, ptr %10, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [2 x double], ptr %23, i64 0, i64 %25
store double %20, ptr %26, align 8
br label %27
27: ; preds = %18
%28 = load i32, ptr %10, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %10, align 4
br label %15, !llvm.loop !6
30: ; preds = %15
br label %31
31: ; preds = %30
%32 = load i32, ptr %9, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %9, align 4
br label %11, !llvm.loop !8
34: ; preds = %11
store i32 0, ptr %9, align 4
br label %35
35: ; preds = %55, %34
%36 = load i32, ptr %9, align 4
%37 = icmp slt i32 %36, 2
br i1 %37, label %38, label %58
38: ; preds = %35
store i32 0, ptr %10, align 4
br label %39
39: ; preds = %51, %38
%40 = load i32, ptr %10, align 4
%41 = icmp slt i32 %40, 4
br i1 %41, label %42, label %54
42: ; preds = %39
%43 = load i32, ptr %10, align 4
%44 = sitofp i32 %43 to double
%45 = load i32, ptr %9, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [2 x [4 x double]], ptr %7, i64 0, i64 %46
%48 = load i32, ptr %10, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [4 x double], ptr %47, i64 0, i64 %49
store double %44, ptr %50, align 8
br label %51
51: ; preds = %42
%52 = load i32, ptr %10, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %10, align 4
br label %39, !llvm.loop !9
54: ; preds = %39
br label %55
55: ; preds = %54
%56 = load i32, ptr %9, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %9, align 4
br label %35, !llvm.loop !10
58: ; preds = %35
%59 = call i32 @printf(ptr noundef @.str)
%60 = getelementptr inbounds [3 x [2 x double]], ptr %6, i64 0, i64 0
%61 = call i32 @print_matrix(i32 noundef 3, i32 noundef 2, ptr noundef %60)
%62 = call i32 @printf(ptr noundef @.str.1)
%63 = getelementptr inbounds [2 x [4 x double]], ptr %7, i64 0, i64 0
%64 = call i32 @print_matrix(i32 noundef 2, i32 noundef 4, ptr noundef %63)
%65 = getelementptr inbounds [3 x [2 x double]], ptr %6, i64 0, i64 0
%66 = getelementptr inbounds [2 x [4 x double]], ptr %7, i64 0, i64 0
%67 = getelementptr inbounds [3 x [4 x double]], ptr %8, i64 0, i64 0
%68 = call i32 @multiply(i32 noundef 3, i32 noundef 2, i32 noundef 4, ptr noundef %65, ptr noundef %66, ptr noundef %67)
%69 = call i32 @printf(ptr noundef @.str.2)
%70 = getelementptr inbounds [3 x [4 x double]], ptr %8, i64 0, i64 0
%71 = call i32 @print_matrix(i32 noundef 3, i32 noundef 4, ptr noundef %70)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @print_matrix(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @multiply(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptsdrew44.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Matrix1:\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"Matrix2:\0A\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"Matrix3:\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 [3 x [2 x double]], align 16
%7 = alloca [2 x [4 x double]], align 16
%8 = alloca [3 x [4 x double]], 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
store i32 0, ptr %9, align 4
%11 = load i32, ptr %9, align 4
%12 = icmp slt i32 %11, 3
br i1 %12, label %.lr.ph2, label %36
.lr.ph2: ; preds = %2
br label %13
13: ; preds = %.lr.ph2, %31
store i32 0, ptr %10, align 4
%14 = load i32, ptr %10, align 4
%15 = icmp slt i32 %14, 2
br i1 %15, label %.lr.ph, label %30
.lr.ph: ; preds = %13
br label %16
16: ; preds = %.lr.ph, %25
%17 = load i32, ptr %9, align 4
%18 = sitofp i32 %17 to double
%19 = load i32, ptr %9, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [3 x [2 x double]], ptr %6, i64 0, i64 %20
%22 = load i32, ptr %10, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [2 x double], ptr %21, i64 0, i64 %23
store double %18, ptr %24, align 8
br label %25
25: ; preds = %16
%26 = load i32, ptr %10, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %10, align 4
%28 = load i32, ptr %10, align 4
%29 = icmp slt i32 %28, 2
br i1 %29, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %30
30: ; preds = %._crit_edge, %13
br label %31
31: ; preds = %30
%32 = load i32, ptr %9, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %9, align 4
%34 = load i32, ptr %9, align 4
%35 = icmp slt i32 %34, 3
br i1 %35, label %13, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %31
br label %36
36: ; preds = %._crit_edge3, %2
store i32 0, ptr %9, align 4
%37 = load i32, ptr %9, align 4
%38 = icmp slt i32 %37, 2
br i1 %38, label %.lr.ph8, label %62
.lr.ph8: ; preds = %36
br label %39
39: ; preds = %.lr.ph8, %57
store i32 0, ptr %10, align 4
%40 = load i32, ptr %10, align 4
%41 = icmp slt i32 %40, 4
br i1 %41, label %.lr.ph5, label %56
.lr.ph5: ; preds = %39
br label %42
42: ; preds = %.lr.ph5, %51
%43 = load i32, ptr %10, align 4
%44 = sitofp i32 %43 to double
%45 = load i32, ptr %9, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [2 x [4 x double]], ptr %7, i64 0, i64 %46
%48 = load i32, ptr %10, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [4 x double], ptr %47, i64 0, i64 %49
store double %44, ptr %50, align 8
br label %51
51: ; preds = %42
%52 = load i32, ptr %10, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %10, align 4
%54 = load i32, ptr %10, align 4
%55 = icmp slt i32 %54, 4
br i1 %55, label %42, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %51
br label %56
56: ; preds = %._crit_edge6, %39
br label %57
57: ; preds = %56
%58 = load i32, ptr %9, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %9, align 4
%60 = load i32, ptr %9, align 4
%61 = icmp slt i32 %60, 2
br i1 %61, label %39, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %57
br label %62
62: ; preds = %._crit_edge9, %36
%63 = call i32 @printf(ptr noundef @.str)
%64 = getelementptr inbounds [3 x [2 x double]], ptr %6, i64 0, i64 0
%65 = call i32 @print_matrix(i32 noundef 3, i32 noundef 2, ptr noundef %64)
%66 = call i32 @printf(ptr noundef @.str.1)
%67 = getelementptr inbounds [2 x [4 x double]], ptr %7, i64 0, i64 0
%68 = call i32 @print_matrix(i32 noundef 2, i32 noundef 4, ptr noundef %67)
%69 = getelementptr inbounds [3 x [2 x double]], ptr %6, i64 0, i64 0
%70 = getelementptr inbounds [2 x [4 x double]], ptr %7, i64 0, i64 0
%71 = getelementptr inbounds [3 x [4 x double]], ptr %8, i64 0, i64 0
%72 = call i32 @multiply(i32 noundef 3, i32 noundef 2, i32 noundef 4, ptr noundef %69, ptr noundef %70, ptr noundef %71)
%73 = call i32 @printf(ptr noundef @.str.2)
%74 = getelementptr inbounds [3 x [4 x double]], ptr %8, i64 0, i64 0
%75 = call i32 @print_matrix(i32 noundef 3, i32 noundef 4, ptr noundef %74)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @print_matrix(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @multiply(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmp3ep087xx.c'
source_filename = "/tmp/tmp3ep087xx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @refute_dbl_near(double noundef %0, double noundef %1, double noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
store double %0, ptr %8, align 8
store double %1, ptr %9, align 8
store double %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store i32 %5, ptr %13, align 4
%14 = load double, ptr %8, align 8
%15 = load double, ptr %9, align 8
%16 = load double, ptr %10, align 8
%17 = call i64 @is_dbl_near(double noundef %14, double noundef %15, double noundef %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %24
19: ; preds = %6
%20 = load ptr, ptr %11, align 8
%21 = load ptr, ptr %12, align 8
%22 = load i32, ptr %13, align 4
%23 = call i32 @minitest_fail(ptr noundef %20, ptr noundef %21, i32 noundef %22)
store i32 %23, ptr %7, align 4
br label %27
24: ; preds = %6
%25 = load ptr, ptr %11, align 8
%26 = call i32 @minitest_pass(ptr noundef %25)
store i32 %26, ptr %7, align 4
br label %27
27: ; preds = %24, %19
%28 = load i32, ptr %7, align 4
ret i32 %28
}
declare i64 @is_dbl_near(double noundef, double noundef, double noundef) #1
declare i32 @minitest_fail(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @minitest_pass(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3ep087xx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @refute_dbl_near(double noundef %0, double noundef %1, double noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
store double %0, ptr %8, align 8
store double %1, ptr %9, align 8
store double %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store i32 %5, ptr %13, align 4
%14 = load double, ptr %8, align 8
%15 = load double, ptr %9, align 8
%16 = load double, ptr %10, align 8
%17 = call i64 @is_dbl_near(double noundef %14, double noundef %15, double noundef %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %24
19: ; preds = %6
%20 = load ptr, ptr %11, align 8
%21 = load ptr, ptr %12, align 8
%22 = load i32, ptr %13, align 4
%23 = call i32 @minitest_fail(ptr noundef %20, ptr noundef %21, i32 noundef %22)
store i32 %23, ptr %7, align 4
br label %27
24: ; preds = %6
%25 = load ptr, ptr %11, align 8
%26 = call i32 @minitest_pass(ptr noundef %25)
store i32 %26, ptr %7, align 4
br label %27
27: ; preds = %24, %19
%28 = load i32, ptr %7, align 4
ret i32 %28
}
declare i64 @is_dbl_near(double noundef, double noundef, double noundef) #1
declare i32 @minitest_fail(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @minitest_pass(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpt3ymf5i6.c'
source_filename = "/tmp/tmpt3ymf5i6.c"
target datalayout = "e-m:e-p270: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/tmpt3ymf5i6.c"
target datalayout = "e-m:e-p270: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/tmp4c0omuir.c'
source_filename = "/tmp/tmp4c0omuir.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @standard_Newton_Laurent_step() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = load ptr, ptr %1, align 8
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @_ada_use_c2phc4c(i32 noundef 326, ptr noundef %5, ptr noundef %6, ptr noundef %7, i32 noundef 0)
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
ret i32 %9
}
declare i32 @_ada_use_c2phc4c(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4c0omuir.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @standard_Newton_Laurent_step() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = load ptr, ptr %1, align 8
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @_ada_use_c2phc4c(i32 noundef 326, ptr noundef %5, ptr noundef %6, ptr noundef %7, i32 noundef 0)
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
ret i32 %9
}
declare i32 @_ada_use_c2phc4c(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0usu_j2h.c'
source_filename = "/tmp/tmp0usu_j2h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @shift_left(i32 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%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 i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%13 = load i32, ptr %5, align 4
%14 = load ptr, ptr %7, align 8
%15 = load i32, ptr %8, align 4
%16 = call i32 @find_f(i32 noundef %13, ptr noundef %14, i32 noundef %15)
store i32 %16, ptr %11, align 4
%17 = load i32, ptr %11, align 4
%18 = load ptr, ptr %7, align 8
%19 = call i32 @count_(i32 noundef %17, ptr noundef %18)
store i32 %19, ptr %12, align 4
store i32 0, ptr %10, align 4
br label %20
20: ; preds = %64, %4
%21 = load i32, ptr %10, align 4
%22 = load i32, ptr %12, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %67
24: ; preds = %20
%25 = load i32, ptr %5, align 4
%26 = load ptr, ptr %7, align 8
%27 = load i32, ptr %8, align 4
%28 = call i32 @find_l(i32 noundef %25, ptr noundef %26, i32 noundef %27)
store i32 %28, ptr %11, align 4
br label %29
29: ; preds = %39, %24
%30 = load ptr, ptr %7, align 8
%31 = load i32, ptr %6, align 4
%32 = load i32, ptr %10, align 4
%33 = add nsw i32 %31, %32
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %30, i64 %34
%36 = load i32, ptr %35, align 4
%37 = load i32, ptr %5, align 4
%38 = icmp ne i32 %36, %37
br i1 %38, label %39, label %63
39: ; preds = %29
%40 = load ptr, ptr %7, align 8
%41 = load i32, ptr %11, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %40, i64 %42
%44 = load i32, ptr %43, align 4
store i32 %44, ptr %9, align 4
%45 = load ptr, ptr %7, align 8
%46 = load i32, ptr %11, align 4
%47 = sub nsw i32 %46, 1
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i32, ptr %45, i64 %48
%50 = load i32, ptr %49, align 4
%51 = load ptr, ptr %7, align 8
%52 = load i32, ptr %11, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i32, ptr %51, i64 %53
store i32 %50, ptr %54, align 4
%55 = load i32, ptr %9, align 4
%56 = load ptr, ptr %7, align 8
%57 = load i32, ptr %11, align 4
%58 = sub nsw i32 %57, 1
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i32, ptr %56, i64 %59
store i32 %55, ptr %60, align 4
%61 = load i32, ptr %11, align 4
%62 = add nsw i32 %61, -1
store i32 %62, ptr %11, align 4
br label %29, !llvm.loop !6
63: ; preds = %29
br label %64
64: ; preds = %63
%65 = load i32, ptr %10, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %10, align 4
br label %20, !llvm.loop !8
67: ; preds = %20
ret void
}
declare i32 @find_f(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @count_(i32 noundef, ptr noundef) #1
declare i32 @find_l(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0usu_j2h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @shift_left(i32 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%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 i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%13 = load i32, ptr %5, align 4
%14 = load ptr, ptr %7, align 8
%15 = load i32, ptr %8, align 4
%16 = call i32 @find_f(i32 noundef %13, ptr noundef %14, i32 noundef %15)
store i32 %16, ptr %11, align 4
%17 = load i32, ptr %11, align 4
%18 = load ptr, ptr %7, align 8
%19 = call i32 @count_(i32 noundef %17, ptr noundef %18)
store i32 %19, ptr %12, align 4
store i32 0, ptr %10, align 4
%20 = load i32, ptr %10, align 4
%21 = load i32, ptr %12, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %.lr.ph2, label %77
.lr.ph2: ; preds = %4
br label %23
23: ; preds = %.lr.ph2, %71
%24 = load i32, ptr %5, align 4
%25 = load ptr, ptr %7, align 8
%26 = load i32, ptr %8, align 4
%27 = call i32 @find_l(i32 noundef %24, ptr noundef %25, i32 noundef %26)
store i32 %27, ptr %11, align 4
%28 = load ptr, ptr %7, align 8
%29 = load i32, ptr %6, align 4
%30 = load i32, ptr %10, align 4
%31 = add nsw i32 %29, %30
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %28, i64 %32
%34 = load i32, ptr %33, align 4
%35 = load i32, ptr %5, align 4
%36 = icmp ne i32 %34, %35
br i1 %36, label %.lr.ph, label %70
.lr.ph: ; preds = %23
br label %37
37: ; preds = %.lr.ph, %37
%38 = load ptr, ptr %7, align 8
%39 = load i32, ptr %11, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %38, i64 %40
%42 = load i32, ptr %41, align 4
store i32 %42, ptr %9, align 4
%43 = load ptr, ptr %7, align 8
%44 = load i32, ptr %11, align 4
%45 = sub nsw i32 %44, 1
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i32, ptr %43, i64 %46
%48 = load i32, ptr %47, align 4
%49 = load ptr, ptr %7, align 8
%50 = load i32, ptr %11, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i32, ptr %49, i64 %51
store i32 %48, ptr %52, align 4
%53 = load i32, ptr %9, align 4
%54 = load ptr, ptr %7, align 8
%55 = load i32, ptr %11, align 4
%56 = sub nsw i32 %55, 1
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, ptr %54, i64 %57
store i32 %53, ptr %58, align 4
%59 = load i32, ptr %11, align 4
%60 = add nsw i32 %59, -1
store i32 %60, ptr %11, align 4
%61 = load ptr, ptr %7, align 8
%62 = load i32, ptr %6, align 4
%63 = load i32, ptr %10, align 4
%64 = add nsw i32 %62, %63
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i32, ptr %61, i64 %65
%67 = load i32, ptr %66, align 4
%68 = load i32, ptr %5, align 4
%69 = icmp ne i32 %67, %68
br i1 %69, label %37, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %70
70: ; preds = %._crit_edge, %23
br label %71
71: ; preds = %70
%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 %12, align 4
%76 = icmp slt i32 %74, %75
br i1 %76, label %23, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %71
br label %77
77: ; preds = %._crit_edge3, %4
ret void
}
declare i32 @find_f(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @count_(i32 noundef, ptr noundef) #1
declare i32 @find_l(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpxk_2ye28.c'
source_filename = "/tmp/tmpxk_2ye28.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@EOF = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [10000 x i32], align 16
store i32 0, ptr %1, align 4
%6 = call i64 @scanf(ptr noundef @.str, ptr noundef %2)
br label %7
7: ; preds = %24, %0
%8 = call i64 @scanf(ptr noundef @.str, ptr noundef %4)
%9 = load i64, ptr @EOF, align 8
%10 = icmp ne i64 %8, %9
br i1 %10, label %11, label %29
11: ; preds = %7
store i32 0, ptr %3, align 4
br label %12
12: ; preds = %21, %11
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %24
16: ; preds = %12
%17 = load i32, ptr %3, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [10000 x i32], ptr %5, i64 0, i64 %18
%20 = call i64 @scanf(ptr noundef @.str, ptr noundef %19)
br label %21
21: ; preds = %16
%22 = load i32, ptr %3, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %3, align 4
br label %12, !llvm.loop !6
24: ; preds = %12
%25 = getelementptr inbounds [10000 x i32], ptr %5, i64 0, i64 0
%26 = load i32, ptr %4, align 4
%27 = call i32 @sum(ptr noundef %25, i32 noundef %26)
%28 = call i32 @printf(ptr noundef @.str.1, i32 noundef %27)
br label %7, !llvm.loop !8
29: ; preds = %7
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @sum(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxk_2ye28.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@EOF = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [10000 x i32], align 16
store i32 0, ptr %1, align 4
%6 = call i64 @scanf(ptr noundef @.str, ptr noundef %2)
%7 = call i64 @scanf(ptr noundef @.str, ptr noundef %4)
%8 = load i64, ptr @EOF, align 8
%9 = icmp ne i64 %7, %8
br i1 %9, label %.lr.ph2, label %33
.lr.ph2: ; preds = %0
br label %10
10: ; preds = %.lr.ph2, %25
store i32 0, ptr %3, align 4
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %.lr.ph, label %25
.lr.ph: ; preds = %10
br label %14
14: ; preds = %.lr.ph, %19
%15 = load i32, ptr %3, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [10000 x i32], ptr %5, i64 0, i64 %16
%18 = call i64 @scanf(ptr noundef @.str, ptr noundef %17)
br label %19
19: ; preds = %14
%20 = load i32, ptr %3, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %3, align 4
%22 = load i32, ptr %3, align 4
%23 = load i32, ptr %4, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %25
25: ; preds = %._crit_edge, %10
%26 = getelementptr inbounds [10000 x i32], ptr %5, i64 0, i64 0
%27 = load i32, ptr %4, align 4
%28 = call i32 @sum(ptr noundef %26, i32 noundef %27)
%29 = call i32 @printf(ptr noundef @.str.1, i32 noundef %28)
%30 = call i64 @scanf(ptr noundef @.str, ptr noundef %4)
%31 = load i64, ptr @EOF, align 8
%32 = icmp ne i64 %30, %31
br i1 %32, label %10, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %25
br label %33
33: ; preds = %._crit_edge3, %0
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @sum(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp5b7477rt.c'
source_filename = "/tmp/tmp5b7477rt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strlen(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%5 = load ptr, ptr %2, align 8
store ptr %5, ptr %4, align 8
br label %6
6: ; preds = %13, %1
%7 = load ptr, ptr %4, align 8
%8 = load i8, ptr %7, align 1
%9 = icmp ne i8 %8, 0
br i1 %9, label %10, label %16
10: ; preds = %6
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %3, align 4
br label %13
13: ; preds = %10
%14 = load ptr, ptr %4, align 8
%15 = getelementptr inbounds i8, ptr %14, i32 1
store ptr %15, ptr %4, align 8
br label %6, !llvm.loop !6
16: ; preds = %6
%17 = load i32, ptr %3, align 4
%18 = sext i32 %17 to i64
ret i64 %18
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5b7477rt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strlen(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%5 = load ptr, ptr %2, align 8
store ptr %5, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = load i8, ptr %6, align 1
%8 = icmp ne i8 %7, 0
br i1 %8, label %.lr.ph, label %18
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %12
%10 = load i32, ptr %3, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %3, align 4
br label %12
12: ; preds = %9
%13 = load ptr, ptr %4, align 8
%14 = getelementptr inbounds i8, ptr %13, i32 1
store ptr %14, ptr %4, align 8
%15 = load ptr, ptr %4, align 8
%16 = load i8, ptr %15, align 1
%17 = icmp ne i8 %16, 0
br i1 %17, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %18
18: ; preds = %._crit_edge, %1
%19 = load i32, ptr %3, align 4
%20 = sext i32 %19 to i64
ret i64 %20
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4k3ht3av.c'
source_filename = "/tmp/tmp4k3ht3av.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.termios = type { i32 }
@B230400 = dso_local global i32 0, align 4
@CLOCAL = dso_local global i32 0, align 4
@CREAD = dso_local global i32 0, align 4
@TCSANOW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @initport(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca %struct.termios, align 4
store i32 %0, ptr %2, align 4
%4 = call i32 @cfmakeraw(ptr noundef %3)
%5 = load i32, ptr @B230400, align 4
%6 = call i32 @cfsetispeed(ptr noundef %3, i32 noundef %5)
%7 = load i32, ptr @B230400, align 4
%8 = call i32 @cfsetospeed(ptr noundef %3, i32 noundef %7)
%9 = load i32, ptr @CLOCAL, align 4
%10 = load i32, ptr @CREAD, align 4
%11 = or i32 %9, %10
%12 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 0
%13 = load i32, ptr %12, align 4
%14 = or i32 %13, %11
store i32 %14, ptr %12, align 4
%15 = load i32, ptr %2, align 4
%16 = load i32, ptr @TCSANOW, align 4
%17 = call i32 @tcsetattr(i32 noundef %15, i32 noundef %16, ptr noundef %3)
ret i32 1
}
declare i32 @cfmakeraw(ptr noundef) #1
declare i32 @cfsetispeed(ptr noundef, i32 noundef) #1
declare i32 @cfsetospeed(ptr noundef, i32 noundef) #1
declare i32 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4k3ht3av.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.termios = type { i32 }
@B230400 = dso_local global i32 0, align 4
@CLOCAL = dso_local global i32 0, align 4
@CREAD = dso_local global i32 0, align 4
@TCSANOW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @initport(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca %struct.termios, align 4
store i32 %0, ptr %2, align 4
%4 = call i32 @cfmakeraw(ptr noundef %3)
%5 = load i32, ptr @B230400, align 4
%6 = call i32 @cfsetispeed(ptr noundef %3, i32 noundef %5)
%7 = load i32, ptr @B230400, align 4
%8 = call i32 @cfsetospeed(ptr noundef %3, i32 noundef %7)
%9 = load i32, ptr @CLOCAL, align 4
%10 = load i32, ptr @CREAD, align 4
%11 = or i32 %9, %10
%12 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 0
%13 = load i32, ptr %12, align 4
%14 = or i32 %13, %11
store i32 %14, ptr %12, align 4
%15 = load i32, ptr %2, align 4
%16 = load i32, ptr @TCSANOW, align 4
%17 = call i32 @tcsetattr(i32 noundef %15, i32 noundef %16, ptr noundef %3)
ret i32 1
}
declare i32 @cfmakeraw(ptr noundef) #1
declare i32 @cfsetispeed(ptr noundef, i32 noundef) #1
declare i32 @cfsetospeed(ptr noundef, i32 noundef) #1
declare i32 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp401macja.c'
source_filename = "/tmp/tmp401macja.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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".log\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @buildLogSuffix() #0 {
%1 = alloca ptr, align 8
%2 = call i32 @strlen(ptr noundef @.str)
%3 = sext i32 %2 to i64
%4 = mul i64 1, %3
%5 = trunc i64 %4 to i32
%6 = call ptr @malloc(i32 noundef %5)
store ptr %6, ptr %1, align 8
%7 = load ptr, ptr %1, align 8
%8 = call i32 @strcpy(ptr noundef %7, ptr noundef @.str)
%9 = load ptr, ptr %1, align 8
ret ptr %9
}
declare ptr @malloc(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp401macja.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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".log\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @buildLogSuffix() #0 {
%1 = alloca ptr, align 8
%2 = call i32 @strlen(ptr noundef @.str)
%3 = sext i32 %2 to i64
%4 = mul i64 1, %3
%5 = trunc i64 %4 to i32
%6 = call ptr @malloc(i32 noundef %5)
store ptr %6, ptr %1, align 8
%7 = load ptr, ptr %1, align 8
%8 = call i32 @strcpy(ptr noundef %7, ptr noundef @.str)
%9 = load ptr, ptr %1, align 8
ret ptr %9
}
declare ptr @malloc(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6nsk139z.c'
source_filename = "/tmp/tmp6nsk139z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dump_io(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
store ptr %0, ptr %2, align 8
br label %4
4: ; preds = %19, %1
%5 = load ptr, ptr %2, align 8
%6 = call signext i8 @fgetc(ptr noundef %5)
store i8 %6, ptr %3, align 1
%7 = sext i8 %6 to i32
%8 = icmp ne i32 %7, 10
br i1 %8, label %9, label %17
9: ; preds = %4
%10 = load i8, ptr %3, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %9
%14 = load i8, ptr %3, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 13
br label %17
17: ; preds = %13, %9, %4
%18 = phi i1 [ false, %9 ], [ false, %4 ], [ %16, %13 ]
br i1 %18, label %19, label %20
19: ; preds = %17
br label %4, !llvm.loop !6
20: ; preds = %17
ret void
}
declare signext i8 @fgetc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6nsk139z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dump_io(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
store ptr %0, ptr %2, align 8
br label %4
4: ; preds = %17, %1
%5 = load ptr, ptr %2, align 8
%6 = call signext i8 @fgetc(ptr noundef %5)
store i8 %6, ptr %3, align 1
%7 = sext i8 %6 to i32
%8 = icmp ne i32 %7, 10
br i1 %8, label %9, label %17
9: ; preds = %4
%10 = load i8, ptr %3, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %9
%14 = load i8, ptr %3, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 13
br label %17
17: ; preds = %13, %9, %4
%18 = phi i1 [ false, %9 ], [ false, %4 ], [ %16, %13 ]
br i1 %18, label %4, label %19, !llvm.loop !6
19: ; preds = %17
ret void
}
declare signext i8 @fgetc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9c898cz_.c'
source_filename = "/tmp/tmp9c898cz_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @type_as_string() #0 {
%1 = call i32 (...) @abort() #2
unreachable
}
; Function Attrs: noreturn
declare i32 @abort(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { 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/tmp9c898cz_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @type_as_string() #0 {
%1 = call i32 (...) @abort() #2
unreachable
}
; Function Attrs: noreturn
declare i32 @abort(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { 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/tmplaj8eh_8.c'
source_filename = "/tmp/tmplaj8eh_8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @run_optimized() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 108400, ptr %1, align 4
%4 = load i32, ptr %1, align 4
%5 = add nsw i32 %4, 17000
store i32 %5, ptr %2, align 4
store i32 0, ptr %3, align 4
br label %6
6: ; preds = %18, %0
%7 = load i32, ptr %1, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp sle i32 %7, %8
br i1 %9, label %10, label %21
10: ; preds = %6
%11 = load i32, ptr %1, align 4
%12 = call i32 @is_prime(i32 noundef %11)
%13 = icmp ne i32 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %10
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %3, align 4
br label %17
17: ; preds = %14, %10
br label %18
18: ; preds = %17
%19 = load i32, ptr %1, align 4
%20 = add nsw i32 %19, 17
store i32 %20, ptr %1, align 4
br label %6, !llvm.loop !6
21: ; preds = %6
%22 = load i32, ptr %3, align 4
ret i32 %22
}
declare i32 @is_prime(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/tmplaj8eh_8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @run_optimized() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 108400, ptr %1, align 4
%4 = load i32, ptr %1, align 4
%5 = add nsw i32 %4, 17000
store i32 %5, ptr %2, align 4
store i32 0, ptr %3, align 4
%6 = load i32, ptr %1, align 4
%7 = load i32, ptr %2, align 4
%8 = icmp sle i32 %6, %7
br i1 %8, label %.lr.ph, label %23
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %17
%10 = load i32, ptr %1, align 4
%11 = call i32 @is_prime(i32 noundef %10)
%12 = icmp ne i32 %11, 0
br i1 %12, label %16, label %13
13: ; preds = %9
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %3, align 4
br label %16
16: ; preds = %13, %9
br label %17
17: ; preds = %16
%18 = load i32, ptr %1, align 4
%19 = add nsw i32 %18, 17
store i32 %19, ptr %1, align 4
%20 = load i32, ptr %1, align 4
%21 = load i32, ptr %2, align 4
%22 = icmp sle 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, %0
%24 = load i32, ptr %3, align 4
ret i32 %24
}
declare i32 @is_prime(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/tmpvnnqv_c4.c'
source_filename = "/tmp/tmpvnnqv_c4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @basename(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 0, ptr %4, align 8
store i64 0, ptr %5, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i64 @strlen(ptr noundef %8)
store i64 %9, ptr %6, align 8
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %1
%12 = call ptr @strdup(ptr noundef @.str)
store ptr %12, ptr %2, align 8
br label %75
13: ; preds = %1
%14 = load i64, ptr %6, align 8
%15 = sub i64 %14, 1
store i64 %15, ptr %7, align 8
br label %16
16: ; preds = %30, %13
%17 = load ptr, ptr %3, align 8
%18 = load i64, ptr %7, align 8
%19 = getelementptr inbounds i8, ptr %17, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %21, 47
br i1 %22, label %23, label %25
23: ; preds = %16
%24 = load i64, ptr %7, align 8
store i64 %24, ptr %5, align 8
br label %33
25: ; preds = %16
%26 = load i64, ptr %7, align 8
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %25
br label %33
29: ; preds = %25
br label %30
30: ; preds = %29
%31 = load i64, ptr %7, align 8
%32 = add i64 %31, -1
store i64 %32, ptr %7, align 8
br label %16
33: ; preds = %28, %23
%34 = load i64, ptr %5, align 8
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call ptr @strdup(ptr noundef @.str)
store ptr %37, ptr %2, align 8
br label %75
38: ; preds = %33
%39 = load i64, ptr %5, align 8
%40 = sub i64 %39, 1
store i64 %40, ptr %7, align 8
br label %41
41: ; preds = %56, %38
%42 = load ptr, ptr %3, align 8
%43 = load i64, ptr %7, align 8
%44 = getelementptr inbounds i8, ptr %42, i64 %43
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 47
br i1 %47, label %48, label %51
48: ; preds = %41
%49 = load i64, ptr %7, align 8
%50 = add i64 %49, 1
store i64 %50, ptr %4, align 8
br label %59
51: ; preds = %41
%52 = load i64, ptr %7, align 8
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %55
54: ; preds = %51
br label %59
55: ; preds = %51
br label %56
56: ; preds = %55
%57 = load i64, ptr %7, align 8
%58 = add i64 %57, -1
store i64 %58, ptr %7, align 8
br label %41
59: ; preds = %54, %48
%60 = load ptr, ptr %3, align 8
%61 = load i64, ptr %4, align 8
%62 = getelementptr inbounds i8, ptr %60, i64 %61
%63 = load i64, ptr %4, align 8
%64 = load i64, ptr %5, align 8
%65 = icmp ugt i64 %63, %64
br i1 %65, label %66, label %67
66: ; preds = %59
br label %72
67: ; preds = %59
%68 = load i64, ptr %5, align 8
%69 = load i64, ptr %4, align 8
%70 = sub i64 %68, %69
%71 = add i64 %70, 1
br label %72
72: ; preds = %67, %66
%73 = phi i64 [ 0, %66 ], [ %71, %67 ]
%74 = call ptr @strndup(ptr noundef %62, i64 noundef %73)
store ptr %74, ptr %2, align 8
br label %75
75: ; preds = %72, %36, %11
%76 = load ptr, ptr %2, align 8
ret ptr %76
}
declare i64 @strlen(ptr noundef) #1
declare ptr @strdup(ptr noundef) #1
declare ptr @strndup(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvnnqv_c4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @basename(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 0, ptr %4, align 8
store i64 0, ptr %5, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i64 @strlen(ptr noundef %8)
store i64 %9, ptr %6, align 8
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %1
%12 = call ptr @strdup(ptr noundef @.str)
store ptr %12, ptr %2, align 8
br label %85
13: ; preds = %1
%14 = load i64, ptr %6, align 8
%15 = sub i64 %14, 1
store i64 %15, ptr %7, align 8
%16 = load ptr, ptr %3, align 8
%17 = load i64, ptr %7, align 8
%18 = getelementptr inbounds i8, ptr %16, i64 %17
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp ne i32 %20, 47
br i1 %21, label %22, label %.lr.ph
.lr.ph: ; preds = %13
br label %24
._crit_edge: ; preds = %29
br label %22
22: ; preds = %._crit_edge, %13
%23 = load i64, ptr %7, align 8
store i64 %23, ptr %5, align 8
br label %38
24: ; preds = %.lr.ph, %29
%25 = load i64, ptr %7, align 8
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %24
br label %38
28: ; preds = %24
br label %29
29: ; preds = %28
%30 = load i64, ptr %7, align 8
%31 = add i64 %30, -1
store i64 %31, ptr %7, align 8
%32 = load ptr, ptr %3, align 8
%33 = load i64, ptr %7, align 8
%34 = getelementptr inbounds i8, ptr %32, i64 %33
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = icmp ne i32 %36, 47
br i1 %37, label %._crit_edge, label %24
38: ; preds = %27, %22
%39 = load i64, ptr %5, align 8
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %38
%42 = call ptr @strdup(ptr noundef @.str)
store ptr %42, ptr %2, align 8
br label %85
43: ; preds = %38
%44 = load i64, ptr %5, align 8
%45 = sub i64 %44, 1
store i64 %45, ptr %7, align 8
%46 = load ptr, ptr %3, align 8
%47 = load i64, ptr %7, align 8
%48 = getelementptr inbounds i8, ptr %46, i64 %47
%49 = load i8, ptr %48, align 1
%50 = sext i8 %49 to i32
%51 = icmp eq i32 %50, 47
br i1 %51, label %52, label %.lr.ph2
.lr.ph2: ; preds = %43
br label %55
._crit_edge3: ; preds = %60
br label %52
52: ; preds = %._crit_edge3, %43
%53 = load i64, ptr %7, align 8
%54 = add i64 %53, 1
store i64 %54, ptr %4, align 8
br label %69
55: ; preds = %.lr.ph2, %60
%56 = load i64, ptr %7, align 8
%57 = icmp eq i64 %56, 0
br i1 %57, label %58, label %59
58: ; preds = %55
br label %69
59: ; preds = %55
br label %60
60: ; preds = %59
%61 = load i64, ptr %7, align 8
%62 = add i64 %61, -1
store i64 %62, ptr %7, align 8
%63 = load ptr, ptr %3, align 8
%64 = load i64, ptr %7, align 8
%65 = getelementptr inbounds i8, ptr %63, i64 %64
%66 = load i8, ptr %65, align 1
%67 = sext i8 %66 to i32
%68 = icmp eq i32 %67, 47
br i1 %68, label %._crit_edge3, label %55
69: ; preds = %58, %52
%70 = load ptr, ptr %3, align 8
%71 = load i64, ptr %4, align 8
%72 = getelementptr inbounds i8, ptr %70, i64 %71
%73 = load i64, ptr %4, align 8
%74 = load i64, ptr %5, align 8
%75 = icmp ugt i64 %73, %74
br i1 %75, label %76, label %77
76: ; preds = %69
br label %82
77: ; preds = %69
%78 = load i64, ptr %5, align 8
%79 = load i64, ptr %4, align 8
%80 = sub i64 %78, %79
%81 = add i64 %80, 1
br label %82
82: ; preds = %77, %76
%83 = phi i64 [ 0, %76 ], [ %81, %77 ]
%84 = call ptr @strndup(ptr noundef %72, i64 noundef %83)
store ptr %84, ptr %2, align 8
br label %85
85: ; preds = %82, %41, %11
%86 = load ptr, ptr %2, align 8
ret ptr %86
}
declare i64 @strlen(ptr noundef) #1
declare ptr @strdup(ptr noundef) #1
declare ptr @strndup(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6w4804d1.c'
source_filename = "/tmp/tmp6w4804d1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%u\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"|\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @msg_crc_concat(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca [8 x i8], align 1
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i32 @strlen(ptr noundef %8)
%10 = call i32 @calc_crc(ptr noundef %7, i32 noundef %9)
store i32 %10, ptr %5, align 4
%11 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 0
%12 = load i32, ptr %5, align 4
%13 = call i32 @sprintf(ptr noundef %11, ptr noundef @.str, i32 noundef %12)
%14 = load ptr, ptr %4, align 8
%15 = load ptr, ptr %3, align 8
%16 = call i32 @strcpy(ptr noundef %14, ptr noundef %15)
%17 = load ptr, ptr %4, align 8
%18 = call i32 @strcat(ptr noundef %17, ptr noundef @.str.1)
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 0
%21 = call i32 @strcat(ptr noundef %19, ptr noundef %20)
ret void
}
declare i32 @calc_crc(ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6w4804d1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%u\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"|\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @msg_crc_concat(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca [8 x i8], align 1
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i32 @strlen(ptr noundef %8)
%10 = call i32 @calc_crc(ptr noundef %7, i32 noundef %9)
store i32 %10, ptr %5, align 4
%11 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 0
%12 = load i32, ptr %5, align 4
%13 = call i32 @sprintf(ptr noundef %11, ptr noundef @.str, i32 noundef %12)
%14 = load ptr, ptr %4, align 8
%15 = load ptr, ptr %3, align 8
%16 = call i32 @strcpy(ptr noundef %14, ptr noundef %15)
%17 = load ptr, ptr %4, align 8
%18 = call i32 @strcat(ptr noundef %17, ptr noundef @.str.1)
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 0
%21 = call i32 @strcat(ptr noundef %19, ptr noundef %20)
ret void
}
declare i32 @calc_crc(ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdxo217ly.c'
source_filename = "/tmp/tmpdxo217ly.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [711 x i8] c"usage: plebdisc [-file1 <str> (REQUIRED)]\0A\09[-file2 <str>]\0A\09[-P <n> (defaults to 4)]\0A\09[-B <n> (defaults to 100)]\0A\09[-T <n> (defaults to 0.5)]\0A\09[-D <n> (defaults to 10)]\0A\09[-S <n> (defaults to 32)]\0A\09[-xA <n> (defaults to 0)]\0A\09[-xB <n> (defaults to last frame)]\0A\09[-yA <n> (defaults to 0)]\0A\09[-yB <n> (defaults to last frame)]\0A\09[-maxframes <n> (defaults to no limit)]\0A\09[-medthr <n> (defaults to 0.5)]\0A\09[-castthr <n> (defaults to 7)]\0A\09[-trimthr <n> (defaults to 0.25)]\0A\09[-R <n> (defaults to 10)]\0A\09[-dx <n> (defaults to 25)]\0A\09[-dy <n> (defaults to 3)] ]\0A\09[-rhothr <n> (defalts to 0)]\0A\09[-twopass <n> (defaults to 1)] ]\0A\09[-Tscore <n> (defaults to 0.75)] ]\0A\09[-dtwscore <n> (defaults to 1)] ]\0A\09[-kws <n> (defaults to 0)] ]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = call i32 @fatal(ptr noundef @.str)
ret void
}
declare i32 @fatal(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdxo217ly.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [711 x i8] c"usage: plebdisc [-file1 <str> (REQUIRED)]\0A\09[-file2 <str>]\0A\09[-P <n> (defaults to 4)]\0A\09[-B <n> (defaults to 100)]\0A\09[-T <n> (defaults to 0.5)]\0A\09[-D <n> (defaults to 10)]\0A\09[-S <n> (defaults to 32)]\0A\09[-xA <n> (defaults to 0)]\0A\09[-xB <n> (defaults to last frame)]\0A\09[-yA <n> (defaults to 0)]\0A\09[-yB <n> (defaults to last frame)]\0A\09[-maxframes <n> (defaults to no limit)]\0A\09[-medthr <n> (defaults to 0.5)]\0A\09[-castthr <n> (defaults to 7)]\0A\09[-trimthr <n> (defaults to 0.25)]\0A\09[-R <n> (defaults to 10)]\0A\09[-dx <n> (defaults to 25)]\0A\09[-dy <n> (defaults to 3)] ]\0A\09[-rhothr <n> (defalts to 0)]\0A\09[-twopass <n> (defaults to 1)] ]\0A\09[-Tscore <n> (defaults to 0.75)] ]\0A\09[-dtwscore <n> (defaults to 1)] ]\0A\09[-kws <n> (defaults to 0)] ]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = call i32 @fatal(ptr noundef @.str)
ret void
}
declare i32 @fatal(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0vvor443.c'
source_filename = "/tmp/tmp0vvor443.c"
target datalayout = "e-m:e-p270: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 { i64 }
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @qfile_load(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %struct.stat, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%11 = load ptr, ptr %4, align 8
%12 = load i32, ptr @O_RDONLY, align 4
%13 = call i32 @open(ptr noundef %11, i32 noundef %12, i32 noundef 0)
store i32 %13, ptr %6, align 4
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %2
store ptr null, ptr %3, align 8
br label %74
16: ; preds = %2
%17 = load i32, ptr %6, align 4
%18 = call i64 @fstat(i32 noundef %17, ptr noundef %7)
%19 = icmp slt i64 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %16
%21 = load i32, ptr %6, align 4
%22 = call i32 @close(i32 noundef %21)
store ptr null, ptr %3, align 8
br label %74
23: ; preds = %16
%24 = getelementptr inbounds %struct.stat, ptr %7, i32 0, i32 0
%25 = load i64, ptr %24, align 8
store i64 %25, ptr %8, align 8
%26 = load ptr, ptr %5, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %28, label %41
28: ; preds = %23
%29 = load ptr, ptr %5, align 8
%30 = load i64, ptr %29, align 8
%31 = icmp ugt i64 %30, 0
br i1 %31, label %32, label %41
32: ; preds = %28
%33 = load ptr, ptr %5, align 8
%34 = load i64, ptr %33, align 8
%35 = getelementptr inbounds %struct.stat, ptr %7, i32 0, i32 0
%36 = load i64, ptr %35, align 8
%37 = icmp ult i64 %34, %36
br i1 %37, label %38, label %41
38: ; preds = %32
%39 = load ptr, ptr %5, align 8
%40 = load i64, ptr %39, align 8
store i64 %40, ptr %8, align 8
br label %41
41: ; preds = %38, %32, %28, %23
%42 = load i64, ptr %8, align 8
%43 = add i64 %42, 1
%44 = call ptr @malloc(i64 noundef %43) #3
store ptr %44, ptr %9, align 8
%45 = load ptr, ptr %9, align 8
%46 = icmp eq ptr %45, null
br i1 %46, label %47, label %50
47: ; preds = %41
%48 = load i32, ptr %6, align 4
%49 = call i32 @close(i32 noundef %48)
store ptr null, ptr %3, align 8
br label %74
50: ; preds = %41
%51 = load i32, ptr %6, align 4
%52 = load ptr, ptr %9, align 8
%53 = load i64, ptr %8, align 8
%54 = call i64 @read(i32 noundef %51, ptr noundef %52, i64 noundef %53)
store i64 %54, ptr %10, align 8
%55 = load i32, ptr %6, align 4
%56 = call i32 @close(i32 noundef %55)
%57 = load i64, ptr %10, align 8
%58 = load i64, ptr %8, align 8
%59 = icmp ne i64 %57, %58
br i1 %59, label %60, label %63
60: ; preds = %50
%61 = load ptr, ptr %9, align 8
%62 = call i32 @free(ptr noundef %61)
store ptr null, ptr %3, align 8
br label %74
63: ; preds = %50
%64 = load ptr, ptr %9, align 8
%65 = load i64, ptr %10, align 8
%66 = getelementptr inbounds i8, ptr %64, i64 %65
store i8 0, ptr %66, align 1
%67 = load ptr, ptr %5, align 8
%68 = icmp ne ptr %67, null
br i1 %68, label %69, label %72
69: ; preds = %63
%70 = load i64, ptr %10, align 8
%71 = load ptr, ptr %5, align 8
store i64 %70, ptr %71, align 8
br label %72
72: ; preds = %69, %63
%73 = load ptr, ptr %9, align 8
store ptr %73, ptr %3, align 8
br label %74
74: ; preds = %72, %60, %47, %20, %15
%75 = load ptr, ptr %3, align 8
ret ptr %75
}
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @fstat(i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #2
declare i64 @read(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { allocsize(0) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0vvor443.c"
target datalayout = "e-m:e-p270: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 { i64 }
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @qfile_load(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %struct.stat, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%11 = load ptr, ptr %4, align 8
%12 = load i32, ptr @O_RDONLY, align 4
%13 = call i32 @open(ptr noundef %11, i32 noundef %12, i32 noundef 0)
store i32 %13, ptr %6, align 4
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %2
store ptr null, ptr %3, align 8
br label %74
16: ; preds = %2
%17 = load i32, ptr %6, align 4
%18 = call i64 @fstat(i32 noundef %17, ptr noundef %7)
%19 = icmp slt i64 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %16
%21 = load i32, ptr %6, align 4
%22 = call i32 @close(i32 noundef %21)
store ptr null, ptr %3, align 8
br label %74
23: ; preds = %16
%24 = getelementptr inbounds %struct.stat, ptr %7, i32 0, i32 0
%25 = load i64, ptr %24, align 8
store i64 %25, ptr %8, align 8
%26 = load ptr, ptr %5, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %28, label %41
28: ; preds = %23
%29 = load ptr, ptr %5, align 8
%30 = load i64, ptr %29, align 8
%31 = icmp ugt i64 %30, 0
br i1 %31, label %32, label %41
32: ; preds = %28
%33 = load ptr, ptr %5, align 8
%34 = load i64, ptr %33, align 8
%35 = getelementptr inbounds %struct.stat, ptr %7, i32 0, i32 0
%36 = load i64, ptr %35, align 8
%37 = icmp ult i64 %34, %36
br i1 %37, label %38, label %41
38: ; preds = %32
%39 = load ptr, ptr %5, align 8
%40 = load i64, ptr %39, align 8
store i64 %40, ptr %8, align 8
br label %41
41: ; preds = %38, %32, %28, %23
%42 = load i64, ptr %8, align 8
%43 = add i64 %42, 1
%44 = call ptr @malloc(i64 noundef %43) #3
store ptr %44, ptr %9, align 8
%45 = load ptr, ptr %9, align 8
%46 = icmp eq ptr %45, null
br i1 %46, label %47, label %50
47: ; preds = %41
%48 = load i32, ptr %6, align 4
%49 = call i32 @close(i32 noundef %48)
store ptr null, ptr %3, align 8
br label %74
50: ; preds = %41
%51 = load i32, ptr %6, align 4
%52 = load ptr, ptr %9, align 8
%53 = load i64, ptr %8, align 8
%54 = call i64 @read(i32 noundef %51, ptr noundef %52, i64 noundef %53)
store i64 %54, ptr %10, align 8
%55 = load i32, ptr %6, align 4
%56 = call i32 @close(i32 noundef %55)
%57 = load i64, ptr %10, align 8
%58 = load i64, ptr %8, align 8
%59 = icmp ne i64 %57, %58
br i1 %59, label %60, label %63
60: ; preds = %50
%61 = load ptr, ptr %9, align 8
%62 = call i32 @free(ptr noundef %61)
store ptr null, ptr %3, align 8
br label %74
63: ; preds = %50
%64 = load ptr, ptr %9, align 8
%65 = load i64, ptr %10, align 8
%66 = getelementptr inbounds i8, ptr %64, i64 %65
store i8 0, ptr %66, align 1
%67 = load ptr, ptr %5, align 8
%68 = icmp ne ptr %67, null
br i1 %68, label %69, label %72
69: ; preds = %63
%70 = load i64, ptr %10, align 8
%71 = load ptr, ptr %5, align 8
store i64 %70, ptr %71, align 8
br label %72
72: ; preds = %69, %63
%73 = load ptr, ptr %9, align 8
store ptr %73, ptr %3, align 8
br label %74
74: ; preds = %72, %60, %47, %20, %15
%75 = load ptr, ptr %3, align 8
ret ptr %75
}
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @fstat(i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #2
declare i64 @read(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { allocsize(0) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpn7hwf0o7.c'
source_filename = "/tmp/tmpn7hwf0o7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @sample_Nor(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%5 = load double, ptr %4, align 8
%6 = call double (...) @snorm()
%7 = load double, ptr %3, align 8
%8 = call double @llvm.fmuladd.f64(double %5, double %6, double %7)
ret double %8
}
declare double @snorm(...) #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/tmpn7hwf0o7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @sample_Nor(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%5 = load double, ptr %4, align 8
%6 = call double (...) @snorm()
%7 = load double, ptr %3, align 8
%8 = call double @llvm.fmuladd.f64(double %5, double %6, double %7)
ret double %8
}
declare double @snorm(...) #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/tmpdyoy_6k9.c'
source_filename = "/tmp/tmpdyoy_6k9.c"
target datalayout = "e-m:e-p270: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/tmpdyoy_6k9.c"
target datalayout = "e-m:e-p270: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/tmpmigrtnc7.c'
source_filename = "/tmp/tmpmigrtnc7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @zcalloc(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%8 = load i64, ptr %4, align 8
%9 = load i64, ptr %5, align 8
%10 = mul i64 %8, %9
store i64 %10, ptr %6, align 8
%11 = load i64, ptr %6, align 8
%12 = call ptr @zmalloc(i64 noundef %11)
store ptr %12, ptr %7, align 8
%13 = load ptr, ptr %7, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = load ptr, ptr %7, align 8
store ptr %16, ptr %3, align 8
br label %22
17: ; preds = %2
%18 = load ptr, ptr %7, align 8
%19 = load i64, ptr %6, align 8
%20 = call i32 @memset(ptr noundef %18, i32 noundef 0, i64 noundef %19)
%21 = load ptr, ptr %7, align 8
store ptr %21, ptr %3, align 8
br label %22
22: ; preds = %17, %15
%23 = load ptr, ptr %3, align 8
ret ptr %23
}
declare ptr @zmalloc(i64 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmigrtnc7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @zcalloc(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%8 = load i64, ptr %4, align 8
%9 = load i64, ptr %5, align 8
%10 = mul i64 %8, %9
store i64 %10, ptr %6, align 8
%11 = load i64, ptr %6, align 8
%12 = call ptr @zmalloc(i64 noundef %11)
store ptr %12, ptr %7, align 8
%13 = load ptr, ptr %7, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = load ptr, ptr %7, align 8
store ptr %16, ptr %3, align 8
br label %22
17: ; preds = %2
%18 = load ptr, ptr %7, align 8
%19 = load i64, ptr %6, align 8
%20 = call i32 @memset(ptr noundef %18, i32 noundef 0, i64 noundef %19)
%21 = load ptr, ptr %7, align 8
store ptr %21, ptr %3, align 8
br label %22
22: ; preds = %17, %15
%23 = load ptr, ptr %3, align 8
ret ptr %23
}
declare ptr @zmalloc(i64 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpifkd_4g7.c'
source_filename = "/tmp/tmpifkd_4g7.c"
target datalayout = "e-m:e-p270: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
@.str = private unnamed_addr constant [4 x i8] c" %s\00", align 1
@LOG_WARNING = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [11 x i8] c"Execute:%s\00", align 1
@stdout = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@O_RDONLY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [29 x i8] c"Reopen of stdin to %s failed\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@O_APPEND = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [30 x i8] c"Reopen of stdout to %s failed\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"Reopen of stderr to %s failed\00", align 1
@.str.5 = private unnamed_addr constant [22 x i8] c"Exec \22%s\22 returned %d\00", align 1
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @execute(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%15 = load i32, ptr @PATH_MAX, align 4
%16 = zext i32 %15 to i64
%17 = call ptr @llvm.stacksave()
store ptr %17, ptr %9, align 8
%18 = alloca i8, i64 %16, align 16
store i64 %16, ptr %10, align 8
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
%19 = trunc i64 %16 to i32
%20 = call i32 @memset(ptr noundef %18, i32 noundef 0, i32 noundef %19)
store i32 0, ptr %11, align 4
br label %21
21: ; preds = %46, %4
%22 = load i32, ptr %11, align 4
%23 = icmp slt i32 %22, 16
br i1 %23, label %24, label %49
24: ; preds = %21
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %11, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds ptr, ptr %25, i64 %27
%29 = load ptr, ptr %28, align 8
%30 = icmp ne ptr %29, null
br i1 %30, label %31, label %44
31: ; preds = %24
%32 = call i32 @strlen(ptr noundef %18)
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %18, i64 %33
%35 = load i32, ptr @PATH_MAX, align 4
%36 = call i32 @strlen(ptr noundef %18)
%37 = sub nsw i32 %35, %36
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr %11, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds ptr, ptr %38, i64 %40
%42 = load ptr, ptr %41, align 8
%43 = call i32 @snprintf(ptr noundef %34, i32 noundef %37, ptr noundef @.str, ptr noundef %42)
br label %45
44: ; preds = %24
br label %49
45: ; preds = %31
br label %46
46: ; preds = %45
%47 = load i32, ptr %11, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %11, align 4
br label %21, !llvm.loop !6
49: ; preds = %44, %21
%50 = load i32, ptr @LOG_WARNING, align 4
%51 = call i32 (i32, ptr, ptr, ...) @syslog(i32 noundef %50, ptr noundef @.str.1, ptr noundef %18)
%52 = load i32, ptr @stdout, align 4
%53 = call i32 @fflush(i32 noundef %52)
%54 = load i32, ptr @stderr, align 4
%55 = call i32 @fflush(i32 noundef %54)
%56 = call i32 (...) @fork()
store i32 %56, ptr %12, align 4
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %125
58: ; preds = %49
%59 = call i32 @msleep(i32 noundef 150)
%60 = load ptr, ptr %6, align 8
%61 = icmp ne ptr %60, null
br i1 %61, label %62, label %74
62: ; preds = %58
%63 = call i32 @close(i32 noundef 0)
%64 = load ptr, ptr %6, align 8
%65 = load i32, ptr @O_RDONLY, align 4
%66 = call i32 (ptr, i32, ...) @open(ptr noundef %64, i32 noundef %65)
%67 = icmp ne i32 %66, 0
br i1 %67, label %68, label %73
68: ; preds = %62
%69 = load i32, ptr @LOG_WARNING, align 4
%70 = load ptr, ptr %6, align 8
%71 = call i32 (i32, ptr, ptr, ...) @syslog(i32 noundef %69, ptr noundef @.str.2, ptr noundef %70)
%72 = call i32 @_exit(i32 noundef -1) #4
unreachable
73: ; preds = %62
br label %74
74: ; preds = %73, %58
%75 = load ptr, ptr %7, align 8
%76 = icmp ne ptr %75, null
br i1 %76, label %77, label %93
77: ; preds = %74
%78 = call i32 @close(i32 noundef 1)
%79 = load ptr, ptr %7, align 8
%80 = load i32, ptr @O_WRONLY, align 4
%81 = load i32, ptr @O_APPEND, align 4
%82 = or i32 %80, %81
%83 = load i32, ptr @O_CREAT, align 4
%84 = or i32 %82, %83
%85 = call i32 (ptr, i32, ...) @open(ptr noundef %79, i32 noundef %84, i32 noundef 384)
%86 = icmp ne i32 %85, 1
br i1 %86, label %87, label %92
87: ; preds = %77
%88 = load i32, ptr @LOG_WARNING, align 4
%89 = load ptr, ptr %7, align 8
%90 = call i32 (i32, ptr, ptr, ...) @syslog(i32 noundef %88, ptr noundef @.str.3, ptr noundef %89)
%91 = call i32 @_exit(i32 noundef -1) #4
unreachable
92: ; preds = %77
br label %93
93: ; preds = %92, %74
%94 = load ptr, ptr %8, align 8
%95 = icmp ne ptr %94, null
br i1 %95, label %96, label %112
96: ; preds = %93
%97 = call i32 @close(i32 noundef 2)
%98 = load ptr, ptr %8, align 8
%99 = load i32, ptr @O_WRONLY, align 4
%100 = load i32, ptr @O_APPEND, align 4
%101 = or i32 %99, %100
%102 = load i32, ptr @O_CREAT, align 4
%103 = or i32 %101, %102
%104 = call i32 (ptr, i32, ...) @open(ptr noundef %98, i32 noundef %103, i32 noundef 384)
%105 = icmp ne i32 %104, 2
br i1 %105, label %106, label %111
106: ; preds = %96
%107 = load i32, ptr @LOG_WARNING, align 4
%108 = load ptr, ptr %8, align 8
%109 = call i32 (i32, ptr, ptr, ...) @syslog(i32 noundef %107, ptr noundef @.str.4, ptr noundef %108)
%110 = call i32 @_exit(i32 noundef -1) #4
unreachable
111: ; preds = %96
br label %112
112: ; preds = %111, %93
%113 = load ptr, ptr %5, align 8
%114 = getelementptr inbounds ptr, ptr %113, i64 0
%115 = load ptr, ptr %114, align 8
%116 = load ptr, ptr %5, align 8
%117 = call i32 @execv(ptr noundef %115, ptr noundef %116)
store i32 %117, ptr %14, align 4
%118 = load i32, ptr @LOG_WARNING, align 4
%119 = load ptr, ptr %5, align 8
%120 = getelementptr inbounds ptr, ptr %119, i64 0
%121 = load ptr, ptr %120, align 8
%122 = load i32, ptr %14, align 4
%123 = call i32 (i32, ptr, ptr, ...) @syslog(i32 noundef %118, ptr noundef @.str.5, ptr noundef %121, i32 noundef %122)
%124 = call i32 @_exit(i32 noundef -1) #4
unreachable
125: ; preds = %49
br label %126
126: ; preds = %144, %125
%127 = call i32 @wait(ptr noundef %13)
store i32 %127, ptr %14, align 4
br label %128
128: ; preds = %126
%129 = load i32, ptr %14, align 4
%130 = icmp sgt i32 %129, 0
br i1 %130, label %131, label %135
131: ; preds = %128
%132 = load i32, ptr %14, align 4
%133 = load i32, ptr %12, align 4
%134 = icmp ne i32 %132, %133
br i1 %134, label %144, label %135
135: ; preds = %131, %128
%136 = load i32, ptr %14, align 4
%137 = icmp eq i32 %136, -1
br i1 %137, label %138, label %142
138: ; preds = %135
%139 = load i64, ptr @errno, align 8
%140 = load i64, ptr @EINTR, align 8
%141 = icmp eq i64 %139, %140
br label %142
142: ; preds = %138, %135
%143 = phi i1 [ false, %135 ], [ %141, %138 ]
br label %144
144: ; preds = %142, %131
%145 = phi i1 [ true, %131 ], [ %143, %142 ]
br i1 %145, label %126, label %146, !llvm.loop !8
146: ; preds = %144
%147 = load ptr, ptr %9, align 8
call void @llvm.stackrestore(ptr %147)
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @syslog(i32 noundef, ptr noundef, ptr noundef, ...) #2
declare i32 @fflush(i32 noundef) #2
declare i32 @fork(...) #2
declare i32 @msleep(i32 noundef) #2
declare i32 @close(i32 noundef) #2
declare i32 @open(ptr noundef, i32 noundef, ...) #2
; Function Attrs: noreturn
declare i32 @_exit(i32 noundef) #3
declare i32 @execv(ptr noundef, ptr noundef) #2
declare i32 @wait(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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/tmpifkd_4g7.c"
target datalayout = "e-m:e-p270: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
@.str = private unnamed_addr constant [4 x i8] c" %s\00", align 1
@LOG_WARNING = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [11 x i8] c"Execute:%s\00", align 1
@stdout = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@O_RDONLY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [29 x i8] c"Reopen of stdin to %s failed\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@O_APPEND = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [30 x i8] c"Reopen of stdout to %s failed\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"Reopen of stderr to %s failed\00", align 1
@.str.5 = private unnamed_addr constant [22 x i8] c"Exec \22%s\22 returned %d\00", align 1
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @execute(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%15 = load i32, ptr @PATH_MAX, align 4
%16 = zext i32 %15 to i64
%17 = call ptr @llvm.stacksave()
store ptr %17, ptr %9, align 8
%18 = alloca i8, i64 %16, align 16
store i64 %16, ptr %10, align 8
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
%19 = trunc i64 %16 to i32
%20 = call i32 @memset(ptr noundef %18, i32 noundef 0, i32 noundef %19)
store i32 0, ptr %11, align 4
%21 = load i32, ptr %11, align 4
%22 = icmp slt i32 %21, 16
br i1 %22, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %4
br label %23
23: ; preds = %.lr.ph, %45
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr %11, 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 %30, label %43
30: ; preds = %23
%31 = call i32 @strlen(ptr noundef %18)
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %18, i64 %32
%34 = load i32, ptr @PATH_MAX, align 4
%35 = call i32 @strlen(ptr noundef %18)
%36 = sub nsw i32 %34, %35
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %11, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds ptr, ptr %37, i64 %39
%41 = load ptr, ptr %40, align 8
%42 = call i32 @snprintf(ptr noundef %33, i32 noundef %36, ptr noundef @.str, ptr noundef %41)
br label %44
43: ; preds = %23
br label %50
44: ; preds = %30
br label %45
45: ; preds = %44
%46 = load i32, ptr %11, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %11, align 4
%48 = load i32, ptr %11, align 4
%49 = icmp slt i32 %48, 16
br i1 %49, label %23, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %45
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %4
br label %50
50: ; preds = %.loopexit, %43
%51 = load i32, ptr @LOG_WARNING, align 4
%52 = call i32 (i32, ptr, ptr, ...) @syslog(i32 noundef %51, ptr noundef @.str.1, ptr noundef %18)
%53 = load i32, ptr @stdout, align 4
%54 = call i32 @fflush(i32 noundef %53)
%55 = load i32, ptr @stderr, align 4
%56 = call i32 @fflush(i32 noundef %55)
%57 = call i32 (...) @fork()
store i32 %57, ptr %12, align 4
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %126
59: ; preds = %50
%60 = call i32 @msleep(i32 noundef 150)
%61 = load ptr, ptr %6, align 8
%62 = icmp ne ptr %61, null
br i1 %62, label %63, label %75
63: ; preds = %59
%64 = call i32 @close(i32 noundef 0)
%65 = load ptr, ptr %6, align 8
%66 = load i32, ptr @O_RDONLY, align 4
%67 = call i32 (ptr, i32, ...) @open(ptr noundef %65, i32 noundef %66)
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %74
69: ; preds = %63
%70 = load i32, ptr @LOG_WARNING, align 4
%71 = load ptr, ptr %6, align 8
%72 = call i32 (i32, ptr, ptr, ...) @syslog(i32 noundef %70, ptr noundef @.str.2, ptr noundef %71)
%73 = call i32 @_exit(i32 noundef -1) #4
unreachable
74: ; preds = %63
br label %75
75: ; preds = %74, %59
%76 = load ptr, ptr %7, align 8
%77 = icmp ne ptr %76, null
br i1 %77, label %78, label %94
78: ; preds = %75
%79 = call i32 @close(i32 noundef 1)
%80 = load ptr, ptr %7, align 8
%81 = load i32, ptr @O_WRONLY, align 4
%82 = load i32, ptr @O_APPEND, align 4
%83 = or i32 %81, %82
%84 = load i32, ptr @O_CREAT, align 4
%85 = or i32 %83, %84
%86 = call i32 (ptr, i32, ...) @open(ptr noundef %80, i32 noundef %85, i32 noundef 384)
%87 = icmp ne i32 %86, 1
br i1 %87, label %88, label %93
88: ; preds = %78
%89 = load i32, ptr @LOG_WARNING, align 4
%90 = load ptr, ptr %7, align 8
%91 = call i32 (i32, ptr, ptr, ...) @syslog(i32 noundef %89, ptr noundef @.str.3, ptr noundef %90)
%92 = call i32 @_exit(i32 noundef -1) #4
unreachable
93: ; preds = %78
br label %94
94: ; preds = %93, %75
%95 = load ptr, ptr %8, align 8
%96 = icmp ne ptr %95, null
br i1 %96, label %97, label %113
97: ; preds = %94
%98 = call i32 @close(i32 noundef 2)
%99 = load ptr, ptr %8, align 8
%100 = load i32, ptr @O_WRONLY, align 4
%101 = load i32, ptr @O_APPEND, align 4
%102 = or i32 %100, %101
%103 = load i32, ptr @O_CREAT, align 4
%104 = or i32 %102, %103
%105 = call i32 (ptr, i32, ...) @open(ptr noundef %99, i32 noundef %104, i32 noundef 384)
%106 = icmp ne i32 %105, 2
br i1 %106, label %107, label %112
107: ; preds = %97
%108 = load i32, ptr @LOG_WARNING, align 4
%109 = load ptr, ptr %8, align 8
%110 = call i32 (i32, ptr, ptr, ...) @syslog(i32 noundef %108, ptr noundef @.str.4, ptr noundef %109)
%111 = call i32 @_exit(i32 noundef -1) #4
unreachable
112: ; preds = %97
br label %113
113: ; preds = %112, %94
%114 = load ptr, ptr %5, align 8
%115 = getelementptr inbounds ptr, ptr %114, i64 0
%116 = load ptr, ptr %115, align 8
%117 = load ptr, ptr %5, align 8
%118 = call i32 @execv(ptr noundef %116, ptr noundef %117)
store i32 %118, ptr %14, align 4
%119 = load i32, ptr @LOG_WARNING, align 4
%120 = load ptr, ptr %5, align 8
%121 = getelementptr inbounds ptr, ptr %120, i64 0
%122 = load ptr, ptr %121, align 8
%123 = load i32, ptr %14, align 4
%124 = call i32 (i32, ptr, ptr, ...) @syslog(i32 noundef %119, ptr noundef @.str.5, ptr noundef %122, i32 noundef %123)
%125 = call i32 @_exit(i32 noundef -1) #4
unreachable
126: ; preds = %50
br label %127
127: ; preds = %145, %126
%128 = call i32 @wait(ptr noundef %13)
store i32 %128, ptr %14, align 4
br label %129
129: ; preds = %127
%130 = load i32, ptr %14, align 4
%131 = icmp sgt i32 %130, 0
br i1 %131, label %132, label %136
132: ; preds = %129
%133 = load i32, ptr %14, align 4
%134 = load i32, ptr %12, align 4
%135 = icmp ne i32 %133, %134
br i1 %135, label %145, label %136
136: ; preds = %132, %129
%137 = load i32, ptr %14, align 4
%138 = icmp eq i32 %137, -1
br i1 %138, label %139, label %143
139: ; preds = %136
%140 = load i64, ptr @errno, align 8
%141 = load i64, ptr @EINTR, align 8
%142 = icmp eq i64 %140, %141
br label %143
143: ; preds = %139, %136
%144 = phi i1 [ false, %136 ], [ %142, %139 ]
br label %145
145: ; preds = %143, %132
%146 = phi i1 [ true, %132 ], [ %144, %143 ]
br i1 %146, label %127, label %147, !llvm.loop !8
147: ; preds = %145
%148 = load ptr, ptr %9, align 8
call void @llvm.stackrestore(ptr %148)
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @syslog(i32 noundef, ptr noundef, ptr noundef, ...) #2
declare i32 @fflush(i32 noundef) #2
declare i32 @fork(...) #2
declare i32 @msleep(i32 noundef) #2
declare i32 @close(i32 noundef) #2
declare i32 @open(ptr noundef, i32 noundef, ...) #2
; Function Attrs: noreturn
declare i32 @_exit(i32 noundef) #3
declare i32 @execv(ptr noundef, ptr noundef) #2
declare i32 @wait(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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/tmpps1k437u.c'
source_filename = "/tmp/tmpps1k437u.c"
target datalayout = "e-m:e-p270: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 [25 x i8] c"Failed registring pool 1\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"Failed registring pool 2\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"Failed registring pool 3\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @register_pools() #0 {
%1 = call i32 (...) @register_pool_1()
%2 = icmp eq i32 -1, %1
br i1 %2, label %3, label %11
3: ; preds = %0
br label %4
4: ; preds = %3
%5 = load i32, ptr @stderr, align 4
%6 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fflush(i32 noundef %7)
%9 = call i32 @exit(i32 noundef -1) #3
unreachable
10: ; No predecessors!
br label %11
11: ; preds = %10, %0
%12 = call i32 (...) @register_pool_2()
%13 = icmp eq i32 -1, %12
br i1 %13, label %14, label %22
14: ; preds = %11
br label %15
15: ; preds = %14
%16 = load i32, ptr @stderr, align 4
%17 = call i32 @fprintf(i32 noundef %16, ptr noundef @.str.1)
%18 = load i32, ptr @stderr, align 4
%19 = call i32 @fflush(i32 noundef %18)
%20 = call i32 @exit(i32 noundef -1) #3
unreachable
21: ; No predecessors!
br label %22
22: ; preds = %21, %11
%23 = call i32 (...) @register_pool_3()
%24 = icmp eq i32 -1, %23
br i1 %24, label %25, label %33
25: ; preds = %22
br label %26
26: ; preds = %25
%27 = load i32, ptr @stderr, align 4
%28 = call i32 @fprintf(i32 noundef %27, ptr noundef @.str.2)
%29 = load i32, ptr @stderr, align 4
%30 = call i32 @fflush(i32 noundef %29)
%31 = call i32 @exit(i32 noundef -1) #3
unreachable
32: ; No predecessors!
br label %33
33: ; preds = %32, %22
ret i32 0
}
declare i32 @register_pool_1(...) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @fflush(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @register_pool_2(...) #1
declare i32 @register_pool_3(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpps1k437u.c"
target datalayout = "e-m:e-p270: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 [25 x i8] c"Failed registring pool 1\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"Failed registring pool 2\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"Failed registring pool 3\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @register_pools() #0 {
%1 = call i32 (...) @register_pool_1()
%2 = icmp eq i32 -1, %1
br i1 %2, label %3, label %11
3: ; preds = %0
br label %4
4: ; preds = %3
%5 = load i32, ptr @stderr, align 4
%6 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fflush(i32 noundef %7)
%9 = call i32 @exit(i32 noundef -1) #3
unreachable
10: ; No predecessors!
br label %11
11: ; preds = %10, %0
%12 = call i32 (...) @register_pool_2()
%13 = icmp eq i32 -1, %12
br i1 %13, label %14, label %22
14: ; preds = %11
br label %15
15: ; preds = %14
%16 = load i32, ptr @stderr, align 4
%17 = call i32 @fprintf(i32 noundef %16, ptr noundef @.str.1)
%18 = load i32, ptr @stderr, align 4
%19 = call i32 @fflush(i32 noundef %18)
%20 = call i32 @exit(i32 noundef -1) #3
unreachable
21: ; No predecessors!
br label %22
22: ; preds = %21, %11
%23 = call i32 (...) @register_pool_3()
%24 = icmp eq i32 -1, %23
br i1 %24, label %25, label %33
25: ; preds = %22
br label %26
26: ; preds = %25
%27 = load i32, ptr @stderr, align 4
%28 = call i32 @fprintf(i32 noundef %27, ptr noundef @.str.2)
%29 = load i32, ptr @stderr, align 4
%30 = call i32 @fflush(i32 noundef %29)
%31 = call i32 @exit(i32 noundef -1) #3
unreachable
32: ; No predecessors!
br label %33
33: ; preds = %32, %22
ret i32 0
}
declare i32 @register_pool_1(...) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @fflush(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @register_pool_2(...) #1
declare i32 @register_pool_3(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmp33f_79ce.c'
source_filename = "/tmp/tmp33f_79ce.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"string less than target\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @strend(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %7, align 8
br label %10
10: ; preds = %15, %2
%11 = load ptr, ptr %6, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %6, align 8
%13 = load i8, ptr %12, align 1
%14 = icmp ne i8 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %10
br label %10, !llvm.loop !6
16: ; preds = %10
br label %17
17: ; preds = %22, %16
%18 = load ptr, ptr %7, align 8
%19 = getelementptr inbounds i8, ptr %18, i32 1
store ptr %19, ptr %7, align 8
%20 = load i8, ptr %19, align 1
%21 = icmp ne i8 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %17
br label %17, !llvm.loop !8
23: ; preds = %17
%24 = load ptr, ptr %6, align 8
%25 = load ptr, ptr %5, align 8
%26 = ptrtoint ptr %24 to i64
%27 = ptrtoint ptr %25 to i64
%28 = sub i64 %26, %27
%29 = load ptr, ptr %7, align 8
%30 = load ptr, ptr %4, align 8
%31 = ptrtoint ptr %29 to i64
%32 = ptrtoint ptr %30 to i64
%33 = sub i64 %31, %32
%34 = icmp sle i64 %28, %33
br i1 %34, label %37, label %35
35: ; preds = %23
%36 = call i32 @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %81
37: ; preds = %23
%38 = load ptr, ptr %4, align 8
%39 = load ptr, ptr %7, align 8
%40 = load ptr, ptr %4, align 8
%41 = ptrtoint ptr %39 to i64
%42 = ptrtoint ptr %40 to i64
%43 = sub i64 %41, %42
%44 = load ptr, ptr %6, align 8
%45 = load ptr, ptr %5, align 8
%46 = ptrtoint ptr %44 to i64
%47 = ptrtoint ptr %45 to i64
%48 = sub i64 %46, %47
%49 = sub nsw i64 %43, %48
%50 = getelementptr inbounds i8, ptr %38, i64 %49
store ptr %50, ptr %4, align 8
br label %51
51: ; preds = %73, %37
%52 = load ptr, ptr %4, align 8
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = icmp ne i32 %54, 0
br i1 %55, label %56, label %61
56: ; preds = %51
%57 = load ptr, ptr %5, align 8
%58 = load i8, ptr %57, align 1
%59 = sext i8 %58 to i32
%60 = icmp ne i32 %59, 0
br label %61
61: ; preds = %56, %51
%62 = phi i1 [ false, %51 ], [ %60, %56 ]
br i1 %62, label %63, label %80
63: ; preds = %61
%64 = load ptr, ptr %4, align 8
%65 = load i8, ptr %64, align 1
%66 = sext i8 %65 to i32
%67 = load ptr, ptr %5, align 8
%68 = load i8, ptr %67, align 1
%69 = sext i8 %68 to i32
%70 = icmp ne i32 %66, %69
br i1 %70, label %71, label %72
71: ; preds = %63
store i32 0, ptr %3, align 4
br label %81
72: ; preds = %63
br label %73
73: ; preds = %72
%74 = load ptr, ptr %4, align 8
%75 = getelementptr inbounds i8, ptr %74, i32 1
store ptr %75, ptr %4, align 8
%76 = load i8, ptr %74, align 1
%77 = load ptr, ptr %5, align 8
%78 = getelementptr inbounds i8, ptr %77, i32 1
store ptr %78, ptr %5, align 8
%79 = load i8, ptr %77, align 1
br label %51, !llvm.loop !9
80: ; preds = %61
store i32 1, ptr %3, align 4
br label %81
81: ; preds = %80, %71, %35
%82 = load i32, ptr %3, align 4
ret i32 %82
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp33f_79ce.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"string less than target\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @strend(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %7, align 8
br label %10
10: ; preds = %10, %2
%11 = load ptr, ptr %6, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %6, align 8
%13 = load i8, ptr %12, align 1
%14 = icmp ne i8 %13, 0
br i1 %14, label %10, label %15, !llvm.loop !6
15: ; preds = %10
br label %16
16: ; preds = %16, %15
%17 = load ptr, ptr %7, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %7, align 8
%19 = load i8, ptr %18, align 1
%20 = icmp ne i8 %19, 0
br i1 %20, label %16, label %21, !llvm.loop !8
21: ; preds = %16
%22 = load ptr, ptr %6, align 8
%23 = load ptr, ptr %5, align 8
%24 = ptrtoint ptr %22 to i64
%25 = ptrtoint ptr %23 to i64
%26 = sub i64 %24, %25
%27 = load ptr, ptr %7, align 8
%28 = load ptr, ptr %4, align 8
%29 = ptrtoint ptr %27 to i64
%30 = ptrtoint ptr %28 to i64
%31 = sub i64 %29, %30
%32 = icmp sle i64 %26, %31
br i1 %32, label %35, label %33
33: ; preds = %21
%34 = call i32 @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %79
35: ; preds = %21
%36 = load ptr, ptr %4, align 8
%37 = load ptr, ptr %7, align 8
%38 = load ptr, ptr %4, align 8
%39 = ptrtoint ptr %37 to i64
%40 = ptrtoint ptr %38 to i64
%41 = sub i64 %39, %40
%42 = load ptr, ptr %6, align 8
%43 = load ptr, ptr %5, align 8
%44 = ptrtoint ptr %42 to i64
%45 = ptrtoint ptr %43 to i64
%46 = sub i64 %44, %45
%47 = sub nsw i64 %41, %46
%48 = getelementptr inbounds i8, ptr %36, i64 %47
store ptr %48, ptr %4, align 8
br label %49
49: ; preds = %71, %35
%50 = load ptr, ptr %4, align 8
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %59
54: ; preds = %49
%55 = load ptr, ptr %5, align 8
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = icmp ne i32 %57, 0
br label %59
59: ; preds = %54, %49
%60 = phi i1 [ false, %49 ], [ %58, %54 ]
br i1 %60, label %61, label %78
61: ; preds = %59
%62 = load ptr, ptr %4, align 8
%63 = load i8, ptr %62, align 1
%64 = sext i8 %63 to i32
%65 = load ptr, ptr %5, align 8
%66 = load i8, ptr %65, align 1
%67 = sext i8 %66 to i32
%68 = icmp ne i32 %64, %67
br i1 %68, label %69, label %70
69: ; preds = %61
store i32 0, ptr %3, align 4
br label %79
70: ; preds = %61
br label %71
71: ; preds = %70
%72 = load ptr, ptr %4, align 8
%73 = getelementptr inbounds i8, ptr %72, i32 1
store ptr %73, ptr %4, align 8
%74 = load i8, ptr %72, align 1
%75 = load ptr, ptr %5, align 8
%76 = getelementptr inbounds i8, ptr %75, i32 1
store ptr %76, ptr %5, align 8
%77 = load i8, ptr %75, align 1
br label %49, !llvm.loop !9
78: ; preds = %59
store i32 1, ptr %3, align 4
br label %79
79: ; preds = %78, %69, %33
%80 = load i32, ptr %3, align 4
ret i32 %80
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpx9fh48zd.c'
source_filename = "/tmp/tmpx9fh48zd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define weak dso_local void @UART1_RX_TX_IRQHandler() #0 {
%1 = call i32 (...) @UART1_RX_TX_DriverIRQHandler()
ret void
}
declare i32 @UART1_RX_TX_DriverIRQHandler(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx9fh48zd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define weak dso_local void @UART1_RX_TX_IRQHandler() #0 {
%1 = call i32 (...) @UART1_RX_TX_DriverIRQHandler()
ret void
}
declare i32 @UART1_RX_TX_DriverIRQHandler(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpd61qzerk.c'
source_filename = "/tmp/tmpd61qzerk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"begin\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"end\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 (...) @kb_wait_1()
%4 = call i32 (...) @kb_wait_2()
%5 = call i32 (...) @kb_wait_2_1()
%6 = call i32 (...) @kb_wait_2_2()
%7 = call i32 (...) @kb_wait_3()
%8 = call i32 (...) @kb_wait_4()
%9 = call i32 @printf(ptr noundef @.str.1)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @kb_wait_1(...) #1
declare i32 @kb_wait_2(...) #1
declare i32 @kb_wait_2_1(...) #1
declare i32 @kb_wait_2_2(...) #1
declare i32 @kb_wait_3(...) #1
declare i32 @kb_wait_4(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd61qzerk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"begin\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"end\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 (...) @kb_wait_1()
%4 = call i32 (...) @kb_wait_2()
%5 = call i32 (...) @kb_wait_2_1()
%6 = call i32 (...) @kb_wait_2_2()
%7 = call i32 (...) @kb_wait_3()
%8 = call i32 (...) @kb_wait_4()
%9 = call i32 @printf(ptr noundef @.str.1)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @kb_wait_1(...) #1
declare i32 @kb_wait_2(...) #1
declare i32 @kb_wait_2_1(...) #1
declare i32 @kb_wait_2_2(...) #1
declare i32 @kb_wait_3(...) #1
declare i32 @kb_wait_4(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp92qwbfdl.c'
source_filename = "/tmp/tmp92qwbfdl.c"
target datalayout = "e-m:e-p270: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 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [19 x i8] c"usage: %s <delta>\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"adjtime\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.timeval, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %15
9: ; preds = %2
%10 = load i32, ptr @stderr, align 4
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 0
%13 = load ptr, ptr %12, align 8
%14 = call i32 @fprintf(i32 noundef %10, ptr noundef @.str, ptr noundef %13)
store i32 1, ptr %3, align 4
br label %28
15: ; preds = %2
%16 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 1
store i64 0, ptr %16, align 8
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = call i32 @atof(ptr noundef %19)
%21 = mul nsw i32 %20, 1000
%22 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 0
store i32 %21, ptr %22, align 8
%23 = call i64 @adjtime(ptr noundef %6, i32 noundef 0)
%24 = icmp ne i64 0, %23
br i1 %24, label %25, label %27
25: ; preds = %15
%26 = call i32 @perror(ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %28
27: ; preds = %15
store i32 0, ptr %3, align 4
br label %28
28: ; preds = %27, %25, %9
%29 = load i32, ptr %3, align 4
ret i32 %29
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @atof(ptr noundef) #1
declare i64 @adjtime(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp92qwbfdl.c"
target datalayout = "e-m:e-p270: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 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [19 x i8] c"usage: %s <delta>\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"adjtime\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.timeval, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %15
9: ; preds = %2
%10 = load i32, ptr @stderr, align 4
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 0
%13 = load ptr, ptr %12, align 8
%14 = call i32 @fprintf(i32 noundef %10, ptr noundef @.str, ptr noundef %13)
store i32 1, ptr %3, align 4
br label %28
15: ; preds = %2
%16 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 1
store i64 0, ptr %16, align 8
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = call i32 @atof(ptr noundef %19)
%21 = mul nsw i32 %20, 1000
%22 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 0
store i32 %21, ptr %22, align 8
%23 = call i64 @adjtime(ptr noundef %6, i32 noundef 0)
%24 = icmp ne i64 0, %23
br i1 %24, label %25, label %27
25: ; preds = %15
%26 = call i32 @perror(ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %28
27: ; preds = %15
store i32 0, ptr %3, align 4
br label %28
28: ; preds = %27, %25, %9
%29 = load i32, ptr %3, align 4
ret i32 %29
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @atof(ptr noundef) #1
declare i64 @adjtime(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyc_oep4p.c'
source_filename = "/tmp/tmpyc_oep4p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@BUFSIZ = dso_local global i32 0, align 4
@REG_EXTENDED = dso_local global i32 0, align 4
@REG_NOMATCH = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyc_oep4p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@BUFSIZ = dso_local global i32 0, align 4
@REG_EXTENDED = dso_local global i32 0, align 4
@REG_NOMATCH = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprmgfsq94.c'
source_filename = "/tmp/tmprmgfsq94.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @copy_standard_laursys_witset(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @_ada_use_c2phc4c(i32 noundef 852, ptr noundef %2, ptr noundef %6, ptr noundef %7, i32 noundef 0)
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
ret i32 %9
}
declare i32 @_ada_use_c2phc4c(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprmgfsq94.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @copy_standard_laursys_witset(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @_ada_use_c2phc4c(i32 noundef 852, ptr noundef %2, ptr noundef %6, ptr noundef %7, i32 noundef 0)
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
ret i32 %9
}
declare i32 @_ada_use_c2phc4c(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplic3ak7c.c'
source_filename = "/tmp/tmplic3ak7c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @userMultiply()
ret i32 0
}
declare i32 @userMultiply(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplic3ak7c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @userMultiply()
ret i32 0
}
declare i32 @userMultiply(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5st7x9j2.c'
source_filename = "/tmp/tmp5st7x9j2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isdigit.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isdigit should be 0 for 0xd5\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isdigit_0xd5() #0 {
%1 = call i64 @isdigit(i32 noundef 213)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 1070, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isdigit(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/tmp5st7x9j2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isdigit.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isdigit should be 0 for 0xd5\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isdigit_0xd5() #0 {
%1 = call i64 @isdigit(i32 noundef 213)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 1070, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isdigit(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/tmpaszbqwww.c'
source_filename = "/tmp/tmpaszbqwww.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = call i32 (...) @t1()
ret void
}
declare i32 @t1(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaszbqwww.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = call i32 (...) @t1()
ret void
}
declare i32 @t1(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpixwe2co9.c'
source_filename = "/tmp/tmpixwe2co9.c"
target datalayout = "e-m:e-p270: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
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [34 x i8] c"Error reading tree. Found \22,%c\22.\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @GetTreeElt(ptr noundef %0) #0 {
%2 = alloca i8, align 1
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
store ptr %0, ptr %3, align 8
br label %5
5: ; preds = %12, %1
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %6, align 8
%8 = getelementptr inbounds i8, ptr %7, i32 1
store ptr %8, ptr %6, align 8
%9 = load i8, ptr %7, align 1
store i8 %9, ptr %4, align 1
%10 = call i64 @isspace(i8 noundef signext %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %5
br label %5, !llvm.loop !6
13: ; preds = %5
%14 = load i8, ptr %4, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 41
br i1 %16, label %31, label %17
17: ; preds = %13
%18 = load i8, ptr %4, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 40
br i1 %20, label %31, label %21
21: ; preds = %17
%22 = load i8, ptr %4, align 1
%23 = sext i8 %22 to i32
%24 = load i8, ptr @EOF, align 1
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %23, %25
br i1 %26, label %31, label %27
27: ; preds = %21
%28 = load i8, ptr %4, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 58
br i1 %30, label %31, label %33
31: ; preds = %27, %21, %17, %13
%32 = load i8, ptr %4, align 1
store i8 %32, ptr %2, align 1
br label %66
33: ; preds = %27
%34 = load i8, ptr %4, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 44, %35
br i1 %36, label %37, label %61
37: ; preds = %33
br label %38
38: ; preds = %45, %37
%39 = load ptr, ptr %3, align 8
%40 = load ptr, ptr %39, align 8
%41 = getelementptr inbounds i8, ptr %40, i32 1
store ptr %41, ptr %39, align 8
%42 = load i8, ptr %40, align 1
store i8 %42, ptr %4, align 1
%43 = call i64 @isspace(i8 noundef signext %42)
%44 = icmp ne i64 %43, 0
br i1 %44, label %45, label %46
45: ; preds = %38
br label %38, !llvm.loop !8
46: ; preds = %38
%47 = load i8, ptr %4, align 1
%48 = sext i8 %47 to i32
switch i32 %48, label %56 [
i32 40, label %49
i32 58, label %50
i32 44, label %50
]
49: ; preds = %46
store i8 40, ptr %2, align 1
br label %66
50: ; preds = %46, %46
%51 = load i32, ptr @stderr, align 4
%52 = load i8, ptr %4, align 1
%53 = call i32 @fprintf(i32 noundef %51, ptr noundef @.str, i8 noundef signext %52)
%54 = load i32, ptr @EXIT_FAILURE, align 4
%55 = call i32 @exit(i32 noundef %54) #3
unreachable
56: ; preds = %46
%57 = load ptr, ptr %3, align 8
%58 = load ptr, ptr %57, align 8
%59 = getelementptr inbounds i8, ptr %58, i32 -1
store ptr %59, ptr %57, align 8
%60 = load i8, ptr %58, align 1
store i8 44, ptr %2, align 1
br label %66
61: ; preds = %33
%62 = load ptr, ptr %3, align 8
%63 = load ptr, ptr %62, align 8
%64 = getelementptr inbounds i8, ptr %63, i32 -1
store ptr %64, ptr %62, align 8
store i8 44, ptr %4, align 1
%65 = load i8, ptr %4, align 1
store i8 %65, ptr %2, align 1
br label %66
66: ; preds = %61, %56, %49, %31
%67 = load i8, ptr %2, align 1
ret i8 %67
}
declare i64 @isspace(i8 noundef signext) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i8 noundef signext) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpixwe2co9.c"
target datalayout = "e-m:e-p270: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
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [34 x i8] c"Error reading tree. Found \22,%c\22.\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @GetTreeElt(ptr noundef %0) #0 {
%2 = alloca i8, align 1
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
store ptr %0, ptr %3, align 8
br label %5
5: ; preds = %5, %1
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %6, align 8
%8 = getelementptr inbounds i8, ptr %7, i32 1
store ptr %8, ptr %6, align 8
%9 = load i8, ptr %7, align 1
store i8 %9, ptr %4, align 1
%10 = call i64 @isspace(i8 noundef signext %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %5, label %12, !llvm.loop !6
12: ; preds = %5
%13 = load i8, ptr %4, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 41
br i1 %15, label %30, label %16
16: ; preds = %12
%17 = load i8, ptr %4, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 40
br i1 %19, label %30, label %20
20: ; preds = %16
%21 = load i8, ptr %4, align 1
%22 = sext i8 %21 to i32
%23 = load i8, ptr @EOF, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %22, %24
br i1 %25, label %30, label %26
26: ; preds = %20
%27 = load i8, ptr %4, align 1
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %28, 58
br i1 %29, label %30, label %32
30: ; preds = %26, %20, %16, %12
%31 = load i8, ptr %4, align 1
store i8 %31, ptr %2, align 1
br label %64
32: ; preds = %26
%33 = load i8, ptr %4, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 44, %34
br i1 %35, label %36, label %59
36: ; preds = %32
br label %37
37: ; preds = %37, %36
%38 = load ptr, ptr %3, align 8
%39 = load ptr, ptr %38, align 8
%40 = getelementptr inbounds i8, ptr %39, i32 1
store ptr %40, ptr %38, align 8
%41 = load i8, ptr %39, align 1
store i8 %41, ptr %4, align 1
%42 = call i64 @isspace(i8 noundef signext %41)
%43 = icmp ne i64 %42, 0
br i1 %43, label %37, label %44, !llvm.loop !8
44: ; preds = %37
%45 = load i8, ptr %4, align 1
%46 = sext i8 %45 to i32
switch i32 %46, label %54 [
i32 40, label %47
i32 58, label %48
i32 44, label %48
]
47: ; preds = %44
store i8 40, ptr %2, align 1
br label %64
48: ; preds = %44, %44
%49 = load i32, ptr @stderr, align 4
%50 = load i8, ptr %4, align 1
%51 = call i32 @fprintf(i32 noundef %49, ptr noundef @.str, i8 noundef signext %50)
%52 = load i32, ptr @EXIT_FAILURE, align 4
%53 = call i32 @exit(i32 noundef %52) #3
unreachable
54: ; preds = %44
%55 = load ptr, ptr %3, align 8
%56 = load ptr, ptr %55, align 8
%57 = getelementptr inbounds i8, ptr %56, i32 -1
store ptr %57, ptr %55, align 8
%58 = load i8, ptr %56, align 1
store i8 44, ptr %2, align 1
br label %64
59: ; preds = %32
%60 = load ptr, ptr %3, align 8
%61 = load ptr, ptr %60, align 8
%62 = getelementptr inbounds i8, ptr %61, i32 -1
store ptr %62, ptr %60, align 8
store i8 44, ptr %4, align 1
%63 = load i8, ptr %4, align 1
store i8 %63, ptr %2, align 1
br label %64
64: ; preds = %59, %54, %47, %30
%65 = load i8, ptr %2, align 1
ret i8 %65
}
declare i64 @isspace(i8 noundef signext) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i8 noundef signext) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpq57sw3u6.c'
source_filename = "/tmp/tmpq57sw3u6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"i = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 10, ptr %6, align 4
br label %7
7: ; preds = %10, %2
%8 = load i32, ptr %6, align 4
%9 = icmp slt i32 %8, 20
br i1 %9, label %10, label %15
10: ; preds = %7
%11 = load i32, ptr %6, align 4
%12 = call i32 @printf(ptr noundef @.str, i32 noundef %11)
%13 = load i32, ptr %6, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %6, align 4
br label %7, !llvm.loop !6
15: ; preds = %7
br label %16
16: ; preds = %21, %15
%17 = load i32, ptr %6, align 4
%18 = call i32 @printf(ptr noundef @.str, i32 noundef %17)
%19 = load i32, ptr %6, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %6, align 4
br label %21
21: ; preds = %16
%22 = load i32, ptr %6, align 4
%23 = icmp slt i32 %22, 20
br i1 %23, label %16, label %24, !llvm.loop !8
24: ; preds = %21
br label %25
25: ; preds = %30, %24
%26 = load i32, ptr %6, align 4
%27 = call i32 @printf(ptr noundef @.str, i32 noundef %26)
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %6, align 4
br label %30
30: ; preds = %25
%31 = load i32, ptr %6, align 4
%32 = icmp slt i32 %31, 20
br i1 %32, label %25, label %33, !llvm.loop !9
33: ; preds = %30
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq57sw3u6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"i = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 10, ptr %6, align 4
%7 = load i32, ptr %6, align 4
%8 = icmp slt i32 %7, 20
br i1 %8, label %.lr.ph, label %16
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %9
%10 = load i32, ptr %6, align 4
%11 = call i32 @printf(ptr noundef @.str, i32 noundef %10)
%12 = load i32, ptr %6, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %6, align 4
%14 = load i32, ptr %6, align 4
%15 = icmp slt i32 %14, 20
br i1 %15, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %16
16: ; preds = %._crit_edge, %2
br label %17
17: ; preds = %22, %16
%18 = load i32, ptr %6, align 4
%19 = call i32 @printf(ptr noundef @.str, i32 noundef %18)
%20 = load i32, ptr %6, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %6, align 4
br label %22
22: ; preds = %17
%23 = load i32, ptr %6, align 4
%24 = icmp slt i32 %23, 20
br i1 %24, label %17, label %25, !llvm.loop !8
25: ; preds = %22
br label %26
26: ; preds = %31, %25
%27 = load i32, ptr %6, align 4
%28 = call i32 @printf(ptr noundef @.str, i32 noundef %27)
%29 = load i32, ptr %6, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %6, align 4
br label %31
31: ; preds = %26
%32 = load i32, ptr %6, align 4
%33 = icmp slt i32 %32, 20
br i1 %33, label %26, label %34, !llvm.loop !9
34: ; preds = %31
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpg322szqf.c'
source_filename = "/tmp/tmpg322szqf.c"
target datalayout = "e-m:e-p270: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/tmpg322szqf.c"
target datalayout = "e-m:e-p270: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/tmpw59jn0tf.c'
source_filename = "/tmp/tmpw59jn0tf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @gsw_entropy_part_zerop(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
store double 0x3F997AD78D9A73C9, ptr %5, align 8
%12 = load double, ptr %5, align 8
%13 = load double, ptr %3, align 8
%14 = fmul double %12, %13
store double %14, ptr %6, align 8
%15 = load double, ptr %6, align 8
%16 = call double @sqrt(double noundef %15) #3
store double %16, ptr %7, align 8
%17 = load double, ptr %4, align 8
%18 = fmul double %17, 2.500000e-02
store double %18, ptr %8, align 8
%19 = load double, ptr %8, align 8
%20 = load double, ptr %8, align 8
%21 = load double, ptr %8, align 8
%22 = load double, ptr %8, align 8
%23 = load double, ptr %8, align 8
%24 = load double, ptr %8, align 8
%25 = call double @llvm.fmuladd.f64(double %24, double 0x40355B1027A74BAD, double 0xC05C7A00F2E2C828)
%26 = call double @llvm.fmuladd.f64(double %23, double %25, double 0x40722212B091DB20)
%27 = call double @llvm.fmuladd.f64(double %22, double %26, double 0xC08285F330F6B645)
%28 = call double @llvm.fmuladd.f64(double %21, double %27, double 0x40A144727D54E900)
%29 = call double @llvm.fmuladd.f64(double %20, double %28, double 0xC0D822E499742DAD)
%30 = fmul double %19, %29
store double %30, ptr %9, align 8
%31 = load double, ptr %6, align 8
%32 = load double, ptr %7, align 8
%33 = load double, ptr %7, align 8
%34 = load double, ptr %8, align 8
%35 = load double, ptr %8, align 8
%36 = load double, ptr %8, align 8
%37 = load double, ptr %8, align 8
%38 = call double @llvm.fmuladd.f64(double 0x4028F83E526900EB, double %37, double 0xC05123C729D32969)
%39 = call double @llvm.fmuladd.f64(double %36, double %38, double 0x40628335BA14B974)
%40 = call double @llvm.fmuladd.f64(double %35, double %39, double 0xC06123A9FFC3BFAB)
%41 = fmul double %34, %40
%42 = load double, ptr %8, align 8
%43 = load double, ptr %8, align 8
%44 = load double, ptr %8, align 8
%45 = call double @llvm.fmuladd.f64(double %44, double 0x400C04EBADDA6979, double 0xC03E11764B04BEB4)
%46 = call double @llvm.fmuladd.f64(double %43, double %45, double 0xC0558882029F6807)
%47 = fmul double %42, %46
%48 = call double @llvm.fmuladd.f64(double %33, double %41, double %47)
%49 = load double, ptr %8, align 8
%50 = load double, ptr %8, align 8
%51 = load double, ptr %8, align 8
%52 = load double, ptr %8, align 8
%53 = load double, ptr %8, align 8
%54 = call double @llvm.fmuladd.f64(double 0x40298FE19FC9CBDF, double %53, double 0xC05B134DBFCEE248)
%55 = call double @llvm.fmuladd.f64(double %52, double %54, double 0x4076DB44514DF309)
%56 = call double @llvm.fmuladd.f64(double %51, double %55, double 0xC0851E6C6FE41A8A)
%57 = call double @llvm.fmuladd.f64(double %50, double %56, double 0x409B804036000CFB)
%58 = fmul double %49, %57
%59 = call double @llvm.fmuladd.f64(double %32, double %48, double %58)
%60 = fmul double %31, %59
store double %60, ptr %10, align 8
%61 = load double, ptr %9, align 8
%62 = load double, ptr %10, align 8
%63 = fadd double %61, %62
%64 = fneg double %63
%65 = fmul double %64, 2.500000e-02
store double %65, ptr %11, align 8
%66 = load double, ptr %11, align 8
ret double %66
}
; Function Attrs: nounwind
declare double @sqrt(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw59jn0tf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @gsw_entropy_part_zerop(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
store double 0x3F997AD78D9A73C9, ptr %5, align 8
%12 = load double, ptr %5, align 8
%13 = load double, ptr %3, align 8
%14 = fmul double %12, %13
store double %14, ptr %6, align 8
%15 = load double, ptr %6, align 8
%16 = call double @sqrt(double noundef %15) #3
store double %16, ptr %7, align 8
%17 = load double, ptr %4, align 8
%18 = fmul double %17, 2.500000e-02
store double %18, ptr %8, align 8
%19 = load double, ptr %8, align 8
%20 = load double, ptr %8, align 8
%21 = load double, ptr %8, align 8
%22 = load double, ptr %8, align 8
%23 = load double, ptr %8, align 8
%24 = load double, ptr %8, align 8
%25 = call double @llvm.fmuladd.f64(double %24, double 0x40355B1027A74BAD, double 0xC05C7A00F2E2C828)
%26 = call double @llvm.fmuladd.f64(double %23, double %25, double 0x40722212B091DB20)
%27 = call double @llvm.fmuladd.f64(double %22, double %26, double 0xC08285F330F6B645)
%28 = call double @llvm.fmuladd.f64(double %21, double %27, double 0x40A144727D54E900)
%29 = call double @llvm.fmuladd.f64(double %20, double %28, double 0xC0D822E499742DAD)
%30 = fmul double %19, %29
store double %30, ptr %9, align 8
%31 = load double, ptr %6, align 8
%32 = load double, ptr %7, align 8
%33 = load double, ptr %7, align 8
%34 = load double, ptr %8, align 8
%35 = load double, ptr %8, align 8
%36 = load double, ptr %8, align 8
%37 = load double, ptr %8, align 8
%38 = call double @llvm.fmuladd.f64(double 0x4028F83E526900EB, double %37, double 0xC05123C729D32969)
%39 = call double @llvm.fmuladd.f64(double %36, double %38, double 0x40628335BA14B974)
%40 = call double @llvm.fmuladd.f64(double %35, double %39, double 0xC06123A9FFC3BFAB)
%41 = fmul double %34, %40
%42 = load double, ptr %8, align 8
%43 = load double, ptr %8, align 8
%44 = load double, ptr %8, align 8
%45 = call double @llvm.fmuladd.f64(double %44, double 0x400C04EBADDA6979, double 0xC03E11764B04BEB4)
%46 = call double @llvm.fmuladd.f64(double %43, double %45, double 0xC0558882029F6807)
%47 = fmul double %42, %46
%48 = call double @llvm.fmuladd.f64(double %33, double %41, double %47)
%49 = load double, ptr %8, align 8
%50 = load double, ptr %8, align 8
%51 = load double, ptr %8, align 8
%52 = load double, ptr %8, align 8
%53 = load double, ptr %8, align 8
%54 = call double @llvm.fmuladd.f64(double 0x40298FE19FC9CBDF, double %53, double 0xC05B134DBFCEE248)
%55 = call double @llvm.fmuladd.f64(double %52, double %54, double 0x4076DB44514DF309)
%56 = call double @llvm.fmuladd.f64(double %51, double %55, double 0xC0851E6C6FE41A8A)
%57 = call double @llvm.fmuladd.f64(double %50, double %56, double 0x409B804036000CFB)
%58 = fmul double %49, %57
%59 = call double @llvm.fmuladd.f64(double %32, double %48, double %58)
%60 = fmul double %31, %59
store double %60, ptr %10, align 8
%61 = load double, ptr %9, align 8
%62 = load double, ptr %10, align 8
%63 = fadd double %61, %62
%64 = fneg double %63
%65 = fmul double %64, 2.500000e-02
store double %65, ptr %11, align 8
%66 = load double, ptr %11, align 8
ret double %66
}
; Function Attrs: nounwind
declare double @sqrt(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp52lzzsas.c'
source_filename = "/tmp/tmp52lzzsas.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EFAULT = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"name\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"John\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"age\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"20\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"location\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"New York\00", align 1
@.str.6 = private unnamed_addr constant [25 x i8] c"Memory allocation error\0A\00", align 1
@.str.7 = private unnamed_addr constant [31 x i8] c"Name: %s\0AAge: %s\0ALocation: %s\0A\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c"Name: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%7 = call ptr @hmake(i32 noundef 10)
store ptr %7, ptr %2, align 8
%8 = load ptr, ptr %2, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %12, label %10
10: ; preds = %0
%11 = load i32, ptr @EFAULT, align 4
store i32 %11, ptr %1, align 4
br label %43
12: ; preds = %0
%13 = load ptr, ptr %2, align 8
%14 = call i32 @hadd(ptr noundef %13, ptr noundef @.str, ptr noundef @.str.1)
%15 = load ptr, ptr %2, align 8
%16 = call i32 @hadd(ptr noundef %15, ptr noundef @.str.2, ptr noundef @.str.3)
%17 = load ptr, ptr %2, align 8
%18 = call i32 @hadd(ptr noundef %17, ptr noundef @.str.4, ptr noundef @.str.5)
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %12
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%23 = load i32, ptr %3, align 4
store i32 %23, ptr %1, align 4
br label %43
24: ; preds = %12
%25 = load ptr, ptr %2, align 8
%26 = call ptr @hget(ptr noundef %25, ptr noundef @.str)
store ptr %26, ptr %4, align 8
%27 = load ptr, ptr %2, align 8
%28 = call ptr @hget(ptr noundef %27, ptr noundef @.str.2)
store ptr %28, ptr %5, align 8
%29 = load ptr, ptr %2, align 8
%30 = call ptr @hget(ptr noundef %29, ptr noundef @.str.4)
store ptr %30, ptr %6, align 8
%31 = load ptr, ptr %4, align 8
%32 = load ptr, ptr %5, align 8
%33 = load ptr, ptr %6, align 8
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %31, ptr noundef %32, ptr noundef %33)
%35 = load ptr, ptr %2, align 8
%36 = call i32 @hdel(ptr noundef %35, ptr noundef @.str)
%37 = load ptr, ptr %2, align 8
%38 = call ptr @hget(ptr noundef %37, ptr noundef @.str)
store ptr %38, ptr %4, align 8
%39 = load ptr, ptr %4, align 8
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %39)
%41 = load ptr, ptr %2, align 8
%42 = call i32 @hfree(ptr noundef %41)
store i32 0, ptr %1, align 4
br label %43
43: ; preds = %24, %21, %10
%44 = load i32, ptr %1, align 4
ret i32 %44
}
declare ptr @hmake(i32 noundef) #1
declare i32 @hadd(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @hget(ptr noundef, ptr noundef) #1
declare i32 @hdel(ptr noundef, ptr noundef) #1
declare i32 @hfree(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp52lzzsas.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EFAULT = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"name\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"John\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"age\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"20\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"location\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"New York\00", align 1
@.str.6 = private unnamed_addr constant [25 x i8] c"Memory allocation error\0A\00", align 1
@.str.7 = private unnamed_addr constant [31 x i8] c"Name: %s\0AAge: %s\0ALocation: %s\0A\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c"Name: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%7 = call ptr @hmake(i32 noundef 10)
store ptr %7, ptr %2, align 8
%8 = load ptr, ptr %2, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %12, label %10
10: ; preds = %0
%11 = load i32, ptr @EFAULT, align 4
store i32 %11, ptr %1, align 4
br label %43
12: ; preds = %0
%13 = load ptr, ptr %2, align 8
%14 = call i32 @hadd(ptr noundef %13, ptr noundef @.str, ptr noundef @.str.1)
%15 = load ptr, ptr %2, align 8
%16 = call i32 @hadd(ptr noundef %15, ptr noundef @.str.2, ptr noundef @.str.3)
%17 = load ptr, ptr %2, align 8
%18 = call i32 @hadd(ptr noundef %17, ptr noundef @.str.4, ptr noundef @.str.5)
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %12
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%23 = load i32, ptr %3, align 4
store i32 %23, ptr %1, align 4
br label %43
24: ; preds = %12
%25 = load ptr, ptr %2, align 8
%26 = call ptr @hget(ptr noundef %25, ptr noundef @.str)
store ptr %26, ptr %4, align 8
%27 = load ptr, ptr %2, align 8
%28 = call ptr @hget(ptr noundef %27, ptr noundef @.str.2)
store ptr %28, ptr %5, align 8
%29 = load ptr, ptr %2, align 8
%30 = call ptr @hget(ptr noundef %29, ptr noundef @.str.4)
store ptr %30, ptr %6, align 8
%31 = load ptr, ptr %4, align 8
%32 = load ptr, ptr %5, align 8
%33 = load ptr, ptr %6, align 8
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %31, ptr noundef %32, ptr noundef %33)
%35 = load ptr, ptr %2, align 8
%36 = call i32 @hdel(ptr noundef %35, ptr noundef @.str)
%37 = load ptr, ptr %2, align 8
%38 = call ptr @hget(ptr noundef %37, ptr noundef @.str)
store ptr %38, ptr %4, align 8
%39 = load ptr, ptr %4, align 8
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %39)
%41 = load ptr, ptr %2, align 8
%42 = call i32 @hfree(ptr noundef %41)
store i32 0, ptr %1, align 4
br label %43
43: ; preds = %24, %21, %10
%44 = load i32, ptr %1, align 4
ret i32 %44
}
declare ptr @hmake(i32 noundef) #1
declare i32 @hadd(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @hget(ptr noundef, ptr noundef) #1
declare i32 @hdel(ptr noundef, ptr noundef) #1
declare i32 @hfree(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxzcys29a.c'
source_filename = "/tmp/tmpxzcys29a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"c 64\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 4, ptr %2, align 4
store i32 36, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = load i32, ptr %3, align 4
%7 = shl i32 %5, %6
store i32 %7, ptr %4, align 4
%8 = call i32 @print(ptr noundef @.str)
%9 = load i32, ptr %4, align 4
%10 = call i32 @printid(i32 noundef %9)
ret i32 0
}
declare i32 @print(ptr noundef) #1
declare i32 @printid(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/tmpxzcys29a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"c 64\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 4, ptr %2, align 4
store i32 36, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = load i32, ptr %3, align 4
%7 = shl i32 %5, %6
store i32 %7, ptr %4, align 4
%8 = call i32 @print(ptr noundef @.str)
%9 = load i32, ptr %4, align 4
%10 = call i32 @printid(i32 noundef %9)
ret i32 0
}
declare i32 @print(ptr noundef) #1
declare i32 @printid(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/tmpmez_233i.c'
source_filename = "/tmp/tmpmez_233i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 8, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 1, ptr %6, align 4
br label %7
7: ; preds = %23, %0
%8 = load i32, ptr %6, align 4
%9 = icmp sle i32 %8, 7
br i1 %9, label %10, label %26
10: ; preds = %7
%11 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %12, %13
%15 = load i32, ptr %4, align 4
%16 = icmp sgt i32 %14, %15
br i1 %16, label %17, label %22
17: ; preds = %10
%18 = load i32, ptr %6, align 4
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %2, align 4
%20 = load i32, ptr %3, align 4
%21 = add nsw i32 %19, %20
store i32 %21, ptr %4, align 4
br label %22
22: ; preds = %17, %10
br label %23
23: ; preds = %22
%24 = load i32, ptr %6, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %6, align 4
br label %7, !llvm.loop !6
26: ; preds = %7
%27 = load i32, ptr %5, align 4
%28 = call i32 @printf(ptr noundef @.str.1, i32 noundef %27)
%29 = load i32, ptr %1, align 4
ret i32 %29
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmez_233i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 8, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 1, ptr %6, align 4
%7 = load i32, ptr %6, align 4
%8 = icmp sle i32 %7, 7
br i1 %8, label %.lr.ph, label %27
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %22
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %11, %12
%14 = load i32, ptr %4, align 4
%15 = icmp sgt i32 %13, %14
br i1 %15, label %16, label %21
16: ; preds = %9
%17 = load i32, ptr %6, align 4
store i32 %17, ptr %5, align 4
%18 = load i32, ptr %2, align 4
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %18, %19
store i32 %20, ptr %4, align 4
br label %21
21: ; preds = %16, %9
br label %22
22: ; preds = %21
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %6, align 4
%26 = icmp sle i32 %25, 7
br i1 %26, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %27
27: ; preds = %._crit_edge, %0
%28 = load i32, ptr %5, align 4
%29 = call i32 @printf(ptr noundef @.str.1, i32 noundef %28)
%30 = load i32, ptr %1, align 4
ret i32 %30
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp1ajcdvwp.c'
source_filename = "/tmp/tmp1ajcdvwp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pthread_mutexattr_destroy(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %7
5: ; preds = %1
br label %6
6: ; preds = %5, %6
br label %6
7: ; preds = %1
%8 = call i32 (...) @__infer_nondet_int()
ret i32 %8
}
declare i32 @__infer_nondet_int(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1ajcdvwp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pthread_mutexattr_destroy(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %7
5: ; preds = %1
br label %6
6: ; preds = %6, %5
br label %6
7: ; preds = %1
%8 = call i32 (...) @__infer_nondet_int()
ret i32 %8
}
declare i32 @__infer_nondet_int(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8_xf3g7f.c'
source_filename = "/tmp/tmp8_xf3g7f.c"
target datalayout = "e-m:e-p270: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/tmp8_xf3g7f.c"
target datalayout = "e-m:e-p270: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/tmpa6yln5qh.c'
source_filename = "/tmp/tmpa6yln5qh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Client: Enter file name: \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [29 x i8] c"Client: filename read error\0A\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"Client: filename write error\0A\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"Client: data write error\0A\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"client: data read error\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @client(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [1024 x i8], align 16
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = call i32 @printf(ptr noundef @.str)
%8 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%9 = load i32, ptr @stdin, align 4
%10 = call ptr @fgets(ptr noundef %8, i32 noundef 1024, i32 noundef %9)
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 @printf(ptr noundef @.str.1)
br label %14
14: ; preds = %12, %2
%15 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%16 = call i32 @strlen(ptr noundef %15)
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = sub nsw i32 %17, 1
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 10
br i1 %23, label %24, label %27
24: ; preds = %14
%25 = load i32, ptr %6, align 4
%26 = add nsw i32 %25, -1
store i32 %26, ptr %6, align 4
br label %27
27: ; preds = %24, %14
%28 = load i32, ptr %4, align 4
%29 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%30 = load i32, ptr %6, align 4
%31 = call i32 @write(i32 noundef %28, ptr noundef %29, i32 noundef %30)
%32 = load i32, ptr %6, align 4
%33 = icmp ne i32 %31, %32
br i1 %33, label %34, label %36
34: ; preds = %27
%35 = call i32 @printf(ptr noundef @.str.2)
br label %36
36: ; preds = %34, %27
br label %37
37: ; preds = %50, %36
%38 = load i32, ptr %3, align 4
%39 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%40 = call i32 @read(i32 noundef %38, ptr noundef %39, i32 noundef 1024)
store i32 %40, ptr %6, align 4
%41 = icmp sgt i32 %40, 0
br i1 %41, label %42, label %51
42: ; preds = %37
%43 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%44 = load i32, ptr %6, align 4
%45 = call i32 @write(i32 noundef 1, ptr noundef %43, i32 noundef %44)
%46 = load i32, ptr %6, align 4
%47 = icmp ne i32 %45, %46
br i1 %47, label %48, label %50
48: ; preds = %42
%49 = call i32 @printf(ptr noundef @.str.3)
br label %50
50: ; preds = %48, %42
br label %37, !llvm.loop !6
51: ; preds = %37
%52 = load i32, ptr %6, align 4
%53 = icmp slt i32 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %51
%55 = call i32 @printf(ptr noundef @.str.4)
br label %56
56: ; preds = %54, %51
ret void
}
declare i32 @printf(ptr noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpa6yln5qh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Client: Enter file name: \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [29 x i8] c"Client: filename read error\0A\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"Client: filename write error\0A\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"Client: data write error\0A\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"client: data read error\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @client(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [1024 x i8], align 16
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = call i32 @printf(ptr noundef @.str)
%8 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%9 = load i32, ptr @stdin, align 4
%10 = call ptr @fgets(ptr noundef %8, i32 noundef 1024, i32 noundef %9)
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 @printf(ptr noundef @.str.1)
br label %14
14: ; preds = %12, %2
%15 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%16 = call i32 @strlen(ptr noundef %15)
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = sub nsw i32 %17, 1
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 10
br i1 %23, label %24, label %27
24: ; preds = %14
%25 = load i32, ptr %6, align 4
%26 = add nsw i32 %25, -1
store i32 %26, ptr %6, align 4
br label %27
27: ; preds = %24, %14
%28 = load i32, ptr %4, align 4
%29 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%30 = load i32, ptr %6, align 4
%31 = call i32 @write(i32 noundef %28, ptr noundef %29, i32 noundef %30)
%32 = load i32, ptr %6, align 4
%33 = icmp ne i32 %31, %32
br i1 %33, label %34, label %36
34: ; preds = %27
%35 = call i32 @printf(ptr noundef @.str.2)
br label %36
36: ; preds = %34, %27
%37 = load i32, ptr %3, align 4
%38 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%39 = call i32 @read(i32 noundef %37, ptr noundef %38, i32 noundef 1024)
store i32 %39, ptr %6, align 4
%40 = icmp sgt i32 %39, 0
br i1 %40, label %.lr.ph, label %53
.lr.ph: ; preds = %36
br label %41
41: ; preds = %.lr.ph, %49
%42 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%43 = load i32, ptr %6, align 4
%44 = call i32 @write(i32 noundef 1, ptr noundef %42, i32 noundef %43)
%45 = load i32, ptr %6, align 4
%46 = icmp ne i32 %44, %45
br i1 %46, label %47, label %49
47: ; preds = %41
%48 = call i32 @printf(ptr noundef @.str.3)
br label %49
49: ; preds = %47, %41
%50 = load i32, ptr %3, align 4
%51 = call i32 @read(i32 noundef %50, ptr noundef %38, i32 noundef 1024)
store i32 %51, ptr %6, align 4
%52 = icmp sgt i32 %51, 0
br i1 %52, label %41, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %49
br label %53
53: ; preds = %._crit_edge, %36
%54 = load i32, ptr %6, align 4
%55 = icmp slt i32 %54, 0
br i1 %55, label %56, label %58
56: ; preds = %53
%57 = call i32 @printf(ptr noundef @.str.4)
br label %58
58: ; preds = %56, %53
ret void
}
declare i32 @printf(ptr noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp1wiwkc0o.c'
source_filename = "/tmp/tmp1wiwkc0o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; 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 ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%8 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
%9 = load i32, ptr %2, align 4
%10 = sext i32 %9 to i64
%11 = mul i64 1, %10
%12 = trunc i64 %11 to i32
%13 = call i64 @malloc(i32 noundef %12)
%14 = inttoptr i64 %13 to ptr
store ptr %14, ptr %5, align 8
%15 = load ptr, ptr %5, align 8
%16 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %15)
%17 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3)
%18 = load i32, ptr %3, align 4
%19 = sext i32 %18 to i64
%20 = mul i64 1, %19
%21 = trunc i64 %20 to i32
%22 = call i64 @malloc(i32 noundef %21)
%23 = inttoptr i64 %22 to ptr
store ptr %23, ptr %6, align 8
%24 = load ptr, ptr %6, align 8
%25 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %24)
%26 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %4)
%27 = load i32, ptr %4, align 4
%28 = sext i32 %27 to i64
%29 = mul i64 1, %28
%30 = trunc i64 %29 to i32
%31 = call i64 @malloc(i32 noundef %30)
%32 = inttoptr i64 %31 to ptr
store ptr %32, ptr %7, align 8
%33 = load ptr, ptr %7, align 8
%34 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %33)
%35 = load ptr, ptr %5, align 8
%36 = load ptr, ptr %6, align 8
%37 = load ptr, ptr %7, align 8
%38 = call i32 @replace_substring(ptr noundef %35, ptr noundef %36, ptr noundef %37)
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @replace_substring(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/tmp1wiwkc0o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; 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 ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%8 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
%9 = load i32, ptr %2, align 4
%10 = sext i32 %9 to i64
%11 = mul i64 1, %10
%12 = trunc i64 %11 to i32
%13 = call i64 @malloc(i32 noundef %12)
%14 = inttoptr i64 %13 to ptr
store ptr %14, ptr %5, align 8
%15 = load ptr, ptr %5, align 8
%16 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %15)
%17 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3)
%18 = load i32, ptr %3, align 4
%19 = sext i32 %18 to i64
%20 = mul i64 1, %19
%21 = trunc i64 %20 to i32
%22 = call i64 @malloc(i32 noundef %21)
%23 = inttoptr i64 %22 to ptr
store ptr %23, ptr %6, align 8
%24 = load ptr, ptr %6, align 8
%25 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %24)
%26 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %4)
%27 = load i32, ptr %4, align 4
%28 = sext i32 %27 to i64
%29 = mul i64 1, %28
%30 = trunc i64 %29 to i32
%31 = call i64 @malloc(i32 noundef %30)
%32 = inttoptr i64 %31 to ptr
store ptr %32, ptr %7, align 8
%33 = load ptr, ptr %7, align 8
%34 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %33)
%35 = load ptr, ptr %5, align 8
%36 = load ptr, ptr %6, align 8
%37 = load ptr, ptr %7, align 8
%38 = call i32 @replace_substring(ptr noundef %35, ptr noundef %36, ptr noundef %37)
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @replace_substring(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/tmpst9cz_x9.c'
source_filename = "/tmp/tmpst9cz_x9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"%d%f%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca float, align 4
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %4, ptr noundef %3)
ret i32 0
}
declare i32 @scanf(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/tmpst9cz_x9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"%d%f%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca float, align 4
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %4, ptr noundef %3)
ret i32 0
}
declare i32 @scanf(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/tmp81yqwiwt.c'
source_filename = "/tmp/tmp81yqwiwt.c"
target datalayout = "e-m:e-p270: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/tmp81yqwiwt.c"
target datalayout = "e-m:e-p270: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/tmpuj_ug_lq.c'
source_filename = "/tmp/tmpuj_ug_lq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_error(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @ttyprint(i32 noundef 0, i32 noundef 35, ptr noundef %3)
br label %5
5: ; preds = %1, %5
br label %5
}
declare i32 @ttyprint(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/tmpuj_ug_lq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_error(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @ttyprint(i32 noundef 0, i32 noundef 35, ptr noundef %3)
br label %5
5: ; preds = %5, %1
br label %5
}
declare i32 @ttyprint(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/tmpk8i1uloc.c'
source_filename = "/tmp/tmpk8i1uloc.c"
target datalayout = "e-m:e-p270: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/tmpk8i1uloc.c"
target datalayout = "e-m:e-p270: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/tmpm9_20czv.c'
source_filename = "/tmp/tmpm9_20czv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"args: -h: displays this help\0A\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c" -n: don't resolve host/portnames\0A\00", align 1
@.str.2 = private unnamed_addr constant [62 x i8] c" -p tcp | udp | icmp : display connections by protocol\0A\00", align 1
@.str.3 = private unnamed_addr constant [60 x i8] c" -s <source-host> : display connections by source\0A\00", align 1
@.str.4 = private unnamed_addr constant [65 x i8] c" -d <destination-host>: display connections by destination\0A\00", align 1
@.str.5 = private unnamed_addr constant [36 x i8] c" -S: display SNAT connections\0A\00", align 1
@.str.6 = private unnamed_addr constant [59 x i8] c" -D: display DNAT connections (default: SNAT & DNAT)\0A\00", align 1
@.str.7 = private unnamed_addr constant [75 x i8] c" -L: display only connections to NAT box self (disables SNAT & DNAT)\0A\00", align 1
@.str.8 = private unnamed_addr constant [35 x i8] c" -x: extended hostnames view\0A\00", align 1
@.str.9 = private unnamed_addr constant [69 x i8] c" -r src | dst | src-port | dst-port | state : sort connections\0A\00", align 1
@.str.10 = private unnamed_addr constant [31 x i8] c" -o: strip output header\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @display_help() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
%7 = call i32 @printf(ptr noundef @.str.6)
%8 = call i32 @printf(ptr noundef @.str.7)
%9 = call i32 @printf(ptr noundef @.str.8)
%10 = call i32 @printf(ptr noundef @.str.9)
%11 = call i32 @printf(ptr noundef @.str.10)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm9_20czv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"args: -h: displays this help\0A\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c" -n: don't resolve host/portnames\0A\00", align 1
@.str.2 = private unnamed_addr constant [62 x i8] c" -p tcp | udp | icmp : display connections by protocol\0A\00", align 1
@.str.3 = private unnamed_addr constant [60 x i8] c" -s <source-host> : display connections by source\0A\00", align 1
@.str.4 = private unnamed_addr constant [65 x i8] c" -d <destination-host>: display connections by destination\0A\00", align 1
@.str.5 = private unnamed_addr constant [36 x i8] c" -S: display SNAT connections\0A\00", align 1
@.str.6 = private unnamed_addr constant [59 x i8] c" -D: display DNAT connections (default: SNAT & DNAT)\0A\00", align 1
@.str.7 = private unnamed_addr constant [75 x i8] c" -L: display only connections to NAT box self (disables SNAT & DNAT)\0A\00", align 1
@.str.8 = private unnamed_addr constant [35 x i8] c" -x: extended hostnames view\0A\00", align 1
@.str.9 = private unnamed_addr constant [69 x i8] c" -r src | dst | src-port | dst-port | state : sort connections\0A\00", align 1
@.str.10 = private unnamed_addr constant [31 x i8] c" -o: strip output header\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @display_help() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
%7 = call i32 @printf(ptr noundef @.str.6)
%8 = call i32 @printf(ptr noundef @.str.7)
%9 = call i32 @printf(ptr noundef @.str.8)
%10 = call i32 @printf(ptr noundef @.str.9)
%11 = call i32 @printf(ptr noundef @.str.10)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpt8dl3lj5.c'
source_filename = "/tmp/tmpt8dl3lj5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @MatrixEquals(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
store i32 0, ptr %6, align 4
br label %8
8: ; preds = %61, %2
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %9, 3
br i1 %10, label %11, label %64
11: ; preds = %8
store i32 0, ptr %7, align 4
br label %12
12: ; preds = %57, %11
%13 = load i32, ptr %7, align 4
%14 = icmp slt i32 %13, 3
br i1 %14, label %15, label %60
15: ; preds = %12
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %6, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [3 x float], ptr %16, i64 %18
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [3 x float], ptr %19, i64 0, i64 %21
%23 = load float, ptr %22, align 4
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr %6, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [3 x float], ptr %24, i64 %26
%28 = load i32, ptr %7, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [3 x float], ptr %27, i64 0, i64 %29
%31 = load float, ptr %30, align 4
%32 = fsub float %23, %31
%33 = call double @fabs(float noundef %32)
%34 = fcmp olt double %33, -1.000000e-04
br i1 %34, label %55, label %35
35: ; preds = %15
%36 = load ptr, ptr %4, align 8
%37 = load i32, ptr %6, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [3 x float], ptr %36, i64 %38
%40 = load i32, ptr %7, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [3 x float], ptr %39, i64 0, i64 %41
%43 = load float, ptr %42, align 4
%44 = load ptr, ptr %5, align 8
%45 = load i32, ptr %6, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [3 x float], ptr %44, i64 %46
%48 = load i32, ptr %7, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [3 x float], ptr %47, i64 0, i64 %49
%51 = load float, ptr %50, align 4
%52 = fsub float %43, %51
%53 = call double @fabs(float noundef %52)
%54 = fcmp ogt double %53, 1.000000e-04
br i1 %54, label %55, label %56
55: ; preds = %35, %15
store i32 0, ptr %3, align 4
br label %65
56: ; preds = %35
br label %57
57: ; preds = %56
%58 = load i32, ptr %7, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %7, align 4
br label %12, !llvm.loop !6
60: ; preds = %12
br label %61
61: ; preds = %60
%62 = load i32, ptr %6, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %6, align 4
br label %8, !llvm.loop !8
64: ; preds = %8
store i32 1, ptr %3, align 4
br label %65
65: ; preds = %64, %55
%66 = load i32, ptr %3, align 4
ret i32 %66
}
declare double @fabs(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt8dl3lj5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @MatrixEquals(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
store i32 0, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = icmp slt i32 %8, 3
br i1 %9, label %.lr.ph2, label %66
.lr.ph2: ; preds = %2
br label %10
10: ; preds = %.lr.ph2, %61
store i32 0, ptr %7, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp slt i32 %11, 3
br i1 %12, label %.lr.ph, label %60
.lr.ph: ; preds = %10
br label %13
13: ; preds = %.lr.ph, %55
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr %6, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [3 x float], ptr %14, i64 %16
%18 = load i32, ptr %7, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [3 x float], ptr %17, i64 0, i64 %19
%21 = load float, ptr %20, align 4
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %6, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [3 x float], ptr %22, i64 %24
%26 = load i32, ptr %7, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [3 x float], ptr %25, i64 0, i64 %27
%29 = load float, ptr %28, align 4
%30 = fsub float %21, %29
%31 = call double @fabs(float noundef %30)
%32 = fcmp olt double %31, -1.000000e-04
br i1 %32, label %53, label %33
33: ; preds = %13
%34 = load ptr, ptr %4, align 8
%35 = load i32, ptr %6, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [3 x float], ptr %34, i64 %36
%38 = load i32, ptr %7, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [3 x float], ptr %37, i64 0, i64 %39
%41 = load float, ptr %40, align 4
%42 = load ptr, ptr %5, align 8
%43 = load i32, ptr %6, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [3 x float], ptr %42, i64 %44
%46 = load i32, ptr %7, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [3 x float], ptr %45, i64 0, i64 %47
%49 = load float, ptr %48, align 4
%50 = fsub float %41, %49
%51 = call double @fabs(float noundef %50)
%52 = fcmp ogt double %51, 1.000000e-04
br i1 %52, label %53, label %54
53: ; preds = %33, %13
store i32 0, ptr %3, align 4
br label %67
54: ; preds = %33
br label %55
55: ; preds = %54
%56 = load i32, ptr %7, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %7, align 4
%58 = load i32, ptr %7, align 4
%59 = icmp slt i32 %58, 3
br i1 %59, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %55
br label %60
60: ; preds = %._crit_edge, %10
br label %61
61: ; preds = %60
%62 = load i32, ptr %6, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %6, align 4
%64 = load i32, ptr %6, align 4
%65 = icmp slt i32 %64, 3
br i1 %65, label %10, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %61
br label %66
66: ; preds = %._crit_edge3, %2
store i32 1, ptr %3, align 4
br label %67
67: ; preds = %66, %53
%68 = load i32, ptr %3, align 4
ret i32 %68
}
declare double @fabs(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp51069at8.c'
source_filename = "/tmp/tmp51069at8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @netif_nametoindex(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 @if_nametoindex(ptr noundef %3)
ret i32 %4
}
declare i32 @if_nametoindex(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp51069at8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @netif_nametoindex(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 @if_nametoindex(ptr noundef %3)
ret i32 %4
}
declare i32 @if_nametoindex(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpov_zg38z.c'
source_filename = "/tmp/tmpov_zg38z.c"
target datalayout = "e-m:e-p270: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/tmpov_zg38z.c"
target datalayout = "e-m:e-p270: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/tmpyn6thg0i.c'
source_filename = "/tmp/tmpyn6thg0i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sonoOrdinati(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @strcasecmp(ptr noundef %6, ptr noundef %7)
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %2
br label %17
12: ; preds = %2
%13 = load i32, ptr %5, align 4
%14 = icmp eq i32 %13, 0
%15 = zext i1 %14 to i64
%16 = select i1 %14, i32 0, i32 -1
br label %17
17: ; preds = %12, %11
%18 = phi i32 [ 1, %11 ], [ %16, %12 ]
ret i32 %18
}
declare i32 @strcasecmp(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/tmpyn6thg0i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sonoOrdinati(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @strcasecmp(ptr noundef %6, ptr noundef %7)
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %2
br label %17
12: ; preds = %2
%13 = load i32, ptr %5, align 4
%14 = icmp eq i32 %13, 0
%15 = zext i1 %14 to i64
%16 = select i1 %14, i32 0, i32 -1
br label %17
17: ; preds = %12, %11
%18 = phi i32 [ 1, %11 ], [ %16, %12 ]
ret i32 %18
}
declare i32 @strcasecmp(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/tmp18_tpjvp.c'
source_filename = "/tmp/tmp18_tpjvp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isodigit.c\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"isodigit should be 0 for i\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isodigit_0x69() #0 {
%1 = call i64 @isodigit(i32 noundef 105)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 530, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isodigit(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/tmp18_tpjvp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isodigit.c\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"isodigit should be 0 for i\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isodigit_0x69() #0 {
%1 = call i64 @isodigit(i32 noundef 105)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 530, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isodigit(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/tmp874ee5ia.c'
source_filename = "/tmp/tmp874ee5ia.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %4
4: ; preds = %14, %0
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 10
br i1 %6, label %7, label %17
7: ; preds = %4
store i32 0, ptr %3, align 4
br label %8
8: ; preds = %11, %7
%9 = load i32, ptr %3, align 4
%10 = icmp slt i32 %9, 10
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %3, align 4
br label %8, !llvm.loop !6
14: ; preds = %8
%15 = load i32, ptr %2, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %2, align 4
br label %4, !llvm.loop !8
17: ; preds = %4
%18 = load i32, ptr %2, align 4
%19 = icmp eq i32 %18, 10
%20 = zext i1 %19 to i32
%21 = call i32 @__CRAB_assert(i32 noundef %20)
ret i32 0
}
declare i32 @__CRAB_assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp874ee5ia.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 10
br i1 %5, label %.lr.ph2, label %19
.lr.ph2: ; preds = %0
br label %6
6: ; preds = %.lr.ph2, %14
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 10
br i1 %8, label %.lr.ph, label %14
.lr.ph: ; preds = %6
br label %9
9: ; preds = %.lr.ph, %9
%10 = load i32, ptr %3, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %3, align 4
%12 = load i32, ptr %3, align 4
%13 = icmp slt i32 %12, 10
br i1 %13, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %14
14: ; preds = %._crit_edge, %6
%15 = load i32, ptr %2, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %2, align 4
%17 = load i32, ptr %2, align 4
%18 = icmp slt i32 %17, 10
br i1 %18, label %6, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %14
br label %19
19: ; preds = %._crit_edge3, %0
%20 = load i32, ptr %2, align 4
%21 = icmp eq i32 %20, 10
%22 = zext i1 %21 to i32
%23 = call i32 @__CRAB_assert(i32 noundef %22)
ret i32 0
}
declare i32 @__CRAB_assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp3scabmc0.c'
source_filename = "/tmp/tmp3scabmc0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [74 x i8] c"---[ Len: %d Displaying: %d ]------------------------------------------\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%04x: \00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%02x \00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c" - \00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"[\00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"... ]\00", align 1
@.str.7 = private unnamed_addr constant [63 x i8] c"\0A------------------------------------------------------------\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dump_buff(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
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label %14, label %10
10: ; preds = %3
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp ugt i32 %11, %12
br i1 %13, label %14, label %16
14: ; preds = %10, %3
%15 = load i32, ptr %5, align 4
store i32 %15, ptr %6, align 4
br label %16
16: ; preds = %14, %10
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %6, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %17, i32 noundef %18)
store i32 0, ptr %7, align 4
br label %20
20: ; preds = %50, %16
%21 = load i32, ptr %7, align 4
%22 = load i32, ptr %6, align 4
%23 = icmp ult i32 %21, %22
br i1 %23, label %24, label %53
24: ; preds = %20
%25 = load i32, ptr %7, align 4
%26 = urem i32 %25, 32
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %24
%29 = load i32, ptr %7, align 4
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %29)
br label %31
31: ; preds = %28, %24
%32 = load ptr, ptr %4, align 8
%33 = load i32, ptr %7, align 4
%34 = zext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %32, i64 %34
%36 = load i32, ptr %35, align 4
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %36)
%38 = load i32, ptr %7, align 4
%39 = urem i32 %38, 8
%40 = icmp eq i32 %39, 7
br i1 %40, label %41, label %43
41: ; preds = %31
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %43
43: ; preds = %41, %31
%44 = load i32, ptr %7, align 4
%45 = urem i32 %44, 32
%46 = icmp eq i32 %45, 31
br i1 %46, label %47, label %49
47: ; preds = %43
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %49
49: ; preds = %47, %43
br label %50
50: ; preds = %49
%51 = load i32, ptr %7, align 4
%52 = add i32 %51, 1
store i32 %52, ptr %7, align 4
br label %20, !llvm.loop !6
53: ; preds = %20
%54 = load i32, ptr %6, align 4
%55 = load i32, ptr %5, align 4
%56 = icmp ult i32 %54, %55
br i1 %56, label %57, label %88
57: ; preds = %53
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %59
59: ; preds = %83, %57
%60 = load i32, ptr %7, align 4
%61 = load i32, ptr %6, align 4
%62 = add i32 %61, 3
%63 = icmp ult i32 %60, %62
br i1 %63, label %64, label %68
64: ; preds = %59
%65 = load i32, ptr %7, align 4
%66 = load i32, ptr %5, align 4
%67 = icmp ult i32 %65, %66
br label %68
68: ; preds = %64, %59
%69 = phi i1 [ false, %59 ], [ %67, %64 ]
br i1 %69, label %70, label %86
70: ; preds = %68
%71 = load ptr, ptr %4, align 8
%72 = load i32, ptr %7, align 4
%73 = zext i32 %72 to i64
%74 = getelementptr inbounds i32, ptr %71, i64 %73
%75 = load i32, ptr %74, align 4
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %75)
%77 = load i32, ptr %7, align 4
%78 = urem i32 %77, 32
%79 = icmp eq i32 %78, 31
br i1 %79, label %80, label %82
80: ; preds = %70
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %82
82: ; preds = %80, %70
br label %83
83: ; preds = %82
%84 = load i32, ptr %7, align 4
%85 = add i32 %84, 1
store i32 %85, ptr %7, align 4
br label %59, !llvm.loop !8
86: ; preds = %68
%87 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %88
88: ; preds = %86, %53
%89 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3scabmc0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [74 x i8] c"---[ Len: %d Displaying: %d ]------------------------------------------\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%04x: \00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%02x \00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c" - \00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"[\00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"... ]\00", align 1
@.str.7 = private unnamed_addr constant [63 x i8] c"\0A------------------------------------------------------------\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dump_buff(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
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label %14, label %10
10: ; preds = %3
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp ugt i32 %11, %12
br i1 %13, label %14, label %16
14: ; preds = %10, %3
%15 = load i32, ptr %5, align 4
store i32 %15, ptr %6, align 4
br label %16
16: ; preds = %14, %10
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %6, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %17, i32 noundef %18)
store i32 0, ptr %7, align 4
%20 = load i32, ptr %7, align 4
%21 = load i32, ptr %6, align 4
%22 = icmp ult i32 %20, %21
br i1 %22, label %.lr.ph, label %55
.lr.ph: ; preds = %16
br label %23
23: ; preds = %.lr.ph, %49
%24 = load i32, ptr %7, align 4
%25 = urem i32 %24, 32
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %23
%28 = load i32, ptr %7, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %28)
br label %30
30: ; preds = %27, %23
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %7, align 4
%33 = zext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %31, i64 %33
%35 = load i32, ptr %34, align 4
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %35)
%37 = load i32, ptr %7, align 4
%38 = urem i32 %37, 8
%39 = icmp eq i32 %38, 7
br i1 %39, label %40, label %42
40: ; preds = %30
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %42
42: ; preds = %40, %30
%43 = load i32, ptr %7, align 4
%44 = urem i32 %43, 32
%45 = icmp eq i32 %44, 31
br i1 %45, label %46, label %48
46: ; preds = %42
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %48
48: ; preds = %46, %42
br label %49
49: ; preds = %48
%50 = load i32, ptr %7, align 4
%51 = add i32 %50, 1
store i32 %51, ptr %7, align 4
%52 = load i32, ptr %7, align 4
%53 = load i32, ptr %6, align 4
%54 = icmp ult i32 %52, %53
br i1 %54, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %49
br label %55
55: ; preds = %._crit_edge, %16
%56 = load i32, ptr %6, align 4
%57 = load i32, ptr %5, align 4
%58 = icmp ult i32 %56, %57
br i1 %58, label %59, label %90
59: ; preds = %55
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %61
61: ; preds = %85, %59
%62 = load i32, ptr %7, align 4
%63 = load i32, ptr %6, align 4
%64 = add i32 %63, 3
%65 = icmp ult i32 %62, %64
br i1 %65, label %66, label %70
66: ; preds = %61
%67 = load i32, ptr %7, align 4
%68 = load i32, ptr %5, align 4
%69 = icmp ult i32 %67, %68
br label %70
70: ; preds = %66, %61
%71 = phi i1 [ false, %61 ], [ %69, %66 ]
br i1 %71, label %72, label %88
72: ; preds = %70
%73 = load ptr, ptr %4, align 8
%74 = load i32, ptr %7, align 4
%75 = zext i32 %74 to i64
%76 = getelementptr inbounds i32, ptr %73, i64 %75
%77 = load i32, ptr %76, align 4
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %77)
%79 = load i32, ptr %7, align 4
%80 = urem i32 %79, 32
%81 = icmp eq i32 %80, 31
br i1 %81, label %82, label %84
82: ; preds = %72
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %84
84: ; preds = %82, %72
br label %85
85: ; preds = %84
%86 = load i32, ptr %7, align 4
%87 = add i32 %86, 1
store i32 %87, ptr %7, align 4
br label %61, !llvm.loop !8
88: ; preds = %70
%89 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %90
90: ; preds = %88, %55
%91 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmps05g68d1.c'
source_filename = "/tmp/tmps05g68d1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @x11_extras_IsPrivateKeypadKey(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 @IsPrivateKeypadKey(i32 noundef %3)
ret i32 %4
}
declare i32 @IsPrivateKeypadKey(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/tmps05g68d1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @x11_extras_IsPrivateKeypadKey(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 @IsPrivateKeypadKey(i32 noundef %3)
ret i32 %4
}
declare i32 @IsPrivateKeypadKey(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/tmph_ops70q.c'
source_filename = "/tmp/tmph_ops70q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [42 x i8] c"Es wird mindestens ein Argument erwartet\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"Konvertiere Argument %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(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %11
11: ; preds = %9, %2
store i32 1, ptr %6, align 4
br label %12
12: ; preds = %25, %11
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %28
16: ; preds = %12
%17 = load i32, ptr %6, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %17)
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %6, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds ptr, ptr %19, i64 %21
%23 = load ptr, ptr %22, align 8
%24 = call i32 @convert(ptr noundef %23)
br label %25
25: ; preds = %16
%26 = load i32, ptr %6, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %6, align 4
br label %12, !llvm.loop !6
28: ; preds = %12
%29 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %29
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @convert(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmph_ops70q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [42 x i8] c"Es wird mindestens ein Argument erwartet\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"Konvertiere Argument %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(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %11
11: ; preds = %9, %2
store i32 1, ptr %6, align 4
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %.lr.ph, label %30
.lr.ph: ; preds = %11
br label %15
15: ; preds = %.lr.ph, %24
%16 = load i32, ptr %6, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %16)
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %6, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds ptr, ptr %18, i64 %20
%22 = load ptr, ptr %21, align 8
%23 = call i32 @convert(ptr noundef %22)
br label %24
24: ; preds = %15
%25 = load i32, ptr %6, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %6, align 4
%27 = load i32, ptr %6, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %30
30: ; preds = %._crit_edge, %11
%31 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %31
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @convert(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpzjjfobhr.c'
source_filename = "/tmp/tmpzjjfobhr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"===== Exercise 1 =====\0A\00", align 1
@.str.1 = private unnamed_addr constant [112 x i8] c"Enter the age you want to know how many days that the person has lived(The calculation is conducted roughly).: \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.3 = private unnamed_addr constant [35 x i8] c"--> He/She has lived for %i days.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%10 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %6)
%11 = load i32, ptr %6, align 4
%12 = mul nsw i32 %11, 365
store i32 %12, ptr %7, align 4
%13 = load i32, ptr %7, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %13)
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/tmpzjjfobhr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"===== Exercise 1 =====\0A\00", align 1
@.str.1 = private unnamed_addr constant [112 x i8] c"Enter the age you want to know how many days that the person has lived(The calculation is conducted roughly).: \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.3 = private unnamed_addr constant [35 x i8] c"--> He/She has lived for %i days.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%10 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %6)
%11 = load i32, ptr %6, align 4
%12 = mul nsw i32 %11, 365
store i32 %12, ptr %7, align 4
%13 = load i32, ptr %7, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %13)
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/tmptc62mzah.c'
source_filename = "/tmp/tmptc62mzah.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"RESULT:%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @squeeze(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %8, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %5, align 4
br label %9
9: ; preds = %66, %2
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %69
17: ; preds = %9
store i32 0, ptr %8, align 4
store i32 0, ptr %7, align 4
br label %18
18: ; preds = %48, %17
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %30
26: ; preds = %18
%27 = load i32, ptr %8, align 4
%28 = icmp ne i32 %27, 0
%29 = xor i1 %28, true
br label %30
30: ; preds = %26, %18
%31 = phi i1 [ false, %18 ], [ %29, %26 ]
br i1 %31, label %32, label %51
32: ; preds = %30
%33 = load ptr, ptr %4, align 8
%34 = load i32, ptr %7, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = load ptr, ptr %3, 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 %38, %44
br i1 %45, label %46, label %47
46: ; preds = %32
store i32 1, ptr %8, align 4
br label %47
47: ; preds = %46, %32
br label %48
48: ; preds = %47
%49 = load i32, ptr %7, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %7, align 4
br label %18, !llvm.loop !6
51: ; preds = %30
%52 = load i32, ptr %8, align 4
%53 = icmp ne i32 %52, 0
br i1 %53, label %65, label %54
54: ; preds = %51
%55 = load ptr, ptr %3, align 8
%56 = load i32, ptr %5, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8, ptr %55, i64 %57
%59 = load i8, ptr %58, align 1
%60 = load ptr, ptr %3, align 8
%61 = load i32, ptr %6, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %6, align 4
%63 = sext i32 %61 to i64
%64 = getelementptr inbounds i8, ptr %60, i64 %63
store i8 %59, ptr %64, align 1
br label %65
65: ; preds = %54, %51
br label %66
66: ; preds = %65
%67 = load i32, ptr %5, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %5, align 4
br label %9, !llvm.loop !8
69: ; preds = %9
%70 = load ptr, ptr %3, align 8
%71 = load i32, ptr %6, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8, ptr %70, i64 %72
store i8 0, ptr %73, align 1
%74 = load ptr, ptr %3, align 8
%75 = call i32 @printf(ptr noundef @.str, ptr noundef %74)
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptc62mzah.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"RESULT:%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @squeeze(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %8, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %5, align 4
%9 = load ptr, ptr %3, align 8
%10 = load i32, ptr %5, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %9, i64 %11
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br i1 %15, label %.lr.ph, label %75
.lr.ph: ; preds = %2
br label %16
16: ; preds = %.lr.ph, %65
store i32 0, ptr %8, align 4
store i32 0, ptr %7, align 4
br label %17
17: ; preds = %47, %16
%18 = load ptr, ptr %4, align 8
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %29
25: ; preds = %17
%26 = load i32, ptr %8, align 4
%27 = icmp ne i32 %26, 0
%28 = xor i1 %27, true
br label %29
29: ; preds = %25, %17
%30 = phi i1 [ false, %17 ], [ %28, %25 ]
br i1 %30, label %31, label %50
31: ; preds = %29
%32 = load ptr, ptr %4, align 8
%33 = load i32, ptr %7, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = load ptr, ptr %3, align 8
%39 = load i32, ptr %5, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %38, i64 %40
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = icmp eq i32 %37, %43
br i1 %44, label %45, label %46
45: ; preds = %31
store i32 1, ptr %8, align 4
br label %46
46: ; preds = %45, %31
br label %47
47: ; preds = %46
%48 = load i32, ptr %7, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %7, align 4
br label %17, !llvm.loop !6
50: ; preds = %29
%51 = load i32, ptr %8, align 4
%52 = icmp ne i32 %51, 0
br i1 %52, label %64, label %53
53: ; preds = %50
%54 = load ptr, ptr %3, align 8
%55 = load i32, ptr %5, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i8, ptr %54, i64 %56
%58 = load i8, ptr %57, align 1
%59 = load ptr, ptr %3, align 8
%60 = load i32, ptr %6, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %6, align 4
%62 = sext i32 %60 to i64
%63 = getelementptr inbounds i8, ptr %59, i64 %62
store i8 %58, ptr %63, align 1
br label %64
64: ; preds = %53, %50
br label %65
65: ; preds = %64
%66 = load i32, ptr %5, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %5, align 4
%68 = load ptr, ptr %3, align 8
%69 = load i32, ptr %5, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, ptr %68, i64 %70
%72 = load i8, ptr %71, align 1
%73 = sext i8 %72 to i32
%74 = icmp ne i32 %73, 0
br i1 %74, label %16, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %65
br label %75
75: ; preds = %._crit_edge, %2
%76 = load ptr, ptr %3, align 8
%77 = load i32, ptr %6, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i8, ptr %76, i64 %78
store i8 0, ptr %79, align 1
%80 = load ptr, ptr %3, align 8
%81 = call i32 @printf(ptr noundef @.str, ptr noundef %80)
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp59y9db9w.c'
source_filename = "/tmp/tmp59y9db9w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"vx[%d]:\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"vx[%d]=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [5 x i32], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %4
4: ; preds = %14, %0
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 5
br i1 %6, label %7, label %17
7: ; preds = %4
%8 = load i32, ptr %2, align 4
%9 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %8)
%10 = load i32, ptr %2, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 %11
%13 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %12)
br label %14
14: ; preds = %7
%15 = load i32, ptr %2, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %2, align 4
br label %4, !llvm.loop !6
17: ; preds = %4
store i32 0, ptr %2, align 4
br label %18
18: ; preds = %28, %17
%19 = load i32, ptr %2, align 4
%20 = icmp slt i32 %19, 5
br i1 %20, label %21, label %31
21: ; preds = %18
%22 = load i32, ptr %2, align 4
%23 = load i32, ptr %2, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 %24
%26 = load i32, ptr %25, align 4
%27 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %22, i32 noundef %26)
br label %28
28: ; preds = %21
%29 = load i32, ptr %2, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %2, align 4
br label %18, !llvm.loop !8
31: ; preds = %18
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp59y9db9w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"vx[%d]:\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"vx[%d]=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [5 x i32], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 5
br i1 %5, label %.lr.ph, label %18
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %13
%7 = load i32, ptr %2, align 4
%8 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %7)
%9 = load i32, ptr %2, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 %10
%12 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %11)
br label %13
13: ; preds = %6
%14 = load i32, ptr %2, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %2, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp slt i32 %16, 5
br i1 %17, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %18
18: ; preds = %._crit_edge, %0
store i32 0, ptr %2, align 4
%19 = load i32, ptr %2, align 4
%20 = icmp slt i32 %19, 5
br i1 %20, label %.lr.ph2, label %33
.lr.ph2: ; preds = %18
br label %21
21: ; preds = %.lr.ph2, %28
%22 = load i32, ptr %2, align 4
%23 = load i32, ptr %2, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 %24
%26 = load i32, ptr %25, align 4
%27 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %22, i32 noundef %26)
br label %28
28: ; preds = %21
%29 = load i32, ptr %2, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %2, align 4
%31 = load i32, ptr %2, align 4
%32 = icmp slt i32 %31, 5
br i1 %32, label %21, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %28
br label %33
33: ; preds = %._crit_edge3, %18
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpkomul_gn.c'
source_filename = "/tmp/tmpkomul_gn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" ./\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"%s ./%s\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"\0AFailed to run %s.\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.5 = private unnamed_addr constant [35 x i8] c"\0AFailed to write to output string.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_file(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%12 = load ptr, ptr %6, align 8
%13 = call i32 @strlen(ptr noundef %12)
%14 = call i32 @strlen(ptr noundef @.str)
%15 = add nsw i32 %13, %14
%16 = load ptr, ptr %5, align 8
%17 = call i32 @strlen(ptr noundef %16)
%18 = add nsw i32 %15, %17
%19 = sext i32 %18 to i64
%20 = mul i64 %19, 1
%21 = call ptr @llvm.stacksave()
store ptr %21, ptr %8, align 8
%22 = alloca i8, i64 %20, align 16
store i64 %20, ptr %9, align 8
%23 = load ptr, ptr %6, align 8
%24 = load ptr, ptr %5, align 8
%25 = call i64 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %22, ptr noundef @.str.1, ptr noundef %23, ptr noundef %24)
%26 = call ptr @popen(ptr noundef %22, ptr noundef @.str.2)
store ptr %26, ptr %10, align 8
%27 = load ptr, ptr %10, align 8
%28 = icmp eq ptr %27, null
br i1 %28, label %29, label %32
29: ; preds = %3
%30 = load ptr, ptr %5, align 8
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %30)
store i32 -1, ptr %4, align 4
store i32 1, ptr %11, align 4
br label %53
32: ; preds = %3
br label %33
33: ; preds = %49, %32
%34 = trunc i64 %20 to i32
%35 = sub nsw i32 %34, 1
%36 = load ptr, ptr %10, align 8
%37 = call ptr @fgets(ptr noundef %22, i32 noundef %35, ptr noundef %36)
%38 = icmp ne ptr %37, null
br i1 %38, label %39, label %50
39: ; preds = %33
%40 = load ptr, ptr %7, align 8
%41 = load ptr, ptr %7, align 8
%42 = call i32 @strlen(ptr noundef %41)
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %40, i64 %43
%45 = call i64 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %44, ptr noundef @.str.4, ptr noundef %22)
%46 = icmp slt i64 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %39
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 -1, ptr %4, align 4
store i32 1, ptr %11, align 4
br label %53
49: ; preds = %39
br label %33, !llvm.loop !6
50: ; preds = %33
%51 = load ptr, ptr %10, align 8
%52 = call i32 @pclose(ptr noundef %51)
store i32 0, ptr %4, align 4
store i32 1, ptr %11, align 4
br label %53
53: ; preds = %50, %47, %29
%54 = load ptr, ptr %8, align 8
call void @llvm.stackrestore(ptr %54)
%55 = load i32, ptr %4, align 4
ret i32 %55
}
declare i32 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i64 @sprintf(ptr noundef, ptr noundef, ptr noundef, ...) #1
declare ptr @popen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @pclose(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkomul_gn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" ./\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"%s ./%s\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"\0AFailed to run %s.\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.5 = private unnamed_addr constant [35 x i8] c"\0AFailed to write to output string.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_file(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%12 = load ptr, ptr %6, align 8
%13 = call i32 @strlen(ptr noundef %12)
%14 = call i32 @strlen(ptr noundef @.str)
%15 = add nsw i32 %13, %14
%16 = load ptr, ptr %5, align 8
%17 = call i32 @strlen(ptr noundef %16)
%18 = add nsw i32 %15, %17
%19 = sext i32 %18 to i64
%20 = mul i64 %19, 1
%21 = call ptr @llvm.stacksave()
store ptr %21, ptr %8, align 8
%22 = alloca i8, i64 %20, align 16
store i64 %20, ptr %9, align 8
%23 = load ptr, ptr %6, align 8
%24 = load ptr, ptr %5, align 8
%25 = call i64 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %22, ptr noundef @.str.1, ptr noundef %23, ptr noundef %24)
%26 = call ptr @popen(ptr noundef %22, ptr noundef @.str.2)
store ptr %26, ptr %10, align 8
%27 = load ptr, ptr %10, align 8
%28 = icmp eq ptr %27, null
br i1 %28, label %29, label %32
29: ; preds = %3
%30 = load ptr, ptr %5, align 8
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %30)
store i32 -1, ptr %4, align 4
store i32 1, ptr %11, align 4
br label %55
32: ; preds = %3
%33 = trunc i64 %20 to i32
%34 = sub nsw i32 %33, 1
%35 = load ptr, ptr %10, align 8
%36 = call ptr @fgets(ptr noundef %22, i32 noundef %34, ptr noundef %35)
%37 = icmp ne ptr %36, null
br i1 %37, label %.lr.ph, label %52
.lr.ph: ; preds = %32
br label %42
38: ; preds = %42
%39 = load ptr, ptr %10, align 8
%40 = call ptr @fgets(ptr noundef %22, i32 noundef %34, ptr noundef %39)
%41 = icmp ne ptr %40, null
br i1 %41, label %42, label %._crit_edge, !llvm.loop !6
42: ; preds = %.lr.ph, %38
%43 = load ptr, ptr %7, align 8
%44 = load ptr, ptr %7, align 8
%45 = call i32 @strlen(ptr noundef %44)
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %43, i64 %46
%48 = call i64 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %47, ptr noundef @.str.4, ptr noundef %22)
%49 = icmp slt i64 %48, 0
br i1 %49, label %50, label %38
50: ; preds = %42
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 -1, ptr %4, align 4
store i32 1, ptr %11, align 4
br label %55
._crit_edge: ; preds = %38
br label %52
52: ; preds = %._crit_edge, %32
%53 = load ptr, ptr %10, align 8
%54 = call i32 @pclose(ptr noundef %53)
store i32 0, ptr %4, align 4
store i32 1, ptr %11, align 4
br label %55
55: ; preds = %52, %50, %29
%56 = load ptr, ptr %8, align 8
call void @llvm.stackrestore(ptr %56)
%57 = load i32, ptr %4, align 4
ret i32 %57
}
declare i32 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i64 @sprintf(ptr noundef, ptr noundef, ptr noundef, ...) #1
declare ptr @popen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @pclose(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpsxjp1_92.c'
source_filename = "/tmp/tmpsxjp1_92.c"
target datalayout = "e-m:e-p270: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/tmpsxjp1_92.c"
target datalayout = "e-m:e-p270: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/tmprxjy1_z9.c'
source_filename = "/tmp/tmprxjy1_z9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SHUT_RDWR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mp_disconnect(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = load i32, ptr @SHUT_RDWR, align 4
%5 = call i32 @shutdown(i32 noundef %3, i32 noundef %4)
%6 = load i32, ptr %2, align 4
%7 = call i32 @close(i32 noundef %6)
ret void
}
declare i32 @shutdown(i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprxjy1_z9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SHUT_RDWR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mp_disconnect(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = load i32, ptr @SHUT_RDWR, align 4
%5 = call i32 @shutdown(i32 noundef %3, i32 noundef %4)
%6 = load i32, ptr %2, align 4
%7 = call i32 @close(i32 noundef %6)
ret void
}
declare i32 @shutdown(i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv780tu3s.c'
source_filename = "/tmp/tmpv780tu3s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOSYS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @__sleep(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr @ENOSYS, align 4
%4 = call i32 @__set_errno(i32 noundef %3)
%5 = load i32, ptr %2, align 4
ret i32 %5
}
declare i32 @__set_errno(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/tmpv780tu3s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOSYS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @__sleep(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr @ENOSYS, align 4
%4 = call i32 @__set_errno(i32 noundef %3)
%5 = load i32, ptr %2, align 4
ret i32 %5
}
declare i32 @__set_errno(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/tmp1z28kln6.c'
source_filename = "/tmp/tmp1z28kln6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 @putint(i32 noundef 42)
ret i32 0
}
declare i32 @putint(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/tmp1z28kln6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 @putint(i32 noundef 42)
ret i32 0
}
declare i32 @putint(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/tmp031rsaoe.c'
source_filename = "/tmp/tmp031rsaoe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"BLUE SKY 1\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"BLUE BOX\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"RED SKY\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"RED BOX\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"DEFAULT\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @auton(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
switch i32 %3, label %101 [
i32 1, label %4
i32 2, label %30
i32 3, label %52
i32 4, label %79
]
4: ; preds = %1
%5 = call i32 @clearLCDLine(i32 noundef 1)
%6 = call i32 @displayLCDCenteredString(i32 noundef 1, ptr noundef @.str)
%7 = call i32 @setLift(i32 noundef 59)
%8 = call i32 @wait1Msec(i32 noundef 1000)
%9 = call i32 @setLift(i32 noundef 0)
%10 = call i32 @driveDegreesRight(i32 noundef 50, i32 noundef 360)
%11 = call i32 @DriveTime(i32 noundef -10, i32 noundef 0, i32 noundef 150)
%12 = call i32 @setClaw(i32 noundef -50)
%13 = call i32 @wait1Msec(i32 noundef 500)
%14 = call i32 @setLift(i32 noundef 74)
%15 = call i32 @wait1Msec(i32 noundef 650)
%16 = call i32 @setLift(i32 noundef 0)
%17 = call i32 @setClaw(i32 noundef -30)
%18 = call i32 @pointTurnRight(i32 noundef 50, i32 noundef 35)
%19 = call i32 @DriveDistance(i32 noundef -42, i32 noundef 180)
%20 = call i32 @pointTurnRight(i32 noundef 42, i32 noundef 165)
%21 = call i32 @DriveTime(i32 noundef 42, i32 noundef 0, i32 noundef 1250)
%22 = call i32 @wait1Msec(i32 noundef 750)
%23 = call i32 @setLift(i32 noundef -127)
%24 = call i32 @wait1Msec(i32 noundef 1000)
%25 = call i32 @setLift(i32 noundef 0)
%26 = call i32 @setClaw(i32 noundef 42)
%27 = call i32 @wait1Msec(i32 noundef 750)
%28 = call i32 @setClaw(i32 noundef 21)
%29 = call i32 @DriveTime(i32 noundef -31, i32 noundef 0, i32 noundef 425)
br label %105
30: ; preds = %1
%31 = call i32 @clearLCDLine(i32 noundef 1)
%32 = call i32 @displayLCDCenteredString(i32 noundef 1, ptr noundef @.str.1)
%33 = call i32 @setClaw(i32 noundef -21)
%34 = call i32 @DriveDistance(i32 noundef -31, i32 noundef 90)
%35 = call i32 @wait1Msec(i32 noundef 500)
%36 = call i32 @DriveDistance(i32 noundef 31, i32 noundef 110)
%37 = call i32 @setClaw(i32 noundef 42)
%38 = call i32 @wait1Msec(i32 noundef 500)
%39 = call i32 @setClaw(i32 noundef 21)
%40 = call i32 @setLift(i32 noundef 127)
%41 = call i32 @wait1Msec(i32 noundef 2600)
%42 = call i32 @setLift(i32 noundef 0)
%43 = call i32 @pointTurnRight(i32 noundef 31, i32 noundef 125)
%44 = call i32 @DriveTime(i32 noundef 31, i32 noundef 0, i32 noundef 1100)
%45 = call i32 @setLift(i32 noundef -63)
%46 = call i32 @wait1Msec(i32 noundef 1000)
%47 = call i32 @setLift(i32 noundef 0)
%48 = call i32 @setClaw(i32 noundef -31)
%49 = call i32 @wait1Msec(i32 noundef 500)
%50 = call i32 @setClaw(i32 noundef 0)
%51 = call i32 @DriveTime(i32 noundef -31, i32 noundef 0, i32 noundef 750)
br label %105
52: ; preds = %1
%53 = call i32 @clearLCDLine(i32 noundef 1)
%54 = call i32 @displayLCDCenteredString(i32 noundef 1, ptr noundef @.str.2)
%55 = call i32 @setLift(i32 noundef 56)
%56 = call i32 @wait1Msec(i32 noundef 1000)
%57 = call i32 @setLift(i32 noundef 0)
%58 = call i32 @driveDegreesLeft(i32 noundef 50, i32 noundef 420)
%59 = call i32 @DriveTime(i32 noundef 25, i32 noundef 0, i32 noundef 150)
%60 = call i32 @DriveTime(i32 noundef -10, i32 noundef 0, i32 noundef 150)
%61 = call i32 @setClaw(i32 noundef -50)
%62 = call i32 @wait1Msec(i32 noundef 500)
%63 = call i32 @setLift(i32 noundef 74)
%64 = call i32 @wait1Msec(i32 noundef 750)
%65 = call i32 @setLift(i32 noundef 0)
%66 = call i32 @setClaw(i32 noundef -30)
%67 = call i32 @pointTurnLeft(i32 noundef 63, i32 noundef 40)
%68 = call i32 @DriveDistance(i32 noundef -42, i32 noundef 180)
%69 = call i32 @pointTurnLeft(i32 noundef 42, i32 noundef 210)
%70 = call i32 @DriveTime(i32 noundef 36, i32 noundef 0, i32 noundef 1250)
%71 = call i32 @wait1Msec(i32 noundef 750)
%72 = call i32 @setLift(i32 noundef -127)
%73 = call i32 @wait1Msec(i32 noundef 1000)
%74 = call i32 @setLift(i32 noundef 0)
%75 = call i32 @setClaw(i32 noundef 42)
%76 = call i32 @wait1Msec(i32 noundef 750)
%77 = call i32 @setClaw(i32 noundef 21)
%78 = call i32 @DriveTime(i32 noundef -31, i32 noundef 0, i32 noundef 375)
br label %105
79: ; preds = %1
%80 = call i32 @clearLCDLine(i32 noundef 1)
%81 = call i32 @displayLCDCenteredString(i32 noundef 1, ptr noundef @.str.3)
%82 = call i32 @setClaw(i32 noundef -21)
%83 = call i32 @DriveDistance(i32 noundef -31, i32 noundef 90)
%84 = call i32 @wait1Msec(i32 noundef 500)
%85 = call i32 @DriveDistance(i32 noundef 31, i32 noundef 110)
%86 = call i32 @setClaw(i32 noundef 42)
%87 = call i32 @wait1Msec(i32 noundef 500)
%88 = call i32 @setClaw(i32 noundef 21)
%89 = call i32 @setLift(i32 noundef 127)
%90 = call i32 @wait1Msec(i32 noundef 2600)
%91 = call i32 @setLift(i32 noundef 0)
%92 = call i32 @pointTurnLeft(i32 noundef 31, i32 noundef 125)
%93 = call i32 @DriveTime(i32 noundef 31, i32 noundef 0, i32 noundef 1100)
%94 = call i32 @setLift(i32 noundef -63)
%95 = call i32 @wait1Msec(i32 noundef 1000)
%96 = call i32 @setLift(i32 noundef 0)
%97 = call i32 @setClaw(i32 noundef -31)
%98 = call i32 @wait1Msec(i32 noundef 500)
%99 = call i32 @setClaw(i32 noundef 0)
%100 = call i32 @DriveTime(i32 noundef -31, i32 noundef 0, i32 noundef 750)
br label %105
101: ; preds = %1
%102 = call i32 @clearLCDLine(i32 noundef 1)
%103 = call i32 @displayLCDCenteredString(i32 noundef 1, ptr noundef @.str.4)
%104 = call i32 @DriveDistance(i32 noundef 42, i32 noundef 360)
br label %105
105: ; preds = %101, %79, %52, %30, %4
%106 = call i32 (...) @allMotorsOff()
ret void
}
declare i32 @clearLCDLine(i32 noundef) #1
declare i32 @displayLCDCenteredString(i32 noundef, ptr noundef) #1
declare i32 @setLift(i32 noundef) #1
declare i32 @wait1Msec(i32 noundef) #1
declare i32 @driveDegreesRight(i32 noundef, i32 noundef) #1
declare i32 @DriveTime(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @setClaw(i32 noundef) #1
declare i32 @pointTurnRight(i32 noundef, i32 noundef) #1
declare i32 @DriveDistance(i32 noundef, i32 noundef) #1
declare i32 @driveDegreesLeft(i32 noundef, i32 noundef) #1
declare i32 @pointTurnLeft(i32 noundef, i32 noundef) #1
declare i32 @allMotorsOff(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp031rsaoe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"BLUE SKY 1\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"BLUE BOX\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"RED SKY\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"RED BOX\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"DEFAULT\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @auton(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
switch i32 %3, label %101 [
i32 1, label %4
i32 2, label %30
i32 3, label %52
i32 4, label %79
]
4: ; preds = %1
%5 = call i32 @clearLCDLine(i32 noundef 1)
%6 = call i32 @displayLCDCenteredString(i32 noundef 1, ptr noundef @.str)
%7 = call i32 @setLift(i32 noundef 59)
%8 = call i32 @wait1Msec(i32 noundef 1000)
%9 = call i32 @setLift(i32 noundef 0)
%10 = call i32 @driveDegreesRight(i32 noundef 50, i32 noundef 360)
%11 = call i32 @DriveTime(i32 noundef -10, i32 noundef 0, i32 noundef 150)
%12 = call i32 @setClaw(i32 noundef -50)
%13 = call i32 @wait1Msec(i32 noundef 500)
%14 = call i32 @setLift(i32 noundef 74)
%15 = call i32 @wait1Msec(i32 noundef 650)
%16 = call i32 @setLift(i32 noundef 0)
%17 = call i32 @setClaw(i32 noundef -30)
%18 = call i32 @pointTurnRight(i32 noundef 50, i32 noundef 35)
%19 = call i32 @DriveDistance(i32 noundef -42, i32 noundef 180)
%20 = call i32 @pointTurnRight(i32 noundef 42, i32 noundef 165)
%21 = call i32 @DriveTime(i32 noundef 42, i32 noundef 0, i32 noundef 1250)
%22 = call i32 @wait1Msec(i32 noundef 750)
%23 = call i32 @setLift(i32 noundef -127)
%24 = call i32 @wait1Msec(i32 noundef 1000)
%25 = call i32 @setLift(i32 noundef 0)
%26 = call i32 @setClaw(i32 noundef 42)
%27 = call i32 @wait1Msec(i32 noundef 750)
%28 = call i32 @setClaw(i32 noundef 21)
%29 = call i32 @DriveTime(i32 noundef -31, i32 noundef 0, i32 noundef 425)
br label %105
30: ; preds = %1
%31 = call i32 @clearLCDLine(i32 noundef 1)
%32 = call i32 @displayLCDCenteredString(i32 noundef 1, ptr noundef @.str.1)
%33 = call i32 @setClaw(i32 noundef -21)
%34 = call i32 @DriveDistance(i32 noundef -31, i32 noundef 90)
%35 = call i32 @wait1Msec(i32 noundef 500)
%36 = call i32 @DriveDistance(i32 noundef 31, i32 noundef 110)
%37 = call i32 @setClaw(i32 noundef 42)
%38 = call i32 @wait1Msec(i32 noundef 500)
%39 = call i32 @setClaw(i32 noundef 21)
%40 = call i32 @setLift(i32 noundef 127)
%41 = call i32 @wait1Msec(i32 noundef 2600)
%42 = call i32 @setLift(i32 noundef 0)
%43 = call i32 @pointTurnRight(i32 noundef 31, i32 noundef 125)
%44 = call i32 @DriveTime(i32 noundef 31, i32 noundef 0, i32 noundef 1100)
%45 = call i32 @setLift(i32 noundef -63)
%46 = call i32 @wait1Msec(i32 noundef 1000)
%47 = call i32 @setLift(i32 noundef 0)
%48 = call i32 @setClaw(i32 noundef -31)
%49 = call i32 @wait1Msec(i32 noundef 500)
%50 = call i32 @setClaw(i32 noundef 0)
%51 = call i32 @DriveTime(i32 noundef -31, i32 noundef 0, i32 noundef 750)
br label %105
52: ; preds = %1
%53 = call i32 @clearLCDLine(i32 noundef 1)
%54 = call i32 @displayLCDCenteredString(i32 noundef 1, ptr noundef @.str.2)
%55 = call i32 @setLift(i32 noundef 56)
%56 = call i32 @wait1Msec(i32 noundef 1000)
%57 = call i32 @setLift(i32 noundef 0)
%58 = call i32 @driveDegreesLeft(i32 noundef 50, i32 noundef 420)
%59 = call i32 @DriveTime(i32 noundef 25, i32 noundef 0, i32 noundef 150)
%60 = call i32 @DriveTime(i32 noundef -10, i32 noundef 0, i32 noundef 150)
%61 = call i32 @setClaw(i32 noundef -50)
%62 = call i32 @wait1Msec(i32 noundef 500)
%63 = call i32 @setLift(i32 noundef 74)
%64 = call i32 @wait1Msec(i32 noundef 750)
%65 = call i32 @setLift(i32 noundef 0)
%66 = call i32 @setClaw(i32 noundef -30)
%67 = call i32 @pointTurnLeft(i32 noundef 63, i32 noundef 40)
%68 = call i32 @DriveDistance(i32 noundef -42, i32 noundef 180)
%69 = call i32 @pointTurnLeft(i32 noundef 42, i32 noundef 210)
%70 = call i32 @DriveTime(i32 noundef 36, i32 noundef 0, i32 noundef 1250)
%71 = call i32 @wait1Msec(i32 noundef 750)
%72 = call i32 @setLift(i32 noundef -127)
%73 = call i32 @wait1Msec(i32 noundef 1000)
%74 = call i32 @setLift(i32 noundef 0)
%75 = call i32 @setClaw(i32 noundef 42)
%76 = call i32 @wait1Msec(i32 noundef 750)
%77 = call i32 @setClaw(i32 noundef 21)
%78 = call i32 @DriveTime(i32 noundef -31, i32 noundef 0, i32 noundef 375)
br label %105
79: ; preds = %1
%80 = call i32 @clearLCDLine(i32 noundef 1)
%81 = call i32 @displayLCDCenteredString(i32 noundef 1, ptr noundef @.str.3)
%82 = call i32 @setClaw(i32 noundef -21)
%83 = call i32 @DriveDistance(i32 noundef -31, i32 noundef 90)
%84 = call i32 @wait1Msec(i32 noundef 500)
%85 = call i32 @DriveDistance(i32 noundef 31, i32 noundef 110)
%86 = call i32 @setClaw(i32 noundef 42)
%87 = call i32 @wait1Msec(i32 noundef 500)
%88 = call i32 @setClaw(i32 noundef 21)
%89 = call i32 @setLift(i32 noundef 127)
%90 = call i32 @wait1Msec(i32 noundef 2600)
%91 = call i32 @setLift(i32 noundef 0)
%92 = call i32 @pointTurnLeft(i32 noundef 31, i32 noundef 125)
%93 = call i32 @DriveTime(i32 noundef 31, i32 noundef 0, i32 noundef 1100)
%94 = call i32 @setLift(i32 noundef -63)
%95 = call i32 @wait1Msec(i32 noundef 1000)
%96 = call i32 @setLift(i32 noundef 0)
%97 = call i32 @setClaw(i32 noundef -31)
%98 = call i32 @wait1Msec(i32 noundef 500)
%99 = call i32 @setClaw(i32 noundef 0)
%100 = call i32 @DriveTime(i32 noundef -31, i32 noundef 0, i32 noundef 750)
br label %105
101: ; preds = %1
%102 = call i32 @clearLCDLine(i32 noundef 1)
%103 = call i32 @displayLCDCenteredString(i32 noundef 1, ptr noundef @.str.4)
%104 = call i32 @DriveDistance(i32 noundef 42, i32 noundef 360)
br label %105
105: ; preds = %101, %79, %52, %30, %4
%106 = call i32 (...) @allMotorsOff()
ret void
}
declare i32 @clearLCDLine(i32 noundef) #1
declare i32 @displayLCDCenteredString(i32 noundef, ptr noundef) #1
declare i32 @setLift(i32 noundef) #1
declare i32 @wait1Msec(i32 noundef) #1
declare i32 @driveDegreesRight(i32 noundef, i32 noundef) #1
declare i32 @DriveTime(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @setClaw(i32 noundef) #1
declare i32 @pointTurnRight(i32 noundef, i32 noundef) #1
declare i32 @DriveDistance(i32 noundef, i32 noundef) #1
declare i32 @driveDegreesLeft(i32 noundef, i32 noundef) #1
declare i32 @pointTurnLeft(i32 noundef, i32 noundef) #1
declare i32 @allMotorsOff(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp43jb09m6.c'
source_filename = "/tmp/tmp43jb09m6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0AOpenSHMEM Analyzer\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @shmem_barrier(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%9 = 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/tmp43jb09m6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0AOpenSHMEM Analyzer\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @shmem_barrier(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%9 = 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/tmpk8ofrura.c'
source_filename = "/tmp/tmpk8ofrura.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lfmm2geno(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%10 = load ptr, ptr %5, align 8
%11 = call i32 @nb_cols_lfmm(ptr noundef %10)
%12 = load ptr, ptr %8, align 8
store i32 %11, ptr %12, align 4
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %8, align 8
%15 = load i32, ptr %14, align 4
%16 = call i32 @nb_lines(ptr noundef %13, i32 noundef %15)
%17 = load ptr, ptr %7, align 8
store i32 %16, ptr %17, align 4
%18 = load ptr, ptr %7, align 8
%19 = load i32, ptr %18, align 4
%20 = load ptr, ptr %8, align 8
%21 = load i32, ptr %20, align 4
%22 = mul nsw i32 %19, %21
%23 = sext i32 %22 to i64
%24 = mul i64 %23, 4
%25 = trunc i64 %24 to i32
%26 = call i64 @malloc(i32 noundef %25)
%27 = inttoptr i64 %26 to ptr
store ptr %27, ptr %9, align 8
%28 = load ptr, ptr %5, align 8
%29 = load ptr, ptr %7, align 8
%30 = load i32, ptr %29, align 4
%31 = load ptr, ptr %8, align 8
%32 = load i32, ptr %31, align 4
%33 = load ptr, ptr %9, align 8
%34 = call i32 @read_data_int(ptr noundef %28, i32 noundef %30, i32 noundef %32, ptr noundef %33)
%35 = load ptr, ptr %6, align 8
%36 = load ptr, ptr %7, align 8
%37 = load i32, ptr %36, align 4
%38 = load ptr, ptr %8, align 8
%39 = load i32, ptr %38, align 4
%40 = load ptr, ptr %9, align 8
%41 = call i32 @write_geno(ptr noundef %35, i32 noundef %37, i32 noundef %39, ptr noundef %40)
%42 = load ptr, ptr %9, align 8
%43 = call i32 @free(ptr noundef %42)
ret void
}
declare i32 @nb_cols_lfmm(ptr noundef) #1
declare i32 @nb_lines(ptr noundef, i32 noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @read_data_int(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @write_geno(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk8ofrura.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lfmm2geno(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%10 = load ptr, ptr %5, align 8
%11 = call i32 @nb_cols_lfmm(ptr noundef %10)
%12 = load ptr, ptr %8, align 8
store i32 %11, ptr %12, align 4
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %8, align 8
%15 = load i32, ptr %14, align 4
%16 = call i32 @nb_lines(ptr noundef %13, i32 noundef %15)
%17 = load ptr, ptr %7, align 8
store i32 %16, ptr %17, align 4
%18 = load ptr, ptr %7, align 8
%19 = load i32, ptr %18, align 4
%20 = load ptr, ptr %8, align 8
%21 = load i32, ptr %20, align 4
%22 = mul nsw i32 %19, %21
%23 = sext i32 %22 to i64
%24 = mul i64 %23, 4
%25 = trunc i64 %24 to i32
%26 = call i64 @malloc(i32 noundef %25)
%27 = inttoptr i64 %26 to ptr
store ptr %27, ptr %9, align 8
%28 = load ptr, ptr %5, align 8
%29 = load ptr, ptr %7, align 8
%30 = load i32, ptr %29, align 4
%31 = load ptr, ptr %8, align 8
%32 = load i32, ptr %31, align 4
%33 = load ptr, ptr %9, align 8
%34 = call i32 @read_data_int(ptr noundef %28, i32 noundef %30, i32 noundef %32, ptr noundef %33)
%35 = load ptr, ptr %6, align 8
%36 = load ptr, ptr %7, align 8
%37 = load i32, ptr %36, align 4
%38 = load ptr, ptr %8, align 8
%39 = load i32, ptr %38, align 4
%40 = load ptr, ptr %9, align 8
%41 = call i32 @write_geno(ptr noundef %35, i32 noundef %37, i32 noundef %39, ptr noundef %40)
%42 = load ptr, ptr %9, align 8
%43 = call i32 @free(ptr noundef %42)
ret void
}
declare i32 @nb_cols_lfmm(ptr noundef) #1
declare i32 @nb_lines(ptr noundef, i32 noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @read_data_int(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @write_geno(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg734s2d5.c'
source_filename = "/tmp/tmpg734s2d5.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @parse_double(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca double, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i64 0, ptr @errno, align 8
%7 = load ptr, ptr %3, align 8
%8 = call double @strtod(ptr noundef %7, ptr noundef %5)
store double %8, ptr %6, align 8
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %3, align 8
%11 = icmp ne ptr %9, %10
br i1 %11, label %12, label %17
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 0
br i1 %16, label %25, label %17
17: ; preds = %12, %2
%18 = load ptr, ptr %5, align 8
%19 = load ptr, ptr %3, align 8
%20 = icmp eq ptr %18, %19
br i1 %20, label %25, label %21
21: ; preds = %17
%22 = load i64, ptr @errno, align 8
%23 = load i64, ptr @ERANGE, align 8
%24 = icmp eq i64 %22, %23
br i1 %24, label %25, label %27
25: ; preds = %21, %17, %12
%26 = load ptr, ptr %4, align 8
store i32 0, ptr %26, align 4
br label %27
27: ; preds = %25, %21
%28 = load double, ptr %6, align 8
ret double %28
}
declare double @strtod(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/tmpg734s2d5.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @parse_double(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca double, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i64 0, ptr @errno, align 8
%7 = load ptr, ptr %3, align 8
%8 = call double @strtod(ptr noundef %7, ptr noundef %5)
store double %8, ptr %6, align 8
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %3, align 8
%11 = icmp ne ptr %9, %10
br i1 %11, label %12, label %17
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 0
br i1 %16, label %25, label %17
17: ; preds = %12, %2
%18 = load ptr, ptr %5, align 8
%19 = load ptr, ptr %3, align 8
%20 = icmp eq ptr %18, %19
br i1 %20, label %25, label %21
21: ; preds = %17
%22 = load i64, ptr @errno, align 8
%23 = load i64, ptr @ERANGE, align 8
%24 = icmp eq i64 %22, %23
br i1 %24, label %25, label %27
25: ; preds = %21, %17, %12
%26 = load ptr, ptr %4, align 8
store i32 0, ptr %26, align 4
br label %27
27: ; preds = %25, %21
%28 = load double, ptr %6, align 8
ret double %28
}
declare double @strtod(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/tmpvqgg07qz.c'
source_filename = "/tmp/tmpvqgg07qz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_getNameIndex(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
ret i64 8
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvqgg07qz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_getNameIndex(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
ret i64 8
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4rb18v3j.c'
source_filename = "/tmp/tmp4rb18v3j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"test !!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
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/tmp4rb18v3j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"test !!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
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/tmpvjmyoslw.c'
source_filename = "/tmp/tmpvjmyoslw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"errno is: %d\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"Erasing file foo.bar\0A\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"foo.bar\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"the error message is: %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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr @errno, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %6)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%9 = call i32 @remove(ptr noundef @.str.2)
%10 = load i32, ptr @errno, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %10)
%12 = load i32, ptr @errno, align 4
%13 = call ptr @strerror(i32 noundef %12)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %13)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @remove(ptr 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/tmpvjmyoslw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"errno is: %d\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"Erasing file foo.bar\0A\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"foo.bar\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"the error message is: %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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr @errno, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %6)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%9 = call i32 @remove(ptr noundef @.str.2)
%10 = load i32, ptr @errno, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %10)
%12 = load i32, ptr @errno, align 4
%13 = call ptr @strerror(i32 noundef %12)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %13)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @remove(ptr 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/tmp4rw6k9pa.c'
source_filename = "/tmp/tmp4rw6k9pa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"mem\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"cls\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"dir\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"type \00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"exit\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"start \00", align 1
@.str.6 = private unnamed_addr constant [15 x i8] c"Bad command.\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cons_runcmd(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%9 = load ptr, ptr %5, align 8
%10 = call i64 @strcmp(ptr noundef %9, ptr noundef @.str)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %4
%13 = load ptr, ptr %6, align 8
%14 = load i32, ptr %8, align 4
%15 = call i32 @cmd_mem(ptr noundef %13, i32 noundef %14)
br label %78
16: ; preds = %4
%17 = load ptr, ptr %5, align 8
%18 = call i64 @strcmp(ptr noundef %17, ptr noundef @.str.1)
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %16
%21 = load ptr, ptr %6, align 8
%22 = call i32 @cmd_cls(ptr noundef %21)
br label %77
23: ; preds = %16
%24 = load ptr, ptr %5, align 8
%25 = call i64 @strcmp(ptr noundef %24, ptr noundef @.str.2)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %23
%28 = load ptr, ptr %6, align 8
%29 = call i32 @cmd_dir(ptr noundef %28)
br label %76
30: ; preds = %23
%31 = load ptr, ptr %5, align 8
%32 = call i64 @strncmp(ptr noundef %31, ptr noundef @.str.3, i32 noundef 5)
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %39
34: ; preds = %30
%35 = load ptr, ptr %6, align 8
%36 = load ptr, ptr %7, align 8
%37 = load ptr, ptr %5, align 8
%38 = call i32 @cmd_type(ptr noundef %35, ptr noundef %36, ptr noundef %37)
br label %75
39: ; preds = %30
%40 = load ptr, ptr %5, align 8
%41 = call i64 @strcmp(ptr noundef %40, ptr noundef @.str.4)
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %47
43: ; preds = %39
%44 = load ptr, ptr %6, align 8
%45 = load ptr, ptr %7, align 8
%46 = call i32 @cmd_exit(ptr noundef %44, ptr noundef %45)
br label %74
47: ; preds = %39
%48 = load ptr, ptr %5, align 8
%49 = call i64 @strncmp(ptr noundef %48, ptr noundef @.str.5, i32 noundef 6)
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %56
51: ; preds = %47
%52 = load ptr, ptr %6, align 8
%53 = load ptr, ptr %5, align 8
%54 = load i32, ptr %8, align 4
%55 = call i32 @cmd_start(ptr noundef %52, ptr noundef %53, i32 noundef %54)
br label %73
56: ; preds = %47
%57 = load ptr, ptr %5, align 8
%58 = getelementptr inbounds i8, ptr %57, i64 0
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = icmp ne i32 %60, 0
br i1 %61, label %62, label %72
62: ; preds = %56
%63 = load ptr, ptr %6, align 8
%64 = load ptr, ptr %7, align 8
%65 = load ptr, ptr %5, align 8
%66 = call i64 @cmd_app(ptr noundef %63, ptr noundef %64, ptr noundef %65)
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %71
68: ; preds = %62
%69 = load ptr, ptr %6, align 8
%70 = call i32 @cons_putstr0(ptr noundef %69, ptr noundef @.str.6)
br label %71
71: ; preds = %68, %62
br label %72
72: ; preds = %71, %56
br label %73
73: ; preds = %72, %51
br label %74
74: ; preds = %73, %43
br label %75
75: ; preds = %74, %34
br label %76
76: ; preds = %75, %27
br label %77
77: ; preds = %76, %20
br label %78
78: ; preds = %77, %12
ret void
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @cmd_mem(ptr noundef, i32 noundef) #1
declare i32 @cmd_cls(ptr noundef) #1
declare i32 @cmd_dir(ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @cmd_type(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @cmd_exit(ptr noundef, ptr noundef) #1
declare i32 @cmd_start(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @cmd_app(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @cons_putstr0(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/tmp4rw6k9pa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"mem\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"cls\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"dir\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"type \00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"exit\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"start \00", align 1
@.str.6 = private unnamed_addr constant [15 x i8] c"Bad command.\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cons_runcmd(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%9 = load ptr, ptr %5, align 8
%10 = call i64 @strcmp(ptr noundef %9, ptr noundef @.str)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %4
%13 = load ptr, ptr %6, align 8
%14 = load i32, ptr %8, align 4
%15 = call i32 @cmd_mem(ptr noundef %13, i32 noundef %14)
br label %78
16: ; preds = %4
%17 = load ptr, ptr %5, align 8
%18 = call i64 @strcmp(ptr noundef %17, ptr noundef @.str.1)
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %16
%21 = load ptr, ptr %6, align 8
%22 = call i32 @cmd_cls(ptr noundef %21)
br label %77
23: ; preds = %16
%24 = load ptr, ptr %5, align 8
%25 = call i64 @strcmp(ptr noundef %24, ptr noundef @.str.2)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %23
%28 = load ptr, ptr %6, align 8
%29 = call i32 @cmd_dir(ptr noundef %28)
br label %76
30: ; preds = %23
%31 = load ptr, ptr %5, align 8
%32 = call i64 @strncmp(ptr noundef %31, ptr noundef @.str.3, i32 noundef 5)
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %39
34: ; preds = %30
%35 = load ptr, ptr %6, align 8
%36 = load ptr, ptr %7, align 8
%37 = load ptr, ptr %5, align 8
%38 = call i32 @cmd_type(ptr noundef %35, ptr noundef %36, ptr noundef %37)
br label %75
39: ; preds = %30
%40 = load ptr, ptr %5, align 8
%41 = call i64 @strcmp(ptr noundef %40, ptr noundef @.str.4)
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %47
43: ; preds = %39
%44 = load ptr, ptr %6, align 8
%45 = load ptr, ptr %7, align 8
%46 = call i32 @cmd_exit(ptr noundef %44, ptr noundef %45)
br label %74
47: ; preds = %39
%48 = load ptr, ptr %5, align 8
%49 = call i64 @strncmp(ptr noundef %48, ptr noundef @.str.5, i32 noundef 6)
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %56
51: ; preds = %47
%52 = load ptr, ptr %6, align 8
%53 = load ptr, ptr %5, align 8
%54 = load i32, ptr %8, align 4
%55 = call i32 @cmd_start(ptr noundef %52, ptr noundef %53, i32 noundef %54)
br label %73
56: ; preds = %47
%57 = load ptr, ptr %5, align 8
%58 = getelementptr inbounds i8, ptr %57, i64 0
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = icmp ne i32 %60, 0
br i1 %61, label %62, label %72
62: ; preds = %56
%63 = load ptr, ptr %6, align 8
%64 = load ptr, ptr %7, align 8
%65 = load ptr, ptr %5, align 8
%66 = call i64 @cmd_app(ptr noundef %63, ptr noundef %64, ptr noundef %65)
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %71
68: ; preds = %62
%69 = load ptr, ptr %6, align 8
%70 = call i32 @cons_putstr0(ptr noundef %69, ptr noundef @.str.6)
br label %71
71: ; preds = %68, %62
br label %72
72: ; preds = %71, %56
br label %73
73: ; preds = %72, %51
br label %74
74: ; preds = %73, %43
br label %75
75: ; preds = %74, %34
br label %76
76: ; preds = %75, %27
br label %77
77: ; preds = %76, %20
br label %78
78: ; preds = %77, %12
ret void
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @cmd_mem(ptr noundef, i32 noundef) #1
declare i32 @cmd_cls(ptr noundef) #1
declare i32 @cmd_dir(ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @cmd_type(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @cmd_exit(ptr noundef, ptr noundef) #1
declare i32 @cmd_start(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @cmd_app(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @cons_putstr0(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/tmppgtqt7w6.c'
source_filename = "/tmp/tmppgtqt7w6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @set_cache_location(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (...) @_clear_error_stack()
%4 = load ptr, ptr %2, align 8
%5 = call i32 @_set_cache_location(ptr noundef %4)
ret i32 %5
}
declare i32 @_clear_error_stack(...) #1
declare i32 @_set_cache_location(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppgtqt7w6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @set_cache_location(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (...) @_clear_error_stack()
%4 = load ptr, ptr %2, align 8
%5 = call i32 @_set_cache_location(ptr noundef %4)
ret i32 %5
}
declare i32 @_clear_error_stack(...) #1
declare i32 @_set_cache_location(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpm02lv8xm.c'
source_filename = "/tmp/tmpm02lv8xm.c"
target datalayout = "e-m:e-p270: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/tmpm02lv8xm.c"
target datalayout = "e-m:e-p270: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/tmp2l_uhv7j.c'
source_filename = "/tmp/tmp2l_uhv7j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @uart_puts(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
br label %3
3: ; preds = %7, %1
%4 = load ptr, ptr %2, align 8
%5 = load i8, ptr %4, align 1
%6 = icmp ne i8 %5, 0
br i1 %6, label %7, label %12
7: ; preds = %3
%8 = load ptr, ptr %2, align 8
%9 = getelementptr inbounds i8, ptr %8, i32 1
store ptr %9, ptr %2, align 8
%10 = load i8, ptr %8, align 1
%11 = call i32 @uart_putc(i8 noundef signext %10)
br label %3, !llvm.loop !6
12: ; preds = %3
%13 = call i32 @uart_putc(i8 noundef signext 10)
ret void
}
declare i32 @uart_putc(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2l_uhv7j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @uart_puts(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i8, ptr %3, align 1
%5 = icmp ne i8 %4, 0
br i1 %5, label %.lr.ph, label %14
.lr.ph: ; preds = %1
br label %6
6: ; preds = %.lr.ph, %6
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds i8, ptr %7, i32 1
store ptr %8, ptr %2, align 8
%9 = load i8, ptr %7, align 1
%10 = call i32 @uart_putc(i8 noundef signext %9)
%11 = load ptr, ptr %2, align 8
%12 = load i8, ptr %11, align 1
%13 = icmp ne i8 %12, 0
br i1 %13, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %6
br label %14
14: ; preds = %._crit_edge, %1
%15 = call i32 @uart_putc(i8 noundef signext 10)
ret void
}
declare i32 @uart_putc(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpvmf2q7ok.c'
source_filename = "/tmp/tmpvmf2q7ok.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.values = private unnamed_addr constant [3 x i32] [i32 1, i32 2, i32 3], align 4
@.str = private unnamed_addr constant [18 x i8] c"element[%i] = %i\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 [3 x i32], align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 @__const.main.values, i64 12, i1 false)
store i32 0, ptr %7, align 4
br label %8
8: ; preds = %18, %2
%9 = load i32, ptr %7, align 4
%10 = icmp slt i32 %9, 5
br i1 %10, label %11, label %21
11: ; preds = %8
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %7, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [3 x i32], ptr %6, i64 0, i64 %14
%16 = load i32, ptr %15, align 4
%17 = call i32 @printf(ptr noundef @.str, i32 noundef %12, i32 noundef %16)
br label %18
18: ; preds = %11
%19 = load i32, ptr %7, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %7, align 4
br label %8, !llvm.loop !6
21: ; preds = %8
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvmf2q7ok.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.values = private unnamed_addr constant [3 x i32] [i32 1, i32 2, i32 3], align 4
@.str = private unnamed_addr constant [18 x i8] c"element[%i] = %i\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 [3 x i32], align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 @__const.main.values, i64 12, i1 false)
store i32 0, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = icmp slt i32 %8, 5
br i1 %9, label %.lr.ph, label %22
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %17
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [3 x i32], ptr %6, i64 0, i64 %13
%15 = load i32, ptr %14, align 4
%16 = call i32 @printf(ptr noundef @.str, i32 noundef %11, i32 noundef %15)
br label %17
17: ; preds = %10
%18 = load i32, ptr %7, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %7, align 4
%20 = load i32, ptr %7, align 4
%21 = icmp slt i32 %20, 5
br i1 %21, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %22
22: ; preds = %._crit_edge, %2
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpqbbyuar7.c'
source_filename = "/tmp/tmpqbbyuar7.c"
target datalayout = "e-m:e-p270: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/tmpqbbyuar7.c"
target datalayout = "e-m:e-p270: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/tmpq62t5asb.c'
source_filename = "/tmp/tmpq62t5asb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @UARTCharGet(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i8, align 1
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i8 0, ptr %4, align 1
%5 = load i32, ptr %2, align 4
%6 = call i32 @UARTRegConfigModeEnable(i32 noundef %5, i32 noundef 127)
store i32 %6, ptr %3, align 4
br label %7
7: ; preds = %15, %1
%8 = load i32, ptr %2, align 4
%9 = add i32 %8, 20
%10 = zext i32 %9 to i64
%11 = inttoptr i64 %10 to ptr
%12 = load volatile i32, ptr %11, align 4
%13 = and i32 %12, 1
%14 = icmp eq i32 0, %13
br i1 %14, label %15, label %16
15: ; preds = %7
br label %7, !llvm.loop !6
16: ; preds = %7
%17 = load i32, ptr %2, align 4
%18 = add i32 %17, 0
%19 = zext i32 %18 to i64
%20 = inttoptr i64 %19 to ptr
%21 = load volatile i32, ptr %20, align 4
%22 = trunc i32 %21 to i8
store i8 %22, ptr %4, align 1
%23 = load i32, ptr %3, align 4
%24 = load i32, ptr %2, align 4
%25 = add i32 %24, 12
%26 = zext i32 %25 to i64
%27 = inttoptr i64 %26 to ptr
store volatile i32 %23, ptr %27, align 4
%28 = load i8, ptr %4, align 1
ret i8 %28
}
declare i32 @UARTRegConfigModeEnable(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq62t5asb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @UARTCharGet(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i8, align 1
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i8 0, ptr %4, align 1
%5 = load i32, ptr %2, align 4
%6 = call i32 @UARTRegConfigModeEnable(i32 noundef %5, i32 noundef 127)
store i32 %6, ptr %3, align 4
br label %7
7: ; preds = %7, %1
%8 = load i32, ptr %2, align 4
%9 = add i32 %8, 20
%10 = zext i32 %9 to i64
%11 = inttoptr i64 %10 to ptr
%12 = load volatile i32, ptr %11, align 4
%13 = and i32 %12, 1
%14 = icmp eq i32 0, %13
br i1 %14, label %7, label %15, !llvm.loop !6
15: ; preds = %7
%16 = load i32, ptr %2, align 4
%17 = add i32 %16, 0
%18 = zext i32 %17 to i64
%19 = inttoptr i64 %18 to ptr
%20 = load volatile i32, ptr %19, align 4
%21 = trunc i32 %20 to i8
store i8 %21, ptr %4, align 1
%22 = load i32, ptr %3, align 4
%23 = load i32, ptr %2, align 4
%24 = add i32 %23, 12
%25 = zext i32 %24 to i64
%26 = inttoptr i64 %25 to ptr
store volatile i32 %22, ptr %26, align 4
%27 = load i8, ptr %4, align 1
ret i8 %27
}
declare i32 @UARTRegConfigModeEnable(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp32l3mmik.c'
source_filename = "/tmp/tmp32l3mmik.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%.10lf\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca double, align 8
store i32 0, ptr %1, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%6 = load ptr, ptr %2, align 8
%7 = call double @pre2dou(ptr noundef %6)
store double %7, ptr %3, align 8
%8 = load double, ptr %3, align 8
%9 = call i32 @printf(ptr noundef @.str.1, double noundef %8)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare double @pre2dou(ptr noundef) #1
declare i32 @printf(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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp32l3mmik.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%.10lf\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca double, align 8
store i32 0, ptr %1, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%6 = load ptr, ptr %2, align 8
%7 = call double @pre2dou(ptr noundef %6)
store double %7, ptr %3, align 8
%8 = load double, ptr %3, align 8
%9 = call i32 @printf(ptr noundef @.str.1, double noundef %8)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare double @pre2dou(ptr noundef) #1
declare i32 @printf(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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9ifkpn4i.c'
source_filename = "/tmp/tmp9ifkpn4i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @distributePivot(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%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
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%11 = load i32, ptr %6, align 4
store i32 %11, ptr %9, align 4
%12 = load i32, ptr %8, align 4
%13 = sub nsw i32 %12, 1
store i32 %13, ptr %10, align 4
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %8, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %27
17: ; preds = %4
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %18, i64 %20
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %8, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %22, i64 %24
%26 = call i32 @swapInt(ptr noundef %21, ptr noundef %25)
br label %27
27: ; preds = %17, %4
br label %28
28: ; preds = %90, %27
%29 = load i32, ptr %9, align 4
%30 = load i32, ptr %10, align 4
%31 = icmp sle i32 %29, %30
br i1 %31, label %32, label %91
32: ; preds = %28
br label %33
33: ; preds = %51, %32
%34 = load i32, ptr %9, align 4
%35 = load i32, ptr %10, align 4
%36 = icmp sle i32 %34, %35
br i1 %36, label %37, label %49
37: ; preds = %33
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr %9, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %38, i64 %40
%42 = load i32, ptr %41, align 4
%43 = load ptr, ptr %5, align 8
%44 = load i32, ptr %8, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i32, ptr %43, i64 %45
%47 = load i32, ptr %46, align 4
%48 = icmp sle i32 %42, %47
br label %49
49: ; preds = %37, %33
%50 = phi i1 [ false, %33 ], [ %48, %37 ]
br i1 %50, label %51, label %54
51: ; preds = %49
%52 = load i32, ptr %9, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %9, align 4
br label %33, !llvm.loop !6
54: ; preds = %49
br label %55
55: ; preds = %73, %54
%56 = load i32, ptr %10, align 4
%57 = load i32, ptr %9, align 4
%58 = icmp sge i32 %56, %57
br i1 %58, label %59, label %71
59: ; preds = %55
%60 = load ptr, ptr %5, 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 = load ptr, ptr %5, align 8
%66 = load i32, ptr %8, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i32, ptr %65, i64 %67
%69 = load i32, ptr %68, align 4
%70 = icmp sge i32 %64, %69
br label %71
71: ; preds = %59, %55
%72 = phi i1 [ false, %55 ], [ %70, %59 ]
br i1 %72, label %73, label %76
73: ; preds = %71
%74 = load i32, ptr %10, align 4
%75 = add nsw i32 %74, -1
store i32 %75, ptr %10, align 4
br label %55, !llvm.loop !8
76: ; preds = %71
%77 = load i32, ptr %9, align 4
%78 = load i32, ptr %10, align 4
%79 = icmp slt i32 %77, %78
br i1 %79, label %80, label %90
80: ; preds = %76
%81 = load ptr, ptr %5, align 8
%82 = load i32, ptr %9, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i32, ptr %81, i64 %83
%85 = load ptr, ptr %5, align 8
%86 = load i32, ptr %10, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i32, ptr %85, i64 %87
%89 = call i32 @swapInt(ptr noundef %84, ptr noundef %88)
br label %90
90: ; preds = %80, %76
br label %28, !llvm.loop !9
91: ; preds = %28
%92 = load i32, ptr %9, align 4
%93 = load i32, ptr %8, align 4
%94 = icmp slt i32 %92, %93
br i1 %94, label %95, label %105
95: ; preds = %91
%96 = load ptr, ptr %5, align 8
%97 = load i32, ptr %9, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i32, ptr %96, i64 %98
%100 = load ptr, ptr %5, align 8
%101 = load i32, ptr %8, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i32, ptr %100, i64 %102
%104 = call i32 @swapInt(ptr noundef %99, ptr noundef %103)
br label %105
105: ; preds = %95, %91
%106 = load i32, ptr %9, align 4
ret i32 %106
}
declare i32 @swapInt(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9ifkpn4i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @distributePivot(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%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
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%11 = load i32, ptr %6, align 4
store i32 %11, ptr %9, align 4
%12 = load i32, ptr %8, align 4
%13 = sub nsw i32 %12, 1
store i32 %13, ptr %10, align 4
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %8, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %27
17: ; preds = %4
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %18, i64 %20
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %8, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %22, i64 %24
%26 = call i32 @swapInt(ptr noundef %21, ptr noundef %25)
br label %27
27: ; preds = %17, %4
%28 = load i32, ptr %9, align 4
%29 = load i32, ptr %10, align 4
%30 = icmp sle i32 %28, %29
br i1 %30, label %.lr.ph, label %93
.lr.ph: ; preds = %27
br label %31
31: ; preds = %.lr.ph, %89
br label %32
32: ; preds = %50, %31
%33 = load i32, ptr %9, align 4
%34 = load i32, ptr %10, align 4
%35 = icmp sle i32 %33, %34
br i1 %35, label %36, label %48
36: ; preds = %32
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %9, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i32, ptr %37, i64 %39
%41 = load i32, ptr %40, align 4
%42 = load ptr, ptr %5, align 8
%43 = load i32, ptr %8, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i32, ptr %42, i64 %44
%46 = load i32, ptr %45, align 4
%47 = icmp sle i32 %41, %46
br label %48
48: ; preds = %36, %32
%49 = phi i1 [ false, %32 ], [ %47, %36 ]
br i1 %49, label %50, label %53
50: ; preds = %48
%51 = load i32, ptr %9, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %9, align 4
br label %32, !llvm.loop !6
53: ; preds = %48
br label %54
54: ; preds = %72, %53
%55 = load i32, ptr %10, align 4
%56 = load i32, ptr %9, align 4
%57 = icmp sge i32 %55, %56
br i1 %57, label %58, label %70
58: ; preds = %54
%59 = load ptr, ptr %5, align 8
%60 = load i32, ptr %10, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i32, ptr %59, i64 %61
%63 = load i32, ptr %62, align 4
%64 = load ptr, ptr %5, align 8
%65 = load i32, ptr %8, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i32, ptr %64, i64 %66
%68 = load i32, ptr %67, align 4
%69 = icmp sge i32 %63, %68
br label %70
70: ; preds = %58, %54
%71 = phi i1 [ false, %54 ], [ %69, %58 ]
br i1 %71, label %72, label %75
72: ; preds = %70
%73 = load i32, ptr %10, align 4
%74 = add nsw i32 %73, -1
store i32 %74, ptr %10, align 4
br label %54, !llvm.loop !8
75: ; preds = %70
%76 = load i32, ptr %9, align 4
%77 = load i32, ptr %10, align 4
%78 = icmp slt i32 %76, %77
br i1 %78, label %79, label %89
79: ; preds = %75
%80 = load ptr, ptr %5, align 8
%81 = load i32, ptr %9, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i32, ptr %80, i64 %82
%84 = load ptr, ptr %5, align 8
%85 = load i32, ptr %10, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i32, ptr %84, i64 %86
%88 = call i32 @swapInt(ptr noundef %83, ptr noundef %87)
br label %89
89: ; preds = %79, %75
%90 = load i32, ptr %9, align 4
%91 = load i32, ptr %10, align 4
%92 = icmp sle i32 %90, %91
br i1 %92, label %31, label %._crit_edge, !llvm.loop !9
._crit_edge: ; preds = %89
br label %93
93: ; preds = %._crit_edge, %27
%94 = load i32, ptr %9, align 4
%95 = load i32, ptr %8, align 4
%96 = icmp slt i32 %94, %95
br i1 %96, label %97, label %107
97: ; preds = %93
%98 = load ptr, ptr %5, align 8
%99 = load i32, ptr %9, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i32, ptr %98, i64 %100
%102 = load ptr, ptr %5, align 8
%103 = load i32, ptr %8, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds i32, ptr %102, i64 %104
%106 = call i32 @swapInt(ptr noundef %101, ptr noundef %105)
br label %107
107: ; preds = %97, %93
%108 = load i32, ptr %9, align 4
ret i32 %108
}
declare i32 @swapInt(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpds7p4ilu.c'
source_filename = "/tmp/tmpds7p4ilu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpds7p4ilu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1pype2kq.c'
source_filename = "/tmp/tmp1pype2kq.c"
target datalayout = "e-m:e-p270: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/tmp1pype2kq.c"
target datalayout = "e-m:e-p270: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/tmpbq7728nu.c'
source_filename = "/tmp/tmpbq7728nu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @parse_time(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
store ptr %8, ptr %7, align 8
%9 = load ptr, ptr %7, align 8
%10 = call i32 @atoi(ptr noundef %9)
%11 = load ptr, ptr %5, align 8
store i32 %10, ptr %11, align 4
br label %12
12: ; preds = %29, %3
%13 = load ptr, ptr %7, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %27
17: ; preds = %12
%18 = load ptr, ptr %7, align 8
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp ne i32 %20, 32
br i1 %21, label %22, label %27
22: ; preds = %17
%23 = load ptr, ptr %7, align 8
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %25, 58
br label %27
27: ; preds = %22, %17, %12
%28 = phi i1 [ false, %17 ], [ false, %12 ], [ %26, %22 ]
br i1 %28, label %29, label %32
29: ; preds = %27
%30 = load ptr, ptr %7, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 1
store ptr %31, ptr %7, align 8
br label %12, !llvm.loop !6
32: ; preds = %27
%33 = load ptr, ptr %7, align 8
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 58
br i1 %36, label %37, label %57
37: ; preds = %32
%38 = load ptr, ptr %7, align 8
%39 = call i32 @atoi(ptr noundef %38)
%40 = load ptr, ptr %6, align 8
store i32 %39, ptr %40, align 4
br label %41
41: ; preds = %53, %37
%42 = load ptr, ptr %7, align 8
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %51
46: ; preds = %41
%47 = load ptr, ptr %7, align 8
%48 = load i8, ptr %47, align 1
%49 = sext i8 %48 to i32
%50 = icmp ne i32 %49, 32
br label %51
51: ; preds = %46, %41
%52 = phi i1 [ false, %41 ], [ %50, %46 ]
br i1 %52, label %53, label %56
53: ; preds = %51
%54 = load ptr, ptr %7, align 8
%55 = getelementptr inbounds i8, ptr %54, i32 1
store ptr %55, ptr %7, align 8
br label %41, !llvm.loop !8
56: ; preds = %51
br label %57
57: ; preds = %56, %32
%58 = load ptr, ptr %7, align 8
%59 = getelementptr inbounds i8, ptr %58, i32 1
store ptr %59, ptr %7, align 8
ret ptr %59
}
declare i32 @atoi(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpbq7728nu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @parse_time(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
store ptr %8, ptr %7, align 8
%9 = load ptr, ptr %7, align 8
%10 = call i32 @atoi(ptr noundef %9)
%11 = load ptr, ptr %5, align 8
store i32 %10, ptr %11, align 4
br label %12
12: ; preds = %29, %3
%13 = load ptr, ptr %7, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %27
17: ; preds = %12
%18 = load ptr, ptr %7, align 8
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp ne i32 %20, 32
br i1 %21, label %22, label %27
22: ; preds = %17
%23 = load ptr, ptr %7, align 8
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %25, 58
br label %27
27: ; preds = %22, %17, %12
%28 = phi i1 [ false, %17 ], [ false, %12 ], [ %26, %22 ]
br i1 %28, label %29, label %32
29: ; preds = %27
%30 = load ptr, ptr %7, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 1
store ptr %31, ptr %7, align 8
br label %12, !llvm.loop !6
32: ; preds = %27
%33 = load ptr, ptr %7, align 8
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 58
br i1 %36, label %37, label %57
37: ; preds = %32
%38 = load ptr, ptr %7, align 8
%39 = call i32 @atoi(ptr noundef %38)
%40 = load ptr, ptr %6, align 8
store i32 %39, ptr %40, align 4
br label %41
41: ; preds = %53, %37
%42 = load ptr, ptr %7, align 8
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %51
46: ; preds = %41
%47 = load ptr, ptr %7, align 8
%48 = load i8, ptr %47, align 1
%49 = sext i8 %48 to i32
%50 = icmp ne i32 %49, 32
br label %51
51: ; preds = %46, %41
%52 = phi i1 [ false, %41 ], [ %50, %46 ]
br i1 %52, label %53, label %56
53: ; preds = %51
%54 = load ptr, ptr %7, align 8
%55 = getelementptr inbounds i8, ptr %54, i32 1
store ptr %55, ptr %7, align 8
br label %41, !llvm.loop !8
56: ; preds = %51
br label %57
57: ; preds = %56, %32
%58 = load ptr, ptr %7, align 8
%59 = getelementptr inbounds i8, ptr %58, i32 1
store ptr %59, ptr %7, align 8
ret ptr %59
}
declare i32 @atoi(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpz5litygf.c'
source_filename = "/tmp/tmpz5litygf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDWR = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IROTH = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [36 x i8] c"file_write: Can't open file %s: %s\0A\00", align 1
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [39 x i8] c"file_write: Failed to write to %s: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @file_write(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%11 = load ptr, ptr %6, align 8
store ptr %11, ptr %10, align 8
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr @O_RDWR, align 4
%14 = load i32, ptr @O_CREAT, align 4
%15 = or i32 %13, %14
%16 = load i32, ptr @O_TRUNC, align 4
%17 = or i32 %15, %16
%18 = load i32, ptr @S_IRUSR, align 4
%19 = load i32, ptr @S_IWUSR, align 4
%20 = or i32 %18, %19
%21 = load i32, ptr @S_IRGRP, align 4
%22 = or i32 %20, %21
%23 = load i32, ptr @S_IROTH, align 4
%24 = or i32 %22, %23
%25 = call i32 @open(ptr noundef %12, i32 noundef %17, i32 noundef %24)
store i32 %25, ptr %8, align 4
%26 = load i32, ptr %8, align 4
%27 = icmp slt i32 %26, 0
br i1 %27, label %28, label %33
28: ; preds = %3
%29 = load ptr, ptr %5, align 8
%30 = load i64, ptr @errno, align 8
%31 = call ptr @strerror(i64 noundef %30)
%32 = call i32 @printf(ptr noundef @.str, ptr noundef %29, ptr noundef %31)
store i32 -1, ptr %4, align 4
br label %69
33: ; preds = %3
br label %34
34: ; preds = %55, %33
%35 = load i64, ptr %7, align 8
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %64
37: ; preds = %34
%38 = load i32, ptr %8, align 4
%39 = load ptr, ptr %10, align 8
%40 = load i64, ptr %7, align 8
%41 = call i32 @write(i32 noundef %38, ptr noundef %39, i64 noundef %40)
store i32 %41, ptr %9, align 4
%42 = load i32, ptr %9, align 4
%43 = icmp sle i32 %42, 0
br i1 %43, label %44, label %55
44: ; preds = %37
%45 = load i64, ptr @errno, align 8
%46 = load i64, ptr @EINTR, align 8
%47 = icmp ne i64 %45, %46
br i1 %47, label %48, label %55
48: ; preds = %44
%49 = load ptr, ptr %5, align 8
%50 = load i64, ptr @errno, align 8
%51 = call ptr @strerror(i64 noundef %50)
%52 = call i32 @printf(ptr noundef @.str.1, ptr noundef %49, ptr noundef %51)
%53 = load i32, ptr %8, align 4
%54 = call i32 @close(i32 noundef %53)
store i32 -1, ptr %4, align 4
br label %69
55: ; preds = %44, %37
%56 = load i32, ptr %9, align 4
%57 = load ptr, ptr %10, align 8
%58 = sext i32 %56 to i64
%59 = getelementptr inbounds i8, ptr %57, i64 %58
store ptr %59, ptr %10, align 8
%60 = load i32, ptr %9, align 4
%61 = sext i32 %60 to i64
%62 = load i64, ptr %7, align 8
%63 = sub i64 %62, %61
store i64 %63, ptr %7, align 8
br label %34, !llvm.loop !6
64: ; preds = %34
%65 = load i32, ptr %8, align 4
%66 = call i32 @fsync(i32 noundef %65)
%67 = load i32, ptr %8, align 4
%68 = call i32 @close(i32 noundef %67)
store i32 0, ptr %4, align 4
br label %69
69: ; preds = %64, %48, %28
%70 = load i32, ptr %4, align 4
ret i32 %70
}
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i64 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @fsync(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/tmpz5litygf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDWR = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IROTH = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [36 x i8] c"file_write: Can't open file %s: %s\0A\00", align 1
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [39 x i8] c"file_write: Failed to write to %s: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @file_write(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%11 = load ptr, ptr %6, align 8
store ptr %11, ptr %10, align 8
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr @O_RDWR, align 4
%14 = load i32, ptr @O_CREAT, align 4
%15 = or i32 %13, %14
%16 = load i32, ptr @O_TRUNC, align 4
%17 = or i32 %15, %16
%18 = load i32, ptr @S_IRUSR, align 4
%19 = load i32, ptr @S_IWUSR, align 4
%20 = or i32 %18, %19
%21 = load i32, ptr @S_IRGRP, align 4
%22 = or i32 %20, %21
%23 = load i32, ptr @S_IROTH, align 4
%24 = or i32 %22, %23
%25 = call i32 @open(ptr noundef %12, i32 noundef %17, i32 noundef %24)
store i32 %25, ptr %8, align 4
%26 = load i32, ptr %8, align 4
%27 = icmp slt i32 %26, 0
br i1 %27, label %28, label %33
28: ; preds = %3
%29 = load ptr, ptr %5, align 8
%30 = load i64, ptr @errno, align 8
%31 = call ptr @strerror(i64 noundef %30)
%32 = call i32 @printf(ptr noundef @.str, ptr noundef %29, ptr noundef %31)
store i32 -1, ptr %4, align 4
br label %70
33: ; preds = %3
%34 = load i64, ptr %7, align 8
%35 = icmp ne i64 %34, 0
br i1 %35, label %.lr.ph, label %65
.lr.ph: ; preds = %33
br label %36
36: ; preds = %.lr.ph, %54
%37 = load i32, ptr %8, align 4
%38 = load ptr, ptr %10, align 8
%39 = load i64, ptr %7, align 8
%40 = call i32 @write(i32 noundef %37, ptr noundef %38, i64 noundef %39)
store i32 %40, ptr %9, align 4
%41 = load i32, ptr %9, align 4
%42 = icmp sle i32 %41, 0
br i1 %42, label %43, label %54
43: ; preds = %36
%44 = load i64, ptr @errno, align 8
%45 = load i64, ptr @EINTR, align 8
%46 = icmp ne i64 %44, %45
br i1 %46, label %47, label %54
47: ; preds = %43
%48 = load ptr, ptr %5, align 8
%49 = load i64, ptr @errno, align 8
%50 = call ptr @strerror(i64 noundef %49)
%51 = call i32 @printf(ptr noundef @.str.1, ptr noundef %48, ptr noundef %50)
%52 = load i32, ptr %8, align 4
%53 = call i32 @close(i32 noundef %52)
store i32 -1, ptr %4, align 4
br label %70
54: ; preds = %43, %36
%55 = load i32, ptr %9, align 4
%56 = load ptr, ptr %10, align 8
%57 = sext i32 %55 to i64
%58 = getelementptr inbounds i8, ptr %56, i64 %57
store ptr %58, ptr %10, align 8
%59 = load i32, ptr %9, align 4
%60 = sext i32 %59 to i64
%61 = load i64, ptr %7, align 8
%62 = sub i64 %61, %60
store i64 %62, ptr %7, align 8
%63 = load i64, ptr %7, align 8
%64 = icmp ne i64 %63, 0
br i1 %64, label %36, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %54
br label %65
65: ; preds = %._crit_edge, %33
%66 = load i32, ptr %8, align 4
%67 = call i32 @fsync(i32 noundef %66)
%68 = load i32, ptr %8, align 4
%69 = call i32 @close(i32 noundef %68)
store i32 0, ptr %4, align 4
br label %70
70: ; preds = %65, %47, %28
%71 = load i32, ptr %4, align 4
ret i32 %71
}
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i64 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @fsync(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/tmpyf7e_lir.c'
source_filename = "/tmp/tmpyf7e_lir.c"
target datalayout = "e-m:e-p270: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_FILENO = 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/tmpyf7e_lir.c"
target datalayout = "e-m:e-p270: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_FILENO = 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/tmpkf2w1zbk.c'
source_filename = "/tmp/tmpkf2w1zbk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.m = private unnamed_addr constant [4 x double] [double 1.100000e+00, double 2.200000e+00, double 3.300000e+00, double 4.400000e+00], align 16
@__const.main.n = private unnamed_addr constant [3 x double] [double 2.000000e+00, double 4.000000e+00, double 6.000000e+00], align 16
@__const.main.p = private unnamed_addr constant [3 x double] [double 1.000000e+00, double 2.000000e+00, double 5.000000e+01], align 16
@__const.main.q = private unnamed_addr constant [3 x double] [double 1.000000e+01, double 2.000000e+01, double 3.000000e+01], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [4 x double], align 16
%3 = alloca [3 x double], align 16
%4 = alloca [3 x double], align 16
%5 = alloca [3 x double], align 16
%6 = alloca [3 x double], align 16
%7 = alloca [7 x i32], align 16
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca i32, align 4
%12 = 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.m, i64 32, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.n, i64 24, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.main.p, i64 24, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.main.q, i64 24, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 24, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 28, i1 false)
store double 0.000000e+00, ptr %8, align 8
store double 0.000000e+00, ptr %9, align 8
store double 0.000000e+00, ptr %10, align 8
store i32 3, ptr %11, align 4
store i32 0, ptr %12, align 4
%13 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
%14 = load i32, ptr %11, align 4
%15 = call i32 @reverse(ptr noundef %13, i32 noundef %14)
%16 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
%17 = load i32, ptr %11, align 4
%18 = call i32 @show(ptr noundef %16, i32 noundef %17)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @reverse(ptr noundef, i32 noundef) #3
declare i32 @show(ptr noundef, i32 noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkf2w1zbk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.m = private unnamed_addr constant [4 x double] [double 1.100000e+00, double 2.200000e+00, double 3.300000e+00, double 4.400000e+00], align 16
@__const.main.n = private unnamed_addr constant [3 x double] [double 2.000000e+00, double 4.000000e+00, double 6.000000e+00], align 16
@__const.main.p = private unnamed_addr constant [3 x double] [double 1.000000e+00, double 2.000000e+00, double 5.000000e+01], align 16
@__const.main.q = private unnamed_addr constant [3 x double] [double 1.000000e+01, double 2.000000e+01, double 3.000000e+01], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [4 x double], align 16
%3 = alloca [3 x double], align 16
%4 = alloca [3 x double], align 16
%5 = alloca [3 x double], align 16
%6 = alloca [3 x double], align 16
%7 = alloca [7 x i32], align 16
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca i32, align 4
%12 = 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.m, i64 32, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.n, i64 24, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.main.p, i64 24, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.main.q, i64 24, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 24, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 28, i1 false)
store double 0.000000e+00, ptr %8, align 8
store double 0.000000e+00, ptr %9, align 8
store double 0.000000e+00, ptr %10, align 8
store i32 3, ptr %11, align 4
store i32 0, ptr %12, align 4
%13 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
%14 = load i32, ptr %11, align 4
%15 = call i32 @reverse(ptr noundef %13, i32 noundef %14)
%16 = getelementptr inbounds [3 x double], ptr %3, i64 0, i64 0
%17 = load i32, ptr %11, align 4
%18 = call i32 @show(ptr noundef %16, i32 noundef %17)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @reverse(ptr noundef, i32 noundef) #3
declare i32 @show(ptr noundef, i32 noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8evsc03j.c'
source_filename = "/tmp/tmp8evsc03j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = call i32 @aplusb(i32 noundef 1, i32 noundef 1)
store i32 %7, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %8)
ret i32 0
}
declare i32 @aplusb(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8evsc03j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = call i32 @aplusb(i32 noundef 1, i32 noundef 1)
store i32 %7, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %8)
ret i32 0
}
declare i32 @aplusb(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfy8xwosw.c'
source_filename = "/tmp/tmpfy8xwosw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @MPIU_Exit(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @exit(i32 noundef %3) #2
unreachable
}
; Function Attrs: noreturn
declare i32 @exit(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 = { 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 #2 = { 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/tmpfy8xwosw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @MPIU_Exit(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @exit(i32 noundef %3) #2
unreachable
}
; Function Attrs: noreturn
declare i32 @exit(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 = { 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 #2 = { 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/tmpcnhfs88j.c'
source_filename = "/tmp/tmpcnhfs88j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_start(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 section ".text.unlikely" {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load i32, ptr %4, align 4
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %6, align 8
%11 = call i32 @main(i32 noundef %8, ptr noundef %9, ptr noundef %10)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = call i32 @exit(i32 noundef %12) #3
unreachable
}
declare i32 @main(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcnhfs88j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_start(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 section ".text.unlikely" {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load i32, ptr %4, align 4
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %6, align 8
%11 = call i32 @main(i32 noundef %8, ptr noundef %9, ptr noundef %10)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = call i32 @exit(i32 noundef %12) #3
unreachable
}
declare i32 @main(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpot2oqrk5.c'
source_filename = "/tmp/tmpot2oqrk5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDWR = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [18 x i8] c"can't open device\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @openAnalogSPI(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr @O_RDWR, align 4
%7 = call i32 @open(ptr noundef %5, i32 noundef %6)
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = call i32 @pabort(ptr noundef @.str)
store i32 -1, ptr %2, align 4
br label %14
12: ; preds = %1
%13 = load i32, ptr %4, align 4
store i32 %13, ptr %2, align 4
br label %14
14: ; preds = %12, %10
%15 = load i32, ptr %2, align 4
ret i32 %15
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @pabort(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpot2oqrk5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDWR = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [18 x i8] c"can't open device\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @openAnalogSPI(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr @O_RDWR, align 4
%7 = call i32 @open(ptr noundef %5, i32 noundef %6)
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = call i32 @pabort(ptr noundef @.str)
store i32 -1, ptr %2, align 4
br label %14
12: ; preds = %1
%13 = load i32, ptr %4, align 4
store i32 %13, ptr %2, align 4
br label %14
14: ; preds = %12, %10
%15 = load i32, ptr %2, align 4
ret i32 %15
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @pabort(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpln9h5awh.c'
source_filename = "/tmp/tmpln9h5awh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [49 x i8] c"You have reached the dreaded 13, stopping here.\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 25, ptr %6, align 4
br label %7
7: ; preds = %19, %2
%8 = load i32, ptr %6, align 4
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %20
10: ; preds = %7
%11 = load i32, ptr %6, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %11)
%13 = load i32, ptr %6, align 4
%14 = add nsw i32 %13, -1
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = icmp eq i32 %15, 13
br i1 %16, label %17, label %19
17: ; preds = %10
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %20
19: ; preds = %10
br label %7, !llvm.loop !6
20: ; preds = %17, %7
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpln9h5awh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [49 x i8] c"You have reached the dreaded 13, stopping here.\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 25, ptr %6, align 4
%7 = load i32, ptr %6, align 4
%8 = icmp sgt i32 %7, 0
br i1 %8, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %2
br label %12
9: ; preds = %12
%10 = load i32, ptr %6, align 4
%11 = icmp sgt i32 %10, 0
br i1 %11, label %12, label %..loopexit_crit_edge, !llvm.loop !6
12: ; preds = %.lr.ph, %9
%13 = load i32, ptr %6, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %13)
%15 = load i32, ptr %6, align 4
%16 = add nsw i32 %15, -1
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = icmp eq i32 %17, 13
br i1 %18, label %19, label %9
19: ; preds = %12
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %21
..loopexit_crit_edge: ; preds = %9
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %2
br label %21
21: ; preds = %.loopexit, %19
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp0un2kv8e.c'
source_filename = "/tmp/tmp0un2kv8e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"{\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"a\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"b\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"\22expected\22:[\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"[\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"]\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"}\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @write_data_as_json(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%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 ptr %3, ptr %9, align 8
store i32 %4, ptr %10, align 4
%12 = load ptr, ptr %6, align 8
%13 = call i32 @fprintf(ptr noundef %12, ptr noundef @.str)
%14 = load ptr, ptr %6, align 8
%15 = load ptr, ptr %7, align 8
%16 = load i32, ptr %10, align 4
%17 = call i32 @write_named_array_ui32(ptr noundef %14, ptr noundef @.str.1, ptr noundef %15, i32 noundef %16)
%18 = load ptr, ptr %6, align 8
%19 = call i32 @fprintf(ptr noundef %18, ptr noundef @.str.2)
%20 = load ptr, ptr %6, align 8
%21 = load ptr, ptr %8, align 8
%22 = load i32, ptr %10, align 4
%23 = call i32 @write_named_array_ui32(ptr noundef %20, ptr noundef @.str.3, ptr noundef %21, i32 noundef %22)
%24 = load ptr, ptr %6, align 8
%25 = call i32 @fprintf(ptr noundef %24, ptr noundef @.str.2)
%26 = load ptr, ptr %6, align 8
%27 = call i32 @fprintf(ptr noundef %26, ptr noundef @.str.4)
store i32 0, ptr %11, align 4
br label %28
28: ; preds = %52, %5
%29 = load i32, ptr %11, align 4
%30 = load i32, ptr %10, align 4
%31 = icmp ult i32 %29, %30
br i1 %31, label %32, label %55
32: ; preds = %28
%33 = load ptr, ptr %6, align 8
%34 = call i32 @fprintf(ptr noundef %33, ptr noundef @.str.5)
%35 = load ptr, ptr %6, align 8
%36 = load ptr, ptr %9, align 8
%37 = load i32, ptr %11, align 4
%38 = mul nsw i32 %37, 2
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i32, ptr %36, i64 %39
%41 = call i32 @write_array_ui32(ptr noundef %35, ptr noundef %40, i32 noundef 2)
%42 = load ptr, ptr %6, align 8
%43 = call i32 @fprintf(ptr noundef %42, ptr noundef @.str.6)
%44 = load i32, ptr %11, align 4
%45 = load i32, ptr %10, align 4
%46 = sub i32 %45, 1
%47 = icmp ult i32 %44, %46
br i1 %47, label %48, label %51
48: ; preds = %32
%49 = load ptr, ptr %6, align 8
%50 = call i32 @fprintf(ptr noundef %49, ptr noundef @.str.2)
br label %51
51: ; preds = %48, %32
br label %52
52: ; preds = %51
%53 = load i32, ptr %11, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %11, align 4
br label %28, !llvm.loop !6
55: ; preds = %28
%56 = load ptr, ptr %6, align 8
%57 = call i32 @fprintf(ptr noundef %56, ptr noundef @.str.6)
%58 = load ptr, ptr %6, align 8
%59 = call i32 @fprintf(ptr noundef %58, ptr noundef @.str.7)
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef) #1
declare i32 @write_named_array_ui32(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @write_array_ui32(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0un2kv8e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"{\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"a\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"b\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"\22expected\22:[\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"[\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"]\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"}\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @write_data_as_json(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%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 ptr %3, ptr %9, align 8
store i32 %4, ptr %10, align 4
%12 = load ptr, ptr %6, align 8
%13 = call i32 @fprintf(ptr noundef %12, ptr noundef @.str)
%14 = load ptr, ptr %6, align 8
%15 = load ptr, ptr %7, align 8
%16 = load i32, ptr %10, align 4
%17 = call i32 @write_named_array_ui32(ptr noundef %14, ptr noundef @.str.1, ptr noundef %15, i32 noundef %16)
%18 = load ptr, ptr %6, align 8
%19 = call i32 @fprintf(ptr noundef %18, ptr noundef @.str.2)
%20 = load ptr, ptr %6, align 8
%21 = load ptr, ptr %8, align 8
%22 = load i32, ptr %10, align 4
%23 = call i32 @write_named_array_ui32(ptr noundef %20, ptr noundef @.str.3, ptr noundef %21, i32 noundef %22)
%24 = load ptr, ptr %6, align 8
%25 = call i32 @fprintf(ptr noundef %24, ptr noundef @.str.2)
%26 = load ptr, ptr %6, align 8
%27 = call i32 @fprintf(ptr noundef %26, ptr noundef @.str.4)
store i32 0, ptr %11, align 4
%28 = load i32, ptr %11, align 4
%29 = load i32, ptr %10, align 4
%30 = icmp ult i32 %28, %29
br i1 %30, label %.lr.ph, label %57
.lr.ph: ; preds = %5
br label %31
31: ; preds = %.lr.ph, %51
%32 = load ptr, ptr %6, align 8
%33 = call i32 @fprintf(ptr noundef %32, ptr noundef @.str.5)
%34 = load ptr, ptr %6, align 8
%35 = load ptr, ptr %9, align 8
%36 = load i32, ptr %11, align 4
%37 = mul nsw i32 %36, 2
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i32, ptr %35, i64 %38
%40 = call i32 @write_array_ui32(ptr noundef %34, ptr noundef %39, i32 noundef 2)
%41 = load ptr, ptr %6, align 8
%42 = call i32 @fprintf(ptr noundef %41, ptr noundef @.str.6)
%43 = load i32, ptr %11, align 4
%44 = load i32, ptr %10, align 4
%45 = sub i32 %44, 1
%46 = icmp ult i32 %43, %45
br i1 %46, label %47, label %50
47: ; preds = %31
%48 = load ptr, ptr %6, align 8
%49 = call i32 @fprintf(ptr noundef %48, ptr noundef @.str.2)
br label %50
50: ; preds = %47, %31
br label %51
51: ; preds = %50
%52 = load i32, ptr %11, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %11, align 4
%54 = load i32, ptr %11, align 4
%55 = load i32, ptr %10, align 4
%56 = icmp ult i32 %54, %55
br i1 %56, label %31, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %51
br label %57
57: ; preds = %._crit_edge, %5
%58 = load ptr, ptr %6, align 8
%59 = call i32 @fprintf(ptr noundef %58, ptr noundef @.str.6)
%60 = load ptr, ptr %6, align 8
%61 = call i32 @fprintf(ptr noundef %60, ptr noundef @.str.7)
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef) #1
declare i32 @write_named_array_ui32(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @write_array_ui32(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmphw0pktb5.c'
source_filename = "/tmp/tmphw0pktb5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @quicksort_partition(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%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 ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca i8, align 1
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%17 = load ptr, ptr %7, align 8
store ptr %17, ptr %13, align 8
store ptr null, ptr %14, align 8
store ptr null, ptr %15, align 8
store i8 0, ptr %16, align 1
br label %18
18: ; preds = %6, %67
br label %19
19: ; preds = %34, %18
%20 = load ptr, ptr %15, align 8
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %24
22: ; preds = %19
%23 = load ptr, ptr %8, align 8
store ptr %23, ptr %15, align 8
br label %28
24: ; preds = %19
%25 = load ptr, ptr %9, align 8
%26 = load ptr, ptr %15, align 8
%27 = call ptr %25(ptr noundef %26)
store ptr %27, ptr %15, align 8
br label %28
28: ; preds = %24, %22
%29 = load ptr, ptr %14, align 8
%30 = load ptr, ptr %15, align 8
%31 = icmp eq ptr %29, %30
br i1 %31, label %32, label %33
32: ; preds = %28
store i8 1, ptr %16, align 1
br label %33
33: ; preds = %32, %28
br label %34
34: ; preds = %33
%35 = load ptr, ptr %12, align 8
%36 = load ptr, ptr %15, align 8
%37 = load ptr, ptr %13, align 8
%38 = call i32 %35(ptr noundef %36, ptr noundef %37)
%39 = icmp sgt i32 %38, 0
br i1 %39, label %19, label %40, !llvm.loop !6
40: ; preds = %34
br label %41
41: ; preds = %56, %40
%42 = load ptr, ptr %14, align 8
%43 = icmp eq ptr %42, null
br i1 %43, label %44, label %46
44: ; preds = %41
%45 = load ptr, ptr %7, align 8
store ptr %45, ptr %14, align 8
br label %50
46: ; preds = %41
%47 = load ptr, ptr %10, align 8
%48 = load ptr, ptr %14, align 8
%49 = call ptr %47(ptr noundef %48)
store ptr %49, ptr %14, align 8
br label %50
50: ; preds = %46, %44
%51 = load ptr, ptr %14, align 8
%52 = load ptr, ptr %15, align 8
%53 = icmp eq ptr %51, %52
br i1 %53, label %54, label %55
54: ; preds = %50
store i8 1, ptr %16, align 1
br label %55
55: ; preds = %54, %50
br label %56
56: ; preds = %55
%57 = load ptr, ptr %12, align 8
%58 = load ptr, ptr %14, align 8
%59 = load ptr, ptr %13, align 8
%60 = call i32 %57(ptr noundef %58, ptr noundef %59)
%61 = icmp slt i32 %60, 0
br i1 %61, label %41, label %62, !llvm.loop !8
62: ; preds = %56
%63 = load i8, ptr %16, align 1
%64 = icmp ne i8 %63, 0
br i1 %64, label %65, label %67
65: ; preds = %62
%66 = load ptr, ptr %15, align 8
ret ptr %66
67: ; preds = %62
%68 = load ptr, ptr %11, align 8
%69 = load ptr, ptr %14, align 8
%70 = load ptr, ptr %15, align 8
call void %68(ptr noundef %69, ptr noundef %70)
br label %18
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphw0pktb5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @quicksort_partition(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%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 ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca i8, align 1
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%17 = load ptr, ptr %7, align 8
store ptr %17, ptr %13, align 8
store ptr null, ptr %14, align 8
store ptr null, ptr %15, align 8
store i8 0, ptr %16, align 1
br label %18
18: ; preds = %67, %6
br label %19
19: ; preds = %34, %18
%20 = load ptr, ptr %15, align 8
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %24
22: ; preds = %19
%23 = load ptr, ptr %8, align 8
store ptr %23, ptr %15, align 8
br label %28
24: ; preds = %19
%25 = load ptr, ptr %9, align 8
%26 = load ptr, ptr %15, align 8
%27 = call ptr %25(ptr noundef %26)
store ptr %27, ptr %15, align 8
br label %28
28: ; preds = %24, %22
%29 = load ptr, ptr %14, align 8
%30 = load ptr, ptr %15, align 8
%31 = icmp eq ptr %29, %30
br i1 %31, label %32, label %33
32: ; preds = %28
store i8 1, ptr %16, align 1
br label %33
33: ; preds = %32, %28
br label %34
34: ; preds = %33
%35 = load ptr, ptr %12, align 8
%36 = load ptr, ptr %15, align 8
%37 = load ptr, ptr %13, align 8
%38 = call i32 %35(ptr noundef %36, ptr noundef %37)
%39 = icmp sgt i32 %38, 0
br i1 %39, label %19, label %40, !llvm.loop !6
40: ; preds = %34
br label %41
41: ; preds = %56, %40
%42 = load ptr, ptr %14, align 8
%43 = icmp eq ptr %42, null
br i1 %43, label %44, label %46
44: ; preds = %41
%45 = load ptr, ptr %7, align 8
store ptr %45, ptr %14, align 8
br label %50
46: ; preds = %41
%47 = load ptr, ptr %10, align 8
%48 = load ptr, ptr %14, align 8
%49 = call ptr %47(ptr noundef %48)
store ptr %49, ptr %14, align 8
br label %50
50: ; preds = %46, %44
%51 = load ptr, ptr %14, align 8
%52 = load ptr, ptr %15, align 8
%53 = icmp eq ptr %51, %52
br i1 %53, label %54, label %55
54: ; preds = %50
store i8 1, ptr %16, align 1
br label %55
55: ; preds = %54, %50
br label %56
56: ; preds = %55
%57 = load ptr, ptr %12, align 8
%58 = load ptr, ptr %14, align 8
%59 = load ptr, ptr %13, align 8
%60 = call i32 %57(ptr noundef %58, ptr noundef %59)
%61 = icmp slt i32 %60, 0
br i1 %61, label %41, label %62, !llvm.loop !8
62: ; preds = %56
%63 = load i8, ptr %16, align 1
%64 = icmp ne i8 %63, 0
br i1 %64, label %65, label %67
65: ; preds = %62
%66 = load ptr, ptr %15, align 8
ret ptr %66
67: ; preds = %62
%68 = load ptr, ptr %11, align 8
%69 = load ptr, ptr %14, align 8
%70 = load ptr, ptr %15, align 8
call void %68(ptr noundef %69, ptr noundef %70)
br label %18
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpmbgu6o7v.c'
source_filename = "/tmp/tmpmbgu6o7v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"======= WeeChat backtrace =======\00", align 1
@.str.1 = private unnamed_addr constant [43 x i8] c"(written by WeeChat %s, compiled on %s %s)\00", align 1
@.str.2 = private unnamed_addr constant [87 x i8] c" No backtrace info (no debug info available or no backtrace possible on your system).\00", align 1
@.str.3 = private unnamed_addr constant [34 x i8] c"======= End of backtrace =======\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @weechat_backtrace() #0 {
%1 = call i32 (ptr, ...) @weechat_backtrace_printf(ptr noundef @.str)
%2 = call i32 (...) @version_get_version_with_git()
%3 = call i32 (...) @version_get_compilation_date()
%4 = call i32 (...) @version_get_compilation_time()
%5 = call i32 (ptr, ...) @weechat_backtrace_printf(ptr noundef @.str.1, i32 noundef %2, i32 noundef %3, i32 noundef %4)
%6 = call i32 (ptr, ...) @weechat_backtrace_printf(ptr noundef @.str.2)
%7 = call i32 (ptr, ...) @weechat_backtrace_printf(ptr noundef @.str.3)
ret void
}
declare i32 @weechat_backtrace_printf(ptr noundef, ...) #1
declare i32 @version_get_version_with_git(...) #1
declare i32 @version_get_compilation_date(...) #1
declare i32 @version_get_compilation_time(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmbgu6o7v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"======= WeeChat backtrace =======\00", align 1
@.str.1 = private unnamed_addr constant [43 x i8] c"(written by WeeChat %s, compiled on %s %s)\00", align 1
@.str.2 = private unnamed_addr constant [87 x i8] c" No backtrace info (no debug info available or no backtrace possible on your system).\00", align 1
@.str.3 = private unnamed_addr constant [34 x i8] c"======= End of backtrace =======\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @weechat_backtrace() #0 {
%1 = call i32 (ptr, ...) @weechat_backtrace_printf(ptr noundef @.str)
%2 = call i32 (...) @version_get_version_with_git()
%3 = call i32 (...) @version_get_compilation_date()
%4 = call i32 (...) @version_get_compilation_time()
%5 = call i32 (ptr, ...) @weechat_backtrace_printf(ptr noundef @.str.1, i32 noundef %2, i32 noundef %3, i32 noundef %4)
%6 = call i32 (ptr, ...) @weechat_backtrace_printf(ptr noundef @.str.2)
%7 = call i32 (ptr, ...) @weechat_backtrace_printf(ptr noundef @.str.3)
ret void
}
declare i32 @weechat_backtrace_printf(ptr noundef, ...) #1
declare i32 @version_get_version_with_git(...) #1
declare i32 @version_get_compilation_date(...) #1
declare i32 @version_get_compilation_time(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbz43glqf.c'
source_filename = "/tmp/tmpbz43glqf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_append(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%11 = load ptr, ptr %6, align 8
%12 = call i32 @strlen(ptr noundef %11)
store i32 %12, ptr %9, align 4
store i32 0, ptr %7, align 4
br label %13
13: ; preds = %46, %3
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %5, align 4
%16 = sub nsw i32 %15, 1
%17 = icmp sle i32 %14, %16
br i1 %17, label %18, label %49
18: ; preds = %13
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds ptr, ptr %19, i64 %21
%23 = load ptr, ptr %22, align 8
%24 = call i32 @strlen(ptr noundef %23)
store i32 %24, ptr %8, align 4
%25 = load i32, ptr %8, align 4
%26 = load i32, ptr %9, align 4
%27 = add nsw i32 %25, %26
%28 = add nsw i32 %27, 1
%29 = call i64 @malloc(i32 noundef %28)
%30 = inttoptr i64 %29 to ptr
store ptr %30, ptr %10, align 8
%31 = load ptr, ptr %10, align 8
%32 = load ptr, ptr %4, align 8
%33 = load i32, ptr %7, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds ptr, ptr %32, i64 %34
%36 = load ptr, ptr %35, align 8
%37 = call i32 @strcpy(ptr noundef %31, ptr noundef %36)
%38 = load ptr, ptr %10, align 8
%39 = load ptr, ptr %6, align 8
%40 = call i32 @strcat(ptr noundef %38, ptr noundef %39)
%41 = load ptr, ptr %10, align 8
%42 = load ptr, ptr %4, align 8
%43 = load i32, ptr %7, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds ptr, ptr %42, i64 %44
store ptr %41, ptr %45, align 8
br label %46
46: ; preds = %18
%47 = load i32, ptr %7, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %7, align 4
br label %13, !llvm.loop !6
49: ; preds = %13
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbz43glqf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_append(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%11 = load ptr, ptr %6, align 8
%12 = call i32 @strlen(ptr noundef %11)
store i32 %12, ptr %9, align 4
store i32 0, ptr %7, align 4
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %5, align 4
%15 = sub nsw i32 %14, 1
%16 = icmp sle i32 %13, %15
br i1 %16, label %.lr.ph, label %52
.lr.ph: ; preds = %3
br label %17
17: ; preds = %.lr.ph, %45
%18 = load ptr, ptr %4, align 8
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds ptr, ptr %18, i64 %20
%22 = load ptr, ptr %21, align 8
%23 = call i32 @strlen(ptr noundef %22)
store i32 %23, ptr %8, align 4
%24 = load i32, ptr %8, align 4
%25 = load i32, ptr %9, align 4
%26 = add nsw i32 %24, %25
%27 = add nsw i32 %26, 1
%28 = call i64 @malloc(i32 noundef %27)
%29 = inttoptr i64 %28 to ptr
store ptr %29, ptr %10, align 8
%30 = load ptr, ptr %10, align 8
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %7, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds ptr, ptr %31, i64 %33
%35 = load ptr, ptr %34, align 8
%36 = call i32 @strcpy(ptr noundef %30, ptr noundef %35)
%37 = load ptr, ptr %10, align 8
%38 = load ptr, ptr %6, align 8
%39 = call i32 @strcat(ptr noundef %37, ptr noundef %38)
%40 = load ptr, ptr %10, align 8
%41 = load ptr, ptr %4, align 8
%42 = load i32, ptr %7, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds ptr, ptr %41, i64 %43
store ptr %40, ptr %44, align 8
br label %45
45: ; preds = %17
%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 %5, align 4
%50 = sub nsw i32 %49, 1
%51 = icmp sle i32 %48, %50
br i1 %51, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %45
br label %52
52: ; preds = %._crit_edge, %3
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpxr6g9j04.c'
source_filename = "/tmp/tmpxr6g9j04.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strcmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
%7 = alloca i8, align 1
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i64 @__tokencap_is_ro(ptr noundef %8)
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %16
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = load ptr, ptr %4, align 8
%14 = call i32 @strlen(ptr noundef %13)
%15 = call i32 @__tokencap_dump(ptr noundef %12, i32 noundef %14, i32 noundef 1)
br label %16
16: ; preds = %11, %2
%17 = load ptr, ptr %5, align 8
%18 = call i64 @__tokencap_is_ro(ptr noundef %17)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %25
20: ; preds = %16
%21 = load ptr, ptr %5, align 8
%22 = load ptr, ptr %5, align 8
%23 = call i32 @strlen(ptr noundef %22)
%24 = call i32 @__tokencap_dump(ptr noundef %21, i32 noundef %23, i32 noundef 1)
br label %25
25: ; preds = %20, %16
br label %26
26: ; preds = %25, %48
%27 = load ptr, ptr %4, align 8
%28 = load i8, ptr %27, align 1
store i8 %28, ptr %6, align 1
%29 = load ptr, ptr %5, align 8
%30 = load i8, ptr %29, align 1
store i8 %30, ptr %7, align 1
%31 = load i8, ptr %6, align 1
%32 = zext i8 %31 to i32
%33 = load i8, ptr %7, align 1
%34 = zext i8 %33 to i32
%35 = icmp ne i32 %32, %34
br i1 %35, label %36, label %44
36: ; preds = %26
%37 = load i8, ptr %6, align 1
%38 = zext i8 %37 to i32
%39 = load i8, ptr %7, align 1
%40 = zext i8 %39 to i32
%41 = icmp sgt i32 %38, %40
%42 = zext i1 %41 to i64
%43 = select i1 %41, i32 1, i32 -1
store i32 %43, ptr %3, align 4
br label %53
44: ; preds = %26
%45 = load i8, ptr %6, align 1
%46 = icmp ne i8 %45, 0
br i1 %46, label %48, label %47
47: ; preds = %44
store i32 0, ptr %3, align 4
br label %53
48: ; preds = %44
%49 = load ptr, ptr %4, align 8
%50 = getelementptr inbounds i8, ptr %49, i32 1
store ptr %50, ptr %4, align 8
%51 = load ptr, ptr %5, align 8
%52 = getelementptr inbounds i8, ptr %51, i32 1
store ptr %52, ptr %5, align 8
br label %26
53: ; preds = %47, %36
%54 = load i32, ptr %3, align 4
ret i32 %54
}
declare i64 @__tokencap_is_ro(ptr noundef) #1
declare i32 @__tokencap_dump(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxr6g9j04.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strcmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
%7 = alloca i8, align 1
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i64 @__tokencap_is_ro(ptr noundef %8)
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %16
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = load ptr, ptr %4, align 8
%14 = call i32 @strlen(ptr noundef %13)
%15 = call i32 @__tokencap_dump(ptr noundef %12, i32 noundef %14, i32 noundef 1)
br label %16
16: ; preds = %11, %2
%17 = load ptr, ptr %5, align 8
%18 = call i64 @__tokencap_is_ro(ptr noundef %17)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %25
20: ; preds = %16
%21 = load ptr, ptr %5, align 8
%22 = load ptr, ptr %5, align 8
%23 = call i32 @strlen(ptr noundef %22)
%24 = call i32 @__tokencap_dump(ptr noundef %21, i32 noundef %23, i32 noundef 1)
br label %25
25: ; preds = %20, %16
%26 = load ptr, ptr %4, align 8
%27 = load i8, ptr %26, align 1
store i8 %27, ptr %6, align 1
%28 = load ptr, ptr %5, align 8
%29 = load i8, ptr %28, align 1
store i8 %29, ptr %7, align 1
%30 = load i8, ptr %6, align 1
%31 = zext i8 %30 to i32
%32 = load i8, ptr %7, align 1
%33 = zext i8 %32 to i32
%34 = icmp ne i32 %31, %33
br i1 %34, label %35, label %.lr.ph
.lr.ph: ; preds = %25
br label %43
._crit_edge: ; preds = %47
br label %35
35: ; preds = %._crit_edge, %25
%36 = load i8, ptr %6, align 1
%37 = zext i8 %36 to i32
%38 = load i8, ptr %7, align 1
%39 = zext i8 %38 to i32
%40 = icmp sgt i32 %37, %39
%41 = zext i1 %40 to i64
%42 = select i1 %40, i32 1, i32 -1
store i32 %42, ptr %3, align 4
br label %61
43: ; preds = %.lr.ph, %47
%44 = load i8, ptr %6, align 1
%45 = icmp ne i8 %44, 0
br i1 %45, label %47, label %46
46: ; preds = %43
store i32 0, ptr %3, align 4
br label %61
47: ; preds = %43
%48 = load ptr, ptr %4, align 8
%49 = getelementptr inbounds i8, ptr %48, i32 1
store ptr %49, ptr %4, align 8
%50 = load ptr, ptr %5, align 8
%51 = getelementptr inbounds i8, ptr %50, i32 1
store ptr %51, ptr %5, align 8
%52 = load ptr, ptr %4, align 8
%53 = load i8, ptr %52, align 1
store i8 %53, ptr %6, align 1
%54 = load ptr, ptr %5, align 8
%55 = load i8, ptr %54, align 1
store i8 %55, ptr %7, align 1
%56 = load i8, ptr %6, align 1
%57 = zext i8 %56 to i32
%58 = load i8, ptr %7, align 1
%59 = zext i8 %58 to i32
%60 = icmp ne i32 %57, %59
br i1 %60, label %._crit_edge, label %43
61: ; preds = %46, %35
%62 = load i32, ptr %3, align 4
ret i32 %62
}
declare i64 @__tokencap_is_ro(ptr noundef) #1
declare i32 @__tokencap_dump(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxukftv4s.c'
source_filename = "/tmp/tmpxukftv4s.c"
target datalayout = "e-m:e-p270: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
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxukftv4s.c"
target datalayout = "e-m:e-p270: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
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphjvjtq9v.c'
source_filename = "/tmp/tmphjvjtq9v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphjvjtq9v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmph1nvgzcr.c'
source_filename = "/tmp/tmph1nvgzcr.c"
target datalayout = "e-m:e-p270: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/tmph1nvgzcr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_vcbqu52.c'
source_filename = "/tmp/tmp_vcbqu52.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_vcbqu52.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.