llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmpuxunpsh_.c'
source_filename = "/tmp/tmpuxunpsh_.c"
target datalayout = "e-m:e-p270: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/tmpuxunpsh_.c"
target datalayout = "e-m:e-p270: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/tmpdsna0vge.c'
source_filename = "/tmp/tmpdsna0vge.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [49 x i8] c"Enter the number to triangular number required: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"%dth triangular number is: %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %4)
store i32 1, ptr %3, align 4
br label %7
7: ; preds = %15, %0
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp sle i32 %8, %9
br i1 %10, label %11, label %18
11: ; preds = %7
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %2, align 4
%14 = add nsw i32 %13, %12
store i32 %14, ptr %2, align 4
br label %15
15: ; preds = %11
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %3, align 4
br label %7, !llvm.loop !6
18: ; preds = %7
%19 = load i32, ptr %4, align 4
%20 = load i32, ptr %2, align 4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %19, i32 noundef %20)
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdsna0vge.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [49 x i8] c"Enter the number to triangular number required: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"%dth triangular number is: %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %4)
store i32 1, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp sle i32 %7, %8
br i1 %9, label %.lr.ph, label %20
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %14
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %2, align 4
%13 = add nsw i32 %12, %11
store i32 %13, ptr %2, align 4
br label %14
14: ; preds = %10
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %3, align 4
%17 = load i32, ptr %3, align 4
%18 = load i32, ptr %4, align 4
%19 = icmp sle i32 %17, %18
br i1 %19, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %20
20: ; preds = %._crit_edge, %0
%21 = load i32, ptr %4, align 4
%22 = load i32, ptr %2, align 4
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %21, i32 noundef %22)
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"}
|
; ModuleID = '/tmp/tmp3_67iq62.c'
source_filename = "/tmp/tmp3_67iq62.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"/usr/share/games/gltron\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [38 x i8] c"Couldn't change to install directory\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @goto_installpath(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i64 @chdir(ptr noundef @.str)
%4 = icmp slt i64 %3, 0
br i1 %4, label %5, label %9
5: ; preds = %1
%6 = load i32, ptr @stderr, align 4
%7 = call i32 @fprintf(i32 noundef %6, ptr noundef @.str.1)
%8 = call i32 @exit(i32 noundef 1) #3
unreachable
9: ; preds = %1
ret void
}
declare i64 @chdir(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3_67iq62.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"/usr/share/games/gltron\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [38 x i8] c"Couldn't change to install directory\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @goto_installpath(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i64 @chdir(ptr noundef @.str)
%4 = icmp slt i64 %3, 0
br i1 %4, label %5, label %9
5: ; preds = %1
%6 = load i32, ptr @stderr, align 4
%7 = call i32 @fprintf(i32 noundef %6, ptr noundef @.str.1)
%8 = call i32 @exit(i32 noundef 1) #3
unreachable
9: ; preds = %1
ret void
}
declare i64 @chdir(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp_kxnc26.c'
source_filename = "/tmp/tmpp_kxnc26.c"
target datalayout = "e-m:e-p270: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/tmpp_kxnc26.c"
target datalayout = "e-m:e-p270: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/tmppouzrtvu.c'
source_filename = "/tmp/tmppouzrtvu.c"
target datalayout = "e-m:e-p270: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/tmppouzrtvu.c"
target datalayout = "e-m:e-p270: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/tmp47y0p_fj.c'
source_filename = "/tmp/tmp47y0p_fj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__scroll_up(i8 noundef signext %0, i8 noundef signext %1, i8 noundef signext %2, i8 noundef signext %3, i8 noundef signext %4, i8 noundef signext %5) #0 {
%7 = alloca i8, align 1
%8 = alloca i8, align 1
%9 = alloca i8, align 1
%10 = alloca i8, align 1
%11 = alloca i8, align 1
%12 = alloca i8, align 1
%13 = alloca i8, align 1
store i8 %0, ptr %7, align 1
store i8 %1, ptr %8, align 1
store i8 %2, ptr %9, align 1
store i8 %3, ptr %10, align 1
store i8 %4, ptr %11, align 1
store i8 %5, ptr %12, align 1
%14 = load i8, ptr %7, align 1
store i8 %14, ptr %13, align 1
br label %15
15: ; preds = %49, %6
%16 = load i8, ptr %13, align 1
%17 = sext i8 %16 to i32
%18 = load i8, ptr %8, align 1
%19 = sext i8 %18 to i32
%20 = icmp sle i32 %17, %19
br i1 %20, label %21, label %52
21: ; preds = %15
%22 = load i8, ptr %13, align 1
%23 = sext i8 %22 to i32
%24 = load i8, ptr %12, align 1
%25 = sext i8 %24 to i32
%26 = add nsw i32 %23, %25
%27 = load i8, ptr %8, align 1
%28 = sext i8 %27 to i32
%29 = icmp sgt i32 %26, %28
br i1 %29, label %30, label %36
30: ; preds = %21
%31 = load i8, ptr %13, align 1
%32 = load i8, ptr %9, align 1
%33 = load i8, ptr %10, align 1
%34 = load i8, ptr %11, align 1
%35 = call i32 @clear_row(i8 noundef signext %31, i8 noundef signext %32, i8 noundef signext %33, i8 noundef signext %34)
br label %48
36: ; preds = %21
%37 = load i8, ptr %13, align 1
%38 = load i8, ptr %13, align 1
%39 = sext i8 %38 to i32
%40 = load i8, ptr %12, align 1
%41 = sext i8 %40 to i32
%42 = add nsw i32 %39, %41
%43 = trunc i32 %42 to i8
%44 = load i8, ptr %9, align 1
%45 = load i8, ptr %10, align 1
%46 = load i8, ptr %11, align 1
%47 = call i32 @copy_row(i8 noundef signext %37, i8 noundef signext %43, i8 noundef signext %44, i8 noundef signext %45, i8 noundef signext %46)
br label %48
48: ; preds = %36, %30
br label %49
49: ; preds = %48
%50 = load i8, ptr %13, align 1
%51 = add i8 %50, 1
store i8 %51, ptr %13, align 1
br label %15, !llvm.loop !6
52: ; preds = %15
ret void
}
declare i32 @clear_row(i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext) #1
declare i32 @copy_row(i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp47y0p_fj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__scroll_up(i8 noundef signext %0, i8 noundef signext %1, i8 noundef signext %2, i8 noundef signext %3, i8 noundef signext %4, i8 noundef signext %5) #0 {
%7 = alloca i8, align 1
%8 = alloca i8, align 1
%9 = alloca i8, align 1
%10 = alloca i8, align 1
%11 = alloca i8, align 1
%12 = alloca i8, align 1
%13 = alloca i8, align 1
store i8 %0, ptr %7, align 1
store i8 %1, ptr %8, align 1
store i8 %2, ptr %9, align 1
store i8 %3, ptr %10, align 1
store i8 %4, ptr %11, align 1
store i8 %5, ptr %12, align 1
%14 = load i8, ptr %7, align 1
store i8 %14, ptr %13, align 1
%15 = load i8, ptr %13, align 1
%16 = sext i8 %15 to i32
%17 = load i8, ptr %8, align 1
%18 = sext i8 %17 to i32
%19 = icmp sle i32 %16, %18
br i1 %19, label %.lr.ph, label %56
.lr.ph: ; preds = %6
br label %20
20: ; preds = %.lr.ph, %48
%21 = load i8, ptr %13, align 1
%22 = sext i8 %21 to i32
%23 = load i8, ptr %12, align 1
%24 = sext i8 %23 to i32
%25 = add nsw i32 %22, %24
%26 = load i8, ptr %8, align 1
%27 = sext i8 %26 to i32
%28 = icmp sgt i32 %25, %27
br i1 %28, label %29, label %35
29: ; preds = %20
%30 = load i8, ptr %13, align 1
%31 = load i8, ptr %9, align 1
%32 = load i8, ptr %10, align 1
%33 = load i8, ptr %11, align 1
%34 = call i32 @clear_row(i8 noundef signext %30, i8 noundef signext %31, i8 noundef signext %32, i8 noundef signext %33)
br label %47
35: ; preds = %20
%36 = load i8, ptr %13, align 1
%37 = load i8, ptr %13, align 1
%38 = sext i8 %37 to i32
%39 = load i8, ptr %12, align 1
%40 = sext i8 %39 to i32
%41 = add nsw i32 %38, %40
%42 = trunc i32 %41 to i8
%43 = load i8, ptr %9, align 1
%44 = load i8, ptr %10, align 1
%45 = load i8, ptr %11, align 1
%46 = call i32 @copy_row(i8 noundef signext %36, i8 noundef signext %42, i8 noundef signext %43, i8 noundef signext %44, i8 noundef signext %45)
br label %47
47: ; preds = %35, %29
br label %48
48: ; preds = %47
%49 = load i8, ptr %13, align 1
%50 = add i8 %49, 1
store i8 %50, ptr %13, align 1
%51 = load i8, ptr %13, align 1
%52 = sext i8 %51 to i32
%53 = load i8, ptr %8, align 1
%54 = sext i8 %53 to i32
%55 = icmp sle i32 %52, %54
br i1 %55, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %48
br label %56
56: ; preds = %._crit_edge, %6
ret void
}
declare i32 @clear_row(i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext) #1
declare i32 @copy_row(i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpbd2zxqnp.c'
source_filename = "/tmp/tmpbd2zxqnp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [51 x i8] c"DONE\0ADONE\0ADONE\0ADONE\0ADONE\0ADONE\0ADONE\0ADONE\0ADONE\0ADONE\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @print_done_without_loop_and_condition() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @printf(ptr noundef @.str)
%5 = call i32 @printf(ptr noundef @.str)
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 @printf(ptr noundef @.str)
%8 = call i32 @printf(ptr noundef @.str)
%9 = call i32 @printf(ptr noundef @.str)
%10 = call i32 @printf(ptr noundef @.str)
%11 = call i32 @printf(ptr noundef @.str)
%12 = load i32, ptr %1, align 4
ret i32 %12
}
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/tmpbd2zxqnp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [51 x i8] c"DONE\0ADONE\0ADONE\0ADONE\0ADONE\0ADONE\0ADONE\0ADONE\0ADONE\0ADONE\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @print_done_without_loop_and_condition() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @printf(ptr noundef @.str)
%5 = call i32 @printf(ptr noundef @.str)
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 @printf(ptr noundef @.str)
%8 = call i32 @printf(ptr noundef @.str)
%9 = call i32 @printf(ptr noundef @.str)
%10 = call i32 @printf(ptr noundef @.str)
%11 = call i32 @printf(ptr noundef @.str)
%12 = load i32, ptr %1, align 4
ret i32 %12
}
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/tmp6qa2tqyc.c'
source_filename = "/tmp/tmp6qa2tqyc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @u64_b4(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = sext i32 %3 to i64
%5 = and i64 %4, 1095216660480
%6 = ashr i64 %5, 32
%7 = trunc i64 %6 to i32
ret i32 %7
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6qa2tqyc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @u64_b4(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = sext i32 %3 to i64
%5 = and i64 %4, 1095216660480
%6 = ashr i64 %5, 32
%7 = trunc i64 %6 to i32
ret i32 %7
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3ud1a2vr.c'
source_filename = "/tmp/tmp3ud1a2vr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Diss_Index_GetOpcodeCountForInstruction(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i8, align 1
%5 = alloca i8, align 1
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca i8, align 1
%9 = alloca i8, align 1
%10 = alloca i8, align 1
%11 = alloca i8, align 1
store i32 %0, ptr %3, align 4
%12 = load i32, ptr %3, align 4
%13 = call zeroext i8 @Z80_RD_MEM(i32 noundef %12)
store i8 %13, ptr %4, align 1
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %3, align 4
%16 = load i8, ptr %4, align 1
%17 = zext i8 %16 to i32
switch i32 %17, label %20 [
i32 221, label %18
i32 253, label %18
i32 237, label %18
i32 203, label %19
]
18: ; preds = %1, %1, %1
store i32 1, ptr %2, align 4
br label %219
19: ; preds = %1
store i32 4, ptr %2, align 4
br label %219
20: ; preds = %1
%21 = load i8, ptr %4, align 1
%22 = zext i8 %21 to i32
%23 = and i32 %22, 192
switch i32 %23, label %217 [
i32 0, label %24
i32 64, label %95
i32 128, label %136
i32 192, label %150
]
24: ; preds = %20
%25 = load i8, ptr %4, align 1
%26 = zext i8 %25 to i32
%27 = and i32 %26, 7
switch i32 %27, label %93 [
i32 1, label %28
i32 2, label %45
i32 3, label %53
i32 4, label %63
i32 5, label %63
i32 6, label %78
]
28: ; preds = %24
%29 = load i8, ptr %4, align 1
%30 = zext i8 %29 to i32
%31 = and i32 %30, 8
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %28
store i32 2, ptr %2, align 4
br label %219
34: ; preds = %28
%35 = load i8, ptr %4, align 1
%36 = zext i8 %35 to i32
%37 = ashr i32 %36, 4
%38 = and i32 %37, 3
%39 = trunc i32 %38 to i8
%40 = call i32 @Diss_Index_IsRegIndex(i8 noundef zeroext %39)
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %43
42: ; preds = %34
store i32 4, ptr %2, align 4
br label %219
43: ; preds = %34
br label %44
44: ; preds = %43
br label %94
45: ; preds = %24
%46 = load i8, ptr %4, align 1
%47 = zext i8 %46 to i32
%48 = ashr i32 %47, 4
%49 = and i32 %48, 3
switch i32 %49, label %51 [
i32 2, label %50
]
50: ; preds = %45
store i32 4, ptr %2, align 4
br label %219
51: ; preds = %45
br label %52
52: ; preds = %51
br label %94
53: ; preds = %24
%54 = load i8, ptr %4, align 1
%55 = zext i8 %54 to i32
%56 = ashr i32 %55, 4
%57 = and i32 %56, 3
%58 = trunc i32 %57 to i8
%59 = call i32 @Diss_Index_IsRegIndex(i8 noundef zeroext %58)
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %62
61: ; preds = %53
store i32 2, ptr %2, align 4
br label %219
62: ; preds = %53
br label %94
63: ; preds = %24, %24
%64 = load i8, ptr %4, align 1
%65 = zext i8 %64 to i32
%66 = ashr i32 %65, 3
%67 = and i32 %66, 7
%68 = trunc i32 %67 to i8
store i8 %68, ptr %5, align 1
%69 = load i8, ptr %5, align 1
%70 = call i32 @Diss_Index_IsReg8Bit(i8 noundef zeroext %69)
%71 = icmp ne i32 %70, 0
br i1 %71, label %72, label %77
72: ; preds = %63
%73 = load i8, ptr %5, align 1
%74 = call zeroext i8 @Diss_Index_Get8BitRegCount(i8 noundef zeroext %73)
%75 = zext i8 %74 to i32
%76 = add nsw i32 %75, 1
store i32 %76, ptr %2, align 4
br label %219
77: ; preds = %63
br label %94
78: ; preds = %24
%79 = load i8, ptr %4, align 1
%80 = zext i8 %79 to i32
%81 = ashr i32 %80, 3
%82 = and i32 %81, 7
%83 = trunc i32 %82 to i8
store i8 %83, ptr %6, align 1
%84 = load i8, ptr %6, align 1
%85 = call i32 @Diss_Index_IsReg8Bit(i8 noundef zeroext %84)
%86 = icmp ne i32 %85, 0
br i1 %86, label %87, label %92
87: ; preds = %78
%88 = load i8, ptr %6, align 1
%89 = call zeroext i8 @Diss_Index_Get8BitRegCount(i8 noundef zeroext %88)
%90 = zext i8 %89 to i32
%91 = add nsw i32 %90, 2
store i32 %91, ptr %2, align 4
br label %219
92: ; preds = %78
br label %94
93: ; preds = %24
br label %94
94: ; preds = %93, %92, %77, %62, %52, %44
br label %217
95: ; preds = %20
%96 = load i8, ptr %4, align 1
%97 = zext i8 %96 to i32
%98 = icmp ne i32 %97, 118
br i1 %98, label %99, label %135
99: ; preds = %95
%100 = load i8, ptr %4, align 1
%101 = zext i8 %100 to i32
%102 = ashr i32 %101, 3
%103 = and i32 %102, 7
%104 = trunc i32 %103 to i8
store i8 %104, ptr %7, align 1
%105 = load i8, ptr %4, align 1
%106 = zext i8 %105 to i32
%107 = and i32 %106, 7
%108 = trunc i32 %107 to i8
store i8 %108, ptr %8, align 1
%109 = load i8, ptr %7, align 1
%110 = call i32 @Diss_Index_IsReg8Bit(i8 noundef zeroext %109)
%111 = icmp ne i32 %110, 0
br i1 %111, label %116, label %112
112: ; preds = %99
%113 = load i8, ptr %8, align 1
%114 = call i32 @Diss_Index_IsReg8Bit(i8 noundef zeroext %113)
%115 = icmp ne i32 %114, 0
br i1 %115, label %116, label %134
116: ; preds = %112, %99
%117 = load i8, ptr %7, align 1
%118 = call zeroext i8 @Diss_Index_Get8BitRegCount(i8 noundef zeroext %117)
store i8 %118, ptr %9, align 1
%119 = load i8, ptr %8, align 1
%120 = call zeroext i8 @Diss_Index_Get8BitRegCount(i8 noundef zeroext %119)
store i8 %120, ptr %10, align 1
%121 = load i8, ptr %9, align 1
%122 = zext i8 %121 to i32
%123 = load i8, ptr %10, align 1
%124 = zext i8 %123 to i32
%125 = icmp slt i32 %122, %124
br i1 %125, label %126, label %130
126: ; preds = %116
%127 = load i8, ptr %10, align 1
%128 = zext i8 %127 to i32
%129 = add nsw i32 %128, 1
store i32 %129, ptr %2, align 4
br label %219
130: ; preds = %116
%131 = load i8, ptr %9, align 1
%132 = zext i8 %131 to i32
%133 = add nsw i32 %132, 1
store i32 %133, ptr %2, align 4
br label %219
134: ; preds = %112
br label %135
135: ; preds = %134, %95
br label %217
136: ; preds = %20
%137 = load i8, ptr %4, align 1
%138 = zext i8 %137 to i32
%139 = and i32 %138, 7
%140 = trunc i32 %139 to i8
store i8 %140, ptr %11, align 1
%141 = load i8, ptr %11, align 1
%142 = call i32 @Diss_Index_IsReg8Bit(i8 noundef zeroext %141)
%143 = icmp ne i32 %142, 0
br i1 %143, label %144, label %149
144: ; preds = %136
%145 = load i8, ptr %11, align 1
%146 = call zeroext i8 @Diss_Index_Get8BitRegCount(i8 noundef zeroext %145)
%147 = zext i8 %146 to i32
%148 = add nsw i32 %147, 1
store i32 %148, ptr %2, align 4
br label %219
149: ; preds = %136
br label %217
150: ; preds = %20
%151 = load i8, ptr %4, align 1
%152 = zext i8 %151 to i32
%153 = and i32 %152, 7
switch i32 %153, label %215 [
i32 1, label %154
i32 3, label %180
i32 5, label %199
]
154: ; preds = %150
%155 = load i8, ptr %4, align 1
%156 = zext i8 %155 to i32
%157 = and i32 %156, 8
%158 = icmp eq i32 %157, 0
br i1 %158, label %159, label %169
159: ; preds = %154
%160 = load i8, ptr %4, align 1
%161 = zext i8 %160 to i32
%162 = ashr i32 %161, 4
%163 = and i32 %162, 3
%164 = trunc i32 %163 to i8
%165 = call i32 @Diss_Index_IsRegIndex(i8 noundef zeroext %164)
%166 = icmp ne i32 %165, 0
br i1 %166, label %167, label %168
167: ; preds = %159
store i32 2, ptr %2, align 4
br label %219
168: ; preds = %159
br label %179
169: ; preds = %154
%170 = load i8, ptr %4, align 1
%171 = zext i8 %170 to i32
%172 = icmp eq i32 %171, 249
br i1 %172, label %177, label %173
173: ; preds = %169
%174 = load i8, ptr %4, align 1
%175 = zext i8 %174 to i32
%176 = icmp eq i32 %175, 233
br i1 %176, label %177, label %178
177: ; preds = %173, %169
store i32 2, ptr %2, align 4
br label %219
178: ; preds = %173
br label %179
179: ; preds = %178, %168
br label %216
180: ; preds = %150
%181 = load i8, ptr %4, align 1
%182 = zext i8 %181 to i32
%183 = and i32 %182, 48
%184 = icmp eq i32 %183, 16
br i1 %184, label %185, label %186
185: ; preds = %180
br label %198
186: ; preds = %180
%187 = load i8, ptr %4, align 1
%188 = zext i8 %187 to i32
%189 = icmp eq i32 %188, 195
br i1 %189, label %190, label %191
190: ; preds = %186
br label %197
191: ; preds = %186
%192 = load i8, ptr %4, align 1
%193 = zext i8 %192 to i32
%194 = icmp eq i32 %193, 227
br i1 %194, label %195, label %196
195: ; preds = %191
store i32 2, ptr %2, align 4
br label %219
196: ; preds = %191
br label %197
197: ; preds = %196, %190
br label %198
198: ; preds = %197, %185
br label %216
199: ; preds = %150
%200 = load i8, ptr %4, align 1
%201 = zext i8 %200 to i32
%202 = and i32 %201, 8
%203 = icmp eq i32 %202, 0
br i1 %203, label %204, label %214
204: ; preds = %199
%205 = load i8, ptr %4, align 1
%206 = zext i8 %205 to i32
%207 = ashr i32 %206, 4
%208 = and i32 %207, 3
%209 = trunc i32 %208 to i8
%210 = call i32 @Diss_Index_IsRegIndex(i8 noundef zeroext %209)
%211 = icmp ne i32 %210, 0
br i1 %211, label %212, label %213
212: ; preds = %204
store i32 2, ptr %2, align 4
br label %219
213: ; preds = %204
br label %214
214: ; preds = %213, %199
br label %216
215: ; preds = %150
br label %216
216: ; preds = %215, %214, %198, %179
br label %217
217: ; preds = %20, %216, %149, %135, %94
br label %218
218: ; preds = %217
store i32 1, ptr %2, align 4
br label %219
219: ; preds = %218, %212, %195, %177, %167, %144, %130, %126, %87, %72, %61, %50, %42, %33, %19, %18
%220 = load i32, ptr %2, align 4
ret i32 %220
}
declare zeroext i8 @Z80_RD_MEM(i32 noundef) #1
declare i32 @Diss_Index_IsRegIndex(i8 noundef zeroext) #1
declare i32 @Diss_Index_IsReg8Bit(i8 noundef zeroext) #1
declare zeroext i8 @Diss_Index_Get8BitRegCount(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3ud1a2vr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Diss_Index_GetOpcodeCountForInstruction(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i8, align 1
%5 = alloca i8, align 1
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca i8, align 1
%9 = alloca i8, align 1
%10 = alloca i8, align 1
%11 = alloca i8, align 1
store i32 %0, ptr %3, align 4
%12 = load i32, ptr %3, align 4
%13 = call zeroext i8 @Z80_RD_MEM(i32 noundef %12)
store i8 %13, ptr %4, align 1
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %3, align 4
%16 = load i8, ptr %4, align 1
%17 = zext i8 %16 to i32
switch i32 %17, label %20 [
i32 221, label %18
i32 253, label %18
i32 237, label %18
i32 203, label %19
]
18: ; preds = %1, %1, %1
store i32 1, ptr %2, align 4
br label %219
19: ; preds = %1
store i32 4, ptr %2, align 4
br label %219
20: ; preds = %1
%21 = load i8, ptr %4, align 1
%22 = zext i8 %21 to i32
%23 = and i32 %22, 192
switch i32 %23, label %217 [
i32 0, label %24
i32 64, label %95
i32 128, label %136
i32 192, label %150
]
24: ; preds = %20
%25 = load i8, ptr %4, align 1
%26 = zext i8 %25 to i32
%27 = and i32 %26, 7
switch i32 %27, label %93 [
i32 1, label %28
i32 2, label %45
i32 3, label %53
i32 4, label %63
i32 5, label %63
i32 6, label %78
]
28: ; preds = %24
%29 = load i8, ptr %4, align 1
%30 = zext i8 %29 to i32
%31 = and i32 %30, 8
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %28
store i32 2, ptr %2, align 4
br label %219
34: ; preds = %28
%35 = load i8, ptr %4, align 1
%36 = zext i8 %35 to i32
%37 = ashr i32 %36, 4
%38 = and i32 %37, 3
%39 = trunc i32 %38 to i8
%40 = call i32 @Diss_Index_IsRegIndex(i8 noundef zeroext %39)
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %43
42: ; preds = %34
store i32 4, ptr %2, align 4
br label %219
43: ; preds = %34
br label %44
44: ; preds = %43
br label %94
45: ; preds = %24
%46 = load i8, ptr %4, align 1
%47 = zext i8 %46 to i32
%48 = ashr i32 %47, 4
%49 = and i32 %48, 3
switch i32 %49, label %51 [
i32 2, label %50
]
50: ; preds = %45
store i32 4, ptr %2, align 4
br label %219
51: ; preds = %45
br label %52
52: ; preds = %51
br label %94
53: ; preds = %24
%54 = load i8, ptr %4, align 1
%55 = zext i8 %54 to i32
%56 = ashr i32 %55, 4
%57 = and i32 %56, 3
%58 = trunc i32 %57 to i8
%59 = call i32 @Diss_Index_IsRegIndex(i8 noundef zeroext %58)
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %62
61: ; preds = %53
store i32 2, ptr %2, align 4
br label %219
62: ; preds = %53
br label %94
63: ; preds = %24, %24
%64 = load i8, ptr %4, align 1
%65 = zext i8 %64 to i32
%66 = ashr i32 %65, 3
%67 = and i32 %66, 7
%68 = trunc i32 %67 to i8
store i8 %68, ptr %5, align 1
%69 = load i8, ptr %5, align 1
%70 = call i32 @Diss_Index_IsReg8Bit(i8 noundef zeroext %69)
%71 = icmp ne i32 %70, 0
br i1 %71, label %72, label %77
72: ; preds = %63
%73 = load i8, ptr %5, align 1
%74 = call zeroext i8 @Diss_Index_Get8BitRegCount(i8 noundef zeroext %73)
%75 = zext i8 %74 to i32
%76 = add nsw i32 %75, 1
store i32 %76, ptr %2, align 4
br label %219
77: ; preds = %63
br label %94
78: ; preds = %24
%79 = load i8, ptr %4, align 1
%80 = zext i8 %79 to i32
%81 = ashr i32 %80, 3
%82 = and i32 %81, 7
%83 = trunc i32 %82 to i8
store i8 %83, ptr %6, align 1
%84 = load i8, ptr %6, align 1
%85 = call i32 @Diss_Index_IsReg8Bit(i8 noundef zeroext %84)
%86 = icmp ne i32 %85, 0
br i1 %86, label %87, label %92
87: ; preds = %78
%88 = load i8, ptr %6, align 1
%89 = call zeroext i8 @Diss_Index_Get8BitRegCount(i8 noundef zeroext %88)
%90 = zext i8 %89 to i32
%91 = add nsw i32 %90, 2
store i32 %91, ptr %2, align 4
br label %219
92: ; preds = %78
br label %94
93: ; preds = %24
br label %94
94: ; preds = %93, %92, %77, %62, %52, %44
br label %217
95: ; preds = %20
%96 = load i8, ptr %4, align 1
%97 = zext i8 %96 to i32
%98 = icmp ne i32 %97, 118
br i1 %98, label %99, label %135
99: ; preds = %95
%100 = load i8, ptr %4, align 1
%101 = zext i8 %100 to i32
%102 = ashr i32 %101, 3
%103 = and i32 %102, 7
%104 = trunc i32 %103 to i8
store i8 %104, ptr %7, align 1
%105 = load i8, ptr %4, align 1
%106 = zext i8 %105 to i32
%107 = and i32 %106, 7
%108 = trunc i32 %107 to i8
store i8 %108, ptr %8, align 1
%109 = load i8, ptr %7, align 1
%110 = call i32 @Diss_Index_IsReg8Bit(i8 noundef zeroext %109)
%111 = icmp ne i32 %110, 0
br i1 %111, label %116, label %112
112: ; preds = %99
%113 = load i8, ptr %8, align 1
%114 = call i32 @Diss_Index_IsReg8Bit(i8 noundef zeroext %113)
%115 = icmp ne i32 %114, 0
br i1 %115, label %116, label %134
116: ; preds = %112, %99
%117 = load i8, ptr %7, align 1
%118 = call zeroext i8 @Diss_Index_Get8BitRegCount(i8 noundef zeroext %117)
store i8 %118, ptr %9, align 1
%119 = load i8, ptr %8, align 1
%120 = call zeroext i8 @Diss_Index_Get8BitRegCount(i8 noundef zeroext %119)
store i8 %120, ptr %10, align 1
%121 = load i8, ptr %9, align 1
%122 = zext i8 %121 to i32
%123 = load i8, ptr %10, align 1
%124 = zext i8 %123 to i32
%125 = icmp slt i32 %122, %124
br i1 %125, label %126, label %130
126: ; preds = %116
%127 = load i8, ptr %10, align 1
%128 = zext i8 %127 to i32
%129 = add nsw i32 %128, 1
store i32 %129, ptr %2, align 4
br label %219
130: ; preds = %116
%131 = load i8, ptr %9, align 1
%132 = zext i8 %131 to i32
%133 = add nsw i32 %132, 1
store i32 %133, ptr %2, align 4
br label %219
134: ; preds = %112
br label %135
135: ; preds = %134, %95
br label %217
136: ; preds = %20
%137 = load i8, ptr %4, align 1
%138 = zext i8 %137 to i32
%139 = and i32 %138, 7
%140 = trunc i32 %139 to i8
store i8 %140, ptr %11, align 1
%141 = load i8, ptr %11, align 1
%142 = call i32 @Diss_Index_IsReg8Bit(i8 noundef zeroext %141)
%143 = icmp ne i32 %142, 0
br i1 %143, label %144, label %149
144: ; preds = %136
%145 = load i8, ptr %11, align 1
%146 = call zeroext i8 @Diss_Index_Get8BitRegCount(i8 noundef zeroext %145)
%147 = zext i8 %146 to i32
%148 = add nsw i32 %147, 1
store i32 %148, ptr %2, align 4
br label %219
149: ; preds = %136
br label %217
150: ; preds = %20
%151 = load i8, ptr %4, align 1
%152 = zext i8 %151 to i32
%153 = and i32 %152, 7
switch i32 %153, label %215 [
i32 1, label %154
i32 3, label %180
i32 5, label %199
]
154: ; preds = %150
%155 = load i8, ptr %4, align 1
%156 = zext i8 %155 to i32
%157 = and i32 %156, 8
%158 = icmp eq i32 %157, 0
br i1 %158, label %159, label %169
159: ; preds = %154
%160 = load i8, ptr %4, align 1
%161 = zext i8 %160 to i32
%162 = ashr i32 %161, 4
%163 = and i32 %162, 3
%164 = trunc i32 %163 to i8
%165 = call i32 @Diss_Index_IsRegIndex(i8 noundef zeroext %164)
%166 = icmp ne i32 %165, 0
br i1 %166, label %167, label %168
167: ; preds = %159
store i32 2, ptr %2, align 4
br label %219
168: ; preds = %159
br label %179
169: ; preds = %154
%170 = load i8, ptr %4, align 1
%171 = zext i8 %170 to i32
%172 = icmp eq i32 %171, 249
br i1 %172, label %177, label %173
173: ; preds = %169
%174 = load i8, ptr %4, align 1
%175 = zext i8 %174 to i32
%176 = icmp eq i32 %175, 233
br i1 %176, label %177, label %178
177: ; preds = %173, %169
store i32 2, ptr %2, align 4
br label %219
178: ; preds = %173
br label %179
179: ; preds = %178, %168
br label %216
180: ; preds = %150
%181 = load i8, ptr %4, align 1
%182 = zext i8 %181 to i32
%183 = and i32 %182, 48
%184 = icmp eq i32 %183, 16
br i1 %184, label %185, label %186
185: ; preds = %180
br label %198
186: ; preds = %180
%187 = load i8, ptr %4, align 1
%188 = zext i8 %187 to i32
%189 = icmp eq i32 %188, 195
br i1 %189, label %190, label %191
190: ; preds = %186
br label %197
191: ; preds = %186
%192 = load i8, ptr %4, align 1
%193 = zext i8 %192 to i32
%194 = icmp eq i32 %193, 227
br i1 %194, label %195, label %196
195: ; preds = %191
store i32 2, ptr %2, align 4
br label %219
196: ; preds = %191
br label %197
197: ; preds = %196, %190
br label %198
198: ; preds = %197, %185
br label %216
199: ; preds = %150
%200 = load i8, ptr %4, align 1
%201 = zext i8 %200 to i32
%202 = and i32 %201, 8
%203 = icmp eq i32 %202, 0
br i1 %203, label %204, label %214
204: ; preds = %199
%205 = load i8, ptr %4, align 1
%206 = zext i8 %205 to i32
%207 = ashr i32 %206, 4
%208 = and i32 %207, 3
%209 = trunc i32 %208 to i8
%210 = call i32 @Diss_Index_IsRegIndex(i8 noundef zeroext %209)
%211 = icmp ne i32 %210, 0
br i1 %211, label %212, label %213
212: ; preds = %204
store i32 2, ptr %2, align 4
br label %219
213: ; preds = %204
br label %214
214: ; preds = %213, %199
br label %216
215: ; preds = %150
br label %216
216: ; preds = %215, %214, %198, %179
br label %217
217: ; preds = %216, %149, %135, %94, %20
br label %218
218: ; preds = %217
store i32 1, ptr %2, align 4
br label %219
219: ; preds = %218, %212, %195, %177, %167, %144, %130, %126, %87, %72, %61, %50, %42, %33, %19, %18
%220 = load i32, ptr %2, align 4
ret i32 %220
}
declare zeroext i8 @Z80_RD_MEM(i32 noundef) #1
declare i32 @Diss_Index_IsRegIndex(i8 noundef zeroext) #1
declare i32 @Diss_Index_IsReg8Bit(i8 noundef zeroext) #1
declare zeroext i8 @Diss_Index_Get8BitRegCount(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_vbj4e8_.c'
source_filename = "/tmp/tmp_vbj4e8_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Cpus_allowed_list\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @cpus_allowed_list() #0 {
%1 = call ptr @status_entry(ptr noundef @.str)
ret ptr %1
}
declare ptr @status_entry(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_vbj4e8_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Cpus_allowed_list\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @cpus_allowed_list() #0 {
%1 = call ptr @status_entry(ptr noundef @.str)
ret ptr %1
}
declare ptr @status_entry(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7ujsqlt0.c'
source_filename = "/tmp/tmp7ujsqlt0.c"
target datalayout = "e-m:e-p270: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/tmp7ujsqlt0.c"
target datalayout = "e-m:e-p270: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/tmpd6e_rz8o.c'
source_filename = "/tmp/tmpd6e_rz8o.c"
target datalayout = "e-m:e-p270: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/tmpd6e_rz8o.c"
target datalayout = "e-m:e-p270: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/tmpjh0rsapz.c'
source_filename = "/tmp/tmpjh0rsapz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ptr_set_int64_t(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
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = ptrtoint ptr %7 to i64
%9 = load i32, ptr %5, align 4
%10 = sext i32 %9 to i64
%11 = add nsw i64 %8, %10
%12 = call i32 @memcpy(i64 noundef %11, ptr noundef %6, i32 noundef 4)
ret void
}
declare i32 @memcpy(i64 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/tmpjh0rsapz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ptr_set_int64_t(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
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = ptrtoint ptr %7 to i64
%9 = load i32, ptr %5, align 4
%10 = sext i32 %9 to i64
%11 = add nsw i64 %8, %10
%12 = call i32 @memcpy(i64 noundef %11, ptr noundef %6, i32 noundef 4)
ret void
}
declare i32 @memcpy(i64 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/tmp7hnpd48_.c'
source_filename = "/tmp/tmp7hnpd48_.c"
target datalayout = "e-m:e-p270: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/tmp7hnpd48_.c"
target datalayout = "e-m:e-p270: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/tmp6ntvoh9p.c'
source_filename = "/tmp/tmp6ntvoh9p.c"
target datalayout = "e-m:e-p270: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.tms = type { i64, i64 }
@.str = private unnamed_addr constant [9 x i8] c"clock() \00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [43 x i8] c"clock() - clocks: %ld, seconds: %.2f secs\0A\00", align 1
@CLOCKS_PER_SEC = dso_local global double 0.000000e+00, align 8
@_SC_CLK_TCK = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [11 x i8] c"sysconf() \00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"System Clock Ticks: %lu\0A\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"times() \00", align 1
@.str.5 = private unnamed_addr constant [54 x i8] c"times() - User CPU: %.2f secs, System CPU: %.2f secs\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca %struct.tms, align 8
%9 = alloca i64, align 8
%10 = 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
store i32 0, ptr %7, align 4
store i64 0, ptr %10, align 8
%11 = call i64 (...) @clock()
store i64 %11, ptr %9, align 8
%12 = icmp slt i64 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %2
%14 = call i32 @perror(ptr noundef @.str)
%15 = load i32, ptr @EXIT_FAILURE, align 4
%16 = call i32 @exit(i32 noundef %15) #3
unreachable
17: ; preds = %2
%18 = load i64, ptr %9, align 8
%19 = sitofp i64 %18 to double
%20 = load i64, ptr %9, align 8
%21 = sitofp i64 %20 to double
%22 = load double, ptr @CLOCKS_PER_SEC, align 8
%23 = fdiv double %21, %22
%24 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.1, double noundef %19, double noundef %23)
%25 = load i32, ptr @_SC_CLK_TCK, align 4
%26 = call i64 @sysconf(i32 noundef %25)
store i64 %26, ptr %10, align 8
%27 = icmp ult i64 %26, 0
br i1 %27, label %28, label %32
28: ; preds = %17
%29 = call i32 @perror(ptr noundef @.str.2)
%30 = load i32, ptr @EXIT_FAILURE, align 4
%31 = call i32 @exit(i32 noundef %30) #3
unreachable
32: ; preds = %17
%33 = load i64, ptr %10, align 8
%34 = uitofp i64 %33 to double
%35 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.3, double noundef %34)
%36 = call i64 @times(ptr noundef %8)
%37 = icmp slt i64 %36, 0
br i1 %37, label %38, label %42
38: ; preds = %32
%39 = call i32 @perror(ptr noundef @.str.4)
%40 = load i32, ptr @EXIT_FAILURE, align 4
%41 = call i32 @exit(i32 noundef %40) #3
unreachable
42: ; preds = %32
%43 = getelementptr inbounds %struct.tms, ptr %8, i32 0, i32 1
%44 = load i64, ptr %43, align 8
%45 = sitofp i64 %44 to double
%46 = load i64, ptr %10, align 8
%47 = uitofp i64 %46 to double
%48 = fdiv double %45, %47
%49 = getelementptr inbounds %struct.tms, ptr %8, i32 0, i32 0
%50 = load i64, ptr %49, align 8
%51 = sitofp i64 %50 to double
%52 = load i64, ptr %10, align 8
%53 = uitofp i64 %52 to double
%54 = fdiv double %51, %53
%55 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.5, double noundef %48, double noundef %54)
store i32 0, ptr %6, align 4
br label %56
56: ; preds = %62, %42
%57 = load i32, ptr %6, align 4
%58 = icmp slt i32 %57, 10000000
br i1 %58, label %59, label %65
59: ; preds = %56
%60 = load i32, ptr %7, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %7, align 4
br label %62
62: ; preds = %59
%63 = load i32, ptr %6, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %6, align 4
br label %56, !llvm.loop !6
65: ; preds = %56
%66 = call i64 (...) @clock()
store i64 %66, ptr %9, align 8
%67 = icmp slt i64 %66, 0
br i1 %67, label %68, label %72
68: ; preds = %65
%69 = call i32 @perror(ptr noundef @.str)
%70 = load i32, ptr @EXIT_FAILURE, align 4
%71 = call i32 @exit(i32 noundef %70) #3
unreachable
72: ; preds = %65
%73 = load i64, ptr %9, align 8
%74 = sitofp i64 %73 to double
%75 = load i64, ptr %9, align 8
%76 = sitofp i64 %75 to double
%77 = load double, ptr @CLOCKS_PER_SEC, align 8
%78 = fdiv double %76, %77
%79 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.1, double noundef %74, double noundef %78)
%80 = call i64 @times(ptr noundef %8)
%81 = icmp slt i64 %80, 0
br i1 %81, label %82, label %86
82: ; preds = %72
%83 = call i32 @perror(ptr noundef @.str.4)
%84 = load i32, ptr @EXIT_FAILURE, align 4
%85 = call i32 @exit(i32 noundef %84) #3
unreachable
86: ; preds = %72
%87 = getelementptr inbounds %struct.tms, ptr %8, i32 0, i32 1
%88 = load i64, ptr %87, align 8
%89 = sitofp i64 %88 to double
%90 = load i64, ptr %10, align 8
%91 = uitofp i64 %90 to double
%92 = fdiv double %89, %91
%93 = getelementptr inbounds %struct.tms, ptr %8, i32 0, i32 0
%94 = load i64, ptr %93, align 8
%95 = sitofp i64 %94 to double
%96 = load i64, ptr %10, align 8
%97 = uitofp i64 %96 to double
%98 = fdiv double %95, %97
%99 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.5, double noundef %92, double noundef %98)
%100 = load i32, ptr %3, align 4
ret i32 %100
}
declare i64 @clock(...) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef, double noundef, ...) #1
declare i64 @sysconf(i32 noundef) #1
declare i64 @times(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmp6ntvoh9p.c"
target datalayout = "e-m:e-p270: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.tms = type { i64, i64 }
@.str = private unnamed_addr constant [9 x i8] c"clock() \00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [43 x i8] c"clock() - clocks: %ld, seconds: %.2f secs\0A\00", align 1
@CLOCKS_PER_SEC = dso_local global double 0.000000e+00, align 8
@_SC_CLK_TCK = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [11 x i8] c"sysconf() \00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"System Clock Ticks: %lu\0A\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"times() \00", align 1
@.str.5 = private unnamed_addr constant [54 x i8] c"times() - User CPU: %.2f secs, System CPU: %.2f secs\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca %struct.tms, align 8
%9 = alloca i64, align 8
%10 = 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
store i32 0, ptr %7, align 4
store i64 0, ptr %10, align 8
%11 = call i64 (...) @clock()
store i64 %11, ptr %9, align 8
%12 = icmp slt i64 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %2
%14 = call i32 @perror(ptr noundef @.str)
%15 = load i32, ptr @EXIT_FAILURE, align 4
%16 = call i32 @exit(i32 noundef %15) #3
unreachable
17: ; preds = %2
%18 = load i64, ptr %9, align 8
%19 = sitofp i64 %18 to double
%20 = load i64, ptr %9, align 8
%21 = sitofp i64 %20 to double
%22 = load double, ptr @CLOCKS_PER_SEC, align 8
%23 = fdiv double %21, %22
%24 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.1, double noundef %19, double noundef %23)
%25 = load i32, ptr @_SC_CLK_TCK, align 4
%26 = call i64 @sysconf(i32 noundef %25)
store i64 %26, ptr %10, align 8
%27 = icmp ult i64 %26, 0
br i1 %27, label %28, label %32
28: ; preds = %17
%29 = call i32 @perror(ptr noundef @.str.2)
%30 = load i32, ptr @EXIT_FAILURE, align 4
%31 = call i32 @exit(i32 noundef %30) #3
unreachable
32: ; preds = %17
%33 = load i64, ptr %10, align 8
%34 = uitofp i64 %33 to double
%35 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.3, double noundef %34)
%36 = call i64 @times(ptr noundef %8)
%37 = icmp slt i64 %36, 0
br i1 %37, label %38, label %42
38: ; preds = %32
%39 = call i32 @perror(ptr noundef @.str.4)
%40 = load i32, ptr @EXIT_FAILURE, align 4
%41 = call i32 @exit(i32 noundef %40) #3
unreachable
42: ; preds = %32
%43 = getelementptr inbounds %struct.tms, ptr %8, i32 0, i32 1
%44 = load i64, ptr %43, align 8
%45 = sitofp i64 %44 to double
%46 = load i64, ptr %10, align 8
%47 = uitofp i64 %46 to double
%48 = fdiv double %45, %47
%49 = getelementptr inbounds %struct.tms, ptr %8, i32 0, i32 0
%50 = load i64, ptr %49, align 8
%51 = sitofp i64 %50 to double
%52 = load i64, ptr %10, align 8
%53 = uitofp i64 %52 to double
%54 = fdiv double %51, %53
%55 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.5, double noundef %48, double noundef %54)
store i32 0, ptr %6, align 4
%56 = load i32, ptr %6, align 4
%57 = icmp slt i32 %56, 10000000
br i1 %57, label %.lr.ph, label %66
.lr.ph: ; preds = %42
br label %58
58: ; preds = %.lr.ph, %61
%59 = load i32, ptr %7, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %7, align 4
br label %61
61: ; preds = %58
%62 = load i32, ptr %6, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %6, align 4
%64 = load i32, ptr %6, align 4
%65 = icmp slt i32 %64, 10000000
br i1 %65, label %58, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %61
br label %66
66: ; preds = %._crit_edge, %42
%67 = call i64 (...) @clock()
store i64 %67, ptr %9, align 8
%68 = icmp slt i64 %67, 0
br i1 %68, label %69, label %73
69: ; preds = %66
%70 = call i32 @perror(ptr noundef @.str)
%71 = load i32, ptr @EXIT_FAILURE, align 4
%72 = call i32 @exit(i32 noundef %71) #3
unreachable
73: ; preds = %66
%74 = load i64, ptr %9, align 8
%75 = sitofp i64 %74 to double
%76 = load i64, ptr %9, align 8
%77 = sitofp i64 %76 to double
%78 = load double, ptr @CLOCKS_PER_SEC, align 8
%79 = fdiv double %77, %78
%80 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.1, double noundef %75, double noundef %79)
%81 = call i64 @times(ptr noundef %8)
%82 = icmp slt i64 %81, 0
br i1 %82, label %83, label %87
83: ; preds = %73
%84 = call i32 @perror(ptr noundef @.str.4)
%85 = load i32, ptr @EXIT_FAILURE, align 4
%86 = call i32 @exit(i32 noundef %85) #3
unreachable
87: ; preds = %73
%88 = getelementptr inbounds %struct.tms, ptr %8, i32 0, i32 1
%89 = load i64, ptr %88, align 8
%90 = sitofp i64 %89 to double
%91 = load i64, ptr %10, align 8
%92 = uitofp i64 %91 to double
%93 = fdiv double %90, %92
%94 = getelementptr inbounds %struct.tms, ptr %8, i32 0, i32 0
%95 = load i64, ptr %94, align 8
%96 = sitofp i64 %95 to double
%97 = load i64, ptr %10, align 8
%98 = uitofp i64 %97 to double
%99 = fdiv double %96, %98
%100 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.5, double noundef %93, double noundef %99)
%101 = load i32, ptr %3, align 4
ret i32 %101
}
declare i64 @clock(...) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef, double noundef, ...) #1
declare i64 @sysconf(i32 noundef) #1
declare i64 @times(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpxtvjy9i2.c'
source_filename = "/tmp/tmpxtvjy9i2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@mm = external global i32, align 4
@rs = external global double, align 8
@r1 = external global double, align 8
@xx = external global ptr, align 8
@ww = external global ptr, align 8
@pr = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @exchmvn(i32 noundef %0, ptr noundef %1, ptr noundef %2, double noundef %3, double noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store double %3, ptr %9, align 8
store double %4, ptr %10, align 8
%13 = load i32, ptr %6, align 4
store i32 %13, ptr @mm, align 4
%14 = load double, ptr %9, align 8
%15 = fptosi double %14 to i32
%16 = call double @sqrt(i32 noundef %15)
store double %16, ptr @rs, align 8
%17 = load double, ptr %9, align 8
%18 = fsub double 1.000000e+00, %17
%19 = fptosi double %18 to i32
%20 = call double @sqrt(i32 noundef %19)
store double %20, ptr @r1, align 8
%21 = load i32, ptr @mm, align 4
%22 = add nsw i32 %21, 1
%23 = sext i32 %22 to i64
%24 = mul i64 %23, 8
%25 = trunc i64 %24 to i32
%26 = call i64 @malloc(i32 noundef %25)
%27 = inttoptr i64 %26 to ptr
store ptr %27, ptr @xx, align 8
%28 = load i32, ptr @mm, align 4
%29 = add nsw i32 %28, 1
%30 = sext i32 %29 to i64
%31 = mul i64 %30, 8
%32 = trunc i64 %31 to i32
%33 = call i64 @malloc(i32 noundef %32)
%34 = inttoptr i64 %33 to ptr
store ptr %34, ptr @ww, align 8
store i32 1, ptr %12, align 4
br label %35
35: ; preds = %58, %5
%36 = load i32, ptr %12, align 4
%37 = load i32, ptr @mm, align 4
%38 = icmp sle i32 %36, %37
br i1 %38, label %39, label %61
39: ; preds = %35
%40 = load ptr, ptr %7, align 8
%41 = load i32, ptr %12, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds double, ptr %40, i64 %42
%44 = load double, ptr %43, align 8
%45 = load ptr, ptr @ww, align 8
%46 = load i32, ptr %12, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds double, ptr %45, i64 %47
store double %44, ptr %48, align 8
%49 = load ptr, ptr %8, align 8
%50 = load i32, ptr %12, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds double, ptr %49, i64 %51
%53 = load double, ptr %52, align 8
%54 = load ptr, ptr @xx, align 8
%55 = load i32, ptr %12, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds double, ptr %54, i64 %56
store double %53, ptr %57, align 8
br label %58
58: ; preds = %39
%59 = load i32, ptr %12, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %12, align 4
br label %35, !llvm.loop !6
61: ; preds = %35
%62 = load double, ptr %10, align 8
%63 = call double @romberg(ptr noundef @g, double noundef -6.000000e+00, double noundef 6.000000e+00, double noundef %62)
store double %63, ptr %11, align 8
%64 = load ptr, ptr @xx, align 8
%65 = call i32 @free(ptr noundef %64)
%66 = load ptr, ptr @ww, align 8
%67 = call i32 @free(ptr noundef %66)
%68 = load double, ptr %11, align 8
ret double %68
}
declare double @sqrt(i32 noundef) #1
declare i64 @malloc(i32 noundef) #1
declare double @romberg(ptr noundef, double noundef, double noundef, double noundef) #1
declare double @g(double noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxtvjy9i2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@mm = external global i32, align 4
@rs = external global double, align 8
@r1 = external global double, align 8
@xx = external global ptr, align 8
@ww = external global ptr, align 8
@pr = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @exchmvn(i32 noundef %0, ptr noundef %1, ptr noundef %2, double noundef %3, double noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store double %3, ptr %9, align 8
store double %4, ptr %10, align 8
%13 = load i32, ptr %6, align 4
store i32 %13, ptr @mm, align 4
%14 = load double, ptr %9, align 8
%15 = fptosi double %14 to i32
%16 = call double @sqrt(i32 noundef %15)
store double %16, ptr @rs, align 8
%17 = load double, ptr %9, align 8
%18 = fsub double 1.000000e+00, %17
%19 = fptosi double %18 to i32
%20 = call double @sqrt(i32 noundef %19)
store double %20, ptr @r1, align 8
%21 = load i32, ptr @mm, align 4
%22 = add nsw i32 %21, 1
%23 = sext i32 %22 to i64
%24 = mul i64 %23, 8
%25 = trunc i64 %24 to i32
%26 = call i64 @malloc(i32 noundef %25)
%27 = inttoptr i64 %26 to ptr
store ptr %27, ptr @xx, align 8
%28 = load i32, ptr @mm, align 4
%29 = add nsw i32 %28, 1
%30 = sext i32 %29 to i64
%31 = mul i64 %30, 8
%32 = trunc i64 %31 to i32
%33 = call i64 @malloc(i32 noundef %32)
%34 = inttoptr i64 %33 to ptr
store ptr %34, ptr @ww, align 8
store i32 1, ptr %12, align 4
%35 = load i32, ptr %12, align 4
%36 = load i32, ptr @mm, align 4
%37 = icmp sle i32 %35, %36
br i1 %37, label %.lr.ph, label %63
.lr.ph: ; preds = %5
br label %38
38: ; preds = %.lr.ph, %57
%39 = load ptr, ptr %7, align 8
%40 = load i32, ptr %12, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds double, ptr %39, i64 %41
%43 = load double, ptr %42, align 8
%44 = load ptr, ptr @ww, align 8
%45 = load i32, ptr %12, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds double, ptr %44, i64 %46
store double %43, ptr %47, align 8
%48 = load ptr, ptr %8, align 8
%49 = load i32, ptr %12, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds double, ptr %48, i64 %50
%52 = load double, ptr %51, align 8
%53 = load ptr, ptr @xx, align 8
%54 = load i32, ptr %12, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds double, ptr %53, i64 %55
store double %52, ptr %56, align 8
br label %57
57: ; preds = %38
%58 = load i32, ptr %12, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %12, align 4
%60 = load i32, ptr %12, align 4
%61 = load i32, ptr @mm, align 4
%62 = icmp sle i32 %60, %61
br i1 %62, label %38, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %57
br label %63
63: ; preds = %._crit_edge, %5
%64 = load double, ptr %10, align 8
%65 = call double @romberg(ptr noundef @g, double noundef -6.000000e+00, double noundef 6.000000e+00, double noundef %64)
store double %65, ptr %11, align 8
%66 = load ptr, ptr @xx, align 8
%67 = call i32 @free(ptr noundef %66)
%68 = load ptr, ptr @ww, align 8
%69 = call i32 @free(ptr noundef %68)
%70 = load double, ptr %11, align 8
ret double %70
}
declare double @sqrt(i32 noundef) #1
declare i64 @malloc(i32 noundef) #1
declare double @romberg(ptr noundef, double noundef, double noundef, double noundef) #1
declare double @g(double noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9n4gy3p5.c'
source_filename = "/tmp/tmp9n4gy3p5.c"
target datalayout = "e-m:e-p270: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.main1.ib = private unnamed_addr constant [64 x i32] [i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0], align 16
@__const.main1.ic = private unnamed_addr constant [64 x i32] [i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0], align 16
@__const.main1.cb = private unnamed_addr constant [64 x i8] c"\01\01\00\00\01\00\01\00\01\01\00\00\01\00\01\00\01\01\00\00\01\00\01\00\01\01\00\00\01\00\01\00\01\01\00\00\01\00\01\00\01\01\00\00\01\00\01\00\01\01\00\00\01\00\01\00\01\01\00\00\01\00\01\00", align 16
@__const.main1.cc = private unnamed_addr constant [64 x i8] c"\01\01\00\00\01\00\01\00\01\01\00\00\01\00\01\00\01\01\00\00\01\00\01\00\01\01\00\00\01\00\01\00\01\01\00\00\01\00\01\00\01\01\00\00\01\00\01\00\01\01\00\00\01\00\01\00\01\01\00\00\01\00\01\00", align 16
@__const.main1.sb = private unnamed_addr constant [64 x i16] [i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0, i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0, i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0, i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0, i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0, i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0, i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0, i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0], align 16
@__const.main1.sc = private unnamed_addr constant [64 x i16] [i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0, i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0, i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0, i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0, i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0, i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0, i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0, i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main1() #0 {
%1 = alloca i32, align 4
%2 = alloca [64 x i32], align 16
%3 = alloca [64 x i32], align 16
%4 = alloca [64 x i32], align 16
%5 = alloca [64 x i8], align 16
%6 = alloca [64 x i8], align 16
%7 = alloca [64 x i8], align 16
%8 = alloca [64 x i16], align 16
%9 = alloca [64 x i16], align 16
%10 = alloca [64 x i16], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main1.ib, i64 256, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.main1.ic, i64 256, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main1.cb, i64 64, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.main1.cc, i64 64, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const.main1.sb, i64 128, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const.main1.sc, i64 128, i1 false)
store i32 0, ptr %1, align 4
br label %11
11: ; preds = %27, %0
%12 = load i32, ptr %1, align 4
%13 = icmp slt i32 %12, 64
br i1 %13, label %14, label %30
14: ; preds = %11
%15 = load i32, ptr %1, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [64 x i32], ptr %3, i64 0, i64 %16
%18 = load i32, ptr %17, align 4
%19 = load i32, ptr %1, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [64 x i32], ptr %4, i64 0, i64 %20
%22 = load i32, ptr %21, align 4
%23 = and i32 %18, %22
%24 = load i32, ptr %1, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [64 x i32], ptr %2, i64 0, i64 %25
store i32 %23, ptr %26, align 4
br label %27
27: ; preds = %14
%28 = load i32, ptr %1, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %1, align 4
br label %11, !llvm.loop !6
30: ; preds = %11
store i32 0, ptr %1, align 4
br label %31
31: ; preds = %54, %30
%32 = load i32, ptr %1, align 4
%33 = icmp slt i32 %32, 64
br i1 %33, label %34, label %57
34: ; preds = %31
%35 = load i32, ptr %1, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [64 x i32], ptr %2, i64 0, i64 %36
%38 = load i32, ptr %37, align 4
%39 = load i32, ptr %1, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [64 x i32], ptr %3, i64 0, i64 %40
%42 = load i32, ptr %41, align 4
%43 = icmp ne i32 %38, %42
%44 = zext i1 %43 to i32
%45 = load i32, ptr %1, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [64 x i32], ptr %4, i64 0, i64 %46
%48 = load i32, ptr %47, align 4
%49 = and i32 %44, %48
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %34
%52 = call i32 (...) @abort() #3
unreachable
53: ; preds = %34
br label %54
54: ; preds = %53
%55 = load i32, ptr %1, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %1, align 4
br label %31, !llvm.loop !8
57: ; preds = %31
store i32 0, ptr %1, align 4
br label %58
58: ; preds = %77, %57
%59 = load i32, ptr %1, align 4
%60 = icmp slt i32 %59, 64
br i1 %60, label %61, label %80
61: ; preds = %58
%62 = load i32, ptr %1, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [64 x i8], ptr %6, i64 0, i64 %63
%65 = load i8, ptr %64, align 1
%66 = sext i8 %65 to i32
%67 = load i32, ptr %1, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 %68
%70 = load i8, ptr %69, align 1
%71 = sext i8 %70 to i32
%72 = and i32 %66, %71
%73 = trunc i32 %72 to i8
%74 = load i32, ptr %1, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 %75
store i8 %73, ptr %76, align 1
br label %77
77: ; preds = %61
%78 = load i32, ptr %1, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %1, align 4
br label %58, !llvm.loop !9
80: ; preds = %58
store i32 0, ptr %1, align 4
br label %81
81: ; preds = %107, %80
%82 = load i32, ptr %1, align 4
%83 = icmp slt i32 %82, 64
br i1 %83, label %84, label %110
84: ; preds = %81
%85 = load i32, ptr %1, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 %86
%88 = load i8, ptr %87, align 1
%89 = sext i8 %88 to i32
%90 = load i32, ptr %1, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [64 x i8], ptr %6, i64 0, i64 %91
%93 = load i8, ptr %92, align 1
%94 = sext i8 %93 to i32
%95 = icmp ne i32 %89, %94
%96 = zext i1 %95 to i32
%97 = load i32, ptr %1, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 %98
%100 = load i8, ptr %99, align 1
%101 = sext i8 %100 to i32
%102 = and i32 %96, %101
%103 = icmp ne i32 %102, 0
br i1 %103, label %104, label %106
104: ; preds = %84
%105 = call i32 (...) @abort() #3
unreachable
106: ; preds = %84
br label %107
107: ; preds = %106
%108 = load i32, ptr %1, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr %1, align 4
br label %81, !llvm.loop !10
110: ; preds = %81
store i32 0, ptr %1, align 4
br label %111
111: ; preds = %130, %110
%112 = load i32, ptr %1, align 4
%113 = icmp slt i32 %112, 64
br i1 %113, label %114, label %133
114: ; preds = %111
%115 = load i32, ptr %1, align 4
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds [64 x i16], ptr %9, i64 0, i64 %116
%118 = load i16, ptr %117, align 2
%119 = sext i16 %118 to i32
%120 = load i32, ptr %1, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds [64 x i16], ptr %10, i64 0, i64 %121
%123 = load i16, ptr %122, align 2
%124 = sext i16 %123 to i32
%125 = and i32 %119, %124
%126 = trunc i32 %125 to i16
%127 = load i32, ptr %1, align 4
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds [64 x i16], ptr %8, i64 0, i64 %128
store i16 %126, ptr %129, align 2
br label %130
130: ; preds = %114
%131 = load i32, ptr %1, align 4
%132 = add nsw i32 %131, 1
store i32 %132, ptr %1, align 4
br label %111, !llvm.loop !11
133: ; preds = %111
store i32 0, ptr %1, align 4
br label %134
134: ; preds = %160, %133
%135 = load i32, ptr %1, align 4
%136 = icmp slt i32 %135, 64
br i1 %136, label %137, label %163
137: ; preds = %134
%138 = load i32, ptr %1, align 4
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds [64 x i16], ptr %8, i64 0, i64 %139
%141 = load i16, ptr %140, align 2
%142 = sext i16 %141 to i32
%143 = load i32, ptr %1, align 4
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds [64 x i16], ptr %9, i64 0, i64 %144
%146 = load i16, ptr %145, align 2
%147 = sext i16 %146 to i32
%148 = icmp ne i32 %142, %147
%149 = zext i1 %148 to i32
%150 = load i32, ptr %1, align 4
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds [64 x i16], ptr %10, i64 0, i64 %151
%153 = load i16, ptr %152, align 2
%154 = sext i16 %153 to i32
%155 = and i32 %149, %154
%156 = icmp ne i32 %155, 0
br i1 %156, label %157, label %159
157: ; preds = %137
%158 = call i32 (...) @abort() #3
unreachable
159: ; preds = %137
br label %160
160: ; preds = %159
%161 = load i32, ptr %1, align 4
%162 = add nsw i32 %161, 1
store i32 %162, ptr %1, align 4
br label %134, !llvm.loop !12
163: ; preds = %134
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9n4gy3p5.c"
target datalayout = "e-m:e-p270: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.main1.ib = private unnamed_addr constant [64 x i32] [i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0], align 16
@__const.main1.ic = private unnamed_addr constant [64 x i32] [i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 0, i32 1, i32 0], align 16
@__const.main1.cb = private unnamed_addr constant [64 x i8] c"\01\01\00\00\01\00\01\00\01\01\00\00\01\00\01\00\01\01\00\00\01\00\01\00\01\01\00\00\01\00\01\00\01\01\00\00\01\00\01\00\01\01\00\00\01\00\01\00\01\01\00\00\01\00\01\00\01\01\00\00\01\00\01\00", align 16
@__const.main1.cc = private unnamed_addr constant [64 x i8] c"\01\01\00\00\01\00\01\00\01\01\00\00\01\00\01\00\01\01\00\00\01\00\01\00\01\01\00\00\01\00\01\00\01\01\00\00\01\00\01\00\01\01\00\00\01\00\01\00\01\01\00\00\01\00\01\00\01\01\00\00\01\00\01\00", align 16
@__const.main1.sb = private unnamed_addr constant [64 x i16] [i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0, i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0, i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0, i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0, i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0, i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0, i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0, i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0], align 16
@__const.main1.sc = private unnamed_addr constant [64 x i16] [i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0, i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0, i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0, i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0, i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0, i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0, i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0, i16 1, i16 1, i16 0, i16 0, i16 1, i16 0, i16 1, i16 0], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main1() #0 {
%1 = alloca i32, align 4
%2 = alloca [64 x i32], align 16
%3 = alloca [64 x i32], align 16
%4 = alloca [64 x i32], align 16
%5 = alloca [64 x i8], align 16
%6 = alloca [64 x i8], align 16
%7 = alloca [64 x i8], align 16
%8 = alloca [64 x i16], align 16
%9 = alloca [64 x i16], align 16
%10 = alloca [64 x i16], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main1.ib, i64 256, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.main1.ic, i64 256, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main1.cb, i64 64, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.main1.cc, i64 64, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const.main1.sb, i64 128, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const.main1.sc, i64 128, i1 false)
store i32 0, ptr %1, align 4
%11 = load i32, ptr %1, align 4
%12 = icmp slt i32 %11, 64
br i1 %12, label %.lr.ph, label %31
.lr.ph: ; preds = %0
br label %13
13: ; preds = %.lr.ph, %26
%14 = load i32, ptr %1, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [64 x i32], ptr %3, i64 0, i64 %15
%17 = load i32, ptr %16, align 4
%18 = load i32, ptr %1, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [64 x i32], ptr %4, i64 0, i64 %19
%21 = load i32, ptr %20, align 4
%22 = and i32 %17, %21
%23 = load i32, ptr %1, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [64 x i32], ptr %2, i64 0, i64 %24
store i32 %22, ptr %25, align 4
br label %26
26: ; preds = %13
%27 = load i32, ptr %1, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %1, align 4
%29 = load i32, ptr %1, align 4
%30 = icmp slt i32 %29, 64
br i1 %30, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %31
31: ; preds = %._crit_edge, %0
store i32 0, ptr %1, align 4
%32 = load i32, ptr %1, align 4
%33 = icmp slt i32 %32, 64
br i1 %33, label %.lr.ph2, label %59
.lr.ph2: ; preds = %31
br label %34
34: ; preds = %.lr.ph2, %54
%35 = load i32, ptr %1, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [64 x i32], ptr %2, i64 0, i64 %36
%38 = load i32, ptr %37, align 4
%39 = load i32, ptr %1, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [64 x i32], ptr %3, i64 0, i64 %40
%42 = load i32, ptr %41, align 4
%43 = icmp ne i32 %38, %42
%44 = zext i1 %43 to i32
%45 = load i32, ptr %1, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [64 x i32], ptr %4, i64 0, i64 %46
%48 = load i32, ptr %47, align 4
%49 = and i32 %44, %48
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %34
%52 = call i32 (...) @abort() #3
unreachable
53: ; preds = %34
br label %54
54: ; preds = %53
%55 = load i32, ptr %1, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %1, align 4
%57 = load i32, ptr %1, align 4
%58 = icmp slt i32 %57, 64
br i1 %58, label %34, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %54
br label %59
59: ; preds = %._crit_edge3, %31
store i32 0, ptr %1, align 4
%60 = load i32, ptr %1, align 4
%61 = icmp slt i32 %60, 64
br i1 %61, label %.lr.ph5, label %83
.lr.ph5: ; preds = %59
br label %62
62: ; preds = %.lr.ph5, %78
%63 = load i32, ptr %1, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [64 x i8], ptr %6, i64 0, i64 %64
%66 = load i8, ptr %65, align 1
%67 = sext i8 %66 to i32
%68 = load i32, ptr %1, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 %69
%71 = load i8, ptr %70, align 1
%72 = sext i8 %71 to i32
%73 = and i32 %67, %72
%74 = trunc i32 %73 to i8
%75 = load i32, ptr %1, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 %76
store i8 %74, ptr %77, align 1
br label %78
78: ; preds = %62
%79 = load i32, ptr %1, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %1, align 4
%81 = load i32, ptr %1, align 4
%82 = icmp slt i32 %81, 64
br i1 %82, label %62, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %78
br label %83
83: ; preds = %._crit_edge6, %59
store i32 0, ptr %1, align 4
%84 = load i32, ptr %1, align 4
%85 = icmp slt i32 %84, 64
br i1 %85, label %.lr.ph8, label %114
.lr.ph8: ; preds = %83
br label %86
86: ; preds = %.lr.ph8, %109
%87 = load i32, ptr %1, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 %88
%90 = load i8, ptr %89, align 1
%91 = sext i8 %90 to i32
%92 = load i32, ptr %1, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [64 x i8], ptr %6, i64 0, i64 %93
%95 = load i8, ptr %94, align 1
%96 = sext i8 %95 to i32
%97 = icmp ne i32 %91, %96
%98 = zext i1 %97 to i32
%99 = load i32, ptr %1, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 %100
%102 = load i8, ptr %101, align 1
%103 = sext i8 %102 to i32
%104 = and i32 %98, %103
%105 = icmp ne i32 %104, 0
br i1 %105, label %106, label %108
106: ; preds = %86
%107 = call i32 (...) @abort() #3
unreachable
108: ; preds = %86
br label %109
109: ; preds = %108
%110 = load i32, ptr %1, align 4
%111 = add nsw i32 %110, 1
store i32 %111, ptr %1, align 4
%112 = load i32, ptr %1, align 4
%113 = icmp slt i32 %112, 64
br i1 %113, label %86, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %109
br label %114
114: ; preds = %._crit_edge9, %83
store i32 0, ptr %1, align 4
%115 = load i32, ptr %1, align 4
%116 = icmp slt i32 %115, 64
br i1 %116, label %.lr.ph11, label %138
.lr.ph11: ; preds = %114
br label %117
117: ; preds = %.lr.ph11, %133
%118 = load i32, ptr %1, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds [64 x i16], ptr %9, i64 0, i64 %119
%121 = load i16, ptr %120, align 2
%122 = sext i16 %121 to i32
%123 = load i32, ptr %1, align 4
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds [64 x i16], ptr %10, i64 0, i64 %124
%126 = load i16, ptr %125, align 2
%127 = sext i16 %126 to i32
%128 = and i32 %122, %127
%129 = trunc i32 %128 to i16
%130 = load i32, ptr %1, align 4
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds [64 x i16], ptr %8, i64 0, i64 %131
store i16 %129, ptr %132, align 2
br label %133
133: ; preds = %117
%134 = load i32, ptr %1, align 4
%135 = add nsw i32 %134, 1
store i32 %135, ptr %1, align 4
%136 = load i32, ptr %1, align 4
%137 = icmp slt i32 %136, 64
br i1 %137, label %117, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %133
br label %138
138: ; preds = %._crit_edge12, %114
store i32 0, ptr %1, align 4
%139 = load i32, ptr %1, align 4
%140 = icmp slt i32 %139, 64
br i1 %140, label %.lr.ph14, label %169
.lr.ph14: ; preds = %138
br label %141
141: ; preds = %.lr.ph14, %164
%142 = load i32, ptr %1, align 4
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds [64 x i16], ptr %8, i64 0, i64 %143
%145 = load i16, ptr %144, align 2
%146 = sext i16 %145 to i32
%147 = load i32, ptr %1, align 4
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds [64 x i16], ptr %9, i64 0, i64 %148
%150 = load i16, ptr %149, align 2
%151 = sext i16 %150 to i32
%152 = icmp ne i32 %146, %151
%153 = zext i1 %152 to i32
%154 = load i32, ptr %1, align 4
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds [64 x i16], ptr %10, i64 0, i64 %155
%157 = load i16, ptr %156, align 2
%158 = sext i16 %157 to i32
%159 = and i32 %153, %158
%160 = icmp ne i32 %159, 0
br i1 %160, label %161, label %163
161: ; preds = %141
%162 = call i32 (...) @abort() #3
unreachable
163: ; preds = %141
br label %164
164: ; preds = %163
%165 = load i32, ptr %1, align 4
%166 = add nsw i32 %165, 1
store i32 %166, ptr %1, align 4
%167 = load i32, ptr %1, align 4
%168 = icmp slt i32 %167, 64
br i1 %168, label %141, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %164
br label %169
169: ; preds = %._crit_edge15, %138
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmp7mit5h8s.c'
source_filename = "/tmp/tmp7mit5h8s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mus_bgm_wait(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 @musbgm_wait(i32 noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @musbgm_wait(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/tmp7mit5h8s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mus_bgm_wait(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 @musbgm_wait(i32 noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @musbgm_wait(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/tmpnr6gefh_.c'
source_filename = "/tmp/tmpnr6gefh_.c"
target datalayout = "e-m:e-p270: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.test_all_a.a = private unnamed_addr constant [63 x i8] c"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\00", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_all_a() #0 {
%1 = alloca [63 x i8], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.test_all_a.a, i64 63, i1 false)
%2 = getelementptr inbounds [63 x i8], ptr %1, i64 0, i64 0
%3 = call i32 @use(ptr noundef %2)
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 @use(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnr6gefh_.c"
target datalayout = "e-m:e-p270: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.test_all_a.a = private unnamed_addr constant [63 x i8] c"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\00", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_all_a() #0 {
%1 = alloca [63 x i8], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.test_all_a.a, i64 63, i1 false)
%2 = getelementptr inbounds [63 x i8], ptr %1, i64 0, i64 0
%3 = call i32 @use(ptr noundef %2)
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 @use(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplgvgk5v9.c'
source_filename = "/tmp/tmplgvgk5v9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @subString(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%8 = load i32, ptr %5, align 4
%9 = sext i32 %8 to i64
%10 = mul i64 1, %9
%11 = trunc i64 %10 to i32
%12 = call ptr @malloc(i32 noundef %11)
store ptr %12, ptr %7, align 8
%13 = load ptr, ptr %7, align 8
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr %4, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i32, ptr %5, align 4
%19 = call i32 @strncpy(ptr noundef %13, ptr noundef %17, i32 noundef %18)
%20 = load ptr, ptr %7, align 8
ret ptr %20
}
declare ptr @malloc(i32 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplgvgk5v9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @subString(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%8 = load i32, ptr %5, align 4
%9 = sext i32 %8 to i64
%10 = mul i64 1, %9
%11 = trunc i64 %10 to i32
%12 = call ptr @malloc(i32 noundef %11)
store ptr %12, ptr %7, align 8
%13 = load ptr, ptr %7, align 8
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr %4, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i32, ptr %5, align 4
%19 = call i32 @strncpy(ptr noundef %13, ptr noundef %17, i32 noundef %18)
%20 = load ptr, ptr %7, align 8
ret ptr %20
}
declare ptr @malloc(i32 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp5fp8xsd.c'
source_filename = "/tmp/tmpp5fp8xsd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @xormem(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %8
8: ; preds = %28, %3
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %31
12: ; preds = %8
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %7, 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 %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %18, i64 %20
%22 = load i32, ptr %21, align 4
%23 = xor i32 %17, %22
%24 = load ptr, ptr %4, align 8
%25 = load i32, ptr %7, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %24, i64 %26
store i32 %23, ptr %27, align 4
br label %28
28: ; preds = %12
%29 = load i32, ptr %7, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %7, align 4
br label %8, !llvm.loop !6
31: ; preds = %8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp5fp8xsd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @xormem(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %33
.lr.ph: ; preds = %3
br label %11
11: ; preds = %.lr.ph, %27
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr %7, 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 %7, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %17, i64 %19
%21 = load i32, ptr %20, align 4
%22 = xor i32 %16, %21
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %7, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %23, i64 %25
store i32 %22, ptr %26, align 4
br label %27
27: ; preds = %11
%28 = load i32, ptr %7, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %7, align 4
%30 = load i32, ptr %7, align 4
%31 = load i32, ptr %6, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %33
33: ; preds = %._crit_edge, %3
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpukfwpz1r.c'
source_filename = "/tmp/tmpukfwpz1r.c"
target datalayout = "e-m:e-p270: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/tmpukfwpz1r.c"
target datalayout = "e-m:e-p270: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/tmp7g9tdhsu.c'
source_filename = "/tmp/tmp7g9tdhsu.c"
target datalayout = "e-m:e-p270: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/tmp7g9tdhsu.c"
target datalayout = "e-m:e-p270: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/tmphsv79r9q.c'
source_filename = "/tmp/tmphsv79r9q.c"
target datalayout = "e-m:e-p270: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 [34 x i8] c"error: PEM_read_PUBKEY() failed.\0A\00", align 1
@EVP_PKEY_EC = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [40 x i8] c"error: PEM does not contain an EC key.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @load_and_print_pubkey(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%8 = load ptr, ptr %4, align 8
%9 = call i32 @assert(ptr noundef %8)
%10 = load ptr, ptr %4, align 8
%11 = call ptr @PEM_read_PUBKEY(ptr noundef %10, ptr noundef null, ptr noundef null, ptr noundef null)
store ptr %11, ptr %6, align 8
%12 = load ptr, ptr %6, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %17, label %14
14: ; preds = %2
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %34
17: ; preds = %2
%18 = load ptr, ptr %6, align 8
%19 = call i64 @EVP_PKEY_base_id(ptr noundef %18)
%20 = load i64, ptr @EVP_PKEY_EC, align 8
%21 = icmp ne i64 %19, %20
br i1 %21, label %22, label %27
22: ; preds = %17
%23 = load i32, ptr @stderr, align 4
%24 = call i32 @fprintf(i32 noundef %23, ptr noundef @.str.1)
%25 = load ptr, ptr %6, align 8
%26 = call i32 @EVP_PKEY_free(ptr noundef %25)
store i32 1, ptr %3, align 4
br label %34
27: ; preds = %17
%28 = load ptr, ptr %6, align 8
%29 = load i32, ptr %5, align 4
%30 = call i32 @extract_and_print_eckey(ptr noundef %28, i32 noundef %29)
store i32 %30, ptr %7, align 4
%31 = load ptr, ptr %6, align 8
%32 = call i32 @EVP_PKEY_free(ptr noundef %31)
%33 = load i32, ptr %7, align 4
store i32 %33, ptr %3, align 4
br label %34
34: ; preds = %27, %22, %14
%35 = load i32, ptr %3, align 4
ret i32 %35
}
declare i32 @assert(ptr noundef) #1
declare ptr @PEM_read_PUBKEY(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i64 @EVP_PKEY_base_id(ptr noundef) #1
declare i32 @EVP_PKEY_free(ptr noundef) #1
declare i32 @extract_and_print_eckey(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/tmphsv79r9q.c"
target datalayout = "e-m:e-p270: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 [34 x i8] c"error: PEM_read_PUBKEY() failed.\0A\00", align 1
@EVP_PKEY_EC = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [40 x i8] c"error: PEM does not contain an EC key.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @load_and_print_pubkey(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%8 = load ptr, ptr %4, align 8
%9 = call i32 @assert(ptr noundef %8)
%10 = load ptr, ptr %4, align 8
%11 = call ptr @PEM_read_PUBKEY(ptr noundef %10, ptr noundef null, ptr noundef null, ptr noundef null)
store ptr %11, ptr %6, align 8
%12 = load ptr, ptr %6, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %17, label %14
14: ; preds = %2
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %34
17: ; preds = %2
%18 = load ptr, ptr %6, align 8
%19 = call i64 @EVP_PKEY_base_id(ptr noundef %18)
%20 = load i64, ptr @EVP_PKEY_EC, align 8
%21 = icmp ne i64 %19, %20
br i1 %21, label %22, label %27
22: ; preds = %17
%23 = load i32, ptr @stderr, align 4
%24 = call i32 @fprintf(i32 noundef %23, ptr noundef @.str.1)
%25 = load ptr, ptr %6, align 8
%26 = call i32 @EVP_PKEY_free(ptr noundef %25)
store i32 1, ptr %3, align 4
br label %34
27: ; preds = %17
%28 = load ptr, ptr %6, align 8
%29 = load i32, ptr %5, align 4
%30 = call i32 @extract_and_print_eckey(ptr noundef %28, i32 noundef %29)
store i32 %30, ptr %7, align 4
%31 = load ptr, ptr %6, align 8
%32 = call i32 @EVP_PKEY_free(ptr noundef %31)
%33 = load i32, ptr %7, align 4
store i32 %33, ptr %3, align 4
br label %34
34: ; preds = %27, %22, %14
%35 = load i32, ptr %3, align 4
ret i32 %35
}
declare i32 @assert(ptr noundef) #1
declare ptr @PEM_read_PUBKEY(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i64 @EVP_PKEY_base_id(ptr noundef) #1
declare i32 @EVP_PKEY_free(ptr noundef) #1
declare i32 @extract_and_print_eckey(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/tmppw6jlwbu.c'
source_filename = "/tmp/tmppw6jlwbu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i64 }
@.str = private unnamed_addr constant [25 x i8] c"usage:cpmm <src> <dest>\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [20 x i8] c"open src failed %d\0A\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@S_IRWXU = dso_local global i32 0, align 4
@S_IRWXG = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [21 x i8] c"open dest failed %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"fstat src failed\0A\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [19 x i8] c"lseek dest failed\0A\00", align 1
@PROT_READ = dso_local global i32 0, align 4
@MAP_PRIVATE = dso_local global i32 0, align 4
@MAP_NORESERVE = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
@.str.5 = private unnamed_addr constant [15 x i8] c"sm map failed\0A\00", align 1
@PROT_WRITE = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [15 x i8] c"dm map failed\0A\00", align 1
@.str.7 = private unnamed_addr constant [14 x i8] c"copy succeed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca %struct.stat, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 3
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %91
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
%19 = load i32, ptr @O_RDONLY, align 4
%20 = call i32 (ptr, i32, ...) @open(ptr noundef %18, i32 noundef %19)
store i32 %20, ptr %6, align 4
%21 = icmp slt i32 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %15
%23 = load i32, ptr %6, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %23)
store i32 1, ptr %3, align 4
br label %91
25: ; preds = %15
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 2
%28 = load ptr, ptr %27, align 8
%29 = load i32, ptr @O_RDWR, align 4
%30 = load i32, ptr @O_CREAT, align 4
%31 = or i32 %29, %30
%32 = load i32, ptr @O_TRUNC, align 4
%33 = or i32 %31, %32
%34 = load i32, ptr @S_IRWXU, align 4
%35 = load i32, ptr @S_IRWXG, align 4
%36 = or i32 %34, %35
%37 = call i32 (ptr, i32, ...) @open(ptr noundef %28, i32 noundef %33, i32 noundef %36)
store i32 %37, ptr %7, align 4
%38 = icmp slt i32 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %25
%40 = load i32, ptr %7, align 4
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %40)
store i32 1, ptr %3, align 4
br label %91
42: ; preds = %25
%43 = load i32, ptr %6, align 4
%44 = call i64 @fstat(i32 noundef %43, ptr noundef %10)
%45 = icmp slt i64 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %42
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 1, ptr %3, align 4
br label %91
48: ; preds = %42
%49 = load i32, ptr %7, align 4
%50 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 0
%51 = load i64, ptr %50, align 8
%52 = sub nsw i64 %51, 1
%53 = load i32, ptr @SEEK_SET, align 4
%54 = call i64 @lseek(i32 noundef %49, i64 noundef %52, i32 noundef %53)
%55 = icmp slt i64 %54, 0
br i1 %55, label %56, label %58
56: ; preds = %48
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 1, ptr %3, align 4
br label %91
58: ; preds = %48
%59 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 0
%60 = load i64, ptr %59, align 8
%61 = load i32, ptr @PROT_READ, align 4
%62 = load i32, ptr @MAP_PRIVATE, align 4
%63 = load i32, ptr @MAP_NORESERVE, align 4
%64 = or i32 %62, %63
%65 = load i32, ptr %6, align 4
%66 = call ptr @mmap(i32 noundef 0, i64 noundef %60, i32 noundef %61, i32 noundef %64, i32 noundef %65, i32 noundef 0)
store ptr %66, ptr %8, align 8
%67 = load ptr, ptr %8, align 8
%68 = load ptr, ptr @MAP_FAILED, align 8
%69 = icmp eq ptr %67, %68
br i1 %69, label %70, label %72
70: ; preds = %58
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 1, ptr %3, align 4
br label %91
72: ; preds = %58
%73 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 0
%74 = load i64, ptr %73, align 8
%75 = load i32, ptr @PROT_WRITE, align 4
%76 = load i32, ptr @MAP_SHARED, align 4
%77 = load i32, ptr %7, align 4
%78 = call ptr @mmap(i32 noundef 0, i64 noundef %74, i32 noundef %75, i32 noundef %76, i32 noundef %77, i32 noundef 0)
store ptr %78, ptr %9, align 8
%79 = load ptr, ptr %9, align 8
%80 = load ptr, ptr @MAP_FAILED, align 8
%81 = icmp eq ptr %79, %80
br i1 %81, label %82, label %84
82: ; preds = %72
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store i32 1, ptr %3, align 4
br label %91
84: ; preds = %72
%85 = load ptr, ptr %9, align 8
%86 = load ptr, ptr %8, align 8
%87 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 0
%88 = load i64, ptr %87, align 8
%89 = call i32 @memcpy(ptr noundef %85, ptr noundef %86, i64 noundef %88)
%90 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
store i32 0, ptr %3, align 4
br label %91
91: ; preds = %84, %82, %70, %56, %46, %39, %22, %13
%92 = load i32, ptr %3, align 4
ret i32 %92
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @open(ptr noundef, i32 noundef, ...) #1
declare i64 @fstat(i32 noundef, ptr noundef) #1
declare i64 @lseek(i32 noundef, i64 noundef, i32 noundef) #1
declare ptr @mmap(i32 noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppw6jlwbu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i64 }
@.str = private unnamed_addr constant [25 x i8] c"usage:cpmm <src> <dest>\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [20 x i8] c"open src failed %d\0A\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@S_IRWXU = dso_local global i32 0, align 4
@S_IRWXG = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [21 x i8] c"open dest failed %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"fstat src failed\0A\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [19 x i8] c"lseek dest failed\0A\00", align 1
@PROT_READ = dso_local global i32 0, align 4
@MAP_PRIVATE = dso_local global i32 0, align 4
@MAP_NORESERVE = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
@.str.5 = private unnamed_addr constant [15 x i8] c"sm map failed\0A\00", align 1
@PROT_WRITE = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [15 x i8] c"dm map failed\0A\00", align 1
@.str.7 = private unnamed_addr constant [14 x i8] c"copy succeed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca %struct.stat, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 3
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %91
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
%19 = load i32, ptr @O_RDONLY, align 4
%20 = call i32 (ptr, i32, ...) @open(ptr noundef %18, i32 noundef %19)
store i32 %20, ptr %6, align 4
%21 = icmp slt i32 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %15
%23 = load i32, ptr %6, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %23)
store i32 1, ptr %3, align 4
br label %91
25: ; preds = %15
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 2
%28 = load ptr, ptr %27, align 8
%29 = load i32, ptr @O_RDWR, align 4
%30 = load i32, ptr @O_CREAT, align 4
%31 = or i32 %29, %30
%32 = load i32, ptr @O_TRUNC, align 4
%33 = or i32 %31, %32
%34 = load i32, ptr @S_IRWXU, align 4
%35 = load i32, ptr @S_IRWXG, align 4
%36 = or i32 %34, %35
%37 = call i32 (ptr, i32, ...) @open(ptr noundef %28, i32 noundef %33, i32 noundef %36)
store i32 %37, ptr %7, align 4
%38 = icmp slt i32 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %25
%40 = load i32, ptr %7, align 4
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %40)
store i32 1, ptr %3, align 4
br label %91
42: ; preds = %25
%43 = load i32, ptr %6, align 4
%44 = call i64 @fstat(i32 noundef %43, ptr noundef %10)
%45 = icmp slt i64 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %42
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 1, ptr %3, align 4
br label %91
48: ; preds = %42
%49 = load i32, ptr %7, align 4
%50 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 0
%51 = load i64, ptr %50, align 8
%52 = sub nsw i64 %51, 1
%53 = load i32, ptr @SEEK_SET, align 4
%54 = call i64 @lseek(i32 noundef %49, i64 noundef %52, i32 noundef %53)
%55 = icmp slt i64 %54, 0
br i1 %55, label %56, label %58
56: ; preds = %48
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 1, ptr %3, align 4
br label %91
58: ; preds = %48
%59 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 0
%60 = load i64, ptr %59, align 8
%61 = load i32, ptr @PROT_READ, align 4
%62 = load i32, ptr @MAP_PRIVATE, align 4
%63 = load i32, ptr @MAP_NORESERVE, align 4
%64 = or i32 %62, %63
%65 = load i32, ptr %6, align 4
%66 = call ptr @mmap(i32 noundef 0, i64 noundef %60, i32 noundef %61, i32 noundef %64, i32 noundef %65, i32 noundef 0)
store ptr %66, ptr %8, align 8
%67 = load ptr, ptr %8, align 8
%68 = load ptr, ptr @MAP_FAILED, align 8
%69 = icmp eq ptr %67, %68
br i1 %69, label %70, label %72
70: ; preds = %58
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 1, ptr %3, align 4
br label %91
72: ; preds = %58
%73 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 0
%74 = load i64, ptr %73, align 8
%75 = load i32, ptr @PROT_WRITE, align 4
%76 = load i32, ptr @MAP_SHARED, align 4
%77 = load i32, ptr %7, align 4
%78 = call ptr @mmap(i32 noundef 0, i64 noundef %74, i32 noundef %75, i32 noundef %76, i32 noundef %77, i32 noundef 0)
store ptr %78, ptr %9, align 8
%79 = load ptr, ptr %9, align 8
%80 = load ptr, ptr @MAP_FAILED, align 8
%81 = icmp eq ptr %79, %80
br i1 %81, label %82, label %84
82: ; preds = %72
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store i32 1, ptr %3, align 4
br label %91
84: ; preds = %72
%85 = load ptr, ptr %9, align 8
%86 = load ptr, ptr %8, align 8
%87 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 0
%88 = load i64, ptr %87, align 8
%89 = call i32 @memcpy(ptr noundef %85, ptr noundef %86, i64 noundef %88)
%90 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
store i32 0, ptr %3, align 4
br label %91
91: ; preds = %84, %82, %70, %56, %46, %39, %22, %13
%92 = load i32, ptr %3, align 4
ret i32 %92
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @open(ptr noundef, i32 noundef, ...) #1
declare i64 @fstat(i32 noundef, ptr noundef) #1
declare i64 @lseek(i32 noundef, i64 noundef, i32 noundef) #1
declare ptr @mmap(i32 noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpje_1nc0w.c'
source_filename = "/tmp/tmpje_1nc0w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fprint_route_fmt(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @__fprint_route_fmt(ptr noundef %7, ptr noundef %8, ptr noundef %9, i32 noundef 0)
ret i32 %10
}
declare i32 @__fprint_route_fmt(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/tmpje_1nc0w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fprint_route_fmt(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @__fprint_route_fmt(ptr noundef %7, ptr noundef %8, ptr noundef %9, i32 noundef 0)
ret i32 %10
}
declare i32 @__fprint_route_fmt(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/tmp0d05bu2c.c'
source_filename = "/tmp/tmp0d05bu2c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_digit(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = call i32 @isdigit(i8 noundef signext %3)
ret i32 %4
}
declare i32 @isdigit(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0d05bu2c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_digit(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = call i32 @isdigit(i8 noundef signext %3)
ret i32 %4
}
declare i32 @isdigit(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxuqehx5p.c'
source_filename = "/tmp/tmpxuqehx5p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ClientScript_Exec() #0 {
%1 = alloca [512 x i8], align 16
%2 = getelementptr inbounds [512 x i8], ptr %1, i64 0, i64 0
%3 = call i32 @ClientScript_GetCommand(ptr noundef %2)
%4 = getelementptr inbounds [512 x i8], ptr %1, i64 0, i64 0
%5 = call i64 @strlen(ptr noundef %4)
%6 = icmp sgt i64 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %0
%8 = getelementptr inbounds [512 x i8], ptr %1, i64 0, i64 0
%9 = call i32 @ClientScript_ExecText(ptr noundef %8)
br label %10
10: ; preds = %7, %0
ret void
}
declare i32 @ClientScript_GetCommand(ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @ClientScript_ExecText(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxuqehx5p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ClientScript_Exec() #0 {
%1 = alloca [512 x i8], align 16
%2 = getelementptr inbounds [512 x i8], ptr %1, i64 0, i64 0
%3 = call i32 @ClientScript_GetCommand(ptr noundef %2)
%4 = getelementptr inbounds [512 x i8], ptr %1, i64 0, i64 0
%5 = call i64 @strlen(ptr noundef %4)
%6 = icmp sgt i64 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %0
%8 = getelementptr inbounds [512 x i8], ptr %1, i64 0, i64 0
%9 = call i32 @ClientScript_ExecText(ptr noundef %8)
br label %10
10: ; preds = %7, %0
ret void
}
declare i32 @ClientScript_GetCommand(ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @ClientScript_ExecText(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpswd2km42.c'
source_filename = "/tmp/tmpswd2km42.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%i\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"Sneka se nevyplati otocit.\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"Sneka se vyplati otocit.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
store i32 0, ptr %7, align 4
store i32 1, ptr %8, align 4
br label %10
10: ; preds = %24, %2
%11 = load i32, ptr %8, align 4
%12 = load i32, ptr %6, align 4
%13 = sdiv i32 %12, 2
%14 = icmp sle i32 %11, %13
br i1 %14, label %15, label %27
15: ; preds = %10
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr %8, align 4
%18 = srem i32 %16, %17
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %15
%21 = load i32, ptr %7, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %7, align 4
br label %23
23: ; preds = %20, %15
br label %24
24: ; preds = %23
%25 = load i32, ptr %8, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %8, align 4
br label %10, !llvm.loop !6
27: ; preds = %10
%28 = load i32, ptr %7, align 4
%29 = srem i32 %28, 2
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %27
%32 = call i32 @printf(ptr noundef @.str.1)
br label %35
33: ; preds = %27
%34 = call i32 @printf(ptr noundef @.str.2)
br label %35
35: ; preds = %33, %31
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpswd2km42.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%i\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"Sneka se nevyplati otocit.\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"Sneka se vyplati otocit.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
store i32 0, ptr %7, align 4
store i32 1, ptr %8, align 4
%10 = load i32, ptr %8, align 4
%11 = load i32, ptr %6, align 4
%12 = sdiv i32 %11, 2
%13 = icmp sle i32 %10, %12
br i1 %13, label %.lr.ph, label %30
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %23
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %8, align 4
%17 = srem i32 %15, %16
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %14
%20 = load i32, ptr %7, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %7, align 4
br label %22
22: ; preds = %19, %14
br label %23
23: ; preds = %22
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %8, align 4
%26 = load i32, ptr %8, align 4
%27 = load i32, ptr %6, align 4
%28 = sdiv i32 %27, 2
%29 = icmp sle i32 %26, %28
br i1 %29, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %30
30: ; preds = %._crit_edge, %2
%31 = load i32, ptr %7, align 4
%32 = srem i32 %31, 2
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %30
%35 = call i32 @printf(ptr noundef @.str.1)
br label %38
36: ; preds = %30
%37 = call i32 @printf(ptr noundef @.str.2)
br label %38
38: ; preds = %36, %34
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpi_5osyab.c'
source_filename = "/tmp/tmpi_5osyab.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @kputchar(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i8, align 1
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = trunc i32 %4 to i8
store i8 %5, ptr %3, align 1
%6 = load i8, ptr %3, align 1
%7 = call i32 @vga_put(i8 noundef signext %6)
%8 = call i64 (...) @isSerialInitDone()
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = load i8, ptr %3, align 1
%12 = call i32 @serial_write_char(i8 noundef signext %11)
br label %13
13: ; preds = %10, %1
%14 = load i32, ptr %2, align 4
ret i32 %14
}
declare i32 @vga_put(i8 noundef signext) #1
declare i64 @isSerialInitDone(...) #1
declare i32 @serial_write_char(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi_5osyab.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @kputchar(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i8, align 1
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = trunc i32 %4 to i8
store i8 %5, ptr %3, align 1
%6 = load i8, ptr %3, align 1
%7 = call i32 @vga_put(i8 noundef signext %6)
%8 = call i64 (...) @isSerialInitDone()
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = load i8, ptr %3, align 1
%12 = call i32 @serial_write_char(i8 noundef signext %11)
br label %13
13: ; preds = %10, %1
%14 = load i32, ptr %2, align 4
ret i32 %14
}
declare i32 @vga_put(i8 noundef signext) #1
declare i64 @isSerialInitDone(...) #1
declare i32 @serial_write_char(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpainnhjll.c'
source_filename = "/tmp/tmpainnhjll.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @BotSaveGoalFuzzyLogic(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpainnhjll.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @BotSaveGoalFuzzyLogic(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg0l471gg.c'
source_filename = "/tmp/tmpg0l471gg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @strcmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
br label %6
6: ; preds = %29, %2
%7 = load ptr, ptr %4, align 8
%8 = getelementptr inbounds i8, ptr %7, i32 1
store ptr %8, ptr %4, align 8
%9 = load i8, ptr %7, align 1
%10 = sext i8 %9 to i32
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %5, align 8
%13 = load i8, ptr %11, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %10, %14
br i1 %15, label %16, label %28
16: ; preds = %6
%17 = load ptr, ptr %4, align 8
%18 = getelementptr inbounds i8, ptr %17, i64 -1
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i64
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 -1
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i64
%25 = icmp sgt i64 %20, %24
%26 = zext i1 %25 to i64
%27 = select i1 %25, i32 1, i32 -1
store i32 %27, ptr %3, align 4
br label %36
28: ; preds = %6
br label %29
29: ; preds = %28
%30 = load ptr, ptr %4, align 8
%31 = getelementptr inbounds i8, ptr %30, i64 -1
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp ne i32 %33, 0
br i1 %34, label %6, label %35, !llvm.loop !6
35: ; preds = %29
store i32 0, ptr %3, align 4
br label %36
36: ; preds = %35, %16
%37 = load i32, ptr %3, align 4
ret i32 %37
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpg0l471gg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @strcmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
br label %6
6: ; preds = %29, %2
%7 = load ptr, ptr %4, align 8
%8 = getelementptr inbounds i8, ptr %7, i32 1
store ptr %8, ptr %4, align 8
%9 = load i8, ptr %7, align 1
%10 = sext i8 %9 to i32
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %5, align 8
%13 = load i8, ptr %11, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %10, %14
br i1 %15, label %16, label %28
16: ; preds = %6
%17 = load ptr, ptr %4, align 8
%18 = getelementptr inbounds i8, ptr %17, i64 -1
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i64
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 -1
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i64
%25 = icmp sgt i64 %20, %24
%26 = zext i1 %25 to i64
%27 = select i1 %25, i32 1, i32 -1
store i32 %27, ptr %3, align 4
br label %36
28: ; preds = %6
br label %29
29: ; preds = %28
%30 = load ptr, ptr %4, align 8
%31 = getelementptr inbounds i8, ptr %30, i64 -1
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp ne i32 %33, 0
br i1 %34, label %6, label %35, !llvm.loop !6
35: ; preds = %29
store i32 0, ptr %3, align 4
br label %36
36: ; preds = %35, %16
%37 = load i32, ptr %3, align 4
ret i32 %37
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpc99oyo_c.c'
source_filename = "/tmp/tmpc99oyo_c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @diff5(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%10 = load double, ptr %3, align 8
%11 = load double, ptr %4, align 8
%12 = fadd double %10, %11
%13 = call double @_f(double noundef %12)
%14 = load double, ptr %3, align 8
%15 = call double @_f(double noundef %14)
%16 = fsub double %13, %15
store double %16, ptr %5, align 8
%17 = load double, ptr %3, align 8
%18 = load double, ptr %4, align 8
%19 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %18, double %17)
%20 = call double @_f(double noundef %19)
%21 = load double, ptr %3, align 8
%22 = call double @_f(double noundef %21)
%23 = fsub double %20, %22
store double %23, ptr %6, align 8
%24 = load double, ptr %3, align 8
%25 = load double, ptr %4, align 8
%26 = call double @llvm.fmuladd.f64(double 3.000000e+00, double %25, double %24)
%27 = call double @_f(double noundef %26)
%28 = load double, ptr %3, align 8
%29 = call double @_f(double noundef %28)
%30 = fsub double %27, %29
store double %30, ptr %7, align 8
%31 = load double, ptr %3, align 8
%32 = load double, ptr %4, align 8
%33 = call double @llvm.fmuladd.f64(double 4.000000e+00, double %32, double %31)
%34 = call double @_f(double noundef %33)
%35 = load double, ptr %3, align 8
%36 = call double @_f(double noundef %35)
%37 = fsub double %34, %36
store double %37, ptr %8, align 8
%38 = load double, ptr %3, align 8
%39 = load double, ptr %4, align 8
%40 = call double @llvm.fmuladd.f64(double 5.000000e+00, double %39, double %38)
%41 = call double @_f(double noundef %40)
%42 = load double, ptr %3, align 8
%43 = call double @_f(double noundef %42)
%44 = fsub double %41, %43
store double %44, ptr %9, align 8
%45 = load double, ptr %5, align 8
%46 = load double, ptr %6, align 8
%47 = fsub double %45, %46
%48 = load double, ptr %7, align 8
%49 = fmul double 1.000000e+01, %48
%50 = fdiv double %49, 3.000000e+00
%51 = call double @llvm.fmuladd.f64(double 5.000000e+00, double %47, double %50)
%52 = load double, ptr %8, align 8
%53 = call double @llvm.fmuladd.f64(double -1.250000e+00, double %52, double %51)
%54 = load double, ptr %9, align 8
%55 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %54, double %53)
%56 = load double, ptr %4, align 8
%57 = fdiv double %55, %56
ret double %57
}
declare double @_f(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc99oyo_c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @diff5(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%10 = load double, ptr %3, align 8
%11 = load double, ptr %4, align 8
%12 = fadd double %10, %11
%13 = call double @_f(double noundef %12)
%14 = load double, ptr %3, align 8
%15 = call double @_f(double noundef %14)
%16 = fsub double %13, %15
store double %16, ptr %5, align 8
%17 = load double, ptr %3, align 8
%18 = load double, ptr %4, align 8
%19 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %18, double %17)
%20 = call double @_f(double noundef %19)
%21 = load double, ptr %3, align 8
%22 = call double @_f(double noundef %21)
%23 = fsub double %20, %22
store double %23, ptr %6, align 8
%24 = load double, ptr %3, align 8
%25 = load double, ptr %4, align 8
%26 = call double @llvm.fmuladd.f64(double 3.000000e+00, double %25, double %24)
%27 = call double @_f(double noundef %26)
%28 = load double, ptr %3, align 8
%29 = call double @_f(double noundef %28)
%30 = fsub double %27, %29
store double %30, ptr %7, align 8
%31 = load double, ptr %3, align 8
%32 = load double, ptr %4, align 8
%33 = call double @llvm.fmuladd.f64(double 4.000000e+00, double %32, double %31)
%34 = call double @_f(double noundef %33)
%35 = load double, ptr %3, align 8
%36 = call double @_f(double noundef %35)
%37 = fsub double %34, %36
store double %37, ptr %8, align 8
%38 = load double, ptr %3, align 8
%39 = load double, ptr %4, align 8
%40 = call double @llvm.fmuladd.f64(double 5.000000e+00, double %39, double %38)
%41 = call double @_f(double noundef %40)
%42 = load double, ptr %3, align 8
%43 = call double @_f(double noundef %42)
%44 = fsub double %41, %43
store double %44, ptr %9, align 8
%45 = load double, ptr %5, align 8
%46 = load double, ptr %6, align 8
%47 = fsub double %45, %46
%48 = load double, ptr %7, align 8
%49 = fmul double 1.000000e+01, %48
%50 = fdiv double %49, 3.000000e+00
%51 = call double @llvm.fmuladd.f64(double 5.000000e+00, double %47, double %50)
%52 = load double, ptr %8, align 8
%53 = call double @llvm.fmuladd.f64(double -1.250000e+00, double %52, double %51)
%54 = load double, ptr %9, align 8
%55 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %54, double %53)
%56 = load double, ptr %4, align 8
%57 = fdiv double %55, %56
ret double %57
}
declare double @_f(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl2v5i2tu.c'
source_filename = "/tmp/tmpl2v5i2tu.c"
target datalayout = "e-m:e-p270: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 { i64, i64 }
@CLOCK_MONOTONIC = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [39 x i8] c"clock_getres: tv_sec=%ld, tv_nsec=%ld\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"clock_getres != 0\00", align 1
@CLOCK_REALTIME = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [52 x i8] c"CLOCK_REALTIME resolution: tv_sec=%ld, tv_nsec=%ld\0A\00", align 1
@.str.3 = private unnamed_addr constant [53 x i8] c"CLOCK_MONOTONIC resolution: tv_sec=%ld, tv_nsec=%ld\0A\00", align 1
@CLOCK_MONOTONIC_RAW = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [57 x i8] c"CLOCK_MONOTONIC_RAW resolution: tv_sec=%ld, tv_nsec=%ld\0A\00", align 1
@CLOCK_PROCESS_CPUTIME_ID = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [62 x i8] c"CLOCK_PROCESS_CPUTIME_ID resolution: tv_sec=%ld, tv_nsec=%ld\0A\00", align 1
@.str.6 = private unnamed_addr constant [51 x i8] c"CLOCK_MONOTONIC getpid(): tv_sec=%ld, tv_nsec=%ld\0A\00", align 1
@.str.7 = private unnamed_addr constant [51 x i8] c"CLOCK_MONOTONIC getuid(): tv_sec=%ld, tv_nsec=%ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @get_resolution_of_clock_gettime() #0 {
%1 = alloca %struct.timespec, align 8
%2 = alloca %struct.timespec, align 8
%3 = alloca %struct.timespec, align 8
%4 = load i32, ptr @CLOCK_MONOTONIC, align 4
%5 = call i64 @clock_getres(i32 noundef %4, ptr noundef %1)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %13
7: ; preds = %0
%8 = getelementptr inbounds %struct.timespec, ptr %1, i32 0, i32 1
%9 = load i64, ptr %8, align 8
%10 = getelementptr inbounds %struct.timespec, ptr %1, i32 0, i32 0
%11 = load i64, ptr %10, align 8
%12 = call i32 @printf(ptr noundef @.str, i64 noundef %9, i64 noundef %11)
br label %15
13: ; preds = %0
%14 = call i32 @perror(ptr noundef @.str.1)
br label %15
15: ; preds = %13, %7
%16 = load i32, ptr @CLOCK_REALTIME, align 4
%17 = call i32 @clock_gettime(i32 noundef %16, ptr noundef %2)
%18 = load i32, ptr @CLOCK_REALTIME, align 4
%19 = call i32 @clock_gettime(i32 noundef %18, ptr noundef %3)
%20 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 1
%21 = load i64, ptr %20, align 8
%22 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 1
%23 = load i64, ptr %22, align 8
%24 = sub nsw i64 %21, %23
%25 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 0
%26 = load i64, ptr %25, align 8
%27 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 0
%28 = load i64, ptr %27, align 8
%29 = sub nsw i64 %26, %28
%30 = call i32 @printf(ptr noundef @.str.2, i64 noundef %24, i64 noundef %29)
%31 = load i32, ptr @CLOCK_MONOTONIC, align 4
%32 = call i32 @clock_gettime(i32 noundef %31, ptr noundef %2)
%33 = load i32, ptr @CLOCK_MONOTONIC, align 4
%34 = call i32 @clock_gettime(i32 noundef %33, ptr noundef %3)
%35 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 1
%36 = load i64, ptr %35, align 8
%37 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 1
%38 = load i64, ptr %37, align 8
%39 = sub nsw i64 %36, %38
%40 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 0
%41 = load i64, ptr %40, align 8
%42 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 0
%43 = load i64, ptr %42, align 8
%44 = sub nsw i64 %41, %43
%45 = call i32 @printf(ptr noundef @.str.3, i64 noundef %39, i64 noundef %44)
%46 = load i32, ptr @CLOCK_MONOTONIC_RAW, align 4
%47 = call i32 @clock_gettime(i32 noundef %46, ptr noundef %2)
%48 = load i32, ptr @CLOCK_MONOTONIC_RAW, align 4
%49 = call i32 @clock_gettime(i32 noundef %48, ptr noundef %3)
%50 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 1
%51 = load i64, ptr %50, align 8
%52 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 1
%53 = load i64, ptr %52, align 8
%54 = sub nsw i64 %51, %53
%55 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 0
%56 = load i64, ptr %55, align 8
%57 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 0
%58 = load i64, ptr %57, align 8
%59 = sub nsw i64 %56, %58
%60 = call i32 @printf(ptr noundef @.str.4, i64 noundef %54, i64 noundef %59)
%61 = load i32, ptr @CLOCK_PROCESS_CPUTIME_ID, align 4
%62 = call i32 @clock_gettime(i32 noundef %61, ptr noundef %2)
%63 = load i32, ptr @CLOCK_PROCESS_CPUTIME_ID, align 4
%64 = call i32 @clock_gettime(i32 noundef %63, ptr noundef %3)
%65 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 1
%66 = load i64, ptr %65, align 8
%67 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 1
%68 = load i64, ptr %67, align 8
%69 = sub nsw i64 %66, %68
%70 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 0
%71 = load i64, ptr %70, align 8
%72 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 0
%73 = load i64, ptr %72, align 8
%74 = sub nsw i64 %71, %73
%75 = call i32 @printf(ptr noundef @.str.5, i64 noundef %69, i64 noundef %74)
%76 = load i32, ptr @CLOCK_MONOTONIC, align 4
%77 = call i32 @clock_gettime(i32 noundef %76, ptr noundef %2)
%78 = call i32 (...) @getpid()
%79 = load i32, ptr @CLOCK_MONOTONIC, align 4
%80 = call i32 @clock_gettime(i32 noundef %79, ptr noundef %3)
%81 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 1
%82 = load i64, ptr %81, align 8
%83 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 1
%84 = load i64, ptr %83, align 8
%85 = sub nsw i64 %82, %84
%86 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 0
%87 = load i64, ptr %86, align 8
%88 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 0
%89 = load i64, ptr %88, align 8
%90 = sub nsw i64 %87, %89
%91 = call i32 @printf(ptr noundef @.str.6, i64 noundef %85, i64 noundef %90)
%92 = load i32, ptr @CLOCK_MONOTONIC, align 4
%93 = call i32 @clock_gettime(i32 noundef %92, ptr noundef %2)
%94 = call i32 (...) @getuid()
%95 = load i32, ptr @CLOCK_MONOTONIC, align 4
%96 = call i32 @clock_gettime(i32 noundef %95, ptr noundef %3)
%97 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 1
%98 = load i64, ptr %97, align 8
%99 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 1
%100 = load i64, ptr %99, align 8
%101 = sub nsw i64 %98, %100
%102 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 0
%103 = load i64, ptr %102, align 8
%104 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 0
%105 = load i64, ptr %104, align 8
%106 = sub nsw i64 %103, %105
%107 = call i32 @printf(ptr noundef @.str.7, i64 noundef %101, i64 noundef %106)
ret void
}
declare i64 @clock_getres(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i64 noundef, i64 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @clock_gettime(i32 noundef, ptr noundef) #1
declare i32 @getpid(...) #1
declare i32 @getuid(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl2v5i2tu.c"
target datalayout = "e-m:e-p270: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 { i64, i64 }
@CLOCK_MONOTONIC = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [39 x i8] c"clock_getres: tv_sec=%ld, tv_nsec=%ld\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"clock_getres != 0\00", align 1
@CLOCK_REALTIME = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [52 x i8] c"CLOCK_REALTIME resolution: tv_sec=%ld, tv_nsec=%ld\0A\00", align 1
@.str.3 = private unnamed_addr constant [53 x i8] c"CLOCK_MONOTONIC resolution: tv_sec=%ld, tv_nsec=%ld\0A\00", align 1
@CLOCK_MONOTONIC_RAW = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [57 x i8] c"CLOCK_MONOTONIC_RAW resolution: tv_sec=%ld, tv_nsec=%ld\0A\00", align 1
@CLOCK_PROCESS_CPUTIME_ID = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [62 x i8] c"CLOCK_PROCESS_CPUTIME_ID resolution: tv_sec=%ld, tv_nsec=%ld\0A\00", align 1
@.str.6 = private unnamed_addr constant [51 x i8] c"CLOCK_MONOTONIC getpid(): tv_sec=%ld, tv_nsec=%ld\0A\00", align 1
@.str.7 = private unnamed_addr constant [51 x i8] c"CLOCK_MONOTONIC getuid(): tv_sec=%ld, tv_nsec=%ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @get_resolution_of_clock_gettime() #0 {
%1 = alloca %struct.timespec, align 8
%2 = alloca %struct.timespec, align 8
%3 = alloca %struct.timespec, align 8
%4 = load i32, ptr @CLOCK_MONOTONIC, align 4
%5 = call i64 @clock_getres(i32 noundef %4, ptr noundef %1)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %13
7: ; preds = %0
%8 = getelementptr inbounds %struct.timespec, ptr %1, i32 0, i32 1
%9 = load i64, ptr %8, align 8
%10 = getelementptr inbounds %struct.timespec, ptr %1, i32 0, i32 0
%11 = load i64, ptr %10, align 8
%12 = call i32 @printf(ptr noundef @.str, i64 noundef %9, i64 noundef %11)
br label %15
13: ; preds = %0
%14 = call i32 @perror(ptr noundef @.str.1)
br label %15
15: ; preds = %13, %7
%16 = load i32, ptr @CLOCK_REALTIME, align 4
%17 = call i32 @clock_gettime(i32 noundef %16, ptr noundef %2)
%18 = load i32, ptr @CLOCK_REALTIME, align 4
%19 = call i32 @clock_gettime(i32 noundef %18, ptr noundef %3)
%20 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 1
%21 = load i64, ptr %20, align 8
%22 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 1
%23 = load i64, ptr %22, align 8
%24 = sub nsw i64 %21, %23
%25 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 0
%26 = load i64, ptr %25, align 8
%27 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 0
%28 = load i64, ptr %27, align 8
%29 = sub nsw i64 %26, %28
%30 = call i32 @printf(ptr noundef @.str.2, i64 noundef %24, i64 noundef %29)
%31 = load i32, ptr @CLOCK_MONOTONIC, align 4
%32 = call i32 @clock_gettime(i32 noundef %31, ptr noundef %2)
%33 = load i32, ptr @CLOCK_MONOTONIC, align 4
%34 = call i32 @clock_gettime(i32 noundef %33, ptr noundef %3)
%35 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 1
%36 = load i64, ptr %35, align 8
%37 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 1
%38 = load i64, ptr %37, align 8
%39 = sub nsw i64 %36, %38
%40 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 0
%41 = load i64, ptr %40, align 8
%42 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 0
%43 = load i64, ptr %42, align 8
%44 = sub nsw i64 %41, %43
%45 = call i32 @printf(ptr noundef @.str.3, i64 noundef %39, i64 noundef %44)
%46 = load i32, ptr @CLOCK_MONOTONIC_RAW, align 4
%47 = call i32 @clock_gettime(i32 noundef %46, ptr noundef %2)
%48 = load i32, ptr @CLOCK_MONOTONIC_RAW, align 4
%49 = call i32 @clock_gettime(i32 noundef %48, ptr noundef %3)
%50 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 1
%51 = load i64, ptr %50, align 8
%52 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 1
%53 = load i64, ptr %52, align 8
%54 = sub nsw i64 %51, %53
%55 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 0
%56 = load i64, ptr %55, align 8
%57 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 0
%58 = load i64, ptr %57, align 8
%59 = sub nsw i64 %56, %58
%60 = call i32 @printf(ptr noundef @.str.4, i64 noundef %54, i64 noundef %59)
%61 = load i32, ptr @CLOCK_PROCESS_CPUTIME_ID, align 4
%62 = call i32 @clock_gettime(i32 noundef %61, ptr noundef %2)
%63 = load i32, ptr @CLOCK_PROCESS_CPUTIME_ID, align 4
%64 = call i32 @clock_gettime(i32 noundef %63, ptr noundef %3)
%65 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 1
%66 = load i64, ptr %65, align 8
%67 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 1
%68 = load i64, ptr %67, align 8
%69 = sub nsw i64 %66, %68
%70 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 0
%71 = load i64, ptr %70, align 8
%72 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 0
%73 = load i64, ptr %72, align 8
%74 = sub nsw i64 %71, %73
%75 = call i32 @printf(ptr noundef @.str.5, i64 noundef %69, i64 noundef %74)
%76 = load i32, ptr @CLOCK_MONOTONIC, align 4
%77 = call i32 @clock_gettime(i32 noundef %76, ptr noundef %2)
%78 = call i32 (...) @getpid()
%79 = load i32, ptr @CLOCK_MONOTONIC, align 4
%80 = call i32 @clock_gettime(i32 noundef %79, ptr noundef %3)
%81 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 1
%82 = load i64, ptr %81, align 8
%83 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 1
%84 = load i64, ptr %83, align 8
%85 = sub nsw i64 %82, %84
%86 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 0
%87 = load i64, ptr %86, align 8
%88 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 0
%89 = load i64, ptr %88, align 8
%90 = sub nsw i64 %87, %89
%91 = call i32 @printf(ptr noundef @.str.6, i64 noundef %85, i64 noundef %90)
%92 = load i32, ptr @CLOCK_MONOTONIC, align 4
%93 = call i32 @clock_gettime(i32 noundef %92, ptr noundef %2)
%94 = call i32 (...) @getuid()
%95 = load i32, ptr @CLOCK_MONOTONIC, align 4
%96 = call i32 @clock_gettime(i32 noundef %95, ptr noundef %3)
%97 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 1
%98 = load i64, ptr %97, align 8
%99 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 1
%100 = load i64, ptr %99, align 8
%101 = sub nsw i64 %98, %100
%102 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 0
%103 = load i64, ptr %102, align 8
%104 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 0
%105 = load i64, ptr %104, align 8
%106 = sub nsw i64 %103, %105
%107 = call i32 @printf(ptr noundef @.str.7, i64 noundef %101, i64 noundef %106)
ret void
}
declare i64 @clock_getres(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i64 noundef, i64 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @clock_gettime(i32 noundef, ptr noundef) #1
declare i32 @getpid(...) #1
declare i32 @getuid(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp52cxejdv.c'
source_filename = "/tmp/tmp52cxejdv.c"
target datalayout = "e-m:e-p270: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/tmp52cxejdv.c"
target datalayout = "e-m:e-p270: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/tmpdxlzl3os.c'
source_filename = "/tmp/tmpdxlzl3os.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f6(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load i64, ptr %3, align 8
%7 = load i64, ptr %4, align 8
%8 = sub i64 %6, %7
store i64 %8, ptr %5, align 8
%9 = load i64, ptr %5, align 8
%10 = load i64, ptr %4, align 8
%11 = icmp ult i64 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 @foo(i32 noundef 0)
br label %14
14: ; preds = %12, %2
%15 = load i64, ptr %5, align 8
ret i64 %15
}
declare i32 @foo(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/tmpdxlzl3os.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f6(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load i64, ptr %3, align 8
%7 = load i64, ptr %4, align 8
%8 = sub i64 %6, %7
store i64 %8, ptr %5, align 8
%9 = load i64, ptr %5, align 8
%10 = load i64, ptr %4, align 8
%11 = icmp ult i64 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 @foo(i32 noundef 0)
br label %14
14: ; preds = %12, %2
%15 = load i64, ptr %5, align 8
ret i64 %15
}
declare i32 @foo(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/tmpj4b4bmpb.c'
source_filename = "/tmp/tmpj4b4bmpb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"hello.(%d)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @hello_num(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
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %11, %1
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %5, %6
br i1 %7, label %8, label %14
8: ; preds = %4
%9 = load i32, ptr %3, align 4
%10 = call i32 @printf(ptr noundef @.str, i32 noundef %9)
br label %11
11: ; preds = %8
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %3, align 4
br label %4, !llvm.loop !6
14: ; preds = %4
%15 = load i32, ptr %3, align 4
ret i32 %15
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj4b4bmpb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"hello.(%d)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @hello_num(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
store i32 0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %4, %5
br i1 %6, label %.lr.ph, label %16
.lr.ph: ; preds = %1
br label %7
7: ; preds = %.lr.ph, %10
%8 = load i32, ptr %3, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %8)
br label %10
10: ; preds = %7
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %3, align 4
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %2, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %16
16: ; preds = %._crit_edge, %1
%17 = load i32, ptr %3, align 4
ret i32 %17
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpq8xdqoxa.c'
source_filename = "/tmp/tmpq8xdqoxa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"initialised zeros\0A\00", align 1
@INT_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @matrixChainMul(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
store i32 1, ptr %9, align 4
br label %15
15: ; preds = %28, %4
%16 = load i32, ptr %9, align 4
%17 = load i32, ptr %7, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %31
19: ; preds = %15
%20 = load ptr, ptr %5, align 8
%21 = load i32, ptr %9, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds ptr, ptr %20, i64 %22
%24 = load ptr, ptr %23, align 8
%25 = load i32, ptr %9, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %24, i64 %26
store i32 0, ptr %27, align 4
br label %28
28: ; preds = %19
%29 = load i32, ptr %9, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %9, align 4
br label %15, !llvm.loop !6
31: ; preds = %15
%32 = call i32 @printf(ptr noundef @.str)
store i32 2, ptr %10, align 4
br label %33
33: ; preds = %142, %31
%34 = load i32, ptr %10, align 4
%35 = load i32, ptr %7, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %145
37: ; preds = %33
store i32 1, ptr %11, align 4
br label %38
38: ; preds = %138, %37
%39 = load i32, ptr %11, align 4
%40 = load i32, ptr %7, align 4
%41 = load i32, ptr %10, align 4
%42 = sub nsw i32 %40, %41
%43 = icmp sle i32 %39, %42
br i1 %43, label %44, label %141
44: ; preds = %38
%45 = load i32, ptr %11, align 4
%46 = load i32, ptr %10, align 4
%47 = add nsw i32 %45, %46
%48 = sub nsw i32 %47, 1
store i32 %48, ptr %12, align 4
%49 = load i32, ptr @INT_MAX, align 4
%50 = load ptr, ptr %5, align 8
%51 = load i32, ptr %11, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds ptr, ptr %50, i64 %52
%54 = load ptr, ptr %53, align 8
%55 = load i32, ptr %12, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i32, ptr %54, i64 %56
store i32 %49, ptr %57, align 4
%58 = load i32, ptr %11, align 4
store i32 %58, ptr %13, align 4
br label %59
59: ; preds = %134, %44
%60 = load i32, ptr %13, align 4
%61 = load i32, ptr %12, align 4
%62 = icmp slt i32 %60, %61
br i1 %62, label %63, label %137
63: ; preds = %59
%64 = load ptr, ptr %5, align 8
%65 = load i32, ptr %11, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds ptr, ptr %64, i64 %66
%68 = load ptr, ptr %67, align 8
%69 = load i32, ptr %13, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i32, ptr %68, i64 %70
%72 = load i32, ptr %71, align 4
%73 = load ptr, ptr %5, align 8
%74 = load i32, ptr %13, align 4
%75 = add nsw i32 %74, 1
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds ptr, ptr %73, i64 %76
%78 = load ptr, ptr %77, align 8
%79 = load i32, ptr %12, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i32, ptr %78, i64 %80
%82 = load i32, ptr %81, align 4
%83 = add nsw i32 %72, %82
%84 = load ptr, ptr %8, align 8
%85 = load i32, ptr %11, align 4
%86 = sub nsw i32 %85, 1
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i32, ptr %84, i64 %87
%89 = load i32, ptr %88, align 4
%90 = load ptr, ptr %8, align 8
%91 = load i32, ptr %13, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i32, ptr %90, i64 %92
%94 = load i32, ptr %93, align 4
%95 = mul nsw i32 %89, %94
%96 = load ptr, ptr %8, align 8
%97 = load i32, ptr %12, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i32, ptr %96, i64 %98
%100 = load i32, ptr %99, align 4
%101 = mul nsw i32 %95, %100
%102 = add nsw i32 %83, %101
store i32 %102, ptr %14, align 4
%103 = load i32, ptr %14, align 4
%104 = load ptr, ptr %5, align 8
%105 = load i32, ptr %11, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds ptr, ptr %104, i64 %106
%108 = load ptr, ptr %107, align 8
%109 = load i32, ptr %12, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i32, ptr %108, i64 %110
%112 = load i32, ptr %111, align 4
%113 = icmp slt i32 %103, %112
br i1 %113, label %114, label %133
114: ; preds = %63
%115 = load i32, ptr %14, align 4
%116 = load ptr, ptr %5, align 8
%117 = load i32, ptr %11, align 4
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds ptr, ptr %116, i64 %118
%120 = load ptr, ptr %119, align 8
%121 = load i32, ptr %12, align 4
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds i32, ptr %120, i64 %122
store i32 %115, ptr %123, align 4
%124 = load i32, ptr %13, align 4
%125 = load ptr, ptr %6, align 8
%126 = load i32, ptr %11, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds ptr, ptr %125, i64 %127
%129 = load ptr, ptr %128, align 8
%130 = load i32, ptr %12, align 4
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds i32, ptr %129, i64 %131
store i32 %124, ptr %132, align 4
br label %133
133: ; preds = %114, %63
br label %134
134: ; preds = %133
%135 = load i32, ptr %13, align 4
%136 = add nsw i32 %135, 1
store i32 %136, ptr %13, align 4
br label %59, !llvm.loop !8
137: ; preds = %59
br label %138
138: ; preds = %137
%139 = load i32, ptr %11, align 4
%140 = add nsw i32 %139, 1
store i32 %140, ptr %11, align 4
br label %38, !llvm.loop !9
141: ; preds = %38
br label %142
142: ; preds = %141
%143 = load i32, ptr %10, align 4
%144 = add nsw i32 %143, 1
store i32 %144, ptr %10, align 4
br label %33, !llvm.loop !10
145: ; preds = %33
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq8xdqoxa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"initialised zeros\0A\00", align 1
@INT_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @matrixChainMul(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
store i32 1, ptr %9, align 4
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %7, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %33
.lr.ph: ; preds = %4
br label %18
18: ; preds = %.lr.ph, %27
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %9, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds ptr, ptr %19, i64 %21
%23 = load ptr, ptr %22, align 8
%24 = load i32, ptr %9, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %23, i64 %25
store i32 0, ptr %26, align 4
br label %27
27: ; preds = %18
%28 = load i32, ptr %9, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %9, align 4
%30 = load i32, ptr %9, align 4
%31 = load i32, ptr %7, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %33
33: ; preds = %._crit_edge, %4
%34 = call i32 @printf(ptr noundef @.str)
store i32 2, ptr %10, align 4
%35 = load i32, ptr %10, align 4
%36 = load i32, ptr %7, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %.lr.ph8, label %155
.lr.ph8: ; preds = %33
br label %38
38: ; preds = %.lr.ph8, %149
store i32 1, ptr %11, align 4
%39 = load i32, ptr %11, align 4
%40 = load i32, ptr %7, align 4
%41 = load i32, ptr %10, align 4
%42 = sub nsw i32 %40, %41
%43 = icmp sle i32 %39, %42
br i1 %43, label %.lr.ph5, label %148
.lr.ph5: ; preds = %38
br label %44
44: ; preds = %.lr.ph5, %140
%45 = load i32, ptr %11, align 4
%46 = load i32, ptr %10, align 4
%47 = add nsw i32 %45, %46
%48 = sub nsw i32 %47, 1
store i32 %48, ptr %12, align 4
%49 = load i32, ptr @INT_MAX, align 4
%50 = load ptr, ptr %5, align 8
%51 = load i32, ptr %11, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds ptr, ptr %50, i64 %52
%54 = load ptr, ptr %53, align 8
%55 = load i32, ptr %12, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i32, ptr %54, i64 %56
store i32 %49, ptr %57, align 4
%58 = load i32, ptr %11, align 4
store i32 %58, ptr %13, align 4
%59 = load i32, ptr %13, align 4
%60 = load i32, ptr %12, align 4
%61 = icmp slt i32 %59, %60
br i1 %61, label %.lr.ph2, label %139
.lr.ph2: ; preds = %44
br label %62
62: ; preds = %.lr.ph2, %133
%63 = load ptr, ptr %5, align 8
%64 = load i32, ptr %11, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds ptr, ptr %63, i64 %65
%67 = load ptr, ptr %66, align 8
%68 = load i32, ptr %13, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i32, ptr %67, i64 %69
%71 = load i32, ptr %70, align 4
%72 = load ptr, ptr %5, align 8
%73 = load i32, ptr %13, align 4
%74 = add nsw i32 %73, 1
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds ptr, ptr %72, i64 %75
%77 = load ptr, ptr %76, align 8
%78 = load i32, ptr %12, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i32, ptr %77, i64 %79
%81 = load i32, ptr %80, align 4
%82 = add nsw i32 %71, %81
%83 = load ptr, ptr %8, align 8
%84 = load i32, ptr %11, align 4
%85 = sub nsw i32 %84, 1
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i32, ptr %83, i64 %86
%88 = load i32, ptr %87, align 4
%89 = load ptr, ptr %8, align 8
%90 = load i32, ptr %13, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i32, ptr %89, i64 %91
%93 = load i32, ptr %92, align 4
%94 = mul nsw i32 %88, %93
%95 = load ptr, ptr %8, align 8
%96 = load i32, ptr %12, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i32, ptr %95, i64 %97
%99 = load i32, ptr %98, align 4
%100 = mul nsw i32 %94, %99
%101 = add nsw i32 %82, %100
store i32 %101, ptr %14, align 4
%102 = load i32, ptr %14, align 4
%103 = load ptr, ptr %5, align 8
%104 = load i32, ptr %11, align 4
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds ptr, ptr %103, i64 %105
%107 = load ptr, ptr %106, align 8
%108 = load i32, ptr %12, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i32, ptr %107, i64 %109
%111 = load i32, ptr %110, align 4
%112 = icmp slt i32 %102, %111
br i1 %112, label %113, label %132
113: ; preds = %62
%114 = load i32, ptr %14, align 4
%115 = load ptr, ptr %5, align 8
%116 = load i32, ptr %11, align 4
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds ptr, ptr %115, i64 %117
%119 = load ptr, ptr %118, align 8
%120 = load i32, ptr %12, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds i32, ptr %119, i64 %121
store i32 %114, ptr %122, align 4
%123 = load i32, ptr %13, align 4
%124 = load ptr, ptr %6, align 8
%125 = load i32, ptr %11, align 4
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds ptr, ptr %124, i64 %126
%128 = load ptr, ptr %127, align 8
%129 = load i32, ptr %12, align 4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds i32, ptr %128, i64 %130
store i32 %123, ptr %131, align 4
br label %132
132: ; preds = %113, %62
br label %133
133: ; preds = %132
%134 = load i32, ptr %13, align 4
%135 = add nsw i32 %134, 1
store i32 %135, ptr %13, align 4
%136 = load i32, ptr %13, align 4
%137 = load i32, ptr %12, align 4
%138 = icmp slt i32 %136, %137
br i1 %138, label %62, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %133
br label %139
139: ; preds = %._crit_edge3, %44
br label %140
140: ; preds = %139
%141 = load i32, ptr %11, align 4
%142 = add nsw i32 %141, 1
store i32 %142, ptr %11, align 4
%143 = load i32, ptr %11, align 4
%144 = load i32, ptr %7, align 4
%145 = load i32, ptr %10, align 4
%146 = sub nsw i32 %144, %145
%147 = icmp sle i32 %143, %146
br i1 %147, label %44, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %140
br label %148
148: ; preds = %._crit_edge6, %38
br label %149
149: ; preds = %148
%150 = load i32, ptr %10, align 4
%151 = add nsw i32 %150, 1
store i32 %151, ptr %10, align 4
%152 = load i32, ptr %10, align 4
%153 = load i32, ptr %7, align 4
%154 = icmp slt i32 %152, %153
br i1 %154, label %38, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %149
br label %155
155: ; preds = %._crit_edge9, %33
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmp5b_yod4v.c'
source_filename = "/tmp/tmp5b_yod4v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"should not return NaN\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @benchmark() #0 {
%1 = alloca double, align 8
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca i32, align 4
%6 = call double (...) @tic()
store double %6, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %21, %0
%8 = load i32, ptr %5, align 4
%9 = icmp slt i32 %8, 1000000
br i1 %9, label %10, label %24
10: ; preds = %7
%11 = call double (...) @rand_double()
%12 = call double @llvm.fmuladd.f64(double 2.000000e+01, double %11, double -1.000000e+01)
store double %12, ptr %2, align 8
%13 = load double, ptr %2, align 8
%14 = call double @sin(double noundef %13) #4
store double %14, ptr %3, align 8
%15 = load double, ptr %3, align 8
%16 = load double, ptr %3, align 8
%17 = fcmp une double %15, %16
br i1 %17, label %18, label %20
18: ; preds = %10
%19 = call i32 @printf(ptr noundef @.str)
br label %24
20: ; preds = %10
br label %21
21: ; preds = %20
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %5, align 4
br label %7, !llvm.loop !6
24: ; preds = %18, %7
%25 = call double (...) @tic()
%26 = load double, ptr %4, align 8
%27 = fsub double %25, %26
store double %27, ptr %1, align 8
%28 = load double, ptr %3, align 8
%29 = load double, ptr %3, align 8
%30 = fcmp une double %28, %29
br i1 %30, label %31, label %33
31: ; preds = %24
%32 = call i32 @printf(ptr noundef @.str)
br label %33
33: ; preds = %31, %24
%34 = load double, ptr %1, align 8
ret double %34
}
declare double @tic(...) #1
declare double @rand_double(...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nounwind
declare double @sin(double noundef) #3
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5b_yod4v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"should not return NaN\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @benchmark() #0 {
%1 = alloca double, align 8
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca i32, align 4
%6 = call double (...) @tic()
store double %6, ptr %4, align 8
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 1000000
br i1 %8, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %20
%10 = call double (...) @rand_double()
%11 = call double @llvm.fmuladd.f64(double 2.000000e+01, double %10, double -1.000000e+01)
store double %11, ptr %2, align 8
%12 = load double, ptr %2, align 8
%13 = call double @sin(double noundef %12) #4
store double %13, ptr %3, align 8
%14 = load double, ptr %3, align 8
%15 = load double, ptr %3, align 8
%16 = fcmp une double %14, %15
br i1 %16, label %17, label %19
17: ; preds = %9
%18 = call i32 @printf(ptr noundef @.str)
br label %25
19: ; preds = %9
br label %20
20: ; preds = %19
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %5, align 4
%23 = load i32, ptr %5, align 4
%24 = icmp slt i32 %23, 1000000
br i1 %24, label %9, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %20
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %0
br label %25
25: ; preds = %.loopexit, %17
%26 = call double (...) @tic()
%27 = load double, ptr %4, align 8
%28 = fsub double %26, %27
store double %28, ptr %1, align 8
%29 = load double, ptr %3, align 8
%30 = load double, ptr %3, align 8
%31 = fcmp une double %29, %30
br i1 %31, label %32, label %34
32: ; preds = %25
%33 = call i32 @printf(ptr noundef @.str)
br label %34
34: ; preds = %32, %25
%35 = load double, ptr %1, align 8
ret double %35
}
declare double @tic(...) #1
declare double @rand_double(...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nounwind
declare double @sin(double noundef) #3
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpij12uovn.c'
source_filename = "/tmp/tmpij12uovn.c"
target datalayout = "e-m:e-p270: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 [14 x i8] c"loopback: %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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i32 (...) @loopback_setup()
store i32 %7, ptr %6, align 4
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %15
9: ; preds = %2
%10 = load i32, ptr @stderr, align 4
%11 = load i32, ptr %6, align 4
%12 = sub nsw i32 0, %11
%13 = call ptr @strerror(i32 noundef %12)
%14 = call i32 @fprintf(i32 noundef %10, ptr noundef @.str, ptr noundef %13)
br label %15
15: ; preds = %9, %2
ret i32 0
}
declare i32 @loopback_setup(...) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpij12uovn.c"
target datalayout = "e-m:e-p270: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 [14 x i8] c"loopback: %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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i32 (...) @loopback_setup()
store i32 %7, ptr %6, align 4
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %15
9: ; preds = %2
%10 = load i32, ptr @stderr, align 4
%11 = load i32, ptr %6, align 4
%12 = sub nsw i32 0, %11
%13 = call ptr @strerror(i32 noundef %12)
%14 = call i32 @fprintf(i32 noundef %10, ptr noundef @.str, ptr noundef %13)
br label %15
15: ; preds = %9, %2
ret i32 0
}
declare i32 @loopback_setup(...) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfesgy0vz.c'
source_filename = "/tmp/tmpfesgy0vz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define weak dso_local void @ADC2_IRQHandler() #0 {
%1 = call i32 (...) @ADC2_DriverIRQHandler()
ret void
}
declare i32 @ADC2_DriverIRQHandler(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfesgy0vz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define weak dso_local void @ADC2_IRQHandler() #0 {
%1 = call i32 (...) @ADC2_DriverIRQHandler()
ret void
}
declare i32 @ADC2_DriverIRQHandler(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7zbz51rg.c'
source_filename = "/tmp/tmp7zbz51rg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"pdm\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c".h\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [28 x i8] c"PDM Compiler - Version 2.1\0A\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"--------------------------\0A\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"checking syntax.\0A\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c" %s\0A\00", align 1
@.str.6 = private unnamed_addr constant [34 x i8] c"./PDMParser < %s > pdmc.pdm.input\00", align 1
@.str.7 = private unnamed_addr constant [30 x i8] c"sbcl --noinform --load PDMRun\00", align 1
@.str.8 = private unnamed_addr constant [31 x i8] c"indent pdmc.h.output -kr -o %s\00", align 1
@.str.9 = private unnamed_addr constant [31 x i8] c"indent pdmc.c.output -kr -o %s\00", align 1
@.str.10 = private unnamed_addr constant [10 x i8] c"rm pdmc.*\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 [50 x i8], align 16
%8 = alloca [50 x i8], align 16
%9 = alloca [50 x i8], align 16
%10 = alloca [256 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
%11 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 2
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 (...) @Error()
br label %15
15: ; preds = %13, %2
%16 = getelementptr inbounds [50 x i8], ptr %7, i64 0, i64 0
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr %4, align 4
%19 = sub nsw i32 %18, 1
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds ptr, ptr %17, i64 %20
%22 = load ptr, ptr %21, align 8
%23 = call i32 @FixExtension(ptr noundef %22, ptr noundef @.str)
%24 = call i32 @strcpy(ptr noundef %16, i32 noundef %23)
store i32 0, ptr %6, align 4
br label %25
25: ; preds = %39, %15
%26 = load i32, ptr %6, align 4
%27 = getelementptr inbounds [50 x i8], ptr %7, i64 0, i64 0
%28 = call i32 @strlen(ptr noundef %27)
%29 = sub nsw i32 %28, 5
%30 = icmp sle i32 %26, %29
br i1 %30, label %31, label %42
31: ; preds = %25
%32 = load i32, ptr %6, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [50 x i8], ptr %7, i64 0, i64 %33
%35 = load i8, ptr %34, align 1
%36 = load i32, ptr %6, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [50 x i8], ptr %8, i64 0, i64 %37
store i8 %35, ptr %38, align 1
br label %39
39: ; preds = %31
%40 = load i32, ptr %6, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %6, align 4
br label %25, !llvm.loop !6
42: ; preds = %25
%43 = load i32, ptr %6, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [50 x i8], ptr %8, i64 0, i64 %44
store i8 0, ptr %45, align 1
%46 = getelementptr inbounds [50 x i8], ptr %8, i64 0, i64 0
%47 = call i32 @strcat(ptr noundef %46, ptr noundef @.str.1)
%48 = load i32, ptr @stderr, align 4
%49 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %48, ptr noundef @.str.2)
%50 = load i32, ptr @stderr, align 4
%51 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %50, ptr noundef @.str.3)
%52 = load i32, ptr @stderr, align 4
%53 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %52, ptr noundef @.str.4)
%54 = load i32, ptr @stderr, align 4
%55 = getelementptr inbounds [50 x i8], ptr %7, i64 0, i64 0
%56 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %54, ptr noundef @.str.5, ptr noundef %55)
%57 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%58 = getelementptr inbounds [50 x i8], ptr %7, i64 0, i64 0
%59 = call i32 @sprintf(ptr noundef %57, ptr noundef @.str.6, ptr noundef %58)
%60 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%61 = call i32 @CSystem(ptr noundef %60)
%62 = call i32 @CSystem(ptr noundef @.str.7)
%63 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%64 = getelementptr inbounds [50 x i8], ptr %8, i64 0, i64 0
%65 = call i32 @sprintf(ptr noundef %63, ptr noundef @.str.8, ptr noundef %64)
%66 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%67 = call i32 @CSystem(ptr noundef %66)
%68 = load i32, ptr %6, align 4
%69 = add nsw i32 %68, 1
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [50 x i8], ptr %8, i64 0, i64 %70
store i8 99, ptr %71, align 1
%72 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%73 = getelementptr inbounds [50 x i8], ptr %8, i64 0, i64 0
%74 = call i32 @sprintf(ptr noundef %72, ptr noundef @.str.9, ptr noundef %73)
%75 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%76 = call i32 @CSystem(ptr noundef %75)
%77 = call i32 @CSystem(ptr noundef @.str.10)
%78 = load i32, ptr %3, align 4
ret i32 %78
}
declare i32 @Error(...) #1
declare i32 @strcpy(ptr noundef, i32 noundef) #1
declare i32 @FixExtension(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @CSystem(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp7zbz51rg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"pdm\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c".h\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [28 x i8] c"PDM Compiler - Version 2.1\0A\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"--------------------------\0A\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"checking syntax.\0A\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c" %s\0A\00", align 1
@.str.6 = private unnamed_addr constant [34 x i8] c"./PDMParser < %s > pdmc.pdm.input\00", align 1
@.str.7 = private unnamed_addr constant [30 x i8] c"sbcl --noinform --load PDMRun\00", align 1
@.str.8 = private unnamed_addr constant [31 x i8] c"indent pdmc.h.output -kr -o %s\00", align 1
@.str.9 = private unnamed_addr constant [31 x i8] c"indent pdmc.c.output -kr -o %s\00", align 1
@.str.10 = private unnamed_addr constant [10 x i8] c"rm pdmc.*\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 [50 x i8], align 16
%8 = alloca [50 x i8], align 16
%9 = alloca [50 x i8], align 16
%10 = alloca [256 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
%11 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 2
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 (...) @Error()
br label %15
15: ; preds = %13, %2
%16 = getelementptr inbounds [50 x i8], ptr %7, i64 0, i64 0
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr %4, align 4
%19 = sub nsw i32 %18, 1
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds ptr, ptr %17, i64 %20
%22 = load ptr, ptr %21, align 8
%23 = call i32 @FixExtension(ptr noundef %22, ptr noundef @.str)
%24 = call i32 @strcpy(ptr noundef %16, i32 noundef %23)
store i32 0, ptr %6, align 4
%25 = load i32, ptr %6, align 4
%26 = getelementptr inbounds [50 x i8], ptr %7, i64 0, i64 0
%27 = call i32 @strlen(ptr noundef %26)
%28 = sub nsw i32 %27, 5
%29 = icmp sle i32 %25, %28
br i1 %29, label %.lr.ph, label %45
.lr.ph: ; preds = %15
br label %30
30: ; preds = %.lr.ph, %38
%31 = load i32, ptr %6, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [50 x i8], ptr %7, i64 0, i64 %32
%34 = load i8, ptr %33, align 1
%35 = load i32, ptr %6, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [50 x i8], ptr %8, i64 0, i64 %36
store i8 %34, ptr %37, align 1
br label %38
38: ; preds = %30
%39 = load i32, ptr %6, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %6, align 4
%41 = load i32, ptr %6, align 4
%42 = call i32 @strlen(ptr noundef %26)
%43 = sub nsw i32 %42, 5
%44 = icmp sle i32 %41, %43
br i1 %44, label %30, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %45
45: ; preds = %._crit_edge, %15
%46 = load i32, ptr %6, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [50 x i8], ptr %8, i64 0, i64 %47
store i8 0, ptr %48, align 1
%49 = getelementptr inbounds [50 x i8], ptr %8, i64 0, i64 0
%50 = call i32 @strcat(ptr noundef %49, ptr noundef @.str.1)
%51 = load i32, ptr @stderr, align 4
%52 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %51, ptr noundef @.str.2)
%53 = load i32, ptr @stderr, align 4
%54 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %53, ptr noundef @.str.3)
%55 = load i32, ptr @stderr, align 4
%56 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %55, ptr noundef @.str.4)
%57 = load i32, ptr @stderr, align 4
%58 = getelementptr inbounds [50 x i8], ptr %7, i64 0, i64 0
%59 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %57, ptr noundef @.str.5, ptr noundef %58)
%60 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%61 = getelementptr inbounds [50 x i8], ptr %7, i64 0, i64 0
%62 = call i32 @sprintf(ptr noundef %60, ptr noundef @.str.6, ptr noundef %61)
%63 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%64 = call i32 @CSystem(ptr noundef %63)
%65 = call i32 @CSystem(ptr noundef @.str.7)
%66 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%67 = getelementptr inbounds [50 x i8], ptr %8, i64 0, i64 0
%68 = call i32 @sprintf(ptr noundef %66, ptr noundef @.str.8, ptr noundef %67)
%69 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%70 = call i32 @CSystem(ptr noundef %69)
%71 = load i32, ptr %6, align 4
%72 = add nsw i32 %71, 1
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [50 x i8], ptr %8, i64 0, i64 %73
store i8 99, ptr %74, align 1
%75 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%76 = getelementptr inbounds [50 x i8], ptr %8, i64 0, i64 0
%77 = call i32 @sprintf(ptr noundef %75, ptr noundef @.str.9, ptr noundef %76)
%78 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%79 = call i32 @CSystem(ptr noundef %78)
%80 = call i32 @CSystem(ptr noundef @.str.10)
%81 = load i32, ptr %3, align 4
ret i32 %81
}
declare i32 @Error(...) #1
declare i32 @strcpy(ptr noundef, i32 noundef) #1
declare i32 @FixExtension(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @CSystem(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpc_26l6s8.c'
source_filename = "/tmp/tmpc_26l6s8.c"
target datalayout = "e-m:e-p270: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/tmpc_26l6s8.c"
target datalayout = "e-m:e-p270: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/tmphkunlwbo.c'
source_filename = "/tmp/tmphkunlwbo.c"
target datalayout = "e-m:e-p270: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/tmphkunlwbo.c"
target datalayout = "e-m:e-p270: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/tmpmgv_lwgp.c'
source_filename = "/tmp/tmpmgv_lwgp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @read_bin(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %5, align 8
%8 = load i32, ptr %6, align 4
%9 = load ptr, ptr %4, align 8
%10 = call i64 @fread(ptr noundef %7, i32 noundef 1, i32 noundef %8, ptr noundef %9)
ret i64 %10
}
declare i64 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmgv_lwgp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @read_bin(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %5, align 8
%8 = load i32, ptr %6, align 4
%9 = load ptr, ptr %4, align 8
%10 = call i64 @fread(ptr noundef %7, i32 noundef 1, i32 noundef %8, ptr noundef %9)
ret i64 %10
}
declare i64 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvc6erh9z.c'
source_filename = "/tmp/tmpvc6erh9z.c"
target datalayout = "e-m:e-p270: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/tmpvc6erh9z.c"
target datalayout = "e-m:e-p270: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/tmpup65px9x.c'
source_filename = "/tmp/tmpup65px9x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"\0A\09---------------%s----------------\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"\09\09\09SIZE\09 TIME_SEC\09 gflops \0A\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"\09\09\09%d\09%f\09 %lf\09\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"\09\09\09%d\09%lf \09%s\09\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"---\00", align 1
@.str.5 = private unnamed_addr constant [94 x i8] c"\0A\0A\09------------------------------------------------------------------------------------------\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_on_screen(ptr noundef %0, double noundef %1, i32 noundef %2, double noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca double, align 8
%8 = alloca i32, align 4
%9 = alloca double, align 8
%10 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store double %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store double %3, ptr %9, align 8
store i32 %4, ptr %10, align 4
%11 = load ptr, ptr %6, align 8
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %11)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%14 = load i32, ptr %10, align 4
%15 = icmp eq i32 %14, 1
br i1 %15, label %16, label %21
16: ; preds = %5
%17 = load i32, ptr %8, align 4
%18 = load double, ptr %7, align 8
%19 = load double, ptr %9, align 8
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %17, double noundef %18, double noundef %19)
br label %25
21: ; preds = %5
%22 = load i32, ptr %8, align 4
%23 = load double, ptr %7, align 8
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %22, double noundef %23, ptr noundef @.str.4)
br label %25
25: ; preds = %21, %16
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpup65px9x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"\0A\09---------------%s----------------\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"\09\09\09SIZE\09 TIME_SEC\09 gflops \0A\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"\09\09\09%d\09%f\09 %lf\09\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"\09\09\09%d\09%lf \09%s\09\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"---\00", align 1
@.str.5 = private unnamed_addr constant [94 x i8] c"\0A\0A\09------------------------------------------------------------------------------------------\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_on_screen(ptr noundef %0, double noundef %1, i32 noundef %2, double noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca double, align 8
%8 = alloca i32, align 4
%9 = alloca double, align 8
%10 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store double %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store double %3, ptr %9, align 8
store i32 %4, ptr %10, align 4
%11 = load ptr, ptr %6, align 8
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %11)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%14 = load i32, ptr %10, align 4
%15 = icmp eq i32 %14, 1
br i1 %15, label %16, label %21
16: ; preds = %5
%17 = load i32, ptr %8, align 4
%18 = load double, ptr %7, align 8
%19 = load double, ptr %9, align 8
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %17, double noundef %18, double noundef %19)
br label %25
21: ; preds = %5
%22 = load i32, ptr %8, align 4
%23 = load double, ptr %7, align 8
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %22, double noundef %23, ptr noundef @.str.4)
br label %25
25: ; preds = %21, %16
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmo6lxav2.c'
source_filename = "/tmp/tmpmo6lxav2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"\0A antes %d\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"\0A linha %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
br label %3
3: ; preds = %15, %0
%4 = load i32, ptr %2, align 4
%5 = icmp sle i32 %4, 10
br i1 %5, label %6, label %18
6: ; preds = %3
%7 = load i32, ptr %2, align 4
%8 = call i32 @printf(ptr noundef @.str, i32 noundef %7)
%9 = load i32, ptr %2, align 4
%10 = icmp sgt i32 %9, 5
br i1 %10, label %11, label %12
11: ; preds = %6
br label %15
12: ; preds = %6
%13 = load i32, ptr %2, align 4
%14 = call i32 @printf(ptr noundef @.str.1, i32 noundef %13)
br label %15
15: ; preds = %12, %11
%16 = load i32, ptr %2, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %2, align 4
br label %3, !llvm.loop !6
18: ; preds = %3
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmo6lxav2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"\0A antes %d\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"\0A linha %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp sle i32 %3, 10
br i1 %4, label %.lr.ph, label %19
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %14
%6 = load i32, ptr %2, align 4
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %6)
%8 = load i32, ptr %2, align 4
%9 = icmp sgt i32 %8, 5
br i1 %9, label %10, label %11
10: ; preds = %5
br label %14
11: ; preds = %5
%12 = load i32, ptr %2, align 4
%13 = call i32 @printf(ptr noundef @.str.1, i32 noundef %12)
br label %14
14: ; preds = %11, %10
%15 = load i32, ptr %2, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %2, align 4
%17 = load i32, ptr %2, align 4
%18 = icmp sle i32 %17, 10
br i1 %18, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %19
19: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp6kebxjd0.c'
source_filename = "/tmp/tmp6kebxjd0.c"
target datalayout = "e-m:e-p270: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/tmp6kebxjd0.c"
target datalayout = "e-m:e-p270: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/tmpdvqnn84r.c'
source_filename = "/tmp/tmpdvqnn84r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @printn(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 @print(ptr noundef %3)
%5 = call i32 @putchar(i8 noundef signext 10)
ret void
}
declare i32 @print(ptr noundef) #1
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdvqnn84r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @printn(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 @print(ptr noundef %3)
%5 = call i32 @putchar(i8 noundef signext 10)
ret void
}
declare i32 @print(ptr noundef) #1
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptmplaacx.c'
source_filename = "/tmp/tmptmplaacx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rs_memdup(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %10, label %9
9: ; preds = %2
store ptr null, ptr %3, align 8
br label %16
10: ; preds = %2
%11 = load i64, ptr %5, align 8
%12 = call ptr @rs_malloc(i64 noundef %11)
store ptr %12, ptr %6, align 8
%13 = load ptr, ptr %6, align 8
%14 = load ptr, ptr %4, align 8
%15 = load i64, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %13, ptr align 1 %14, i64 %15, i1 false)
store ptr %13, ptr %3, align 8
br label %16
16: ; preds = %10, %9
%17 = load ptr, ptr %3, align 8
ret ptr %17
}
declare ptr @rs_malloc(i64 noundef) #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
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptmplaacx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rs_memdup(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %10, label %9
9: ; preds = %2
store ptr null, ptr %3, align 8
br label %16
10: ; preds = %2
%11 = load i64, ptr %5, align 8
%12 = call ptr @rs_malloc(i64 noundef %11)
store ptr %12, ptr %6, align 8
%13 = load ptr, ptr %6, align 8
%14 = load ptr, ptr %4, align 8
%15 = load i64, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %13, ptr align 1 %14, i64 %15, i1 false)
store ptr %13, ptr %3, align 8
br label %16
16: ; preds = %10, %9
%17 = load ptr, ptr %3, align 8
ret ptr %17
}
declare ptr @rs_malloc(i64 noundef) #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
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_2dcvdzf.c'
source_filename = "/tmp/tmp_2dcvdzf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strlcpy(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i64, ptr %6, align 8
%10 = sub i64 %9, 1
%11 = call i32 @strncpy(ptr noundef %7, ptr noundef %8, i64 noundef %10)
%12 = load ptr, ptr %4, align 8
%13 = load i64, ptr %6, align 8
%14 = getelementptr inbounds i8, ptr %12, i64 %13
%15 = getelementptr inbounds i8, ptr %14, i64 -1
store i8 0, ptr %15, align 1
%16 = load ptr, ptr %4, align 8
ret ptr %16
}
declare i32 @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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_2dcvdzf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strlcpy(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i64, ptr %6, align 8
%10 = sub i64 %9, 1
%11 = call i32 @strncpy(ptr noundef %7, ptr noundef %8, i64 noundef %10)
%12 = load ptr, ptr %4, align 8
%13 = load i64, ptr %6, align 8
%14 = getelementptr inbounds i8, ptr %12, i64 %13
%15 = getelementptr inbounds i8, ptr %14, i64 -1
store i8 0, ptr %15, align 1
%16 = load ptr, ptr %4, align 8
ret ptr %16
}
declare i32 @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"}
|
; ModuleID = '/tmp/tmpqz6m2xvc.c'
source_filename = "/tmp/tmpqz6m2xvc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @XWBStrDup(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load ptr, ptr %4, align 8
%9 = call i64 @strlen(ptr noundef %8)
%10 = trunc i64 %9 to i32
%11 = add i32 %10, 1
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr %6, align 4
%14 = call ptr @XWBMalloc(i32 noundef %11, ptr noundef %12, i32 noundef %13)
store ptr %14, ptr %7, align 8
%15 = load ptr, ptr %7, align 8
%16 = load ptr, ptr %4, align 8
%17 = call i32 @strcpy(ptr noundef %15, ptr noundef %16)
%18 = load ptr, ptr %7, align 8
ret ptr %18
}
declare ptr @XWBMalloc(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqz6m2xvc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @XWBStrDup(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load ptr, ptr %4, align 8
%9 = call i64 @strlen(ptr noundef %8)
%10 = trunc i64 %9 to i32
%11 = add i32 %10, 1
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr %6, align 4
%14 = call ptr @XWBMalloc(i32 noundef %11, ptr noundef %12, i32 noundef %13)
store ptr %14, ptr %7, align 8
%15 = load ptr, ptr %7, align 8
%16 = load ptr, ptr %4, align 8
%17 = call i32 @strcpy(ptr noundef %15, ptr noundef %16)
%18 = load ptr, ptr %7, align 8
ret ptr %18
}
declare ptr @XWBMalloc(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqooek8z4.c'
source_filename = "/tmp/tmpqooek8z4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @c() #0 {
%1 = call i32 (...) @a()
%2 = call i32 (...) @b()
ret void
}
declare i32 @a(...) #1
declare i32 @b(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqooek8z4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @c() #0 {
%1 = call i32 (...) @a()
%2 = call i32 (...) @b()
ret void
}
declare i32 @a(...) #1
declare i32 @b(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzcmkljlg.c'
source_filename = "/tmp/tmpzcmkljlg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@chaz_OS_remove.num_random_chars = internal constant i64 16, align 8
@CLOCKS_PER_SEC = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
@ENOENT = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @chaz_OS_remove(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
%11 = load ptr, ptr %3, align 8
%12 = call i64 @strlen(ptr noundef %11)
store i64 %12, ptr %5, align 8
%13 = load i64, ptr %5, align 8
%14 = add i64 %13, 16
%15 = add i64 %14, 1
%16 = call i64 @malloc(i64 noundef %15)
%17 = inttoptr i64 %16 to ptr
store ptr %17, ptr %7, align 8
%18 = load ptr, ptr %3, align 8
store ptr %18, ptr %8, align 8
%19 = load ptr, ptr %7, align 8
%20 = load ptr, ptr %3, align 8
%21 = call i32 @strcpy(ptr noundef %19, ptr noundef %20)
store i64 0, ptr %6, align 8
br label %22
22: ; preds = %35, %1
%23 = load i64, ptr %6, align 8
%24 = icmp ult i64 %23, 16
br i1 %24, label %25, label %38
25: ; preds = %22
%26 = call i32 (...) @rand()
%27 = srem i32 %26, 26
%28 = add nsw i32 65, %27
%29 = trunc i32 %28 to i8
%30 = load ptr, ptr %7, align 8
%31 = load i64, ptr %5, align 8
%32 = load i64, ptr %6, align 8
%33 = add i64 %31, %32
%34 = getelementptr inbounds i8, ptr %30, i64 %33
store i8 %29, ptr %34, align 1
br label %35
35: ; preds = %25
%36 = load i64, ptr %6, align 8
%37 = add i64 %36, 1
store i64 %37, ptr %6, align 8
br label %22, !llvm.loop !6
38: ; preds = %22
%39 = load ptr, ptr %7, align 8
%40 = load i64, ptr %5, align 8
%41 = add i64 %40, 16
%42 = getelementptr inbounds i8, ptr %39, i64 %41
store i8 0, ptr %42, align 1
%43 = call i64 (...) @clock()
store i64 %43, ptr %10, align 8
store i64 %43, ptr %9, align 8
br label %44
44: ; preds = %66, %38
%45 = load i64, ptr %10, align 8
%46 = load i64, ptr %9, align 8
%47 = sub nsw i64 %45, %46
%48 = load i64, ptr @CLOCKS_PER_SEC, align 8
%49 = icmp slt i64 %47, %48
br i1 %49, label %50, label %67
50: ; preds = %44
%51 = call i64 (...) @clock()
store i64 %51, ptr %10, align 8
%52 = load ptr, ptr %3, align 8
%53 = load ptr, ptr %7, align 8
%54 = call i32 @rename(ptr noundef %52, ptr noundef %53)
%55 = icmp ne i32 %54, 0
br i1 %55, label %58, label %56
56: ; preds = %50
%57 = load ptr, ptr %7, align 8
store ptr %57, ptr %8, align 8
br label %67
58: ; preds = %50
%59 = load i64, ptr @errno, align 8
%60 = load i64, ptr @ENOENT, align 8
%61 = icmp eq i64 %59, %60
br i1 %61, label %62, label %65
62: ; preds = %58
%63 = load ptr, ptr %7, align 8
%64 = call i32 @free(ptr noundef %63)
store i32 0, ptr %2, align 4
br label %91
65: ; preds = %58
br label %66
66: ; preds = %65
br label %44, !llvm.loop !8
67: ; preds = %56, %44
%68 = call i64 (...) @clock()
store i64 %68, ptr %10, align 8
store i64 %68, ptr %9, align 8
br label %69
69: ; preds = %80, %67
%70 = load i32, ptr %4, align 4
%71 = icmp ne i32 %70, 0
br i1 %71, label %78, label %72
72: ; preds = %69
%73 = load i64, ptr %10, align 8
%74 = load i64, ptr %9, align 8
%75 = sub nsw i64 %73, %74
%76 = load i64, ptr @CLOCKS_PER_SEC, align 8
%77 = icmp slt i64 %75, %76
br label %78
78: ; preds = %72, %69
%79 = phi i1 [ false, %69 ], [ %77, %72 ]
br i1 %79, label %80, label %87
80: ; preds = %78
%81 = call i64 (...) @clock()
store i64 %81, ptr %10, align 8
%82 = load ptr, ptr %8, align 8
%83 = call i32 @remove(ptr noundef %82)
%84 = icmp ne i32 %83, 0
%85 = xor i1 %84, true
%86 = zext i1 %85 to i32
store i32 %86, ptr %4, align 4
br label %69, !llvm.loop !9
87: ; preds = %78
%88 = load ptr, ptr %7, align 8
%89 = call i32 @free(ptr noundef %88)
%90 = load i32, ptr %4, align 4
store i32 %90, ptr %2, align 4
br label %91
91: ; preds = %87, %62
%92 = load i32, ptr %2, align 4
ret i32 %92
}
declare i64 @strlen(ptr noundef) #1
declare i64 @malloc(i64 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @rand(...) #1
declare i64 @clock(...) #1
declare i32 @rename(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @remove(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpzcmkljlg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@chaz_OS_remove.num_random_chars = internal constant i64 16, align 8
@CLOCKS_PER_SEC = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
@ENOENT = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @chaz_OS_remove(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
%11 = load ptr, ptr %3, align 8
%12 = call i64 @strlen(ptr noundef %11)
store i64 %12, ptr %5, align 8
%13 = load i64, ptr %5, align 8
%14 = add i64 %13, 16
%15 = add i64 %14, 1
%16 = call i64 @malloc(i64 noundef %15)
%17 = inttoptr i64 %16 to ptr
store ptr %17, ptr %7, align 8
%18 = load ptr, ptr %3, align 8
store ptr %18, ptr %8, align 8
%19 = load ptr, ptr %7, align 8
%20 = load ptr, ptr %3, align 8
%21 = call i32 @strcpy(ptr noundef %19, ptr noundef %20)
store i64 0, ptr %6, align 8
%22 = load i64, ptr %6, align 8
%23 = icmp ult i64 %22, 16
br i1 %23, label %.lr.ph, label %39
.lr.ph: ; preds = %1
br label %24
24: ; preds = %.lr.ph, %34
%25 = call i32 (...) @rand()
%26 = srem i32 %25, 26
%27 = add nsw i32 65, %26
%28 = trunc i32 %27 to i8
%29 = load ptr, ptr %7, align 8
%30 = load i64, ptr %5, align 8
%31 = load i64, ptr %6, align 8
%32 = add i64 %30, %31
%33 = getelementptr inbounds i8, ptr %29, i64 %32
store i8 %28, ptr %33, align 1
br label %34
34: ; preds = %24
%35 = load i64, ptr %6, align 8
%36 = add i64 %35, 1
store i64 %36, ptr %6, align 8
%37 = load i64, ptr %6, align 8
%38 = icmp ult i64 %37, 16
br i1 %38, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %34
br label %39
39: ; preds = %._crit_edge, %1
%40 = load ptr, ptr %7, align 8
%41 = load i64, ptr %5, align 8
%42 = add i64 %41, 16
%43 = getelementptr inbounds i8, ptr %40, i64 %42
store i8 0, ptr %43, align 1
%44 = call i64 (...) @clock()
store i64 %44, ptr %10, align 8
store i64 %44, ptr %9, align 8
%45 = load i64, ptr %10, align 8
%46 = load i64, ptr %9, align 8
%47 = sub nsw i64 %45, %46
%48 = load i64, ptr @CLOCKS_PER_SEC, align 8
%49 = icmp slt i64 %47, %48
br i1 %49, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %39
br label %50
50: ; preds = %.lr.ph2, %66
%51 = call i64 (...) @clock()
store i64 %51, ptr %10, align 8
%52 = load ptr, ptr %3, align 8
%53 = load ptr, ptr %7, align 8
%54 = call i32 @rename(ptr noundef %52, ptr noundef %53)
%55 = icmp ne i32 %54, 0
br i1 %55, label %58, label %56
56: ; preds = %50
%57 = load ptr, ptr %7, align 8
store ptr %57, ptr %8, align 8
br label %72
58: ; preds = %50
%59 = load i64, ptr @errno, align 8
%60 = load i64, ptr @ENOENT, align 8
%61 = icmp eq i64 %59, %60
br i1 %61, label %62, label %65
62: ; preds = %58
%63 = load ptr, ptr %7, align 8
%64 = call i32 @free(ptr noundef %63)
store i32 0, ptr %2, align 4
br label %96
65: ; preds = %58
br label %66
66: ; preds = %65
%67 = load i64, ptr %10, align 8
%68 = load i64, ptr %9, align 8
%69 = sub nsw i64 %67, %68
%70 = load i64, ptr @CLOCKS_PER_SEC, align 8
%71 = icmp slt i64 %69, %70
br i1 %71, label %50, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %66
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %39
br label %72
72: ; preds = %.loopexit, %56
%73 = call i64 (...) @clock()
store i64 %73, ptr %10, align 8
store i64 %73, ptr %9, align 8
br label %74
74: ; preds = %85, %72
%75 = load i32, ptr %4, align 4
%76 = icmp ne i32 %75, 0
br i1 %76, label %83, label %77
77: ; preds = %74
%78 = load i64, ptr %10, align 8
%79 = load i64, ptr %9, align 8
%80 = sub nsw i64 %78, %79
%81 = load i64, ptr @CLOCKS_PER_SEC, align 8
%82 = icmp slt i64 %80, %81
br label %83
83: ; preds = %77, %74
%84 = phi i1 [ false, %74 ], [ %82, %77 ]
br i1 %84, label %85, label %92
85: ; preds = %83
%86 = call i64 (...) @clock()
store i64 %86, ptr %10, align 8
%87 = load ptr, ptr %8, align 8
%88 = call i32 @remove(ptr noundef %87)
%89 = icmp ne i32 %88, 0
%90 = xor i1 %89, true
%91 = zext i1 %90 to i32
store i32 %91, ptr %4, align 4
br label %74, !llvm.loop !9
92: ; preds = %83
%93 = load ptr, ptr %7, align 8
%94 = call i32 @free(ptr noundef %93)
%95 = load i32, ptr %4, align 4
store i32 %95, ptr %2, align 4
br label %96
96: ; preds = %92, %62
%97 = load i32, ptr %2, align 4
ret i32 %97
}
declare i64 @strlen(ptr noundef) #1
declare i64 @malloc(i64 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @rand(...) #1
declare i64 @clock(...) #1
declare i32 @rename(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @remove(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpgfnbb8j7.c'
source_filename = "/tmp/tmpgfnbb8j7.c"
target datalayout = "e-m:e-p270: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/tmpgfnbb8j7.c"
target datalayout = "e-m:e-p270: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/tmpilhht0yc.c'
source_filename = "/tmp/tmpilhht0yc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @system_ok(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp ne i32 %3, -1
br i1 %4, label %5, label %13
5: ; preds = %1
%6 = load i32, ptr %2, align 4
%7 = call i64 @WIFEXITED(i32 noundef %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %5
%10 = load i32, ptr %2, align 4
%11 = call i64 @WEXITSTATUS(i32 noundef %10)
%12 = icmp eq i64 %11, 0
br label %13
13: ; preds = %9, %5, %1
%14 = phi i1 [ false, %5 ], [ false, %1 ], [ %12, %9 ]
%15 = zext i1 %14 to i32
ret i32 %15
}
declare i64 @WIFEXITED(i32 noundef) #1
declare i64 @WEXITSTATUS(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/tmpilhht0yc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @system_ok(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp ne i32 %3, -1
br i1 %4, label %5, label %13
5: ; preds = %1
%6 = load i32, ptr %2, align 4
%7 = call i64 @WIFEXITED(i32 noundef %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %5
%10 = load i32, ptr %2, align 4
%11 = call i64 @WEXITSTATUS(i32 noundef %10)
%12 = icmp eq i64 %11, 0
br label %13
13: ; preds = %9, %5, %1
%14 = phi i1 [ false, %5 ], [ false, %1 ], [ %12, %9 ]
%15 = zext i1 %14 to i32
ret i32 %15
}
declare i64 @WIFEXITED(i32 noundef) #1
declare i64 @WEXITSTATUS(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/tmp_2pxl7np.c'
source_filename = "/tmp/tmp_2pxl7np.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @endpoint_setup() #0 {
%1 = call i32 (...) @build_rsp()
ret void
}
declare i32 @build_rsp(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_2pxl7np.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @endpoint_setup() #0 {
%1 = call i32 (...) @build_rsp()
ret void
}
declare i32 @build_rsp(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpn_9gvy4i.c'
source_filename = "/tmp/tmpn_9gvy4i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ec_close() #0 {
%1 = call i32 (...) @ec_closenic()
ret void
}
declare i32 @ec_closenic(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn_9gvy4i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ec_close() #0 {
%1 = call i32 (...) @ec_closenic()
ret void
}
declare i32 @ec_closenic(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqdeud8l_.c'
source_filename = "/tmp/tmpqdeud8l_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqdeud8l_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkxsaklmy.c'
source_filename = "/tmp/tmpkxsaklmy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"USAGE: ex17 <dbfile> <action> [action params]\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"There's not that many records\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"Need an id to get\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"Need id, name, email to set\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"Need id to delete\00", align 1
@.str.5 = private unnamed_addr constant [53 x i8] c"Invalid action, only: c=create, g=get, s=set, l=list\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i8, align 1
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 3
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 @die(ptr noundef @.str)
br label %14
14: ; preds = %12, %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
store ptr %17, ptr %6, align 8
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 2
%20 = load ptr, ptr %19, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 0
%22 = load i8, ptr %21, align 1
store i8 %22, ptr %7, align 1
%23 = load ptr, ptr %6, align 8
%24 = load i8, ptr %7, align 1
%25 = call ptr @Database_open(ptr noundef %23, i8 noundef signext %24)
store ptr %25, ptr %8, align 8
store i32 0, ptr %9, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp sgt i32 %26, 3
br i1 %27, label %28, label %33
28: ; preds = %14
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 3
%31 = load ptr, ptr %30, align 8
%32 = call i32 @atoi(ptr noundef %31)
store i32 %32, ptr %9, align 4
br label %33
33: ; preds = %28, %14
%34 = load i32, ptr %9, align 4
%35 = icmp sge i32 %34, 100
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call i32 @die(ptr noundef @.str.1)
br label %38
38: ; preds = %36, %33
%39 = load i8, ptr %7, align 1
%40 = sext i8 %39 to i32
switch i32 %40, label %86 [
i32 99, label %41
i32 103, label %46
i32 115, label %55
i32 100, label %72
i32 108, label %83
]
41: ; preds = %38
%42 = load ptr, ptr %8, align 8
%43 = call i32 @Database_create(ptr noundef %42)
%44 = load ptr, ptr %8, align 8
%45 = call i32 @Database_write(ptr noundef %44)
br label %88
46: ; preds = %38
%47 = load i32, ptr %4, align 4
%48 = icmp ne i32 %47, 4
br i1 %48, label %49, label %51
49: ; preds = %46
%50 = call i32 @die(ptr noundef @.str.2)
br label %51
51: ; preds = %49, %46
%52 = load ptr, ptr %8, align 8
%53 = load i32, ptr %9, align 4
%54 = call i32 @Database_get(ptr noundef %52, i32 noundef %53)
br label %88
55: ; preds = %38
%56 = load i32, ptr %4, align 4
%57 = icmp ne i32 %56, 6
br i1 %57, label %58, label %60
58: ; preds = %55
%59 = call i32 @die(ptr noundef @.str.3)
br label %60
60: ; preds = %58, %55
%61 = load ptr, ptr %8, align 8
%62 = load i32, ptr %9, align 4
%63 = load ptr, ptr %5, align 8
%64 = getelementptr inbounds ptr, ptr %63, i64 4
%65 = load ptr, ptr %64, align 8
%66 = load ptr, ptr %5, align 8
%67 = getelementptr inbounds ptr, ptr %66, i64 5
%68 = load ptr, ptr %67, align 8
%69 = call i32 @Database_set(ptr noundef %61, i32 noundef %62, ptr noundef %65, ptr noundef %68)
%70 = load ptr, ptr %8, align 8
%71 = call i32 @Database_write(ptr noundef %70)
br label %88
72: ; preds = %38
%73 = load i32, ptr %4, align 4
%74 = icmp ne i32 %73, 4
br i1 %74, label %75, label %77
75: ; preds = %72
%76 = call i32 @die(ptr noundef @.str.4)
br label %77
77: ; preds = %75, %72
%78 = load ptr, ptr %8, align 8
%79 = load i32, ptr %9, align 4
%80 = call i32 @Database_delete(ptr noundef %78, i32 noundef %79)
%81 = load ptr, ptr %8, align 8
%82 = call i32 @Database_write(ptr noundef %81)
br label %88
83: ; preds = %38
%84 = load ptr, ptr %8, align 8
%85 = call i32 @Database_list(ptr noundef %84)
br label %88
86: ; preds = %38
%87 = call i32 @die(ptr noundef @.str.5)
br label %88
88: ; preds = %86, %83, %77, %60, %51, %41
%89 = load ptr, ptr %8, align 8
%90 = call i32 @Database_close(ptr noundef %89)
ret i32 0
}
declare i32 @die(ptr noundef) #1
declare ptr @Database_open(ptr noundef, i8 noundef signext) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @Database_create(ptr noundef) #1
declare i32 @Database_write(ptr noundef) #1
declare i32 @Database_get(ptr noundef, i32 noundef) #1
declare i32 @Database_set(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @Database_delete(ptr noundef, i32 noundef) #1
declare i32 @Database_list(ptr noundef) #1
declare i32 @Database_close(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkxsaklmy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"USAGE: ex17 <dbfile> <action> [action params]\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"There's not that many records\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"Need an id to get\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"Need id, name, email to set\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"Need id to delete\00", align 1
@.str.5 = private unnamed_addr constant [53 x i8] c"Invalid action, only: c=create, g=get, s=set, l=list\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i8, align 1
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 3
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 @die(ptr noundef @.str)
br label %14
14: ; preds = %12, %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
store ptr %17, ptr %6, align 8
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 2
%20 = load ptr, ptr %19, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 0
%22 = load i8, ptr %21, align 1
store i8 %22, ptr %7, align 1
%23 = load ptr, ptr %6, align 8
%24 = load i8, ptr %7, align 1
%25 = call ptr @Database_open(ptr noundef %23, i8 noundef signext %24)
store ptr %25, ptr %8, align 8
store i32 0, ptr %9, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp sgt i32 %26, 3
br i1 %27, label %28, label %33
28: ; preds = %14
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 3
%31 = load ptr, ptr %30, align 8
%32 = call i32 @atoi(ptr noundef %31)
store i32 %32, ptr %9, align 4
br label %33
33: ; preds = %28, %14
%34 = load i32, ptr %9, align 4
%35 = icmp sge i32 %34, 100
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call i32 @die(ptr noundef @.str.1)
br label %38
38: ; preds = %36, %33
%39 = load i8, ptr %7, align 1
%40 = sext i8 %39 to i32
switch i32 %40, label %86 [
i32 99, label %41
i32 103, label %46
i32 115, label %55
i32 100, label %72
i32 108, label %83
]
41: ; preds = %38
%42 = load ptr, ptr %8, align 8
%43 = call i32 @Database_create(ptr noundef %42)
%44 = load ptr, ptr %8, align 8
%45 = call i32 @Database_write(ptr noundef %44)
br label %88
46: ; preds = %38
%47 = load i32, ptr %4, align 4
%48 = icmp ne i32 %47, 4
br i1 %48, label %49, label %51
49: ; preds = %46
%50 = call i32 @die(ptr noundef @.str.2)
br label %51
51: ; preds = %49, %46
%52 = load ptr, ptr %8, align 8
%53 = load i32, ptr %9, align 4
%54 = call i32 @Database_get(ptr noundef %52, i32 noundef %53)
br label %88
55: ; preds = %38
%56 = load i32, ptr %4, align 4
%57 = icmp ne i32 %56, 6
br i1 %57, label %58, label %60
58: ; preds = %55
%59 = call i32 @die(ptr noundef @.str.3)
br label %60
60: ; preds = %58, %55
%61 = load ptr, ptr %8, align 8
%62 = load i32, ptr %9, align 4
%63 = load ptr, ptr %5, align 8
%64 = getelementptr inbounds ptr, ptr %63, i64 4
%65 = load ptr, ptr %64, align 8
%66 = load ptr, ptr %5, align 8
%67 = getelementptr inbounds ptr, ptr %66, i64 5
%68 = load ptr, ptr %67, align 8
%69 = call i32 @Database_set(ptr noundef %61, i32 noundef %62, ptr noundef %65, ptr noundef %68)
%70 = load ptr, ptr %8, align 8
%71 = call i32 @Database_write(ptr noundef %70)
br label %88
72: ; preds = %38
%73 = load i32, ptr %4, align 4
%74 = icmp ne i32 %73, 4
br i1 %74, label %75, label %77
75: ; preds = %72
%76 = call i32 @die(ptr noundef @.str.4)
br label %77
77: ; preds = %75, %72
%78 = load ptr, ptr %8, align 8
%79 = load i32, ptr %9, align 4
%80 = call i32 @Database_delete(ptr noundef %78, i32 noundef %79)
%81 = load ptr, ptr %8, align 8
%82 = call i32 @Database_write(ptr noundef %81)
br label %88
83: ; preds = %38
%84 = load ptr, ptr %8, align 8
%85 = call i32 @Database_list(ptr noundef %84)
br label %88
86: ; preds = %38
%87 = call i32 @die(ptr noundef @.str.5)
br label %88
88: ; preds = %86, %83, %77, %60, %51, %41
%89 = load ptr, ptr %8, align 8
%90 = call i32 @Database_close(ptr noundef %89)
ret i32 0
}
declare i32 @die(ptr noundef) #1
declare ptr @Database_open(ptr noundef, i8 noundef signext) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @Database_create(ptr noundef) #1
declare i32 @Database_write(ptr noundef) #1
declare i32 @Database_get(ptr noundef, i32 noundef) #1
declare i32 @Database_set(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @Database_delete(ptr noundef, i32 noundef) #1
declare i32 @Database_list(ptr noundef) #1
declare i32 @Database_close(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwap6ua82.c'
source_filename = "/tmp/tmpwap6ua82.c"
target datalayout = "e-m:e-p270: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/tmpwap6ua82.c"
target datalayout = "e-m:e-p270: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/tmpalqvkx2j.c'
source_filename = "/tmp/tmpalqvkx2j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/sandbox/subdir/loop1\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@errno = dso_local global i64 0, align 8
@ELOOP = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca ptr, align 8
%2 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %2, ptr %1, align 8
%3 = load ptr, ptr %1, align 8
%4 = icmp eq ptr %3, null
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 noundef %5)
%7 = load i64, ptr @errno, align 8
%8 = load i64, ptr @ELOOP, align 8
%9 = icmp eq i64 %7, %8
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 noundef %10)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpalqvkx2j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/sandbox/subdir/loop1\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@errno = dso_local global i64 0, align 8
@ELOOP = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca ptr, align 8
%2 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %2, ptr %1, align 8
%3 = load ptr, ptr %1, align 8
%4 = icmp eq ptr %3, null
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 noundef %5)
%7 = load i64, ptr @errno, align 8
%8 = load i64, ptr @ELOOP, align 8
%9 = icmp eq i64 %7, %8
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 noundef %10)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdhvqmbj3.c'
source_filename = "/tmp/tmpdhvqmbj3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @badHash(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 @fnv_32a_str(ptr noundef %3, i32 noundef -2128831035)
%5 = srem i32 %4, 10009
ret i32 %5
}
declare i32 @fnv_32a_str(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/tmpdhvqmbj3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @badHash(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 @fnv_32a_str(ptr noundef %3, i32 noundef -2128831035)
%5 = srem i32 %4, 10009
ret i32 %5
}
declare i32 @fnv_32a_str(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/tmpmk_acwav.c'
source_filename = "/tmp/tmpmk_acwav.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lengthOfLastWord(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i64 @strlen(ptr noundef %7)
%9 = getelementptr inbounds i8, ptr %6, i64 %8
store ptr %9, ptr %4, align 8
store i32 0, ptr %5, align 4
%10 = load ptr, ptr %3, align 8
%11 = load i8, ptr %10, align 1
%12 = icmp ne i8 %11, 0
br i1 %12, label %14, label %13
13: ; preds = %1
store i32 0, ptr %2, align 4
br label %49
14: ; preds = %1
br label %15
15: ; preds = %27, %14
%16 = load ptr, ptr %4, align 8
%17 = load ptr, ptr %3, align 8
%18 = icmp ugt ptr %16, %17
br i1 %18, label %19, label %25
19: ; preds = %15
%20 = load ptr, ptr %4, align 8
%21 = getelementptr inbounds i8, ptr %20, i32 -1
store ptr %21, ptr %4, align 8
%22 = load i8, ptr %21, align 1
%23 = call i64 @isspace(i8 noundef signext %22)
%24 = icmp ne i64 %23, 0
br label %25
25: ; preds = %19, %15
%26 = phi i1 [ false, %15 ], [ %24, %19 ]
br i1 %26, label %27, label %28
27: ; preds = %25
br label %15, !llvm.loop !6
28: ; preds = %25
br label %29
29: ; preds = %28, %46
%30 = load ptr, ptr %4, align 8
%31 = load i8, ptr %30, align 1
%32 = call i64 @isspace(i8 noundef signext %31)
%33 = icmp ne i64 %32, 0
br i1 %33, label %37, label %34
34: ; preds = %29
%35 = load i32, ptr %5, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %5, align 4
br label %38
37: ; preds = %29
br label %47
38: ; preds = %34
%39 = load ptr, ptr %4, align 8
%40 = load ptr, ptr %3, align 8
%41 = icmp eq ptr %39, %40
br i1 %41, label %42, label %43
42: ; preds = %38
br label %47
43: ; preds = %38
%44 = load ptr, ptr %4, align 8
%45 = getelementptr inbounds i8, ptr %44, i32 -1
store ptr %45, ptr %4, align 8
br label %46
46: ; preds = %43
br label %29
47: ; preds = %42, %37
%48 = load i32, ptr %5, align 4
store i32 %48, ptr %2, align 4
br label %49
49: ; preds = %47, %13
%50 = load i32, ptr %2, align 4
ret i32 %50
}
declare i64 @strlen(ptr noundef) #1
declare i64 @isspace(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmk_acwav.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lengthOfLastWord(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i64 @strlen(ptr noundef %7)
%9 = getelementptr inbounds i8, ptr %6, i64 %8
store ptr %9, ptr %4, align 8
store i32 0, ptr %5, align 4
%10 = load ptr, ptr %3, align 8
%11 = load i8, ptr %10, align 1
%12 = icmp ne i8 %11, 0
br i1 %12, label %14, label %13
13: ; preds = %1
store i32 0, ptr %2, align 4
br label %51
14: ; preds = %1
br label %15
15: ; preds = %25, %14
%16 = load ptr, ptr %4, align 8
%17 = load ptr, ptr %3, align 8
%18 = icmp ugt ptr %16, %17
br i1 %18, label %19, label %25
19: ; preds = %15
%20 = load ptr, ptr %4, align 8
%21 = getelementptr inbounds i8, ptr %20, i32 -1
store ptr %21, ptr %4, align 8
%22 = load i8, ptr %21, align 1
%23 = call i64 @isspace(i8 noundef signext %22)
%24 = icmp ne i64 %23, 0
br label %25
25: ; preds = %19, %15
%26 = phi i1 [ false, %15 ], [ %24, %19 ]
br i1 %26, label %15, label %27, !llvm.loop !6
27: ; preds = %25
%28 = load ptr, ptr %4, align 8
%29 = load i8, ptr %28, align 1
%30 = call i64 @isspace(i8 noundef signext %29)
%31 = icmp ne i64 %30, 0
br i1 %31, label %35, label %.lr.ph
.lr.ph: ; preds = %27
br label %32
32: ; preds = %.lr.ph, %44
%33 = load i32, ptr %5, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %5, align 4
br label %36
._crit_edge: ; preds = %44
br label %35
35: ; preds = %._crit_edge, %27
br label %49
36: ; preds = %32
%37 = load ptr, ptr %4, align 8
%38 = load ptr, ptr %3, align 8
%39 = icmp eq ptr %37, %38
br i1 %39, label %40, label %41
40: ; preds = %36
br label %49
41: ; preds = %36
%42 = load ptr, ptr %4, align 8
%43 = getelementptr inbounds i8, ptr %42, i32 -1
store ptr %43, ptr %4, align 8
br label %44
44: ; preds = %41
%45 = load ptr, ptr %4, align 8
%46 = load i8, ptr %45, align 1
%47 = call i64 @isspace(i8 noundef signext %46)
%48 = icmp ne i64 %47, 0
br i1 %48, label %._crit_edge, label %32
49: ; preds = %40, %35
%50 = load i32, ptr %5, align 4
store i32 %50, ptr %2, align 4
br label %51
51: ; preds = %49, %13
%52 = load i32, ptr %2, align 4
ret i32 %52
}
declare i64 @strlen(ptr noundef) #1
declare i64 @isspace(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpcztoawpq.c'
source_filename = "/tmp/tmpcztoawpq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [42 x i8] c"BAD Dispatch, went to NOT_YET_TRANSLATED\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @bad_dispatch() #0 {
%1 = call i32 @panic(ptr noundef @.str)
ret void
}
declare i32 @panic(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcztoawpq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [42 x i8] c"BAD Dispatch, went to NOT_YET_TRANSLATED\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @bad_dispatch() #0 {
%1 = call i32 @panic(ptr noundef @.str)
ret void
}
declare i32 @panic(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg8by7xn7.c'
source_filename = "/tmp/tmpg8by7xn7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@EOF = dso_local global i8 0, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sys_get_int(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i8, align 1
store i32 %0, ptr %2, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 @reg_set(i32 noundef 1, i32 noundef %6, i32 noundef %7)
br label %9
9: ; preds = %21, %1
%10 = call signext i8 (...) @getchar()
store i8 %10, ptr %4, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 10
br i1 %12, label %13, label %19
13: ; preds = %9
%14 = load i8, ptr %4, align 1
%15 = sext i8 %14 to i32
%16 = load i8, ptr @EOF, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %15, %17
br label %19
19: ; preds = %13, %9
%20 = phi i1 [ false, %9 ], [ %18, %13 ]
br i1 %20, label %21, label %22
21: ; preds = %19
br label %9, !llvm.loop !6
22: ; preds = %19
%23 = call i32 @reg_set(i32 noundef 0, i32 noundef 1, i32 noundef 0)
ret void
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @reg_set(i32 noundef, i32 noundef, i32 noundef) #1
declare signext i8 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg8by7xn7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@EOF = dso_local global i8 0, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sys_get_int(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i8, align 1
store i32 %0, ptr %2, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 @reg_set(i32 noundef 1, i32 noundef %6, i32 noundef %7)
br label %9
9: ; preds = %19, %1
%10 = call signext i8 (...) @getchar()
store i8 %10, ptr %4, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 10
br i1 %12, label %13, label %19
13: ; preds = %9
%14 = load i8, ptr %4, align 1
%15 = sext i8 %14 to i32
%16 = load i8, ptr @EOF, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %15, %17
br label %19
19: ; preds = %13, %9
%20 = phi i1 [ false, %9 ], [ %18, %13 ]
br i1 %20, label %9, label %21, !llvm.loop !6
21: ; preds = %19
%22 = call i32 @reg_set(i32 noundef 0, i32 noundef 1, i32 noundef 0)
ret void
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @reg_set(i32 noundef, i32 noundef, i32 noundef) #1
declare signext i8 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpgtnrh6rl.c'
source_filename = "/tmp/tmpgtnrh6rl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #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
store i32 0, ptr %2, align 4
store i32 999, ptr %4, align 4
br label %6
6: ; preds = %31, %0
%7 = load i32, ptr %4, align 4
%8 = icmp sgt i32 %7, 99
br i1 %8, label %9, label %34
9: ; preds = %6
store i32 999, ptr %5, align 4
br label %10
10: ; preds = %27, %9
%11 = load i32, ptr %5, align 4
%12 = icmp sgt i32 %11, 99
br i1 %12, label %13, label %30
13: ; preds = %10
%14 = load i32, ptr %4, align 4
%15 = load i32, ptr %5, align 4
%16 = mul nsw i32 %14, %15
store i32 %16, ptr %3, align 4
%17 = load i32, ptr %3, align 4
%18 = call i32 @is_palindrome(i32 noundef %17)
%19 = icmp eq i32 %18, 1
br i1 %19, label %20, label %26
20: ; preds = %13
%21 = load i32, ptr %3, align 4
%22 = load i32, ptr %2, align 4
%23 = icmp sgt i32 %21, %22
br i1 %23, label %24, label %26
24: ; preds = %20
%25 = load i32, ptr %3, align 4
store i32 %25, ptr %2, align 4
br label %26
26: ; preds = %24, %20, %13
br label %27
27: ; preds = %26
%28 = load i32, ptr %5, align 4
%29 = add nsw i32 %28, -1
store i32 %29, ptr %5, align 4
br label %10, !llvm.loop !6
30: ; preds = %10
br label %31
31: ; preds = %30
%32 = load i32, ptr %4, align 4
%33 = add nsw i32 %32, -1
store i32 %33, ptr %4, align 4
br label %6, !llvm.loop !8
34: ; preds = %6
%35 = load i32, ptr %2, align 4
%36 = call i32 @printf(ptr noundef @.str, i32 noundef %35)
ret i32 0
}
declare i32 @is_palindrome(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgtnrh6rl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #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
store i32 0, ptr %2, align 4
store i32 999, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = icmp sgt i32 %6, 99
br i1 %7, label %.lr.ph2, label %36
.lr.ph2: ; preds = %0
br label %8
8: ; preds = %.lr.ph2, %31
store i32 999, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp sgt i32 %9, 99
br i1 %10, label %.lr.ph, label %30
.lr.ph: ; preds = %8
br label %11
11: ; preds = %.lr.ph, %25
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr %5, align 4
%14 = mul nsw i32 %12, %13
store i32 %14, ptr %3, align 4
%15 = load i32, ptr %3, align 4
%16 = call i32 @is_palindrome(i32 noundef %15)
%17 = icmp eq i32 %16, 1
br i1 %17, label %18, label %24
18: ; preds = %11
%19 = load i32, ptr %3, align 4
%20 = load i32, ptr %2, align 4
%21 = icmp sgt i32 %19, %20
br i1 %21, label %22, label %24
22: ; preds = %18
%23 = load i32, ptr %3, align 4
store i32 %23, ptr %2, align 4
br label %24
24: ; preds = %22, %18, %11
br label %25
25: ; preds = %24
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, -1
store i32 %27, ptr %5, align 4
%28 = load i32, ptr %5, align 4
%29 = icmp sgt i32 %28, 99
br i1 %29, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %30
30: ; preds = %._crit_edge, %8
br label %31
31: ; preds = %30
%32 = load i32, ptr %4, align 4
%33 = add nsw i32 %32, -1
store i32 %33, ptr %4, align 4
%34 = load i32, ptr %4, align 4
%35 = icmp sgt i32 %34, 99
br i1 %35, label %8, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %31
br label %36
36: ; preds = %._crit_edge3, %0
%37 = load i32, ptr %2, align 4
%38 = call i32 @printf(ptr noundef @.str, i32 noundef %37)
ret i32 0
}
declare i32 @is_palindrome(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp4n2e_8nf.c'
source_filename = "/tmp/tmp4n2e_8nf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @common(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i64 0, ptr %5, align 8
br label %6
6: ; preds = %18, %2
%7 = load i64, ptr %5, align 8
%8 = load i64, ptr %3, align 8
%9 = icmp slt i64 %7, %8
br i1 %9, label %10, label %21
10: ; preds = %6
%11 = load i64, ptr %4, align 8
%12 = load i64, ptr %4, align 8
%13 = mul nsw i64 %11, %12
%14 = load i64, ptr %4, align 8
%15 = mul nsw i64 3, %14
%16 = sub nsw i64 %13, %15
%17 = add nsw i64 %16, 1
store i64 %17, ptr %4, align 8
br label %18
18: ; preds = %10
%19 = load i64, ptr %5, align 8
%20 = add nsw i64 %19, 1
store i64 %20, ptr %5, align 8
br label %6, !llvm.loop !6
21: ; preds = %6
%22 = load i64, ptr %4, align 8
ret i64 %22
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4n2e_8nf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @common(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i64 0, ptr %5, align 8
%6 = load i64, ptr %5, align 8
%7 = load i64, ptr %3, align 8
%8 = icmp slt i64 %6, %7
br i1 %8, label %.lr.ph, label %23
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %17
%10 = load i64, ptr %4, align 8
%11 = load i64, ptr %4, align 8
%12 = mul nsw i64 %10, %11
%13 = load i64, ptr %4, align 8
%14 = mul nsw i64 3, %13
%15 = sub nsw i64 %12, %14
%16 = add nsw i64 %15, 1
store i64 %16, ptr %4, align 8
br label %17
17: ; preds = %9
%18 = load i64, ptr %5, align 8
%19 = add nsw i64 %18, 1
store i64 %19, ptr %5, align 8
%20 = load i64, ptr %5, align 8
%21 = load i64, ptr %3, align 8
%22 = icmp slt i64 %20, %21
br i1 %22, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %23
23: ; preds = %._crit_edge, %2
%24 = load i64, ptr %4, align 8
ret i64 %24
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp1g1yeaj6.c'
source_filename = "/tmp/tmp1g1yeaj6.c"
target datalayout = "e-m:e-p270: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/tmp1g1yeaj6.c"
target datalayout = "e-m:e-p270: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/tmprshqzumd.c'
source_filename = "/tmp/tmprshqzumd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%ld\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 i64, align 8
store i32 0, ptr %1, align 4
br label %6
6: ; preds = %0, %42
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %6
%11 = load i32, ptr %3, align 4
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %10
br label %45
14: ; preds = %10, %6
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %2, align 4
%17 = sdiv i32 %16, 2
%18 = icmp sgt i32 %15, %17
br i1 %18, label %19, label %23
19: ; preds = %14
%20 = load i32, ptr %2, align 4
%21 = load i32, ptr %3, align 4
%22 = sub nsw i32 %20, %21
store i32 %22, ptr %3, align 4
br label %23
23: ; preds = %19, %14
store i64 1, ptr %5, align 8
store i32 0, ptr %4, align 4
br label %24
24: ; preds = %39, %23
%25 = load i32, ptr %4, align 4
%26 = load i32, ptr %3, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %42
28: ; preds = %24
%29 = load i64, ptr %5, align 8
%30 = load i32, ptr %2, align 4
%31 = load i32, ptr %4, align 4
%32 = sub nsw i32 %30, %31
%33 = sext i32 %32 to i64
%34 = mul nsw i64 %29, %33
%35 = load i32, ptr %4, align 4
%36 = add nsw i32 1, %35
%37 = sext i32 %36 to i64
%38 = sdiv i64 %34, %37
store i64 %38, ptr %5, align 8
br label %39
39: ; preds = %28
%40 = load i32, ptr %4, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %4, align 4
br label %24, !llvm.loop !6
42: ; preds = %24
%43 = load i64, ptr %5, align 8
%44 = call i32 @printf(ptr noundef @.str.1, i64 noundef %43)
br label %6
45: ; preds = %13
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprshqzumd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%ld\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 i64, align 8
store i32 0, ptr %1, align 4
br label %6
6: ; preds = %44, %0
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %6
%11 = load i32, ptr %3, align 4
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %10
br label %47
14: ; preds = %10, %6
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %2, align 4
%17 = sdiv i32 %16, 2
%18 = icmp sgt i32 %15, %17
br i1 %18, label %19, label %23
19: ; preds = %14
%20 = load i32, ptr %2, align 4
%21 = load i32, ptr %3, align 4
%22 = sub nsw i32 %20, %21
store i32 %22, ptr %3, align 4
br label %23
23: ; preds = %19, %14
store i64 1, ptr %5, align 8
store i32 0, ptr %4, align 4
%24 = load i32, ptr %4, align 4
%25 = load i32, ptr %3, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %.lr.ph, label %44
.lr.ph: ; preds = %23
br label %27
27: ; preds = %.lr.ph, %38
%28 = load i64, ptr %5, align 8
%29 = load i32, ptr %2, align 4
%30 = load i32, ptr %4, align 4
%31 = sub nsw i32 %29, %30
%32 = sext i32 %31 to i64
%33 = mul nsw i64 %28, %32
%34 = load i32, ptr %4, align 4
%35 = add nsw i32 1, %34
%36 = sext i32 %35 to i64
%37 = sdiv i64 %33, %36
store i64 %37, ptr %5, align 8
br label %38
38: ; preds = %27
%39 = load i32, ptr %4, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %4, align 4
%41 = load i32, ptr %4, align 4
%42 = load i32, ptr %3, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %44
44: ; preds = %._crit_edge, %23
%45 = load i64, ptr %5, align 8
%46 = call i32 @printf(ptr noundef @.str.1, i64 noundef %45)
br label %6
47: ; preds = %13
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmph3swxdl_.c'
source_filename = "/tmp/tmph3swxdl_.c"
target datalayout = "e-m:e-p270: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/tmph3swxdl_.c"
target datalayout = "e-m:e-p270: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/tmp5ng2ckp3.c'
source_filename = "/tmp/tmp5ng2ckp3.c"
target datalayout = "e-m:e-p270: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
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"Error opening file %s: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 3
br i1 %10, label %11, label %18
11: ; preds = %2
%12 = load i32, ptr @stderr, align 4
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = call i32 @usage(i32 noundef %12, ptr noundef %15)
%17 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %17, ptr %3, align 4
br label %58
18: ; preds = %2
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 1
%21 = load ptr, ptr %20, align 8
%22 = call ptr @fopen(ptr noundef %21, ptr noundef @.str)
store ptr %22, ptr %6, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %33
24: ; preds = %18
%25 = load i32, ptr @stderr, align 4
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 1
%28 = load ptr, ptr %27, align 8
%29 = load i32, ptr @errno, align 4
%30 = call ptr @strerror(i32 noundef %29)
%31 = call i32 @fprintf(i32 noundef %25, ptr noundef @.str.1, ptr noundef %28, ptr noundef %30)
%32 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %32, ptr %3, align 4
br label %58
33: ; preds = %18
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds ptr, ptr %34, i64 2
%36 = load ptr, ptr %35, align 8
%37 = call ptr @fopen(ptr noundef %36, ptr noundef @.str.2)
store ptr %37, ptr %7, align 8
%38 = icmp eq ptr %37, null
br i1 %38, label %39, label %48
39: ; preds = %33
%40 = load i32, ptr @stderr, align 4
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds ptr, ptr %41, i64 2
%43 = load ptr, ptr %42, align 8
%44 = load i32, ptr @errno, align 4
%45 = call ptr @strerror(i32 noundef %44)
%46 = call i32 @fprintf(i32 noundef %40, ptr noundef @.str.1, ptr noundef %43, ptr noundef %45)
%47 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %47, ptr %3, align 4
br label %58
48: ; preds = %33
%49 = load ptr, ptr %6, align 8
%50 = load ptr, ptr %7, align 8
%51 = load i32, ptr @stderr, align 4
%52 = call i32 @assemblage(ptr noundef %49, ptr noundef %50, i32 noundef %51)
store i32 %52, ptr %8, align 4
%53 = load ptr, ptr %6, align 8
%54 = call i32 @fclose(ptr noundef %53)
%55 = load ptr, ptr %7, align 8
%56 = call i32 @fclose(ptr noundef %55)
%57 = load i32, ptr %8, align 4
store i32 %57, ptr %3, align 4
br label %58
58: ; preds = %48, %39, %24, %11
%59 = load i32, ptr %3, align 4
ret i32 %59
}
declare i32 @usage(i32 noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @assemblage(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5ng2ckp3.c"
target datalayout = "e-m:e-p270: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
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"Error opening file %s: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 3
br i1 %10, label %11, label %18
11: ; preds = %2
%12 = load i32, ptr @stderr, align 4
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = call i32 @usage(i32 noundef %12, ptr noundef %15)
%17 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %17, ptr %3, align 4
br label %58
18: ; preds = %2
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 1
%21 = load ptr, ptr %20, align 8
%22 = call ptr @fopen(ptr noundef %21, ptr noundef @.str)
store ptr %22, ptr %6, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %33
24: ; preds = %18
%25 = load i32, ptr @stderr, align 4
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 1
%28 = load ptr, ptr %27, align 8
%29 = load i32, ptr @errno, align 4
%30 = call ptr @strerror(i32 noundef %29)
%31 = call i32 @fprintf(i32 noundef %25, ptr noundef @.str.1, ptr noundef %28, ptr noundef %30)
%32 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %32, ptr %3, align 4
br label %58
33: ; preds = %18
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds ptr, ptr %34, i64 2
%36 = load ptr, ptr %35, align 8
%37 = call ptr @fopen(ptr noundef %36, ptr noundef @.str.2)
store ptr %37, ptr %7, align 8
%38 = icmp eq ptr %37, null
br i1 %38, label %39, label %48
39: ; preds = %33
%40 = load i32, ptr @stderr, align 4
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds ptr, ptr %41, i64 2
%43 = load ptr, ptr %42, align 8
%44 = load i32, ptr @errno, align 4
%45 = call ptr @strerror(i32 noundef %44)
%46 = call i32 @fprintf(i32 noundef %40, ptr noundef @.str.1, ptr noundef %43, ptr noundef %45)
%47 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %47, ptr %3, align 4
br label %58
48: ; preds = %33
%49 = load ptr, ptr %6, align 8
%50 = load ptr, ptr %7, align 8
%51 = load i32, ptr @stderr, align 4
%52 = call i32 @assemblage(ptr noundef %49, ptr noundef %50, i32 noundef %51)
store i32 %52, ptr %8, align 4
%53 = load ptr, ptr %6, align 8
%54 = call i32 @fclose(ptr noundef %53)
%55 = load ptr, ptr %7, align 8
%56 = call i32 @fclose(ptr noundef %55)
%57 = load i32, ptr %8, align 4
store i32 %57, ptr %3, align 4
br label %58
58: ; preds = %48, %39, %24, %11
%59 = load i32, ptr %3, align 4
ret i32 %59
}
declare i32 @usage(i32 noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @assemblage(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"}
|
; ModuleID = '/tmp/tmpo0clk6z9.c'
source_filename = "/tmp/tmpo0clk6z9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EVP_MAX_MD_SIZE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"sha256\00", align 1
@.str.1 = private unnamed_addr constant [42 x i8] c"[ERROR] Get digest by name sha256 failed\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"/dev/urandom\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [31 x i8] c"[ERROR] Failed to open random\0A\00", align 1
@.str.4 = private unnamed_addr constant [31 x i8] c"[ERROR] Failed to read random\0A\00", align 1
@.str.5 = private unnamed_addr constant [16 x i8] c"[INFO] SUCCESS\0A\00", align 1
@.str.6 = private unnamed_addr constant [10 x i8] c"plain.txt\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IROTH = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [36 x i8] c"[ERROR] Failed to open output file\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca [33 x i8], align 16
%12 = alloca ptr, align 8
%13 = alloca i64, align 8
%14 = 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 ptr null, ptr %6, align 8
store i32 0, ptr %8, align 4
store i32 0, ptr %10, align 4
%15 = load i32, ptr @EVP_MAX_MD_SIZE, align 4
%16 = zext i32 %15 to i64
%17 = call ptr @llvm.stacksave()
store ptr %17, ptr %12, align 8
%18 = alloca i8, i64 %16, align 16
store i64 %16, ptr %13, align 8
%19 = call i32 (...) @OpenSSL_add_all_digests()
%20 = getelementptr inbounds [33 x i8], ptr %11, i64 0, i64 0
%21 = call i32 @memset(ptr noundef %20, i32 noundef 0, i32 noundef 33)
%22 = getelementptr inbounds [33 x i8], ptr %11, i64 0, i64 0
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 1
%25 = load ptr, ptr %24, align 8
%26 = call i32 @memcpy(ptr noundef %22, ptr noundef %25, i32 noundef 16)
%27 = call ptr @EVP_get_digestbyname(ptr noundef @.str)
store ptr %27, ptr %6, align 8
%28 = load ptr, ptr %6, align 8
%29 = icmp eq ptr %28, null
br i1 %29, label %30, label %33
30: ; preds = %2
%31 = call i32 @printf(ptr noundef @.str.1)
%32 = call i32 @exit(i32 noundef 1) #4
unreachable
33: ; preds = %2
%34 = call ptr (...) @EVP_MD_CTX_create()
store ptr %34, ptr %7, align 8
%35 = load i32, ptr @O_RDONLY, align 4
%36 = call i32 (ptr, i32, ...) @open(ptr noundef @.str.2, i32 noundef %35)
store i32 %36, ptr %9, align 4
%37 = load i32, ptr %9, align 4
%38 = icmp sle i32 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %33
%40 = call i32 @printf(ptr noundef @.str.3)
%41 = call i32 @exit(i32 noundef 1) #4
unreachable
42: ; preds = %33
br label %43
43: ; preds = %90, %89, %83, %77, %71, %42
%44 = load i32, ptr %10, align 4
%45 = icmp ne i32 %44, 0
%46 = xor i1 %45, true
br i1 %46, label %47, label %91
47: ; preds = %43
%48 = load i32, ptr %9, align 4
%49 = getelementptr inbounds [33 x i8], ptr %11, i64 0, i64 0
%50 = getelementptr inbounds i8, ptr %49, i64 16
%51 = call i32 @read(i32 noundef %48, ptr noundef %50, i32 noundef 16)
%52 = icmp ne i32 %51, 16
br i1 %52, label %53, label %58
53: ; preds = %47
%54 = call i32 @printf(ptr noundef @.str.4)
%55 = load i32, ptr %9, align 4
%56 = call i32 @close(i32 noundef %55)
%57 = call i32 @exit(i32 noundef 1) #4
unreachable
58: ; preds = %47
%59 = load ptr, ptr %7, align 8
%60 = load ptr, ptr %6, align 8
%61 = call i32 @EVP_DigestInit_ex(ptr noundef %59, ptr noundef %60, ptr noundef null)
%62 = load ptr, ptr %7, align 8
%63 = getelementptr inbounds [33 x i8], ptr %11, i64 0, i64 0
%64 = call i32 @EVP_DigestUpdate(ptr noundef %62, ptr noundef %63, i32 noundef 32)
%65 = load ptr, ptr %7, align 8
%66 = call i32 @EVP_DigestFinal_ex(ptr noundef %65, ptr noundef %18, ptr noundef %14)
%67 = getelementptr inbounds i8, ptr %18, i64 0
%68 = load i8, ptr %67, align 16
%69 = zext i8 %68 to i32
%70 = icmp ne i32 %69, 255
br i1 %70, label %71, label %72
71: ; preds = %58
br label %43, !llvm.loop !6
72: ; preds = %58
%73 = getelementptr inbounds i8, ptr %18, i64 1
%74 = load i8, ptr %73, align 1
%75 = zext i8 %74 to i32
%76 = icmp ne i32 %75, 255
br i1 %76, label %77, label %78
77: ; preds = %72
br label %43, !llvm.loop !6
78: ; preds = %72
%79 = getelementptr inbounds i8, ptr %18, i64 2
%80 = load i8, ptr %79, align 2
%81 = zext i8 %80 to i32
%82 = icmp ne i32 %81, 255
br i1 %82, label %83, label %84
83: ; preds = %78
br label %43, !llvm.loop !6
84: ; preds = %78
%85 = getelementptr inbounds i8, ptr %18, i64 3
%86 = load i8, ptr %85, align 1
%87 = zext i8 %86 to i32
%88 = icmp sle i32 %87, 239
br i1 %88, label %89, label %90
89: ; preds = %84
br label %43, !llvm.loop !6
90: ; preds = %84
store i32 1, ptr %10, align 4
br label %43, !llvm.loop !6
91: ; preds = %43
%92 = load ptr, ptr %7, align 8
%93 = call i32 @EVP_MD_CTX_destroy(ptr noundef %92)
%94 = call i32 @printf(ptr noundef @.str.5)
%95 = load i32, ptr @O_RDWR, align 4
%96 = load i32, ptr @O_CREAT, align 4
%97 = or i32 %95, %96
%98 = load i32, ptr @S_IRUSR, align 4
%99 = load i32, ptr @S_IRGRP, align 4
%100 = or i32 %98, %99
%101 = load i32, ptr @S_IROTH, align 4
%102 = or i32 %100, %101
%103 = call i32 (ptr, i32, ...) @open(ptr noundef @.str.6, i32 noundef %97, i32 noundef %102)
store i32 %103, ptr %8, align 4
%104 = load i32, ptr %8, align 4
%105 = icmp sle i32 %104, 0
br i1 %105, label %106, label %109
106: ; preds = %91
%107 = call i32 @printf(ptr noundef @.str.7)
%108 = call i32 @exit(i32 noundef 1) #4
unreachable
109: ; preds = %91
%110 = load i32, ptr %8, align 4
%111 = getelementptr inbounds [33 x i8], ptr %11, i64 0, i64 0
%112 = call i32 @write(i32 noundef %110, ptr noundef %111, i32 noundef 32)
%113 = load i32, ptr %8, align 4
%114 = call i32 @close(i32 noundef %113)
%115 = call i32 (...) @EVP_cleanup()
store i32 0, ptr %3, align 4
%116 = load ptr, ptr %12, align 8
call void @llvm.stackrestore(ptr %116)
%117 = load i32, ptr %3, align 4
ret i32 %117
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @OpenSSL_add_all_digests(...) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #2
declare ptr @EVP_get_digestbyname(ptr noundef) #2
declare i32 @printf(ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare ptr @EVP_MD_CTX_create(...) #2
declare i32 @open(ptr noundef, i32 noundef, ...) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @close(i32 noundef) #2
declare i32 @EVP_DigestInit_ex(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @EVP_DigestUpdate(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @EVP_DigestFinal_ex(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @EVP_MD_CTX_destroy(ptr noundef) #2
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @EVP_cleanup(...) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo0clk6z9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EVP_MAX_MD_SIZE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"sha256\00", align 1
@.str.1 = private unnamed_addr constant [42 x i8] c"[ERROR] Get digest by name sha256 failed\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"/dev/urandom\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [31 x i8] c"[ERROR] Failed to open random\0A\00", align 1
@.str.4 = private unnamed_addr constant [31 x i8] c"[ERROR] Failed to read random\0A\00", align 1
@.str.5 = private unnamed_addr constant [16 x i8] c"[INFO] SUCCESS\0A\00", align 1
@.str.6 = private unnamed_addr constant [10 x i8] c"plain.txt\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IROTH = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [36 x i8] c"[ERROR] Failed to open output file\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca [33 x i8], align 16
%12 = alloca ptr, align 8
%13 = alloca i64, align 8
%14 = 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 ptr null, ptr %6, align 8
store i32 0, ptr %8, align 4
store i32 0, ptr %10, align 4
%15 = load i32, ptr @EVP_MAX_MD_SIZE, align 4
%16 = zext i32 %15 to i64
%17 = call ptr @llvm.stacksave()
store ptr %17, ptr %12, align 8
%18 = alloca i8, i64 %16, align 16
store i64 %16, ptr %13, align 8
%19 = call i32 (...) @OpenSSL_add_all_digests()
%20 = getelementptr inbounds [33 x i8], ptr %11, i64 0, i64 0
%21 = call i32 @memset(ptr noundef %20, i32 noundef 0, i32 noundef 33)
%22 = getelementptr inbounds [33 x i8], ptr %11, i64 0, i64 0
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 1
%25 = load ptr, ptr %24, align 8
%26 = call i32 @memcpy(ptr noundef %22, ptr noundef %25, i32 noundef 16)
%27 = call ptr @EVP_get_digestbyname(ptr noundef @.str)
store ptr %27, ptr %6, align 8
%28 = load ptr, ptr %6, align 8
%29 = icmp eq ptr %28, null
br i1 %29, label %30, label %33
30: ; preds = %2
%31 = call i32 @printf(ptr noundef @.str.1)
%32 = call i32 @exit(i32 noundef 1) #4
unreachable
33: ; preds = %2
%34 = call ptr (...) @EVP_MD_CTX_create()
store ptr %34, ptr %7, align 8
%35 = load i32, ptr @O_RDONLY, align 4
%36 = call i32 (ptr, i32, ...) @open(ptr noundef @.str.2, i32 noundef %35)
store i32 %36, ptr %9, align 4
%37 = load i32, ptr %9, align 4
%38 = icmp sle i32 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %33
%40 = call i32 @printf(ptr noundef @.str.3)
%41 = call i32 @exit(i32 noundef 1) #4
unreachable
42: ; preds = %33
%43 = load i32, ptr %10, align 4
%44 = icmp ne i32 %43, 0
%45 = xor i1 %44, true
br i1 %45, label %.lr.ph, label %93
.lr.ph: ; preds = %42
br label %46
46: ; preds = %.lr.ph, %.backedge
%47 = load i32, ptr %9, align 4
%48 = getelementptr inbounds [33 x i8], ptr %11, i64 0, i64 0
%49 = getelementptr inbounds i8, ptr %48, i64 16
%50 = call i32 @read(i32 noundef %47, ptr noundef %49, i32 noundef 16)
%51 = icmp ne i32 %50, 16
br i1 %51, label %52, label %57
52: ; preds = %46
%53 = call i32 @printf(ptr noundef @.str.4)
%54 = load i32, ptr %9, align 4
%55 = call i32 @close(i32 noundef %54)
%56 = call i32 @exit(i32 noundef 1) #4
unreachable
57: ; preds = %46
%58 = load ptr, ptr %7, align 8
%59 = load ptr, ptr %6, align 8
%60 = call i32 @EVP_DigestInit_ex(ptr noundef %58, ptr noundef %59, ptr noundef null)
%61 = load ptr, ptr %7, align 8
%62 = getelementptr inbounds [33 x i8], ptr %11, i64 0, i64 0
%63 = call i32 @EVP_DigestUpdate(ptr noundef %61, ptr noundef %62, i32 noundef 32)
%64 = load ptr, ptr %7, align 8
%65 = call i32 @EVP_DigestFinal_ex(ptr noundef %64, ptr noundef %18, ptr noundef %14)
%66 = getelementptr inbounds i8, ptr %18, i64 0
%67 = load i8, ptr %66, align 16
%68 = zext i8 %67 to i32
%69 = icmp ne i32 %68, 255
br i1 %69, label %70, label %74
70: ; preds = %57
br label %.backedge
.backedge: ; preds = %70, %79, %85, %91, %92
%71 = load i32, ptr %10, align 4
%72 = icmp ne i32 %71, 0
%73 = xor i1 %72, true
br i1 %73, label %46, label %._crit_edge, !llvm.loop !6
74: ; preds = %57
%75 = getelementptr inbounds i8, ptr %18, i64 1
%76 = load i8, ptr %75, align 1
%77 = zext i8 %76 to i32
%78 = icmp ne i32 %77, 255
br i1 %78, label %79, label %80
79: ; preds = %74
br label %.backedge
80: ; preds = %74
%81 = getelementptr inbounds i8, ptr %18, i64 2
%82 = load i8, ptr %81, align 2
%83 = zext i8 %82 to i32
%84 = icmp ne i32 %83, 255
br i1 %84, label %85, label %86
85: ; preds = %80
br label %.backedge
86: ; preds = %80
%87 = getelementptr inbounds i8, ptr %18, i64 3
%88 = load i8, ptr %87, align 1
%89 = zext i8 %88 to i32
%90 = icmp sle i32 %89, 239
br i1 %90, label %91, label %92
91: ; preds = %86
br label %.backedge
92: ; preds = %86
store i32 1, ptr %10, align 4
br label %.backedge
._crit_edge: ; preds = %.backedge
br label %93
93: ; preds = %._crit_edge, %42
%94 = load ptr, ptr %7, align 8
%95 = call i32 @EVP_MD_CTX_destroy(ptr noundef %94)
%96 = call i32 @printf(ptr noundef @.str.5)
%97 = load i32, ptr @O_RDWR, align 4
%98 = load i32, ptr @O_CREAT, align 4
%99 = or i32 %97, %98
%100 = load i32, ptr @S_IRUSR, align 4
%101 = load i32, ptr @S_IRGRP, align 4
%102 = or i32 %100, %101
%103 = load i32, ptr @S_IROTH, align 4
%104 = or i32 %102, %103
%105 = call i32 (ptr, i32, ...) @open(ptr noundef @.str.6, i32 noundef %99, i32 noundef %104)
store i32 %105, ptr %8, align 4
%106 = load i32, ptr %8, align 4
%107 = icmp sle i32 %106, 0
br i1 %107, label %108, label %111
108: ; preds = %93
%109 = call i32 @printf(ptr noundef @.str.7)
%110 = call i32 @exit(i32 noundef 1) #4
unreachable
111: ; preds = %93
%112 = load i32, ptr %8, align 4
%113 = getelementptr inbounds [33 x i8], ptr %11, i64 0, i64 0
%114 = call i32 @write(i32 noundef %112, ptr noundef %113, i32 noundef 32)
%115 = load i32, ptr %8, align 4
%116 = call i32 @close(i32 noundef %115)
%117 = call i32 (...) @EVP_cleanup()
store i32 0, ptr %3, align 4
%118 = load ptr, ptr %12, align 8
call void @llvm.stackrestore(ptr %118)
%119 = load i32, ptr %3, align 4
ret i32 %119
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @OpenSSL_add_all_digests(...) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #2
declare ptr @EVP_get_digestbyname(ptr noundef) #2
declare i32 @printf(ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare ptr @EVP_MD_CTX_create(...) #2
declare i32 @open(ptr noundef, i32 noundef, ...) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @close(i32 noundef) #2
declare i32 @EVP_DigestInit_ex(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @EVP_DigestUpdate(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @EVP_DigestFinal_ex(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @EVP_MD_CTX_destroy(ptr noundef) #2
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @EVP_cleanup(...) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_ayaox1z.c'
source_filename = "/tmp/tmp_ayaox1z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_ayaox1z.c"
target datalayout = "e-m:e-p270: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/tmp10ekfes4.c'
source_filename = "/tmp/tmp10ekfes4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_atou(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %10, %1
%5 = load ptr, ptr %2, align 8
%6 = load ptr, ptr %5, align 8
%7 = load i8, ptr %6, align 1
%8 = call i64 @_isdigit(i8 noundef signext %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %23
10: ; preds = %4
%11 = load i32, ptr %3, align 4
%12 = mul i32 %11, 10
store i32 %12, ptr %3, align 4
%13 = load ptr, ptr %2, align 8
%14 = load ptr, ptr %13, align 8
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = sub nsw i32 %16, 48
%18 = load i32, ptr %3, align 4
%19 = add i32 %18, %17
store i32 %19, ptr %3, align 4
%20 = load ptr, ptr %2, align 8
%21 = load ptr, ptr %20, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %20, align 8
br label %4, !llvm.loop !6
23: ; preds = %4
%24 = load i32, ptr %3, align 4
ret i32 %24
}
declare i64 @_isdigit(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp10ekfes4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_atou(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%4 = load ptr, ptr %2, align 8
%5 = load ptr, ptr %4, align 8
%6 = load i8, ptr %5, align 1
%7 = call i64 @_isdigit(i8 noundef signext %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %.lr.ph, label %27
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %9
%10 = load i32, ptr %3, align 4
%11 = mul i32 %10, 10
store i32 %11, ptr %3, align 4
%12 = load ptr, ptr %2, align 8
%13 = load ptr, ptr %12, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = sub nsw i32 %15, 48
%17 = load i32, ptr %3, align 4
%18 = add i32 %17, %16
store i32 %18, ptr %3, align 4
%19 = load ptr, ptr %2, align 8
%20 = load ptr, ptr %19, align 8
%21 = getelementptr inbounds i8, ptr %20, i32 1
store ptr %21, ptr %19, align 8
%22 = load ptr, ptr %2, align 8
%23 = load ptr, ptr %22, align 8
%24 = load i8, ptr %23, align 1
%25 = call i64 @_isdigit(i8 noundef signext %24)
%26 = icmp ne i64 %25, 0
br i1 %26, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %27
27: ; preds = %._crit_edge, %1
%28 = load i32, ptr %3, align 4
ret i32 %28
}
declare i64 @_isdigit(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpnpspa60a.c'
source_filename = "/tmp/tmpnpspa60a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_and() #0 {
%1 = alloca i32, align 4
%2 = call i32 @and_i8(i32 noundef 90, i32 noundef 15)
%3 = icmp ne i32 %2, 10
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 @fail(i32 noundef 0)
store i32 %5, ptr %1, align 4
br label %22
6: ; preds = %0
%7 = call i32 @and_i16(i32 noundef 23228, i32 noundef 61440)
%8 = icmp ne i32 %7, 20480
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = call i32 @fail(i32 noundef 0)
store i32 %10, ptr %1, align 4
br label %22
11: ; preds = %6
%12 = call i32 @and_i32(i32 noundef 1522274868, i32 noundef 251658240)
%13 = icmp ne i32 %12, 167772160
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 @fail(i32 noundef 0)
store i32 %15, ptr %1, align 4
br label %22
16: ; preds = %11
%17 = call i32 @and_i64(i32 noundef 1450709556, i32 noundef 251658240)
%18 = icmp ne i32 %17, 100663296
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 @fail(i32 noundef 0)
store i32 %20, ptr %1, align 4
br label %22
21: ; preds = %16
store i32 262144, ptr %1, align 4
br label %22
22: ; preds = %21, %19, %14, %9, %4
%23 = load i32, ptr %1, align 4
ret i32 %23
}
declare i32 @and_i8(i32 noundef, i32 noundef) #1
declare i32 @fail(i32 noundef) #1
declare i32 @and_i16(i32 noundef, i32 noundef) #1
declare i32 @and_i32(i32 noundef, i32 noundef) #1
declare i32 @and_i64(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/tmpnpspa60a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_and() #0 {
%1 = alloca i32, align 4
%2 = call i32 @and_i8(i32 noundef 90, i32 noundef 15)
%3 = icmp ne i32 %2, 10
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 @fail(i32 noundef 0)
store i32 %5, ptr %1, align 4
br label %22
6: ; preds = %0
%7 = call i32 @and_i16(i32 noundef 23228, i32 noundef 61440)
%8 = icmp ne i32 %7, 20480
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = call i32 @fail(i32 noundef 0)
store i32 %10, ptr %1, align 4
br label %22
11: ; preds = %6
%12 = call i32 @and_i32(i32 noundef 1522274868, i32 noundef 251658240)
%13 = icmp ne i32 %12, 167772160
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 @fail(i32 noundef 0)
store i32 %15, ptr %1, align 4
br label %22
16: ; preds = %11
%17 = call i32 @and_i64(i32 noundef 1450709556, i32 noundef 251658240)
%18 = icmp ne i32 %17, 100663296
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 @fail(i32 noundef 0)
store i32 %20, ptr %1, align 4
br label %22
21: ; preds = %16
store i32 262144, ptr %1, align 4
br label %22
22: ; preds = %21, %19, %14, %9, %4
%23 = load i32, ptr %1, align 4
ret i32 %23
}
declare i32 @and_i8(i32 noundef, i32 noundef) #1
declare i32 @fail(i32 noundef) #1
declare i32 @and_i16(i32 noundef, i32 noundef) #1
declare i32 @and_i32(i32 noundef, i32 noundef) #1
declare i32 @and_i64(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/tmphdf6t952.c'
source_filename = "/tmp/tmphdf6t952.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @array2list(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
%14 = load ptr, ptr %8, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %26
16: ; preds = %5
%17 = load ptr, ptr %7, align 8
%18 = load ptr, ptr %6, align 8
%19 = load i32, ptr %9, align 4
%20 = sext i32 %19 to i64
%21 = mul i64 %20, 4
%22 = trunc i64 %21 to i32
%23 = call i32 @memcpy(ptr noundef %17, ptr noundef %18, i32 noundef %22)
%24 = load i32, ptr %9, align 4
%25 = load ptr, ptr %10, align 8
store i32 %24, ptr %25, align 4
br label %62
26: ; preds = %5
store i32 0, ptr %11, align 4
store i32 128, ptr %12, align 4
%27 = load ptr, ptr %8, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 1
store ptr %28, ptr %8, align 8
%29 = load i8, ptr %27, align 1
%30 = zext i8 %29 to i32
store i32 %30, ptr %13, align 4
br label %31
31: ; preds = %58, %26
%32 = load i32, ptr %9, align 4
%33 = add nsw i32 %32, -1
store i32 %33, ptr %9, align 4
%34 = icmp sgt i32 %32, 0
br i1 %34, label %35, label %59
35: ; preds = %31
%36 = load i32, ptr %12, align 4
%37 = load i32, ptr %13, align 4
%38 = and i32 %36, %37
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %47
40: ; preds = %35
%41 = load ptr, ptr %6, align 8
%42 = load float, ptr %41, align 4
%43 = load ptr, ptr %7, align 8
%44 = getelementptr inbounds float, ptr %43, i32 1
store ptr %44, ptr %7, align 8
store float %42, ptr %43, align 4
%45 = load i32, ptr %11, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %11, align 4
br label %47
47: ; preds = %40, %35
%48 = load ptr, ptr %6, align 8
%49 = getelementptr inbounds float, ptr %48, i32 1
store ptr %49, ptr %6, align 8
%50 = load i32, ptr %12, align 4
%51 = lshr i32 %50, 1
store i32 %51, ptr %12, align 4
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %58
53: ; preds = %47
store i32 128, ptr %12, align 4
%54 = load ptr, ptr %8, align 8
%55 = getelementptr inbounds i8, ptr %54, i32 1
store ptr %55, ptr %8, align 8
%56 = load i8, ptr %54, align 1
%57 = zext i8 %56 to i32
store i32 %57, ptr %13, align 4
br label %58
58: ; preds = %53, %47
br label %31, !llvm.loop !6
59: ; preds = %31
%60 = load i32, ptr %11, align 4
%61 = load ptr, ptr %10, align 8
store i32 %60, ptr %61, align 4
br label %62
62: ; preds = %59, %16
ret void
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphdf6t952.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @array2list(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
%14 = load ptr, ptr %8, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %26
16: ; preds = %5
%17 = load ptr, ptr %7, align 8
%18 = load ptr, ptr %6, align 8
%19 = load i32, ptr %9, align 4
%20 = sext i32 %19 to i64
%21 = mul i64 %20, 4
%22 = trunc i64 %21 to i32
%23 = call i32 @memcpy(ptr noundef %17, ptr noundef %18, i32 noundef %22)
%24 = load i32, ptr %9, align 4
%25 = load ptr, ptr %10, align 8
store i32 %24, ptr %25, align 4
br label %64
26: ; preds = %5
store i32 0, ptr %11, align 4
store i32 128, ptr %12, align 4
%27 = load ptr, ptr %8, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 1
store ptr %28, ptr %8, align 8
%29 = load i8, ptr %27, align 1
%30 = zext i8 %29 to i32
store i32 %30, ptr %13, align 4
%31 = load i32, ptr %9, align 4
%32 = add nsw i32 %31, -1
store i32 %32, ptr %9, align 4
%33 = icmp sgt i32 %31, 0
br i1 %33, label %.lr.ph, label %61
.lr.ph: ; preds = %26
br label %34
34: ; preds = %.lr.ph, %57
%35 = load i32, ptr %12, align 4
%36 = load i32, ptr %13, align 4
%37 = and i32 %35, %36
%38 = icmp ne i32 %37, 0
br i1 %38, label %39, label %46
39: ; preds = %34
%40 = load ptr, ptr %6, align 8
%41 = load float, ptr %40, align 4
%42 = load ptr, ptr %7, align 8
%43 = getelementptr inbounds float, ptr %42, i32 1
store ptr %43, ptr %7, align 8
store float %41, ptr %42, align 4
%44 = load i32, ptr %11, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %11, align 4
br label %46
46: ; preds = %39, %34
%47 = load ptr, ptr %6, align 8
%48 = getelementptr inbounds float, ptr %47, i32 1
store ptr %48, ptr %6, align 8
%49 = load i32, ptr %12, align 4
%50 = lshr i32 %49, 1
store i32 %50, ptr %12, align 4
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %57
52: ; preds = %46
store i32 128, ptr %12, align 4
%53 = load ptr, ptr %8, align 8
%54 = getelementptr inbounds i8, ptr %53, i32 1
store ptr %54, ptr %8, align 8
%55 = load i8, ptr %53, align 1
%56 = zext i8 %55 to i32
store i32 %56, ptr %13, align 4
br label %57
57: ; preds = %52, %46
%58 = load i32, ptr %9, align 4
%59 = add nsw i32 %58, -1
store i32 %59, ptr %9, align 4
%60 = icmp sgt i32 %58, 0
br i1 %60, label %34, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %57
br label %61
61: ; preds = %._crit_edge, %26
%62 = load i32, ptr %11, align 4
%63 = load ptr, ptr %10, align 8
store i32 %62, ptr %63, align 4
br label %64
64: ; preds = %61, %16
ret void
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpulzlq7lj.c'
source_filename = "/tmp/tmpulzlq7lj.c"
target datalayout = "e-m:e-p270: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/tmpulzlq7lj.c"
target datalayout = "e-m:e-p270: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/tmp08wkqfkf.c'
source_filename = "/tmp/tmp08wkqfkf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strspn(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 0, ptr %6, align 8
br label %8
8: ; preds = %40, %2
%9 = load ptr, ptr %4, align 8
%10 = load i64, ptr %6, align 8
%11 = getelementptr inbounds i8, ptr %9, i64 %10
%12 = load i8, ptr %11, align 1
%13 = icmp ne i8 %12, 0
br i1 %13, label %14, label %43
14: ; preds = %8
%15 = load ptr, ptr %5, align 8
store ptr %15, ptr %7, align 8
br label %16
16: ; preds = %31, %14
%17 = load ptr, ptr %7, align 8
%18 = load i8, ptr %17, align 1
%19 = icmp ne i8 %18, 0
br i1 %19, label %20, label %34
20: ; preds = %16
%21 = load ptr, ptr %4, align 8
%22 = load i64, ptr %6, align 8
%23 = getelementptr inbounds i8, ptr %21, i64 %22
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = load ptr, ptr %7, align 8
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %25, %28
br i1 %29, label %30, label %31
30: ; preds = %20
br label %34
31: ; preds = %20
%32 = load ptr, ptr %7, align 8
%33 = getelementptr inbounds i8, ptr %32, i32 1
store ptr %33, ptr %7, align 8
br label %16, !llvm.loop !6
34: ; preds = %30, %16
%35 = load ptr, ptr %7, align 8
%36 = load i8, ptr %35, align 1
%37 = icmp ne i8 %36, 0
br i1 %37, label %40, label %38
38: ; preds = %34
%39 = load i64, ptr %6, align 8
store i64 %39, ptr %3, align 8
br label %45
40: ; preds = %34
%41 = load i64, ptr %6, align 8
%42 = add i64 %41, 1
store i64 %42, ptr %6, align 8
br label %8, !llvm.loop !8
43: ; preds = %8
%44 = load i64, ptr %6, align 8
store i64 %44, ptr %3, align 8
br label %45
45: ; preds = %43, %38
%46 = load i64, ptr %3, align 8
ret i64 %46
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp08wkqfkf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strspn(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 0, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = load i64, ptr %6, align 8
%10 = getelementptr inbounds i8, ptr %8, i64 %9
%11 = load i8, ptr %10, align 1
%12 = icmp ne i8 %11, 0
br i1 %12, label %.lr.ph1, label %49
.lr.ph1: ; preds = %2
br label %13
13: ; preds = %.lr.ph1, %41
%14 = load ptr, ptr %5, align 8
store ptr %14, ptr %7, align 8
%15 = load ptr, ptr %7, align 8
%16 = load i8, ptr %15, align 1
%17 = icmp ne i8 %16, 0
br i1 %17, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %13
br label %18
18: ; preds = %.lr.ph, %29
%19 = load ptr, ptr %4, align 8
%20 = load i64, ptr %6, align 8
%21 = getelementptr inbounds i8, ptr %19, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = load ptr, ptr %7, align 8
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %23, %26
br i1 %27, label %28, label %29
28: ; preds = %18
br label %35
29: ; preds = %18
%30 = load ptr, ptr %7, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 1
store ptr %31, ptr %7, align 8
%32 = load ptr, ptr %7, align 8
%33 = load i8, ptr %32, align 1
%34 = icmp ne i8 %33, 0
br i1 %34, label %18, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %29
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %13
br label %35
35: ; preds = %.loopexit, %28
%36 = load ptr, ptr %7, align 8
%37 = load i8, ptr %36, align 1
%38 = icmp ne i8 %37, 0
br i1 %38, label %41, label %39
39: ; preds = %35
%40 = load i64, ptr %6, align 8
store i64 %40, ptr %3, align 8
br label %51
41: ; preds = %35
%42 = load i64, ptr %6, align 8
%43 = add i64 %42, 1
store i64 %43, ptr %6, align 8
%44 = load ptr, ptr %4, align 8
%45 = load i64, ptr %6, align 8
%46 = getelementptr inbounds i8, ptr %44, i64 %45
%47 = load i8, ptr %46, align 1
%48 = icmp ne i8 %47, 0
br i1 %48, label %13, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %41
br label %49
49: ; preds = %._crit_edge, %2
%50 = load i64, ptr %6, align 8
store i64 %50, ptr %3, align 8
br label %51
51: ; preds = %49, %39
%52 = load i64, ptr %3, align 8
ret i64 %52
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmppdyav7pm.c'
source_filename = "/tmp/tmppdyav7pm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @set_10_pixel(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%12 = load ptr, ptr %6, align 8
%13 = load i32, ptr %9, align 4
%14 = load i32, ptr %7, align 4
%15 = mul i32 %13, %14
%16 = zext i32 %15 to i64
%17 = getelementptr inbounds i32, ptr %12, i64 %16
%18 = load i32, ptr %8, align 4
%19 = lshr i32 %18, 3
%20 = mul i32 %19, 10
%21 = zext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %17, i64 %21
store ptr %22, ptr %11, align 8
%23 = load i32, ptr %8, align 4
%24 = and i32 %23, 7
switch i32 %24, label %155 [
i32 0, label %25
i32 1, label %39
i32 2, label %58
i32 3, label %77
i32 4, label %90
i32 5, label %104
i32 6, label %123
i32 7, label %142
]
25: ; preds = %5
%26 = load ptr, ptr %11, align 8
%27 = getelementptr inbounds i32, ptr %26, i64 0
%28 = load i32, ptr %27, align 4
%29 = and i32 %28, 63
%30 = load i32, ptr %10, align 4
%31 = shl i32 %30, 6
%32 = or i32 %29, %31
%33 = load ptr, ptr %11, align 8
%34 = getelementptr inbounds i32, ptr %33, i64 0
store i32 %32, ptr %34, align 4
%35 = load i32, ptr %10, align 4
%36 = lshr i32 %35, 2
%37 = load ptr, ptr %11, align 8
%38 = getelementptr inbounds i32, ptr %37, i64 1
store i32 %36, ptr %38, align 4
br label %155
39: ; preds = %5
%40 = load ptr, ptr %11, align 8
%41 = getelementptr inbounds i32, ptr %40, i64 0
%42 = load i32, ptr %41, align 4
%43 = and i32 %42, 192
%44 = load i32, ptr %10, align 4
%45 = lshr i32 %44, 4
%46 = or i32 %43, %45
%47 = load ptr, ptr %11, align 8
%48 = getelementptr inbounds i32, ptr %47, i64 0
store i32 %46, ptr %48, align 4
%49 = load ptr, ptr %11, align 8
%50 = getelementptr inbounds i32, ptr %49, i64 3
%51 = load i32, ptr %50, align 4
%52 = and i32 %51, 15
%53 = load i32, ptr %10, align 4
%54 = shl i32 %53, 4
%55 = or i32 %52, %54
%56 = load ptr, ptr %11, align 8
%57 = getelementptr inbounds i32, ptr %56, i64 3
store i32 %55, ptr %57, align 4
br label %155
58: ; preds = %5
%59 = load ptr, ptr %11, align 8
%60 = getelementptr inbounds i32, ptr %59, i64 2
%61 = load i32, ptr %60, align 4
%62 = and i32 %61, 3
%63 = load i32, ptr %10, align 4
%64 = shl i32 %63, 2
%65 = or i32 %62, %64
%66 = load ptr, ptr %11, align 8
%67 = getelementptr inbounds i32, ptr %66, i64 2
store i32 %65, ptr %67, align 4
%68 = load ptr, ptr %11, align 8
%69 = getelementptr inbounds i32, ptr %68, i64 3
%70 = load i32, ptr %69, align 4
%71 = and i32 %70, 240
%72 = load i32, ptr %10, align 4
%73 = lshr i32 %72, 6
%74 = or i32 %71, %73
%75 = load ptr, ptr %11, align 8
%76 = getelementptr inbounds i32, ptr %75, i64 3
store i32 %74, ptr %76, align 4
br label %155
77: ; preds = %5
%78 = load ptr, ptr %11, align 8
%79 = getelementptr inbounds i32, ptr %78, i64 2
%80 = load i32, ptr %79, align 4
%81 = and i32 %80, 252
%82 = load i32, ptr %10, align 4
%83 = lshr i32 %82, 8
%84 = or i32 %81, %83
%85 = load ptr, ptr %11, align 8
%86 = getelementptr inbounds i32, ptr %85, i64 2
store i32 %84, ptr %86, align 4
%87 = load i32, ptr %10, align 4
%88 = load ptr, ptr %11, align 8
%89 = getelementptr inbounds i32, ptr %88, i64 5
store i32 %87, ptr %89, align 4
br label %155
90: ; preds = %5
%91 = load i32, ptr %10, align 4
%92 = lshr i32 %91, 2
%93 = load ptr, ptr %11, align 8
%94 = getelementptr inbounds i32, ptr %93, i64 4
store i32 %92, ptr %94, align 4
%95 = load ptr, ptr %11, align 8
%96 = getelementptr inbounds i32, ptr %95, i64 7
%97 = load i32, ptr %96, align 4
%98 = and i32 %97, 63
%99 = load i32, ptr %10, align 4
%100 = shl i32 %99, 6
%101 = or i32 %98, %100
%102 = load ptr, ptr %11, align 8
%103 = getelementptr inbounds i32, ptr %102, i64 7
store i32 %101, ptr %103, align 4
br label %155
104: ; preds = %5
%105 = load ptr, ptr %11, align 8
%106 = getelementptr inbounds i32, ptr %105, i64 6
%107 = load i32, ptr %106, align 4
%108 = and i32 %107, 15
%109 = load i32, ptr %10, align 4
%110 = shl i32 %109, 4
%111 = or i32 %108, %110
%112 = load ptr, ptr %11, align 8
%113 = getelementptr inbounds i32, ptr %112, i64 6
store i32 %111, ptr %113, align 4
%114 = load ptr, ptr %11, align 8
%115 = getelementptr inbounds i32, ptr %114, i64 7
%116 = load i32, ptr %115, align 4
%117 = and i32 %116, 192
%118 = load i32, ptr %10, align 4
%119 = lshr i32 %118, 4
%120 = or i32 %117, %119
%121 = load ptr, ptr %11, align 8
%122 = getelementptr inbounds i32, ptr %121, i64 7
store i32 %120, ptr %122, align 4
br label %155
123: ; preds = %5
%124 = load ptr, ptr %11, align 8
%125 = getelementptr inbounds i32, ptr %124, i64 6
%126 = load i32, ptr %125, align 4
%127 = and i32 %126, 240
%128 = load i32, ptr %10, align 4
%129 = lshr i32 %128, 6
%130 = or i32 %127, %129
%131 = load ptr, ptr %11, align 8
%132 = getelementptr inbounds i32, ptr %131, i64 6
store i32 %130, ptr %132, align 4
%133 = load ptr, ptr %11, align 8
%134 = getelementptr inbounds i32, ptr %133, i64 9
%135 = load i32, ptr %134, align 4
%136 = and i32 %135, 3
%137 = load i32, ptr %10, align 4
%138 = shl i32 %137, 2
%139 = or i32 %136, %138
%140 = load ptr, ptr %11, align 8
%141 = getelementptr inbounds i32, ptr %140, i64 9
store i32 %139, ptr %141, align 4
br label %155
142: ; preds = %5
%143 = load i32, ptr %10, align 4
%144 = load ptr, ptr %11, align 8
%145 = getelementptr inbounds i32, ptr %144, i64 8
store i32 %143, ptr %145, align 4
%146 = load ptr, ptr %11, align 8
%147 = getelementptr inbounds i32, ptr %146, i64 9
%148 = load i32, ptr %147, align 4
%149 = and i32 %148, 252
%150 = load i32, ptr %10, align 4
%151 = lshr i32 %150, 8
%152 = or i32 %149, %151
%153 = load ptr, ptr %11, align 8
%154 = getelementptr inbounds i32, ptr %153, i64 9
store i32 %152, ptr %154, align 4
br label %155
155: ; preds = %5, %142, %123, %104, %90, %77, %58, %39, %25
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppdyav7pm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @set_10_pixel(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%12 = load ptr, ptr %6, align 8
%13 = load i32, ptr %9, align 4
%14 = load i32, ptr %7, align 4
%15 = mul i32 %13, %14
%16 = zext i32 %15 to i64
%17 = getelementptr inbounds i32, ptr %12, i64 %16
%18 = load i32, ptr %8, align 4
%19 = lshr i32 %18, 3
%20 = mul i32 %19, 10
%21 = zext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %17, i64 %21
store ptr %22, ptr %11, align 8
%23 = load i32, ptr %8, align 4
%24 = and i32 %23, 7
switch i32 %24, label %155 [
i32 0, label %25
i32 1, label %39
i32 2, label %58
i32 3, label %77
i32 4, label %90
i32 5, label %104
i32 6, label %123
i32 7, label %142
]
25: ; preds = %5
%26 = load ptr, ptr %11, align 8
%27 = getelementptr inbounds i32, ptr %26, i64 0
%28 = load i32, ptr %27, align 4
%29 = and i32 %28, 63
%30 = load i32, ptr %10, align 4
%31 = shl i32 %30, 6
%32 = or i32 %29, %31
%33 = load ptr, ptr %11, align 8
%34 = getelementptr inbounds i32, ptr %33, i64 0
store i32 %32, ptr %34, align 4
%35 = load i32, ptr %10, align 4
%36 = lshr i32 %35, 2
%37 = load ptr, ptr %11, align 8
%38 = getelementptr inbounds i32, ptr %37, i64 1
store i32 %36, ptr %38, align 4
br label %155
39: ; preds = %5
%40 = load ptr, ptr %11, align 8
%41 = getelementptr inbounds i32, ptr %40, i64 0
%42 = load i32, ptr %41, align 4
%43 = and i32 %42, 192
%44 = load i32, ptr %10, align 4
%45 = lshr i32 %44, 4
%46 = or i32 %43, %45
%47 = load ptr, ptr %11, align 8
%48 = getelementptr inbounds i32, ptr %47, i64 0
store i32 %46, ptr %48, align 4
%49 = load ptr, ptr %11, align 8
%50 = getelementptr inbounds i32, ptr %49, i64 3
%51 = load i32, ptr %50, align 4
%52 = and i32 %51, 15
%53 = load i32, ptr %10, align 4
%54 = shl i32 %53, 4
%55 = or i32 %52, %54
%56 = load ptr, ptr %11, align 8
%57 = getelementptr inbounds i32, ptr %56, i64 3
store i32 %55, ptr %57, align 4
br label %155
58: ; preds = %5
%59 = load ptr, ptr %11, align 8
%60 = getelementptr inbounds i32, ptr %59, i64 2
%61 = load i32, ptr %60, align 4
%62 = and i32 %61, 3
%63 = load i32, ptr %10, align 4
%64 = shl i32 %63, 2
%65 = or i32 %62, %64
%66 = load ptr, ptr %11, align 8
%67 = getelementptr inbounds i32, ptr %66, i64 2
store i32 %65, ptr %67, align 4
%68 = load ptr, ptr %11, align 8
%69 = getelementptr inbounds i32, ptr %68, i64 3
%70 = load i32, ptr %69, align 4
%71 = and i32 %70, 240
%72 = load i32, ptr %10, align 4
%73 = lshr i32 %72, 6
%74 = or i32 %71, %73
%75 = load ptr, ptr %11, align 8
%76 = getelementptr inbounds i32, ptr %75, i64 3
store i32 %74, ptr %76, align 4
br label %155
77: ; preds = %5
%78 = load ptr, ptr %11, align 8
%79 = getelementptr inbounds i32, ptr %78, i64 2
%80 = load i32, ptr %79, align 4
%81 = and i32 %80, 252
%82 = load i32, ptr %10, align 4
%83 = lshr i32 %82, 8
%84 = or i32 %81, %83
%85 = load ptr, ptr %11, align 8
%86 = getelementptr inbounds i32, ptr %85, i64 2
store i32 %84, ptr %86, align 4
%87 = load i32, ptr %10, align 4
%88 = load ptr, ptr %11, align 8
%89 = getelementptr inbounds i32, ptr %88, i64 5
store i32 %87, ptr %89, align 4
br label %155
90: ; preds = %5
%91 = load i32, ptr %10, align 4
%92 = lshr i32 %91, 2
%93 = load ptr, ptr %11, align 8
%94 = getelementptr inbounds i32, ptr %93, i64 4
store i32 %92, ptr %94, align 4
%95 = load ptr, ptr %11, align 8
%96 = getelementptr inbounds i32, ptr %95, i64 7
%97 = load i32, ptr %96, align 4
%98 = and i32 %97, 63
%99 = load i32, ptr %10, align 4
%100 = shl i32 %99, 6
%101 = or i32 %98, %100
%102 = load ptr, ptr %11, align 8
%103 = getelementptr inbounds i32, ptr %102, i64 7
store i32 %101, ptr %103, align 4
br label %155
104: ; preds = %5
%105 = load ptr, ptr %11, align 8
%106 = getelementptr inbounds i32, ptr %105, i64 6
%107 = load i32, ptr %106, align 4
%108 = and i32 %107, 15
%109 = load i32, ptr %10, align 4
%110 = shl i32 %109, 4
%111 = or i32 %108, %110
%112 = load ptr, ptr %11, align 8
%113 = getelementptr inbounds i32, ptr %112, i64 6
store i32 %111, ptr %113, align 4
%114 = load ptr, ptr %11, align 8
%115 = getelementptr inbounds i32, ptr %114, i64 7
%116 = load i32, ptr %115, align 4
%117 = and i32 %116, 192
%118 = load i32, ptr %10, align 4
%119 = lshr i32 %118, 4
%120 = or i32 %117, %119
%121 = load ptr, ptr %11, align 8
%122 = getelementptr inbounds i32, ptr %121, i64 7
store i32 %120, ptr %122, align 4
br label %155
123: ; preds = %5
%124 = load ptr, ptr %11, align 8
%125 = getelementptr inbounds i32, ptr %124, i64 6
%126 = load i32, ptr %125, align 4
%127 = and i32 %126, 240
%128 = load i32, ptr %10, align 4
%129 = lshr i32 %128, 6
%130 = or i32 %127, %129
%131 = load ptr, ptr %11, align 8
%132 = getelementptr inbounds i32, ptr %131, i64 6
store i32 %130, ptr %132, align 4
%133 = load ptr, ptr %11, align 8
%134 = getelementptr inbounds i32, ptr %133, i64 9
%135 = load i32, ptr %134, align 4
%136 = and i32 %135, 3
%137 = load i32, ptr %10, align 4
%138 = shl i32 %137, 2
%139 = or i32 %136, %138
%140 = load ptr, ptr %11, align 8
%141 = getelementptr inbounds i32, ptr %140, i64 9
store i32 %139, ptr %141, align 4
br label %155
142: ; preds = %5
%143 = load i32, ptr %10, align 4
%144 = load ptr, ptr %11, align 8
%145 = getelementptr inbounds i32, ptr %144, i64 8
store i32 %143, ptr %145, align 4
%146 = load ptr, ptr %11, align 8
%147 = getelementptr inbounds i32, ptr %146, i64 9
%148 = load i32, ptr %147, align 4
%149 = and i32 %148, 252
%150 = load i32, ptr %10, align 4
%151 = lshr i32 %150, 8
%152 = or i32 %149, %151
%153 = load ptr, ptr %11, align 8
%154 = getelementptr inbounds i32, ptr %153, i64 9
store i32 %152, ptr %154, align 4
br label %155
155: ; preds = %142, %123, %104, %90, %77, %58, %39, %25, %5
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpveu1k4fo.c'
source_filename = "/tmp/tmpveu1k4fo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @breakSingleXOR(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca double, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca double, align 8
%10 = alloca double, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
store double 0.000000e+00, ptr %6, align 8
%11 = load i32, ptr %4, align 4
%12 = call ptr @malloc(i32 noundef %11)
store ptr %12, ptr %7, align 8
store i32 0, ptr %8, align 4
br label %13
13: ; preds = %32, %2
%14 = load i32, ptr %8, align 4
%15 = icmp slt i32 %14, 255
br i1 %15, label %16, label %35
16: ; preds = %13
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %4, align 4
%19 = load i32, ptr %8, align 4
%20 = load ptr, ptr %7, align 8
%21 = call i32 @xorSingleValueInPlace(ptr noundef %17, i32 noundef %18, i32 noundef %19, ptr noundef %20)
%22 = load ptr, ptr %7, align 8
%23 = load i32, ptr %4, align 4
%24 = call double @score(ptr noundef %22, i32 noundef %23)
store double %24, ptr %9, align 8
%25 = load double, ptr %9, align 8
%26 = load double, ptr %6, align 8
%27 = fcmp ogt double %25, %26
br i1 %27, label %28, label %31
28: ; preds = %16
%29 = load i32, ptr %8, align 4
store i32 %29, ptr %5, align 4
%30 = load double, ptr %9, align 8
store double %30, ptr %6, align 8
br label %31
31: ; preds = %28, %16
br label %32
32: ; preds = %31
%33 = load i32, ptr %8, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %8, align 4
br label %13, !llvm.loop !6
35: ; preds = %13
%36 = load ptr, ptr %3, align 8
%37 = load i32, ptr %4, align 4
%38 = load ptr, ptr %7, align 8
%39 = call i32 @xorSingleValueInPlace(ptr noundef %36, i32 noundef %37, i32 noundef 255, ptr noundef %38)
%40 = load ptr, ptr %7, align 8
%41 = load i32, ptr %4, align 4
%42 = call double @score(ptr noundef %40, i32 noundef %41)
store double %42, ptr %10, align 8
%43 = load double, ptr %10, align 8
%44 = load double, ptr %6, align 8
%45 = fcmp ogt double %43, %44
br i1 %45, label %46, label %48
46: ; preds = %35
store i32 255, ptr %5, align 4
%47 = load double, ptr %10, align 8
store double %47, ptr %6, align 8
br label %48
48: ; preds = %46, %35
%49 = load ptr, ptr %3, align 8
%50 = load i32, ptr %4, align 4
%51 = load i32, ptr %5, align 4
%52 = load ptr, ptr %7, align 8
%53 = call i32 @xorSingleValueInPlace(ptr noundef %49, i32 noundef %50, i32 noundef %51, ptr noundef %52)
%54 = load ptr, ptr %7, align 8
ret ptr %54
}
declare ptr @malloc(i32 noundef) #1
declare i32 @xorSingleValueInPlace(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare double @score(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpveu1k4fo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @breakSingleXOR(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca double, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca double, align 8
%10 = alloca double, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
store double 0.000000e+00, ptr %6, align 8
%11 = load i32, ptr %4, align 4
%12 = call ptr @malloc(i32 noundef %11)
store ptr %12, ptr %7, align 8
store i32 0, ptr %8, align 4
%13 = load i32, ptr %8, align 4
%14 = icmp slt i32 %13, 255
br i1 %14, label %.lr.ph, label %36
.lr.ph: ; preds = %2
br label %15
15: ; preds = %.lr.ph, %31
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %8, align 4
%19 = load ptr, ptr %7, align 8
%20 = call i32 @xorSingleValueInPlace(ptr noundef %16, i32 noundef %17, i32 noundef %18, ptr noundef %19)
%21 = load ptr, ptr %7, align 8
%22 = load i32, ptr %4, align 4
%23 = call double @score(ptr noundef %21, i32 noundef %22)
store double %23, ptr %9, align 8
%24 = load double, ptr %9, align 8
%25 = load double, ptr %6, align 8
%26 = fcmp ogt double %24, %25
br i1 %26, label %27, label %30
27: ; preds = %15
%28 = load i32, ptr %8, align 4
store i32 %28, ptr %5, align 4
%29 = load double, ptr %9, align 8
store double %29, ptr %6, align 8
br label %30
30: ; preds = %27, %15
br label %31
31: ; preds = %30
%32 = load i32, ptr %8, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %8, align 4
%34 = load i32, ptr %8, align 4
%35 = icmp slt i32 %34, 255
br i1 %35, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %36
36: ; preds = %._crit_edge, %2
%37 = load ptr, ptr %3, align 8
%38 = load i32, ptr %4, align 4
%39 = load ptr, ptr %7, align 8
%40 = call i32 @xorSingleValueInPlace(ptr noundef %37, i32 noundef %38, i32 noundef 255, ptr noundef %39)
%41 = load ptr, ptr %7, align 8
%42 = load i32, ptr %4, align 4
%43 = call double @score(ptr noundef %41, i32 noundef %42)
store double %43, ptr %10, align 8
%44 = load double, ptr %10, align 8
%45 = load double, ptr %6, align 8
%46 = fcmp ogt double %44, %45
br i1 %46, label %47, label %49
47: ; preds = %36
store i32 255, ptr %5, align 4
%48 = load double, ptr %10, align 8
store double %48, ptr %6, align 8
br label %49
49: ; preds = %47, %36
%50 = load ptr, ptr %3, align 8
%51 = load i32, ptr %4, align 4
%52 = load i32, ptr %5, align 4
%53 = load ptr, ptr %7, align 8
%54 = call i32 @xorSingleValueInPlace(ptr noundef %50, i32 noundef %51, i32 noundef %52, ptr noundef %53)
%55 = load ptr, ptr %7, align 8
ret ptr %55
}
declare ptr @malloc(i32 noundef) #1
declare i32 @xorSingleValueInPlace(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare double @score(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp45k4rf4o.c'
source_filename = "/tmp/tmp45k4rf4o.c"
target datalayout = "e-m:e-p270: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/tmp45k4rf4o.c"
target datalayout = "e-m:e-p270: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/tmp6int3f7v.c'
source_filename = "/tmp/tmp6int3f7v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"hello.txt\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"a+\00", align 1
@.str.2 = private unnamed_addr constant [91 x i8] c"pid = %d, %ld, a's addr = %p [0x%lx : %ld], p point addr = %p q's addr = %p [0x%lx : %ld]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @test() #0 {
%1 = alloca i64, align 8
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store volatile i64 1, ptr %1, align 8
store ptr null, ptr %2, align 8
%7 = call i64 @malloc(i32 noundef 8)
%8 = inttoptr i64 %7 to ptr
store ptr %8, ptr %2, align 8
%9 = load ptr, ptr %2, align 8
store i64 1, ptr %9, align 8
%10 = load ptr, ptr %2, align 8
%11 = ptrtoint ptr %10 to i64
%12 = call i64 @mem_addr_vir2phy(i64 noundef %11)
store i64 %12, ptr %3, align 8
%13 = ptrtoint ptr %1 to i64
%14 = call i64 @mem_addr_vir2phy(i64 noundef %13)
store i64 %14, ptr %4, align 8
%15 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %15, ptr %5, align 8
store i64 0, ptr %6, align 8
br label %16
16: ; preds = %0, %16
%17 = load ptr, ptr %5, align 8
%18 = call i32 (...) @getpid()
%19 = load i64, ptr %6, align 8
%20 = load i64, ptr %4, align 8
%21 = load volatile i64, ptr %1, align 8
%22 = load ptr, ptr %2, align 8
%23 = load i64, ptr %3, align 8
%24 = load ptr, ptr %2, align 8
%25 = load i64, ptr %24, align 8
%26 = call i32 @fprintf(ptr noundef %17, ptr noundef @.str.2, i32 noundef %18, i64 noundef %19, ptr noundef %1, i64 noundef %20, i64 noundef %21, ptr noundef %2, ptr noundef %22, i64 noundef %23, i64 noundef %25)
%27 = load ptr, ptr %5, align 8
%28 = call i32 @fflush(ptr noundef %27)
%29 = call i32 @sleep(i32 noundef 1)
%30 = load i64, ptr %6, align 8
%31 = add nsw i64 %30, 1
store i64 %31, ptr %6, align 8
br label %16
}
declare i64 @malloc(i32 noundef) #1
declare i64 @mem_addr_vir2phy(i64 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef) #1
declare i32 @getpid(...) #1
declare i32 @fflush(ptr noundef) #1
declare i32 @sleep(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/tmp6int3f7v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"hello.txt\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"a+\00", align 1
@.str.2 = private unnamed_addr constant [91 x i8] c"pid = %d, %ld, a's addr = %p [0x%lx : %ld], p point addr = %p q's addr = %p [0x%lx : %ld]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @test() #0 {
%1 = alloca i64, align 8
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store volatile i64 1, ptr %1, align 8
store ptr null, ptr %2, align 8
%7 = call i64 @malloc(i32 noundef 8)
%8 = inttoptr i64 %7 to ptr
store ptr %8, ptr %2, align 8
%9 = load ptr, ptr %2, align 8
store i64 1, ptr %9, align 8
%10 = load ptr, ptr %2, align 8
%11 = ptrtoint ptr %10 to i64
%12 = call i64 @mem_addr_vir2phy(i64 noundef %11)
store i64 %12, ptr %3, align 8
%13 = ptrtoint ptr %1 to i64
%14 = call i64 @mem_addr_vir2phy(i64 noundef %13)
store i64 %14, ptr %4, align 8
%15 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %15, ptr %5, align 8
store i64 0, ptr %6, align 8
br label %16
16: ; preds = %16, %0
%17 = load ptr, ptr %5, align 8
%18 = call i32 (...) @getpid()
%19 = load i64, ptr %6, align 8
%20 = load i64, ptr %4, align 8
%21 = load volatile i64, ptr %1, align 8
%22 = load ptr, ptr %2, align 8
%23 = load i64, ptr %3, align 8
%24 = load ptr, ptr %2, align 8
%25 = load i64, ptr %24, align 8
%26 = call i32 @fprintf(ptr noundef %17, ptr noundef @.str.2, i32 noundef %18, i64 noundef %19, ptr noundef %1, i64 noundef %20, i64 noundef %21, ptr noundef %2, ptr noundef %22, i64 noundef %23, i64 noundef %25)
%27 = load ptr, ptr %5, align 8
%28 = call i32 @fflush(ptr noundef %27)
%29 = call i32 @sleep(i32 noundef 1)
%30 = load i64, ptr %6, align 8
%31 = add nsw i64 %30, 1
store i64 %31, ptr %6, align 8
br label %16
}
declare i64 @malloc(i32 noundef) #1
declare i64 @mem_addr_vir2phy(i64 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef) #1
declare i32 @getpid(...) #1
declare i32 @fflush(ptr noundef) #1
declare i32 @sleep(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/tmpwlcyo9rn.c'
source_filename = "/tmp/tmpwlcyo9rn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"fncval.dat\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c"Data file fncval.dat not found\0A\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"Elliptic Integral Third Kind RJ\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"Data not found in fncval.dat\0A\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"%d %*s\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"\0A%s\0A\00", align 1
@.str.7 = private unnamed_addr constant [27 x i8] c"%7s %8s %8s %8s %16s %20s\0A\00", align 1
@.str.8 = private unnamed_addr constant [2 x i8] c"x\00", align 1
@.str.9 = private unnamed_addr constant [2 x i8] c"y\00", align 1
@.str.10 = private unnamed_addr constant [2 x i8] c"z\00", align 1
@.str.11 = private unnamed_addr constant [2 x i8] c"p\00", align 1
@.str.12 = private unnamed_addr constant [7 x i8] c"actual\00", align 1
@.str.13 = private unnamed_addr constant [12 x i8] c"rj(x,y,z,p)\00", align 1
@.str.14 = private unnamed_addr constant [15 x i8] c"%f %f %f %f %f\00", align 1
@.str.15 = private unnamed_addr constant [39 x i8] c"%8.2f %8.2f %8.2f %8.2f %18.6e %18.6e\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [80 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%11 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %11, ptr %10, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %15
13: ; preds = %0
%14 = call i32 @nrerror(ptr noundef @.str.2)
br label %15
15: ; preds = %13, %0
%16 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%17 = load ptr, ptr %10, align 8
%18 = call i32 @fgets(ptr noundef %16, i32 noundef 80, ptr noundef %17)
br label %19
19: ; preds = %32, %15
%20 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%21 = call i64 @strncmp(ptr noundef %20, ptr noundef @.str.3, i32 noundef 31)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %33
23: ; preds = %19
%24 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%25 = load ptr, ptr %10, align 8
%26 = call i32 @fgets(ptr noundef %24, i32 noundef 80, ptr noundef %25)
%27 = load ptr, ptr %10, align 8
%28 = call i64 @feof(ptr noundef %27)
%29 = icmp ne i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %23
%31 = call i32 @nrerror(ptr noundef @.str.4)
br label %32
32: ; preds = %30, %23
br label %19, !llvm.loop !6
33: ; preds = %19
%34 = load ptr, ptr %10, align 8
%35 = call i32 (ptr, ptr, ...) @fscanf(ptr noundef %34, ptr noundef @.str.5, ptr noundef %4)
%36 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %36)
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.8, ptr noundef @.str.9, ptr noundef @.str.10, ptr noundef @.str.11, ptr noundef @.str.12, ptr noundef @.str.13)
store i32 1, ptr %3, align 4
br label %39
39: ; preds = %62, %33
%40 = load i32, ptr %3, align 4
%41 = load i32, ptr %4, align 4
%42 = icmp sle i32 %40, %41
br i1 %42, label %43, label %65
43: ; preds = %39
%44 = load ptr, ptr %10, align 8
%45 = call i32 (ptr, ptr, ...) @fscanf(ptr noundef %44, ptr noundef @.str.14, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %5, ptr noundef %6)
%46 = load float, ptr %7, align 4
%47 = fpext float %46 to double
%48 = load float, ptr %8, align 4
%49 = fpext float %48 to double
%50 = load float, ptr %9, align 4
%51 = fpext float %50 to double
%52 = load float, ptr %5, align 4
%53 = fpext float %52 to double
%54 = load float, ptr %6, align 4
%55 = fpext float %54 to double
%56 = load float, ptr %7, align 4
%57 = load float, ptr %8, align 4
%58 = load float, ptr %9, align 4
%59 = load float, ptr %5, align 4
%60 = call double @rj(float noundef %56, float noundef %57, float noundef %58, float noundef %59)
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, double noundef %47, double noundef %49, double noundef %51, double noundef %53, double noundef %55, double noundef %60)
br label %62
62: ; preds = %43
%63 = load i32, ptr %3, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %3, align 4
br label %39, !llvm.loop !8
65: ; preds = %39
%66 = load ptr, ptr %10, align 8
%67 = call i32 @fclose(ptr noundef %66)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @nrerror(ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @feof(ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @rj(float noundef, float noundef, float noundef, float noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwlcyo9rn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"fncval.dat\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c"Data file fncval.dat not found\0A\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"Elliptic Integral Third Kind RJ\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"Data not found in fncval.dat\0A\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"%d %*s\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"\0A%s\0A\00", align 1
@.str.7 = private unnamed_addr constant [27 x i8] c"%7s %8s %8s %8s %16s %20s\0A\00", align 1
@.str.8 = private unnamed_addr constant [2 x i8] c"x\00", align 1
@.str.9 = private unnamed_addr constant [2 x i8] c"y\00", align 1
@.str.10 = private unnamed_addr constant [2 x i8] c"z\00", align 1
@.str.11 = private unnamed_addr constant [2 x i8] c"p\00", align 1
@.str.12 = private unnamed_addr constant [7 x i8] c"actual\00", align 1
@.str.13 = private unnamed_addr constant [12 x i8] c"rj(x,y,z,p)\00", align 1
@.str.14 = private unnamed_addr constant [15 x i8] c"%f %f %f %f %f\00", align 1
@.str.15 = private unnamed_addr constant [39 x i8] c"%8.2f %8.2f %8.2f %8.2f %18.6e %18.6e\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [80 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%11 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %11, ptr %10, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %15
13: ; preds = %0
%14 = call i32 @nrerror(ptr noundef @.str.2)
br label %15
15: ; preds = %13, %0
%16 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%17 = load ptr, ptr %10, align 8
%18 = call i32 @fgets(ptr noundef %16, i32 noundef 80, ptr noundef %17)
%19 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%20 = call i64 @strncmp(ptr noundef %19, ptr noundef @.str.3, i32 noundef 31)
%21 = icmp ne i64 %20, 0
br i1 %21, label %.lr.ph, label %34
.lr.ph: ; preds = %15
br label %22
22: ; preds = %.lr.ph, %31
%23 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%24 = load ptr, ptr %10, align 8
%25 = call i32 @fgets(ptr noundef %23, i32 noundef 80, ptr noundef %24)
%26 = load ptr, ptr %10, align 8
%27 = call i64 @feof(ptr noundef %26)
%28 = icmp ne i64 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %22
%30 = call i32 @nrerror(ptr noundef @.str.4)
br label %31
31: ; preds = %29, %22
%32 = call i64 @strncmp(ptr noundef %19, ptr noundef @.str.3, i32 noundef 31)
%33 = icmp ne i64 %32, 0
br i1 %33, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %34
34: ; preds = %._crit_edge, %15
%35 = load ptr, ptr %10, align 8
%36 = call i32 (ptr, ptr, ...) @fscanf(ptr noundef %35, ptr noundef @.str.5, ptr noundef %4)
%37 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %37)
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.8, ptr noundef @.str.9, ptr noundef @.str.10, ptr noundef @.str.11, ptr noundef @.str.12, ptr noundef @.str.13)
store i32 1, ptr %3, align 4
%40 = load i32, ptr %3, align 4
%41 = load i32, ptr %4, align 4
%42 = icmp sle i32 %40, %41
br i1 %42, label %.lr.ph2, label %68
.lr.ph2: ; preds = %34
br label %43
43: ; preds = %.lr.ph2, %62
%44 = load ptr, ptr %10, align 8
%45 = call i32 (ptr, ptr, ...) @fscanf(ptr noundef %44, ptr noundef @.str.14, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %5, ptr noundef %6)
%46 = load float, ptr %7, align 4
%47 = fpext float %46 to double
%48 = load float, ptr %8, align 4
%49 = fpext float %48 to double
%50 = load float, ptr %9, align 4
%51 = fpext float %50 to double
%52 = load float, ptr %5, align 4
%53 = fpext float %52 to double
%54 = load float, ptr %6, align 4
%55 = fpext float %54 to double
%56 = load float, ptr %7, align 4
%57 = load float, ptr %8, align 4
%58 = load float, ptr %9, align 4
%59 = load float, ptr %5, align 4
%60 = call double @rj(float noundef %56, float noundef %57, float noundef %58, float noundef %59)
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, double noundef %47, double noundef %49, double noundef %51, double noundef %53, double noundef %55, double noundef %60)
br label %62
62: ; preds = %43
%63 = load i32, ptr %3, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %3, align 4
%65 = load i32, ptr %3, align 4
%66 = load i32, ptr %4, align 4
%67 = icmp sle i32 %65, %66
br i1 %67, label %43, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %62
br label %68
68: ; preds = %._crit_edge3, %34
%69 = load ptr, ptr %10, align 8
%70 = call i32 @fclose(ptr noundef %69)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @nrerror(ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @feof(ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @rj(float noundef, float noundef, float noundef, float noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp9d3vb3bu.c'
source_filename = "/tmp/tmp9d3vb3bu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i64 }
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [18 x i8] c"Error: %s:%d: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [141 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/insertion/SEED_LAB/refs/heads/master/lab4/server.c\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"creating a socket\00", align 1
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_REUSEADDR = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [35 x i8] c"setting socket option SO_REUSEADDR\00", align 1
@AF_INET = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [18 x i8] c"binding to socket\00", align 1
@.str.5 = private unnamed_addr constant [20 x i8] c"listening on socket\00", align 1
@SIGCHLD = dso_local global i32 0, align 4
@SIG_IGN = dso_local global i32 0, align 4
@SIGPIPE = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [6 x i8] c"/jail\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"/\00", align 1
@AF_UNIX = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [11 x i8] c"socketpair\00", align 1
@.str.9 = private unnamed_addr constant [9 x i8] c"./filesv\00", align 1
@.str.10 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.11 = private unnamed_addr constant [14 x i8] c"file fd = %s\0A\00", align 1
@.str.12 = private unnamed_addr constant [7 x i8] c"execve\00", align 1
@.str.13 = private unnamed_addr constant [44 x i8] c"the first web service launched (filesv)...\0A\00", align 1
@.str.14 = private unnamed_addr constant [9 x i8] c"./banksv\00", align 1
@.str.15 = private unnamed_addr constant [14 x i8] c"bank fd = %s\0A\00", align 1
@.str.16 = private unnamed_addr constant [45 x i8] c"the second web service launched (banksv)...\0A\00", align 1
@.str.17 = private unnamed_addr constant [8 x i8] c"./httpd\00", align 1
@.str.18 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.19 = private unnamed_addr constant [41 x i8] c"the http dispatcher service launched...\0A\00", align 1
@.str.20 = private unnamed_addr constant [8 x i8] c"send fd\00", align 1
@.str.21 = private unnamed_addr constant [15 x i8] c"sending %s...\0A\00", align 1
@.str.22 = private unnamed_addr constant [28 x i8] c"accepting client connection\00", align 1
@.str.23 = private unnamed_addr constant [35 x i8] c"Parent process client_sockfd = %d\0A\00", align 1
@.str.24 = private unnamed_addr constant [44 x i8] c"server: accepting a client from %s port %d\0A\00", align 1
@.str.25 = private unnamed_addr constant [14 x i8] c"hello, world\0A\00", align 1
@.str.26 = private unnamed_addr constant [33 x i8] c"sending a socket to the client:\0A\00", align 1
@.str.27 = private unnamed_addr constant [13 x i8] c"send sock fd\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca [1024 x i8], align 16
%11 = alloca %struct.sockaddr_in, align 8
%12 = alloca %struct.sockaddr_in, align 8
%13 = alloca i32, align 4
%14 = alloca [2 x i32], align 4
%15 = alloca [32 x i8], align 16
%16 = alloca ptr, align 8
%17 = alloca [3 x ptr], align 16
%18 = alloca [2 x i32], align 4
%19 = alloca [32 x i8], align 16
%20 = alloca ptr, align 8
%21 = alloca [3 x ptr], align 16
%22 = alloca [2 x i32], align 4
%23 = alloca [32 x i8], align 16
%24 = alloca ptr, align 8
%25 = alloca [3 x ptr], align 16
%26 = alloca [32 x i8], align 16
%27 = alloca [32 x i8], align 16
%28 = alloca i32, align 4
%29 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 80, ptr %8, align 4
%30 = load i32, ptr %4, align 4
%31 = icmp sgt i32 %30, 1
br i1 %31, label %32, label %37
32: ; preds = %2
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 1
%35 = load ptr, ptr %34, align 8
%36 = call i32 @atoi(ptr noundef %35)
store i32 %36, ptr %8, align 4
br label %37
37: ; preds = %32, %2
%38 = load i32, ptr @PF_INET, align 4
%39 = load i32, ptr @SOCK_STREAM, align 4
%40 = call i32 @socket(i32 noundef %38, i32 noundef %39, i32 noundef 0)
store i32 %40, ptr %6, align 4
%41 = icmp eq i32 %40, -1
br i1 %41, label %42, label %48
42: ; preds = %37
br label %43
43: ; preds = %42
%44 = load i32, ptr @stderr, align 4
%45 = call i32 @fprintf(i32 noundef %44, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 38, ptr noundef @.str.2)
%46 = call i32 @exit(i32 noundef 0) #4
unreachable
47: ; No predecessors!
br label %48
48: ; preds = %47, %37
%49 = load i32, ptr %6, align 4
%50 = load i32, ptr @SOL_SOCKET, align 4
%51 = load i32, ptr @SO_REUSEADDR, align 4
%52 = call i32 @setsockopt(i32 noundef %49, i32 noundef %50, i32 noundef %51, ptr noundef %9, i32 noundef 4)
%53 = icmp eq i32 %52, -1
br i1 %53, label %54, label %60
54: ; preds = %48
br label %55
55: ; preds = %54
%56 = load i32, ptr @stderr, align 4
%57 = call i32 @fprintf(i32 noundef %56, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 42, ptr noundef @.str.3)
%58 = call i32 @exit(i32 noundef 0) #4
unreachable
59: ; No predecessors!
br label %60
60: ; preds = %59, %48
%61 = call i32 @memset(ptr noundef %11, i8 noundef signext 0, i32 noundef 24)
%62 = load i32, ptr @AF_INET, align 4
%63 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 2
store i32 %62, ptr %63, align 8
%64 = load i32, ptr %8, align 4
%65 = call i32 @htons(i32 noundef %64)
%66 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 0
store i32 %65, ptr %66, align 8
%67 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 1
%68 = getelementptr inbounds %struct.TYPE_2__, ptr %67, i32 0, i32 0
store i64 0, ptr %68, align 8
%69 = load i32, ptr %6, align 4
%70 = call i32 @bind(i32 noundef %69, ptr noundef %11, i32 noundef 4)
%71 = icmp eq i32 %70, -1
br i1 %71, label %72, label %78
72: ; preds = %60
br label %73
73: ; preds = %72
%74 = load i32, ptr @stderr, align 4
%75 = call i32 @fprintf(i32 noundef %74, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 51, ptr noundef @.str.4)
%76 = call i32 @exit(i32 noundef 0) #4
unreachable
77: ; No predecessors!
br label %78
78: ; preds = %77, %60
%79 = load i32, ptr %6, align 4
%80 = call i32 @listen(i32 noundef %79, i32 noundef 1000)
%81 = icmp eq i32 %80, -1
br i1 %81, label %82, label %88
82: ; preds = %78
br label %83
83: ; preds = %82
%84 = load i32, ptr @stderr, align 4
%85 = call i32 @fprintf(i32 noundef %84, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 54, ptr noundef @.str.5)
%86 = call i32 @exit(i32 noundef 0) #4
unreachable
87: ; No predecessors!
br label %88
88: ; preds = %87, %78
%89 = load i32, ptr @SIGCHLD, align 4
%90 = load i32, ptr @SIG_IGN, align 4
%91 = call i32 @signal(i32 noundef %89, i32 noundef %90)
%92 = load i32, ptr @SIGPIPE, align 4
%93 = load i32, ptr @SIG_IGN, align 4
%94 = call i32 @signal(i32 noundef %92, i32 noundef %93)
%95 = call i32 @chroot(ptr noundef @.str.6)
%96 = call i32 @chdir(ptr noundef @.str.7)
%97 = load i32, ptr @AF_UNIX, align 4
%98 = load i32, ptr @SOCK_STREAM, align 4
%99 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
%100 = call i64 @socketpair(i32 noundef %97, i32 noundef %98, i32 noundef 0, ptr noundef %99)
%101 = icmp ne i64 %100, 0
br i1 %101, label %102, label %108
102: ; preds = %88
br label %103
103: ; preds = %102
%104 = load i32, ptr @stderr, align 4
%105 = call i32 @fprintf(i32 noundef %104, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 74, ptr noundef @.str.8)
%106 = call i32 @exit(i32 noundef 0) #4
unreachable
107: ; No predecessors!
br label %108
108: ; preds = %107, %88
%109 = call i32 (...) @fork()
store i32 %109, ptr %13, align 4
%110 = icmp eq i32 %109, 0
br i1 %110, label %111, label %139
111: ; preds = %108
%112 = call i32 @setresgid(i32 noundef 1100, i32 noundef 1100, i32 noundef 1100)
%113 = call i32 @setresuid(i32 noundef 1100, i32 noundef 1100, i32 noundef 1100)
%114 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 1
%115 = load i32, ptr %114, align 4
%116 = call i32 @close(i32 noundef %115)
call void @llvm.memset.p0.i64(ptr align 16 %15, i8 0, i64 32, i1 false)
store ptr @.str.9, ptr %16, align 8
%117 = getelementptr inbounds [32 x i8], ptr %15, i64 0, i64 0
%118 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
%119 = load i32, ptr %118, align 4
%120 = call i32 @sprintf(ptr noundef %117, ptr noundef @.str.10, i32 noundef %119)
%121 = getelementptr inbounds [3 x ptr], ptr %17, i64 0, i64 0
%122 = load ptr, ptr %16, align 8
store ptr %122, ptr %121, align 8
%123 = getelementptr inbounds ptr, ptr %121, i64 1
%124 = getelementptr inbounds [32 x i8], ptr %15, i64 0, i64 0
store ptr %124, ptr %123, align 8
%125 = getelementptr inbounds ptr, ptr %123, i64 1
store ptr null, ptr %125, align 8
%126 = getelementptr inbounds [32 x i8], ptr %15, i64 0, i64 0
%127 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef %126)
%128 = load ptr, ptr %16, align 8
%129 = getelementptr inbounds [3 x ptr], ptr %17, i64 0, i64 0
%130 = call i32 @execv(ptr noundef %128, ptr noundef %129)
%131 = icmp eq i32 %130, -1
br i1 %131, label %132, label %138
132: ; preds = %111
br label %133
133: ; preds = %132
%134 = load i32, ptr @stderr, align 4
%135 = call i32 @fprintf(i32 noundef %134, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 97, ptr noundef @.str.12)
%136 = call i32 @exit(i32 noundef 0) #4
unreachable
137: ; No predecessors!
br label %138
138: ; preds = %137, %111
br label %139
139: ; preds = %138, %108
%140 = call i32 @sleep(i32 noundef 1)
%141 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
%142 = load i32, ptr %141, align 4
%143 = call i32 @close(i32 noundef %142)
%144 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%145 = load i32, ptr @AF_UNIX, align 4
%146 = load i32, ptr @SOCK_STREAM, align 4
%147 = getelementptr inbounds [2 x i32], ptr %18, i64 0, i64 0
%148 = call i64 @socketpair(i32 noundef %145, i32 noundef %146, i32 noundef 0, ptr noundef %147)
%149 = icmp ne i64 %148, 0
br i1 %149, label %150, label %156
150: ; preds = %139
br label %151
151: ; preds = %150
%152 = load i32, ptr @stderr, align 4
%153 = call i32 @fprintf(i32 noundef %152, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 107, ptr noundef @.str.8)
%154 = call i32 @exit(i32 noundef 0) #4
unreachable
155: ; No predecessors!
br label %156
156: ; preds = %155, %139
%157 = call i32 (...) @fork()
store i32 %157, ptr %13, align 4
%158 = icmp eq i32 %157, 0
br i1 %158, label %159, label %187
159: ; preds = %156
%160 = call i32 @setresgid(i32 noundef 1200, i32 noundef 1200, i32 noundef 1200)
%161 = call i32 @setresuid(i32 noundef 1200, i32 noundef 1200, i32 noundef 1200)
%162 = getelementptr inbounds [2 x i32], ptr %18, i64 0, i64 1
%163 = load i32, ptr %162, align 4
%164 = call i32 @close(i32 noundef %163)
call void @llvm.memset.p0.i64(ptr align 16 %19, i8 0, i64 32, i1 false)
store ptr @.str.14, ptr %20, align 8
%165 = getelementptr inbounds [32 x i8], ptr %19, i64 0, i64 0
%166 = getelementptr inbounds [2 x i32], ptr %18, i64 0, i64 0
%167 = load i32, ptr %166, align 4
%168 = call i32 @sprintf(ptr noundef %165, ptr noundef @.str.10, i32 noundef %167)
%169 = getelementptr inbounds [3 x ptr], ptr %21, i64 0, i64 0
%170 = load ptr, ptr %20, align 8
store ptr %170, ptr %169, align 8
%171 = getelementptr inbounds ptr, ptr %169, i64 1
%172 = getelementptr inbounds [32 x i8], ptr %19, i64 0, i64 0
store ptr %172, ptr %171, align 8
%173 = getelementptr inbounds ptr, ptr %171, i64 1
store ptr null, ptr %173, align 8
%174 = getelementptr inbounds [32 x i8], ptr %19, i64 0, i64 0
%175 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, ptr noundef %174)
%176 = load ptr, ptr %20, align 8
%177 = getelementptr inbounds [3 x ptr], ptr %21, i64 0, i64 0
%178 = call i32 @execv(ptr noundef %176, ptr noundef %177)
%179 = icmp eq i32 %178, -1
br i1 %179, label %180, label %186
180: ; preds = %159
br label %181
181: ; preds = %180
%182 = load i32, ptr @stderr, align 4
%183 = call i32 @fprintf(i32 noundef %182, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 125, ptr noundef @.str.12)
%184 = call i32 @exit(i32 noundef 0) #4
unreachable
185: ; No predecessors!
br label %186
186: ; preds = %185, %159
br label %187
187: ; preds = %186, %156
%188 = call i32 @sleep(i32 noundef 1)
%189 = getelementptr inbounds [2 x i32], ptr %18, i64 0, i64 0
%190 = load i32, ptr %189, align 4
%191 = call i32 @close(i32 noundef %190)
%192 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
%193 = load i32, ptr @AF_UNIX, align 4
%194 = load i32, ptr @SOCK_STREAM, align 4
%195 = getelementptr inbounds [2 x i32], ptr %22, i64 0, i64 0
%196 = call i64 @socketpair(i32 noundef %193, i32 noundef %194, i32 noundef 0, ptr noundef %195)
%197 = icmp ne i64 %196, 0
br i1 %197, label %198, label %204
198: ; preds = %187
br label %199
199: ; preds = %198
%200 = load i32, ptr @stderr, align 4
%201 = call i32 @fprintf(i32 noundef %200, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 135, ptr noundef @.str.8)
%202 = call i32 @exit(i32 noundef 0) #4
unreachable
203: ; No predecessors!
br label %204
204: ; preds = %203, %187
%205 = call i32 (...) @fork()
store i32 %205, ptr %13, align 4
%206 = icmp eq i32 %205, 0
br i1 %206, label %207, label %235
207: ; preds = %204
%208 = call i32 @setresgid(i32 noundef 1300, i32 noundef 1300, i32 noundef 1300)
%209 = call i32 @setresuid(i32 noundef 1300, i32 noundef 1300, i32 noundef 1300)
%210 = getelementptr inbounds [2 x i32], ptr %22, i64 0, i64 1
%211 = load i32, ptr %210, align 4
%212 = call i32 @close(i32 noundef %211)
call void @llvm.memset.p0.i64(ptr align 16 %23, i8 0, i64 32, i1 false)
store ptr @.str.17, ptr %24, align 8
%213 = getelementptr inbounds [32 x i8], ptr %23, i64 0, i64 0
%214 = getelementptr inbounds [2 x i32], ptr %22, i64 0, i64 0
%215 = load i32, ptr %214, align 4
%216 = call i32 @sprintf(ptr noundef %213, ptr noundef @.str.10, i32 noundef %215)
%217 = getelementptr inbounds [3 x ptr], ptr %25, i64 0, i64 0
%218 = load ptr, ptr %24, align 8
store ptr %218, ptr %217, align 8
%219 = getelementptr inbounds ptr, ptr %217, i64 1
%220 = getelementptr inbounds [32 x i8], ptr %23, i64 0, i64 0
store ptr %220, ptr %219, align 8
%221 = getelementptr inbounds ptr, ptr %219, i64 1
store ptr null, ptr %221, align 8
%222 = getelementptr inbounds [32 x i8], ptr %23, i64 0, i64 0
%223 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, ptr noundef %222)
%224 = load ptr, ptr %24, align 8
%225 = getelementptr inbounds [3 x ptr], ptr %25, i64 0, i64 0
%226 = call i32 @execv(ptr noundef %224, ptr noundef %225)
%227 = icmp eq i32 %226, -1
br i1 %227, label %228, label %234
228: ; preds = %207
br label %229
229: ; preds = %228
%230 = load i32, ptr @stderr, align 4
%231 = call i32 @fprintf(i32 noundef %230, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 153, ptr noundef @.str.12)
%232 = call i32 @exit(i32 noundef 0) #4
unreachable
233: ; No predecessors!
br label %234
234: ; preds = %233, %207
br label %235
235: ; preds = %234, %204
%236 = call i32 @sleep(i32 noundef 1)
%237 = getelementptr inbounds [2 x i32], ptr %22, i64 0, i64 0
%238 = load i32, ptr %237, align 4
%239 = call i32 @close(i32 noundef %238)
%240 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
call void @llvm.memset.p0.i64(ptr align 16 %26, i8 0, i64 32, i1 false)
%241 = getelementptr inbounds [32 x i8], ptr %26, i64 0, i64 0
%242 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 1
%243 = load i32, ptr %242, align 4
%244 = call i32 @sprintf(ptr noundef %241, ptr noundef @.str.10, i32 noundef %243)
%245 = getelementptr inbounds [2 x i32], ptr %22, i64 0, i64 1
%246 = load i32, ptr %245, align 4
%247 = getelementptr inbounds [32 x i8], ptr %26, i64 0, i64 0
%248 = getelementptr inbounds [32 x i8], ptr %26, i64 0, i64 0
%249 = call i64 @strlen(ptr noundef %248)
%250 = add nsw i64 %249, 1
%251 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 1
%252 = load i32, ptr %251, align 4
%253 = call i32 @sendfd(i32 noundef %246, ptr noundef %247, i64 noundef %250, i32 noundef %252)
%254 = icmp eq i32 -1, %253
br i1 %254, label %255, label %261
255: ; preds = %235
br label %256
256: ; preds = %255
%257 = load i32, ptr @stderr, align 4
%258 = call i32 @fprintf(i32 noundef %257, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 164, ptr noundef @.str.20)
%259 = call i32 @exit(i32 noundef 0) #4
unreachable
260: ; No predecessors!
br label %261
261: ; preds = %260, %235
%262 = getelementptr inbounds [32 x i8], ptr %26, i64 0, i64 0
%263 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, ptr noundef %262)
call void @llvm.memset.p0.i64(ptr align 16 %27, i8 0, i64 32, i1 false)
%264 = getelementptr inbounds [32 x i8], ptr %27, i64 0, i64 0
%265 = getelementptr inbounds [2 x i32], ptr %18, i64 0, i64 1
%266 = load i32, ptr %265, align 4
%267 = call i32 @sprintf(ptr noundef %264, ptr noundef @.str.10, i32 noundef %266)
%268 = getelementptr inbounds [2 x i32], ptr %22, i64 0, i64 1
%269 = load i32, ptr %268, align 4
%270 = getelementptr inbounds [32 x i8], ptr %27, i64 0, i64 0
%271 = getelementptr inbounds [32 x i8], ptr %27, i64 0, i64 0
%272 = call i64 @strlen(ptr noundef %271)
%273 = add nsw i64 %272, 1
%274 = getelementptr inbounds [2 x i32], ptr %18, i64 0, i64 1
%275 = load i32, ptr %274, align 4
%276 = call i32 @sendfd(i32 noundef %269, ptr noundef %270, i64 noundef %273, i32 noundef %275)
%277 = icmp eq i32 -1, %276
br i1 %277, label %278, label %284
278: ; preds = %261
br label %279
279: ; preds = %278
%280 = load i32, ptr @stderr, align 4
%281 = call i32 @fprintf(i32 noundef %280, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 170, ptr noundef @.str.20)
%282 = call i32 @exit(i32 noundef 0) #4
unreachable
283: ; No predecessors!
br label %284
284: ; preds = %283, %261
%285 = getelementptr inbounds [32 x i8], ptr %27, i64 0, i64 0
%286 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, ptr noundef %285)
%287 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 1
%288 = load i32, ptr %287, align 4
%289 = call i32 @close(i32 noundef %288)
%290 = getelementptr inbounds [2 x i32], ptr %18, i64 0, i64 1
%291 = load i32, ptr %290, align 4
%292 = call i32 @close(i32 noundef %291)
br label %293
293: ; preds = %284, %330
%294 = load i32, ptr %6, align 4
%295 = call i32 @accept(i32 noundef %294, ptr noundef %12, ptr noundef %28)
store i32 %295, ptr %7, align 4
%296 = icmp eq i32 %295, -1
br i1 %296, label %297, label %303
297: ; preds = %293
br label %298
298: ; preds = %297
%299 = load i32, ptr @stderr, align 4
%300 = call i32 @fprintf(i32 noundef %299, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 182, ptr noundef @.str.22)
%301 = call i32 @exit(i32 noundef 0) #4
unreachable
302: ; No predecessors!
br label %303
303: ; preds = %302, %293
%304 = load i32, ptr %7, align 4
%305 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, i32 noundef %304)
%306 = getelementptr inbounds %struct.sockaddr_in, ptr %12, i32 0, i32 1
%307 = getelementptr inbounds %struct.TYPE_2__, ptr %306, i32 0, i32 0
%308 = load i64, ptr %307, align 8
%309 = call ptr @inet_ntoa(i64 %308)
%310 = getelementptr inbounds %struct.sockaddr_in, ptr %12, i32 0, i32 0
%311 = load i32, ptr %310, align 8
%312 = call i32 @ntohs(i32 noundef %311)
%313 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, ptr noundef %309, i32 noundef %312)
store ptr @.str.25, ptr %29, align 8
%314 = call i32 (ptr, ...) @printf(ptr noundef @.str.26)
%315 = getelementptr inbounds [2 x i32], ptr %22, i64 0, i64 1
%316 = load i32, ptr %315, align 4
%317 = load ptr, ptr %29, align 8
%318 = load ptr, ptr %29, align 8
%319 = call i64 @strlen(ptr noundef %318)
%320 = add nsw i64 %319, 1
%321 = load i32, ptr %7, align 4
%322 = call i32 @sendfd(i32 noundef %316, ptr noundef %317, i64 noundef %320, i32 noundef %321)
%323 = icmp eq i32 -1, %322
br i1 %323, label %324, label %330
324: ; preds = %303
br label %325
325: ; preds = %324
%326 = load i32, ptr @stderr, align 4
%327 = call i32 @fprintf(i32 noundef %326, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 197, ptr noundef @.str.27)
%328 = call i32 @exit(i32 noundef 0) #4
unreachable
329: ; No predecessors!
br label %330
330: ; preds = %329, %303
%331 = load i32, ptr %7, align 4
%332 = call i32 @close(i32 noundef %331)
br label %293
}
declare i32 @atoi(ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @signal(i32 noundef, i32 noundef) #1
declare i32 @chroot(ptr noundef) #1
declare i32 @chdir(ptr noundef) #1
declare i64 @socketpair(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fork(...) #1
declare i32 @setresgid(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @setresuid(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @execv(ptr noundef, ptr noundef) #1
declare i32 @sleep(i32 noundef) #1
declare i32 @sendfd(i32 noundef, ptr noundef, i64 noundef, i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @inet_ntoa(i64) #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" }
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 nounwind willreturn memory(argmem: write) }
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9d3vb3bu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i64 }
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [18 x i8] c"Error: %s:%d: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [141 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/insertion/SEED_LAB/refs/heads/master/lab4/server.c\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"creating a socket\00", align 1
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_REUSEADDR = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [35 x i8] c"setting socket option SO_REUSEADDR\00", align 1
@AF_INET = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [18 x i8] c"binding to socket\00", align 1
@.str.5 = private unnamed_addr constant [20 x i8] c"listening on socket\00", align 1
@SIGCHLD = dso_local global i32 0, align 4
@SIG_IGN = dso_local global i32 0, align 4
@SIGPIPE = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [6 x i8] c"/jail\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"/\00", align 1
@AF_UNIX = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [11 x i8] c"socketpair\00", align 1
@.str.9 = private unnamed_addr constant [9 x i8] c"./filesv\00", align 1
@.str.10 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.11 = private unnamed_addr constant [14 x i8] c"file fd = %s\0A\00", align 1
@.str.12 = private unnamed_addr constant [7 x i8] c"execve\00", align 1
@.str.13 = private unnamed_addr constant [44 x i8] c"the first web service launched (filesv)...\0A\00", align 1
@.str.14 = private unnamed_addr constant [9 x i8] c"./banksv\00", align 1
@.str.15 = private unnamed_addr constant [14 x i8] c"bank fd = %s\0A\00", align 1
@.str.16 = private unnamed_addr constant [45 x i8] c"the second web service launched (banksv)...\0A\00", align 1
@.str.17 = private unnamed_addr constant [8 x i8] c"./httpd\00", align 1
@.str.18 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.19 = private unnamed_addr constant [41 x i8] c"the http dispatcher service launched...\0A\00", align 1
@.str.20 = private unnamed_addr constant [8 x i8] c"send fd\00", align 1
@.str.21 = private unnamed_addr constant [15 x i8] c"sending %s...\0A\00", align 1
@.str.22 = private unnamed_addr constant [28 x i8] c"accepting client connection\00", align 1
@.str.23 = private unnamed_addr constant [35 x i8] c"Parent process client_sockfd = %d\0A\00", align 1
@.str.24 = private unnamed_addr constant [44 x i8] c"server: accepting a client from %s port %d\0A\00", align 1
@.str.25 = private unnamed_addr constant [14 x i8] c"hello, world\0A\00", align 1
@.str.26 = private unnamed_addr constant [33 x i8] c"sending a socket to the client:\0A\00", align 1
@.str.27 = private unnamed_addr constant [13 x i8] c"send sock fd\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca [1024 x i8], align 16
%11 = alloca %struct.sockaddr_in, align 8
%12 = alloca %struct.sockaddr_in, align 8
%13 = alloca i32, align 4
%14 = alloca [2 x i32], align 4
%15 = alloca [32 x i8], align 16
%16 = alloca ptr, align 8
%17 = alloca [3 x ptr], align 16
%18 = alloca [2 x i32], align 4
%19 = alloca [32 x i8], align 16
%20 = alloca ptr, align 8
%21 = alloca [3 x ptr], align 16
%22 = alloca [2 x i32], align 4
%23 = alloca [32 x i8], align 16
%24 = alloca ptr, align 8
%25 = alloca [3 x ptr], align 16
%26 = alloca [32 x i8], align 16
%27 = alloca [32 x i8], align 16
%28 = alloca i32, align 4
%29 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 80, ptr %8, align 4
%30 = load i32, ptr %4, align 4
%31 = icmp sgt i32 %30, 1
br i1 %31, label %32, label %37
32: ; preds = %2
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 1
%35 = load ptr, ptr %34, align 8
%36 = call i32 @atoi(ptr noundef %35)
store i32 %36, ptr %8, align 4
br label %37
37: ; preds = %32, %2
%38 = load i32, ptr @PF_INET, align 4
%39 = load i32, ptr @SOCK_STREAM, align 4
%40 = call i32 @socket(i32 noundef %38, i32 noundef %39, i32 noundef 0)
store i32 %40, ptr %6, align 4
%41 = icmp eq i32 %40, -1
br i1 %41, label %42, label %48
42: ; preds = %37
br label %43
43: ; preds = %42
%44 = load i32, ptr @stderr, align 4
%45 = call i32 @fprintf(i32 noundef %44, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 38, ptr noundef @.str.2)
%46 = call i32 @exit(i32 noundef 0) #4
unreachable
47: ; No predecessors!
br label %48
48: ; preds = %47, %37
%49 = load i32, ptr %6, align 4
%50 = load i32, ptr @SOL_SOCKET, align 4
%51 = load i32, ptr @SO_REUSEADDR, align 4
%52 = call i32 @setsockopt(i32 noundef %49, i32 noundef %50, i32 noundef %51, ptr noundef %9, i32 noundef 4)
%53 = icmp eq i32 %52, -1
br i1 %53, label %54, label %60
54: ; preds = %48
br label %55
55: ; preds = %54
%56 = load i32, ptr @stderr, align 4
%57 = call i32 @fprintf(i32 noundef %56, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 42, ptr noundef @.str.3)
%58 = call i32 @exit(i32 noundef 0) #4
unreachable
59: ; No predecessors!
br label %60
60: ; preds = %59, %48
%61 = call i32 @memset(ptr noundef %11, i8 noundef signext 0, i32 noundef 24)
%62 = load i32, ptr @AF_INET, align 4
%63 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 2
store i32 %62, ptr %63, align 8
%64 = load i32, ptr %8, align 4
%65 = call i32 @htons(i32 noundef %64)
%66 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 0
store i32 %65, ptr %66, align 8
%67 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 1
%68 = getelementptr inbounds %struct.TYPE_2__, ptr %67, i32 0, i32 0
store i64 0, ptr %68, align 8
%69 = load i32, ptr %6, align 4
%70 = call i32 @bind(i32 noundef %69, ptr noundef %11, i32 noundef 4)
%71 = icmp eq i32 %70, -1
br i1 %71, label %72, label %78
72: ; preds = %60
br label %73
73: ; preds = %72
%74 = load i32, ptr @stderr, align 4
%75 = call i32 @fprintf(i32 noundef %74, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 51, ptr noundef @.str.4)
%76 = call i32 @exit(i32 noundef 0) #4
unreachable
77: ; No predecessors!
br label %78
78: ; preds = %77, %60
%79 = load i32, ptr %6, align 4
%80 = call i32 @listen(i32 noundef %79, i32 noundef 1000)
%81 = icmp eq i32 %80, -1
br i1 %81, label %82, label %88
82: ; preds = %78
br label %83
83: ; preds = %82
%84 = load i32, ptr @stderr, align 4
%85 = call i32 @fprintf(i32 noundef %84, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 54, ptr noundef @.str.5)
%86 = call i32 @exit(i32 noundef 0) #4
unreachable
87: ; No predecessors!
br label %88
88: ; preds = %87, %78
%89 = load i32, ptr @SIGCHLD, align 4
%90 = load i32, ptr @SIG_IGN, align 4
%91 = call i32 @signal(i32 noundef %89, i32 noundef %90)
%92 = load i32, ptr @SIGPIPE, align 4
%93 = load i32, ptr @SIG_IGN, align 4
%94 = call i32 @signal(i32 noundef %92, i32 noundef %93)
%95 = call i32 @chroot(ptr noundef @.str.6)
%96 = call i32 @chdir(ptr noundef @.str.7)
%97 = load i32, ptr @AF_UNIX, align 4
%98 = load i32, ptr @SOCK_STREAM, align 4
%99 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
%100 = call i64 @socketpair(i32 noundef %97, i32 noundef %98, i32 noundef 0, ptr noundef %99)
%101 = icmp ne i64 %100, 0
br i1 %101, label %102, label %108
102: ; preds = %88
br label %103
103: ; preds = %102
%104 = load i32, ptr @stderr, align 4
%105 = call i32 @fprintf(i32 noundef %104, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 74, ptr noundef @.str.8)
%106 = call i32 @exit(i32 noundef 0) #4
unreachable
107: ; No predecessors!
br label %108
108: ; preds = %107, %88
%109 = call i32 (...) @fork()
store i32 %109, ptr %13, align 4
%110 = icmp eq i32 %109, 0
br i1 %110, label %111, label %139
111: ; preds = %108
%112 = call i32 @setresgid(i32 noundef 1100, i32 noundef 1100, i32 noundef 1100)
%113 = call i32 @setresuid(i32 noundef 1100, i32 noundef 1100, i32 noundef 1100)
%114 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 1
%115 = load i32, ptr %114, align 4
%116 = call i32 @close(i32 noundef %115)
call void @llvm.memset.p0.i64(ptr align 16 %15, i8 0, i64 32, i1 false)
store ptr @.str.9, ptr %16, align 8
%117 = getelementptr inbounds [32 x i8], ptr %15, i64 0, i64 0
%118 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
%119 = load i32, ptr %118, align 4
%120 = call i32 @sprintf(ptr noundef %117, ptr noundef @.str.10, i32 noundef %119)
%121 = getelementptr inbounds [3 x ptr], ptr %17, i64 0, i64 0
%122 = load ptr, ptr %16, align 8
store ptr %122, ptr %121, align 8
%123 = getelementptr inbounds ptr, ptr %121, i64 1
%124 = getelementptr inbounds [32 x i8], ptr %15, i64 0, i64 0
store ptr %124, ptr %123, align 8
%125 = getelementptr inbounds ptr, ptr %123, i64 1
store ptr null, ptr %125, align 8
%126 = getelementptr inbounds [32 x i8], ptr %15, i64 0, i64 0
%127 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef %126)
%128 = load ptr, ptr %16, align 8
%129 = getelementptr inbounds [3 x ptr], ptr %17, i64 0, i64 0
%130 = call i32 @execv(ptr noundef %128, ptr noundef %129)
%131 = icmp eq i32 %130, -1
br i1 %131, label %132, label %138
132: ; preds = %111
br label %133
133: ; preds = %132
%134 = load i32, ptr @stderr, align 4
%135 = call i32 @fprintf(i32 noundef %134, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 97, ptr noundef @.str.12)
%136 = call i32 @exit(i32 noundef 0) #4
unreachable
137: ; No predecessors!
br label %138
138: ; preds = %137, %111
br label %139
139: ; preds = %138, %108
%140 = call i32 @sleep(i32 noundef 1)
%141 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
%142 = load i32, ptr %141, align 4
%143 = call i32 @close(i32 noundef %142)
%144 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%145 = load i32, ptr @AF_UNIX, align 4
%146 = load i32, ptr @SOCK_STREAM, align 4
%147 = getelementptr inbounds [2 x i32], ptr %18, i64 0, i64 0
%148 = call i64 @socketpair(i32 noundef %145, i32 noundef %146, i32 noundef 0, ptr noundef %147)
%149 = icmp ne i64 %148, 0
br i1 %149, label %150, label %156
150: ; preds = %139
br label %151
151: ; preds = %150
%152 = load i32, ptr @stderr, align 4
%153 = call i32 @fprintf(i32 noundef %152, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 107, ptr noundef @.str.8)
%154 = call i32 @exit(i32 noundef 0) #4
unreachable
155: ; No predecessors!
br label %156
156: ; preds = %155, %139
%157 = call i32 (...) @fork()
store i32 %157, ptr %13, align 4
%158 = icmp eq i32 %157, 0
br i1 %158, label %159, label %187
159: ; preds = %156
%160 = call i32 @setresgid(i32 noundef 1200, i32 noundef 1200, i32 noundef 1200)
%161 = call i32 @setresuid(i32 noundef 1200, i32 noundef 1200, i32 noundef 1200)
%162 = getelementptr inbounds [2 x i32], ptr %18, i64 0, i64 1
%163 = load i32, ptr %162, align 4
%164 = call i32 @close(i32 noundef %163)
call void @llvm.memset.p0.i64(ptr align 16 %19, i8 0, i64 32, i1 false)
store ptr @.str.14, ptr %20, align 8
%165 = getelementptr inbounds [32 x i8], ptr %19, i64 0, i64 0
%166 = getelementptr inbounds [2 x i32], ptr %18, i64 0, i64 0
%167 = load i32, ptr %166, align 4
%168 = call i32 @sprintf(ptr noundef %165, ptr noundef @.str.10, i32 noundef %167)
%169 = getelementptr inbounds [3 x ptr], ptr %21, i64 0, i64 0
%170 = load ptr, ptr %20, align 8
store ptr %170, ptr %169, align 8
%171 = getelementptr inbounds ptr, ptr %169, i64 1
%172 = getelementptr inbounds [32 x i8], ptr %19, i64 0, i64 0
store ptr %172, ptr %171, align 8
%173 = getelementptr inbounds ptr, ptr %171, i64 1
store ptr null, ptr %173, align 8
%174 = getelementptr inbounds [32 x i8], ptr %19, i64 0, i64 0
%175 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, ptr noundef %174)
%176 = load ptr, ptr %20, align 8
%177 = getelementptr inbounds [3 x ptr], ptr %21, i64 0, i64 0
%178 = call i32 @execv(ptr noundef %176, ptr noundef %177)
%179 = icmp eq i32 %178, -1
br i1 %179, label %180, label %186
180: ; preds = %159
br label %181
181: ; preds = %180
%182 = load i32, ptr @stderr, align 4
%183 = call i32 @fprintf(i32 noundef %182, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 125, ptr noundef @.str.12)
%184 = call i32 @exit(i32 noundef 0) #4
unreachable
185: ; No predecessors!
br label %186
186: ; preds = %185, %159
br label %187
187: ; preds = %186, %156
%188 = call i32 @sleep(i32 noundef 1)
%189 = getelementptr inbounds [2 x i32], ptr %18, i64 0, i64 0
%190 = load i32, ptr %189, align 4
%191 = call i32 @close(i32 noundef %190)
%192 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
%193 = load i32, ptr @AF_UNIX, align 4
%194 = load i32, ptr @SOCK_STREAM, align 4
%195 = getelementptr inbounds [2 x i32], ptr %22, i64 0, i64 0
%196 = call i64 @socketpair(i32 noundef %193, i32 noundef %194, i32 noundef 0, ptr noundef %195)
%197 = icmp ne i64 %196, 0
br i1 %197, label %198, label %204
198: ; preds = %187
br label %199
199: ; preds = %198
%200 = load i32, ptr @stderr, align 4
%201 = call i32 @fprintf(i32 noundef %200, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 135, ptr noundef @.str.8)
%202 = call i32 @exit(i32 noundef 0) #4
unreachable
203: ; No predecessors!
br label %204
204: ; preds = %203, %187
%205 = call i32 (...) @fork()
store i32 %205, ptr %13, align 4
%206 = icmp eq i32 %205, 0
br i1 %206, label %207, label %235
207: ; preds = %204
%208 = call i32 @setresgid(i32 noundef 1300, i32 noundef 1300, i32 noundef 1300)
%209 = call i32 @setresuid(i32 noundef 1300, i32 noundef 1300, i32 noundef 1300)
%210 = getelementptr inbounds [2 x i32], ptr %22, i64 0, i64 1
%211 = load i32, ptr %210, align 4
%212 = call i32 @close(i32 noundef %211)
call void @llvm.memset.p0.i64(ptr align 16 %23, i8 0, i64 32, i1 false)
store ptr @.str.17, ptr %24, align 8
%213 = getelementptr inbounds [32 x i8], ptr %23, i64 0, i64 0
%214 = getelementptr inbounds [2 x i32], ptr %22, i64 0, i64 0
%215 = load i32, ptr %214, align 4
%216 = call i32 @sprintf(ptr noundef %213, ptr noundef @.str.10, i32 noundef %215)
%217 = getelementptr inbounds [3 x ptr], ptr %25, i64 0, i64 0
%218 = load ptr, ptr %24, align 8
store ptr %218, ptr %217, align 8
%219 = getelementptr inbounds ptr, ptr %217, i64 1
%220 = getelementptr inbounds [32 x i8], ptr %23, i64 0, i64 0
store ptr %220, ptr %219, align 8
%221 = getelementptr inbounds ptr, ptr %219, i64 1
store ptr null, ptr %221, align 8
%222 = getelementptr inbounds [32 x i8], ptr %23, i64 0, i64 0
%223 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, ptr noundef %222)
%224 = load ptr, ptr %24, align 8
%225 = getelementptr inbounds [3 x ptr], ptr %25, i64 0, i64 0
%226 = call i32 @execv(ptr noundef %224, ptr noundef %225)
%227 = icmp eq i32 %226, -1
br i1 %227, label %228, label %234
228: ; preds = %207
br label %229
229: ; preds = %228
%230 = load i32, ptr @stderr, align 4
%231 = call i32 @fprintf(i32 noundef %230, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 153, ptr noundef @.str.12)
%232 = call i32 @exit(i32 noundef 0) #4
unreachable
233: ; No predecessors!
br label %234
234: ; preds = %233, %207
br label %235
235: ; preds = %234, %204
%236 = call i32 @sleep(i32 noundef 1)
%237 = getelementptr inbounds [2 x i32], ptr %22, i64 0, i64 0
%238 = load i32, ptr %237, align 4
%239 = call i32 @close(i32 noundef %238)
%240 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
call void @llvm.memset.p0.i64(ptr align 16 %26, i8 0, i64 32, i1 false)
%241 = getelementptr inbounds [32 x i8], ptr %26, i64 0, i64 0
%242 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 1
%243 = load i32, ptr %242, align 4
%244 = call i32 @sprintf(ptr noundef %241, ptr noundef @.str.10, i32 noundef %243)
%245 = getelementptr inbounds [2 x i32], ptr %22, i64 0, i64 1
%246 = load i32, ptr %245, align 4
%247 = getelementptr inbounds [32 x i8], ptr %26, i64 0, i64 0
%248 = getelementptr inbounds [32 x i8], ptr %26, i64 0, i64 0
%249 = call i64 @strlen(ptr noundef %248)
%250 = add nsw i64 %249, 1
%251 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 1
%252 = load i32, ptr %251, align 4
%253 = call i32 @sendfd(i32 noundef %246, ptr noundef %247, i64 noundef %250, i32 noundef %252)
%254 = icmp eq i32 -1, %253
br i1 %254, label %255, label %261
255: ; preds = %235
br label %256
256: ; preds = %255
%257 = load i32, ptr @stderr, align 4
%258 = call i32 @fprintf(i32 noundef %257, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 164, ptr noundef @.str.20)
%259 = call i32 @exit(i32 noundef 0) #4
unreachable
260: ; No predecessors!
br label %261
261: ; preds = %260, %235
%262 = getelementptr inbounds [32 x i8], ptr %26, i64 0, i64 0
%263 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, ptr noundef %262)
call void @llvm.memset.p0.i64(ptr align 16 %27, i8 0, i64 32, i1 false)
%264 = getelementptr inbounds [32 x i8], ptr %27, i64 0, i64 0
%265 = getelementptr inbounds [2 x i32], ptr %18, i64 0, i64 1
%266 = load i32, ptr %265, align 4
%267 = call i32 @sprintf(ptr noundef %264, ptr noundef @.str.10, i32 noundef %266)
%268 = getelementptr inbounds [2 x i32], ptr %22, i64 0, i64 1
%269 = load i32, ptr %268, align 4
%270 = getelementptr inbounds [32 x i8], ptr %27, i64 0, i64 0
%271 = getelementptr inbounds [32 x i8], ptr %27, i64 0, i64 0
%272 = call i64 @strlen(ptr noundef %271)
%273 = add nsw i64 %272, 1
%274 = getelementptr inbounds [2 x i32], ptr %18, i64 0, i64 1
%275 = load i32, ptr %274, align 4
%276 = call i32 @sendfd(i32 noundef %269, ptr noundef %270, i64 noundef %273, i32 noundef %275)
%277 = icmp eq i32 -1, %276
br i1 %277, label %278, label %284
278: ; preds = %261
br label %279
279: ; preds = %278
%280 = load i32, ptr @stderr, align 4
%281 = call i32 @fprintf(i32 noundef %280, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 170, ptr noundef @.str.20)
%282 = call i32 @exit(i32 noundef 0) #4
unreachable
283: ; No predecessors!
br label %284
284: ; preds = %283, %261
%285 = getelementptr inbounds [32 x i8], ptr %27, i64 0, i64 0
%286 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, ptr noundef %285)
%287 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 1
%288 = load i32, ptr %287, align 4
%289 = call i32 @close(i32 noundef %288)
%290 = getelementptr inbounds [2 x i32], ptr %18, i64 0, i64 1
%291 = load i32, ptr %290, align 4
%292 = call i32 @close(i32 noundef %291)
%293 = load i32, ptr %6, align 4
%294 = call i32 @accept(i32 noundef %293, ptr noundef %12, ptr noundef %28)
store i32 %294, ptr %7, align 4
%295 = icmp eq i32 %294, -1
br i1 %295, label %296, label %.lr.ph
.lr.ph: ; preds = %284
br label %302
._crit_edge: ; preds = %329
br label %296
296: ; preds = %._crit_edge, %284
br label %297
297: ; preds = %296
%298 = load i32, ptr @stderr, align 4
%299 = call i32 @fprintf(i32 noundef %298, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 182, ptr noundef @.str.22)
%300 = call i32 @exit(i32 noundef 0) #4
unreachable
301: ; No predecessors!
unreachable
302: ; preds = %.lr.ph, %329
%303 = load i32, ptr %7, align 4
%304 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, i32 noundef %303)
%305 = getelementptr inbounds %struct.sockaddr_in, ptr %12, i32 0, i32 1
%306 = getelementptr inbounds %struct.TYPE_2__, ptr %305, i32 0, i32 0
%307 = load i64, ptr %306, align 8
%308 = call ptr @inet_ntoa(i64 %307)
%309 = getelementptr inbounds %struct.sockaddr_in, ptr %12, i32 0, i32 0
%310 = load i32, ptr %309, align 8
%311 = call i32 @ntohs(i32 noundef %310)
%312 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, ptr noundef %308, i32 noundef %311)
store ptr @.str.25, ptr %29, align 8
%313 = call i32 (ptr, ...) @printf(ptr noundef @.str.26)
%314 = getelementptr inbounds [2 x i32], ptr %22, i64 0, i64 1
%315 = load i32, ptr %314, align 4
%316 = load ptr, ptr %29, align 8
%317 = load ptr, ptr %29, align 8
%318 = call i64 @strlen(ptr noundef %317)
%319 = add nsw i64 %318, 1
%320 = load i32, ptr %7, align 4
%321 = call i32 @sendfd(i32 noundef %315, ptr noundef %316, i64 noundef %319, i32 noundef %320)
%322 = icmp eq i32 -1, %321
br i1 %322, label %323, label %329
323: ; preds = %302
br label %324
324: ; preds = %323
%325 = load i32, ptr @stderr, align 4
%326 = call i32 @fprintf(i32 noundef %325, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 197, ptr noundef @.str.27)
%327 = call i32 @exit(i32 noundef 0) #4
unreachable
328: ; No predecessors!
unreachable
329: ; preds = %302
%330 = load i32, ptr %7, align 4
%331 = call i32 @close(i32 noundef %330)
%332 = load i32, ptr %6, align 4
%333 = call i32 @accept(i32 noundef %332, ptr noundef %12, ptr noundef %28)
store i32 %333, ptr %7, align 4
%334 = icmp eq i32 %333, -1
br i1 %334, label %._crit_edge, label %302
}
declare i32 @atoi(ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @signal(i32 noundef, i32 noundef) #1
declare i32 @chroot(ptr noundef) #1
declare i32 @chdir(ptr noundef) #1
declare i64 @socketpair(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fork(...) #1
declare i32 @setresgid(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @setresuid(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @execv(ptr noundef, ptr noundef) #1
declare i32 @sleep(i32 noundef) #1
declare i32 @sendfd(i32 noundef, ptr noundef, i64 noundef, i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @inet_ntoa(i64) #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" }
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 nounwind willreturn memory(argmem: write) }
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"}
|
; ModuleID = '/tmp/tmplhwozp_u.c'
source_filename = "/tmp/tmplhwozp_u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @rt_exit() #0 {
%1 = call i32 @__api(i32 noundef 2, i32 noundef 0)
%2 = icmp eq i32 %1, 1
%3 = zext i1 %2 to i64
%4 = select i1 %2, i32 0, i32 1
ret i32 %4
}
declare i32 @__api(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/tmplhwozp_u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @rt_exit() #0 {
%1 = call i32 @__api(i32 noundef 2, i32 noundef 0)
%2 = icmp eq i32 %1, 1
%3 = zext i1 %2 to i64
%4 = select i1 %2, i32 0, i32 1
ret i32 %4
}
declare i32 @__api(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/tmpk0tfrbuj.c'
source_filename = "/tmp/tmpk0tfrbuj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_hypot(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%5 = load double, ptr %3, align 8
%6 = load double, ptr %4, align 8
%7 = call i64 @hypot(double noundef %5, double noundef %6)
%8 = load double, ptr %3, align 8
%9 = load double, ptr %4, align 8
%10 = call i64 @hypot(double noundef %8, double noundef %9)
%11 = icmp ne i64 %7, %10
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (...) @link_failure_hypot()
br label %14
14: ; preds = %12, %2
ret void
}
declare i64 @hypot(double noundef, double noundef) #1
declare i32 @link_failure_hypot(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk0tfrbuj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_hypot(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%5 = load double, ptr %3, align 8
%6 = load double, ptr %4, align 8
%7 = call i64 @hypot(double noundef %5, double noundef %6)
%8 = load double, ptr %3, align 8
%9 = load double, ptr %4, align 8
%10 = call i64 @hypot(double noundef %8, double noundef %9)
%11 = icmp ne i64 %7, %10
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (...) @link_failure_hypot()
br label %14
14: ; preds = %12, %2
ret void
}
declare i64 @hypot(double noundef, double noundef) #1
declare i32 @link_failure_hypot(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvy0sv_qy.c'
source_filename = "/tmp/tmpvy0sv_qy.c"
target datalayout = "e-m:e-p270: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/tmpvy0sv_qy.c"
target datalayout = "e-m:e-p270: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/tmpvnfacpg6.c'
source_filename = "/tmp/tmpvnfacpg6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%f\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
store i32 0, ptr %1, align 4
store float 0.000000e+00, ptr %5, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
store float 1.000000e+00, ptr %2, align 4
br label %8
8: ; preds = %31, %0
%9 = load float, ptr %2, align 4
%10 = load float, ptr %3, align 4
%11 = fcmp ole float %9, %10
br i1 %11, label %12, label %34
12: ; preds = %8
store float 1.000000e+00, ptr %4, align 4
br label %13
13: ; preds = %27, %12
%14 = load float, ptr %4, align 4
%15 = load float, ptr %3, align 4
%16 = fcmp ole float %14, %15
br i1 %16, label %17, label %30
17: ; preds = %13
%18 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
%19 = load float, ptr %4, align 4
%20 = load float, ptr %2, align 4
%21 = fcmp ogt float %19, %20
br i1 %21, label %22, label %26
22: ; preds = %17
%23 = load float, ptr %6, align 4
%24 = load float, ptr %5, align 4
%25 = fadd float %23, %24
store float %25, ptr %5, align 4
br label %26
26: ; preds = %22, %17
br label %27
27: ; preds = %26
%28 = load float, ptr %4, align 4
%29 = fadd float %28, 1.000000e+00
store float %29, ptr %4, align 4
br label %13, !llvm.loop !6
30: ; preds = %13
br label %31
31: ; preds = %30
%32 = load float, ptr %2, align 4
%33 = fadd float %32, 1.000000e+00
store float %33, ptr %2, align 4
br label %8, !llvm.loop !8
34: ; preds = %8
%35 = load float, ptr %5, align 4
%36 = call i32 @printf(ptr noundef @.str.1, float noundef %35)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvnfacpg6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%f\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
store i32 0, ptr %1, align 4
store float 0.000000e+00, ptr %5, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
store float 1.000000e+00, ptr %2, align 4
%8 = load float, ptr %2, align 4
%9 = load float, ptr %3, align 4
%10 = fcmp ole float %8, %9
br i1 %10, label %.lr.ph2, label %38
.lr.ph2: ; preds = %0
br label %11
11: ; preds = %.lr.ph2, %32
store float 1.000000e+00, ptr %4, align 4
%12 = load float, ptr %4, align 4
%13 = load float, ptr %3, align 4
%14 = fcmp ole float %12, %13
br i1 %14, label %.lr.ph, label %31
.lr.ph: ; preds = %11
br label %15
15: ; preds = %.lr.ph, %25
%16 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
%17 = load float, ptr %4, align 4
%18 = load float, ptr %2, align 4
%19 = fcmp ogt float %17, %18
br i1 %19, label %20, label %24
20: ; preds = %15
%21 = load float, ptr %6, align 4
%22 = load float, ptr %5, align 4
%23 = fadd float %21, %22
store float %23, ptr %5, align 4
br label %24
24: ; preds = %20, %15
br label %25
25: ; preds = %24
%26 = load float, ptr %4, align 4
%27 = fadd float %26, 1.000000e+00
store float %27, ptr %4, align 4
%28 = load float, ptr %4, align 4
%29 = load float, ptr %3, align 4
%30 = fcmp ole float %28, %29
br i1 %30, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %31
31: ; preds = %._crit_edge, %11
br label %32
32: ; preds = %31
%33 = load float, ptr %2, align 4
%34 = fadd float %33, 1.000000e+00
store float %34, ptr %2, align 4
%35 = load float, ptr %2, align 4
%36 = load float, ptr %3, align 4
%37 = fcmp ole float %35, %36
br i1 %37, label %11, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %32
br label %38
38: ; preds = %._crit_edge3, %0
%39 = load float, ptr %5, align 4
%40 = call i32 @printf(ptr noundef @.str.1, float noundef %39)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp4sdm2z5b.c'
source_filename = "/tmp/tmp4sdm2z5b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @compute1(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = call i32 (...) @nd()
store i32 %5, ptr %3, align 4
%6 = call i32 (...) @nd()
switch i32 %6, label %10 [
i32 1, label %7
i32 2, label %8
i32 3, label %9
]
7: ; preds = %1
store i32 2, ptr %4, align 4
br label %11
8: ; preds = %1
store i32 4, ptr %4, align 4
br label %11
9: ; preds = %1
store i32 6, ptr %4, align 4
br label %11
10: ; preds = %1
store i32 15, ptr %4, align 4
br label %11
11: ; preds = %10, %9, %8, %7
%12 = load ptr, ptr %2, align 8
%13 = load i32, ptr %4, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i32, ptr %12, i64 %14
store i32 100, ptr %15, align 4
%16 = load ptr, ptr %2, align 8
%17 = getelementptr inbounds i32, ptr %16, i64 2
%18 = load i32, ptr %17, align 4
%19 = load ptr, ptr %2, align 8
%20 = getelementptr inbounds i32, ptr %19, i64 4
%21 = load i32, ptr %20, align 4
%22 = add nsw i32 %18, %21
%23 = load ptr, ptr %2, align 8
%24 = getelementptr inbounds i32, ptr %23, i64 6
%25 = load i32, ptr %24, align 4
%26 = add nsw i32 %22, %25
%27 = load ptr, ptr %2, align 8
%28 = getelementptr inbounds i32, ptr %27, i64 15
%29 = load i32, ptr %28, align 4
%30 = add nsw i32 %26, %29
ret i32 %30
}
declare i32 @nd(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4sdm2z5b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @compute1(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = call i32 (...) @nd()
store i32 %5, ptr %3, align 4
%6 = call i32 (...) @nd()
switch i32 %6, label %10 [
i32 1, label %7
i32 2, label %8
i32 3, label %9
]
7: ; preds = %1
store i32 2, ptr %4, align 4
br label %11
8: ; preds = %1
store i32 4, ptr %4, align 4
br label %11
9: ; preds = %1
store i32 6, ptr %4, align 4
br label %11
10: ; preds = %1
store i32 15, ptr %4, align 4
br label %11
11: ; preds = %10, %9, %8, %7
%12 = load ptr, ptr %2, align 8
%13 = load i32, ptr %4, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i32, ptr %12, i64 %14
store i32 100, ptr %15, align 4
%16 = load ptr, ptr %2, align 8
%17 = getelementptr inbounds i32, ptr %16, i64 2
%18 = load i32, ptr %17, align 4
%19 = load ptr, ptr %2, align 8
%20 = getelementptr inbounds i32, ptr %19, i64 4
%21 = load i32, ptr %20, align 4
%22 = add nsw i32 %18, %21
%23 = load ptr, ptr %2, align 8
%24 = getelementptr inbounds i32, ptr %23, i64 6
%25 = load i32, ptr %24, align 4
%26 = add nsw i32 %22, %25
%27 = load ptr, ptr %2, align 8
%28 = getelementptr inbounds i32, ptr %27, i64 15
%29 = load i32, ptr %28, align 4
%30 = add nsw i32 %26, %29
ret i32 %30
}
declare i32 @nd(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1b2honle.c'
source_filename = "/tmp/tmp1b2honle.c"
target datalayout = "e-m:e-p270: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/tmp1b2honle.c"
target datalayout = "e-m:e-p270: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/tmpt62faexv.c'
source_filename = "/tmp/tmpt62faexv.c"
target datalayout = "e-m:e-p270: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/tmpt62faexv.c"
target datalayout = "e-m:e-p270: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/tmpga01evj2.c'
source_filename = "/tmp/tmpga01evj2.c"
target datalayout = "e-m:e-p270: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/tmpga01evj2.c"
target datalayout = "e-m:e-p270: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/tmpf50yux4c.c'
source_filename = "/tmp/tmpf50yux4c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [153 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sshilovsky/vifm/refs/heads/master/tests/misc/read_file_lines.c\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"test_dos_line_endings\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"test_dos_end_of_file\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"test_binary_data_is_fully_read\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @read_file_lines_tests() #0 {
br label %1
1: ; preds = %0
%2 = call i32 @seatest_test_fixture_start(ptr noundef @.str)
br label %3
3: ; preds = %1
br label %4
4: ; preds = %3
%5 = call i64 @seatest_should_run(ptr noundef @.str, ptr noundef @.str.1)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %14
7: ; preds = %4
%8 = call i32 (...) @seatest_suite_setup()
%9 = call i32 (...) @seatest_setup()
%10 = call i32 (...) @test_dos_line_endings()
%11 = call i32 (...) @seatest_teardown()
%12 = call i32 (...) @seatest_suite_teardown()
%13 = call i32 @seatest_run_test(ptr noundef @.str, ptr noundef @.str.1)
br label %14
14: ; preds = %7, %4
br label %15
15: ; preds = %14
br label %16
16: ; preds = %15
%17 = call i64 @seatest_should_run(ptr noundef @.str, ptr noundef @.str.2)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %26
19: ; preds = %16
%20 = call i32 (...) @seatest_suite_setup()
%21 = call i32 (...) @seatest_setup()
%22 = call i32 (...) @test_dos_end_of_file()
%23 = call i32 (...) @seatest_teardown()
%24 = call i32 (...) @seatest_suite_teardown()
%25 = call i32 @seatest_run_test(ptr noundef @.str, ptr noundef @.str.2)
br label %26
26: ; preds = %19, %16
br label %27
27: ; preds = %26
br label %28
28: ; preds = %27
%29 = call i64 @seatest_should_run(ptr noundef @.str, ptr noundef @.str.3)
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %38
31: ; preds = %28
%32 = call i32 (...) @seatest_suite_setup()
%33 = call i32 (...) @seatest_setup()
%34 = call i32 (...) @test_binary_data_is_fully_read()
%35 = call i32 (...) @seatest_teardown()
%36 = call i32 (...) @seatest_suite_teardown()
%37 = call i32 @seatest_run_test(ptr noundef @.str, ptr noundef @.str.3)
br label %38
38: ; preds = %31, %28
br label %39
39: ; preds = %38
br label %40
40: ; preds = %39
%41 = call i32 (...) @seatest_test_fixture_end()
br label %42
42: ; preds = %40
ret void
}
declare i32 @seatest_test_fixture_start(ptr noundef) #1
declare i64 @seatest_should_run(ptr noundef, ptr noundef) #1
declare i32 @seatest_suite_setup(...) #1
declare i32 @seatest_setup(...) #1
declare i32 @test_dos_line_endings(...) #1
declare i32 @seatest_teardown(...) #1
declare i32 @seatest_suite_teardown(...) #1
declare i32 @seatest_run_test(ptr noundef, ptr noundef) #1
declare i32 @test_dos_end_of_file(...) #1
declare i32 @test_binary_data_is_fully_read(...) #1
declare i32 @seatest_test_fixture_end(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf50yux4c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [153 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sshilovsky/vifm/refs/heads/master/tests/misc/read_file_lines.c\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"test_dos_line_endings\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"test_dos_end_of_file\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"test_binary_data_is_fully_read\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @read_file_lines_tests() #0 {
br label %1
1: ; preds = %0
%2 = call i32 @seatest_test_fixture_start(ptr noundef @.str)
br label %3
3: ; preds = %1
br label %4
4: ; preds = %3
%5 = call i64 @seatest_should_run(ptr noundef @.str, ptr noundef @.str.1)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %14
7: ; preds = %4
%8 = call i32 (...) @seatest_suite_setup()
%9 = call i32 (...) @seatest_setup()
%10 = call i32 (...) @test_dos_line_endings()
%11 = call i32 (...) @seatest_teardown()
%12 = call i32 (...) @seatest_suite_teardown()
%13 = call i32 @seatest_run_test(ptr noundef @.str, ptr noundef @.str.1)
br label %14
14: ; preds = %7, %4
br label %15
15: ; preds = %14
br label %16
16: ; preds = %15
%17 = call i64 @seatest_should_run(ptr noundef @.str, ptr noundef @.str.2)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %26
19: ; preds = %16
%20 = call i32 (...) @seatest_suite_setup()
%21 = call i32 (...) @seatest_setup()
%22 = call i32 (...) @test_dos_end_of_file()
%23 = call i32 (...) @seatest_teardown()
%24 = call i32 (...) @seatest_suite_teardown()
%25 = call i32 @seatest_run_test(ptr noundef @.str, ptr noundef @.str.2)
br label %26
26: ; preds = %19, %16
br label %27
27: ; preds = %26
br label %28
28: ; preds = %27
%29 = call i64 @seatest_should_run(ptr noundef @.str, ptr noundef @.str.3)
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %38
31: ; preds = %28
%32 = call i32 (...) @seatest_suite_setup()
%33 = call i32 (...) @seatest_setup()
%34 = call i32 (...) @test_binary_data_is_fully_read()
%35 = call i32 (...) @seatest_teardown()
%36 = call i32 (...) @seatest_suite_teardown()
%37 = call i32 @seatest_run_test(ptr noundef @.str, ptr noundef @.str.3)
br label %38
38: ; preds = %31, %28
br label %39
39: ; preds = %38
br label %40
40: ; preds = %39
%41 = call i32 (...) @seatest_test_fixture_end()
br label %42
42: ; preds = %40
ret void
}
declare i32 @seatest_test_fixture_start(ptr noundef) #1
declare i64 @seatest_should_run(ptr noundef, ptr noundef) #1
declare i32 @seatest_suite_setup(...) #1
declare i32 @seatest_setup(...) #1
declare i32 @test_dos_line_endings(...) #1
declare i32 @seatest_teardown(...) #1
declare i32 @seatest_suite_teardown(...) #1
declare i32 @seatest_run_test(ptr noundef, ptr noundef) #1
declare i32 @test_dos_end_of_file(...) #1
declare i32 @test_binary_data_is_fully_read(...) #1
declare i32 @seatest_test_fixture_end(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpilp9q2mc.c'
source_filename = "/tmp/tmpilp9q2mc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wcsrchr(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr null, ptr %7, align 8
br label %8
8: ; preds = %21, %2
%9 = load ptr, ptr %4, align 8
%10 = getelementptr inbounds i64, ptr %9, i32 1
store ptr %10, ptr %4, align 8
%11 = load i64, ptr %9, align 8
store i64 %11, ptr %6, align 8
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %22
13: ; preds = %8
%14 = load i64, ptr %6, align 8
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = icmp eq i64 %14, %16
br i1 %17, label %18, label %21
18: ; preds = %13
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds i64, ptr %19, i64 -1
store ptr %20, ptr %7, align 8
br label %21
21: ; preds = %18, %13
br label %8, !llvm.loop !6
22: ; preds = %8
%23 = load i32, ptr %5, align 4
%24 = sext i32 %23 to i64
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %22
%27 = load ptr, ptr %4, align 8
%28 = getelementptr inbounds i64, ptr %27, i32 -1
store ptr %28, ptr %4, align 8
store ptr %28, ptr %3, align 8
br label %31
29: ; preds = %22
%30 = load ptr, ptr %7, align 8
store ptr %30, ptr %3, align 8
br label %31
31: ; preds = %29, %26
%32 = load ptr, ptr %3, align 8
ret ptr %32
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpilp9q2mc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wcsrchr(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr null, ptr %7, align 8
%8 = load ptr, ptr %4, align 8
%9 = getelementptr inbounds i64, ptr %8, i32 1
store ptr %9, ptr %4, align 8
%10 = load i64, ptr %8, align 8
store i64 %10, ptr %6, align 8
%11 = icmp ne i64 %10, 0
br i1 %11, label %.lr.ph, label %25
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %20
%13 = load i64, ptr %6, align 8
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = icmp eq i64 %13, %15
br i1 %16, label %17, label %20
17: ; preds = %12
%18 = load ptr, ptr %4, align 8
%19 = getelementptr inbounds i64, ptr %18, i64 -1
store ptr %19, ptr %7, align 8
br label %20
20: ; preds = %17, %12
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds i64, ptr %21, i32 1
store ptr %22, ptr %4, align 8
%23 = load i64, ptr %21, align 8
store i64 %23, ptr %6, align 8
%24 = icmp ne i64 %23, 0
br i1 %24, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %25
25: ; preds = %._crit_edge, %2
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %25
%30 = load ptr, ptr %4, align 8
%31 = getelementptr inbounds i64, ptr %30, i32 -1
store ptr %31, ptr %4, align 8
store ptr %31, ptr %3, align 8
br label %34
32: ; preds = %25
%33 = load ptr, ptr %7, align 8
store ptr %33, ptr %3, align 8
br label %34
34: ; preds = %32, %29
%35 = load ptr, ptr %3, align 8
ret ptr %35
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmps6u4672q.c'
source_filename = "/tmp/tmps6u4672q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [40 x i8] c"Show current configuration of priority\0A\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"show SCHED_FIFO of priority\0A\00", align 1
@SCHED_FIFO = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [27 x i8] c"show SCHED_RR of priority\0A\00", align 1
@SCHED_RR = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [33 x i8] c"show priority of current thread\0A\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"Set thread policy\0A\00", align 1
@.str.5 = private unnamed_addr constant [23 x i8] c"set SCHED_FIFO policy\0A\00", align 1
@.str.6 = private unnamed_addr constant [21 x i8] c"set SCHED_RR policy\0A\00", align 1
@.str.7 = private unnamed_addr constant [24 x i8] c"Restore current policy\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
store i32 0, ptr %1, align 4
%5 = call i32 @pthread_attr_init(ptr noundef %2)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp eq i32 %6, 0
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 noundef %8)
%10 = call i32 @get_thread_policy(ptr noundef %2)
store i32 %10, ptr %4, align 4
%11 = call i32 @printf(ptr noundef @.str)
%12 = call i32 @get_thread_policy(ptr noundef %2)
%13 = load i32, ptr %4, align 4
%14 = call i32 @show_thread_priority(ptr noundef %2, i32 noundef %13)
%15 = call i32 @printf(ptr noundef @.str.1)
%16 = load i32, ptr @SCHED_FIFO, align 4
%17 = call i32 @show_thread_priority(ptr noundef %2, i32 noundef %16)
%18 = call i32 @printf(ptr noundef @.str.2)
%19 = load i32, ptr @SCHED_RR, align 4
%20 = call i32 @show_thread_priority(ptr noundef %2, i32 noundef %19)
%21 = call i32 @printf(ptr noundef @.str.3)
%22 = call i32 @get_thread_priority(ptr noundef %2)
%23 = call i32 @printf(ptr noundef @.str.4)
%24 = call i32 @printf(ptr noundef @.str.5)
%25 = load i32, ptr @SCHED_FIFO, align 4
%26 = call i32 @set_thread_policy(ptr noundef %2, i32 noundef %25)
%27 = call i32 @get_thread_policy(ptr noundef %2)
%28 = call i32 @get_thread_priority(ptr noundef %2)
%29 = call i32 @printf(ptr noundef @.str.6)
%30 = load i32, ptr @SCHED_RR, align 4
%31 = call i32 @set_thread_policy(ptr noundef %2, i32 noundef %30)
%32 = call i32 @get_thread_policy(ptr noundef %2)
%33 = call i32 @printf(ptr noundef @.str.7)
%34 = load i32, ptr %4, align 4
%35 = call i32 @set_thread_policy(ptr noundef %2, i32 noundef %34)
%36 = call i32 @get_thread_priority(ptr noundef %2)
%37 = call i32 @pthread_attr_destroy(ptr noundef %2)
store i32 %37, ptr %3, align 4
%38 = load i32, ptr %3, align 4
%39 = icmp eq i32 %38, 0
%40 = zext i1 %39 to i32
%41 = call i32 @assert(i32 noundef %40)
ret i32 0
}
declare i32 @pthread_attr_init(ptr noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @get_thread_policy(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @show_thread_priority(ptr noundef, i32 noundef) #1
declare i32 @get_thread_priority(ptr noundef) #1
declare i32 @set_thread_policy(ptr noundef, i32 noundef) #1
declare i32 @pthread_attr_destroy(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps6u4672q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [40 x i8] c"Show current configuration of priority\0A\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"show SCHED_FIFO of priority\0A\00", align 1
@SCHED_FIFO = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [27 x i8] c"show SCHED_RR of priority\0A\00", align 1
@SCHED_RR = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [33 x i8] c"show priority of current thread\0A\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"Set thread policy\0A\00", align 1
@.str.5 = private unnamed_addr constant [23 x i8] c"set SCHED_FIFO policy\0A\00", align 1
@.str.6 = private unnamed_addr constant [21 x i8] c"set SCHED_RR policy\0A\00", align 1
@.str.7 = private unnamed_addr constant [24 x i8] c"Restore current policy\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
store i32 0, ptr %1, align 4
%5 = call i32 @pthread_attr_init(ptr noundef %2)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp eq i32 %6, 0
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 noundef %8)
%10 = call i32 @get_thread_policy(ptr noundef %2)
store i32 %10, ptr %4, align 4
%11 = call i32 @printf(ptr noundef @.str)
%12 = call i32 @get_thread_policy(ptr noundef %2)
%13 = load i32, ptr %4, align 4
%14 = call i32 @show_thread_priority(ptr noundef %2, i32 noundef %13)
%15 = call i32 @printf(ptr noundef @.str.1)
%16 = load i32, ptr @SCHED_FIFO, align 4
%17 = call i32 @show_thread_priority(ptr noundef %2, i32 noundef %16)
%18 = call i32 @printf(ptr noundef @.str.2)
%19 = load i32, ptr @SCHED_RR, align 4
%20 = call i32 @show_thread_priority(ptr noundef %2, i32 noundef %19)
%21 = call i32 @printf(ptr noundef @.str.3)
%22 = call i32 @get_thread_priority(ptr noundef %2)
%23 = call i32 @printf(ptr noundef @.str.4)
%24 = call i32 @printf(ptr noundef @.str.5)
%25 = load i32, ptr @SCHED_FIFO, align 4
%26 = call i32 @set_thread_policy(ptr noundef %2, i32 noundef %25)
%27 = call i32 @get_thread_policy(ptr noundef %2)
%28 = call i32 @get_thread_priority(ptr noundef %2)
%29 = call i32 @printf(ptr noundef @.str.6)
%30 = load i32, ptr @SCHED_RR, align 4
%31 = call i32 @set_thread_policy(ptr noundef %2, i32 noundef %30)
%32 = call i32 @get_thread_policy(ptr noundef %2)
%33 = call i32 @printf(ptr noundef @.str.7)
%34 = load i32, ptr %4, align 4
%35 = call i32 @set_thread_policy(ptr noundef %2, i32 noundef %34)
%36 = call i32 @get_thread_priority(ptr noundef %2)
%37 = call i32 @pthread_attr_destroy(ptr noundef %2)
store i32 %37, ptr %3, align 4
%38 = load i32, ptr %3, align 4
%39 = icmp eq i32 %38, 0
%40 = zext i1 %39 to i32
%41 = call i32 @assert(i32 noundef %40)
ret i32 0
}
declare i32 @pthread_attr_init(ptr noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @get_thread_policy(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @show_thread_priority(ptr noundef, i32 noundef) #1
declare i32 @get_thread_priority(ptr noundef) #1
declare i32 @set_thread_policy(ptr noundef, i32 noundef) #1
declare i32 @pthread_attr_destroy(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjlt_3jn9.c'
source_filename = "/tmp/tmpjlt_3jn9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjlt_3jn9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_j0x64xx.c'
source_filename = "/tmp/tmp_j0x64xx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_j0x64xx.c"
target datalayout = "e-m:e-p270: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/tmp0oeewtjy.c'
source_filename = "/tmp/tmp0oeewtjy.c"
target datalayout = "e-m:e-p270: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/tmp0oeewtjy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.