llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmp8ftt8qby.c'
source_filename = "/tmp/tmp8ftt8qby.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @write_addr(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca [4 x i8], align 1
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = and i32 %4, 255
%6 = trunc i32 %5 to i8
%7 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 3
store i8 %6, ptr %7, align 1
%8 = load i32, ptr %2, align 4
%9 = shl i32 %8, 8
store i32 %9, ptr %2, align 4
%10 = load i32, ptr %2, align 4
%11 = and i32 %10, 255
%12 = trunc i32 %11 to i8
%13 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 2
store i8 %12, ptr %13, align 1
%14 = load i32, ptr %2, align 4
%15 = shl i32 %14, 8
store i32 %15, ptr %2, align 4
%16 = load i32, ptr %2, align 4
%17 = and i32 %16, 255
%18 = trunc i32 %17 to i8
%19 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 1
store i8 %18, ptr %19, align 1
%20 = load i32, ptr %2, align 4
%21 = shl i32 %20, 8
store i32 %21, ptr %2, align 4
%22 = load i32, ptr %2, align 4
%23 = and i32 %22, 255
%24 = trunc i32 %23 to i8
%25 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
store i8 %24, ptr %25, align 1
%26 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%27 = call i32 @write_buf_sum(ptr noundef %26, i32 noundef 4)
ret void
}
declare i32 @write_buf_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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8ftt8qby.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @write_addr(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca [4 x i8], align 1
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = and i32 %4, 255
%6 = trunc i32 %5 to i8
%7 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 3
store i8 %6, ptr %7, align 1
%8 = load i32, ptr %2, align 4
%9 = shl i32 %8, 8
store i32 %9, ptr %2, align 4
%10 = load i32, ptr %2, align 4
%11 = and i32 %10, 255
%12 = trunc i32 %11 to i8
%13 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 2
store i8 %12, ptr %13, align 1
%14 = load i32, ptr %2, align 4
%15 = shl i32 %14, 8
store i32 %15, ptr %2, align 4
%16 = load i32, ptr %2, align 4
%17 = and i32 %16, 255
%18 = trunc i32 %17 to i8
%19 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 1
store i8 %18, ptr %19, align 1
%20 = load i32, ptr %2, align 4
%21 = shl i32 %20, 8
store i32 %21, ptr %2, align 4
%22 = load i32, ptr %2, align 4
%23 = and i32 %22, 255
%24 = trunc i32 %23 to i8
%25 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
store i8 %24, ptr %25, align 1
%26 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%27 = call i32 @write_buf_sum(ptr noundef %26, i32 noundef 4)
ret void
}
declare i32 @write_buf_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"}
|
; ModuleID = '/tmp/tmp3rk_bvxa.c'
source_filename = "/tmp/tmp3rk_bvxa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AF_INET = dso_local global i64 0, align 8
@AI_PASSIVE = dso_local global i32 0, align 4
@SHUT_RDWR = dso_local global i32 0, align 4
@SOCK_STREAM = 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/tmp3rk_bvxa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AF_INET = dso_local global i64 0, align 8
@AI_PASSIVE = dso_local global i32 0, align 4
@SHUT_RDWR = dso_local global i32 0, align 4
@SOCK_STREAM = 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/tmpi37vw97n.c'
source_filename = "/tmp/tmpi37vw97n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rand16() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @lc4_lfsr()
store i32 %2, ptr %1, align 4
%3 = call i32 (...) @lc4_lfsr()
store i32 %3, ptr %1, align 4
%4 = call i32 (...) @lc4_lfsr()
store i32 %4, ptr %1, align 4
%5 = call i32 (...) @lc4_lfsr()
store i32 %5, ptr %1, align 4
%6 = call i32 (...) @lc4_lfsr()
store i32 %6, ptr %1, align 4
%7 = call i32 (...) @lc4_lfsr()
store i32 %7, ptr %1, align 4
%8 = call i32 (...) @lc4_lfsr()
store i32 %8, ptr %1, align 4
%9 = load i32, ptr %1, align 4
%10 = and i32 %9, 127
ret i32 %10
}
declare i32 @lc4_lfsr(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi37vw97n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rand16() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @lc4_lfsr()
store i32 %2, ptr %1, align 4
%3 = call i32 (...) @lc4_lfsr()
store i32 %3, ptr %1, align 4
%4 = call i32 (...) @lc4_lfsr()
store i32 %4, ptr %1, align 4
%5 = call i32 (...) @lc4_lfsr()
store i32 %5, ptr %1, align 4
%6 = call i32 (...) @lc4_lfsr()
store i32 %6, ptr %1, align 4
%7 = call i32 (...) @lc4_lfsr()
store i32 %7, ptr %1, align 4
%8 = call i32 (...) @lc4_lfsr()
store i32 %8, ptr %1, align 4
%9 = load i32, ptr %1, align 4
%10 = and i32 %9, 127
ret i32 %10
}
declare i32 @lc4_lfsr(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpddo63s8z.c'
source_filename = "/tmp/tmpddo63s8z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Enter the height\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
store i32 1, ptr %2, align 4
br label %9
9: ; preds = %38, %0
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp sle i32 %10, %11
br i1 %12, label %13, label %41
13: ; preds = %9
store i32 1, ptr %4, align 4
br label %14
14: ; preds = %20, %13
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %23
18: ; preds = %14
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %20
20: ; preds = %18
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %4, align 4
br label %14, !llvm.loop !6
23: ; preds = %14
store i32 1, ptr %6, align 4
%24 = load i32, ptr %5, align 4
store i32 %24, ptr %3, align 4
br label %25
25: ; preds = %33, %23
%26 = load i32, ptr %3, align 4
%27 = load i32, ptr %2, align 4
%28 = icmp sge i32 %26, %27
br i1 %28, label %29, label %36
29: ; preds = %25
%30 = load i32, ptr %6, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %6, align 4
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %30)
br label %33
33: ; preds = %29
%34 = load i32, ptr %3, align 4
%35 = add nsw i32 %34, -1
store i32 %35, ptr %3, align 4
br label %25, !llvm.loop !8
36: ; preds = %25
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %38
38: ; preds = %36
%39 = load i32, ptr %2, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %2, align 4
br label %9, !llvm.loop !9
41: ; preds = %9
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpddo63s8z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Enter the height\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
store i32 1, ptr %2, align 4
%9 = load i32, ptr %2, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp sle i32 %9, %10
br i1 %11, label %.lr.ph5, label %47
.lr.ph5: ; preds = %0
br label %12
12: ; preds = %.lr.ph5, %41
store i32 1, ptr %4, align 4
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %2, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %24
.lr.ph: ; preds = %12
br label %16
16: ; preds = %.lr.ph, %18
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %18
18: ; preds = %16
%19 = load i32, ptr %4, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %4, align 4
%21 = load i32, ptr %4, align 4
%22 = load i32, ptr %2, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %24
24: ; preds = %._crit_edge, %12
store i32 1, ptr %6, align 4
%25 = load i32, ptr %5, align 4
store i32 %25, ptr %3, align 4
%26 = load i32, ptr %3, align 4
%27 = load i32, ptr %2, align 4
%28 = icmp sge i32 %26, %27
br i1 %28, label %.lr.ph2, label %39
.lr.ph2: ; preds = %24
br label %29
29: ; preds = %.lr.ph2, %33
%30 = load i32, ptr %6, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %6, align 4
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %30)
br label %33
33: ; preds = %29
%34 = load i32, ptr %3, align 4
%35 = add nsw i32 %34, -1
store i32 %35, ptr %3, align 4
%36 = load i32, ptr %3, align 4
%37 = load i32, ptr %2, align 4
%38 = icmp sge i32 %36, %37
br i1 %38, label %29, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %33
br label %39
39: ; preds = %._crit_edge3, %24
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %41
41: ; preds = %39
%42 = load i32, ptr %2, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %2, align 4
%44 = load i32, ptr %2, align 4
%45 = load i32, ptr %5, align 4
%46 = icmp sle i32 %44, %45
br i1 %46, label %12, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %41
br label %47
47: ; preds = %._crit_edge6, %0
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpsws5n31n.c'
source_filename = "/tmp/tmpsws5n31n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"mallinfo: not implemented\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mallopt(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @puts(ptr noundef @.str)
ret i32 0
}
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsws5n31n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"mallinfo: not implemented\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mallopt(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @puts(ptr noundef @.str)
ret i32 0
}
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmph4n57c1c.c'
source_filename = "/tmp/tmph4n57c1c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @throws(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmph4n57c1c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @throws(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxwkovrkc.c'
source_filename = "/tmp/tmpxwkovrkc.c"
target datalayout = "e-m:e-p270: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/tmpxwkovrkc.c"
target datalayout = "e-m:e-p270: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/tmpdzp0_fzj.c'
source_filename = "/tmp/tmpdzp0_fzj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SSIIntRegister(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load i64, ptr %3, align 8
%7 = call i64 @SSIIntNumberGet(i64 noundef %6)
store i64 %7, ptr %5, align 8
%8 = load i64, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i32 @IntRegister(i64 noundef %8, ptr noundef %9)
%11 = load i64, ptr %5, align 8
%12 = call i32 @IntEnable(i64 noundef %11)
ret void
}
declare i64 @SSIIntNumberGet(i64 noundef) #1
declare i32 @IntRegister(i64 noundef, ptr noundef) #1
declare i32 @IntEnable(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdzp0_fzj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SSIIntRegister(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load i64, ptr %3, align 8
%7 = call i64 @SSIIntNumberGet(i64 noundef %6)
store i64 %7, ptr %5, align 8
%8 = load i64, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i32 @IntRegister(i64 noundef %8, ptr noundef %9)
%11 = load i64, ptr %5, align 8
%12 = call i32 @IntEnable(i64 noundef %11)
ret void
}
declare i64 @SSIIntNumberGet(i64 noundef) #1
declare i32 @IntRegister(i64 noundef, ptr noundef) #1
declare i32 @IntEnable(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpifdazip4.c'
source_filename = "/tmp/tmpifdazip4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_GETFL = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
@F_SETFL = dso_local global i32 0, align 4
@MSG_NOSIGNAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@EINTR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sock_bsend(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%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 i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
%13 = load i32, ptr %7, align 4
store i32 %13, ptr %11, align 4
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr @F_GETFL, align 4
%16 = call i32 @fcntl(i32 noundef %14, i32 noundef %15, i32 noundef 0)
store i32 %16, ptr %9, align 4
%17 = load i32, ptr %9, align 4
%18 = load i32, ptr @O_NONBLOCK, align 4
%19 = and i32 %17, %18
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %29
21: ; preds = %3
store i32 1, ptr %8, align 4
%22 = load i32, ptr %5, align 4
%23 = load i32, ptr @F_SETFL, align 4
%24 = load i32, ptr %9, align 4
%25 = load i32, ptr @O_NONBLOCK, align 4
%26 = xor i32 %25, -1
%27 = and i32 %24, %26
%28 = call i32 @fcntl(i32 noundef %22, i32 noundef %23, i32 noundef %27)
br label %29
29: ; preds = %21, %3
br label %30
30: ; preds = %59, %29
%31 = load i32, ptr %11, align 4
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %67
33: ; preds = %30
br label %34
34: ; preds = %45, %33
%35 = load i32, ptr %5, align 4
%36 = load ptr, ptr %6, align 8
%37 = load i32, ptr %11, align 4
%38 = load i32, ptr @MSG_NOSIGNAL, align 4
%39 = call i32 @send(i32 noundef %35, ptr noundef %36, i32 noundef %37, i32 noundef %38)
store i32 %39, ptr %10, align 4
%40 = icmp slt i32 %39, 0
br i1 %40, label %41, label %59
41: ; preds = %34
%42 = load i32, ptr @errno, align 4
%43 = load i32, ptr @EINTR, align 4
%44 = icmp eq i32 %42, %43
br i1 %44, label %45, label %46
45: ; preds = %41
br label %34
46: ; preds = %41
%47 = load i32, ptr @errno, align 4
store i32 %47, ptr %12, align 4
%48 = load i32, ptr %8, align 4
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %57
50: ; preds = %46
%51 = load i32, ptr %5, align 4
%52 = load i32, ptr @F_SETFL, align 4
%53 = load i32, ptr %9, align 4
%54 = load i32, ptr @O_NONBLOCK, align 4
%55 = or i32 %53, %54
%56 = call i32 @fcntl(i32 noundef %51, i32 noundef %52, i32 noundef %55)
br label %57
57: ; preds = %50, %46
%58 = load i32, ptr %12, align 4
store i32 %58, ptr @errno, align 4
store i32 -1, ptr %4, align 4
br label %81
59: ; preds = %34
%60 = load i32, ptr %10, align 4
%61 = load i32, ptr %11, align 4
%62 = sub nsw i32 %61, %60
store i32 %62, ptr %11, align 4
%63 = load i32, ptr %10, align 4
%64 = load ptr, ptr %6, align 8
%65 = sext i32 %63 to i64
%66 = getelementptr i8, ptr %64, i64 %65
store ptr %66, ptr %6, align 8
br label %30, !llvm.loop !6
67: ; preds = %30
%68 = load i32, ptr %8, align 4
%69 = icmp ne i32 %68, 0
br i1 %69, label %70, label %77
70: ; preds = %67
%71 = load i32, ptr %5, align 4
%72 = load i32, ptr @F_SETFL, align 4
%73 = load i32, ptr %9, align 4
%74 = load i32, ptr @O_NONBLOCK, align 4
%75 = or i32 %73, %74
%76 = call i32 @fcntl(i32 noundef %71, i32 noundef %72, i32 noundef %75)
br label %77
77: ; preds = %70, %67
%78 = load i32, ptr %7, align 4
%79 = load i32, ptr %11, align 4
%80 = sub nsw i32 %78, %79
store i32 %80, ptr %4, align 4
br label %81
81: ; preds = %77, %57
%82 = load i32, ptr %4, align 4
ret i32 %82
}
declare i32 @fcntl(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpifdazip4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_GETFL = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
@F_SETFL = dso_local global i32 0, align 4
@MSG_NOSIGNAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@EINTR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sock_bsend(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%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 i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
%13 = load i32, ptr %7, align 4
store i32 %13, ptr %11, align 4
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr @F_GETFL, align 4
%16 = call i32 @fcntl(i32 noundef %14, i32 noundef %15, i32 noundef 0)
store i32 %16, ptr %9, align 4
%17 = load i32, ptr %9, align 4
%18 = load i32, ptr @O_NONBLOCK, align 4
%19 = and i32 %17, %18
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %29
21: ; preds = %3
store i32 1, ptr %8, align 4
%22 = load i32, ptr %5, align 4
%23 = load i32, ptr @F_SETFL, align 4
%24 = load i32, ptr %9, align 4
%25 = load i32, ptr @O_NONBLOCK, align 4
%26 = xor i32 %25, -1
%27 = and i32 %24, %26
%28 = call i32 @fcntl(i32 noundef %22, i32 noundef %23, i32 noundef %27)
br label %29
29: ; preds = %21, %3
%30 = load i32, ptr %11, align 4
%31 = icmp ne i32 %30, 0
br i1 %31, label %.lr.ph2, label %73
.lr.ph2: ; preds = %29
br label %32
32: ; preds = %.lr.ph2, %63
%33 = load i32, ptr %5, align 4
%34 = load ptr, ptr %6, align 8
%35 = load i32, ptr %11, align 4
%36 = load i32, ptr @MSG_NOSIGNAL, align 4
%37 = call i32 @send(i32 noundef %33, ptr noundef %34, i32 noundef %35, i32 noundef %36)
store i32 %37, ptr %10, align 4
%38 = icmp slt i32 %37, 0
br i1 %38, label %.lr.ph, label %63
.lr.ph: ; preds = %32
br label %46
39: ; preds = %46
%40 = load i32, ptr %5, align 4
%41 = load ptr, ptr %6, align 8
%42 = load i32, ptr %11, align 4
%43 = load i32, ptr @MSG_NOSIGNAL, align 4
%44 = call i32 @send(i32 noundef %40, ptr noundef %41, i32 noundef %42, i32 noundef %43)
store i32 %44, ptr %10, align 4
%45 = icmp slt i32 %44, 0
br i1 %45, label %46, label %._crit_edge
46: ; preds = %.lr.ph, %39
%47 = load i32, ptr @errno, align 4
%48 = load i32, ptr @EINTR, align 4
%49 = icmp eq i32 %47, %48
br i1 %49, label %39, label %50
50: ; preds = %46
%51 = load i32, ptr @errno, align 4
store i32 %51, ptr %12, align 4
%52 = load i32, ptr %8, align 4
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %61
54: ; preds = %50
%55 = load i32, ptr %5, align 4
%56 = load i32, ptr @F_SETFL, align 4
%57 = load i32, ptr %9, align 4
%58 = load i32, ptr @O_NONBLOCK, align 4
%59 = or i32 %57, %58
%60 = call i32 @fcntl(i32 noundef %55, i32 noundef %56, i32 noundef %59)
br label %61
61: ; preds = %54, %50
%62 = load i32, ptr %12, align 4
store i32 %62, ptr @errno, align 4
store i32 -1, ptr %4, align 4
br label %87
._crit_edge: ; preds = %39
br label %63
63: ; preds = %._crit_edge, %32
%64 = load i32, ptr %10, align 4
%65 = load i32, ptr %11, align 4
%66 = sub nsw i32 %65, %64
store i32 %66, ptr %11, align 4
%67 = load i32, ptr %10, align 4
%68 = load ptr, ptr %6, align 8
%69 = sext i32 %67 to i64
%70 = getelementptr i8, ptr %68, i64 %69
store ptr %70, ptr %6, align 8
%71 = load i32, ptr %11, align 4
%72 = icmp ne i32 %71, 0
br i1 %72, label %32, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %63
br label %73
73: ; preds = %._crit_edge3, %29
%74 = load i32, ptr %8, align 4
%75 = icmp ne i32 %74, 0
br i1 %75, label %76, label %83
76: ; preds = %73
%77 = load i32, ptr %5, align 4
%78 = load i32, ptr @F_SETFL, align 4
%79 = load i32, ptr %9, align 4
%80 = load i32, ptr @O_NONBLOCK, align 4
%81 = or i32 %79, %80
%82 = call i32 @fcntl(i32 noundef %77, i32 noundef %78, i32 noundef %81)
br label %83
83: ; preds = %76, %73
%84 = load i32, ptr %7, align 4
%85 = load i32, ptr %11, align 4
%86 = sub nsw i32 %84, %85
store i32 %86, ptr %4, align 4
br label %87
87: ; preds = %83, %61
%88 = load i32, ptr %4, align 4
ret i32 %88
}
declare i32 @fcntl(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmprdi8syym.c'
source_filename = "/tmp/tmprdi8syym.c"
target datalayout = "e-m:e-p270: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.sample_input = private unnamed_addr constant [12 x i32] [i32 23, i32 33, i32 45, i32 24, i32 15, i32 76, i32 82, i32 43, i32 51, i32 43, i32 45, i32 -12], align 16
@.str = private unnamed_addr constant [16 x i8] c"Original list: \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c" %d\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"Ignoring invalid input: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [128 x i32], align 16
%3 = alloca [12 x i32], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 512, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.sample_input, i64 48, i1 false)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %4, align 4
br label %7
7: ; preds = %16, %0
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 12
br i1 %9, label %10, label %19
10: ; preds = %7
%11 = load i32, ptr %4, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [12 x i32], ptr %3, i64 0, i64 %12
%14 = load i32, ptr %13, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %14)
br label %16
16: ; preds = %10
%17 = load i32, ptr %4, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %4, align 4
br label %7, !llvm.loop !6
19: ; preds = %7
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %5, align 4
br label %21
21: ; preds = %39, %19
%22 = load i32, ptr %5, align 4
%23 = icmp slt i32 %22, 12
br i1 %23, label %24, label %42
24: ; preds = %21
%25 = getelementptr inbounds [128 x i32], ptr %2, i64 0, i64 0
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [12 x i32], ptr %3, i64 0, i64 %27
%29 = load i32, ptr %28, align 4
%30 = call i64 @add_person(ptr noundef %25, i32 noundef %29)
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %38
32: ; preds = %24
%33 = load i32, ptr %5, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [12 x i32], ptr %3, i64 0, i64 %34
%36 = load i32, ptr %35, align 4
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %36)
br label %38
38: ; preds = %32, %24
br label %39
39: ; preds = %38
%40 = load i32, ptr %5, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %5, align 4
br label %21, !llvm.loop !8
42: ; preds = %21
%43 = getelementptr inbounds [128 x i32], ptr %2, i64 0, i64 0
%44 = call i32 @print_list(ptr noundef %43)
%45 = getelementptr inbounds [128 x i32], ptr %2, i64 0, i64 0
%46 = call i32 @test(ptr noundef %45)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @printf(ptr noundef, ...) #3
declare i64 @add_person(ptr noundef, i32 noundef) #3
declare i32 @print_list(ptr noundef) #3
declare i32 @test(ptr 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: write) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprdi8syym.c"
target datalayout = "e-m:e-p270: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.sample_input = private unnamed_addr constant [12 x i32] [i32 23, i32 33, i32 45, i32 24, i32 15, i32 76, i32 82, i32 43, i32 51, i32 43, i32 45, i32 -12], align 16
@.str = private unnamed_addr constant [16 x i8] c"Original list: \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c" %d\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"Ignoring invalid input: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [128 x i32], align 16
%3 = alloca [12 x i32], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 512, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.sample_input, i64 48, i1 false)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 12
br i1 %8, label %.lr.ph, label %20
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %15
%10 = load i32, ptr %4, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [12 x i32], ptr %3, i64 0, i64 %11
%13 = load i32, ptr %12, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %13)
br label %15
15: ; preds = %9
%16 = load i32, ptr %4, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %4, align 4
%18 = load i32, ptr %4, align 4
%19 = icmp slt i32 %18, 12
br i1 %19, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %20
20: ; preds = %._crit_edge, %0
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %5, align 4
%22 = load i32, ptr %5, align 4
%23 = icmp slt i32 %22, 12
br i1 %23, label %.lr.ph2, label %44
.lr.ph2: ; preds = %20
br label %24
24: ; preds = %.lr.ph2, %39
%25 = getelementptr inbounds [128 x i32], ptr %2, i64 0, i64 0
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [12 x i32], ptr %3, i64 0, i64 %27
%29 = load i32, ptr %28, align 4
%30 = call i64 @add_person(ptr noundef %25, i32 noundef %29)
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %38
32: ; preds = %24
%33 = load i32, ptr %5, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [12 x i32], ptr %3, i64 0, i64 %34
%36 = load i32, ptr %35, align 4
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %36)
br label %38
38: ; preds = %32, %24
br label %39
39: ; preds = %38
%40 = load i32, ptr %5, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %5, align 4
%42 = load i32, ptr %5, align 4
%43 = icmp slt i32 %42, 12
br i1 %43, label %24, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %39
br label %44
44: ; preds = %._crit_edge3, %20
%45 = getelementptr inbounds [128 x i32], ptr %2, i64 0, i64 0
%46 = call i32 @print_list(ptr noundef %45)
%47 = getelementptr inbounds [128 x i32], ptr %2, i64 0, i64 0
%48 = call i32 @test(ptr noundef %47)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @printf(ptr noundef, ...) #3
declare i64 @add_person(ptr noundef, i32 noundef) #3
declare i32 @print_list(ptr noundef) #3
declare i32 @test(ptr 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: write) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpho3zesf4.c'
source_filename = "/tmp/tmpho3zesf4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AF_INET = dso_local global i32 0, align 4
@AF_INET6 = dso_local global i32 0, align 4
@INET6_ADDRSTRLEN = dso_local global i32 0, align 4
@INET_ADDRSTRLEN = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%04x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sfip_raw_ntop(i32 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%13 = load ptr, ptr %6, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %42
15: ; preds = %4
%16 = load ptr, ptr %7, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %42
18: ; preds = %15
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr @AF_INET, align 4
%21 = icmp ne i32 %19, %20
br i1 %21, label %22, label %26
22: ; preds = %18
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr @AF_INET6, align 4
%25 = icmp ne i32 %23, %24
br i1 %25, label %42, label %26
26: ; preds = %22, %18
%27 = load i32, ptr %5, align 4
%28 = load i32, ptr @AF_INET6, align 4
%29 = icmp eq i32 %27, %28
br i1 %29, label %30, label %34
30: ; preds = %26
%31 = load i32, ptr %8, align 4
%32 = load i32, ptr @INET6_ADDRSTRLEN, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %42, label %34
34: ; preds = %30, %26
%35 = load i32, ptr %5, align 4
%36 = load i32, ptr @AF_INET, align 4
%37 = icmp eq i32 %35, %36
br i1 %37, label %38, label %52
38: ; preds = %34
%39 = load i32, ptr %8, align 4
%40 = load i32, ptr @INET_ADDRSTRLEN, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %52
42: ; preds = %38, %30, %22, %15, %4
%43 = load ptr, ptr %7, align 8
%44 = icmp ne ptr %43, null
br i1 %44, label %45, label %51
45: ; preds = %42
%46 = load i32, ptr %8, align 4
%47 = icmp sgt i32 %46, 0
br i1 %47, label %48, label %51
48: ; preds = %45
%49 = load ptr, ptr %7, align 8
%50 = getelementptr inbounds i8, ptr %49, i64 0
store i8 0, ptr %50, align 1
br label %51
51: ; preds = %48, %45, %42
br label %137
52: ; preds = %38, %34
%53 = load i32, ptr %5, align 4
%54 = load i32, ptr @AF_INET, align 4
%55 = icmp eq i32 %53, %54
br i1 %55, label %56, label %96
56: ; preds = %52
%57 = load ptr, ptr %6, align 8
store ptr %57, ptr %10, align 8
store i32 0, ptr %9, align 4
br label %58
58: ; preds = %92, %56
%59 = load ptr, ptr %10, align 8
%60 = load ptr, ptr %6, align 8
%61 = getelementptr inbounds i32, ptr %60, i64 4
%62 = icmp ult ptr %59, %61
br i1 %62, label %63, label %95
63: ; preds = %58
%64 = load ptr, ptr %7, align 8
%65 = load i32, ptr %9, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8, ptr %64, i64 %66
%68 = load ptr, ptr %10, align 8
%69 = load i32, ptr %68, align 4
%70 = call i64 @sprintf(ptr noundef %67, ptr noundef @.str, i32 noundef %69)
%71 = load i32, ptr %9, align 4
%72 = sext i32 %71 to i64
%73 = add nsw i64 %72, %70
%74 = trunc i64 %73 to i32
store i32 %74, ptr %9, align 4
%75 = load i32, ptr %9, align 4
%76 = load i32, ptr %8, align 4
%77 = icmp slt i32 %75, %76
br i1 %77, label %78, label %89
78: ; preds = %63
%79 = load ptr, ptr %10, align 8
%80 = getelementptr inbounds i32, ptr %79, i64 1
%81 = load ptr, ptr %6, align 8
%82 = getelementptr inbounds i32, ptr %81, i64 4
%83 = icmp ult ptr %80, %82
br i1 %83, label %84, label %89
84: ; preds = %78
%85 = load ptr, ptr %7, align 8
%86 = load i32, ptr %9, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i8, ptr %85, i64 %87
store i8 46, ptr %88, align 1
br label %89
89: ; preds = %84, %78, %63
%90 = load i32, ptr %9, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %9, align 4
br label %92
92: ; preds = %89
%93 = load ptr, ptr %10, align 8
%94 = getelementptr inbounds i32, ptr %93, i32 1
store ptr %94, ptr %10, align 8
br label %58, !llvm.loop !6
95: ; preds = %58
br label %137
96: ; preds = %52
%97 = load ptr, ptr %6, align 8
store ptr %97, ptr %12, align 8
store i32 0, ptr %11, align 4
br label %98
98: ; preds = %133, %96
%99 = load ptr, ptr %12, align 8
%100 = load ptr, ptr %6, align 8
%101 = getelementptr inbounds i32, ptr %100, i64 8
%102 = icmp ult ptr %99, %101
br i1 %102, label %103, label %136
103: ; preds = %98
%104 = load ptr, ptr %7, align 8
%105 = load i32, ptr %11, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i8, ptr %104, i64 %106
%108 = load ptr, ptr %12, align 8
%109 = load i32, ptr %108, align 4
%110 = call i32 @ntohs(i32 noundef %109)
%111 = call i64 @sprintf(ptr noundef %107, ptr noundef @.str.1, i32 noundef %110)
%112 = load i32, ptr %11, align 4
%113 = sext i32 %112 to i64
%114 = add nsw i64 %113, %111
%115 = trunc i64 %114 to i32
store i32 %115, ptr %11, align 4
%116 = load i32, ptr %11, align 4
%117 = load i32, ptr %8, align 4
%118 = icmp slt i32 %116, %117
br i1 %118, label %119, label %130
119: ; preds = %103
%120 = load ptr, ptr %12, align 8
%121 = getelementptr inbounds i32, ptr %120, i64 1
%122 = load ptr, ptr %6, align 8
%123 = getelementptr inbounds i32, ptr %122, i64 8
%124 = icmp ult ptr %121, %123
br i1 %124, label %125, label %130
125: ; preds = %119
%126 = load ptr, ptr %7, align 8
%127 = load i32, ptr %11, align 4
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds i8, ptr %126, i64 %128
store i8 58, ptr %129, align 1
br label %130
130: ; preds = %125, %119, %103
%131 = load i32, ptr %11, align 4
%132 = add nsw i32 %131, 1
store i32 %132, ptr %11, align 4
br label %133
133: ; preds = %130
%134 = load ptr, ptr %12, align 8
%135 = getelementptr inbounds i32, ptr %134, i32 1
store ptr %135, ptr %12, align 8
br label %98, !llvm.loop !8
136: ; preds = %98
br label %137
137: ; preds = %51, %136, %95
ret void
}
declare i64 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @ntohs(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/tmpho3zesf4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AF_INET = dso_local global i32 0, align 4
@AF_INET6 = dso_local global i32 0, align 4
@INET6_ADDRSTRLEN = dso_local global i32 0, align 4
@INET_ADDRSTRLEN = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%04x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sfip_raw_ntop(i32 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%13 = load ptr, ptr %6, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %42
15: ; preds = %4
%16 = load ptr, ptr %7, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %42
18: ; preds = %15
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr @AF_INET, align 4
%21 = icmp ne i32 %19, %20
br i1 %21, label %22, label %26
22: ; preds = %18
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr @AF_INET6, align 4
%25 = icmp ne i32 %23, %24
br i1 %25, label %42, label %26
26: ; preds = %22, %18
%27 = load i32, ptr %5, align 4
%28 = load i32, ptr @AF_INET6, align 4
%29 = icmp eq i32 %27, %28
br i1 %29, label %30, label %34
30: ; preds = %26
%31 = load i32, ptr %8, align 4
%32 = load i32, ptr @INET6_ADDRSTRLEN, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %42, label %34
34: ; preds = %30, %26
%35 = load i32, ptr %5, align 4
%36 = load i32, ptr @AF_INET, align 4
%37 = icmp eq i32 %35, %36
br i1 %37, label %38, label %52
38: ; preds = %34
%39 = load i32, ptr %8, align 4
%40 = load i32, ptr @INET_ADDRSTRLEN, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %52
42: ; preds = %38, %30, %22, %15, %4
%43 = load ptr, ptr %7, align 8
%44 = icmp ne ptr %43, null
br i1 %44, label %45, label %51
45: ; preds = %42
%46 = load i32, ptr %8, align 4
%47 = icmp sgt i32 %46, 0
br i1 %47, label %48, label %51
48: ; preds = %45
%49 = load ptr, ptr %7, align 8
%50 = getelementptr inbounds i8, ptr %49, i64 0
store i8 0, ptr %50, align 1
br label %51
51: ; preds = %48, %45, %42
br label %143
52: ; preds = %38, %34
%53 = load i32, ptr %5, align 4
%54 = load i32, ptr @AF_INET, align 4
%55 = icmp eq i32 %53, %54
br i1 %55, label %56, label %99
56: ; preds = %52
%57 = load ptr, ptr %6, align 8
store ptr %57, ptr %10, align 8
store i32 0, ptr %9, align 4
%58 = load ptr, ptr %10, align 8
%59 = load ptr, ptr %6, align 8
%60 = getelementptr inbounds i32, ptr %59, i64 4
%61 = icmp ult ptr %58, %60
br i1 %61, label %.lr.ph2, label %98
.lr.ph2: ; preds = %56
br label %62
62: ; preds = %.lr.ph2, %91
%63 = load ptr, ptr %7, align 8
%64 = load i32, ptr %9, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i8, ptr %63, i64 %65
%67 = load ptr, ptr %10, align 8
%68 = load i32, ptr %67, align 4
%69 = call i64 @sprintf(ptr noundef %66, ptr noundef @.str, i32 noundef %68)
%70 = load i32, ptr %9, align 4
%71 = sext i32 %70 to i64
%72 = add nsw i64 %71, %69
%73 = trunc i64 %72 to i32
store i32 %73, ptr %9, align 4
%74 = load i32, ptr %9, align 4
%75 = load i32, ptr %8, align 4
%76 = icmp slt i32 %74, %75
br i1 %76, label %77, label %88
77: ; preds = %62
%78 = load ptr, ptr %10, align 8
%79 = getelementptr inbounds i32, ptr %78, i64 1
%80 = load ptr, ptr %6, align 8
%81 = getelementptr inbounds i32, ptr %80, i64 4
%82 = icmp ult ptr %79, %81
br i1 %82, label %83, label %88
83: ; preds = %77
%84 = load ptr, ptr %7, align 8
%85 = load i32, ptr %9, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i8, ptr %84, i64 %86
store i8 46, ptr %87, align 1
br label %88
88: ; preds = %83, %77, %62
%89 = load i32, ptr %9, align 4
%90 = add nsw i32 %89, 1
store i32 %90, ptr %9, align 4
br label %91
91: ; preds = %88
%92 = load ptr, ptr %10, align 8
%93 = getelementptr inbounds i32, ptr %92, i32 1
store ptr %93, ptr %10, align 8
%94 = load ptr, ptr %10, align 8
%95 = load ptr, ptr %6, align 8
%96 = getelementptr inbounds i32, ptr %95, i64 4
%97 = icmp ult ptr %94, %96
br i1 %97, label %62, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %91
br label %98
98: ; preds = %._crit_edge3, %56
br label %143
99: ; preds = %52
%100 = load ptr, ptr %6, align 8
store ptr %100, ptr %12, align 8
store i32 0, ptr %11, align 4
%101 = load ptr, ptr %12, align 8
%102 = load ptr, ptr %6, align 8
%103 = getelementptr inbounds i32, ptr %102, i64 8
%104 = icmp ult ptr %101, %103
br i1 %104, label %.lr.ph, label %142
.lr.ph: ; preds = %99
br label %105
105: ; preds = %.lr.ph, %135
%106 = load ptr, ptr %7, align 8
%107 = load i32, ptr %11, align 4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds i8, ptr %106, i64 %108
%110 = load ptr, ptr %12, align 8
%111 = load i32, ptr %110, align 4
%112 = call i32 @ntohs(i32 noundef %111)
%113 = call i64 @sprintf(ptr noundef %109, ptr noundef @.str.1, i32 noundef %112)
%114 = load i32, ptr %11, align 4
%115 = sext i32 %114 to i64
%116 = add nsw i64 %115, %113
%117 = trunc i64 %116 to i32
store i32 %117, ptr %11, align 4
%118 = load i32, ptr %11, align 4
%119 = load i32, ptr %8, align 4
%120 = icmp slt i32 %118, %119
br i1 %120, label %121, label %132
121: ; preds = %105
%122 = load ptr, ptr %12, align 8
%123 = getelementptr inbounds i32, ptr %122, i64 1
%124 = load ptr, ptr %6, align 8
%125 = getelementptr inbounds i32, ptr %124, i64 8
%126 = icmp ult ptr %123, %125
br i1 %126, label %127, label %132
127: ; preds = %121
%128 = load ptr, ptr %7, align 8
%129 = load i32, ptr %11, align 4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds i8, ptr %128, i64 %130
store i8 58, ptr %131, align 1
br label %132
132: ; preds = %127, %121, %105
%133 = load i32, ptr %11, align 4
%134 = add nsw i32 %133, 1
store i32 %134, ptr %11, align 4
br label %135
135: ; preds = %132
%136 = load ptr, ptr %12, align 8
%137 = getelementptr inbounds i32, ptr %136, i32 1
store ptr %137, ptr %12, align 8
%138 = load ptr, ptr %12, align 8
%139 = load ptr, ptr %6, align 8
%140 = getelementptr inbounds i32, ptr %139, i64 8
%141 = icmp ult ptr %138, %140
br i1 %141, label %105, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %135
br label %142
142: ; preds = %._crit_edge, %99
br label %143
143: ; preds = %142, %98, %51
ret void
}
declare i64 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @ntohs(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/tmpxujoiqzj.c'
source_filename = "/tmp/tmpxujoiqzj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nlmsg_free(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @list_free(ptr noundef %3, ptr noundef null)
ret void
}
declare i32 @list_free(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/tmpxujoiqzj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nlmsg_free(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @list_free(ptr noundef %3, ptr noundef null)
ret void
}
declare i32 @list_free(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/tmp996bp5sl.c'
source_filename = "/tmp/tmp996bp5sl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Enter filename:\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [11 x i8] c"Error: %d\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [50 x i8], align 16
%3 = alloca [1025 x i8], align 16
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = load i32, ptr @stdout, align 4
%7 = call i32 @fflush(i32 noundef %6)
%8 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %8)
%10 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%11 = load i32, ptr @O_RDONLY, align 4
%12 = call i32 @open(ptr noundef %10, i32 noundef %11)
store i32 %12, ptr %4, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp eq i32 %13, -1
br i1 %14, label %15, label %18
15: ; preds = %0
%16 = load i32, ptr @errno, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %16)
store i32 -1, ptr %1, align 4
br label %33
18: ; preds = %0
%19 = load i32, ptr %4, align 4
%20 = getelementptr inbounds [1025 x i8], ptr %3, i64 0, i64 0
%21 = call i64 @read(i32 noundef %19, ptr noundef %20, i32 noundef 1025)
%22 = icmp slt i64 %21, 0
br i1 %22, label %23, label %28
23: ; preds = %18
%24 = load i32, ptr @errno, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %24)
%26 = load i32, ptr %4, align 4
%27 = call i32 @close(i32 noundef %26)
store i32 -1, ptr %1, align 4
br label %33
28: ; preds = %18
%29 = getelementptr inbounds [1025 x i8], ptr %3, i64 0, i64 0
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %29)
%31 = load i32, ptr %4, align 4
%32 = call i32 @close(i32 noundef %31)
store i32 0, ptr %1, align 4
br label %33
33: ; preds = %28, %23, %15
%34 = load i32, ptr %1, align 4
ret i32 %34
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fflush(i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp996bp5sl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Enter filename:\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [11 x i8] c"Error: %d\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [50 x i8], align 16
%3 = alloca [1025 x i8], align 16
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = load i32, ptr @stdout, align 4
%7 = call i32 @fflush(i32 noundef %6)
%8 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %8)
%10 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%11 = load i32, ptr @O_RDONLY, align 4
%12 = call i32 @open(ptr noundef %10, i32 noundef %11)
store i32 %12, ptr %4, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp eq i32 %13, -1
br i1 %14, label %15, label %18
15: ; preds = %0
%16 = load i32, ptr @errno, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %16)
store i32 -1, ptr %1, align 4
br label %33
18: ; preds = %0
%19 = load i32, ptr %4, align 4
%20 = getelementptr inbounds [1025 x i8], ptr %3, i64 0, i64 0
%21 = call i64 @read(i32 noundef %19, ptr noundef %20, i32 noundef 1025)
%22 = icmp slt i64 %21, 0
br i1 %22, label %23, label %28
23: ; preds = %18
%24 = load i32, ptr @errno, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %24)
%26 = load i32, ptr %4, align 4
%27 = call i32 @close(i32 noundef %26)
store i32 -1, ptr %1, align 4
br label %33
28: ; preds = %18
%29 = getelementptr inbounds [1025 x i8], ptr %3, i64 0, i64 0
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %29)
%31 = load i32, ptr %4, align 4
%32 = call i32 @close(i32 noundef %31)
store i32 0, ptr %1, align 4
br label %33
33: ; preds = %28, %23, %15
%34 = load i32, ptr %1, align 4
ret i32 %34
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fflush(i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8aa9jfg_.c'
source_filename = "/tmp/tmp8aa9jfg_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@.str.1 = private unnamed_addr constant [13 x i8] c"memfd_create\00", align 1
@.str.2 = private unnamed_addr constant [72 x i8] c"please send me a 64 bit binary to run. Format: len as uint32 LE || data\00", align 1
@STDIN_FILENO = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [20 x i8] c"reading 0x%x bytes\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_binary() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 @syscall(i32 noundef 319, ptr noundef @.str, i32 noundef 1)
%4 = call i32 @check(i32 noundef %3, ptr noundef @.str.1)
store i32 %4, ptr %1, align 4
%5 = call i32 @puts(ptr noundef @.str.2)
store i32 0, ptr %2, align 4
%6 = load i32, ptr @STDIN_FILENO, align 4
%7 = call i32 @readn(i32 noundef %6, ptr noundef %2, i32 noundef 4)
%8 = load i32, ptr %2, align 4
%9 = call i32 @printf(ptr noundef @.str.3, i32 noundef %8)
%10 = load i32, ptr @STDIN_FILENO, align 4
%11 = load i32, ptr %1, align 4
%12 = load i32, ptr %2, align 4
%13 = call i32 @copy_fd_len(i32 noundef %10, i32 noundef %11, i32 noundef %12)
%14 = load i32, ptr %1, align 4
ret i32 %14
}
declare i32 @check(i32 noundef, ptr noundef) #1
declare i32 @syscall(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @readn(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @copy_fd_len(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8aa9jfg_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@.str.1 = private unnamed_addr constant [13 x i8] c"memfd_create\00", align 1
@.str.2 = private unnamed_addr constant [72 x i8] c"please send me a 64 bit binary to run. Format: len as uint32 LE || data\00", align 1
@STDIN_FILENO = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [20 x i8] c"reading 0x%x bytes\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_binary() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 @syscall(i32 noundef 319, ptr noundef @.str, i32 noundef 1)
%4 = call i32 @check(i32 noundef %3, ptr noundef @.str.1)
store i32 %4, ptr %1, align 4
%5 = call i32 @puts(ptr noundef @.str.2)
store i32 0, ptr %2, align 4
%6 = load i32, ptr @STDIN_FILENO, align 4
%7 = call i32 @readn(i32 noundef %6, ptr noundef %2, i32 noundef 4)
%8 = load i32, ptr %2, align 4
%9 = call i32 @printf(ptr noundef @.str.3, i32 noundef %8)
%10 = load i32, ptr @STDIN_FILENO, align 4
%11 = load i32, ptr %1, align 4
%12 = load i32, ptr %2, align 4
%13 = call i32 @copy_fd_len(i32 noundef %10, i32 noundef %11, i32 noundef %12)
%14 = load i32, ptr %1, align 4
ret i32 %14
}
declare i32 @check(i32 noundef, ptr noundef) #1
declare i32 @syscall(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @readn(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @copy_fd_len(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkcguhnm_.c'
source_filename = "/tmp/tmpkcguhnm_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_4_t32(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %12, %1
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, 1
br i1 %6, label %7, label %15
7: ; preds = %4
%8 = load i32, ptr %2, align 4
%9 = call i32 @print_one_line_t32(i32 noundef %8, i32 noundef 0, i32 noundef 3)
%10 = load i32, ptr %2, align 4
%11 = call i32 @print_one_line_t32(i32 noundef %10, i32 noundef 1, i32 noundef 2)
br label %12
12: ; preds = %7
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %3, align 4
br label %4, !llvm.loop !6
15: ; preds = %4
ret void
}
declare i32 @print_one_line_t32(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkcguhnm_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_4_t32(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp slt i32 %4, 1
br i1 %5, label %.lr.ph, label %16
.lr.ph: ; preds = %1
br label %6
6: ; preds = %.lr.ph, %11
%7 = load i32, ptr %2, align 4
%8 = call i32 @print_one_line_t32(i32 noundef %7, i32 noundef 0, i32 noundef 3)
%9 = load i32, ptr %2, align 4
%10 = call i32 @print_one_line_t32(i32 noundef %9, i32 noundef 1, i32 noundef 2)
br label %11
11: ; preds = %6
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = icmp slt i32 %14, 1
br i1 %15, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %16
16: ; preds = %._crit_edge, %1
ret void
}
declare i32 @print_one_line_t32(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpv6vh_m5e.c'
source_filename = "/tmp/tmpv6vh_m5e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"-t\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"-1\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [3 x i8], align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %8, 2
br i1 %9, label %10, label %13
10: ; preds = %2
%11 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 3
br i1 %12, label %28, label %13
13: ; preds = %10, %2
%14 = load i32, ptr %4, align 4
%15 = icmp sgt i32 %14, 2
br i1 %15, label %16, label %33
16: ; preds = %13
%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 @strlen(ptr noundef %19)
%21 = icmp ne i32 %20, 4
br i1 %21, label %28, label %22
22: ; preds = %16
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 1
%25 = load ptr, ptr %24, align 8
%26 = call i64 @strncmp(ptr noundef %25, ptr noundef @.str, i32 noundef 2)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %33
28: ; preds = %22, %16, %10
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 0
%31 = load ptr, ptr %30, align 8
%32 = call i32 @menu(ptr noundef %31)
store i32 1, ptr %3, align 4
br label %72
33: ; preds = %22, %13
%34 = load i32, ptr %4, align 4
%35 = icmp eq i32 %34, 3
br i1 %35, label %36, label %43
36: ; preds = %33
%37 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 0
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 1
%40 = load ptr, ptr %39, align 8
%41 = getelementptr inbounds i8, ptr %40, i64 2
%42 = call i32 @strcpy(ptr noundef %37, ptr noundef %41)
br label %46
43: ; preds = %33
%44 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 0
%45 = call i32 @strcpy(ptr noundef %44, ptr noundef @.str.1)
br label %46
46: ; preds = %43, %36
%47 = load ptr, ptr %5, align 8
%48 = load i32, ptr %4, align 4
%49 = sub nsw i32 %48, 1
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds ptr, ptr %47, i64 %50
%52 = load ptr, ptr %51, align 8
%53 = load i32, ptr @O_RDONLY, align 4
%54 = call i32 @open(ptr noundef %52, i32 noundef %53)
store i32 %54, ptr %6, align 4
%55 = load i32, ptr %6, align 4
%56 = icmp slt i32 %55, 0
br i1 %56, label %57, label %65
57: ; preds = %46
%58 = load ptr, ptr %5, align 8
%59 = load i32, ptr %4, align 4
%60 = sub nsw i32 %59, 1
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds ptr, ptr %58, i64 %61
%63 = load ptr, ptr %62, align 8
%64 = call i32 @perror(ptr noundef %63)
store i32 1, ptr %3, align 4
br label %72
65: ; preds = %46
%66 = load i32, ptr %6, align 4
%67 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 0
%68 = call i32 @atoi(ptr noundef %67)
%69 = call i32 @SnifLoop(i32 noundef %66, i32 noundef %68)
%70 = load i32, ptr %6, align 4
%71 = call i32 @close(i32 noundef %70)
store i32 0, ptr %3, align 4
br label %72
72: ; preds = %65, %57, %28
%73 = load i32, ptr %3, align 4
ret i32 %73
}
declare i32 @strlen(ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @menu(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @SnifLoop(i32 noundef, i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv6vh_m5e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"-t\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"-1\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [3 x i8], align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %8, 2
br i1 %9, label %10, label %13
10: ; preds = %2
%11 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 3
br i1 %12, label %28, label %13
13: ; preds = %10, %2
%14 = load i32, ptr %4, align 4
%15 = icmp sgt i32 %14, 2
br i1 %15, label %16, label %33
16: ; preds = %13
%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 @strlen(ptr noundef %19)
%21 = icmp ne i32 %20, 4
br i1 %21, label %28, label %22
22: ; preds = %16
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 1
%25 = load ptr, ptr %24, align 8
%26 = call i64 @strncmp(ptr noundef %25, ptr noundef @.str, i32 noundef 2)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %33
28: ; preds = %22, %16, %10
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 0
%31 = load ptr, ptr %30, align 8
%32 = call i32 @menu(ptr noundef %31)
store i32 1, ptr %3, align 4
br label %72
33: ; preds = %22, %13
%34 = load i32, ptr %4, align 4
%35 = icmp eq i32 %34, 3
br i1 %35, label %36, label %43
36: ; preds = %33
%37 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 0
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 1
%40 = load ptr, ptr %39, align 8
%41 = getelementptr inbounds i8, ptr %40, i64 2
%42 = call i32 @strcpy(ptr noundef %37, ptr noundef %41)
br label %46
43: ; preds = %33
%44 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 0
%45 = call i32 @strcpy(ptr noundef %44, ptr noundef @.str.1)
br label %46
46: ; preds = %43, %36
%47 = load ptr, ptr %5, align 8
%48 = load i32, ptr %4, align 4
%49 = sub nsw i32 %48, 1
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds ptr, ptr %47, i64 %50
%52 = load ptr, ptr %51, align 8
%53 = load i32, ptr @O_RDONLY, align 4
%54 = call i32 @open(ptr noundef %52, i32 noundef %53)
store i32 %54, ptr %6, align 4
%55 = load i32, ptr %6, align 4
%56 = icmp slt i32 %55, 0
br i1 %56, label %57, label %65
57: ; preds = %46
%58 = load ptr, ptr %5, align 8
%59 = load i32, ptr %4, align 4
%60 = sub nsw i32 %59, 1
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds ptr, ptr %58, i64 %61
%63 = load ptr, ptr %62, align 8
%64 = call i32 @perror(ptr noundef %63)
store i32 1, ptr %3, align 4
br label %72
65: ; preds = %46
%66 = load i32, ptr %6, align 4
%67 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 0
%68 = call i32 @atoi(ptr noundef %67)
%69 = call i32 @SnifLoop(i32 noundef %66, i32 noundef %68)
%70 = load i32, ptr %6, align 4
%71 = call i32 @close(i32 noundef %70)
store i32 0, ptr %3, align 4
br label %72
72: ; preds = %65, %57, %28
%73 = load i32, ptr %3, align 4
ret i32 %73
}
declare i32 @strlen(ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @menu(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @SnifLoop(i32 noundef, i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy8gmf_bi.c'
source_filename = "/tmp/tmpy8gmf_bi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @geom_dgam_sph_rtp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds double, ptr %11, i64 0
%13 = load double, ptr %12, align 8
store double %13, ptr %5, align 8
%14 = load ptr, ptr %3, align 8
%15 = getelementptr inbounds double, ptr %14, i64 1
%16 = load double, ptr %15, align 8
%17 = call double @sin(double noundef %16) #2
store double %17, ptr %6, align 8
%18 = load ptr, ptr %3, align 8
%19 = getelementptr inbounds double, ptr %18, i64 1
%20 = load double, ptr %19, align 8
%21 = call double @cos(double noundef %20) #2
store double %21, ptr %7, align 8
store i32 0, ptr %8, align 4
br label %22
22: ; preds = %52, %2
%23 = load i32, ptr %8, align 4
%24 = icmp slt i32 %23, 2
br i1 %24, label %25, label %55
25: ; preds = %22
store i32 0, ptr %9, align 4
br label %26
26: ; preds = %48, %25
%27 = load i32, ptr %9, align 4
%28 = icmp slt i32 %27, 3
br i1 %28, label %29, label %51
29: ; preds = %26
store i32 0, ptr %10, align 4
br label %30
30: ; preds = %44, %29
%31 = load i32, ptr %10, align 4
%32 = icmp slt i32 %31, 3
br i1 %32, label %33, label %47
33: ; preds = %30
%34 = load ptr, ptr %4, align 8
%35 = load i32, ptr %8, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [3 x [3 x double]], ptr %34, i64 %36
%38 = load i32, ptr %9, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [3 x [3 x double]], ptr %37, i64 0, i64 %39
%41 = load i32, ptr %10, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [3 x double], ptr %40, i64 0, i64 %42
store double 0.000000e+00, ptr %43, align 8
br label %44
44: ; preds = %33
%45 = load i32, ptr %10, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %10, align 4
br label %30, !llvm.loop !6
47: ; preds = %30
br label %48
48: ; preds = %47
%49 = load i32, ptr %9, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %9, align 4
br label %26, !llvm.loop !8
51: ; preds = %26
br label %52
52: ; preds = %51
%53 = load i32, ptr %8, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %8, align 4
br label %22, !llvm.loop !9
55: ; preds = %22
%56 = load double, ptr %5, align 8
%57 = fmul double 2.000000e+00, %56
%58 = load ptr, ptr %4, align 8
%59 = getelementptr inbounds [3 x [3 x double]], ptr %58, i64 0
%60 = getelementptr inbounds [3 x [3 x double]], ptr %59, i64 0, i64 1
%61 = getelementptr inbounds [3 x double], ptr %60, i64 0, i64 1
store double %57, ptr %61, align 8
%62 = load double, ptr %5, align 8
%63 = fmul double 2.000000e+00, %62
%64 = load double, ptr %6, align 8
%65 = fmul double %63, %64
%66 = load double, ptr %6, align 8
%67 = fmul double %65, %66
%68 = load ptr, ptr %4, align 8
%69 = getelementptr inbounds [3 x [3 x double]], ptr %68, i64 0
%70 = getelementptr inbounds [3 x [3 x double]], ptr %69, i64 0, i64 2
%71 = getelementptr inbounds [3 x double], ptr %70, i64 0, i64 2
store double %67, ptr %71, align 8
%72 = load double, ptr %5, align 8
%73 = fmul double 2.000000e+00, %72
%74 = load double, ptr %5, align 8
%75 = fmul double %73, %74
%76 = load double, ptr %6, align 8
%77 = fmul double %75, %76
%78 = load double, ptr %7, align 8
%79 = fmul double %77, %78
%80 = load ptr, ptr %4, align 8
%81 = getelementptr inbounds [3 x [3 x double]], ptr %80, i64 1
%82 = getelementptr inbounds [3 x [3 x double]], ptr %81, i64 0, i64 2
%83 = getelementptr inbounds [3 x double], ptr %82, i64 0, i64 2
store double %79, ptr %83, align 8
ret void
}
; Function Attrs: nounwind
declare double @sin(double noundef) #1
; Function Attrs: nounwind
declare double @cos(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy8gmf_bi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @geom_dgam_sph_rtp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds double, ptr %11, i64 0
%13 = load double, ptr %12, align 8
store double %13, ptr %5, align 8
%14 = load ptr, ptr %3, align 8
%15 = getelementptr inbounds double, ptr %14, i64 1
%16 = load double, ptr %15, align 8
%17 = call double @sin(double noundef %16) #2
store double %17, ptr %6, align 8
%18 = load ptr, ptr %3, align 8
%19 = getelementptr inbounds double, ptr %18, i64 1
%20 = load double, ptr %19, align 8
%21 = call double @cos(double noundef %20) #2
store double %21, ptr %7, align 8
store i32 0, ptr %8, align 4
%22 = load i32, ptr %8, align 4
%23 = icmp slt i32 %22, 2
br i1 %23, label %.lr.ph5, label %58
.lr.ph5: ; preds = %2
br label %24
24: ; preds = %.lr.ph5, %53
store i32 0, ptr %9, align 4
%25 = load i32, ptr %9, align 4
%26 = icmp slt i32 %25, 3
br i1 %26, label %.lr.ph2, label %52
.lr.ph2: ; preds = %24
br label %27
27: ; preds = %.lr.ph2, %47
store i32 0, ptr %10, align 4
%28 = load i32, ptr %10, align 4
%29 = icmp slt i32 %28, 3
br i1 %29, label %.lr.ph, label %46
.lr.ph: ; preds = %27
br label %30
30: ; preds = %.lr.ph, %41
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %8, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [3 x [3 x double]], ptr %31, i64 %33
%35 = load i32, ptr %9, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [3 x [3 x double]], ptr %34, i64 0, i64 %36
%38 = load i32, ptr %10, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [3 x double], ptr %37, i64 0, i64 %39
store double 0.000000e+00, ptr %40, align 8
br label %41
41: ; preds = %30
%42 = load i32, ptr %10, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %10, align 4
%44 = load i32, ptr %10, align 4
%45 = icmp slt i32 %44, 3
br i1 %45, label %30, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %41
br label %46
46: ; preds = %._crit_edge, %27
br label %47
47: ; preds = %46
%48 = load i32, ptr %9, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %9, align 4
%50 = load i32, ptr %9, align 4
%51 = icmp slt i32 %50, 3
br i1 %51, label %27, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %47
br label %52
52: ; preds = %._crit_edge3, %24
br label %53
53: ; preds = %52
%54 = load i32, ptr %8, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %8, align 4
%56 = load i32, ptr %8, align 4
%57 = icmp slt i32 %56, 2
br i1 %57, label %24, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %53
br label %58
58: ; preds = %._crit_edge6, %2
%59 = load double, ptr %5, align 8
%60 = fmul double 2.000000e+00, %59
%61 = load ptr, ptr %4, align 8
%62 = getelementptr inbounds [3 x [3 x double]], ptr %61, i64 0
%63 = getelementptr inbounds [3 x [3 x double]], ptr %62, i64 0, i64 1
%64 = getelementptr inbounds [3 x double], ptr %63, i64 0, i64 1
store double %60, ptr %64, align 8
%65 = load double, ptr %5, align 8
%66 = fmul double 2.000000e+00, %65
%67 = load double, ptr %6, align 8
%68 = fmul double %66, %67
%69 = load double, ptr %6, align 8
%70 = fmul double %68, %69
%71 = load ptr, ptr %4, align 8
%72 = getelementptr inbounds [3 x [3 x double]], ptr %71, i64 0
%73 = getelementptr inbounds [3 x [3 x double]], ptr %72, i64 0, i64 2
%74 = getelementptr inbounds [3 x double], ptr %73, i64 0, i64 2
store double %70, ptr %74, align 8
%75 = load double, ptr %5, align 8
%76 = fmul double 2.000000e+00, %75
%77 = load double, ptr %5, align 8
%78 = fmul double %76, %77
%79 = load double, ptr %6, align 8
%80 = fmul double %78, %79
%81 = load double, ptr %7, align 8
%82 = fmul double %80, %81
%83 = load ptr, ptr %4, align 8
%84 = getelementptr inbounds [3 x [3 x double]], ptr %83, i64 1
%85 = getelementptr inbounds [3 x [3 x double]], ptr %84, i64 0, i64 2
%86 = getelementptr inbounds [3 x double], ptr %85, i64 0, i64 2
store double %82, ptr %86, align 8
ret void
}
; Function Attrs: nounwind
declare double @sin(double noundef) #1
; Function Attrs: nounwind
declare double @cos(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpbm1my0_z.c'
source_filename = "/tmp/tmpbm1my0_z.c"
target datalayout = "e-m:e-p270: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/tmpbm1my0_z.c"
target datalayout = "e-m:e-p270: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/tmpm_3jh84h.c'
source_filename = "/tmp/tmpm_3jh84h.c"
target datalayout = "e-m:e-p270: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/tmpm_3jh84h.c"
target datalayout = "e-m:e-p270: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/tmpqulptszd.c'
source_filename = "/tmp/tmpqulptszd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @StbOnn_lc898122_sharp() #0 {
%1 = alloca i8, align 1
%2 = alloca i8, align 1
%3 = alloca i8, align 1
%4 = call i32 @RegReadA_lc898122_sharp(i32 noundef 368, ptr noundef %1)
%5 = call i32 @RegReadA_lc898122_sharp(i32 noundef 369, ptr noundef %2)
%6 = load i8, ptr %1, align 1
%7 = zext i8 %6 to i32
%8 = and i32 %7, 1
%9 = icmp ne i32 %8, 1
br i1 %9, label %10, label %28
10: ; preds = %0
%11 = load i8, ptr %2, align 1
%12 = zext i8 %11 to i32
%13 = and i32 %12, 1
%14 = icmp ne i32 %13, 1
br i1 %14, label %15, label %28
15: ; preds = %10
%16 = call i32 @RegWriteA_lc898122_sharp(i32 noundef 380, i32 noundef 1)
%17 = call i32 @SrvCon_lc898122_sharp(i32 noundef 0, i32 noundef 1)
%18 = call i32 @SrvCon_lc898122_sharp(i32 noundef 1, i32 noundef 1)
store i8 17, ptr %3, align 1
br label %19
19: ; preds = %24, %15
%20 = load i8, ptr %3, align 1
%21 = zext i8 %20 to i32
%22 = and i32 %21, 119
%23 = icmp ne i32 %22, 102
br i1 %23, label %24, label %26
24: ; preds = %19
%25 = call i32 @RegReadA_lc898122_sharp(i32 noundef 504, ptr noundef %3)
br label %19, !llvm.loop !6
26: ; preds = %19
%27 = call i32 @RegWriteA_lc898122_sharp(i32 noundef 380, i32 noundef 0)
br label %31
28: ; preds = %10, %0
%29 = call i32 @SrvCon_lc898122_sharp(i32 noundef 0, i32 noundef 1)
%30 = call i32 @SrvCon_lc898122_sharp(i32 noundef 1, i32 noundef 1)
br label %31
31: ; preds = %28, %26
ret void
}
declare i32 @RegReadA_lc898122_sharp(i32 noundef, ptr noundef) #1
declare i32 @RegWriteA_lc898122_sharp(i32 noundef, i32 noundef) #1
declare i32 @SrvCon_lc898122_sharp(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/tmpqulptszd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @StbOnn_lc898122_sharp() #0 {
%1 = alloca i8, align 1
%2 = alloca i8, align 1
%3 = alloca i8, align 1
%4 = call i32 @RegReadA_lc898122_sharp(i32 noundef 368, ptr noundef %1)
%5 = call i32 @RegReadA_lc898122_sharp(i32 noundef 369, ptr noundef %2)
%6 = load i8, ptr %1, align 1
%7 = zext i8 %6 to i32
%8 = and i32 %7, 1
%9 = icmp ne i32 %8, 1
br i1 %9, label %10, label %31
10: ; preds = %0
%11 = load i8, ptr %2, align 1
%12 = zext i8 %11 to i32
%13 = and i32 %12, 1
%14 = icmp ne i32 %13, 1
br i1 %14, label %15, label %31
15: ; preds = %10
%16 = call i32 @RegWriteA_lc898122_sharp(i32 noundef 380, i32 noundef 1)
%17 = call i32 @SrvCon_lc898122_sharp(i32 noundef 0, i32 noundef 1)
%18 = call i32 @SrvCon_lc898122_sharp(i32 noundef 1, i32 noundef 1)
store i8 17, ptr %3, align 1
%19 = load i8, ptr %3, align 1
%20 = zext i8 %19 to i32
%21 = and i32 %20, 119
%22 = icmp ne i32 %21, 102
br i1 %22, label %.lr.ph, label %29
.lr.ph: ; preds = %15
br label %23
23: ; preds = %.lr.ph, %23
%24 = call i32 @RegReadA_lc898122_sharp(i32 noundef 504, ptr noundef %3)
%25 = load i8, ptr %3, align 1
%26 = zext i8 %25 to i32
%27 = and i32 %26, 119
%28 = icmp ne i32 %27, 102
br i1 %28, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %29
29: ; preds = %._crit_edge, %15
%30 = call i32 @RegWriteA_lc898122_sharp(i32 noundef 380, i32 noundef 0)
br label %34
31: ; preds = %10, %0
%32 = call i32 @SrvCon_lc898122_sharp(i32 noundef 0, i32 noundef 1)
%33 = call i32 @SrvCon_lc898122_sharp(i32 noundef 1, i32 noundef 1)
br label %34
34: ; preds = %31, %29
ret void
}
declare i32 @RegReadA_lc898122_sharp(i32 noundef, ptr noundef) #1
declare i32 @RegWriteA_lc898122_sharp(i32 noundef, i32 noundef) #1
declare i32 @SrvCon_lc898122_sharp(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/tmpgwhhwgar.c'
source_filename = "/tmp/tmpgwhhwgar.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalpha.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isalpha should be 1 for L\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalpha_0x4c() #0 {
%1 = call i32 @isalpha(i32 noundef 76) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 385, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isalpha(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgwhhwgar.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalpha.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isalpha should be 1 for L\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalpha_0x4c() #0 {
%1 = call i32 @isalpha(i32 noundef 76) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 385, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isalpha(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpj4bydn1e.c'
source_filename = "/tmp/tmpj4bydn1e.c"
target datalayout = "e-m:e-p270: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/tmpj4bydn1e.c"
target datalayout = "e-m:e-p270: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/tmps97ujg0c.c'
source_filename = "/tmp/tmps97ujg0c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"It is a prime word.\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"It is not a prime word.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [32 x i8], align 16
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %5
5: ; preds = %65, %0
%6 = getelementptr inbounds [32 x i8], ptr %2, i64 0, i64 0
%7 = call ptr @gets(ptr noundef %6)
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %66
9: ; preds = %5
store i32 0, ptr %4, align 4
%10 = getelementptr inbounds [32 x i8], ptr %2, i64 0, i64 0
store ptr %10, ptr %3, align 8
br label %11
11: ; preds = %54, %9
%12 = load ptr, ptr %3, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %57
16: ; preds = %11
%17 = load ptr, ptr %3, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp sge i32 %19, 97
br i1 %20, label %21, label %34
21: ; preds = %16
%22 = load ptr, ptr %3, align 8
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp sle i32 %24, 122
br i1 %25, label %26, label %34
26: ; preds = %21
%27 = load ptr, ptr %3, align 8
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = sub nsw i32 %29, 97
%31 = add nsw i32 %30, 1
%32 = load i32, ptr %4, align 4
%33 = add nsw i32 %32, %31
store i32 %33, ptr %4, align 4
br label %53
34: ; preds = %21, %16
%35 = load ptr, ptr %3, align 8
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp sge i32 %37, 65
br i1 %38, label %39, label %52
39: ; preds = %34
%40 = load ptr, ptr %3, align 8
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = icmp sle i32 %42, 90
br i1 %43, label %44, label %52
44: ; preds = %39
%45 = load ptr, ptr %3, align 8
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = sub nsw i32 %47, 65
%49 = add nsw i32 %48, 27
%50 = load i32, ptr %4, align 4
%51 = add nsw i32 %50, %49
store i32 %51, ptr %4, align 4
br label %52
52: ; preds = %44, %39, %34
br label %53
53: ; preds = %52, %26
br label %54
54: ; preds = %53
%55 = load ptr, ptr %3, align 8
%56 = getelementptr inbounds i8, ptr %55, i32 1
store ptr %56, ptr %3, align 8
br label %11, !llvm.loop !6
57: ; preds = %11
%58 = load i32, ptr %4, align 4
%59 = call i32 @check_prime(i32 noundef %58)
%60 = icmp eq i32 %59, 1
br i1 %60, label %61, label %63
61: ; preds = %57
%62 = call i32 @printf(ptr noundef @.str)
br label %65
63: ; preds = %57
%64 = call i32 @printf(ptr noundef @.str.1)
br label %65
65: ; preds = %63, %61
br label %5, !llvm.loop !8
66: ; preds = %5
ret i32 0
}
declare ptr @gets(ptr noundef) #1
declare i32 @check_prime(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps97ujg0c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"It is a prime word.\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"It is not a prime word.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [32 x i8], align 16
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = getelementptr inbounds [32 x i8], ptr %2, i64 0, i64 0
%6 = call ptr @gets(ptr noundef %5)
%7 = icmp ne ptr %6, null
br i1 %7, label %.lr.ph2, label %70
.lr.ph2: ; preds = %0
br label %8
8: ; preds = %.lr.ph2, %67
store i32 0, ptr %4, align 4
%9 = getelementptr inbounds [32 x i8], ptr %2, i64 0, i64 0
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %.lr.ph, label %59
.lr.ph: ; preds = %8
br label %14
14: ; preds = %.lr.ph, %52
%15 = load ptr, ptr %3, align 8
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp sge i32 %17, 97
br i1 %18, label %19, label %32
19: ; preds = %14
%20 = load ptr, ptr %3, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp sle i32 %22, 122
br i1 %23, label %24, label %32
24: ; preds = %19
%25 = load ptr, ptr %3, align 8
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = sub nsw i32 %27, 97
%29 = add nsw i32 %28, 1
%30 = load i32, ptr %4, align 4
%31 = add nsw i32 %30, %29
store i32 %31, ptr %4, align 4
br label %51
32: ; preds = %19, %14
%33 = load ptr, ptr %3, align 8
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp sge i32 %35, 65
br i1 %36, label %37, label %50
37: ; preds = %32
%38 = load ptr, ptr %3, align 8
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp sle i32 %40, 90
br i1 %41, label %42, label %50
42: ; preds = %37
%43 = load ptr, ptr %3, align 8
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = sub nsw i32 %45, 65
%47 = add nsw i32 %46, 27
%48 = load i32, ptr %4, align 4
%49 = add nsw i32 %48, %47
store i32 %49, ptr %4, align 4
br label %50
50: ; preds = %42, %37, %32
br label %51
51: ; preds = %50, %24
br label %52
52: ; preds = %51
%53 = load ptr, ptr %3, align 8
%54 = getelementptr inbounds i8, ptr %53, i32 1
store ptr %54, ptr %3, align 8
%55 = load ptr, ptr %3, align 8
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = icmp ne i32 %57, 0
br i1 %58, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %52
br label %59
59: ; preds = %._crit_edge, %8
%60 = load i32, ptr %4, align 4
%61 = call i32 @check_prime(i32 noundef %60)
%62 = icmp eq i32 %61, 1
br i1 %62, label %63, label %65
63: ; preds = %59
%64 = call i32 @printf(ptr noundef @.str)
br label %67
65: ; preds = %59
%66 = call i32 @printf(ptr noundef @.str.1)
br label %67
67: ; preds = %65, %63
%68 = call ptr @gets(ptr noundef %5)
%69 = icmp ne ptr %68, null
br i1 %69, label %8, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %67
br label %70
70: ; preds = %._crit_edge3, %0
ret i32 0
}
declare ptr @gets(ptr noundef) #1
declare i32 @check_prime(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpuaijak4k.c'
source_filename = "/tmp/tmpuaijak4k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 \00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"\0A1-100 printed\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 i64, align 8
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
br label %4
4: ; preds = %10, %0
%5 = load i32, ptr %2, align 4
%6 = icmp sle i32 %5, 100
br i1 %6, label %7, label %13
7: ; preds = %4
%8 = load i32, ptr %2, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %8)
br label %10
10: ; preds = %7
%11 = load i32, ptr %2, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %2, align 4
br label %4, !llvm.loop !6
13: ; preds = %4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuaijak4k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 \00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"\0A1-100 printed\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 i64, align 8
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp sle i32 %4, 100
br i1 %5, label %.lr.ph, label %14
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %9
%7 = load i32, ptr %2, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %7)
br label %9
9: ; preds = %6
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %2, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp sle i32 %12, 100
br i1 %13, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %14
14: ; preds = %._crit_edge, %0
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpx_w7kwj3.c'
source_filename = "/tmp/tmpx_w7kwj3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @args_get_pint(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%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
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr null, ptr %8, align 8
store ptr null, ptr %9, align 8
store i32 0, ptr %10, align 4
br label %11
11: ; preds = %77, %3
%12 = load i32, ptr %10, align 4
%13 = load i32, ptr %5, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %80
15: ; preds = %11
%16 = load ptr, ptr %6, align 8
%17 = load i32, ptr %10, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds ptr, ptr %16, i64 %18
%20 = load ptr, ptr %19, align 8
%21 = load ptr, ptr %7, align 8
%22 = load ptr, ptr %7, align 8
%23 = call i32 @strlen(ptr noundef %22)
%24 = call i64 @strncmp(ptr noundef %20, ptr noundef %21, i32 noundef %23)
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %76
26: ; preds = %15
store ptr null, ptr %9, align 8
%27 = load ptr, ptr %6, align 8
%28 = load i32, ptr %10, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds ptr, ptr %27, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = call i32 @strlen(ptr noundef %31)
%33 = load ptr, ptr %7, align 8
%34 = call i32 @strlen(ptr noundef %33)
%35 = icmp sgt i32 %32, %34
br i1 %35, label %36, label %46
36: ; preds = %26
%37 = load ptr, ptr %6, align 8
%38 = load i32, ptr %10, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds ptr, ptr %37, i64 %39
%41 = load ptr, ptr %40, align 8
%42 = load ptr, ptr %7, align 8
%43 = call i32 @strlen(ptr noundef %42)
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, ptr %41, i64 %44
store ptr %45, ptr %9, align 8
br label %59
46: ; preds = %26
%47 = load i32, ptr %10, align 4
%48 = add nsw i32 %47, 1
%49 = load i32, ptr %5, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %51, label %58
51: ; preds = %46
%52 = load ptr, ptr %6, align 8
%53 = load i32, ptr %10, align 4
%54 = add nsw i32 %53, 1
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds ptr, ptr %52, i64 %55
%57 = load ptr, ptr %56, align 8
store ptr %57, ptr %9, align 8
br label %58
58: ; preds = %51, %46
br label %59
59: ; preds = %58, %36
%60 = load ptr, ptr %9, align 8
%61 = icmp ne ptr %60, null
br i1 %61, label %62, label %75
62: ; preds = %59
%63 = load ptr, ptr %9, align 8
%64 = call i64 @isInt(ptr noundef %63)
%65 = icmp ne i64 %64, 0
br i1 %65, label %66, label %75
66: ; preds = %62
%67 = call i64 @malloc(i32 noundef 4)
%68 = inttoptr i64 %67 to ptr
store ptr %68, ptr %8, align 8
%69 = load ptr, ptr %8, align 8
%70 = call i32 @assert(ptr noundef %69)
%71 = load ptr, ptr %9, align 8
%72 = call i32 @atoi(ptr noundef %71)
%73 = load ptr, ptr %8, align 8
store i32 %72, ptr %73, align 4
%74 = load ptr, ptr %8, align 8
store ptr %74, ptr %4, align 8
br label %82
75: ; preds = %62, %59
br label %80
76: ; preds = %15
br label %77
77: ; preds = %76
%78 = load i32, ptr %10, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %10, align 4
br label %11, !llvm.loop !6
80: ; preds = %75, %11
%81 = load ptr, ptr %8, align 8
store ptr %81, ptr %4, align 8
br label %82
82: ; preds = %80, %66
%83 = load ptr, ptr %4, align 8
ret ptr %83
}
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @isInt(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @assert(ptr noundef) #1
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx_w7kwj3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @args_get_pint(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%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
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr null, ptr %8, align 8
store ptr null, ptr %9, align 8
store i32 0, ptr %10, align 4
%11 = load i32, ptr %10, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %3
br label %14
14: ; preds = %.lr.ph, %76
%15 = load ptr, ptr %6, align 8
%16 = load i32, ptr %10, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds ptr, ptr %15, i64 %17
%19 = load ptr, ptr %18, align 8
%20 = load ptr, ptr %7, align 8
%21 = load ptr, ptr %7, align 8
%22 = call i32 @strlen(ptr noundef %21)
%23 = call i64 @strncmp(ptr noundef %19, ptr noundef %20, i32 noundef %22)
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %75
25: ; preds = %14
store ptr null, ptr %9, align 8
%26 = load ptr, ptr %6, align 8
%27 = load i32, ptr %10, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds ptr, ptr %26, i64 %28
%30 = load ptr, ptr %29, align 8
%31 = call i32 @strlen(ptr noundef %30)
%32 = load ptr, ptr %7, align 8
%33 = call i32 @strlen(ptr noundef %32)
%34 = icmp sgt i32 %31, %33
br i1 %34, label %35, label %45
35: ; preds = %25
%36 = load ptr, ptr %6, align 8
%37 = load i32, ptr %10, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds ptr, ptr %36, i64 %38
%40 = load ptr, ptr %39, 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
store ptr %44, ptr %9, align 8
br label %58
45: ; preds = %25
%46 = load i32, ptr %10, align 4
%47 = add nsw i32 %46, 1
%48 = load i32, ptr %5, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %50, label %57
50: ; preds = %45
%51 = load ptr, ptr %6, align 8
%52 = load i32, ptr %10, align 4
%53 = add nsw i32 %52, 1
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds ptr, ptr %51, i64 %54
%56 = load ptr, ptr %55, align 8
store ptr %56, ptr %9, align 8
br label %57
57: ; preds = %50, %45
br label %58
58: ; preds = %57, %35
%59 = load ptr, ptr %9, align 8
%60 = icmp ne ptr %59, null
br i1 %60, label %61, label %74
61: ; preds = %58
%62 = load ptr, ptr %9, align 8
%63 = call i64 @isInt(ptr noundef %62)
%64 = icmp ne i64 %63, 0
br i1 %64, label %65, label %74
65: ; preds = %61
%66 = call i64 @malloc(i32 noundef 4)
%67 = inttoptr i64 %66 to ptr
store ptr %67, ptr %8, align 8
%68 = load ptr, ptr %8, align 8
%69 = call i32 @assert(ptr noundef %68)
%70 = load ptr, ptr %9, align 8
%71 = call i32 @atoi(ptr noundef %70)
%72 = load ptr, ptr %8, align 8
store i32 %71, ptr %72, align 4
%73 = load ptr, ptr %8, align 8
store ptr %73, ptr %4, align 8
br label %84
74: ; preds = %61, %58
br label %82
75: ; preds = %14
br label %76
76: ; preds = %75
%77 = load i32, ptr %10, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %10, align 4
%79 = load i32, ptr %10, align 4
%80 = load i32, ptr %5, align 4
%81 = icmp slt i32 %79, %80
br i1 %81, label %14, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %76
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %3
br label %82
82: ; preds = %.loopexit, %74
%83 = load ptr, ptr %8, align 8
store ptr %83, ptr %4, align 8
br label %84
84: ; preds = %82, %65
%85 = load ptr, ptr %4, align 8
ret ptr %85
}
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @isInt(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @assert(ptr noundef) #1
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"}
|
; ModuleID = '/tmp/tmp6sjub8o1.c'
source_filename = "/tmp/tmp6sjub8o1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @add16(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 i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 0, ptr %7, align 4
store i32 15, ptr %8, align 4
br label %9
9: ; preds = %29, %3
%10 = load i32, ptr %8, align 4
%11 = icmp sge i32 %10, 0
br i1 %11, label %12, label %32
12: ; preds = %9
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %8, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32, ptr %13, i64 %15
%17 = load i32, ptr %16, align 4
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %8, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %18, i64 %20
%22 = load i32, ptr %21, align 4
%23 = load i32, ptr %7, align 4
%24 = load ptr, ptr %6, align 8
%25 = load i32, ptr %8, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %24, i64 %26
%28 = call i32 @fullAdder(i32 noundef %17, i32 noundef %22, i32 noundef %23, ptr noundef %27, ptr noundef %7)
br label %29
29: ; preds = %12
%30 = load i32, ptr %8, align 4
%31 = add nsw i32 %30, -1
store i32 %31, ptr %8, align 4
br label %9, !llvm.loop !6
32: ; preds = %9
ret void
}
declare i32 @fullAdder(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6sjub8o1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @add16(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 i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 0, ptr %7, align 4
store i32 15, ptr %8, align 4
%9 = load i32, ptr %8, align 4
%10 = icmp sge i32 %9, 0
br i1 %10, label %.lr.ph, label %33
.lr.ph: ; preds = %3
br label %11
11: ; preds = %.lr.ph, %28
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr %8, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i32, ptr %12, i64 %14
%16 = load i32, ptr %15, align 4
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr %8, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %17, i64 %19
%21 = load i32, ptr %20, align 4
%22 = load i32, ptr %7, align 4
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %8, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %23, i64 %25
%27 = call i32 @fullAdder(i32 noundef %16, i32 noundef %21, i32 noundef %22, ptr noundef %26, ptr noundef %7)
br label %28
28: ; preds = %11
%29 = load i32, ptr %8, align 4
%30 = add nsw i32 %29, -1
store i32 %30, ptr %8, align 4
%31 = load i32, ptr %8, align 4
%32 = icmp sge i32 %31, 0
br i1 %32, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %33
33: ; preds = %._crit_edge, %3
ret void
}
declare i32 @fullAdder(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4y6j81es.c'
source_filename = "/tmp/tmp4y6j81es.c"
target datalayout = "e-m:e-p270: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 [9 x i8] c"\0AERROR: \00", align 1
@.str.1 = private unnamed_addr constant [60 x i8] c"Usage: fastq_split_interleaved interleaved_fastq out_prefix\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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @fastq_print_version()
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 3
br i1 %8, label %9, label %17
9: ; preds = %2
%10 = load i32, ptr @stderr, align 4
%11 = call i32 @fprintf(i32 noundef %10, ptr noundef @.str)
%12 = load i32, ptr @stderr, align 4
%13 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str.1)
%14 = load i32, ptr @stderr, align 4
%15 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str.2)
%16 = call i32 @exit(i32 noundef 1) #3
unreachable
17: ; preds = %2
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 1
%20 = load ptr, ptr %19, align 8
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 2
%23 = load ptr, ptr %22, align 8
%24 = call i32 @split_interleaved(ptr noundef %20, ptr noundef %23)
%25 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @fastq_print_version(...) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @split_interleaved(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4y6j81es.c"
target datalayout = "e-m:e-p270: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 [9 x i8] c"\0AERROR: \00", align 1
@.str.1 = private unnamed_addr constant [60 x i8] c"Usage: fastq_split_interleaved interleaved_fastq out_prefix\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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @fastq_print_version()
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 3
br i1 %8, label %9, label %17
9: ; preds = %2
%10 = load i32, ptr @stderr, align 4
%11 = call i32 @fprintf(i32 noundef %10, ptr noundef @.str)
%12 = load i32, ptr @stderr, align 4
%13 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str.1)
%14 = load i32, ptr @stderr, align 4
%15 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str.2)
%16 = call i32 @exit(i32 noundef 1) #3
unreachable
17: ; preds = %2
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 1
%20 = load ptr, ptr %19, align 8
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 2
%23 = load ptr, ptr %22, align 8
%24 = call i32 @split_interleaved(ptr noundef %20, ptr noundef %23)
%25 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @fastq_print_version(...) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @split_interleaved(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuvvos1d8.c'
source_filename = "/tmp/tmpuvvos1d8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @os_fopen(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call ptr @fopen(ptr noundef %5, ptr noundef %6)
ret ptr %7
}
declare ptr @fopen(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/tmpuvvos1d8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @os_fopen(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call ptr @fopen(ptr noundef %5, ptr noundef %6)
ret ptr %7
}
declare ptr @fopen(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/tmpf4lpnb_0.c'
source_filename = "/tmp/tmpf4lpnb_0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @menu() #0 {
%1 = alloca i8, align 1
%2 = call i32 (...) @dubijarInto()
br label %3
3: ; preds = %18, %0
%4 = call signext i8 (...) @getch()
store i8 %4, ptr %1, align 1
%5 = icmp ne i8 %4, 0
br i1 %5, label %6, label %19
6: ; preds = %3
%7 = load i8, ptr %1, align 1
%8 = sext i8 %7 to i32
%9 = icmp eq i32 %8, 113
br i1 %9, label %10, label %12
10: ; preds = %6
%11 = call i32 (...) @salir()
br label %18
12: ; preds = %6
%13 = load i8, ptr %1, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 115
br i1 %15, label %16, label %17
16: ; preds = %12
br label %19
17: ; preds = %12
br label %18
18: ; preds = %17, %10
br label %3, !llvm.loop !6
19: ; preds = %16, %3
ret void
}
declare i32 @dubijarInto(...) #1
declare signext i8 @getch(...) #1
declare i32 @salir(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpf4lpnb_0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @menu() #0 {
%1 = alloca i8, align 1
%2 = call i32 (...) @dubijarInto()
%3 = call signext i8 (...) @getch()
store i8 %3, ptr %1, align 1
%4 = icmp ne i8 %3, 0
br i1 %4, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %17
%6 = load i8, ptr %1, align 1
%7 = sext i8 %6 to i32
%8 = icmp eq i32 %7, 113
br i1 %8, label %9, label %11
9: ; preds = %5
%10 = call i32 (...) @salir()
br label %17
11: ; preds = %5
%12 = load i8, ptr %1, align 1
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 115
br i1 %14, label %15, label %16
15: ; preds = %11
br label %20
16: ; preds = %11
br label %17
17: ; preds = %16, %9
%18 = call signext i8 (...) @getch()
store i8 %18, ptr %1, align 1
%19 = icmp ne i8 %18, 0
br i1 %19, label %5, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %17
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %0
br label %20
20: ; preds = %.loopexit, %15
ret void
}
declare i32 @dubijarInto(...) #1
declare signext i8 @getch(...) #1
declare i32 @salir(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmppliled00.c'
source_filename = "/tmp/tmppliled00.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
@SQLITE_OK = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppliled00.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
@SQLITE_OK = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzfbjrdm4.c'
source_filename = "/tmp/tmpzfbjrdm4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"0\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @itoa(i32 noundef %0, ptr noundef %1, i32 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 i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %14, label %13
13: ; preds = %3
store ptr @.str, ptr %4, align 8
br label %63
14: ; preds = %3
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%15 = load i32, ptr %5, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %23
17: ; preds = %14
%18 = load i32, ptr %7, align 4
%19 = icmp eq i32 %18, 10
br i1 %19, label %20, label %23
20: ; preds = %17
store i32 1, ptr %9, align 4
%21 = load i32, ptr %5, align 4
%22 = sub nsw i32 0, %21
store i32 %22, ptr %5, align 4
br label %23
23: ; preds = %20, %17, %14
br label %24
24: ; preds = %40, %23
%25 = load i32, ptr %5, align 4
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %51
27: ; preds = %24
%28 = load i32, ptr %5, align 4
%29 = load i32, ptr %7, align 4
%30 = srem i32 %28, %29
store i32 %30, ptr %10, align 4
%31 = load i32, ptr %10, align 4
%32 = icmp sgt i32 %31, 9
br i1 %32, label %33, label %37
33: ; preds = %27
%34 = load i32, ptr %10, align 4
%35 = sub nsw i32 %34, 10
%36 = add nsw i32 %35, 97
br label %40
37: ; preds = %27
%38 = load i32, ptr %10, align 4
%39 = add nsw i32 %38, 48
br label %40
40: ; preds = %37, %33
%41 = phi i32 [ %36, %33 ], [ %39, %37 ]
%42 = trunc i32 %41 to i8
%43 = load ptr, ptr %6, align 8
%44 = load i32, ptr %8, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %8, align 4
%46 = sext i32 %44 to i64
%47 = getelementptr inbounds i8, ptr %43, i64 %46
store i8 %42, ptr %47, align 1
%48 = load i32, ptr %7, align 4
%49 = load i32, ptr %5, align 4
%50 = sdiv i32 %49, %48
store i32 %50, ptr %5, align 4
br label %24, !llvm.loop !6
51: ; preds = %24
%52 = load i32, ptr %9, align 4
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %59
54: ; preds = %51
%55 = load ptr, ptr %6, align 8
%56 = load i32, ptr %8, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8, ptr %55, i64 %57
store i8 45, ptr %58, align 1
br label %59
59: ; preds = %54, %51
%60 = load ptr, ptr %6, align 8
%61 = call ptr @strrev(ptr noundef %60)
store ptr %61, ptr %6, align 8
%62 = load ptr, ptr %6, align 8
store ptr %62, ptr %4, align 8
br label %63
63: ; preds = %59, %13
%64 = load ptr, ptr %4, align 8
ret ptr %64
}
declare ptr @strrev(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpzfbjrdm4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"0\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @itoa(i32 noundef %0, ptr noundef %1, i32 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 i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %14, label %13
13: ; preds = %3
store ptr @.str, ptr %4, align 8
br label %64
14: ; preds = %3
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%15 = load i32, ptr %5, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %23
17: ; preds = %14
%18 = load i32, ptr %7, align 4
%19 = icmp eq i32 %18, 10
br i1 %19, label %20, label %23
20: ; preds = %17
store i32 1, ptr %9, align 4
%21 = load i32, ptr %5, align 4
%22 = sub nsw i32 0, %21
store i32 %22, ptr %5, align 4
br label %23
23: ; preds = %20, %17, %14
%24 = load i32, ptr %5, align 4
%25 = icmp ne i32 %24, 0
br i1 %25, label %.lr.ph, label %52
.lr.ph: ; preds = %23
br label %26
26: ; preds = %.lr.ph, %39
%27 = load i32, ptr %5, align 4
%28 = load i32, ptr %7, align 4
%29 = srem i32 %27, %28
store i32 %29, ptr %10, align 4
%30 = load i32, ptr %10, align 4
%31 = icmp sgt i32 %30, 9
br i1 %31, label %32, label %36
32: ; preds = %26
%33 = load i32, ptr %10, align 4
%34 = sub nsw i32 %33, 10
%35 = add nsw i32 %34, 97
br label %39
36: ; preds = %26
%37 = load i32, ptr %10, align 4
%38 = add nsw i32 %37, 48
br label %39
39: ; preds = %36, %32
%40 = phi i32 [ %35, %32 ], [ %38, %36 ]
%41 = trunc i32 %40 to i8
%42 = load ptr, ptr %6, align 8
%43 = load i32, ptr %8, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %8, align 4
%45 = sext i32 %43 to i64
%46 = getelementptr inbounds i8, ptr %42, i64 %45
store i8 %41, ptr %46, align 1
%47 = load i32, ptr %7, align 4
%48 = load i32, ptr %5, align 4
%49 = sdiv i32 %48, %47
store i32 %49, ptr %5, align 4
%50 = load i32, ptr %5, align 4
%51 = icmp ne i32 %50, 0
br i1 %51, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %39
br label %52
52: ; preds = %._crit_edge, %23
%53 = load i32, ptr %9, align 4
%54 = icmp ne i32 %53, 0
br i1 %54, label %55, label %60
55: ; preds = %52
%56 = load ptr, ptr %6, align 8
%57 = load i32, ptr %8, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i8, ptr %56, i64 %58
store i8 45, ptr %59, align 1
br label %60
60: ; preds = %55, %52
%61 = load ptr, ptr %6, align 8
%62 = call ptr @strrev(ptr noundef %61)
store ptr %62, ptr %6, align 8
%63 = load ptr, ptr %6, align 8
store ptr %63, ptr %4, align 8
br label %64
64: ; preds = %60, %13
%65 = load ptr, ptr %4, align 8
ret ptr %65
}
declare ptr @strrev(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpkncjim8x.c'
source_filename = "/tmp/tmpkncjim8x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_prim_usleep(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 @usleep(i32 noundef %3)
ret void
}
declare i32 @usleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkncjim8x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_prim_usleep(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 @usleep(i32 noundef %3)
ret void
}
declare i32 @usleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwmc9sxzz.c'
source_filename = "/tmp/tmpwmc9sxzz.c"
target datalayout = "e-m:e-p270: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/tmpwmc9sxzz.c"
target datalayout = "e-m:e-p270: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/tmplqsdxkut.c'
source_filename = "/tmp/tmplqsdxkut.c"
target datalayout = "e-m:e-p270: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/tmplqsdxkut.c"
target datalayout = "e-m:e-p270: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/tmpk02zhfcz.c'
source_filename = "/tmp/tmpk02zhfcz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"Enter mass,height and velocity\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%f%f%f\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"Kinetic energy\0A%f\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"Potential energy=\0A%f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
store i32 0, ptr %1, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %4, ptr noundef %5)
store float 0x40239999A0000000, ptr %3, align 4
%10 = load float, ptr %2, align 4
%11 = load float, ptr %3, align 4
%12 = fmul float %10, %11
%13 = load float, ptr %4, align 4
%14 = fmul float %12, %13
store float %14, ptr %6, align 4
%15 = load float, ptr %2, align 4
%16 = load float, ptr %5, align 4
%17 = fmul float %15, %16
%18 = load float, ptr %5, align 4
%19 = fmul float %17, %18
%20 = fdiv float %19, 2.000000e+00
store float %20, ptr %7, align 4
%21 = load float, ptr %7, align 4
%22 = fpext float %21 to double
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %22)
%24 = load float, ptr %6, align 4
%25 = fpext float %24 to double
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %25)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
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/tmpk02zhfcz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"Enter mass,height and velocity\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%f%f%f\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"Kinetic energy\0A%f\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"Potential energy=\0A%f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
store i32 0, ptr %1, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %4, ptr noundef %5)
store float 0x40239999A0000000, ptr %3, align 4
%10 = load float, ptr %2, align 4
%11 = load float, ptr %3, align 4
%12 = fmul float %10, %11
%13 = load float, ptr %4, align 4
%14 = fmul float %12, %13
store float %14, ptr %6, align 4
%15 = load float, ptr %2, align 4
%16 = load float, ptr %5, align 4
%17 = fmul float %15, %16
%18 = load float, ptr %5, align 4
%19 = fmul float %17, %18
%20 = fdiv float %19, 2.000000e+00
store float %20, ptr %7, align 4
%21 = load float, ptr %7, align 4
%22 = fpext float %21 to double
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %22)
%24 = load float, ptr %6, align 4
%25 = fpext float %24 to double
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %25)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
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/tmpgufrqrhs.c'
source_filename = "/tmp/tmpgufrqrhs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_6__ = type { ptr, i64, i64, i32, i32, ptr, i64, i64, i64 }
@Z_DEFLATED = dso_local global i32 0, align 4
@Z_FIXED = dso_local global i32 0, align 4
@Z_OK = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [13 x i8] c"deflateInit\0A\00", align 1
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"deflateSetDictionary\0A\00", align 1
@Z_NO_FLUSH = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [9 x i8] c"deflate\0A\00", align 1
@Z_FINISH = dso_local global i32 0, align 4
@Z_STREAM_END = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [12 x i8] c"deflateEnd\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_deflate(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca %struct.TYPE_6__, align 8
%8 = alloca i32, align 4
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%10 = load ptr, ptr %4, align 8
%11 = call i64 @strlen(ptr noundef %10)
%12 = add nsw i64 %11, 1
store i64 %12, ptr %9, align 8
%13 = getelementptr inbounds %struct.TYPE_6__, ptr %7, i32 0, i32 8
store i64 0, ptr %13, align 8
%14 = getelementptr inbounds %struct.TYPE_6__, ptr %7, i32 0, i32 7
store i64 0, ptr %14, align 8
%15 = getelementptr inbounds %struct.TYPE_6__, ptr %7, i32 0, i32 6
store i64 0, ptr %15, align 8
%16 = load i32, ptr @Z_DEFLATED, align 4
%17 = load i32, ptr @Z_FIXED, align 4
%18 = call i32 @deflateInit2(ptr noundef %7, i32 noundef 9, i32 noundef %16, i32 noundef -15, i32 noundef 8, i32 noundef %17)
store i32 %18, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = load i32, ptr @Z_OK, align 4
%21 = icmp ne i32 %19, %20
br i1 %21, label %22, label %25
22: ; preds = %3
%23 = load i32, ptr @stderr, align 4
%24 = call i32 @fprintf(i32 noundef %23, ptr noundef @.str)
br label %25
25: ; preds = %22, %3
%26 = call i32 @deflateSetDictionary(ptr noundef %7, ptr noundef @.str.1, i32 noundef 0)
store i32 %26, ptr %8, align 4
%27 = load i32, ptr %8, align 4
%28 = load i32, ptr @Z_OK, align 4
%29 = icmp ne i32 %27, %28
br i1 %29, label %30, label %33
30: ; preds = %25
%31 = load i32, ptr @stderr, align 4
%32 = call i32 @fprintf(i32 noundef %31, ptr noundef @.str.2)
br label %33
33: ; preds = %30, %25
%34 = load ptr, ptr %4, align 8
%35 = getelementptr inbounds %struct.TYPE_6__, ptr %7, i32 0, i32 5
store ptr %34, ptr %35, align 8
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds %struct.TYPE_6__, ptr %7, i32 0, i32 0
store ptr %36, ptr %37, align 8
br label %38
38: ; preds = %61, %33
%39 = getelementptr inbounds %struct.TYPE_6__, ptr %7, i32 0, i32 1
%40 = load i64, ptr %39, align 8
%41 = load i64, ptr %9, align 8
%42 = icmp ne i64 %40, %41
br i1 %42, label %43, label %48
43: ; preds = %38
%44 = getelementptr inbounds %struct.TYPE_6__, ptr %7, i32 0, i32 2
%45 = load i64, ptr %44, align 8
%46 = load i64, ptr %6, align 8
%47 = icmp slt i64 %45, %46
br label %48
48: ; preds = %43, %38
%49 = phi i1 [ false, %38 ], [ %47, %43 ]
br i1 %49, label %50, label %62
50: ; preds = %48
%51 = getelementptr inbounds %struct.TYPE_6__, ptr %7, i32 0, i32 4
store i32 1, ptr %51, align 4
%52 = getelementptr inbounds %struct.TYPE_6__, ptr %7, i32 0, i32 3
store i32 1, ptr %52, align 8
%53 = load i32, ptr @Z_NO_FLUSH, align 4
%54 = call i32 @deflate(ptr noundef %7, i32 noundef %53)
store i32 %54, ptr %8, align 4
%55 = load i32, ptr %8, align 4
%56 = load i32, ptr @Z_OK, align 4
%57 = icmp ne i32 %55, %56
br i1 %57, label %58, label %61
58: ; preds = %50
%59 = load i32, ptr @stderr, align 4
%60 = call i32 @fprintf(i32 noundef %59, ptr noundef @.str.3)
br label %61
61: ; preds = %58, %50
br label %38, !llvm.loop !6
62: ; preds = %48
br label %63
63: ; preds = %78, %62
%64 = getelementptr inbounds %struct.TYPE_6__, ptr %7, i32 0, i32 4
store i32 1, ptr %64, align 4
%65 = load i32, ptr @Z_FINISH, align 4
%66 = call i32 @deflate(ptr noundef %7, i32 noundef %65)
store i32 %66, ptr %8, align 4
%67 = load i32, ptr %8, align 4
%68 = load i32, ptr @Z_STREAM_END, align 4
%69 = icmp eq i32 %67, %68
br i1 %69, label %70, label %71
70: ; preds = %63
br label %79
71: ; preds = %63
%72 = load i32, ptr %8, align 4
%73 = load i32, ptr @Z_OK, align 4
%74 = icmp ne i32 %72, %73
br i1 %74, label %75, label %78
75: ; preds = %71
%76 = load i32, ptr @stderr, align 4
%77 = call i32 @fprintf(i32 noundef %76, ptr noundef @.str.3)
br label %78
78: ; preds = %75, %71
br label %63
79: ; preds = %70
%80 = call i32 @deflateEnd(ptr noundef %7)
store i32 %80, ptr %8, align 4
%81 = load i32, ptr %8, align 4
%82 = load i32, ptr @Z_OK, align 4
%83 = icmp ne i32 %81, %82
br i1 %83, label %84, label %87
84: ; preds = %79
%85 = load i32, ptr @stderr, align 4
%86 = call i32 @fprintf(i32 noundef %85, ptr noundef @.str.4)
br label %87
87: ; preds = %84, %79
%88 = getelementptr inbounds %struct.TYPE_6__, ptr %7, i32 0, i32 2
%89 = load i64, ptr %88, align 8
%90 = trunc i64 %89 to i32
ret i32 %90
}
declare i64 @strlen(ptr noundef) #1
declare i32 @deflateInit2(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @deflateSetDictionary(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @deflate(ptr noundef, i32 noundef) #1
declare i32 @deflateEnd(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpgufrqrhs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_6__ = type { ptr, i64, i64, i32, i32, ptr, i64, i64, i64 }
@Z_DEFLATED = dso_local global i32 0, align 4
@Z_FIXED = dso_local global i32 0, align 4
@Z_OK = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [13 x i8] c"deflateInit\0A\00", align 1
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"deflateSetDictionary\0A\00", align 1
@Z_NO_FLUSH = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [9 x i8] c"deflate\0A\00", align 1
@Z_FINISH = dso_local global i32 0, align 4
@Z_STREAM_END = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [12 x i8] c"deflateEnd\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_deflate(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca %struct.TYPE_6__, align 8
%8 = alloca i32, align 4
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%10 = load ptr, ptr %4, align 8
%11 = call i64 @strlen(ptr noundef %10)
%12 = add nsw i64 %11, 1
store i64 %12, ptr %9, align 8
%13 = getelementptr inbounds %struct.TYPE_6__, ptr %7, i32 0, i32 8
store i64 0, ptr %13, align 8
%14 = getelementptr inbounds %struct.TYPE_6__, ptr %7, i32 0, i32 7
store i64 0, ptr %14, align 8
%15 = getelementptr inbounds %struct.TYPE_6__, ptr %7, i32 0, i32 6
store i64 0, ptr %15, align 8
%16 = load i32, ptr @Z_DEFLATED, align 4
%17 = load i32, ptr @Z_FIXED, align 4
%18 = call i32 @deflateInit2(ptr noundef %7, i32 noundef 9, i32 noundef %16, i32 noundef -15, i32 noundef 8, i32 noundef %17)
store i32 %18, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = load i32, ptr @Z_OK, align 4
%21 = icmp ne i32 %19, %20
br i1 %21, label %22, label %25
22: ; preds = %3
%23 = load i32, ptr @stderr, align 4
%24 = call i32 @fprintf(i32 noundef %23, ptr noundef @.str)
br label %25
25: ; preds = %22, %3
%26 = call i32 @deflateSetDictionary(ptr noundef %7, ptr noundef @.str.1, i32 noundef 0)
store i32 %26, ptr %8, align 4
%27 = load i32, ptr %8, align 4
%28 = load i32, ptr @Z_OK, align 4
%29 = icmp ne i32 %27, %28
br i1 %29, label %30, label %33
30: ; preds = %25
%31 = load i32, ptr @stderr, align 4
%32 = call i32 @fprintf(i32 noundef %31, ptr noundef @.str.2)
br label %33
33: ; preds = %30, %25
%34 = load ptr, ptr %4, align 8
%35 = getelementptr inbounds %struct.TYPE_6__, ptr %7, i32 0, i32 5
store ptr %34, ptr %35, align 8
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds %struct.TYPE_6__, ptr %7, i32 0, i32 0
store ptr %36, ptr %37, align 8
br label %38
38: ; preds = %61, %33
%39 = getelementptr inbounds %struct.TYPE_6__, ptr %7, i32 0, i32 1
%40 = load i64, ptr %39, align 8
%41 = load i64, ptr %9, align 8
%42 = icmp ne i64 %40, %41
br i1 %42, label %43, label %48
43: ; preds = %38
%44 = getelementptr inbounds %struct.TYPE_6__, ptr %7, i32 0, i32 2
%45 = load i64, ptr %44, align 8
%46 = load i64, ptr %6, align 8
%47 = icmp slt i64 %45, %46
br label %48
48: ; preds = %43, %38
%49 = phi i1 [ false, %38 ], [ %47, %43 ]
br i1 %49, label %50, label %62
50: ; preds = %48
%51 = getelementptr inbounds %struct.TYPE_6__, ptr %7, i32 0, i32 4
store i32 1, ptr %51, align 4
%52 = getelementptr inbounds %struct.TYPE_6__, ptr %7, i32 0, i32 3
store i32 1, ptr %52, align 8
%53 = load i32, ptr @Z_NO_FLUSH, align 4
%54 = call i32 @deflate(ptr noundef %7, i32 noundef %53)
store i32 %54, ptr %8, align 4
%55 = load i32, ptr %8, align 4
%56 = load i32, ptr @Z_OK, align 4
%57 = icmp ne i32 %55, %56
br i1 %57, label %58, label %61
58: ; preds = %50
%59 = load i32, ptr @stderr, align 4
%60 = call i32 @fprintf(i32 noundef %59, ptr noundef @.str.3)
br label %61
61: ; preds = %58, %50
br label %38, !llvm.loop !6
62: ; preds = %48
%63 = getelementptr inbounds %struct.TYPE_6__, ptr %7, i32 0, i32 4
store i32 1, ptr %63, align 4
%64 = load i32, ptr @Z_FINISH, align 4
%65 = call i32 @deflate(ptr noundef %7, i32 noundef %64)
store i32 %65, ptr %8, align 4
%66 = load i32, ptr %8, align 4
%67 = load i32, ptr @Z_STREAM_END, align 4
%68 = icmp eq i32 %66, %67
br i1 %68, label %69, label %.lr.ph
.lr.ph: ; preds = %62
br label %70
._crit_edge: ; preds = %77
br label %69
69: ; preds = %._crit_edge, %62
br label %83
70: ; preds = %.lr.ph, %77
%71 = load i32, ptr %8, align 4
%72 = load i32, ptr @Z_OK, align 4
%73 = icmp ne i32 %71, %72
br i1 %73, label %74, label %77
74: ; preds = %70
%75 = load i32, ptr @stderr, align 4
%76 = call i32 @fprintf(i32 noundef %75, ptr noundef @.str.3)
br label %77
77: ; preds = %74, %70
store i32 1, ptr %63, align 4
%78 = load i32, ptr @Z_FINISH, align 4
%79 = call i32 @deflate(ptr noundef %7, i32 noundef %78)
store i32 %79, ptr %8, align 4
%80 = load i32, ptr %8, align 4
%81 = load i32, ptr @Z_STREAM_END, align 4
%82 = icmp eq i32 %80, %81
br i1 %82, label %._crit_edge, label %70
83: ; preds = %69
%84 = call i32 @deflateEnd(ptr noundef %7)
store i32 %84, ptr %8, align 4
%85 = load i32, ptr %8, align 4
%86 = load i32, ptr @Z_OK, align 4
%87 = icmp ne i32 %85, %86
br i1 %87, label %88, label %91
88: ; preds = %83
%89 = load i32, ptr @stderr, align 4
%90 = call i32 @fprintf(i32 noundef %89, ptr noundef @.str.4)
br label %91
91: ; preds = %88, %83
%92 = getelementptr inbounds %struct.TYPE_6__, ptr %7, i32 0, i32 2
%93 = load i64, ptr %92, align 8
%94 = trunc i64 %93 to i32
ret i32 %94
}
declare i64 @strlen(ptr noundef) #1
declare i32 @deflateInit2(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @deflateSetDictionary(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @deflate(ptr noundef, i32 noundef) #1
declare i32 @deflateEnd(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmppzb4urdg.c'
source_filename = "/tmp/tmppzb4urdg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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) \00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%02x \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define hidden void @ReportBufferCtrl(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = call i32 @ReportChar(i32 noundef %7, i8 noundef signext 91)
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr %6, align 4
%11 = call i32 (i32, ptr, ...) @ReportString(i32 noundef %9, ptr noundef @.str, i32 noundef %10)
br label %12
12: ; preds = %16, %3
%13 = load i32, ptr %6, align 4
%14 = add i32 %13, -1
store i32 %14, ptr %6, align 4
%15 = icmp ne i32 %13, 0
br i1 %15, label %16, label %24
16: ; preds = %12
%17 = load i32, ptr %4, align 4
%18 = load ptr, ptr %5, align 8
%19 = load i8, ptr %18, align 1
%20 = zext i8 %19 to i32
%21 = call i32 (i32, ptr, ...) @ReportString(i32 noundef %17, ptr noundef @.str.1, i32 noundef %20)
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 1
store ptr %23, ptr %5, align 8
br label %12, !llvm.loop !6
24: ; preds = %12
%25 = load i32, ptr %4, align 4
%26 = call i32 (i32, ptr, ...) @ReportString(i32 noundef %25, ptr noundef @.str.2)
ret void
}
declare i32 @ReportChar(i32 noundef, i8 noundef signext) #1
declare i32 @ReportString(i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppzb4urdg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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) \00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%02x \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define hidden void @ReportBufferCtrl(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = call i32 @ReportChar(i32 noundef %7, i8 noundef signext 91)
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr %6, align 4
%11 = call i32 (i32, ptr, ...) @ReportString(i32 noundef %9, ptr noundef @.str, i32 noundef %10)
%12 = load i32, ptr %6, align 4
%13 = add i32 %12, -1
store i32 %13, ptr %6, align 4
%14 = icmp ne i32 %12, 0
br i1 %14, label %.lr.ph, label %26
.lr.ph: ; preds = %3
br label %15
15: ; preds = %.lr.ph, %15
%16 = load i32, ptr %4, align 4
%17 = load ptr, ptr %5, align 8
%18 = load i8, ptr %17, align 1
%19 = zext i8 %18 to i32
%20 = call i32 (i32, ptr, ...) @ReportString(i32 noundef %16, ptr noundef @.str.1, i32 noundef %19)
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %5, align 8
%23 = load i32, ptr %6, align 4
%24 = add i32 %23, -1
store i32 %24, ptr %6, align 4
%25 = icmp ne i32 %23, 0
br i1 %25, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %26
26: ; preds = %._crit_edge, %3
%27 = load i32, ptr %4, align 4
%28 = call i32 (i32, ptr, ...) @ReportString(i32 noundef %27, ptr noundef @.str.2)
ret void
}
declare i32 @ReportChar(i32 noundef, i8 noundef signext) #1
declare i32 @ReportString(i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpp1uca0ga.c'
source_filename = "/tmp/tmpp1uca0ga.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@calculateHarshnessFromHeight.maxY = internal constant float 1.790000e+02, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @calculateHarshnessFromHeight(double noundef %0, float noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca float, align 4
%5 = alloca float, align 4
store double %0, ptr %3, align 8
store float %1, ptr %4, align 4
%6 = load double, ptr %3, align 8
%7 = fdiv double %6, 1.790000e+02
%8 = load float, ptr %4, align 4
%9 = fpext float %8 to double
%10 = fmul double %7, %9
%11 = fptrunc double %10 to float
store float %11, ptr %5, align 4
%12 = load float, ptr %5, align 4
%13 = call float @round(float noundef %12)
store float %13, ptr %5, align 4
%14 = load float, ptr %5, align 4
%15 = fcmp oeq float %14, 0.000000e+00
br i1 %15, label %16, label %17
16: ; preds = %2
store float 1.000000e+00, ptr %5, align 4
br label %17
17: ; preds = %16, %2
%18 = load float, ptr %5, align 4
%19 = fptosi float %18 to i32
ret i32 %19
}
declare float @round(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp1uca0ga.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@calculateHarshnessFromHeight.maxY = internal constant float 1.790000e+02, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @calculateHarshnessFromHeight(double noundef %0, float noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca float, align 4
%5 = alloca float, align 4
store double %0, ptr %3, align 8
store float %1, ptr %4, align 4
%6 = load double, ptr %3, align 8
%7 = fdiv double %6, 1.790000e+02
%8 = load float, ptr %4, align 4
%9 = fpext float %8 to double
%10 = fmul double %7, %9
%11 = fptrunc double %10 to float
store float %11, ptr %5, align 4
%12 = load float, ptr %5, align 4
%13 = call float @round(float noundef %12)
store float %13, ptr %5, align 4
%14 = load float, ptr %5, align 4
%15 = fcmp oeq float %14, 0.000000e+00
br i1 %15, label %16, label %17
16: ; preds = %2
store float 1.000000e+00, ptr %5, align 4
br label %17
17: ; preds = %16, %2
%18 = load float, ptr %5, align 4
%19 = fptosi float %18 to i32
ret i32 %19
}
declare float @round(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7145w946.c'
source_filename = "/tmp/tmp7145w946.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @printCharacter(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds i32, ptr %3, i64 0
%5 = load i32, ptr %4, align 4
%6 = call i32 @OSD9616_send(i32 noundef 64, i32 noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds i32, ptr %7, i64 1
%9 = load i32, ptr %8, align 4
%10 = call i32 @OSD9616_send(i32 noundef 64, i32 noundef %9)
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds i32, ptr %11, i64 2
%13 = load i32, ptr %12, align 4
%14 = call i32 @OSD9616_send(i32 noundef 64, i32 noundef %13)
%15 = load ptr, ptr %2, align 8
%16 = getelementptr inbounds i32, ptr %15, i64 3
%17 = load i32, ptr %16, align 4
%18 = call i32 @OSD9616_send(i32 noundef 64, i32 noundef %17)
%19 = call i32 @OSD9616_send(i32 noundef 64, i32 noundef 0)
ret i32 0
}
declare i32 @OSD9616_send(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7145w946.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @printCharacter(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds i32, ptr %3, i64 0
%5 = load i32, ptr %4, align 4
%6 = call i32 @OSD9616_send(i32 noundef 64, i32 noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds i32, ptr %7, i64 1
%9 = load i32, ptr %8, align 4
%10 = call i32 @OSD9616_send(i32 noundef 64, i32 noundef %9)
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds i32, ptr %11, i64 2
%13 = load i32, ptr %12, align 4
%14 = call i32 @OSD9616_send(i32 noundef 64, i32 noundef %13)
%15 = load ptr, ptr %2, align 8
%16 = getelementptr inbounds i32, ptr %15, i64 3
%17 = load i32, ptr %16, align 4
%18 = call i32 @OSD9616_send(i32 noundef 64, i32 noundef %17)
%19 = call i32 @OSD9616_send(i32 noundef 64, i32 noundef 0)
ret i32 0
}
declare i32 @OSD9616_send(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp527op15z.c'
source_filename = "/tmp/tmp527op15z.c"
target datalayout = "e-m:e-p270: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/tmp527op15z.c"
target datalayout = "e-m:e-p270: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/tmpki43f3cp.c'
source_filename = "/tmp/tmpki43f3cp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"The %dth prime is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @problem7() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 1, ptr %2, align 4
store i32 2, ptr %1, align 4
br label %3
3: ; preds = %14, %0
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 10001
br i1 %5, label %6, label %17
6: ; preds = %3
%7 = load i32, ptr %1, align 4
%8 = call i64 @is_prime_int(i32 noundef %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %6
%11 = load i32, ptr %2, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %2, align 4
br label %13
13: ; preds = %10, %6
br label %14
14: ; preds = %13
%15 = load i32, ptr %1, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %1, align 4
br label %3, !llvm.loop !6
17: ; preds = %3
%18 = load i32, ptr %1, align 4
%19 = sub nsw i32 %18, 1
%20 = call i32 @printf(ptr noundef @.str, i32 noundef 10001, i32 noundef %19)
ret i32 0
}
declare i64 @is_prime_int(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpki43f3cp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"The %dth prime is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @problem7() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 1, ptr %2, align 4
store i32 2, ptr %1, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp slt i32 %3, 10001
br i1 %4, label %.lr.ph, label %18
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %13
%6 = load i32, ptr %1, align 4
%7 = call i64 @is_prime_int(i32 noundef %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %5
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %2, align 4
br label %12
12: ; preds = %9, %5
br label %13
13: ; preds = %12
%14 = load i32, ptr %1, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %1, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp slt i32 %16, 10001
br i1 %17, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %18
18: ; preds = %._crit_edge, %0
%19 = load i32, ptr %1, align 4
%20 = sub nsw i32 %19, 1
%21 = call i32 @printf(ptr noundef @.str, i32 noundef 10001, i32 noundef %20)
ret i32 0
}
declare i64 @is_prime_int(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpnmnbzobz.c'
source_filename = "/tmp/tmpnmnbzobz.c"
target datalayout = "e-m:e-p270: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 }
@get_uptime.ret = internal global [255 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [14 x i8] c"kern.boottime\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"%ld days, %ld hours and %ld minutes\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_uptime() #0 {
%1 = alloca ptr, align 8
%2 = alloca %struct.timeval, align 4
%3 = alloca i64, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i64 4, ptr %3, align 8
%8 = call i64 @sysctlbyname(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef null, i32 noundef 0)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %0
store ptr null, ptr %1, align 8
br label %29
11: ; preds = %0
%12 = call i32 @time(ptr noundef null)
%13 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 0
%14 = load i32, ptr %13, align 4
%15 = call i64 @difftime(i32 noundef %12, i32 noundef %14)
%16 = trunc i64 %15 to i32
store i32 %16, ptr %4, align 4
%17 = load i32, ptr %4, align 4
%18 = sdiv i32 %17, 86400
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %4, align 4
%20 = sdiv i32 %19, 3600
%21 = srem i32 %20, 24
store i32 %21, ptr %6, align 4
%22 = load i32, ptr %4, align 4
%23 = sdiv i32 %22, 60
%24 = srem i32 %23, 60
store i32 %24, ptr %7, align 4
%25 = load i32, ptr %5, align 4
%26 = load i32, ptr %6, align 4
%27 = load i32, ptr %7, align 4
%28 = call i32 @snprintf(ptr noundef @get_uptime.ret, i32 noundef 255, ptr noundef @.str.1, i32 noundef %25, i32 noundef %26, i32 noundef %27)
store ptr @get_uptime.ret, ptr %1, align 8
br label %29
29: ; preds = %11, %10
%30 = load ptr, ptr %1, align 8
ret ptr %30
}
declare i64 @sysctlbyname(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @difftime(i32 noundef, i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnmnbzobz.c"
target datalayout = "e-m:e-p270: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 }
@get_uptime.ret = internal global [255 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [14 x i8] c"kern.boottime\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"%ld days, %ld hours and %ld minutes\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_uptime() #0 {
%1 = alloca ptr, align 8
%2 = alloca %struct.timeval, align 4
%3 = alloca i64, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i64 4, ptr %3, align 8
%8 = call i64 @sysctlbyname(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef null, i32 noundef 0)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %0
store ptr null, ptr %1, align 8
br label %29
11: ; preds = %0
%12 = call i32 @time(ptr noundef null)
%13 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 0
%14 = load i32, ptr %13, align 4
%15 = call i64 @difftime(i32 noundef %12, i32 noundef %14)
%16 = trunc i64 %15 to i32
store i32 %16, ptr %4, align 4
%17 = load i32, ptr %4, align 4
%18 = sdiv i32 %17, 86400
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %4, align 4
%20 = sdiv i32 %19, 3600
%21 = srem i32 %20, 24
store i32 %21, ptr %6, align 4
%22 = load i32, ptr %4, align 4
%23 = sdiv i32 %22, 60
%24 = srem i32 %23, 60
store i32 %24, ptr %7, align 4
%25 = load i32, ptr %5, align 4
%26 = load i32, ptr %6, align 4
%27 = load i32, ptr %7, align 4
%28 = call i32 @snprintf(ptr noundef @get_uptime.ret, i32 noundef 255, ptr noundef @.str.1, i32 noundef %25, i32 noundef %26, i32 noundef %27)
store ptr @get_uptime.ret, ptr %1, align 8
br label %29
29: ; preds = %11, %10
%30 = load ptr, ptr %1, align 8
ret ptr %30
}
declare i64 @sysctlbyname(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @difftime(i32 noundef, i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjmof_ktp.c'
source_filename = "/tmp/tmpjmof_ktp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ftp_parse_ls(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call ptr @ftp_parse_unix_ls(ptr noundef %3)
ret ptr %4
}
declare ptr @ftp_parse_unix_ls(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjmof_ktp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ftp_parse_ls(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call ptr @ftp_parse_unix_ls(ptr noundef %3)
ret ptr %4
}
declare ptr @ftp_parse_unix_ls(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9igk30e8.c'
source_filename = "/tmp/tmp9igk30e8.c"
target datalayout = "e-m:e-p270: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.drawAsphalt.asphaltColor = private unnamed_addr constant [4 x double] [double 2.500000e-01, double 2.500000e-01, double 2.500000e-01, double 1.000000e+00], align 16
@GL_FRONT_AND_BACK = dso_local global i32 0, align 4
@GL_AMBIENT_AND_DIFFUSE = dso_local global i32 0, align 4
@GL_QUADS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @drawAsphalt() #0 {
%1 = alloca [4 x double], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.drawAsphalt.asphaltColor, i64 32, i1 false)
%2 = load i32, ptr @GL_FRONT_AND_BACK, align 4
%3 = load i32, ptr @GL_AMBIENT_AND_DIFFUSE, align 4
%4 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%5 = call i32 @glMaterialfv(i32 noundef %2, i32 noundef %3, ptr noundef %4)
%6 = load i32, ptr @GL_QUADS, align 4
%7 = call i32 @glBegin(i32 noundef %6)
%8 = call i32 @glNormal3i(i32 noundef 0, i32 noundef 1, i32 noundef 0)
%9 = call i32 @glVertex3f(i32 noundef 5, i32 noundef 0, double noundef 9.500000e+00)
%10 = call i32 @glVertex3f(i32 noundef 5, i32 noundef 0, double noundef -9.500000e+00)
%11 = call i32 @glVertex3f(i32 noundef -5, i32 noundef 0, double noundef -9.500000e+00)
%12 = call i32 @glVertex3f(i32 noundef -5, i32 noundef 0, double noundef 9.500000e+00)
%13 = call i32 (...) @glEnd()
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @glMaterialfv(i32 noundef, i32 noundef, ptr noundef) #2
declare i32 @glBegin(i32 noundef) #2
declare i32 @glNormal3i(i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @glVertex3f(i32 noundef, i32 noundef, double noundef) #2
declare i32 @glEnd(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9igk30e8.c"
target datalayout = "e-m:e-p270: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.drawAsphalt.asphaltColor = private unnamed_addr constant [4 x double] [double 2.500000e-01, double 2.500000e-01, double 2.500000e-01, double 1.000000e+00], align 16
@GL_FRONT_AND_BACK = dso_local global i32 0, align 4
@GL_AMBIENT_AND_DIFFUSE = dso_local global i32 0, align 4
@GL_QUADS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @drawAsphalt() #0 {
%1 = alloca [4 x double], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.drawAsphalt.asphaltColor, i64 32, i1 false)
%2 = load i32, ptr @GL_FRONT_AND_BACK, align 4
%3 = load i32, ptr @GL_AMBIENT_AND_DIFFUSE, align 4
%4 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%5 = call i32 @glMaterialfv(i32 noundef %2, i32 noundef %3, ptr noundef %4)
%6 = load i32, ptr @GL_QUADS, align 4
%7 = call i32 @glBegin(i32 noundef %6)
%8 = call i32 @glNormal3i(i32 noundef 0, i32 noundef 1, i32 noundef 0)
%9 = call i32 @glVertex3f(i32 noundef 5, i32 noundef 0, double noundef 9.500000e+00)
%10 = call i32 @glVertex3f(i32 noundef 5, i32 noundef 0, double noundef -9.500000e+00)
%11 = call i32 @glVertex3f(i32 noundef -5, i32 noundef 0, double noundef -9.500000e+00)
%12 = call i32 @glVertex3f(i32 noundef -5, i32 noundef 0, double noundef 9.500000e+00)
%13 = call i32 (...) @glEnd()
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @glMaterialfv(i32 noundef, i32 noundef, ptr noundef) #2
declare i32 @glBegin(i32 noundef) #2
declare i32 @glNormal3i(i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @glVertex3f(i32 noundef, i32 noundef, double noundef) #2
declare i32 @glEnd(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp74_3c8m5.c'
source_filename = "/tmp/tmp74_3c8m5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @shim_removexattr(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @shim_enosys(i32 noundef 0, ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @shim_enosys(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp74_3c8m5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @shim_removexattr(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @shim_enosys(i32 noundef 0, ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @shim_enosys(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsloqiepu.c'
source_filename = "/tmp/tmpsloqiepu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@pthread_create = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [31 x i8] c"This is multi-thread version!\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"This is sigle-thread version\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 i64, ptr @pthread_create, align 8
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @printf(ptr noundef @.str)
br label %12
10: ; preds = %2
%11 = call i32 @printf(ptr noundef @.str.1)
br label %12
12: ; preds = %10, %8
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/tmpsloqiepu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@pthread_create = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [31 x i8] c"This is multi-thread version!\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"This is sigle-thread version\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 i64, ptr @pthread_create, align 8
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @printf(ptr noundef @.str)
br label %12
10: ; preds = %2
%11 = call i32 @printf(ptr noundef @.str.1)
br label %12
12: ; preds = %10, %8
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/tmpug1k_onv.c'
source_filename = "/tmp/tmpug1k_onv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [54 x i8] c"\0AEnter the day of the week on which the month starts\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [40 x i8] c"\0AEnter the number of days in the month\0A\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"\0AInvalid Input\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%6 = call i32 @printf(ptr noundef @.str.2)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %19, label %10
10: ; preds = %0
%11 = load i32, ptr %3, align 4
%12 = icmp sgt i32 %11, 6
br i1 %12, label %19, label %13
13: ; preds = %10
%14 = load i32, ptr %2, align 4
%15 = icmp sgt i32 %14, 31
br i1 %15, label %19, label %16
16: ; preds = %13
%17 = load i32, ptr %2, align 4
%18 = icmp slt i32 %17, 28
br i1 %18, label %19, label %22
19: ; preds = %16, %13, %10, %0
%20 = call i32 @printf(ptr noundef @.str.3)
%21 = call i32 @exit(i32 noundef 0) #3
unreachable
22: ; preds = %16
%23 = load i32, ptr %3, align 4
%24 = load i32, ptr %2, align 4
%25 = call i32 @printMonth(i32 noundef %23, i32 noundef %24)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printMonth(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpug1k_onv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [54 x i8] c"\0AEnter the day of the week on which the month starts\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [40 x i8] c"\0AEnter the number of days in the month\0A\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"\0AInvalid Input\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%6 = call i32 @printf(ptr noundef @.str.2)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %19, label %10
10: ; preds = %0
%11 = load i32, ptr %3, align 4
%12 = icmp sgt i32 %11, 6
br i1 %12, label %19, label %13
13: ; preds = %10
%14 = load i32, ptr %2, align 4
%15 = icmp sgt i32 %14, 31
br i1 %15, label %19, label %16
16: ; preds = %13
%17 = load i32, ptr %2, align 4
%18 = icmp slt i32 %17, 28
br i1 %18, label %19, label %22
19: ; preds = %16, %13, %10, %0
%20 = call i32 @printf(ptr noundef @.str.3)
%21 = call i32 @exit(i32 noundef 0) #3
unreachable
22: ; preds = %16
%23 = load i32, ptr %3, align 4
%24 = load i32, ptr %2, align 4
%25 = call i32 @printMonth(i32 noundef %23, i32 noundef %24)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printMonth(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpa40yliif.c'
source_filename = "/tmp/tmpa40yliif.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"at\0D\00\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"\0D\0AOK\0D\0A\00\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"AT command sent\0Aanswer: \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"\\r\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"\\n\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @init_modem(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i8, align 1
%8 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr @.str, ptr %4, align 8
store ptr @.str.1, ptr %5, align 8
store i32 0, ptr %6, align 4
%9 = load i32, ptr %3, align 4
%10 = load ptr, ptr %4, align 8
%11 = load ptr, ptr %4, align 8
%12 = call i32 @strlen(ptr noundef %11)
%13 = call i32 @write(i32 noundef %9, ptr noundef %10, i32 noundef %12)
store i32 %13, ptr %8, align 4
%14 = load i32, ptr %8, align 4
%15 = load ptr, ptr %4, align 8
%16 = call i32 @strlen(ptr noundef %15)
%17 = icmp slt i32 %14, %16
br i1 %17, label %18, label %19
18: ; preds = %1
store i32 -1, ptr %2, align 4
br label %77
19: ; preds = %1
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %21
21: ; preds = %74, %19
%22 = load i32, ptr %6, align 4
%23 = load ptr, ptr %5, align 8
%24 = call i32 @strlen(ptr noundef %23)
%25 = icmp slt i32 %22, %24
br i1 %25, label %26, label %75
26: ; preds = %21
br label %27
27: ; preds = %30, %26
%28 = load i32, ptr %3, align 4
%29 = call i32 @read(i32 noundef %28, ptr noundef %7, i32 noundef 1)
store i32 %29, ptr %8, align 4
br label %30
30: ; preds = %27
%31 = load i32, ptr %8, align 4
%32 = icmp eq i32 %31, 0
br i1 %32, label %27, label %33, !llvm.loop !6
33: ; preds = %30
%34 = load i8, ptr %7, align 1
%35 = sext i8 %34 to i32
%36 = load ptr, ptr %5, align 8
%37 = load i32, ptr %6, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = icmp eq i32 %35, %41
br i1 %42, label %43, label %46
43: ; preds = %33
%44 = load i32, ptr %6, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %6, align 4
br label %57
46: ; preds = %33
%47 = load i8, ptr %7, align 1
%48 = sext i8 %47 to i32
%49 = load ptr, ptr %5, align 8
%50 = getelementptr inbounds i8, ptr %49, i64 0
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = icmp eq i32 %48, %52
br i1 %53, label %54, label %55
54: ; preds = %46
store i32 1, ptr %6, align 4
br label %56
55: ; preds = %46
store i32 0, ptr %6, align 4
br label %56
56: ; preds = %55, %54
br label %57
57: ; preds = %56, %43
%58 = load i8, ptr %7, align 1
%59 = sext i8 %58 to i32
%60 = icmp eq i32 %59, 13
br i1 %60, label %61, label %63
61: ; preds = %57
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %74
63: ; preds = %57
%64 = load i8, ptr %7, align 1
%65 = sext i8 %64 to i32
%66 = icmp eq i32 %65, 10
br i1 %66, label %67, label %69
67: ; preds = %63
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %73
69: ; preds = %63
%70 = load i8, ptr %7, align 1
%71 = sext i8 %70 to i32
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %71)
br label %73
73: ; preds = %69, %67
br label %74
74: ; preds = %73, %61
br label %21, !llvm.loop !8
75: ; preds = %21
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store i32 0, ptr %2, align 4
br label %77
77: ; preds = %75, %18
%78 = load i32, ptr %2, align 4
ret i32 %78
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr 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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa40yliif.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"at\0D\00\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"\0D\0AOK\0D\0A\00\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"AT command sent\0Aanswer: \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"\\r\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"\\n\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @init_modem(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i8, align 1
%8 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr @.str, ptr %4, align 8
store ptr @.str.1, ptr %5, align 8
store i32 0, ptr %6, align 4
%9 = load i32, ptr %3, align 4
%10 = load ptr, ptr %4, align 8
%11 = load ptr, ptr %4, align 8
%12 = call i32 @strlen(ptr noundef %11)
%13 = call i32 @write(i32 noundef %9, ptr noundef %10, i32 noundef %12)
store i32 %13, ptr %8, align 4
%14 = load i32, ptr %8, align 4
%15 = load ptr, ptr %4, align 8
%16 = call i32 @strlen(ptr noundef %15)
%17 = icmp slt i32 %14, %16
br i1 %17, label %18, label %19
18: ; preds = %1
store i32 -1, ptr %2, align 4
br label %80
19: ; preds = %1
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%21 = load i32, ptr %6, align 4
%22 = load ptr, ptr %5, align 8
%23 = call i32 @strlen(ptr noundef %22)
%24 = icmp slt i32 %21, %23
br i1 %24, label %.lr.ph, label %78
.lr.ph: ; preds = %19
br label %25
25: ; preds = %.lr.ph, %73
br label %26
26: ; preds = %29, %25
%27 = load i32, ptr %3, align 4
%28 = call i32 @read(i32 noundef %27, ptr noundef %7, i32 noundef 1)
store i32 %28, ptr %8, align 4
br label %29
29: ; preds = %26
%30 = load i32, ptr %8, align 4
%31 = icmp eq i32 %30, 0
br i1 %31, label %26, label %32, !llvm.loop !6
32: ; preds = %29
%33 = load i8, ptr %7, align 1
%34 = sext i8 %33 to i32
%35 = load ptr, ptr %5, align 8
%36 = load i32, ptr %6, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %34, %40
br i1 %41, label %42, label %45
42: ; preds = %32
%43 = load i32, ptr %6, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %6, align 4
br label %56
45: ; preds = %32
%46 = load i8, ptr %7, align 1
%47 = sext i8 %46 to i32
%48 = load ptr, ptr %5, align 8
%49 = getelementptr inbounds i8, ptr %48, i64 0
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = icmp eq i32 %47, %51
br i1 %52, label %53, label %54
53: ; preds = %45
store i32 1, ptr %6, align 4
br label %55
54: ; preds = %45
store i32 0, ptr %6, align 4
br label %55
55: ; preds = %54, %53
br label %56
56: ; preds = %55, %42
%57 = load i8, ptr %7, align 1
%58 = sext i8 %57 to i32
%59 = icmp eq i32 %58, 13
br i1 %59, label %60, label %62
60: ; preds = %56
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %73
62: ; preds = %56
%63 = load i8, ptr %7, align 1
%64 = sext i8 %63 to i32
%65 = icmp eq i32 %64, 10
br i1 %65, label %66, label %68
66: ; preds = %62
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %72
68: ; preds = %62
%69 = load i8, ptr %7, align 1
%70 = sext i8 %69 to i32
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %70)
br label %72
72: ; preds = %68, %66
br label %73
73: ; preds = %72, %60
%74 = load i32, ptr %6, align 4
%75 = load ptr, ptr %5, align 8
%76 = call i32 @strlen(ptr noundef %75)
%77 = icmp slt i32 %74, %76
br i1 %77, label %25, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %73
br label %78
78: ; preds = %._crit_edge, %19
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store i32 0, ptr %2, align 4
br label %80
80: ; preds = %78, %18
%81 = load i32, ptr %2, align 4
ret i32 %81
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr 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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp0kycoh82.c'
source_filename = "/tmp/tmp0kycoh82.c"
target datalayout = "e-m:e-p270: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 [9 x i8] c"line: %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @my_err(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr @stderr, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str, i32 noundef %6)
%8 = load ptr, ptr %3, align 8
%9 = call i32 @perror(ptr noundef %8)
%10 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0kycoh82.c"
target datalayout = "e-m:e-p270: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 [9 x i8] c"line: %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @my_err(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr @stderr, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str, i32 noundef %6)
%8 = load ptr, ptr %3, align 8
%9 = call i32 @perror(ptr noundef %8)
%10 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp702uo4ph.c'
source_filename = "/tmp/tmp702uo4ph.c"
target datalayout = "e-m:e-p270: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/tmp702uo4ph.c"
target datalayout = "e-m:e-p270: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/tmpcbngeehl.c'
source_filename = "/tmp/tmpcbngeehl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"test1.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"a\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"Testing...\0A\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"test2.txt\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %6, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @fprintf(ptr noundef %7, ptr noundef @.str.2)
%9 = call ptr @fopen(ptr noundef @.str.3, ptr noundef @.str.1)
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
%11 = call i32 @fprintf(ptr noundef %10, ptr noundef @.str.2)
%12 = load i32, ptr %5, align 4
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %0
store ptr %2, ptr %4, align 8
br label %16
15: ; preds = %0
store ptr %3, ptr %4, align 8
br label %16
16: ; preds = %15, %14
%17 = load ptr, ptr %4, align 8
%18 = load ptr, ptr %17, align 8
%19 = call i32 @fclose(ptr noundef %18)
%20 = load ptr, ptr %2, align 8
%21 = call i32 @fclose(ptr noundef %20)
%22 = load ptr, ptr %3, align 8
%23 = call i32 @fclose(ptr noundef %22)
%24 = load i32, ptr %1, align 4
ret i32 %24
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcbngeehl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"test1.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"a\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"Testing...\0A\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"test2.txt\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %6, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @fprintf(ptr noundef %7, ptr noundef @.str.2)
%9 = call ptr @fopen(ptr noundef @.str.3, ptr noundef @.str.1)
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
%11 = call i32 @fprintf(ptr noundef %10, ptr noundef @.str.2)
%12 = load i32, ptr %5, align 4
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %0
store ptr %2, ptr %4, align 8
br label %16
15: ; preds = %0
store ptr %3, ptr %4, align 8
br label %16
16: ; preds = %15, %14
%17 = load ptr, ptr %4, align 8
%18 = load ptr, ptr %17, align 8
%19 = call i32 @fclose(ptr noundef %18)
%20 = load ptr, ptr %2, align 8
%21 = call i32 @fclose(ptr noundef %20)
%22 = load ptr, ptr %3, align 8
%23 = call i32 @fclose(ptr noundef %22)
%24 = load i32, ptr %1, align 4
ret i32 %24
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy7_b2c6f.c'
source_filename = "/tmp/tmpy7_b2c6f.c"
target datalayout = "e-m:e-p270: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/tmpy7_b2c6f.c"
target datalayout = "e-m:e-p270: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/tmp4cqt0148.c'
source_filename = "/tmp/tmp4cqt0148.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [19 x i8] c"kju %s (build %s)\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"0.0.0+\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_version() #0 {
%1 = load i32, ptr @stdout, align 4
%2 = call ptr (...) @kju_gitsha1()
%3 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str, ptr noundef @.str.1, ptr noundef %2)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @kju_gitsha1(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4cqt0148.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [19 x i8] c"kju %s (build %s)\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"0.0.0+\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_version() #0 {
%1 = load i32, ptr @stdout, align 4
%2 = call ptr (...) @kju_gitsha1()
%3 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str, ptr noundef @.str.1, ptr noundef %2)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @kju_gitsha1(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmph9a8tnkl.c'
source_filename = "/tmp/tmph9a8tnkl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @_dump_buf(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = call i32 @_printk(ptr noundef @.str)
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr %4, align 4
%8 = call i32 @_dump_buf_with_offset(ptr noundef %6, i32 noundef %7, i32 noundef 0)
ret void
}
declare i32 @_printk(ptr noundef) #1
declare i32 @_dump_buf_with_offset(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmph9a8tnkl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @_dump_buf(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = call i32 @_printk(ptr noundef @.str)
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr %4, align 4
%8 = call i32 @_dump_buf_with_offset(ptr noundef %6, i32 noundef %7, i32 noundef 0)
ret void
}
declare i32 @_printk(ptr noundef) #1
declare i32 @_dump_buf_with_offset(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptbjkzxpt.c'
source_filename = "/tmp/tmptbjkzxpt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @quicksort_aux(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%8 = load i64, ptr %6, align 8
%9 = load i64, ptr %5, align 8
%10 = icmp ult i64 %8, %9
br i1 %10, label %16, label %11
11: ; preds = %3
%12 = load i64, ptr %6, align 8
%13 = load i64, ptr %5, align 8
%14 = sub i64 %12, %13
%15 = icmp ule i64 %14, 1
br i1 %15, label %16, label %17
16: ; preds = %11, %3
br label %34
17: ; preds = %11
%18 = load i64, ptr %5, align 8
%19 = load i64, ptr %6, align 8
%20 = add i64 %18, %19
%21 = udiv i64 %20, 2
store i64 %21, ptr %7, align 8
%22 = load ptr, ptr %4, align 8
%23 = load i64, ptr %5, align 8
%24 = load i64, ptr %6, align 8
%25 = load i64, ptr %7, align 8
%26 = call i64 @partition(ptr noundef %22, i64 noundef %23, i64 noundef %24, i64 noundef %25)
store i64 %26, ptr %7, align 8
%27 = load ptr, ptr %4, align 8
%28 = load i64, ptr %5, align 8
%29 = load i64, ptr %7, align 8
call void @quicksort_aux(ptr noundef %27, i64 noundef %28, i64 noundef %29)
%30 = load ptr, ptr %4, align 8
%31 = load i64, ptr %7, align 8
%32 = add i64 %31, 1
%33 = load i64, ptr %6, align 8
call void @quicksort_aux(ptr noundef %30, i64 noundef %32, i64 noundef %33)
br label %34
34: ; preds = %17, %16
ret void
}
declare i64 @partition(ptr noundef, i64 noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptbjkzxpt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @quicksort_aux(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%8 = load i64, ptr %6, align 8
%9 = load i64, ptr %5, align 8
%10 = icmp ult i64 %8, %9
br i1 %10, label %16, label %11
11: ; preds = %3
%12 = load i64, ptr %6, align 8
%13 = load i64, ptr %5, align 8
%14 = sub i64 %12, %13
%15 = icmp ule i64 %14, 1
br i1 %15, label %16, label %17
16: ; preds = %11, %3
br label %34
17: ; preds = %11
%18 = load i64, ptr %5, align 8
%19 = load i64, ptr %6, align 8
%20 = add i64 %18, %19
%21 = udiv i64 %20, 2
store i64 %21, ptr %7, align 8
%22 = load ptr, ptr %4, align 8
%23 = load i64, ptr %5, align 8
%24 = load i64, ptr %6, align 8
%25 = load i64, ptr %7, align 8
%26 = call i64 @partition(ptr noundef %22, i64 noundef %23, i64 noundef %24, i64 noundef %25)
store i64 %26, ptr %7, align 8
%27 = load ptr, ptr %4, align 8
%28 = load i64, ptr %5, align 8
%29 = load i64, ptr %7, align 8
call void @quicksort_aux(ptr noundef %27, i64 noundef %28, i64 noundef %29)
%30 = load ptr, ptr %4, align 8
%31 = load i64, ptr %7, align 8
%32 = add i64 %31, 1
%33 = load i64, ptr %6, align 8
call void @quicksort_aux(ptr noundef %30, i64 noundef %32, i64 noundef %33)
br label %34
34: ; preds = %17, %16
ret void
}
declare i64 @partition(ptr noundef, i64 noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2g5nm2sp.c'
source_filename = "/tmp/tmp2g5nm2sp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIG_SETMASK = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ppoll_compat(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = 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
%13 = load ptr, ptr %5, align 8
%14 = call i32 @assert(ptr noundef %13)
%15 = call i32 @sigemptyset(ptr noundef %8)
%16 = load i32, ptr %7, align 4
%17 = call i32 @time(ptr noundef null)
%18 = sub nsw i32 %16, %17
store i32 %18, ptr %9, align 4
%19 = load i32, ptr %9, align 4
%20 = icmp slt i32 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %3
store i32 0, ptr %4, align 4
br label %35
22: ; preds = %3
%23 = load i32, ptr @SIG_SETMASK, align 4
%24 = call i32 @sigprocmask(i32 noundef %23, ptr noundef %8, ptr noundef %10)
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %6, align 4
%27 = load i32, ptr %9, align 4
%28 = mul nsw i32 %27, 1000
%29 = call i32 @poll(ptr noundef %25, i32 noundef %26, i32 noundef %28)
store i32 %29, ptr %11, align 4
%30 = load i32, ptr @errno, align 4
store i32 %30, ptr %12, align 4
%31 = load i32, ptr @SIG_SETMASK, align 4
%32 = call i32 @sigprocmask(i32 noundef %31, ptr noundef %10, ptr noundef null)
%33 = load i32, ptr %12, align 4
store i32 %33, ptr @errno, align 4
%34 = load i32, ptr %11, align 4
store i32 %34, ptr %4, align 4
br label %35
35: ; preds = %22, %21
%36 = load i32, ptr %4, align 4
ret i32 %36
}
declare i32 @assert(ptr noundef) #1
declare i32 @sigemptyset(ptr noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @sigprocmask(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @poll(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2g5nm2sp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIG_SETMASK = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ppoll_compat(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = 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
%13 = load ptr, ptr %5, align 8
%14 = call i32 @assert(ptr noundef %13)
%15 = call i32 @sigemptyset(ptr noundef %8)
%16 = load i32, ptr %7, align 4
%17 = call i32 @time(ptr noundef null)
%18 = sub nsw i32 %16, %17
store i32 %18, ptr %9, align 4
%19 = load i32, ptr %9, align 4
%20 = icmp slt i32 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %3
store i32 0, ptr %4, align 4
br label %35
22: ; preds = %3
%23 = load i32, ptr @SIG_SETMASK, align 4
%24 = call i32 @sigprocmask(i32 noundef %23, ptr noundef %8, ptr noundef %10)
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %6, align 4
%27 = load i32, ptr %9, align 4
%28 = mul nsw i32 %27, 1000
%29 = call i32 @poll(ptr noundef %25, i32 noundef %26, i32 noundef %28)
store i32 %29, ptr %11, align 4
%30 = load i32, ptr @errno, align 4
store i32 %30, ptr %12, align 4
%31 = load i32, ptr @SIG_SETMASK, align 4
%32 = call i32 @sigprocmask(i32 noundef %31, ptr noundef %10, ptr noundef null)
%33 = load i32, ptr %12, align 4
store i32 %33, ptr @errno, align 4
%34 = load i32, ptr %11, align 4
store i32 %34, ptr %4, align 4
br label %35
35: ; preds = %22, %21
%36 = load i32, ptr %4, align 4
ret i32 %36
}
declare i32 @assert(ptr noundef) #1
declare i32 @sigemptyset(ptr noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @sigprocmask(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @poll(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpe2dxg327.c'
source_filename = "/tmp/tmpe2dxg327.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Mlevel should be mutiple of 2...\0A\00", align 1
@.str.1 = private unnamed_addr constant [48 x i8] c"Cannot allocate memory for transLevelArray...!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dlsch_LLR_quant(ptr noundef %0, i32 noundef %1, i16 noundef signext %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i16, align 2
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i16, align 2
%12 = alloca i16, align 2
%13 = alloca i16, align 2
%14 = alloca float, align 4
%15 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i16 %2, ptr %7, align 2
store ptr %3, ptr %8, align 8
%16 = load ptr, ptr %5, align 8
%17 = load i32, ptr %6, align 4
%18 = call signext i16 @min_array(ptr noundef %16, i32 noundef %17)
store i16 %18, ptr %12, align 2
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %6, align 4
%21 = call signext i16 @max_array(ptr noundef %19, i32 noundef %20)
store i16 %21, ptr %11, align 2
%22 = load i16, ptr %11, align 2
%23 = sext i16 %22 to i32
%24 = load i16, ptr %12, align 2
%25 = sext i16 %24 to i32
%26 = sub nsw i32 %23, %25
%27 = trunc i32 %26 to i16
store i16 %27, ptr %13, align 2
%28 = load i16, ptr %13, align 2
%29 = sitofp i16 %28 to float
%30 = load i16, ptr %7, align 2
%31 = sext i16 %30 to i32
%32 = sitofp i32 %31 to float
%33 = fdiv float %29, %32
store float %33, ptr %14, align 4
%34 = load i16, ptr %7, align 2
%35 = sext i16 %34 to i32
%36 = srem i32 %35, 2
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %41
38: ; preds = %4
%39 = call i32 @printf(ptr noundef @.str)
%40 = call i32 @exit(i32 noundef -1) #4
unreachable
41: ; preds = %4
%42 = load i16, ptr %7, align 2
%43 = sext i16 %42 to i32
%44 = add nsw i32 %43, 1
%45 = sext i32 %44 to i64
%46 = mul i64 %45, 4
%47 = trunc i64 %46 to i16
%48 = call i64 @malloc(i16 noundef signext %47)
%49 = inttoptr i64 %48 to ptr
store ptr %49, ptr %15, align 8
%50 = load ptr, ptr %15, align 8
%51 = icmp ne ptr %50, null
br i1 %51, label %55, label %52
52: ; preds = %41
%53 = call i32 @printf(ptr noundef @.str.1)
%54 = call i32 @exit(i32 noundef -1) #4
unreachable
55: ; preds = %41
store i32 0, ptr %10, align 4
br label %56
56: ; preds = %74, %55
%57 = load i32, ptr %10, align 4
%58 = load i16, ptr %7, align 2
%59 = sext i16 %58 to i32
%60 = add nsw i32 %59, 1
%61 = icmp ult i32 %57, %60
br i1 %61, label %62, label %77
62: ; preds = %56
%63 = load i16, ptr %12, align 2
%64 = sext i16 %63 to i32
%65 = sitofp i32 %64 to float
%66 = load i32, ptr %10, align 4
%67 = uitofp i32 %66 to float
%68 = load float, ptr %14, align 4
%69 = call float @llvm.fmuladd.f32(float %67, float %68, float %65)
%70 = load ptr, ptr %15, align 8
%71 = load i32, ptr %10, align 4
%72 = zext i32 %71 to i64
%73 = getelementptr inbounds float, ptr %70, i64 %72
store float %69, ptr %73, align 4
br label %74
74: ; preds = %62
%75 = load i32, ptr %10, align 4
%76 = add i32 %75, 1
store i32 %76, ptr %10, align 4
br label %56, !llvm.loop !6
77: ; preds = %56
store i32 0, ptr %9, align 4
br label %78
78: ; preds = %165, %77
%79 = load i32, ptr %9, align 4
%80 = load i32, ptr %6, align 4
%81 = icmp ult i32 %79, %80
br i1 %81, label %82, label %168
82: ; preds = %78
store i32 0, ptr %10, align 4
br label %83
83: ; preds = %161, %82
%84 = load i32, ptr %10, align 4
%85 = load i16, ptr %7, align 2
%86 = sext i16 %85 to i32
%87 = icmp ult i32 %84, %86
br i1 %87, label %88, label %164
88: ; preds = %83
%89 = load ptr, ptr %15, align 8
%90 = load i32, ptr %10, align 4
%91 = zext i32 %90 to i64
%92 = getelementptr inbounds float, ptr %89, i64 %91
%93 = load float, ptr %92, align 4
%94 = load ptr, ptr %5, align 8
%95 = load i32, ptr %9, align 4
%96 = zext i32 %95 to i64
%97 = getelementptr inbounds i16, ptr %94, i64 %96
%98 = load i16, ptr %97, align 2
%99 = sext i16 %98 to i32
%100 = sitofp i32 %99 to float
%101 = fcmp ole float %93, %100
br i1 %101, label %102, label %131
102: ; preds = %88
%103 = load ptr, ptr %5, align 8
%104 = load i32, ptr %9, align 4
%105 = zext i32 %104 to i64
%106 = getelementptr inbounds i16, ptr %103, i64 %105
%107 = load i16, ptr %106, align 2
%108 = sext i16 %107 to i32
%109 = sitofp i32 %108 to float
%110 = load ptr, ptr %15, align 8
%111 = load i32, ptr %10, align 4
%112 = add i32 %111, 1
%113 = zext i32 %112 to i64
%114 = getelementptr inbounds float, ptr %110, i64 %113
%115 = load float, ptr %114, align 4
%116 = fcmp ole float %109, %115
br i1 %116, label %117, label %131
117: ; preds = %102
%118 = load ptr, ptr %15, align 8
%119 = load i32, ptr %10, align 4
%120 = zext i32 %119 to i64
%121 = getelementptr inbounds float, ptr %118, i64 %120
%122 = load float, ptr %121, align 4
%123 = load float, ptr %14, align 4
%124 = fdiv float %123, 2.000000e+00
%125 = fadd float %122, %124
%126 = fptosi float %125 to i16
%127 = load ptr, ptr %8, align 8
%128 = load i32, ptr %9, align 4
%129 = zext i32 %128 to i64
%130 = getelementptr inbounds i16, ptr %127, i64 %129
store i16 %126, ptr %130, align 2
br label %164
131: ; preds = %102, %88
%132 = load ptr, ptr %15, align 8
%133 = load i32, ptr %10, align 4
%134 = add i32 %133, 1
%135 = zext i32 %134 to i64
%136 = getelementptr inbounds float, ptr %132, i64 %135
%137 = load float, ptr %136, align 4
%138 = load ptr, ptr %5, align 8
%139 = load i32, ptr %9, align 4
%140 = zext i32 %139 to i64
%141 = getelementptr inbounds i16, ptr %138, i64 %140
%142 = load i16, ptr %141, align 2
%143 = sext i16 %142 to i32
%144 = sitofp i32 %143 to float
%145 = fcmp ole float %137, %144
br i1 %145, label %146, label %160
146: ; preds = %131
%147 = load ptr, ptr %15, align 8
%148 = load i32, ptr %10, align 4
%149 = zext i32 %148 to i64
%150 = getelementptr inbounds float, ptr %147, i64 %149
%151 = load float, ptr %150, align 4
%152 = load float, ptr %14, align 4
%153 = fdiv float %152, 2.000000e+00
%154 = fadd float %151, %153
%155 = fptosi float %154 to i16
%156 = load ptr, ptr %8, align 8
%157 = load i32, ptr %9, align 4
%158 = zext i32 %157 to i64
%159 = getelementptr inbounds i16, ptr %156, i64 %158
store i16 %155, ptr %159, align 2
br label %160
160: ; preds = %146, %131
br label %161
161: ; preds = %160
%162 = load i32, ptr %10, align 4
%163 = add i32 %162, 1
store i32 %163, ptr %10, align 4
br label %83, !llvm.loop !8
164: ; preds = %117, %83
br label %165
165: ; preds = %164
%166 = load i32, ptr %9, align 4
%167 = add i32 %166, 1
store i32 %167, ptr %9, align 4
br label %78, !llvm.loop !9
168: ; preds = %78
ret void
}
declare signext i16 @min_array(ptr noundef, i32 noundef) #1
declare signext i16 @max_array(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @malloc(i16 noundef signext) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #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 = { "frame-pointer"="all" "no-trapping-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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe2dxg327.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Mlevel should be mutiple of 2...\0A\00", align 1
@.str.1 = private unnamed_addr constant [48 x i8] c"Cannot allocate memory for transLevelArray...!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dlsch_LLR_quant(ptr noundef %0, i32 noundef %1, i16 noundef signext %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i16, align 2
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i16, align 2
%12 = alloca i16, align 2
%13 = alloca i16, align 2
%14 = alloca float, align 4
%15 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i16 %2, ptr %7, align 2
store ptr %3, ptr %8, align 8
%16 = load ptr, ptr %5, align 8
%17 = load i32, ptr %6, align 4
%18 = call signext i16 @min_array(ptr noundef %16, i32 noundef %17)
store i16 %18, ptr %12, align 2
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %6, align 4
%21 = call signext i16 @max_array(ptr noundef %19, i32 noundef %20)
store i16 %21, ptr %11, align 2
%22 = load i16, ptr %11, align 2
%23 = sext i16 %22 to i32
%24 = load i16, ptr %12, align 2
%25 = sext i16 %24 to i32
%26 = sub nsw i32 %23, %25
%27 = trunc i32 %26 to i16
store i16 %27, ptr %13, align 2
%28 = load i16, ptr %13, align 2
%29 = sitofp i16 %28 to float
%30 = load i16, ptr %7, align 2
%31 = sext i16 %30 to i32
%32 = sitofp i32 %31 to float
%33 = fdiv float %29, %32
store float %33, ptr %14, align 4
%34 = load i16, ptr %7, align 2
%35 = sext i16 %34 to i32
%36 = srem i32 %35, 2
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %41
38: ; preds = %4
%39 = call i32 @printf(ptr noundef @.str)
%40 = call i32 @exit(i32 noundef -1) #4
unreachable
41: ; preds = %4
%42 = load i16, ptr %7, align 2
%43 = sext i16 %42 to i32
%44 = add nsw i32 %43, 1
%45 = sext i32 %44 to i64
%46 = mul i64 %45, 4
%47 = trunc i64 %46 to i16
%48 = call i64 @malloc(i16 noundef signext %47)
%49 = inttoptr i64 %48 to ptr
store ptr %49, ptr %15, align 8
%50 = load ptr, ptr %15, align 8
%51 = icmp ne ptr %50, null
br i1 %51, label %55, label %52
52: ; preds = %41
%53 = call i32 @printf(ptr noundef @.str.1)
%54 = call i32 @exit(i32 noundef -1) #4
unreachable
55: ; preds = %41
store i32 0, ptr %10, align 4
%56 = load i32, ptr %10, align 4
%57 = load i16, ptr %7, align 2
%58 = sext i16 %57 to i32
%59 = add nsw i32 %58, 1
%60 = icmp ult i32 %56, %59
br i1 %60, label %.lr.ph, label %81
.lr.ph: ; preds = %55
br label %61
61: ; preds = %.lr.ph, %73
%62 = load i16, ptr %12, align 2
%63 = sext i16 %62 to i32
%64 = sitofp i32 %63 to float
%65 = load i32, ptr %10, align 4
%66 = uitofp i32 %65 to float
%67 = load float, ptr %14, align 4
%68 = call float @llvm.fmuladd.f32(float %66, float %67, float %64)
%69 = load ptr, ptr %15, align 8
%70 = load i32, ptr %10, align 4
%71 = zext i32 %70 to i64
%72 = getelementptr inbounds float, ptr %69, i64 %71
store float %68, ptr %72, align 4
br label %73
73: ; preds = %61
%74 = load i32, ptr %10, align 4
%75 = add i32 %74, 1
store i32 %75, ptr %10, align 4
%76 = load i32, ptr %10, align 4
%77 = load i16, ptr %7, align 2
%78 = sext i16 %77 to i32
%79 = add nsw i32 %78, 1
%80 = icmp ult i32 %76, %79
br i1 %80, label %61, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %73
br label %81
81: ; preds = %._crit_edge, %55
store i32 0, ptr %9, align 4
%82 = load i32, ptr %9, align 4
%83 = load i32, ptr %6, align 4
%84 = icmp ult i32 %82, %83
br i1 %84, label %.lr.ph4, label %177
.lr.ph4: ; preds = %81
br label %85
85: ; preds = %.lr.ph4, %171
store i32 0, ptr %10, align 4
%86 = load i32, ptr %10, align 4
%87 = load i16, ptr %7, align 2
%88 = sext i16 %87 to i32
%89 = icmp ult i32 %86, %88
br i1 %89, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %85
br label %90
90: ; preds = %.lr.ph2, %163
%91 = load ptr, ptr %15, align 8
%92 = load i32, ptr %10, align 4
%93 = zext i32 %92 to i64
%94 = getelementptr inbounds float, ptr %91, i64 %93
%95 = load float, ptr %94, align 4
%96 = load ptr, ptr %5, align 8
%97 = load i32, ptr %9, align 4
%98 = zext i32 %97 to i64
%99 = getelementptr inbounds i16, ptr %96, i64 %98
%100 = load i16, ptr %99, align 2
%101 = sext i16 %100 to i32
%102 = sitofp i32 %101 to float
%103 = fcmp ole float %95, %102
br i1 %103, label %104, label %133
104: ; preds = %90
%105 = load ptr, ptr %5, align 8
%106 = load i32, ptr %9, align 4
%107 = zext i32 %106 to i64
%108 = getelementptr inbounds i16, ptr %105, i64 %107
%109 = load i16, ptr %108, align 2
%110 = sext i16 %109 to i32
%111 = sitofp i32 %110 to float
%112 = load ptr, ptr %15, align 8
%113 = load i32, ptr %10, align 4
%114 = add i32 %113, 1
%115 = zext i32 %114 to i64
%116 = getelementptr inbounds float, ptr %112, i64 %115
%117 = load float, ptr %116, align 4
%118 = fcmp ole float %111, %117
br i1 %118, label %119, label %133
119: ; preds = %104
%120 = load ptr, ptr %15, align 8
%121 = load i32, ptr %10, align 4
%122 = zext i32 %121 to i64
%123 = getelementptr inbounds float, ptr %120, i64 %122
%124 = load float, ptr %123, align 4
%125 = load float, ptr %14, align 4
%126 = fdiv float %125, 2.000000e+00
%127 = fadd float %124, %126
%128 = fptosi float %127 to i16
%129 = load ptr, ptr %8, align 8
%130 = load i32, ptr %9, align 4
%131 = zext i32 %130 to i64
%132 = getelementptr inbounds i16, ptr %129, i64 %131
store i16 %128, ptr %132, align 2
br label %170
133: ; preds = %104, %90
%134 = load ptr, ptr %15, align 8
%135 = load i32, ptr %10, align 4
%136 = add i32 %135, 1
%137 = zext i32 %136 to i64
%138 = getelementptr inbounds float, ptr %134, i64 %137
%139 = load float, ptr %138, align 4
%140 = load ptr, ptr %5, align 8
%141 = load i32, ptr %9, align 4
%142 = zext i32 %141 to i64
%143 = getelementptr inbounds i16, ptr %140, i64 %142
%144 = load i16, ptr %143, align 2
%145 = sext i16 %144 to i32
%146 = sitofp i32 %145 to float
%147 = fcmp ole float %139, %146
br i1 %147, label %148, label %162
148: ; preds = %133
%149 = load ptr, ptr %15, align 8
%150 = load i32, ptr %10, align 4
%151 = zext i32 %150 to i64
%152 = getelementptr inbounds float, ptr %149, i64 %151
%153 = load float, ptr %152, align 4
%154 = load float, ptr %14, align 4
%155 = fdiv float %154, 2.000000e+00
%156 = fadd float %153, %155
%157 = fptosi float %156 to i16
%158 = load ptr, ptr %8, align 8
%159 = load i32, ptr %9, align 4
%160 = zext i32 %159 to i64
%161 = getelementptr inbounds i16, ptr %158, i64 %160
store i16 %157, ptr %161, align 2
br label %162
162: ; preds = %148, %133
br label %163
163: ; preds = %162
%164 = load i32, ptr %10, align 4
%165 = add i32 %164, 1
store i32 %165, ptr %10, align 4
%166 = load i32, ptr %10, align 4
%167 = load i16, ptr %7, align 2
%168 = sext i16 %167 to i32
%169 = icmp ult i32 %166, %168
br i1 %169, label %90, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %163
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %85
br label %170
170: ; preds = %.loopexit, %119
br label %171
171: ; preds = %170
%172 = load i32, ptr %9, align 4
%173 = add i32 %172, 1
store i32 %173, ptr %9, align 4
%174 = load i32, ptr %9, align 4
%175 = load i32, ptr %6, align 4
%176 = icmp ult i32 %174, %175
br i1 %176, label %85, label %._crit_edge5, !llvm.loop !9
._crit_edge5: ; preds = %171
br label %177
177: ; preds = %._crit_edge5, %81
ret void
}
declare signext i16 @min_array(ptr noundef, i32 noundef) #1
declare signext i16 @max_array(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @malloc(i16 noundef signext) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #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 = { "frame-pointer"="all" "no-trapping-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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpixvh1h9k.c'
source_filename = "/tmp/tmpixvh1h9k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wep_keygen40(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
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %8
8: ; preds = %29, %2
%9 = load ptr, ptr %3, align 8
%10 = load i32, ptr %6, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %9, i64 %11
%13 = load i8, ptr %12, align 1
%14 = icmp ne i8 %13, 0
br i1 %14, label %15, label %32
15: ; preds = %8
%16 = load i32, ptr %6, align 4
%17 = and i32 %16, 3
store i32 %17, ptr %7, align 4
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %6, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = load i32, ptr %7, align 4
%25 = mul nsw i32 %24, 8
%26 = shl i32 %23, %25
%27 = load i32, ptr %5, align 4
%28 = xor i32 %27, %26
store i32 %28, ptr %5, align 4
br label %29
29: ; preds = %15
%30 = load i32, ptr %6, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %6, align 4
br label %8, !llvm.loop !6
32: ; preds = %8
%33 = load i32, ptr %5, align 4
%34 = load ptr, ptr %4, align 8
%35 = call i32 @wep_seedkeygen(i32 noundef %33, ptr noundef %34)
ret void
}
declare i32 @wep_seedkeygen(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpixvh1h9k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wep_keygen40(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
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%8 = load ptr, ptr %3, align 8
%9 = load i32, ptr %6, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i8, ptr %8, i64 %10
%12 = load i8, ptr %11, align 1
%13 = icmp ne i8 %12, 0
br i1 %13, label %.lr.ph, label %37
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %28
%15 = load i32, ptr %6, align 4
%16 = and i32 %15, 3
store i32 %16, ptr %7, align 4
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %6, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = load i32, ptr %7, align 4
%24 = mul nsw i32 %23, 8
%25 = shl i32 %22, %24
%26 = load i32, ptr %5, align 4
%27 = xor i32 %26, %25
store i32 %27, ptr %5, align 4
br label %28
28: ; preds = %14
%29 = load i32, ptr %6, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %6, align 4
%31 = load ptr, ptr %3, align 8
%32 = load i32, ptr %6, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, i64 %33
%35 = load i8, ptr %34, align 1
%36 = icmp ne i8 %35, 0
br i1 %36, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %37
37: ; preds = %._crit_edge, %2
%38 = load i32, ptr %5, align 4
%39 = load ptr, ptr %4, align 8
%40 = call i32 @wep_seedkeygen(i32 noundef %38, ptr noundef %39)
ret void
}
declare i32 @wep_seedkeygen(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp0_frtpsu.c'
source_filename = "/tmp/tmp0_frtpsu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @matrix_sum(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%11 = load ptr, ptr %5, align 8
%12 = load i32, ptr %7, align 4
%13 = sext i32 %12 to i64
%14 = mul i64 %13, 8
%15 = trunc i64 %14 to i32
%16 = call i32 @memset(ptr noundef %11, i32 noundef 0, i32 noundef %15)
store i32 0, ptr %9, align 4
br label %17
17: ; preds = %46, %4
%18 = load i32, ptr %9, align 4
%19 = load i32, ptr %7, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %49
21: ; preds = %17
store i32 0, ptr %10, align 4
br label %22
22: ; preds = %42, %21
%23 = load i32, ptr %10, align 4
%24 = load i32, ptr %8, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %45
26: ; preds = %22
%27 = load ptr, ptr %6, align 8
%28 = load i32, ptr %9, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds ptr, ptr %27, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = load i32, ptr %10, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds double, ptr %31, i64 %33
%35 = load double, ptr %34, align 8
%36 = load ptr, ptr %5, align 8
%37 = load i32, ptr %10, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds double, ptr %36, i64 %38
%40 = load double, ptr %39, align 8
%41 = fadd double %40, %35
store double %41, ptr %39, align 8
br label %42
42: ; preds = %26
%43 = load i32, ptr %10, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %10, align 4
br label %22, !llvm.loop !6
45: ; preds = %22
br label %46
46: ; preds = %45
%47 = load i32, ptr %9, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %9, align 4
br label %17, !llvm.loop !8
49: ; preds = %17
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp0_frtpsu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @matrix_sum(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%11 = load ptr, ptr %5, align 8
%12 = load i32, ptr %7, align 4
%13 = sext i32 %12 to i64
%14 = mul i64 %13, 8
%15 = trunc i64 %14 to i32
%16 = call i32 @memset(ptr noundef %11, i32 noundef 0, i32 noundef %15)
store i32 0, ptr %9, align 4
%17 = load i32, ptr %9, align 4
%18 = load i32, ptr %7, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %.lr.ph2, label %53
.lr.ph2: ; preds = %4
br label %20
20: ; preds = %.lr.ph2, %47
store i32 0, ptr %10, align 4
%21 = load i32, ptr %10, align 4
%22 = load i32, ptr %8, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %.lr.ph, label %46
.lr.ph: ; preds = %20
br label %24
24: ; preds = %.lr.ph, %40
%25 = load ptr, ptr %6, align 8
%26 = load i32, ptr %9, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds ptr, ptr %25, i64 %27
%29 = load ptr, ptr %28, align 8
%30 = load i32, ptr %10, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds double, ptr %29, i64 %31
%33 = load double, ptr %32, align 8
%34 = load ptr, ptr %5, align 8
%35 = load i32, ptr %10, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds double, ptr %34, i64 %36
%38 = load double, ptr %37, align 8
%39 = fadd double %38, %33
store double %39, ptr %37, align 8
br label %40
40: ; preds = %24
%41 = load i32, ptr %10, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %10, align 4
%43 = load i32, ptr %10, align 4
%44 = load i32, ptr %8, align 4
%45 = icmp slt i32 %43, %44
br i1 %45, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %40
br label %46
46: ; preds = %._crit_edge, %20
br label %47
47: ; preds = %46
%48 = load i32, ptr %9, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %9, align 4
%50 = load i32, ptr %9, align 4
%51 = load i32, ptr %7, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %20, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %47
br label %53
53: ; preds = %._crit_edge3, %4
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpc0cal735.c'
source_filename = "/tmp/tmpc0cal735.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"\0A\0A\0DTerminal Commands List:\0A\0D\00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"h: print this Help screen.\0A\0D\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"RC: Read the Clock\0A\0D\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"CC: Clear the CLock\0A\0D\00", align 1
@.str.4 = private unnamed_addr constant [28 x i8] c"JM: print Maximum Jitter\0A\0D\00", align 1
@.str.5 = private unnamed_addr constant [30 x i8] c"JH: print Jitter Histogram\0A\0D\00", align 1
@.str.6 = private unnamed_addr constant [32 x i8] c"OS: print Os Statistics data\0A\0D\00", align 1
@.str.7 = private unnamed_addr constant [29 x i8] c"OP: print Os Profile data\0A\0D\00", align 1
@.str.8 = private unnamed_addr constant [29 x i8] c"OPC: Clear Os Profile data\0A\0D\00", align 1
@.str.9 = private unnamed_addr constant [22 x i8] c"ML: set Motor Left\0A\0D\00", align 1
@.str.10 = private unnamed_addr constant [23 x i8] c"MR: set Motor Right\0A\0D\00", align 1
@.str.11 = private unnamed_addr constant [12 x i8] c"q: Quit\0A\0D\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @term_help() #0 {
%1 = call i32 @UART_OutString(ptr noundef @.str)
%2 = call i32 @UART_OutString(ptr noundef @.str.1)
%3 = call i32 @UART_OutString(ptr noundef @.str.2)
%4 = call i32 @UART_OutString(ptr noundef @.str.3)
%5 = call i32 @UART_OutString(ptr noundef @.str.4)
%6 = call i32 @UART_OutString(ptr noundef @.str.5)
%7 = call i32 @UART_OutString(ptr noundef @.str.6)
%8 = call i32 @UART_OutString(ptr noundef @.str.7)
%9 = call i32 @UART_OutString(ptr noundef @.str.8)
%10 = call i32 @UART_OutString(ptr noundef @.str.9)
%11 = call i32 @UART_OutString(ptr noundef @.str.10)
%12 = call i32 @UART_OutString(ptr noundef @.str.11)
ret void
}
declare i32 @UART_OutString(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc0cal735.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"\0A\0A\0DTerminal Commands List:\0A\0D\00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"h: print this Help screen.\0A\0D\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"RC: Read the Clock\0A\0D\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"CC: Clear the CLock\0A\0D\00", align 1
@.str.4 = private unnamed_addr constant [28 x i8] c"JM: print Maximum Jitter\0A\0D\00", align 1
@.str.5 = private unnamed_addr constant [30 x i8] c"JH: print Jitter Histogram\0A\0D\00", align 1
@.str.6 = private unnamed_addr constant [32 x i8] c"OS: print Os Statistics data\0A\0D\00", align 1
@.str.7 = private unnamed_addr constant [29 x i8] c"OP: print Os Profile data\0A\0D\00", align 1
@.str.8 = private unnamed_addr constant [29 x i8] c"OPC: Clear Os Profile data\0A\0D\00", align 1
@.str.9 = private unnamed_addr constant [22 x i8] c"ML: set Motor Left\0A\0D\00", align 1
@.str.10 = private unnamed_addr constant [23 x i8] c"MR: set Motor Right\0A\0D\00", align 1
@.str.11 = private unnamed_addr constant [12 x i8] c"q: Quit\0A\0D\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @term_help() #0 {
%1 = call i32 @UART_OutString(ptr noundef @.str)
%2 = call i32 @UART_OutString(ptr noundef @.str.1)
%3 = call i32 @UART_OutString(ptr noundef @.str.2)
%4 = call i32 @UART_OutString(ptr noundef @.str.3)
%5 = call i32 @UART_OutString(ptr noundef @.str.4)
%6 = call i32 @UART_OutString(ptr noundef @.str.5)
%7 = call i32 @UART_OutString(ptr noundef @.str.6)
%8 = call i32 @UART_OutString(ptr noundef @.str.7)
%9 = call i32 @UART_OutString(ptr noundef @.str.8)
%10 = call i32 @UART_OutString(ptr noundef @.str.9)
%11 = call i32 @UART_OutString(ptr noundef @.str.10)
%12 = call i32 @UART_OutString(ptr noundef @.str.11)
ret void
}
declare i32 @UART_OutString(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvhqju1qy.c'
source_filename = "/tmp/tmpvhqju1qy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 i64, align 8
%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
store ptr %0, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = getelementptr inbounds i8, ptr %8, i64 1
store ptr %9, ptr %4, align 8
br label %10
10: ; preds = %27, %1
%11 = load ptr, ptr %3, align 8
%12 = ptrtoint ptr %11 to i32
%13 = and i32 %12, 3
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %28
15: ; preds = %10
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds i8, ptr %16, i32 1
store ptr %17, ptr %3, align 8
%18 = load i8, ptr %16, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %27
21: ; preds = %15
%22 = load ptr, ptr %3, align 8
%23 = load ptr, ptr %4, align 8
%24 = ptrtoint ptr %22 to i64
%25 = ptrtoint ptr %23 to i64
%26 = sub i64 %24, %25
store i64 %26, ptr %2, align 8
br label %79
27: ; preds = %15
br label %10, !llvm.loop !6
28: ; preds = %10
store i32 16843009, ptr %6, align 4
%29 = load i32, ptr %6, align 4
%30 = shl i32 %29, 7
store i32 %30, ptr %7, align 4
br label %31
31: ; preds = %44, %28
%32 = load ptr, ptr %3, align 8
%33 = load i32, ptr %32, align 4
store i32 %33, ptr %5, align 4
%34 = load i32, ptr %5, align 4
%35 = load i32, ptr %6, align 4
%36 = sub nsw i32 %34, %35
%37 = load i32, ptr %5, align 4
%38 = xor i32 %37, -1
%39 = and i32 %36, %38
%40 = load i32, ptr %7, align 4
%41 = and i32 %39, %40
%42 = icmp ne i32 %41, 0
%43 = xor i1 %42, true
br i1 %43, label %44, label %47
44: ; preds = %31
%45 = load ptr, ptr %3, align 8
%46 = getelementptr inbounds i8, ptr %45, i64 4
store ptr %46, ptr %3, align 8
br label %31, !llvm.loop !8
47: ; preds = %31
%48 = load i32, ptr %5, align 4
%49 = and i32 %48, -16777216
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %70
51: ; preds = %47
%52 = load i32, ptr %5, align 4
%53 = and i32 %52, 16711680
%54 = icmp ne i32 %53, 0
br i1 %54, label %55, label %66
55: ; preds = %51
%56 = load i32, ptr %5, align 4
%57 = and i32 %56, 65280
%58 = icmp ne i32 %57, 0
br i1 %58, label %59, label %62
59: ; preds = %55
%60 = load ptr, ptr %3, align 8
%61 = getelementptr inbounds i8, ptr %60, i64 4
store ptr %61, ptr %3, align 8
br label %65
62: ; preds = %55
%63 = load ptr, ptr %3, align 8
%64 = getelementptr inbounds i8, ptr %63, i64 3
store ptr %64, ptr %3, align 8
br label %65
65: ; preds = %62, %59
br label %69
66: ; preds = %51
%67 = load ptr, ptr %3, align 8
%68 = getelementptr inbounds i8, ptr %67, i64 2
store ptr %68, ptr %3, align 8
br label %69
69: ; preds = %66, %65
br label %73
70: ; preds = %47
%71 = load ptr, ptr %3, align 8
%72 = getelementptr inbounds i8, ptr %71, i64 1
store ptr %72, ptr %3, align 8
br label %73
73: ; preds = %70, %69
%74 = load ptr, ptr %3, align 8
%75 = load ptr, ptr %4, align 8
%76 = ptrtoint ptr %74 to i64
%77 = ptrtoint ptr %75 to i64
%78 = sub i64 %76, %77
store i64 %78, ptr %2, align 8
br label %79
79: ; preds = %73, %21
%80 = load i64, ptr %2, align 8
ret i64 %80
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpvhqju1qy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 i64, align 8
%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
store ptr %0, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = getelementptr inbounds i8, ptr %8, i64 1
store ptr %9, ptr %4, align 8
%10 = load ptr, ptr %3, align 8
%11 = ptrtoint ptr %10 to i32
%12 = and i32 %11, 3
%13 = icmp ne i32 %12, 0
br i1 %13, label %.lr.ph, label %31
.lr.ph: ; preds = %1
br label %19
14: ; preds = %19
%15 = load ptr, ptr %3, align 8
%16 = ptrtoint ptr %15 to i32
%17 = and i32 %16, 3
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %._crit_edge, !llvm.loop !6
19: ; preds = %.lr.ph, %14
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds i8, ptr %20, i32 1
store ptr %21, ptr %3, align 8
%22 = load i8, ptr %20, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %14
25: ; preds = %19
%26 = load ptr, ptr %3, align 8
%27 = load ptr, ptr %4, align 8
%28 = ptrtoint ptr %26 to i64
%29 = ptrtoint ptr %27 to i64
%30 = sub i64 %28, %29
store i64 %30, ptr %2, align 8
br label %93
._crit_edge: ; preds = %14
br label %31
31: ; preds = %._crit_edge, %1
store i32 16843009, ptr %6, align 4
%32 = load i32, ptr %6, align 4
%33 = shl i32 %32, 7
store i32 %33, ptr %7, align 4
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %34, align 4
store i32 %35, ptr %5, align 4
%36 = load i32, ptr %5, align 4
%37 = load i32, ptr %6, align 4
%38 = sub nsw i32 %36, %37
%39 = load i32, ptr %5, align 4
%40 = xor i32 %39, -1
%41 = and i32 %38, %40
%42 = load i32, ptr %7, align 4
%43 = and i32 %41, %42
%44 = icmp ne i32 %43, 0
%45 = xor i1 %44, true
br i1 %45, label %.lr.ph2, label %61
.lr.ph2: ; preds = %31
br label %46
46: ; preds = %.lr.ph2, %46
%47 = load ptr, ptr %3, align 8
%48 = getelementptr inbounds i8, ptr %47, i64 4
store ptr %48, ptr %3, align 8
%49 = load ptr, ptr %3, align 8
%50 = load i32, ptr %49, align 4
store i32 %50, ptr %5, align 4
%51 = load i32, ptr %5, align 4
%52 = load i32, ptr %6, align 4
%53 = sub nsw i32 %51, %52
%54 = load i32, ptr %5, align 4
%55 = xor i32 %54, -1
%56 = and i32 %53, %55
%57 = load i32, ptr %7, align 4
%58 = and i32 %56, %57
%59 = icmp ne i32 %58, 0
%60 = xor i1 %59, true
br i1 %60, label %46, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %46
br label %61
61: ; preds = %._crit_edge3, %31
%62 = load i32, ptr %5, align 4
%63 = and i32 %62, -16777216
%64 = icmp ne i32 %63, 0
br i1 %64, label %65, label %84
65: ; preds = %61
%66 = load i32, ptr %5, align 4
%67 = and i32 %66, 16711680
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %80
69: ; preds = %65
%70 = load i32, ptr %5, align 4
%71 = and i32 %70, 65280
%72 = icmp ne i32 %71, 0
br i1 %72, label %73, label %76
73: ; preds = %69
%74 = load ptr, ptr %3, align 8
%75 = getelementptr inbounds i8, ptr %74, i64 4
store ptr %75, ptr %3, align 8
br label %79
76: ; preds = %69
%77 = load ptr, ptr %3, align 8
%78 = getelementptr inbounds i8, ptr %77, i64 3
store ptr %78, ptr %3, align 8
br label %79
79: ; preds = %76, %73
br label %83
80: ; preds = %65
%81 = load ptr, ptr %3, align 8
%82 = getelementptr inbounds i8, ptr %81, i64 2
store ptr %82, ptr %3, align 8
br label %83
83: ; preds = %80, %79
br label %87
84: ; preds = %61
%85 = load ptr, ptr %3, align 8
%86 = getelementptr inbounds i8, ptr %85, i64 1
store ptr %86, ptr %3, align 8
br label %87
87: ; preds = %84, %83
%88 = load ptr, ptr %3, align 8
%89 = load ptr, ptr %4, align 8
%90 = ptrtoint ptr %88 to i64
%91 = ptrtoint ptr %89 to i64
%92 = sub i64 %90, %91
store i64 %92, ptr %2, align 8
br label %93
93: ; preds = %87, %25
%94 = load i64, ptr %2, align 8
ret i64 %94
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpptsge7pr.c'
source_filename = "/tmp/tmpptsge7pr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Catena_Keyed_Hashing(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9, ptr noundef %10, i32 noundef %11, ptr noundef %12) #0 {
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca ptr, align 8
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca ptr, align 8
%25 = alloca i32, align 4
%26 = alloca ptr, align 8
%27 = alloca [64 x i32], align 16
%28 = alloca i32, align 4
%29 = alloca i32, align 4
store ptr %0, ptr %14, align 8
store i32 %1, ptr %15, align 4
store ptr %2, ptr %16, align 8
store i32 %3, ptr %17, align 4
store ptr %4, ptr %18, align 8
store i32 %5, ptr %19, align 4
store i32 %6, ptr %20, align 4
store i32 %7, ptr %21, align 4
store i32 %8, ptr %22, align 4
store i32 %9, ptr %23, align 4
store ptr %10, ptr %24, align 8
store i32 %11, ptr %25, align 4
store ptr %12, ptr %26, align 8
%30 = load i32, ptr %25, align 4
store i32 %30, ptr %28, align 4
%31 = load ptr, ptr %14, align 8
%32 = load i32, ptr %15, align 4
%33 = load ptr, ptr %16, align 8
%34 = load i32, ptr %17, align 4
%35 = load ptr, ptr %18, align 8
%36 = load i32, ptr %19, align 4
%37 = load i32, ptr %20, align 4
%38 = load i32, ptr %21, align 4
%39 = load i32, ptr %22, align 4
%40 = load i32, ptr %23, align 4
%41 = load ptr, ptr %26, align 8
%42 = call i32 @__Catena(ptr noundef %31, i32 noundef %32, ptr noundef %33, i32 noundef %34, ptr noundef %35, i32 noundef %36, i32 noundef %37, i32 noundef %38, i32 noundef %39, i32 noundef %40, i32 noundef 0, i32 noundef 0, ptr noundef %41)
%43 = load ptr, ptr %24, align 8
%44 = load ptr, ptr %24, align 8
%45 = getelementptr inbounds [64 x i32], ptr %27, i64 0, i64 0
%46 = call i32 @__Hash4(ptr noundef %43, i32 noundef 16, ptr noundef %28, i32 noundef 8, ptr noundef %22, i32 noundef 4, ptr noundef %44, i32 noundef 16, ptr noundef %45)
store i32 0, ptr %29, align 4
br label %47
47: ; preds = %62, %13
%48 = load i32, ptr %29, align 4
%49 = load i32, ptr %23, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %51, label %65
51: ; preds = %47
%52 = load i32, ptr %29, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [64 x i32], ptr %27, i64 0, i64 %53
%55 = load i32, ptr %54, align 4
%56 = load ptr, ptr %26, align 8
%57 = load i32, ptr %29, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i32, ptr %56, i64 %58
%60 = load i32, ptr %59, align 4
%61 = xor i32 %60, %55
store i32 %61, ptr %59, align 4
br label %62
62: ; preds = %51
%63 = load i32, ptr %29, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %29, align 4
br label %47, !llvm.loop !6
65: ; preds = %47
ret void
}
declare i32 @__Catena(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @__Hash4(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpptsge7pr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Catena_Keyed_Hashing(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9, ptr noundef %10, i32 noundef %11, ptr noundef %12) #0 {
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca ptr, align 8
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca ptr, align 8
%25 = alloca i32, align 4
%26 = alloca ptr, align 8
%27 = alloca [64 x i32], align 16
%28 = alloca i32, align 4
%29 = alloca i32, align 4
store ptr %0, ptr %14, align 8
store i32 %1, ptr %15, align 4
store ptr %2, ptr %16, align 8
store i32 %3, ptr %17, align 4
store ptr %4, ptr %18, align 8
store i32 %5, ptr %19, align 4
store i32 %6, ptr %20, align 4
store i32 %7, ptr %21, align 4
store i32 %8, ptr %22, align 4
store i32 %9, ptr %23, align 4
store ptr %10, ptr %24, align 8
store i32 %11, ptr %25, align 4
store ptr %12, ptr %26, align 8
%30 = load i32, ptr %25, align 4
store i32 %30, ptr %28, align 4
%31 = load ptr, ptr %14, align 8
%32 = load i32, ptr %15, align 4
%33 = load ptr, ptr %16, align 8
%34 = load i32, ptr %17, align 4
%35 = load ptr, ptr %18, align 8
%36 = load i32, ptr %19, align 4
%37 = load i32, ptr %20, align 4
%38 = load i32, ptr %21, align 4
%39 = load i32, ptr %22, align 4
%40 = load i32, ptr %23, align 4
%41 = load ptr, ptr %26, align 8
%42 = call i32 @__Catena(ptr noundef %31, i32 noundef %32, ptr noundef %33, i32 noundef %34, ptr noundef %35, i32 noundef %36, i32 noundef %37, i32 noundef %38, i32 noundef %39, i32 noundef %40, i32 noundef 0, i32 noundef 0, ptr noundef %41)
%43 = load ptr, ptr %24, align 8
%44 = load ptr, ptr %24, align 8
%45 = getelementptr inbounds [64 x i32], ptr %27, i64 0, i64 0
%46 = call i32 @__Hash4(ptr noundef %43, i32 noundef 16, ptr noundef %28, i32 noundef 8, ptr noundef %22, i32 noundef 4, ptr noundef %44, i32 noundef 16, ptr noundef %45)
store i32 0, ptr %29, align 4
%47 = load i32, ptr %29, align 4
%48 = load i32, ptr %23, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %.lr.ph, label %67
.lr.ph: ; preds = %13
br label %50
50: ; preds = %.lr.ph, %61
%51 = load i32, ptr %29, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [64 x i32], ptr %27, i64 0, i64 %52
%54 = load i32, ptr %53, align 4
%55 = load ptr, ptr %26, align 8
%56 = load i32, ptr %29, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, ptr %55, i64 %57
%59 = load i32, ptr %58, align 4
%60 = xor i32 %59, %54
store i32 %60, ptr %58, align 4
br label %61
61: ; preds = %50
%62 = load i32, ptr %29, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %29, align 4
%64 = load i32, ptr %29, align 4
%65 = load i32, ptr %23, align 4
%66 = icmp slt i32 %64, %65
br i1 %66, label %50, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %61
br label %67
67: ; preds = %._crit_edge, %13
ret void
}
declare i32 @__Catena(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @__Hash4(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpbdj1smtf.c'
source_filename = "/tmp/tmpbdj1smtf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%lu\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1 x i64], align 8
%7 = alloca [1 x i64], align 8
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
br label %19
19: ; preds = %22, %18
%20 = load i32, ptr %8, align 4
%21 = icmp slt i32 %20, 1
br i1 %21, label %22, label %36
22: ; preds = %19
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %23, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = call i64 @strtoul(ptr noundef %28, i32 noundef 0, i32 noundef 10)
store i64 %29, ptr %9, align 8
%30 = load i64, ptr %9, align 8
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [1 x i64], ptr %6, i64 0, i64 %32
store i64 %30, ptr %33, align 8
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %8, align 4
br label %19, !llvm.loop !6
36: ; preds = %19
%37 = getelementptr inbounds [1 x i64], ptr %6, i64 0, i64 0
%38 = getelementptr inbounds [1 x i64], ptr %7, i64 0, i64 0
%39 = call i32 @RandomFunc(ptr noundef %37, ptr noundef %38)
%40 = getelementptr inbounds [1 x i64], ptr %7, i64 0, i64 0
%41 = load i64, ptr %40, align 8
%42 = icmp eq i64 %41, 31095168
br i1 %42, label %43, label %45
43: ; preds = %36
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %46
45: ; preds = %36
br label %46
46: ; preds = %45, %43
store i32 0, ptr %10, align 4
br label %47
47: ; preds = %50, %46
%48 = load i32, ptr %10, align 4
%49 = icmp slt i32 %48, 1
br i1 %49, label %50, label %58
50: ; preds = %47
%51 = load i32, ptr %10, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [1 x i64], ptr %7, i64 0, i64 %52
%54 = load i64, ptr %53, align 8
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %54)
%56 = load i32, ptr %10, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %10, align 4
br label %47, !llvm.loop !8
58: ; preds = %47
%59 = load i32, ptr %3, align 4
ret i32 %59
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbdj1smtf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%lu\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1 x i64], align 8
%7 = alloca [1 x i64], align 8
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp slt i32 %19, 1
br i1 %20, label %.lr.ph, label %37
.lr.ph: ; preds = %18
br label %21
21: ; preds = %.lr.ph, %21
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %22, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = call i64 @strtoul(ptr noundef %27, i32 noundef 0, i32 noundef 10)
store i64 %28, ptr %9, align 8
%29 = load i64, ptr %9, align 8
%30 = load i32, ptr %8, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [1 x i64], ptr %6, i64 0, i64 %31
store i64 %29, ptr %32, align 8
%33 = load i32, ptr %8, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %8, align 4
%35 = load i32, ptr %8, align 4
%36 = icmp slt i32 %35, 1
br i1 %36, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %37
37: ; preds = %._crit_edge, %18
%38 = getelementptr inbounds [1 x i64], ptr %6, i64 0, i64 0
%39 = getelementptr inbounds [1 x i64], ptr %7, i64 0, i64 0
%40 = call i32 @RandomFunc(ptr noundef %38, ptr noundef %39)
%41 = getelementptr inbounds [1 x i64], ptr %7, i64 0, i64 0
%42 = load i64, ptr %41, align 8
%43 = icmp eq i64 %42, 31095168
br i1 %43, label %44, label %46
44: ; preds = %37
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %47
46: ; preds = %37
br label %47
47: ; preds = %46, %44
store i32 0, ptr %10, align 4
%48 = load i32, ptr %10, align 4
%49 = icmp slt i32 %48, 1
br i1 %49, label %.lr.ph2, label %60
.lr.ph2: ; preds = %47
br label %50
50: ; preds = %.lr.ph2, %50
%51 = load i32, ptr %10, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [1 x i64], ptr %7, i64 0, i64 %52
%54 = load i64, ptr %53, align 8
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %54)
%56 = load i32, ptr %10, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %10, align 4
%58 = load i32, ptr %10, align 4
%59 = icmp slt i32 %58, 1
br i1 %59, label %50, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %50
br label %60
60: ; preds = %._crit_edge3, %47
%61 = load i32, ptr %3, align 4
ret i32 %61
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpjy67q8n3.c'
source_filename = "/tmp/tmpjy67q8n3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@RAND_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @randBetween(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = load i32, ptr %3, align 4
%10 = sub nsw i32 %8, %9
%11 = add nsw i32 %10, 1
store i32 %11, ptr %5, align 4
%12 = load i32, ptr @RAND_MAX, align 4
%13 = load i32, ptr %5, align 4
%14 = sdiv i32 %12, %13
store i32 %14, ptr %6, align 4
br label %15
15: ; preds = %17, %2
%16 = call i32 (...) @rand()
store i32 %16, ptr %7, align 4
br label %17
17: ; preds = %15
%18 = load i32, ptr %7, align 4
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %5, align 4
%21 = mul nsw i32 %19, %20
%22 = icmp sge i32 %18, %21
br i1 %22, label %15, label %23, !llvm.loop !6
23: ; preds = %17
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %6, align 4
%26 = sdiv i32 %24, %25
%27 = load i32, ptr %3, align 4
%28 = add nsw i32 %26, %27
ret i32 %28
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjy67q8n3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@RAND_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @randBetween(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = load i32, ptr %3, align 4
%10 = sub nsw i32 %8, %9
%11 = add nsw i32 %10, 1
store i32 %11, ptr %5, align 4
%12 = load i32, ptr @RAND_MAX, align 4
%13 = load i32, ptr %5, align 4
%14 = sdiv i32 %12, %13
store i32 %14, ptr %6, align 4
br label %15
15: ; preds = %17, %2
%16 = call i32 (...) @rand()
store i32 %16, ptr %7, align 4
br label %17
17: ; preds = %15
%18 = load i32, ptr %7, align 4
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %5, align 4
%21 = mul nsw i32 %19, %20
%22 = icmp sge i32 %18, %21
br i1 %22, label %15, label %23, !llvm.loop !6
23: ; preds = %17
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %6, align 4
%26 = sdiv i32 %24, %25
%27 = load i32, ptr %3, align 4
%28 = add nsw i32 %26, %27
ret i32 %28
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpy8wado61.c'
source_filename = "/tmp/tmpy8wado61.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Vertex3dv(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 @glVertex3dv(ptr noundef %3)
ret void
}
declare i32 @glVertex3dv(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy8wado61.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Vertex3dv(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 @glVertex3dv(ptr noundef %3)
ret void
}
declare i32 @glVertex3dv(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpt1k8605_.c'
source_filename = "/tmp/tmpt1k8605_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @glmComputeImpulse3f(ptr noundef %0, ptr noundef %1, float noundef %2, float noundef %3, ptr noundef %4, float noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca ptr, align 8
%12 = alloca float, align 4
%13 = alloca float, align 4
%14 = alloca [3 x float], align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store float %2, ptr %9, align 4
store float %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
store float %5, ptr %12, align 4
%15 = load ptr, ptr %11, align 8
%16 = load ptr, ptr %11, align 8
%17 = call float @glmDotProduct3f(ptr noundef %15, ptr noundef %16)
store float %17, ptr %13, align 4
%18 = load float, ptr %9, align 4
%19 = load float, ptr %10, align 4
%20 = fadd float %18, %19
%21 = load float, ptr %13, align 4
%22 = fmul float %21, %20
store float %22, ptr %13, align 4
%23 = getelementptr inbounds [3 x float], ptr %14, i64 0, i64 0
%24 = load ptr, ptr %7, align 8
%25 = load ptr, ptr %8, align 8
%26 = call i32 @glmMakeVector3f(ptr noundef %23, ptr noundef %24, ptr noundef %25)
%27 = load float, ptr %12, align 4
%28 = fadd float 1.000000e+00, %27
%29 = getelementptr inbounds [3 x float], ptr %14, i64 0, i64 0
%30 = load ptr, ptr %11, align 8
%31 = call float @glmDotProduct3f(ptr noundef %29, ptr noundef %30)
%32 = fmul float %28, %31
%33 = fneg float %32
%34 = load float, ptr %13, align 4
%35 = fdiv float %33, %34
ret float %35
}
declare float @glmDotProduct3f(ptr noundef, ptr noundef) #1
declare i32 @glmMakeVector3f(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/tmpt1k8605_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @glmComputeImpulse3f(ptr noundef %0, ptr noundef %1, float noundef %2, float noundef %3, ptr noundef %4, float noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca ptr, align 8
%12 = alloca float, align 4
%13 = alloca float, align 4
%14 = alloca [3 x float], align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store float %2, ptr %9, align 4
store float %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
store float %5, ptr %12, align 4
%15 = load ptr, ptr %11, align 8
%16 = load ptr, ptr %11, align 8
%17 = call float @glmDotProduct3f(ptr noundef %15, ptr noundef %16)
store float %17, ptr %13, align 4
%18 = load float, ptr %9, align 4
%19 = load float, ptr %10, align 4
%20 = fadd float %18, %19
%21 = load float, ptr %13, align 4
%22 = fmul float %21, %20
store float %22, ptr %13, align 4
%23 = getelementptr inbounds [3 x float], ptr %14, i64 0, i64 0
%24 = load ptr, ptr %7, align 8
%25 = load ptr, ptr %8, align 8
%26 = call i32 @glmMakeVector3f(ptr noundef %23, ptr noundef %24, ptr noundef %25)
%27 = load float, ptr %12, align 4
%28 = fadd float 1.000000e+00, %27
%29 = getelementptr inbounds [3 x float], ptr %14, i64 0, i64 0
%30 = load ptr, ptr %11, align 8
%31 = call float @glmDotProduct3f(ptr noundef %29, ptr noundef %30)
%32 = fmul float %28, %31
%33 = fneg float %32
%34 = load float, ptr %13, align 4
%35 = fdiv float %33, %34
ret float %35
}
declare float @glmDotProduct3f(ptr noundef, ptr noundef) #1
declare i32 @glmMakeVector3f(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/tmpdrdb1szz.c'
source_filename = "/tmp/tmpdrdb1szz.c"
target datalayout = "e-m:e-p270: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.media_device_info = type { ptr, ptr }
@.str = private unnamed_addr constant [30 x i8] c"Usage: %s [-d </dev/mediaX>]\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"d:\00", align 1
@optarg = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [40 x i8] c"Please run the test as root - Exiting.\0A\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [28 x i8] c"Media Device open errno %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@MEDIA_IOC_DEVICE_INFO = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [28 x i8] c"Media Device Info errno %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [33 x i8] c"Media device model %s driver %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [256 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca %struct.media_device_info, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %8, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %12, 2
br i1 %13, label %14, label %20
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 0
%17 = load ptr, ptr %16, align 8
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %17)
%19 = call i32 @exit(i32 noundef -1) #3
unreachable
20: ; preds = %2
br label %21
21: ; preds = %39, %20
%22 = load i32, ptr %4, align 4
%23 = load ptr, ptr %5, align 8
%24 = call i32 @getopt(i32 noundef %22, ptr noundef %23, ptr noundef @.str.1)
store i32 %24, ptr %6, align 4
%25 = icmp ne i32 %24, -1
br i1 %25, label %26, label %40
26: ; preds = %21
%27 = load i32, ptr %6, align 4
switch i32 %27, label %33 [
i32 100, label %28
]
28: ; preds = %26
%29 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%30 = load i32, ptr @optarg, align 4
%31 = call i32 @strncpy(ptr noundef %29, i32 noundef %30, i32 noundef 255)
%32 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 255
store i8 0, ptr %32, align 1
br label %39
33: ; preds = %26
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds ptr, ptr %34, i64 0
%36 = load ptr, ptr %35, align 8
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %36)
%38 = call i32 @exit(i32 noundef -1) #3
unreachable
39: ; preds = %28
br label %21, !llvm.loop !6
40: ; preds = %21
%41 = call i64 (...) @getuid()
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %46
43: ; preds = %40
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%45 = call i32 @exit(i32 noundef -1) #3
unreachable
46: ; preds = %40
%47 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%48 = load i32, ptr @O_RDWR, align 4
%49 = call i32 @open(ptr noundef %47, i32 noundef %48)
store i32 %49, ptr %11, align 4
%50 = load i32, ptr %11, align 4
%51 = icmp eq i32 %50, -1
br i1 %51, label %52, label %57
52: ; preds = %46
%53 = load i32, ptr @errno, align 4
%54 = call ptr @strerror(i32 noundef %53)
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %54)
%56 = call i32 @exit(i32 noundef -1) #3
unreachable
57: ; preds = %46
%58 = load i32, ptr %11, align 4
%59 = load i32, ptr @MEDIA_IOC_DEVICE_INFO, align 4
%60 = call i32 @ioctl(i32 noundef %58, i32 noundef %59, ptr noundef %9)
store i32 %60, ptr %10, align 4
%61 = load i32, ptr %10, align 4
%62 = icmp slt i32 %61, 0
br i1 %62, label %63, label %67
63: ; preds = %57
%64 = load i32, ptr @errno, align 4
%65 = call ptr @strerror(i32 noundef %64)
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %65)
br label %73
67: ; preds = %57
%68 = getelementptr inbounds %struct.media_device_info, ptr %9, i32 0, i32 0
%69 = load ptr, ptr %68, align 8
%70 = getelementptr inbounds %struct.media_device_info, ptr %9, i32 0, i32 1
%71 = load ptr, ptr %70, align 8
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %69, ptr noundef %71)
br label %73
73: ; preds = %67, %63
%74 = load i32, ptr %3, align 4
ret i32 %74
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @strncpy(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @getuid(...) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdrdb1szz.c"
target datalayout = "e-m:e-p270: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.media_device_info = type { ptr, ptr }
@.str = private unnamed_addr constant [30 x i8] c"Usage: %s [-d </dev/mediaX>]\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"d:\00", align 1
@optarg = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [40 x i8] c"Please run the test as root - Exiting.\0A\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [28 x i8] c"Media Device open errno %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@MEDIA_IOC_DEVICE_INFO = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [28 x i8] c"Media Device Info errno %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [33 x i8] c"Media device model %s driver %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [256 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca %struct.media_device_info, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %8, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %12, 2
br i1 %13, label %14, label %20
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 0
%17 = load ptr, ptr %16, align 8
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %17)
%19 = call i32 @exit(i32 noundef -1) #3
unreachable
20: ; preds = %2
%21 = load i32, ptr %4, align 4
%22 = load ptr, ptr %5, align 8
%23 = call i32 @getopt(i32 noundef %21, ptr noundef %22, ptr noundef @.str.1)
store i32 %23, ptr %6, align 4
%24 = icmp ne i32 %23, -1
br i1 %24, label %.lr.ph, label %43
.lr.ph: ; preds = %20
br label %25
25: ; preds = %.lr.ph, %38
%26 = load i32, ptr %6, align 4
switch i32 %26, label %32 [
i32 100, label %27
]
27: ; preds = %25
%28 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%29 = load i32, ptr @optarg, align 4
%30 = call i32 @strncpy(ptr noundef %28, i32 noundef %29, i32 noundef 255)
%31 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 255
store i8 0, ptr %31, align 1
br label %38
32: ; preds = %25
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 0
%35 = load ptr, ptr %34, align 8
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %35)
%37 = call i32 @exit(i32 noundef -1) #3
unreachable
38: ; preds = %27
%39 = load i32, ptr %4, align 4
%40 = load ptr, ptr %5, align 8
%41 = call i32 @getopt(i32 noundef %39, ptr noundef %40, ptr noundef @.str.1)
store i32 %41, ptr %6, align 4
%42 = icmp ne i32 %41, -1
br i1 %42, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %43
43: ; preds = %._crit_edge, %20
%44 = call i64 (...) @getuid()
%45 = icmp ne i64 %44, 0
br i1 %45, label %46, label %49
46: ; preds = %43
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%48 = call i32 @exit(i32 noundef -1) #3
unreachable
49: ; preds = %43
%50 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%51 = load i32, ptr @O_RDWR, align 4
%52 = call i32 @open(ptr noundef %50, i32 noundef %51)
store i32 %52, ptr %11, align 4
%53 = load i32, ptr %11, align 4
%54 = icmp eq i32 %53, -1
br i1 %54, label %55, label %60
55: ; preds = %49
%56 = load i32, ptr @errno, align 4
%57 = call ptr @strerror(i32 noundef %56)
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %57)
%59 = call i32 @exit(i32 noundef -1) #3
unreachable
60: ; preds = %49
%61 = load i32, ptr %11, align 4
%62 = load i32, ptr @MEDIA_IOC_DEVICE_INFO, align 4
%63 = call i32 @ioctl(i32 noundef %61, i32 noundef %62, ptr noundef %9)
store i32 %63, ptr %10, align 4
%64 = load i32, ptr %10, align 4
%65 = icmp slt i32 %64, 0
br i1 %65, label %66, label %70
66: ; preds = %60
%67 = load i32, ptr @errno, align 4
%68 = call ptr @strerror(i32 noundef %67)
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %68)
br label %76
70: ; preds = %60
%71 = getelementptr inbounds %struct.media_device_info, ptr %9, i32 0, i32 0
%72 = load ptr, ptr %71, align 8
%73 = getelementptr inbounds %struct.media_device_info, ptr %9, i32 0, i32 1
%74 = load ptr, ptr %73, align 8
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %72, ptr noundef %74)
br label %76
76: ; preds = %70, %66
%77 = load i32, ptr %3, align 4
ret i32 %77
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @strncpy(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @getuid(...) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp6c540bmf.c'
source_filename = "/tmp/tmp6c540bmf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @display_clear() #0 {
%1 = alloca ptr, align 8
%2 = alloca i32, align 4
%3 = call i64 (...) @sceGeEdramGetAddr()
%4 = trunc i64 %3 to i32
%5 = or i32 1073741824, %4
%6 = zext i32 %5 to i64
%7 = inttoptr i64 %6 to ptr
store ptr %7, ptr %1, align 8
store i32 0, ptr %2, align 4
br label %8
8: ; preds = %14, %0
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %9, 139264
br i1 %10, label %11, label %17
11: ; preds = %8
%12 = load ptr, ptr %1, align 8
%13 = getelementptr inbounds i32, ptr %12, i32 1
store ptr %13, ptr %1, align 8
store i32 16711935, ptr %12, align 4
br label %14
14: ; preds = %11
%15 = load i32, ptr %2, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %2, align 4
br label %8, !llvm.loop !6
17: ; preds = %8
ret void
}
declare i64 @sceGeEdramGetAddr(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp6c540bmf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @display_clear() #0 {
%1 = alloca ptr, align 8
%2 = alloca i32, align 4
%3 = call i64 (...) @sceGeEdramGetAddr()
%4 = trunc i64 %3 to i32
%5 = or i32 1073741824, %4
%6 = zext i32 %5 to i64
%7 = inttoptr i64 %6 to ptr
store ptr %7, ptr %1, align 8
store i32 0, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp slt i32 %8, 139264
br i1 %9, label %.lr.ph, label %18
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %13
%11 = load ptr, ptr %1, align 8
%12 = getelementptr inbounds i32, ptr %11, i32 1
store ptr %12, ptr %1, align 8
store i32 16711935, ptr %11, align 4
br label %13
13: ; preds = %10
%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, 139264
br i1 %17, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %18
18: ; preds = %._crit_edge, %0
ret void
}
declare i64 @sceGeEdramGetAddr(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpu6wmzipm.c'
source_filename = "/tmp/tmpu6wmzipm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"Set error:\09%f\09\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dump_eqm(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str, float noundef %3)
ret void
}
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu6wmzipm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"Set error:\09%f\09\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dump_eqm(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str, float noundef %3)
ret void
}
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp19udrhg_.c'
source_filename = "/tmp/tmp19udrhg_.c"
target datalayout = "e-m:e-p270: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/tmp19udrhg_.c"
target datalayout = "e-m:e-p270: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/tmpt7ql1923.c'
source_filename = "/tmp/tmpt7ql1923.c"
target datalayout = "e-m:e-p270: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/tmpt7ql1923.c"
target datalayout = "e-m:e-p270: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/tmprlo0acid.c'
source_filename = "/tmp/tmprlo0acid.c"
target datalayout = "e-m:e-p270: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/tmprlo0acid.c"
target datalayout = "e-m:e-p270: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/tmpuwxi10tg.c'
source_filename = "/tmp/tmpuwxi10tg.c"
target datalayout = "e-m:e-p270: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.znfile_wchartomb.chart = private unnamed_addr constant [6 x i32] [i32 127, i32 2047, i32 65535, i32 2097151, i32 67108863, i32 2147483647], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @znfile_wchartomb(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca [6 x i32], align 16
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i8, align 1
%8 = alloca i8, align 1
%9 = alloca i32, align 4
store i32 %0, ptr %3, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.znfile_wchartomb.chart, i64 24, i1 false)
%10 = call ptr @malloc(i32 noundef 8)
store ptr %10, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %6, align 4
br label %11
11: ; preds = %23, %1
%12 = load i32, ptr %6, align 4
%13 = icmp slt i32 %12, 6
br i1 %13, label %14, label %26
14: ; preds = %11
%15 = load i32, ptr %6, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [6 x i32], ptr %4, i64 0, i64 %16
%18 = load i32, ptr %17, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp sgt i32 %18, %19
br i1 %20, label %21, label %22
21: ; preds = %14
br label %26
22: ; preds = %14
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 %11, !llvm.loop !6
26: ; preds = %21, %11
%27 = load i32, ptr %6, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %6, align 4
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %6, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
store i8 0, ptr %32, align 1
%33 = load i32, ptr %6, align 4
%34 = icmp eq i32 %33, 1
br i1 %34, label %35, label %41
35: ; preds = %26
%36 = load i32, ptr %3, align 4
%37 = trunc i32 %36 to i8
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds i8, ptr %38, i64 0
store i8 %37, ptr %39, align 1
%40 = load ptr, ptr %5, align 8
store ptr %40, ptr %2, align 8
br label %87
41: ; preds = %26
store i8 0, ptr %7, align 1
store i8 127, ptr %8, align 1
%42 = load i32, ptr %6, align 4
%43 = sub nsw i32 %42, 1
store i32 %43, ptr %9, align 4
br label %44
44: ; preds = %82, %41
%45 = load i32, ptr %9, align 4
%46 = icmp sge i32 %45, 0
br i1 %46, label %47, label %85
47: ; preds = %44
%48 = load i8, ptr %7, align 1
%49 = sext i8 %48 to i32
%50 = ashr i32 %49, 1
%51 = or i32 %50, 128
%52 = trunc i32 %51 to i8
store i8 %52, ptr %7, align 1
%53 = load i8, ptr %8, align 1
%54 = sext i8 %53 to i32
%55 = ashr i32 %54, 1
%56 = trunc i32 %55 to i8
store i8 %56, ptr %8, align 1
%57 = load i32, ptr %9, align 4
%58 = icmp ne i32 %57, 0
br i1 %58, label %59, label %70
59: ; preds = %47
%60 = load i32, ptr %3, align 4
%61 = and i32 %60, 63
%62 = or i32 %61, 128
%63 = trunc i32 %62 to i8
%64 = load ptr, ptr %5, align 8
%65 = load i32, ptr %9, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8, ptr %64, i64 %66
store i8 %63, ptr %67, align 1
%68 = load i32, ptr %3, align 4
%69 = ashr i32 %68, 6
store i32 %69, ptr %3, align 4
br label %81
70: ; preds = %47
%71 = load i8, ptr %7, align 1
%72 = sext i8 %71 to i32
%73 = load i8, ptr %8, align 1
%74 = sext i8 %73 to i32
%75 = load i32, ptr %3, align 4
%76 = and i32 %74, %75
%77 = or i32 %72, %76
%78 = trunc i32 %77 to i8
%79 = load ptr, ptr %5, align 8
%80 = getelementptr inbounds i8, ptr %79, i64 0
store i8 %78, ptr %80, align 1
br label %81
81: ; preds = %70, %59
br label %82
82: ; preds = %81
%83 = load i32, ptr %9, align 4
%84 = add nsw i32 %83, -1
store i32 %84, ptr %9, align 4
br label %44, !llvm.loop !8
85: ; preds = %44
%86 = load ptr, ptr %5, align 8
store ptr %86, ptr %2, align 8
br label %87
87: ; preds = %85, %35
%88 = load ptr, ptr %2, align 8
ret ptr %88
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare ptr @malloc(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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuwxi10tg.c"
target datalayout = "e-m:e-p270: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.znfile_wchartomb.chart = private unnamed_addr constant [6 x i32] [i32 127, i32 2047, i32 65535, i32 2097151, i32 67108863, i32 2147483647], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @znfile_wchartomb(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca [6 x i32], align 16
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i8, align 1
%8 = alloca i8, align 1
%9 = alloca i32, align 4
store i32 %0, ptr %3, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.znfile_wchartomb.chart, i64 24, i1 false)
%10 = call ptr @malloc(i32 noundef 8)
store ptr %10, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp slt i32 %11, 6
br i1 %12, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %1
br label %13
13: ; preds = %.lr.ph, %22
%14 = load i32, ptr %6, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [6 x i32], ptr %4, i64 0, i64 %15
%17 = load i32, ptr %16, align 4
%18 = load i32, ptr %3, align 4
%19 = icmp sgt i32 %17, %18
br i1 %19, label %20, label %21
20: ; preds = %13
br label %27
21: ; preds = %13
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 slt i32 %25, 6
br i1 %26, label %13, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %22
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %1
br label %27
27: ; preds = %.loopexit, %20
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %6, align 4
%30 = load ptr, ptr %5, align 8
%31 = load i32, ptr %6, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %30, i64 %32
store i8 0, ptr %33, align 1
%34 = load i32, ptr %6, align 4
%35 = icmp eq i32 %34, 1
br i1 %35, label %36, label %42
36: ; preds = %27
%37 = load i32, ptr %3, align 4
%38 = trunc i32 %37 to i8
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds i8, ptr %39, i64 0
store i8 %38, ptr %40, align 1
%41 = load ptr, ptr %5, align 8
store ptr %41, ptr %2, align 8
br label %89
42: ; preds = %27
store i8 0, ptr %7, align 1
store i8 127, ptr %8, align 1
%43 = load i32, ptr %6, align 4
%44 = sub nsw i32 %43, 1
store i32 %44, ptr %9, align 4
%45 = load i32, ptr %9, align 4
%46 = icmp sge i32 %45, 0
br i1 %46, label %.lr.ph1, label %87
.lr.ph1: ; preds = %42
br label %47
47: ; preds = %.lr.ph1, %82
%48 = load i8, ptr %7, align 1
%49 = sext i8 %48 to i32
%50 = ashr i32 %49, 1
%51 = or i32 %50, 128
%52 = trunc i32 %51 to i8
store i8 %52, ptr %7, align 1
%53 = load i8, ptr %8, align 1
%54 = sext i8 %53 to i32
%55 = ashr i32 %54, 1
%56 = trunc i32 %55 to i8
store i8 %56, ptr %8, align 1
%57 = load i32, ptr %9, align 4
%58 = icmp ne i32 %57, 0
br i1 %58, label %59, label %70
59: ; preds = %47
%60 = load i32, ptr %3, align 4
%61 = and i32 %60, 63
%62 = or i32 %61, 128
%63 = trunc i32 %62 to i8
%64 = load ptr, ptr %5, align 8
%65 = load i32, ptr %9, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8, ptr %64, i64 %66
store i8 %63, ptr %67, align 1
%68 = load i32, ptr %3, align 4
%69 = ashr i32 %68, 6
store i32 %69, ptr %3, align 4
br label %81
70: ; preds = %47
%71 = load i8, ptr %7, align 1
%72 = sext i8 %71 to i32
%73 = load i8, ptr %8, align 1
%74 = sext i8 %73 to i32
%75 = load i32, ptr %3, align 4
%76 = and i32 %74, %75
%77 = or i32 %72, %76
%78 = trunc i32 %77 to i8
%79 = load ptr, ptr %5, align 8
%80 = getelementptr inbounds i8, ptr %79, i64 0
store i8 %78, ptr %80, align 1
br label %81
81: ; preds = %70, %59
br label %82
82: ; preds = %81
%83 = load i32, ptr %9, align 4
%84 = add nsw i32 %83, -1
store i32 %84, ptr %9, align 4
%85 = load i32, ptr %9, align 4
%86 = icmp sge i32 %85, 0
br i1 %86, label %47, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %82
br label %87
87: ; preds = %._crit_edge, %42
%88 = load ptr, ptr %5, align 8
store ptr %88, ptr %2, align 8
br label %89
89: ; preds = %87, %36
%90 = load ptr, ptr %2, align 8
ret ptr %90
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare ptr @malloc(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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpj55f5jer.c'
source_filename = "/tmp/tmpj55f5jer.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ti_cosh(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%12 = load ptr, ptr %6, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 0
%14 = load ptr, ptr %13, align 8
store ptr %14, ptr %9, align 8
%15 = load ptr, ptr %7, align 8
%16 = load ptr, ptr %8, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 0
%18 = load ptr, ptr %17, align 8
store ptr %18, ptr %10, align 8
store i32 0, ptr %11, align 4
br label %19
19: ; preds = %34, %4
%20 = load i32, ptr %11, align 4
%21 = load i32, ptr %5, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %37
23: ; preds = %19
%24 = load ptr, ptr %9, align 8
%25 = load i32, ptr %11, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds double, ptr %24, i64 %26
%28 = load double, ptr %27, align 8
%29 = call double @cosh(double noundef %28) #2
%30 = load ptr, ptr %10, align 8
%31 = load i32, ptr %11, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds double, ptr %30, i64 %32
store double %29, ptr %33, align 8
br label %34
34: ; preds = %23
%35 = load i32, ptr %11, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %11, align 4
br label %19, !llvm.loop !6
37: ; preds = %19
ret i32 0
}
; Function Attrs: nounwind
declare double @cosh(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj55f5jer.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ti_cosh(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%12 = load ptr, ptr %6, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 0
%14 = load ptr, ptr %13, align 8
store ptr %14, ptr %9, align 8
%15 = load ptr, ptr %7, align 8
%16 = load ptr, ptr %8, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 0
%18 = load ptr, ptr %17, align 8
store ptr %18, ptr %10, align 8
store i32 0, ptr %11, align 4
%19 = load i32, ptr %11, align 4
%20 = load i32, ptr %5, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %.lr.ph, label %39
.lr.ph: ; preds = %4
br label %22
22: ; preds = %.lr.ph, %33
%23 = load ptr, ptr %9, align 8
%24 = load i32, ptr %11, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds double, ptr %23, i64 %25
%27 = load double, ptr %26, align 8
%28 = call double @cosh(double noundef %27) #2
%29 = load ptr, ptr %10, align 8
%30 = load i32, ptr %11, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds double, ptr %29, i64 %31
store double %28, ptr %32, align 8
br label %33
33: ; preds = %22
%34 = load i32, ptr %11, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %11, align 4
%36 = load i32, ptr %11, align 4
%37 = load i32, ptr %5, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %39
39: ; preds = %._crit_edge, %4
ret i32 0
}
; Function Attrs: nounwind
declare double @cosh(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpqbp1678k.c'
source_filename = "/tmp/tmpqbp1678k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @kifs(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %6, align 4
%11 = load ptr, ptr %7, align 8
%12 = load i32, ptr %8, align 4
%13 = call i32 @syscall(i32 noundef 351, ptr noundef %9, i32 noundef %10, ptr noundef %11, i32 noundef %12)
ret i32 %13
}
declare i32 @syscall(i32 noundef, ptr noundef, 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqbp1678k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @kifs(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %6, align 4
%11 = load ptr, ptr %7, align 8
%12 = load i32, ptr %8, align 4
%13 = call i32 @syscall(i32 noundef 351, ptr noundef %9, i32 noundef %10, ptr noundef %11, i32 noundef %12)
ret i32 %13
}
declare i32 @syscall(i32 noundef, ptr noundef, 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"}
|
; ModuleID = '/tmp/tmpzci2fupd.c'
source_filename = "/tmp/tmpzci2fupd.c"
target datalayout = "e-m:e-p270: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/tmpzci2fupd.c"
target datalayout = "e-m:e-p270: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/tmplc0i93bh.c'
source_filename = "/tmp/tmplc0i93bh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fitAngDist_alpha1_3minus_2plus_15097_L1(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca double, align 8
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 = getelementptr inbounds double, ptr %7, i64 0
%9 = call double @funcAngCor_alpha1_3minus_2plus_15097_L1(ptr noundef %6, ptr noundef %8)
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds double, ptr %10, i64 0
%12 = load double, ptr %11, align 8
%13 = fmul double %12, 1.745330e-02
%14 = call double @sin(double noundef %13) #3
%15 = fmul double %9, %14
store double %15, ptr %5, align 8
%16 = load double, ptr %5, align 8
ret double %16
}
declare double @funcAngCor_alpha1_3minus_2plus_15097_L1(ptr noundef, ptr noundef) #1
; Function Attrs: nounwind
declare double @sin(double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplc0i93bh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fitAngDist_alpha1_3minus_2plus_15097_L1(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca double, align 8
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 = getelementptr inbounds double, ptr %7, i64 0
%9 = call double @funcAngCor_alpha1_3minus_2plus_15097_L1(ptr noundef %6, ptr noundef %8)
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds double, ptr %10, i64 0
%12 = load double, ptr %11, align 8
%13 = fmul double %12, 1.745330e-02
%14 = call double @sin(double noundef %13) #3
%15 = fmul double %9, %14
store double %15, ptr %5, align 8
%16 = load double, ptr %5, align 8
ret double %16
}
declare double @funcAngCor_alpha1_3minus_2plus_15097_L1(ptr noundef, ptr noundef) #1
; Function Attrs: nounwind
declare double @sin(double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmvp5ckpe.c'
source_filename = "/tmp/tmpmvp5ckpe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @quickSort(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 %5, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %24
11: ; preds = %3
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %6, align 4
%15 = call i32 @partition(ptr noundef %12, i32 noundef %13, i32 noundef %14)
store i32 %15, ptr %7, align 4
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %7, align 4
%19 = sub nsw i32 %18, 1
call void @quickSort(ptr noundef %16, i32 noundef %17, i32 noundef %19)
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %7, align 4
%22 = add nsw i32 %21, 1
%23 = load i32, ptr %6, align 4
call void @quickSort(ptr noundef %20, i32 noundef %22, i32 noundef %23)
br label %24
24: ; preds = %11, %3
ret void
}
declare i32 @partition(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmvp5ckpe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @quickSort(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 %5, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %24
11: ; preds = %3
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %6, align 4
%15 = call i32 @partition(ptr noundef %12, i32 noundef %13, i32 noundef %14)
store i32 %15, ptr %7, align 4
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %7, align 4
%19 = sub nsw i32 %18, 1
call void @quickSort(ptr noundef %16, i32 noundef %17, i32 noundef %19)
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %7, align 4
%22 = add nsw i32 %21, 1
%23 = load i32, ptr %6, align 4
call void @quickSort(ptr noundef %20, i32 noundef %22, i32 noundef %23)
br label %24
24: ; preds = %11, %3
ret void
}
declare i32 @partition(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpc7eknrvo.c'
source_filename = "/tmp/tmpc7eknrvo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"file.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%i \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %7, ptr %2, align 8
%8 = call i32 @time(i32 noundef 0)
%9 = call i32 @srand(i32 noundef %8)
store i32 20, ptr %3, align 4
store i32 10, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %10
10: ; preds = %19, %0
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %22
14: ; preds = %10
%15 = call i32 (...) @rand()
store i32 %15, ptr %4, align 4
%16 = load ptr, ptr %2, align 8
%17 = load i32, ptr %4, align 4
%18 = call i32 @fprintf(ptr noundef %16, ptr noundef @.str.2, i32 noundef %17)
br label %19
19: ; preds = %14
%20 = load i32, ptr %6, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %6, align 4
br label %10, !llvm.loop !6
22: ; preds = %10
%23 = load ptr, ptr %2, align 8
%24 = call i32 @fclose(ptr noundef %23)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @srand(i32 noundef) #1
declare i32 @time(i32 noundef) #1
declare i32 @rand(...) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc7eknrvo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"file.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%i \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %7, ptr %2, align 8
%8 = call i32 @time(i32 noundef 0)
%9 = call i32 @srand(i32 noundef %8)
store i32 20, ptr %3, align 4
store i32 10, ptr %5, align 4
store i32 0, ptr %6, align 4
%10 = load i32, ptr %6, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph, label %24
.lr.ph: ; preds = %0
br label %13
13: ; preds = %.lr.ph, %18
%14 = call i32 (...) @rand()
store i32 %14, ptr %4, align 4
%15 = load ptr, ptr %2, align 8
%16 = load i32, ptr %4, align 4
%17 = call i32 @fprintf(ptr noundef %15, ptr noundef @.str.2, i32 noundef %16)
br label %18
18: ; preds = %13
%19 = load i32, ptr %6, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %6, align 4
%21 = load i32, ptr %6, align 4
%22 = load i32, ptr %5, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %24
24: ; preds = %._crit_edge, %0
%25 = load ptr, ptr %2, align 8
%26 = call i32 @fclose(ptr noundef %25)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @srand(i32 noundef) #1
declare i32 @time(i32 noundef) #1
declare i32 @rand(...) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpi1s7ymz5.c'
source_filename = "/tmp/tmpi1s7ymz5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [15 x i8] c"/dev/sydbox/on\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.stat, align 4
store i32 0, ptr %1, align 4
%3 = call i64 @stat(ptr noundef @.str, ptr noundef %2)
%4 = icmp sgt i64 0, %3
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = load i32, ptr @EXIT_FAILURE, align 4
br label %9
7: ; preds = %0
%8 = load i32, ptr @EXIT_SUCCESS, align 4
br label %9
9: ; preds = %7, %5
%10 = phi i32 [ %6, %5 ], [ %8, %7 ]
ret i32 %10
}
declare i64 @stat(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/tmpi1s7ymz5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [15 x i8] c"/dev/sydbox/on\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.stat, align 4
store i32 0, ptr %1, align 4
%3 = call i64 @stat(ptr noundef @.str, ptr noundef %2)
%4 = icmp sgt i64 0, %3
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = load i32, ptr @EXIT_FAILURE, align 4
br label %9
7: ; preds = %0
%8 = load i32, ptr @EXIT_SUCCESS, align 4
br label %9
9: ; preds = %7, %5
%10 = phi i32 [ %6, %5 ], [ %8, %7 ]
ret i32 %10
}
declare i64 @stat(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/tmpa6a9qka5.c'
source_filename = "/tmp/tmpa6a9qka5.c"
target datalayout = "e-m:e-p270: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/tmpa6a9qka5.c"
target datalayout = "e-m:e-p270: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/tmppnimbudu.c'
source_filename = "/tmp/tmppnimbudu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Say\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"hello\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"world\00", align 1
@__const.main.strings = private unnamed_addr constant [5 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.1, ptr @.str.3], align 16
@.str.4 = private unnamed_addr constant [56 x i8] c"test_strnbld - using strnbld (%d): Final string = [%s]\0A\00", align 1
@.str.5 = private unnamed_addr constant [71 x i8] c"test_strnbld - using strncat (%d) for comparison: Final string = [%s]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [20 x i8], align 16
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca [5 x ptr], align 16
%11 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const.main.strings, i64 40, i1 false)
store i32 5, ptr %11, align 4
store i32 2, ptr %9, align 4
br label %12
12: ; preds = %87, %2
%13 = load i32, ptr %9, align 4
%14 = icmp sle i32 %13, 6
br i1 %14, label %15, label %90
15: ; preds = %12
%16 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%17 = call i32 @memset(ptr noundef %16, i8 noundef signext 35, i32 noundef 20)
%18 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 19
store i8 0, ptr %18, align 1
store i32 0, ptr %6, align 4
br label %19
19: ; preds = %43, %15
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr %11, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %46
23: ; preds = %19
%24 = load i32, ptr %6, align 4
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %34
26: ; preds = %23
%27 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [5 x ptr], ptr %10, i64 0, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = load i32, ptr %9, align 4
%33 = call ptr @strnbld(ptr noundef %27, ptr noundef %31, i32 noundef %32)
store ptr %33, ptr %8, align 8
br label %42
34: ; preds = %23
%35 = load ptr, ptr %8, align 8
%36 = load i32, ptr %6, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [5 x ptr], ptr %10, i64 0, i64 %37
%39 = load ptr, ptr %38, align 8
%40 = load i32, ptr %9, align 4
%41 = call ptr @strnbld(ptr noundef %35, ptr noundef %39, i32 noundef %40)
store ptr %41, ptr %8, align 8
br label %42
42: ; preds = %34, %26
br label %43
43: ; preds = %42
%44 = load i32, ptr %6, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %6, align 4
br label %19, !llvm.loop !6
46: ; preds = %19
%47 = load i32, ptr %9, align 4
%48 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%49 = call i32 @printf(ptr noundef @.str.4, i32 noundef %47, ptr noundef %48)
%50 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%51 = call i32 @memset(ptr noundef %50, i8 noundef signext 35, i32 noundef 20)
%52 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 19
store i8 0, ptr %52, align 1
%53 = load i32, ptr %11, align 4
%54 = sub nsw i32 %53, 1
store i32 %54, ptr %6, align 4
br label %55
55: ; preds = %80, %46
%56 = load i32, ptr %6, align 4
%57 = icmp sge i32 %56, 0
br i1 %57, label %58, label %83
58: ; preds = %55
%59 = load i32, ptr %6, align 4
%60 = load i32, ptr %11, align 4
%61 = sub nsw i32 %60, 1
%62 = icmp eq i32 %59, %61
br i1 %62, label %63, label %71
63: ; preds = %58
%64 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%65 = load i32, ptr %6, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [5 x ptr], ptr %10, i64 0, i64 %66
%68 = load ptr, ptr %67, align 8
%69 = load i32, ptr %9, align 4
%70 = call ptr @strnbld(ptr noundef %64, ptr noundef %68, i32 noundef %69)
store ptr %70, ptr %8, align 8
br label %79
71: ; preds = %58
%72 = load ptr, ptr %8, align 8
%73 = load i32, ptr %6, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [5 x ptr], ptr %10, i64 0, i64 %74
%76 = load ptr, ptr %75, align 8
%77 = load i32, ptr %9, align 4
%78 = call ptr @strnbld(ptr noundef %72, ptr noundef %76, i32 noundef %77)
store ptr %78, ptr %8, align 8
br label %79
79: ; preds = %71, %63
br label %80
80: ; preds = %79
%81 = load i32, ptr %6, align 4
%82 = add nsw i32 %81, -1
store i32 %82, ptr %6, align 4
br label %55, !llvm.loop !8
83: ; preds = %55
%84 = load i32, ptr %9, align 4
%85 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%86 = call i32 @printf(ptr noundef @.str.4, i32 noundef %84, ptr noundef %85)
br label %87
87: ; preds = %83
%88 = load i32, ptr %9, align 4
%89 = add nsw i32 %88, 1
store i32 %89, ptr %9, align 4
br label %12, !llvm.loop !9
90: ; preds = %12
store i32 2, ptr %9, align 4
br label %91
91: ; preds = %168, %90
%92 = load i32, ptr %9, align 4
%93 = icmp sle i32 %92, 6
br i1 %93, label %94, label %171
94: ; preds = %91
%95 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%96 = call i32 @memset(ptr noundef %95, i8 noundef signext 35, i32 noundef 20)
%97 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
store i8 0, ptr %97, align 16
%98 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 19
store i8 0, ptr %98, align 1
store i32 0, ptr %6, align 4
br label %99
99: ; preds = %123, %94
%100 = load i32, ptr %6, align 4
%101 = load i32, ptr %11, align 4
%102 = icmp slt i32 %100, %101
br i1 %102, label %103, label %126
103: ; preds = %99
%104 = load i32, ptr %6, align 4
%105 = icmp eq i32 %104, 0
br i1 %105, label %106, label %114
106: ; preds = %103
%107 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%108 = load i32, ptr %6, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds [5 x ptr], ptr %10, i64 0, i64 %109
%111 = load ptr, ptr %110, align 8
%112 = load i32, ptr %9, align 4
%113 = call ptr @strncat(ptr noundef %107, ptr noundef %111, i32 noundef %112)
store ptr %113, ptr %8, align 8
br label %122
114: ; preds = %103
%115 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%116 = load i32, ptr %6, align 4
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds [5 x ptr], ptr %10, i64 0, i64 %117
%119 = load ptr, ptr %118, align 8
%120 = load i32, ptr %9, align 4
%121 = call ptr @strncat(ptr noundef %115, ptr noundef %119, i32 noundef %120)
store ptr %121, ptr %8, align 8
br label %122
122: ; preds = %114, %106
br label %123
123: ; preds = %122
%124 = load i32, ptr %6, align 4
%125 = add nsw i32 %124, 1
store i32 %125, ptr %6, align 4
br label %99, !llvm.loop !10
126: ; preds = %99
%127 = load i32, ptr %9, align 4
%128 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%129 = call i32 @printf(ptr noundef @.str.5, i32 noundef %127, ptr noundef %128)
%130 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%131 = call i32 @memset(ptr noundef %130, i8 noundef signext 35, i32 noundef 20)
%132 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
store i8 0, ptr %132, align 16
%133 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 19
store i8 0, ptr %133, align 1
%134 = load i32, ptr %11, align 4
%135 = sub nsw i32 %134, 1
store i32 %135, ptr %6, align 4
br label %136
136: ; preds = %161, %126
%137 = load i32, ptr %6, align 4
%138 = icmp sge i32 %137, 0
br i1 %138, label %139, label %164
139: ; preds = %136
%140 = load i32, ptr %6, align 4
%141 = load i32, ptr %11, align 4
%142 = sub nsw i32 %141, 1
%143 = icmp eq i32 %140, %142
br i1 %143, label %144, label %152
144: ; preds = %139
%145 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%146 = load i32, ptr %6, align 4
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds [5 x ptr], ptr %10, i64 0, i64 %147
%149 = load ptr, ptr %148, align 8
%150 = load i32, ptr %9, align 4
%151 = call ptr @strncat(ptr noundef %145, ptr noundef %149, i32 noundef %150)
store ptr %151, ptr %8, align 8
br label %160
152: ; preds = %139
%153 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%154 = load i32, ptr %6, align 4
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds [5 x ptr], ptr %10, i64 0, i64 %155
%157 = load ptr, ptr %156, align 8
%158 = load i32, ptr %9, align 4
%159 = call ptr @strncat(ptr noundef %153, ptr noundef %157, i32 noundef %158)
store ptr %159, ptr %8, align 8
br label %160
160: ; preds = %152, %144
br label %161
161: ; preds = %160
%162 = load i32, ptr %6, align 4
%163 = add nsw i32 %162, -1
store i32 %163, ptr %6, align 4
br label %136, !llvm.loop !11
164: ; preds = %136
%165 = load i32, ptr %9, align 4
%166 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%167 = call i32 @printf(ptr noundef @.str.5, i32 noundef %165, ptr noundef %166)
br label %168
168: ; preds = %164
%169 = load i32, ptr %9, align 4
%170 = add nsw i32 %169, 1
store i32 %170, ptr %9, align 4
br label %91, !llvm.loop !12
171: ; preds = %91
%172 = load i32, ptr %3, align 4
ret i32 %172
}
; 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 @memset(ptr noundef, i8 noundef signext, i32 noundef) #2
declare ptr @strnbld(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, i32 noundef, ptr noundef) #2
declare ptr @strncat(ptr noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppnimbudu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Say\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"hello\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"world\00", align 1
@__const.main.strings = private unnamed_addr constant [5 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.1, ptr @.str.3], align 16
@.str.4 = private unnamed_addr constant [56 x i8] c"test_strnbld - using strnbld (%d): Final string = [%s]\0A\00", align 1
@.str.5 = private unnamed_addr constant [71 x i8] c"test_strnbld - using strncat (%d) for comparison: Final string = [%s]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [20 x i8], align 16
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca [5 x ptr], align 16
%11 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const.main.strings, i64 40, i1 false)
store i32 5, ptr %11, align 4
store i32 2, ptr %9, align 4
%12 = load i32, ptr %9, align 4
%13 = icmp sle i32 %12, 6
br i1 %13, label %.lr.ph5, label %94
.lr.ph5: ; preds = %2
br label %14
14: ; preds = %.lr.ph5, %89
%15 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%16 = call i32 @memset(ptr noundef %15, i8 noundef signext 35, i32 noundef 20)
%17 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 19
store i8 0, ptr %17, align 1
store i32 0, ptr %6, align 4
%18 = load i32, ptr %6, align 4
%19 = load i32, ptr %11, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %.lr.ph, label %47
.lr.ph: ; preds = %14
br label %21
21: ; preds = %.lr.ph, %41
%22 = load i32, ptr %6, align 4
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %32
24: ; preds = %21
%25 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%26 = load i32, ptr %6, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [5 x ptr], ptr %10, i64 0, i64 %27
%29 = load ptr, ptr %28, align 8
%30 = load i32, ptr %9, align 4
%31 = call ptr @strnbld(ptr noundef %25, ptr noundef %29, i32 noundef %30)
store ptr %31, ptr %8, align 8
br label %40
32: ; preds = %21
%33 = load ptr, ptr %8, align 8
%34 = load i32, ptr %6, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [5 x ptr], ptr %10, i64 0, i64 %35
%37 = load ptr, ptr %36, align 8
%38 = load i32, ptr %9, align 4
%39 = call ptr @strnbld(ptr noundef %33, ptr noundef %37, i32 noundef %38)
store ptr %39, ptr %8, align 8
br label %40
40: ; preds = %32, %24
br label %41
41: ; preds = %40
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
%44 = load i32, ptr %6, align 4
%45 = load i32, ptr %11, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %41
br label %47
47: ; preds = %._crit_edge, %14
%48 = load i32, ptr %9, align 4
%49 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%50 = call i32 @printf(ptr noundef @.str.4, i32 noundef %48, ptr noundef %49)
%51 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%52 = call i32 @memset(ptr noundef %51, i8 noundef signext 35, i32 noundef 20)
%53 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 19
store i8 0, ptr %53, align 1
%54 = load i32, ptr %11, align 4
%55 = sub nsw i32 %54, 1
store i32 %55, ptr %6, align 4
%56 = load i32, ptr %6, align 4
%57 = icmp sge i32 %56, 0
br i1 %57, label %.lr.ph2, label %85
.lr.ph2: ; preds = %47
br label %58
58: ; preds = %.lr.ph2, %80
%59 = load i32, ptr %6, align 4
%60 = load i32, ptr %11, align 4
%61 = sub nsw i32 %60, 1
%62 = icmp eq i32 %59, %61
br i1 %62, label %63, label %71
63: ; preds = %58
%64 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%65 = load i32, ptr %6, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [5 x ptr], ptr %10, i64 0, i64 %66
%68 = load ptr, ptr %67, align 8
%69 = load i32, ptr %9, align 4
%70 = call ptr @strnbld(ptr noundef %64, ptr noundef %68, i32 noundef %69)
store ptr %70, ptr %8, align 8
br label %79
71: ; preds = %58
%72 = load ptr, ptr %8, align 8
%73 = load i32, ptr %6, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [5 x ptr], ptr %10, i64 0, i64 %74
%76 = load ptr, ptr %75, align 8
%77 = load i32, ptr %9, align 4
%78 = call ptr @strnbld(ptr noundef %72, ptr noundef %76, i32 noundef %77)
store ptr %78, ptr %8, align 8
br label %79
79: ; preds = %71, %63
br label %80
80: ; preds = %79
%81 = load i32, ptr %6, align 4
%82 = add nsw i32 %81, -1
store i32 %82, ptr %6, align 4
%83 = load i32, ptr %6, align 4
%84 = icmp sge i32 %83, 0
br i1 %84, label %58, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %80
br label %85
85: ; preds = %._crit_edge3, %47
%86 = load i32, ptr %9, align 4
%87 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%88 = call i32 @printf(ptr noundef @.str.4, i32 noundef %86, ptr noundef %87)
br label %89
89: ; preds = %85
%90 = load i32, ptr %9, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %9, align 4
%92 = load i32, ptr %9, align 4
%93 = icmp sle i32 %92, 6
br i1 %93, label %14, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %89
br label %94
94: ; preds = %._crit_edge6, %2
store i32 2, ptr %9, align 4
%95 = load i32, ptr %9, align 4
%96 = icmp sle i32 %95, 6
br i1 %96, label %.lr.ph14, label %179
.lr.ph14: ; preds = %94
br label %97
97: ; preds = %.lr.ph14, %174
%98 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%99 = call i32 @memset(ptr noundef %98, i8 noundef signext 35, i32 noundef 20)
%100 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
store i8 0, ptr %100, align 16
%101 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 19
store i8 0, ptr %101, align 1
store i32 0, ptr %6, align 4
%102 = load i32, ptr %6, align 4
%103 = load i32, ptr %11, align 4
%104 = icmp slt i32 %102, %103
br i1 %104, label %.lr.ph8, label %131
.lr.ph8: ; preds = %97
br label %105
105: ; preds = %.lr.ph8, %125
%106 = load i32, ptr %6, align 4
%107 = icmp eq i32 %106, 0
br i1 %107, label %108, label %116
108: ; preds = %105
%109 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%110 = load i32, ptr %6, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds [5 x ptr], ptr %10, i64 0, i64 %111
%113 = load ptr, ptr %112, align 8
%114 = load i32, ptr %9, align 4
%115 = call ptr @strncat(ptr noundef %109, ptr noundef %113, i32 noundef %114)
store ptr %115, ptr %8, align 8
br label %124
116: ; preds = %105
%117 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%118 = load i32, ptr %6, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds [5 x ptr], ptr %10, i64 0, i64 %119
%121 = load ptr, ptr %120, align 8
%122 = load i32, ptr %9, align 4
%123 = call ptr @strncat(ptr noundef %117, ptr noundef %121, i32 noundef %122)
store ptr %123, ptr %8, align 8
br label %124
124: ; preds = %116, %108
br label %125
125: ; preds = %124
%126 = load i32, ptr %6, align 4
%127 = add nsw i32 %126, 1
store i32 %127, ptr %6, align 4
%128 = load i32, ptr %6, align 4
%129 = load i32, ptr %11, align 4
%130 = icmp slt i32 %128, %129
br i1 %130, label %105, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %125
br label %131
131: ; preds = %._crit_edge9, %97
%132 = load i32, ptr %9, align 4
%133 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%134 = call i32 @printf(ptr noundef @.str.5, i32 noundef %132, ptr noundef %133)
%135 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%136 = call i32 @memset(ptr noundef %135, i8 noundef signext 35, i32 noundef 20)
%137 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
store i8 0, ptr %137, align 16
%138 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 19
store i8 0, ptr %138, align 1
%139 = load i32, ptr %11, align 4
%140 = sub nsw i32 %139, 1
store i32 %140, ptr %6, align 4
%141 = load i32, ptr %6, align 4
%142 = icmp sge i32 %141, 0
br i1 %142, label %.lr.ph11, label %170
.lr.ph11: ; preds = %131
br label %143
143: ; preds = %.lr.ph11, %165
%144 = load i32, ptr %6, align 4
%145 = load i32, ptr %11, align 4
%146 = sub nsw i32 %145, 1
%147 = icmp eq i32 %144, %146
br i1 %147, label %148, label %156
148: ; preds = %143
%149 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%150 = load i32, ptr %6, align 4
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds [5 x ptr], ptr %10, i64 0, i64 %151
%153 = load ptr, ptr %152, align 8
%154 = load i32, ptr %9, align 4
%155 = call ptr @strncat(ptr noundef %149, ptr noundef %153, i32 noundef %154)
store ptr %155, ptr %8, align 8
br label %164
156: ; preds = %143
%157 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%158 = load i32, ptr %6, align 4
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds [5 x ptr], ptr %10, i64 0, i64 %159
%161 = load ptr, ptr %160, align 8
%162 = load i32, ptr %9, align 4
%163 = call ptr @strncat(ptr noundef %157, ptr noundef %161, i32 noundef %162)
store ptr %163, ptr %8, align 8
br label %164
164: ; preds = %156, %148
br label %165
165: ; preds = %164
%166 = load i32, ptr %6, align 4
%167 = add nsw i32 %166, -1
store i32 %167, ptr %6, align 4
%168 = load i32, ptr %6, align 4
%169 = icmp sge i32 %168, 0
br i1 %169, label %143, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %165
br label %170
170: ; preds = %._crit_edge12, %131
%171 = load i32, ptr %9, align 4
%172 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%173 = call i32 @printf(ptr noundef @.str.5, i32 noundef %171, ptr noundef %172)
br label %174
174: ; preds = %170
%175 = load i32, ptr %9, align 4
%176 = add nsw i32 %175, 1
store i32 %176, ptr %9, align 4
%177 = load i32, ptr %9, align 4
%178 = icmp sle i32 %177, 6
br i1 %178, label %97, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %174
br label %179
179: ; preds = %._crit_edge15, %94
%180 = load i32, ptr %3, align 4
ret i32 %180
}
; 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 @memset(ptr noundef, i8 noundef signext, i32 noundef) #2
declare ptr @strnbld(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, i32 noundef, ptr noundef) #2
declare ptr @strncat(ptr noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmpaphaozsh.c'
source_filename = "/tmp/tmpaphaozsh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"hello, world!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @CheckNoArgs() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaphaozsh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"hello, world!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @CheckNoArgs() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp99bgwtlj.c'
source_filename = "/tmp/tmp99bgwtlj.c"
target datalayout = "e-m:e-p270: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/tmp99bgwtlj.c"
target datalayout = "e-m:e-p270: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/tmpgpesd8hp.c'
source_filename = "/tmp/tmpgpesd8hp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @validate_solutions() #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_c2phc(i32 noundef 9, 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_c2phc(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/tmpgpesd8hp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @validate_solutions() #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_c2phc(i32 noundef 9, 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_c2phc(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/tmp408j20j2.c'
source_filename = "/tmp/tmp408j20j2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@_SC_NPROCESSORS_ONLN = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @active_cpu(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = load i32, ptr @_SC_NPROCESSORS_ONLN, align 4
%6 = call i32 @sysconf(i32 noundef %5)
store i32 %6, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 1
br i1 %8, label %9, label %10
9: ; preds = %1
br label %19
10: ; preds = %1
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %4, align 4
%13 = srem i32 %11, %12
store i32 %13, ptr %2, align 4
%14 = call i32 @get_cpu_mask(i32 noundef 0, ptr noundef %3)
%15 = call i32 @CPU_ZERO(ptr noundef %3)
%16 = load i32, ptr %2, align 4
%17 = call i32 @CPU_SET(i32 noundef %16, ptr noundef %3)
%18 = call i32 @set_cpu_mask(i32 noundef 0, ptr noundef %3)
br label %19
19: ; preds = %10, %9
ret void
}
declare i32 @sysconf(i32 noundef) #1
declare i32 @get_cpu_mask(i32 noundef, ptr noundef) #1
declare i32 @CPU_ZERO(ptr noundef) #1
declare i32 @CPU_SET(i32 noundef, ptr noundef) #1
declare i32 @set_cpu_mask(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/tmp408j20j2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@_SC_NPROCESSORS_ONLN = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @active_cpu(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = load i32, ptr @_SC_NPROCESSORS_ONLN, align 4
%6 = call i32 @sysconf(i32 noundef %5)
store i32 %6, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 1
br i1 %8, label %9, label %10
9: ; preds = %1
br label %19
10: ; preds = %1
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %4, align 4
%13 = srem i32 %11, %12
store i32 %13, ptr %2, align 4
%14 = call i32 @get_cpu_mask(i32 noundef 0, ptr noundef %3)
%15 = call i32 @CPU_ZERO(ptr noundef %3)
%16 = load i32, ptr %2, align 4
%17 = call i32 @CPU_SET(i32 noundef %16, ptr noundef %3)
%18 = call i32 @set_cpu_mask(i32 noundef 0, ptr noundef %3)
br label %19
19: ; preds = %10, %9
ret void
}
declare i32 @sysconf(i32 noundef) #1
declare i32 @get_cpu_mask(i32 noundef, ptr noundef) #1
declare i32 @CPU_ZERO(ptr noundef) #1
declare i32 @CPU_SET(i32 noundef, ptr noundef) #1
declare i32 @set_cpu_mask(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/tmp8wfea3x3.c'
source_filename = "/tmp/tmp8wfea3x3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @is_prime(i64 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store i64 %0, ptr %3, align 8
%6 = load i64, ptr %3, align 8
%7 = icmp slt i64 %6, 2
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 0, ptr %2, align 4
br label %38
9: ; preds = %1
%10 = load i64, ptr %3, align 8
%11 = icmp slt i64 %10, 4
br i1 %11, label %12, label %13
12: ; preds = %9
store i32 1, ptr %2, align 4
br label %38
13: ; preds = %9
%14 = load i64, ptr %3, align 8
%15 = srem i64 %14, 2
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %13
store i32 0, ptr %2, align 4
br label %38
18: ; preds = %13
%19 = load i64, ptr %3, align 8
%20 = sitofp i64 %19 to double
%21 = call i32 @sqrt(double noundef %20)
%22 = call i64 @floor(i32 noundef %21)
store i64 %22, ptr %4, align 8
store i64 3, ptr %5, align 8
br label %23
23: ; preds = %34, %18
%24 = load i64, ptr %5, align 8
%25 = load i64, ptr %4, align 8
%26 = icmp slt i64 %24, %25
br i1 %26, label %27, label %37
27: ; preds = %23
%28 = load i64, ptr %3, align 8
%29 = load i64, ptr %5, align 8
%30 = srem i64 %28, %29
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %27
store i32 0, ptr %2, align 4
br label %38
33: ; preds = %27
br label %34
34: ; preds = %33
%35 = load i64, ptr %5, align 8
%36 = add nsw i64 %35, 1
store i64 %36, ptr %5, align 8
br label %23, !llvm.loop !6
37: ; preds = %23
store i32 1, ptr %2, align 4
br label %38
38: ; preds = %37, %32, %17, %12, %8
%39 = load i32, ptr %2, align 4
ret i32 %39
}
declare i64 @floor(i32 noundef) #1
declare i32 @sqrt(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8wfea3x3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @is_prime(i64 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store i64 %0, ptr %3, align 8
%6 = load i64, ptr %3, align 8
%7 = icmp slt i64 %6, 2
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 0, ptr %2, align 4
br label %40
9: ; preds = %1
%10 = load i64, ptr %3, align 8
%11 = icmp slt i64 %10, 4
br i1 %11, label %12, label %13
12: ; preds = %9
store i32 1, ptr %2, align 4
br label %40
13: ; preds = %9
%14 = load i64, ptr %3, align 8
%15 = srem i64 %14, 2
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %13
store i32 0, ptr %2, align 4
br label %40
18: ; preds = %13
%19 = load i64, ptr %3, align 8
%20 = sitofp i64 %19 to double
%21 = call i32 @sqrt(double noundef %20)
%22 = call i64 @floor(i32 noundef %21)
store i64 %22, ptr %4, align 8
store i64 3, ptr %5, align 8
%23 = load i64, ptr %5, align 8
%24 = load i64, ptr %4, align 8
%25 = icmp slt i64 %23, %24
br i1 %25, label %.lr.ph, label %39
.lr.ph: ; preds = %18
br label %26
26: ; preds = %.lr.ph, %33
%27 = load i64, ptr %3, align 8
%28 = load i64, ptr %5, align 8
%29 = srem i64 %27, %28
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %26
store i32 0, ptr %2, align 4
br label %40
32: ; preds = %26
br label %33
33: ; preds = %32
%34 = load i64, ptr %5, align 8
%35 = add nsw i64 %34, 1
store i64 %35, ptr %5, align 8
%36 = load i64, ptr %5, align 8
%37 = load i64, ptr %4, align 8
%38 = icmp slt i64 %36, %37
br i1 %38, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %39
39: ; preds = %._crit_edge, %18
store i32 1, ptr %2, align 4
br label %40
40: ; preds = %39, %31, %17, %12, %8
%41 = load i32, ptr %2, align 4
ret i32 %41
}
declare i64 @floor(i32 noundef) #1
declare i32 @sqrt(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpsv4glj0e.c'
source_filename = "/tmp/tmpsv4glj0e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getFilePath(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i8, align 1
%7 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%8 = load ptr, ptr %2, align 8
%9 = call i64 @strlen(ptr noundef %8)
store i64 %9, ptr %3, align 8
%10 = load i64, ptr %3, align 8
store i64 %10, ptr %4, align 8
%11 = load i64, ptr %3, align 8
store i64 %11, ptr %5, align 8
br label %12
12: ; preds = %30, %1
%13 = load i64, ptr %5, align 8
%14 = icmp ugt i64 %13, 0
br i1 %14, label %15, label %33
15: ; preds = %12
%16 = load ptr, ptr %2, align 8
%17 = load i64, ptr %5, align 8
%18 = getelementptr inbounds i8, ptr %16, i64 %17
%19 = load i8, ptr %18, align 1
store i8 %19, ptr %6, align 1
%20 = load i8, ptr %6, align 1
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 47
br i1 %22, label %27, label %23
23: ; preds = %15
%24 = load i8, ptr %6, align 1
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 92
br i1 %26, label %27, label %29
27: ; preds = %23, %15
%28 = load i64, ptr %5, align 8
store i64 %28, ptr %4, align 8
br label %33
29: ; preds = %23
br label %30
30: ; preds = %29
%31 = load i64, ptr %5, align 8
%32 = add i64 %31, -1
store i64 %32, ptr %5, align 8
br label %12, !llvm.loop !6
33: ; preds = %27, %12
%34 = load i64, ptr %3, align 8
%35 = load i64, ptr %4, align 8
%36 = sub i64 %34, %35
%37 = add i64 %36, 1
%38 = call ptr @malloc(i64 noundef %37)
store ptr %38, ptr %7, align 8
%39 = load ptr, ptr %7, align 8
%40 = load ptr, ptr %2, align 8
%41 = load i64, ptr %3, align 8
%42 = load i64, ptr %4, align 8
%43 = sub i64 %41, %42
%44 = call ptr @strncpy(ptr noundef %39, ptr noundef %40, i64 noundef %43)
ret ptr %44
}
declare i64 @strlen(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare ptr @strncpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsv4glj0e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getFilePath(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i8, align 1
%7 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%8 = load ptr, ptr %2, align 8
%9 = call i64 @strlen(ptr noundef %8)
store i64 %9, ptr %3, align 8
%10 = load i64, ptr %3, align 8
store i64 %10, ptr %4, align 8
%11 = load i64, ptr %3, align 8
store i64 %11, ptr %5, align 8
%12 = load i64, ptr %5, align 8
%13 = icmp ugt i64 %12, 0
br i1 %13, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %1
br label %14
14: ; preds = %.lr.ph, %29
%15 = load ptr, ptr %2, align 8
%16 = load i64, ptr %5, align 8
%17 = getelementptr inbounds i8, ptr %15, i64 %16
%18 = load i8, ptr %17, align 1
store i8 %18, ptr %6, align 1
%19 = load i8, ptr %6, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 47
br i1 %21, label %26, label %22
22: ; preds = %14
%23 = load i8, ptr %6, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 92
br i1 %25, label %26, label %28
26: ; preds = %22, %14
%27 = load i64, ptr %5, align 8
store i64 %27, ptr %4, align 8
br label %34
28: ; preds = %22
br label %29
29: ; preds = %28
%30 = load i64, ptr %5, align 8
%31 = add i64 %30, -1
store i64 %31, ptr %5, align 8
%32 = load i64, ptr %5, align 8
%33 = icmp ugt i64 %32, 0
br i1 %33, label %14, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %29
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %1
br label %34
34: ; preds = %.loopexit, %26
%35 = load i64, ptr %3, align 8
%36 = load i64, ptr %4, align 8
%37 = sub i64 %35, %36
%38 = add i64 %37, 1
%39 = call ptr @malloc(i64 noundef %38)
store ptr %39, ptr %7, align 8
%40 = load ptr, ptr %7, align 8
%41 = load ptr, ptr %2, align 8
%42 = load i64, ptr %3, align 8
%43 = load i64, ptr %4, align 8
%44 = sub i64 %42, %43
%45 = call ptr @strncpy(ptr noundef %40, ptr noundef %41, i64 noundef %44)
ret ptr %45
}
declare i64 @strlen(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare ptr @strncpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpkiiuzrc8.c'
source_filename = "/tmp/tmpkiiuzrc8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PROT_READ = dso_local global i32 0, align 4
@PROT_WRITE = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
@MAP_ANONYMOUS = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
@.str = private unnamed_addr constant [5 x i8] c"mmap\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 2
br i1 %9, label %10, label %11
10: ; preds = %2
store i64 2, ptr %7, align 8
br label %16
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = call i64 @strtoull(ptr noundef %14, ptr noundef null, i32 noundef 0)
store i64 %15, ptr %7, align 8
br label %16
16: ; preds = %11, %10
%17 = load i64, ptr %7, align 8
%18 = load i32, ptr @PROT_READ, align 4
%19 = load i32, ptr @PROT_WRITE, align 4
%20 = or i32 %18, %19
%21 = load i32, ptr @MAP_SHARED, align 4
%22 = load i32, ptr @MAP_ANONYMOUS, align 4
%23 = or i32 %21, %22
%24 = call ptr @mmap(ptr noundef null, i64 noundef %17, i32 noundef %20, i32 noundef %23, i32 noundef -1, i32 noundef 0)
store ptr %24, ptr %6, align 8
%25 = load ptr, ptr %6, align 8
%26 = load ptr, ptr @MAP_FAILED, align 8
%27 = icmp eq ptr %25, %26
br i1 %27, label %28, label %32
28: ; preds = %16
%29 = call i32 @perror(ptr noundef @.str)
%30 = load i32, ptr @EXIT_FAILURE, align 4
%31 = call i32 @exit(i32 noundef %30) #3
unreachable
32: ; preds = %16
%33 = load ptr, ptr %6, align 8
%34 = load i64, ptr %7, align 8
%35 = call i32 @munmap(ptr noundef %33, i64 noundef %34)
%36 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %36
}
declare i64 @strtoull(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @mmap(ptr noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @munmap(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" }
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/tmpkiiuzrc8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PROT_READ = dso_local global i32 0, align 4
@PROT_WRITE = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
@MAP_ANONYMOUS = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
@.str = private unnamed_addr constant [5 x i8] c"mmap\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 2
br i1 %9, label %10, label %11
10: ; preds = %2
store i64 2, ptr %7, align 8
br label %16
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = call i64 @strtoull(ptr noundef %14, ptr noundef null, i32 noundef 0)
store i64 %15, ptr %7, align 8
br label %16
16: ; preds = %11, %10
%17 = load i64, ptr %7, align 8
%18 = load i32, ptr @PROT_READ, align 4
%19 = load i32, ptr @PROT_WRITE, align 4
%20 = or i32 %18, %19
%21 = load i32, ptr @MAP_SHARED, align 4
%22 = load i32, ptr @MAP_ANONYMOUS, align 4
%23 = or i32 %21, %22
%24 = call ptr @mmap(ptr noundef null, i64 noundef %17, i32 noundef %20, i32 noundef %23, i32 noundef -1, i32 noundef 0)
store ptr %24, ptr %6, align 8
%25 = load ptr, ptr %6, align 8
%26 = load ptr, ptr @MAP_FAILED, align 8
%27 = icmp eq ptr %25, %26
br i1 %27, label %28, label %32
28: ; preds = %16
%29 = call i32 @perror(ptr noundef @.str)
%30 = load i32, ptr @EXIT_FAILURE, align 4
%31 = call i32 @exit(i32 noundef %30) #3
unreachable
32: ; preds = %16
%33 = load ptr, ptr %6, align 8
%34 = load i64, ptr %7, align 8
%35 = call i32 @munmap(ptr noundef %33, i64 noundef %34)
%36 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %36
}
declare i64 @strtoull(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @mmap(ptr noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @munmap(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" }
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/tmpxp6u2byg.c'
source_filename = "/tmp/tmpxp6u2byg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"Single Linked List dengan metode LIFO\0A\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"=====================================\0A\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"Pilihan : \0A\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"1. Insert\0A\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"2. Display\0A\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"3. Exit\0A\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"Pilihan Anda : \00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.8 = private unnamed_addr constant [12 x i8] c"Terimakasih\00", align 1
@.str.9 = private unnamed_addr constant [40 x i8] c"Pilihan tidak ada di menu, Coba lagi ya\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @printf(ptr noundef @.str.1)
br label %5
5: ; preds = %22, %0
%6 = call i32 @printf(ptr noundef @.str.2)
%7 = call i32 @printf(ptr noundef @.str.3)
%8 = call i32 @printf(ptr noundef @.str.4)
%9 = call i32 @printf(ptr noundef @.str.5)
%10 = call i32 @printf(ptr noundef @.str.6)
%11 = call i32 @scanf(ptr noundef @.str.7, ptr noundef %2)
%12 = load i32, ptr %2, align 4
switch i32 %12, label %19 [
i32 1, label %13
i32 2, label %15
i32 3, label %17
]
13: ; preds = %5
%14 = call i32 (...) @insert()
br label %21
15: ; preds = %5
%16 = call i32 (...) @display()
br label %21
17: ; preds = %5
%18 = call i32 @printf(ptr noundef @.str.8)
br label %21
19: ; preds = %5
%20 = call i32 @printf(ptr noundef @.str.9)
br label %21
21: ; preds = %19, %17, %15, %13
br label %22
22: ; preds = %21
%23 = load i32, ptr %2, align 4
%24 = icmp ne i32 %23, 3
br i1 %24, label %5, label %25, !llvm.loop !6
25: ; preds = %22
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @insert(...) #1
declare i32 @display(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpxp6u2byg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"Single Linked List dengan metode LIFO\0A\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"=====================================\0A\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"Pilihan : \0A\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"1. Insert\0A\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"2. Display\0A\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"3. Exit\0A\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"Pilihan Anda : \00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.8 = private unnamed_addr constant [12 x i8] c"Terimakasih\00", align 1
@.str.9 = private unnamed_addr constant [40 x i8] c"Pilihan tidak ada di menu, Coba lagi ya\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @printf(ptr noundef @.str.1)
br label %5
5: ; preds = %22, %0
%6 = call i32 @printf(ptr noundef @.str.2)
%7 = call i32 @printf(ptr noundef @.str.3)
%8 = call i32 @printf(ptr noundef @.str.4)
%9 = call i32 @printf(ptr noundef @.str.5)
%10 = call i32 @printf(ptr noundef @.str.6)
%11 = call i32 @scanf(ptr noundef @.str.7, ptr noundef %2)
%12 = load i32, ptr %2, align 4
switch i32 %12, label %19 [
i32 1, label %13
i32 2, label %15
i32 3, label %17
]
13: ; preds = %5
%14 = call i32 (...) @insert()
br label %21
15: ; preds = %5
%16 = call i32 (...) @display()
br label %21
17: ; preds = %5
%18 = call i32 @printf(ptr noundef @.str.8)
br label %21
19: ; preds = %5
%20 = call i32 @printf(ptr noundef @.str.9)
br label %21
21: ; preds = %19, %17, %15, %13
br label %22
22: ; preds = %21
%23 = load i32, ptr %2, align 4
%24 = icmp ne i32 %23, 3
br i1 %24, label %5, label %25, !llvm.loop !6
25: ; preds = %22
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @insert(...) #1
declare i32 @display(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp22pdjhuw.c'
source_filename = "/tmp/tmp22pdjhuw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%.4d,\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printM(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %9
9: ; preds = %34, %3
%10 = load i32, ptr %7, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %37
13: ; preds = %9
store i32 0, ptr %8, align 4
br label %14
14: ; preds = %29, %13
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %32
18: ; preds = %14
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %7, align 4
%21 = load i32, ptr %6, align 4
%22 = mul nsw i32 %20, %21
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %22, %23
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %19, i64 %25
%27 = load i32, ptr %26, align 4
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %27)
br label %29
29: ; preds = %18
%30 = load i32, ptr %8, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %8, align 4
br label %14, !llvm.loop !6
32: ; preds = %14
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %34
34: ; preds = %32
%35 = load i32, ptr %7, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %7, align 4
br label %9, !llvm.loop !8
37: ; preds = %9
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp22pdjhuw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%.4d,\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printM(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph2, label %41
.lr.ph2: ; preds = %3
br label %12
12: ; preds = %.lr.ph2, %35
store i32 0, ptr %8, align 4
%13 = load i32, ptr %8, align 4
%14 = load i32, ptr %6, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %33
.lr.ph: ; preds = %12
br label %16
16: ; preds = %.lr.ph, %27
%17 = load ptr, ptr %4, align 8
%18 = load i32, ptr %7, align 4
%19 = load i32, ptr %6, align 4
%20 = mul nsw i32 %18, %19
%21 = load i32, ptr %8, align 4
%22 = add nsw i32 %20, %21
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, ptr %17, i64 %23
%25 = load i32, ptr %24, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %25)
br label %27
27: ; preds = %16
%28 = load i32, ptr %8, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %8, align 4
%30 = load i32, ptr %8, align 4
%31 = load i32, ptr %6, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %33
33: ; preds = %._crit_edge, %12
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %35
35: ; preds = %33
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %7, align 4
%38 = load i32, ptr %7, align 4
%39 = load i32, ptr %5, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %12, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %35
br label %41
41: ; preds = %._crit_edge3, %3
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpdkdnyimc.c'
source_filename = "/tmp/tmpdkdnyimc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @remove_event_of_type(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%6 = load i32, ptr %4, align 4
switch i32 %6, label %16 [
i32 0, label %7
i32 1, label %10
i32 2, label %13
]
7: ; preds = %2
%8 = load i32, ptr %5, align 4
%9 = call ptr @remove_first_event_of_type(i32 noundef %8)
store ptr %9, ptr %3, align 8
br label %17
10: ; preds = %2
%11 = load i32, ptr %5, align 4
%12 = call ptr @remove_last_event_of_type(i32 noundef %11)
store ptr %12, ptr %3, align 8
br label %17
13: ; preds = %2
%14 = load i32, ptr %5, align 4
%15 = call ptr @remove_a_event_of_type(i32 noundef %14)
store ptr %15, ptr %3, align 8
br label %17
16: ; preds = %2
store ptr null, ptr %3, align 8
br label %17
17: ; preds = %16, %13, %10, %7
%18 = load ptr, ptr %3, align 8
ret ptr %18
}
declare ptr @remove_first_event_of_type(i32 noundef) #1
declare ptr @remove_last_event_of_type(i32 noundef) #1
declare ptr @remove_a_event_of_type(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/tmpdkdnyimc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @remove_event_of_type(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%6 = load i32, ptr %4, align 4
switch i32 %6, label %16 [
i32 0, label %7
i32 1, label %10
i32 2, label %13
]
7: ; preds = %2
%8 = load i32, ptr %5, align 4
%9 = call ptr @remove_first_event_of_type(i32 noundef %8)
store ptr %9, ptr %3, align 8
br label %17
10: ; preds = %2
%11 = load i32, ptr %5, align 4
%12 = call ptr @remove_last_event_of_type(i32 noundef %11)
store ptr %12, ptr %3, align 8
br label %17
13: ; preds = %2
%14 = load i32, ptr %5, align 4
%15 = call ptr @remove_a_event_of_type(i32 noundef %14)
store ptr %15, ptr %3, align 8
br label %17
16: ; preds = %2
store ptr null, ptr %3, align 8
br label %17
17: ; preds = %16, %13, %10, %7
%18 = load ptr, ptr %3, align 8
ret ptr %18
}
declare ptr @remove_first_event_of_type(i32 noundef) #1
declare ptr @remove_last_event_of_type(i32 noundef) #1
declare ptr @remove_a_event_of_type(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/tmpk9me3r9_.c'
source_filename = "/tmp/tmpk9me3r9_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @xx_strtoul(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @strtoul(ptr noundef %5, ptr noundef %6, i32 noundef 0)
ret i32 %7
}
declare i32 @strtoul(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/tmpk9me3r9_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @xx_strtoul(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @strtoul(ptr noundef %5, ptr noundef %6, i32 noundef 0)
ret i32 %7
}
declare i32 @strtoul(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/tmpb5iy3s1m.c'
source_filename = "/tmp/tmpb5iy3s1m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"Invalid Input!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getInt() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = call ptr (...) @getStr()
store ptr %6, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @length(ptr noundef %7)
store i32 %8, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %9
9: ; preds = %50, %0
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %53
13: ; preds = %9
%14 = load ptr, ptr %2, align 8
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = sub nsw i32 %19, 48
%21 = icmp sge i32 %20, 48
br i1 %21, label %22, label %33
22: ; preds = %13
%23 = load ptr, ptr %2, align 8
%24 = load i32, ptr %5, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = sub nsw i32 %28, 48
%30 = icmp sle i32 %29, 57
br i1 %30, label %31, label %33
31: ; preds = %22
%32 = call i32 @printf(ptr noundef @.str)
store i32 -1, ptr %1, align 4
br label %55
33: ; preds = %22, %13
%34 = load ptr, ptr %2, align 8
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = sub nsw i32 %39, 48
%41 = load i32, ptr %3, align 4
%42 = sub nsw i32 %41, 1
%43 = load i32, ptr %5, align 4
%44 = sub nsw i32 %42, %43
%45 = call signext i8 @expo(i32 noundef 10, i32 noundef %44)
%46 = sext i8 %45 to i32
%47 = mul nsw i32 %40, %46
%48 = load i32, ptr %4, align 4
%49 = add nsw i32 %48, %47
store i32 %49, ptr %4, align 4
br label %50
50: ; preds = %33
%51 = load i32, ptr %5, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %5, align 4
br label %9, !llvm.loop !6
53: ; preds = %9
%54 = load i32, ptr %4, align 4
store i32 %54, ptr %1, align 4
br label %55
55: ; preds = %53, %31
%56 = load i32, ptr %1, align 4
ret i32 %56
}
declare ptr @getStr(...) #1
declare i32 @length(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare signext i8 @expo(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/tmpb5iy3s1m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"Invalid Input!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getInt() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = call ptr (...) @getStr()
store ptr %6, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @length(ptr noundef %7)
store i32 %8, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %55
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %49
%13 = load ptr, ptr %2, align 8
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = sub nsw i32 %18, 48
%20 = icmp sge i32 %19, 48
br i1 %20, label %21, label %32
21: ; preds = %12
%22 = load ptr, ptr %2, align 8
%23 = load i32, ptr %5, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = sub nsw i32 %27, 48
%29 = icmp sle i32 %28, 57
br i1 %29, label %30, label %32
30: ; preds = %21
%31 = call i32 @printf(ptr noundef @.str)
store i32 -1, ptr %1, align 4
br label %57
32: ; preds = %21, %12
%33 = load ptr, ptr %2, align 8
%34 = load i32, ptr %5, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = sub nsw i32 %38, 48
%40 = load i32, ptr %3, align 4
%41 = sub nsw i32 %40, 1
%42 = load i32, ptr %5, align 4
%43 = sub nsw i32 %41, %42
%44 = call signext i8 @expo(i32 noundef 10, i32 noundef %43)
%45 = sext i8 %44 to i32
%46 = mul nsw i32 %39, %45
%47 = load i32, ptr %4, align 4
%48 = add nsw i32 %47, %46
store i32 %48, ptr %4, align 4
br label %49
49: ; preds = %32
%50 = load i32, ptr %5, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %5, align 4
%52 = load i32, ptr %5, align 4
%53 = load i32, ptr %3, align 4
%54 = icmp slt i32 %52, %53
br i1 %54, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %49
br label %55
55: ; preds = %._crit_edge, %0
%56 = load i32, ptr %4, align 4
store i32 %56, ptr %1, align 4
br label %57
57: ; preds = %55, %30
%58 = load i32, ptr %1, align 4
ret i32 %58
}
declare ptr @getStr(...) #1
declare i32 @length(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare signext i8 @expo(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/tmp6o03bmqj.c'
source_filename = "/tmp/tmp6o03bmqj.c"
target datalayout = "e-m:e-p270: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.timespec = type { i32 }
@CLOCK_MONOTONIC = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [16 x i8] c"Loop on its own\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @loop_timer(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca %struct.timespec, align 4
%4 = alloca %struct.timespec, align 4
%5 = alloca i32, align 4
store i64 %0, ptr %2, align 8
%6 = load i32, ptr @CLOCK_MONOTONIC, align 4
%7 = call i32 @clock_gettime(i32 noundef %6, ptr noundef %3)
store i32 0, ptr %5, align 4
br label %8
8: ; preds = %14, %1
%9 = load i32, ptr %5, align 4
%10 = sext i32 %9 to i64
%11 = load i64, ptr %2, align 8
%12 = icmp ult i64 %10, %11
br i1 %12, label %13, label %17
13: ; preds = %8
br label %14
14: ; preds = %13
%15 = load i32, ptr %5, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %5, align 4
br label %8, !llvm.loop !6
17: ; preds = %8
%18 = load i32, ptr @CLOCK_MONOTONIC, align 4
%19 = call i32 @clock_gettime(i32 noundef %18, ptr noundef %4)
%20 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 0
%21 = load i32, ptr %20, align 4
%22 = getelementptr inbounds %struct.timespec, ptr %4, i32 0, i32 0
%23 = load i32, ptr %22, align 4
%24 = call i32 @elapsed_time_hr(i32 %21, i32 %23, ptr noundef @.str)
ret void
}
declare i32 @clock_gettime(i32 noundef, ptr noundef) #1
declare i32 @elapsed_time_hr(i32, i32, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp6o03bmqj.c"
target datalayout = "e-m:e-p270: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.timespec = type { i32 }
@CLOCK_MONOTONIC = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [16 x i8] c"Loop on its own\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @loop_timer(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca %struct.timespec, align 4
%4 = alloca %struct.timespec, align 4
%5 = alloca i32, align 4
store i64 %0, ptr %2, align 8
%6 = load i32, ptr @CLOCK_MONOTONIC, align 4
%7 = call i32 @clock_gettime(i32 noundef %6, ptr noundef %3)
store i32 0, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = sext i32 %8 to i64
%10 = load i64, ptr %2, align 8
%11 = icmp ult i64 %9, %10
br i1 %11, label %.lr.ph, label %20
.lr.ph: ; preds = %1
br label %12
12: ; preds = %.lr.ph, %13
br label %13
13: ; preds = %12
%14 = load i32, ptr %5, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %5, align 4
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = load i64, ptr %2, align 8
%19 = icmp ult i64 %17, %18
br i1 %19, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %20
20: ; preds = %._crit_edge, %1
%21 = load i32, ptr @CLOCK_MONOTONIC, align 4
%22 = call i32 @clock_gettime(i32 noundef %21, ptr noundef %4)
%23 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 0
%24 = load i32, ptr %23, align 4
%25 = getelementptr inbounds %struct.timespec, ptr %4, i32 0, i32 0
%26 = load i32, ptr %25, align 4
%27 = call i32 @elapsed_time_hr(i32 %24, i32 %26, ptr noundef @.str)
ret void
}
declare i32 @clock_gettime(i32 noundef, ptr noundef) #1
declare i32 @elapsed_time_hr(i32, i32, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpqesv54op.c'
source_filename = "/tmp/tmpqesv54op.c"
target datalayout = "e-m:e-p270: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 }
@.str = private unnamed_addr constant [13 x i8] c"/dev/ttyACM0\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@O_NOCTTY = dso_local global i32 0, align 4
@O_SYNC = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [13 x i8] c"open failed\0A\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"Setting TIOCEXCL\0A\00", align 1
@TIOCEXCL = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [14 x i8] c"ioctl failed\0A\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"Getting tty\0A\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"tcgetattr failed\0A\00", align 1
@.str.6 = private unnamed_addr constant [21 x i8] c"Setting tty options\0A\00", align 1
@CLOCAL = dso_local global i32 0, align 4
@CRTSCTS = dso_local global i32 0, align 4
@B57600 = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [14 x i8] c"Flushing tty\0A\00", align 1
@TCIOFLUSH = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [16 x i8] c"tcflush failed\0A\00", align 1
@.str.9 = private unnamed_addr constant [13 x i8] c"Setting tty\0A\00", align 1
@TCSANOW = dso_local global i32 0, align 4
@.str.10 = private unnamed_addr constant [18 x i8] c"tcsetattr failed\0A\00", align 1
@.str.11 = private unnamed_addr constant [13 x i8] c"Writing ATZ\0A\00", align 1
@.str.12 = private unnamed_addr constant [5 x i8] c"ATZ\0D\00", align 1
@.str.13 = private unnamed_addr constant [14 x i8] c"write failed\0A\00", align 1
@.str.14 = private unnamed_addr constant [19 x i8] c"Waiting for write\0A\00", align 1
@.str.15 = private unnamed_addr constant [16 x i8] c"tcdrain failed\0A\00", align 1
@.str.16 = private unnamed_addr constant [12 x i8] c"Wrote: ATZ\0A\00", align 1
@.str.17 = private unnamed_addr constant [18 x i8] c"Reading response\0A\00", align 1
@errno = dso_local global i64 0, align 8
@EWOULDBLOCK = dso_local global i64 0, align 8
@.str.18 = private unnamed_addr constant [13 x i8] c"read failed\0A\00", align 1
@.str.19 = private unnamed_addr constant [10 x i8] c"Read: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %struct.termios, align 4
%8 = alloca i32, align 4
%9 = alloca [512 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr @O_RDWR, align 4
%11 = load i32, ptr @O_NOCTTY, align 4
%12 = or i32 %10, %11
%13 = load i32, ptr @O_SYNC, align 4
%14 = or i32 %12, %13
%15 = call i32 @open(ptr noundef @.str, i32 noundef %14)
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %20
18: ; preds = %2
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %110
20: ; preds = %2
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%22 = load i32, ptr %6, align 4
%23 = load i32, ptr @TIOCEXCL, align 4
%24 = call i32 @ioctl(i32 noundef %22, i32 noundef %23, ptr noundef null)
%25 = icmp eq i32 %24, -1
br i1 %25, label %26, label %28
26: ; preds = %20
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %110
28: ; preds = %20
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%30 = load i32, ptr %6, align 4
%31 = call i64 @tcgetattr(i32 noundef %30, ptr noundef %7)
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %35
33: ; preds = %28
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %110
35: ; preds = %28
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%37 = call i32 @cfmakeraw(ptr noundef %7)
%38 = load i32, ptr @CLOCAL, align 4
%39 = load i32, ptr @CRTSCTS, align 4
%40 = or i32 %38, %39
%41 = getelementptr inbounds %struct.termios, ptr %7, i32 0, i32 0
%42 = load i32, ptr %41, align 4
%43 = or i32 %42, %40
store i32 %43, ptr %41, align 4
%44 = load i32, ptr @B57600, align 4
%45 = call i32 @cfsetospeed(ptr noundef %7, i32 noundef %44)
%46 = load i32, ptr @B57600, align 4
%47 = call i32 @cfsetispeed(ptr noundef %7, i32 noundef %46)
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%49 = load i32, ptr %6, align 4
%50 = load i32, ptr @TCIOFLUSH, align 4
%51 = call i64 @tcflush(i32 noundef %49, i32 noundef %50)
%52 = icmp ne i64 %51, 0
br i1 %52, label %53, label %55
53: ; preds = %35
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %110
55: ; preds = %35
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%57 = load i32, ptr %6, align 4
%58 = load i32, ptr @TCSANOW, align 4
%59 = call i64 @tcsetattr(i32 noundef %57, i32 noundef %58, ptr noundef %7)
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %63
61: ; preds = %55
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %110
63: ; preds = %55
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%65 = load i32, ptr %6, align 4
%66 = call i32 @write(i32 noundef %65, ptr noundef @.str.12, i32 noundef 4)
store i32 %66, ptr %8, align 4
%67 = load i32, ptr %8, align 4
%68 = icmp eq i32 %67, -1
br i1 %68, label %69, label %71
69: ; preds = %63
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
br label %110
71: ; preds = %63
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
%73 = load i32, ptr %6, align 4
%74 = call i32 @tcdrain(i32 noundef %73)
store i32 %74, ptr %8, align 4
%75 = load i32, ptr %8, align 4
%76 = icmp eq i32 %75, -1
br i1 %76, label %77, label %79
77: ; preds = %71
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
br label %110
79: ; preds = %71
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
%82 = load i32, ptr %6, align 4
%83 = call i32 @make_blocking(i32 noundef %82)
br label %84
84: ; preds = %101, %79
%85 = load i32, ptr %6, align 4
%86 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%87 = call i32 @read(i32 noundef %85, ptr noundef %86, i32 noundef 512)
store i32 %87, ptr %8, align 4
%88 = load i32, ptr %8, align 4
%89 = icmp eq i32 %88, -1
br i1 %89, label %90, label %95
90: ; preds = %84
%91 = load i64, ptr @errno, align 8
%92 = load i64, ptr @EWOULDBLOCK, align 8
%93 = icmp eq i64 %91, %92
br i1 %93, label %94, label %95
94: ; preds = %90
br label %109
95: ; preds = %90, %84
%96 = load i32, ptr %8, align 4
%97 = icmp eq i32 %96, -1
br i1 %97, label %98, label %100
98: ; preds = %95
%99 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
br label %110
100: ; preds = %95
br label %101
101: ; preds = %100
%102 = load i32, ptr %6, align 4
%103 = call i32 @make_nonblocking(i32 noundef %102)
%104 = load i32, ptr %8, align 4
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 %105
store i8 0, ptr %106, align 1
%107 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%108 = call i32 (ptr, ...) @printf(ptr noundef @.str.19, ptr noundef %107)
br label %84
109: ; preds = %94
br label %110
110: ; preds = %109, %98, %77, %69, %61, %53, %33, %26, %18
%111 = load i32, ptr %6, align 4
%112 = icmp ne i32 %111, -1
br i1 %112, label %113, label %116
113: ; preds = %110
%114 = load i32, ptr %6, align 4
%115 = call i32 @close(i32 noundef %114)
br label %116
116: ; preds = %113, %110
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @tcgetattr(i32 noundef, ptr noundef) #1
declare i32 @cfmakeraw(ptr noundef) #1
declare i32 @cfsetospeed(ptr noundef, i32 noundef) #1
declare i32 @cfsetispeed(ptr noundef, i32 noundef) #1
declare i64 @tcflush(i32 noundef, i32 noundef) #1
declare i64 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @tcdrain(i32 noundef) #1
declare i32 @make_blocking(i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @make_nonblocking(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/tmpqesv54op.c"
target datalayout = "e-m:e-p270: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 }
@.str = private unnamed_addr constant [13 x i8] c"/dev/ttyACM0\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@O_NOCTTY = dso_local global i32 0, align 4
@O_SYNC = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [13 x i8] c"open failed\0A\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"Setting TIOCEXCL\0A\00", align 1
@TIOCEXCL = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [14 x i8] c"ioctl failed\0A\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"Getting tty\0A\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"tcgetattr failed\0A\00", align 1
@.str.6 = private unnamed_addr constant [21 x i8] c"Setting tty options\0A\00", align 1
@CLOCAL = dso_local global i32 0, align 4
@CRTSCTS = dso_local global i32 0, align 4
@B57600 = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [14 x i8] c"Flushing tty\0A\00", align 1
@TCIOFLUSH = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [16 x i8] c"tcflush failed\0A\00", align 1
@.str.9 = private unnamed_addr constant [13 x i8] c"Setting tty\0A\00", align 1
@TCSANOW = dso_local global i32 0, align 4
@.str.10 = private unnamed_addr constant [18 x i8] c"tcsetattr failed\0A\00", align 1
@.str.11 = private unnamed_addr constant [13 x i8] c"Writing ATZ\0A\00", align 1
@.str.12 = private unnamed_addr constant [5 x i8] c"ATZ\0D\00", align 1
@.str.13 = private unnamed_addr constant [14 x i8] c"write failed\0A\00", align 1
@.str.14 = private unnamed_addr constant [19 x i8] c"Waiting for write\0A\00", align 1
@.str.15 = private unnamed_addr constant [16 x i8] c"tcdrain failed\0A\00", align 1
@.str.16 = private unnamed_addr constant [12 x i8] c"Wrote: ATZ\0A\00", align 1
@.str.17 = private unnamed_addr constant [18 x i8] c"Reading response\0A\00", align 1
@errno = dso_local global i64 0, align 8
@EWOULDBLOCK = dso_local global i64 0, align 8
@.str.18 = private unnamed_addr constant [13 x i8] c"read failed\0A\00", align 1
@.str.19 = private unnamed_addr constant [10 x i8] c"Read: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %struct.termios, align 4
%8 = alloca i32, align 4
%9 = alloca [512 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr @O_RDWR, align 4
%11 = load i32, ptr @O_NOCTTY, align 4
%12 = or i32 %10, %11
%13 = load i32, ptr @O_SYNC, align 4
%14 = or i32 %12, %13
%15 = call i32 @open(ptr noundef @.str, i32 noundef %14)
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %20
18: ; preds = %2
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %110
20: ; preds = %2
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%22 = load i32, ptr %6, align 4
%23 = load i32, ptr @TIOCEXCL, align 4
%24 = call i32 @ioctl(i32 noundef %22, i32 noundef %23, ptr noundef null)
%25 = icmp eq i32 %24, -1
br i1 %25, label %26, label %28
26: ; preds = %20
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %110
28: ; preds = %20
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%30 = load i32, ptr %6, align 4
%31 = call i64 @tcgetattr(i32 noundef %30, ptr noundef %7)
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %35
33: ; preds = %28
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %110
35: ; preds = %28
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%37 = call i32 @cfmakeraw(ptr noundef %7)
%38 = load i32, ptr @CLOCAL, align 4
%39 = load i32, ptr @CRTSCTS, align 4
%40 = or i32 %38, %39
%41 = getelementptr inbounds %struct.termios, ptr %7, i32 0, i32 0
%42 = load i32, ptr %41, align 4
%43 = or i32 %42, %40
store i32 %43, ptr %41, align 4
%44 = load i32, ptr @B57600, align 4
%45 = call i32 @cfsetospeed(ptr noundef %7, i32 noundef %44)
%46 = load i32, ptr @B57600, align 4
%47 = call i32 @cfsetispeed(ptr noundef %7, i32 noundef %46)
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%49 = load i32, ptr %6, align 4
%50 = load i32, ptr @TCIOFLUSH, align 4
%51 = call i64 @tcflush(i32 noundef %49, i32 noundef %50)
%52 = icmp ne i64 %51, 0
br i1 %52, label %53, label %55
53: ; preds = %35
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %110
55: ; preds = %35
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%57 = load i32, ptr %6, align 4
%58 = load i32, ptr @TCSANOW, align 4
%59 = call i64 @tcsetattr(i32 noundef %57, i32 noundef %58, ptr noundef %7)
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %63
61: ; preds = %55
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %110
63: ; preds = %55
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%65 = load i32, ptr %6, align 4
%66 = call i32 @write(i32 noundef %65, ptr noundef @.str.12, i32 noundef 4)
store i32 %66, ptr %8, align 4
%67 = load i32, ptr %8, align 4
%68 = icmp eq i32 %67, -1
br i1 %68, label %69, label %71
69: ; preds = %63
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
br label %110
71: ; preds = %63
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
%73 = load i32, ptr %6, align 4
%74 = call i32 @tcdrain(i32 noundef %73)
store i32 %74, ptr %8, align 4
%75 = load i32, ptr %8, align 4
%76 = icmp eq i32 %75, -1
br i1 %76, label %77, label %79
77: ; preds = %71
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
br label %110
79: ; preds = %71
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
%82 = load i32, ptr %6, align 4
%83 = call i32 @make_blocking(i32 noundef %82)
br label %84
84: ; preds = %101, %79
%85 = load i32, ptr %6, align 4
%86 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%87 = call i32 @read(i32 noundef %85, ptr noundef %86, i32 noundef 512)
store i32 %87, ptr %8, align 4
%88 = load i32, ptr %8, align 4
%89 = icmp eq i32 %88, -1
br i1 %89, label %90, label %95
90: ; preds = %84
%91 = load i64, ptr @errno, align 8
%92 = load i64, ptr @EWOULDBLOCK, align 8
%93 = icmp eq i64 %91, %92
br i1 %93, label %94, label %95
94: ; preds = %90
br label %109
95: ; preds = %90, %84
%96 = load i32, ptr %8, align 4
%97 = icmp eq i32 %96, -1
br i1 %97, label %98, label %100
98: ; preds = %95
%99 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
br label %110
100: ; preds = %95
br label %101
101: ; preds = %100
%102 = load i32, ptr %6, align 4
%103 = call i32 @make_nonblocking(i32 noundef %102)
%104 = load i32, ptr %8, align 4
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 %105
store i8 0, ptr %106, align 1
%107 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%108 = call i32 (ptr, ...) @printf(ptr noundef @.str.19, ptr noundef %107)
br label %84
109: ; preds = %94
br label %110
110: ; preds = %109, %98, %77, %69, %61, %53, %33, %26, %18
%111 = load i32, ptr %6, align 4
%112 = icmp ne i32 %111, -1
br i1 %112, label %113, label %116
113: ; preds = %110
%114 = load i32, ptr %6, align 4
%115 = call i32 @close(i32 noundef %114)
br label %116
116: ; preds = %113, %110
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @tcgetattr(i32 noundef, ptr noundef) #1
declare i32 @cfmakeraw(ptr noundef) #1
declare i32 @cfsetospeed(ptr noundef, i32 noundef) #1
declare i32 @cfsetispeed(ptr noundef, i32 noundef) #1
declare i64 @tcflush(i32 noundef, i32 noundef) #1
declare i64 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @tcdrain(i32 noundef) #1
declare i32 @make_blocking(i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @make_nonblocking(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/tmpf1wfcb67.c'
source_filename = "/tmp/tmpf1wfcb67.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%-4s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @implicit(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [256 x i8], align 16
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%10 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%11 = load ptr, ptr %8, align 8
%12 = call i32 @sprintf(ptr noundef %10, ptr noundef @.str, ptr noundef %11)
%13 = load ptr, ptr %5, align 8
%14 = load i64, ptr %6, align 8
%15 = load ptr, ptr %7, align 8
%16 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%17 = call i32 @lineprint1(ptr noundef %13, i64 noundef %14, ptr noundef %15, ptr noundef %16)
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @lineprint1(ptr noundef, i64 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf1wfcb67.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%-4s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @implicit(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [256 x i8], align 16
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%10 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%11 = load ptr, ptr %8, align 8
%12 = call i32 @sprintf(ptr noundef %10, ptr noundef @.str, ptr noundef %11)
%13 = load ptr, ptr %5, align 8
%14 = load i64, ptr %6, align 8
%15 = load ptr, ptr %7, align 8
%16 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%17 = call i32 @lineprint1(ptr noundef %13, i64 noundef %14, ptr noundef %15, ptr noundef %16)
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @lineprint1(ptr noundef, i64 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpf4xm9kq0.c'
source_filename = "/tmp/tmpf4xm9kq0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ft_itoa(i64 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
store i64 %0, ptr %3, align 8
%5 = call i64 @ft_memalloc(i32 noundef 22)
%6 = inttoptr i64 %5 to ptr
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = getelementptr inbounds i8, ptr %7, i64 21
store ptr %8, ptr %4, align 8
%9 = load i64, ptr %3, align 8
%10 = icmp sge i64 %9, 0
br i1 %10, label %11, label %34
11: ; preds = %1
%12 = load i64, ptr %3, align 8
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %19
14: ; preds = %11
%15 = load i64, ptr %3, align 8
%16 = add nsw i64 %15, 48
%17 = trunc i64 %16 to i8
%18 = load ptr, ptr %4, align 8
store i8 %17, ptr %18, align 1
br label %19
19: ; preds = %14, %11
br label %20
20: ; preds = %23, %19
%21 = load i64, ptr %3, align 8
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %32
23: ; preds = %20
%24 = load i64, ptr %3, align 8
%25 = srem i64 %24, 10
%26 = add nsw i64 48, %25
%27 = trunc i64 %26 to i8
%28 = load ptr, ptr %4, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 -1
store ptr %29, ptr %4, align 8
store i8 %27, ptr %29, align 1
%30 = load i64, ptr %3, align 8
%31 = sdiv i64 %30, 10
store i64 %31, ptr %3, align 8
br label %20, !llvm.loop !6
32: ; preds = %20
%33 = load ptr, ptr %4, align 8
store ptr %33, ptr %2, align 8
br label %52
34: ; preds = %1
br label %35
35: ; preds = %38, %34
%36 = load i64, ptr %3, align 8
%37 = icmp ne i64 %36, 0
br i1 %37, label %38, label %47
38: ; preds = %35
%39 = load i64, ptr %3, align 8
%40 = srem i64 %39, 10
%41 = sub nsw i64 48, %40
%42 = trunc i64 %41 to i8
%43 = load ptr, ptr %4, align 8
%44 = getelementptr inbounds i8, ptr %43, i32 -1
store ptr %44, ptr %4, align 8
store i8 %42, ptr %44, align 1
%45 = load i64, ptr %3, align 8
%46 = sdiv i64 %45, 10
store i64 %46, ptr %3, align 8
br label %35, !llvm.loop !8
47: ; preds = %35
%48 = load ptr, ptr %4, align 8
%49 = getelementptr inbounds i8, ptr %48, i32 -1
store ptr %49, ptr %4, align 8
store i8 45, ptr %49, align 1
br label %50
50: ; preds = %47
%51 = load ptr, ptr %4, align 8
store ptr %51, ptr %2, align 8
br label %52
52: ; preds = %50, %32
%53 = load ptr, ptr %2, align 8
ret ptr %53
}
declare i64 @ft_memalloc(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/tmpf4xm9kq0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ft_itoa(i64 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
store i64 %0, ptr %3, align 8
%5 = call i64 @ft_memalloc(i32 noundef 22)
%6 = inttoptr i64 %5 to ptr
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = getelementptr inbounds i8, ptr %7, i64 21
store ptr %8, ptr %4, align 8
%9 = load i64, ptr %3, align 8
%10 = icmp sge i64 %9, 0
br i1 %10, label %11, label %35
11: ; preds = %1
%12 = load i64, ptr %3, align 8
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %19
14: ; preds = %11
%15 = load i64, ptr %3, align 8
%16 = add nsw i64 %15, 48
%17 = trunc i64 %16 to i8
%18 = load ptr, ptr %4, align 8
store i8 %17, ptr %18, align 1
br label %19
19: ; preds = %14, %11
%20 = load i64, ptr %3, align 8
%21 = icmp ne i64 %20, 0
br i1 %21, label %.lr.ph2, label %33
.lr.ph2: ; preds = %19
br label %22
22: ; preds = %.lr.ph2, %22
%23 = load i64, ptr %3, align 8
%24 = srem i64 %23, 10
%25 = add nsw i64 48, %24
%26 = trunc i64 %25 to i8
%27 = load ptr, ptr %4, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 -1
store ptr %28, ptr %4, align 8
store i8 %26, ptr %28, align 1
%29 = load i64, ptr %3, align 8
%30 = sdiv i64 %29, 10
store i64 %30, ptr %3, align 8
%31 = load i64, ptr %3, align 8
%32 = icmp ne i64 %31, 0
br i1 %32, label %22, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %22
br label %33
33: ; preds = %._crit_edge3, %19
%34 = load ptr, ptr %4, align 8
store ptr %34, ptr %2, align 8
br label %54
35: ; preds = %1
%36 = load i64, ptr %3, align 8
%37 = icmp ne i64 %36, 0
br i1 %37, label %.lr.ph, label %49
.lr.ph: ; preds = %35
br label %38
38: ; preds = %.lr.ph, %38
%39 = load i64, ptr %3, align 8
%40 = srem i64 %39, 10
%41 = sub nsw i64 48, %40
%42 = trunc i64 %41 to i8
%43 = load ptr, ptr %4, align 8
%44 = getelementptr inbounds i8, ptr %43, i32 -1
store ptr %44, ptr %4, align 8
store i8 %42, ptr %44, align 1
%45 = load i64, ptr %3, align 8
%46 = sdiv i64 %45, 10
store i64 %46, ptr %3, align 8
%47 = load i64, ptr %3, align 8
%48 = icmp ne i64 %47, 0
br i1 %48, label %38, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %38
br label %49
49: ; preds = %._crit_edge, %35
%50 = load ptr, ptr %4, align 8
%51 = getelementptr inbounds i8, ptr %50, i32 -1
store ptr %51, ptr %4, align 8
store i8 45, ptr %51, align 1
br label %52
52: ; preds = %49
%53 = load ptr, ptr %4, align 8
store ptr %53, ptr %2, align 8
br label %54
54: ; preds = %52, %33
%55 = load ptr, ptr %2, align 8
ret ptr %55
}
declare i64 @ft_memalloc(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/tmpfvfq_x9x.c'
source_filename = "/tmp/tmpfvfq_x9x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%d %d %d\00", align 1
@.str.1 = private unnamed_addr constant [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
store i32 0, ptr %1, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%7 = load i32, ptr %2, align 4
%8 = icmp sle i32 %7, 5
br i1 %8, label %9, label %13
9: ; preds = %0
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr %4, align 4
%12 = mul nsw i32 %10, %11
store i32 %12, ptr %5, align 4
br label %21
13: ; preds = %0
%14 = load i32, ptr %4, align 4
%15 = mul nsw i32 5, %14
%16 = load i32, ptr %2, align 4
%17 = sub nsw i32 %16, 5
%18 = load i32, ptr %3, align 4
%19 = mul nsw i32 %17, %18
%20 = add nsw i32 %15, %19
store i32 %20, ptr %5, align 4
br label %21
21: ; preds = %13, %9
%22 = load i32, ptr %5, align 4
%23 = call i32 @printf(ptr noundef @.str.1, i32 noundef %22)
ret i32 0
}
declare i32 @scanf(ptr noundef, 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfvfq_x9x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%d %d %d\00", align 1
@.str.1 = private unnamed_addr constant [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
store i32 0, ptr %1, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%7 = load i32, ptr %2, align 4
%8 = icmp sle i32 %7, 5
br i1 %8, label %9, label %13
9: ; preds = %0
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr %4, align 4
%12 = mul nsw i32 %10, %11
store i32 %12, ptr %5, align 4
br label %21
13: ; preds = %0
%14 = load i32, ptr %4, align 4
%15 = mul nsw i32 5, %14
%16 = load i32, ptr %2, align 4
%17 = sub nsw i32 %16, 5
%18 = load i32, ptr %3, align 4
%19 = mul nsw i32 %17, %18
%20 = add nsw i32 %15, %19
store i32 %20, ptr %5, align 4
br label %21
21: ; preds = %13, %9
%22 = load i32, ptr %5, align 4
%23 = call i32 @printf(ptr noundef @.str.1, i32 noundef %22)
ret i32 0
}
declare i32 @scanf(ptr noundef, 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"}
|
; ModuleID = '/tmp/tmpbf0agomi.c'
source_filename = "/tmp/tmpbf0agomi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_GETFL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [14 x i8] c"fcntl F_GETFL\00", align 1
@F_SETFL = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [14 x i8] c"fcntl F_SETFL\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @set_fl(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr @F_GETFL, align 4
%9 = call i32 @fcntl(i32 noundef %7, i32 noundef %8, i32 noundef 0)
store i32 %9, ptr %6, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp eq i32 %10, -1
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %26
14: ; preds = %2
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr %6, align 4
%17 = or i32 %16, %15
store i32 %17, ptr %6, align 4
%18 = load i32, ptr %4, align 4
%19 = load i32, ptr @F_SETFL, align 4
%20 = load i32, ptr %6, align 4
%21 = call i32 @fcntl(i32 noundef %18, i32 noundef %19, i32 noundef %20)
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %25
23: ; preds = %14
%24 = call i32 @perror(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %26
25: ; preds = %14
store i32 0, ptr %3, align 4
br label %26
26: ; preds = %25, %23, %12
%27 = load i32, ptr %3, align 4
ret i32 %27
}
declare i32 @fcntl(i32 noundef, i32 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/tmpbf0agomi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_GETFL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [14 x i8] c"fcntl F_GETFL\00", align 1
@F_SETFL = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [14 x i8] c"fcntl F_SETFL\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @set_fl(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr @F_GETFL, align 4
%9 = call i32 @fcntl(i32 noundef %7, i32 noundef %8, i32 noundef 0)
store i32 %9, ptr %6, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp eq i32 %10, -1
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %26
14: ; preds = %2
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr %6, align 4
%17 = or i32 %16, %15
store i32 %17, ptr %6, align 4
%18 = load i32, ptr %4, align 4
%19 = load i32, ptr @F_SETFL, align 4
%20 = load i32, ptr %6, align 4
%21 = call i32 @fcntl(i32 noundef %18, i32 noundef %19, i32 noundef %20)
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %25
23: ; preds = %14
%24 = call i32 @perror(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %26
25: ; preds = %14
store i32 0, ptr %3, align 4
br label %26
26: ; preds = %25, %23, %12
%27 = load i32, ptr %3, align 4
ret i32 %27
}
declare i32 @fcntl(i32 noundef, i32 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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.