llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmp4_ffkcpd.c'
source_filename = "/tmp/tmp4_ffkcpd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"# %s environment variable\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"ENV:%s=\22@@\22\0A\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"# End of %s section\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getenv(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @printf(ptr noundef @.str.1, ptr noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = call i32 @printf(ptr noundef @.str.2, ptr noundef %7)
ret ptr null
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4_ffkcpd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"# %s environment variable\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"ENV:%s=\22@@\22\0A\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"# End of %s section\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getenv(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @printf(ptr noundef @.str.1, ptr noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = call i32 @printf(ptr noundef @.str.2, ptr noundef %7)
ret ptr null
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphonldjz2.c'
source_filename = "/tmp/tmphonldjz2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"/proc/%d//comm\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @pid_proc_comm(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca [4096 x i8], align 16
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = call i32 @asprintf(ptr noundef %4, ptr noundef @.str, i32 noundef %9)
%11 = icmp eq i32 %10, -1
br i1 %11, label %12, label %13
12: ; preds = %1
store ptr null, ptr %2, align 8
br label %46
13: ; preds = %1
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr @O_RDONLY, align 4
%16 = call i32 @open(ptr noundef %14, i32 noundef %15)
store i32 %16, ptr %5, align 4
%17 = icmp slt i32 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %13
%19 = load ptr, ptr %4, align 8
%20 = call i32 @free(ptr noundef %19)
store ptr null, ptr %2, align 8
br label %46
21: ; preds = %13
%22 = load ptr, ptr %4, align 8
%23 = call i32 @free(ptr noundef %22)
%24 = load i32, ptr %5, align 4
%25 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%26 = call i64 @read(i32 noundef %24, ptr noundef %25, i32 noundef 4095)
store i64 %26, ptr %7, align 8
%27 = icmp ule i64 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %21
%29 = load i32, ptr %5, align 4
%30 = call i32 @close(i32 noundef %29)
store ptr null, ptr %2, align 8
br label %46
31: ; preds = %21
%32 = load i64, ptr %7, align 8
%33 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 %32
store i8 0, ptr %33, align 1
%34 = load i32, ptr %5, align 4
%35 = call i32 @close(i32 noundef %34)
%36 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%37 = call ptr @strdup(ptr noundef %36)
store ptr %37, ptr %8, align 8
%38 = load ptr, ptr %8, align 8
%39 = call i64 @strlen(ptr noundef %38)
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %44
41: ; preds = %31
%42 = load ptr, ptr %8, align 8
%43 = call i32 @free(ptr noundef %42)
store ptr null, ptr %2, align 8
br label %46
44: ; preds = %31
%45 = load ptr, ptr %8, align 8
store ptr %45, ptr %2, align 8
br label %46
46: ; preds = %44, %41, %28, %18, %12
%47 = load ptr, ptr %2, align 8
ret ptr %47
}
declare i32 @asprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare ptr @strdup(ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphonldjz2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"/proc/%d//comm\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @pid_proc_comm(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca [4096 x i8], align 16
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = call i32 @asprintf(ptr noundef %4, ptr noundef @.str, i32 noundef %9)
%11 = icmp eq i32 %10, -1
br i1 %11, label %12, label %13
12: ; preds = %1
store ptr null, ptr %2, align 8
br label %46
13: ; preds = %1
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr @O_RDONLY, align 4
%16 = call i32 @open(ptr noundef %14, i32 noundef %15)
store i32 %16, ptr %5, align 4
%17 = icmp slt i32 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %13
%19 = load ptr, ptr %4, align 8
%20 = call i32 @free(ptr noundef %19)
store ptr null, ptr %2, align 8
br label %46
21: ; preds = %13
%22 = load ptr, ptr %4, align 8
%23 = call i32 @free(ptr noundef %22)
%24 = load i32, ptr %5, align 4
%25 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%26 = call i64 @read(i32 noundef %24, ptr noundef %25, i32 noundef 4095)
store i64 %26, ptr %7, align 8
%27 = icmp ule i64 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %21
%29 = load i32, ptr %5, align 4
%30 = call i32 @close(i32 noundef %29)
store ptr null, ptr %2, align 8
br label %46
31: ; preds = %21
%32 = load i64, ptr %7, align 8
%33 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 %32
store i8 0, ptr %33, align 1
%34 = load i32, ptr %5, align 4
%35 = call i32 @close(i32 noundef %34)
%36 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%37 = call ptr @strdup(ptr noundef %36)
store ptr %37, ptr %8, align 8
%38 = load ptr, ptr %8, align 8
%39 = call i64 @strlen(ptr noundef %38)
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %44
41: ; preds = %31
%42 = load ptr, ptr %8, align 8
%43 = call i32 @free(ptr noundef %42)
store ptr null, ptr %2, align 8
br label %46
44: ; preds = %31
%45 = load ptr, ptr %8, align 8
store ptr %45, ptr %2, align 8
br label %46
46: ; preds = %44, %41, %28, %18, %12
%47 = load ptr, ptr %2, align 8
ret ptr %47
}
declare i32 @asprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare ptr @strdup(ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6rxk_xyu.c'
source_filename = "/tmp/tmp6rxk_xyu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ft_utf8wencode(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
br label %3
3: ; preds = %8, %1
%4 = load ptr, ptr %2, align 8
%5 = load i8, ptr %4, align 1
%6 = sext i8 %5 to i32
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %15
8: ; preds = %3
%9 = load ptr, ptr %2, align 8
%10 = load i8, ptr %9, align 1
%11 = call signext i8 @ft_utf8chrencode(i8 noundef signext %10)
%12 = load ptr, ptr %2, align 8
store i8 %11, ptr %12, align 1
%13 = load ptr, ptr %2, align 8
%14 = getelementptr inbounds i8, ptr %13, i32 1
store ptr %14, ptr %2, align 8
br label %3, !llvm.loop !6
15: ; preds = %3
ret void
}
declare signext i8 @ft_utf8chrencode(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/tmp6rxk_xyu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ft_utf8wencode(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i8, ptr %3, align 1
%5 = sext i8 %4 to i32
%6 = icmp ne i32 %5, 0
br i1 %6, label %.lr.ph, label %18
.lr.ph: ; preds = %1
br label %7
7: ; preds = %.lr.ph, %7
%8 = load ptr, ptr %2, align 8
%9 = load i8, ptr %8, align 1
%10 = call signext i8 @ft_utf8chrencode(i8 noundef signext %9)
%11 = load ptr, ptr %2, align 8
store i8 %10, ptr %11, align 1
%12 = load ptr, ptr %2, align 8
%13 = getelementptr inbounds i8, ptr %12, i32 1
store ptr %13, ptr %2, align 8
%14 = load ptr, ptr %2, align 8
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %16, 0
br i1 %17, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %7
br label %18
18: ; preds = %._crit_edge, %1
ret void
}
declare signext i8 @ft_utf8chrencode(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/tmp0u5xu9yr.c'
source_filename = "/tmp/tmp0u5xu9yr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @md_gseed() #0 {
%1 = call i32 (...) @getpid()
ret i32 %1
}
declare i32 @getpid(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0u5xu9yr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @md_gseed() #0 {
%1 = call i32 (...) @getpid()
ret i32 %1
}
declare i32 @getpid(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1ybb713x.c'
source_filename = "/tmp/tmp1ybb713x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mpz8_clear(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 = %14, %1
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, 8
br i1 %6, label %7, label %17
7: ; preds = %4
%8 = load ptr, ptr %2, align 8
%9 = load i32, ptr %3, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i32, ptr %8, i64 %10
%12 = load i32, ptr %11, align 4
%13 = call i32 @mpz_clear(i32 noundef %12)
br label %14
14: ; preds = %7
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %3, align 4
br label %4, !llvm.loop !6
17: ; preds = %4
ret void
}
declare i32 @mpz_clear(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/tmp1ybb713x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mpz8_clear(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 i32, ptr %3, align 4
%5 = icmp slt i32 %4, 8
br i1 %5, label %.lr.ph, label %18
.lr.ph: ; preds = %1
br label %6
6: ; preds = %.lr.ph, %13
%7 = load ptr, ptr %2, align 8
%8 = load i32, ptr %3, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i32, ptr %7, i64 %9
%11 = load i32, ptr %10, align 4
%12 = call i32 @mpz_clear(i32 noundef %11)
br label %13
13: ; preds = %6
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp slt i32 %16, 8
br i1 %17, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %18
18: ; preds = %._crit_edge, %1
ret void
}
declare i32 @mpz_clear(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/tmpzegdev6g.c'
source_filename = "/tmp/tmpzegdev6g.c"
target datalayout = "e-m:e-p270: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/tmpzegdev6g.c"
target datalayout = "e-m:e-p270: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/tmpome6y6kc.c'
source_filename = "/tmp/tmpome6y6kc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_XMapEvent_type(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %struct.TYPE_2__, ptr %3, i32 0, i32 0
%5 = load i64, ptr %4, align 8
%6 = trunc i64 %5 to i32
ret i32 %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpome6y6kc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_XMapEvent_type(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %struct.TYPE_2__, ptr %3, i32 0, i32 0
%5 = load i64, ptr %4, align 8
%6 = trunc i64 %5 to i32
ret i32 %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2903ax0o.c'
source_filename = "/tmp/tmp2903ax0o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @close(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr inttoptr (i64 2348826628 to ptr), align 4
%5 = icmp eq i32 %4, -559038737
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, ptr %3, align 4
%8 = call i32 @dcloadsyscall(i32 noundef 3, i32 noundef %7)
store i32 %8, ptr %2, align 4
br label %10
9: ; preds = %1
store i32 -1, ptr %2, align 4
br label %10
10: ; preds = %9, %6
%11 = load i32, ptr %2, align 4
ret i32 %11
}
declare i32 @dcloadsyscall(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/tmp2903ax0o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @close(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr inttoptr (i64 2348826628 to ptr), align 4
%5 = icmp eq i32 %4, -559038737
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, ptr %3, align 4
%8 = call i32 @dcloadsyscall(i32 noundef 3, i32 noundef %7)
store i32 %8, ptr %2, align 4
br label %10
9: ; preds = %1
store i32 -1, ptr %2, align 4
br label %10
10: ; preds = %9, %6
%11 = load i32, ptr %2, align 4
ret i32 %11
}
declare i32 @dcloadsyscall(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/tmpli5qchi8.c'
source_filename = "/tmp/tmpli5qchi8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vbnorm2(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 1, ptr %5, align 4
%6 = load ptr, ptr %4, align 8
%7 = call double @dnrm2_(ptr noundef %3, ptr noundef %6, ptr noundef %5)
%8 = load i32, ptr %3, align 4
%9 = sitofp i32 %8 to double
%10 = fdiv double %7, %9
ret double %10
}
declare double @dnrm2_(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpli5qchi8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vbnorm2(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 1, ptr %5, align 4
%6 = load ptr, ptr %4, align 8
%7 = call double @dnrm2_(ptr noundef %3, ptr noundef %6, ptr noundef %5)
%8 = load i32, ptr %3, align 4
%9 = sitofp i32 %8 to double
%10 = fdiv double %7, %9
ret double %10
}
declare double @dnrm2_(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8nn50ozw.c'
source_filename = "/tmp/tmp8nn50ozw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"generation of interpolation tables\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c" ... sin(x) 0<x<PI\0A\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c" ... exp(x) 0<x<1 \0A\00", align 1
@.str.3 = private unnamed_addr constant [38 x i8] c"how many entries go in these tables?\0A\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.5 = private unnamed_addr constant [29 x i8] c"\0Asine function from 0 to PI\0A\00", align 1
@.str.6 = private unnamed_addr constant [35 x i8] c"\0Aexponential function from 0 to 1\0A\00", align 1
@.str.7 = private unnamed_addr constant [21 x i8] c"\0A%9s %13s %16s %13s\0A\00", align 1
@.str.8 = private unnamed_addr constant [2 x i8] c"x\00", align 1
@.str.9 = private unnamed_addr constant [5 x i8] c"f(x)\00", align 1
@.str.10 = private unnamed_addr constant [13 x i8] c"interpolated\00", align 1
@.str.11 = private unnamed_addr constant [6 x i8] c"error\00", align 1
@.str.12 = private unnamed_addr constant [31 x i8] c"%12.6f %12.6f %12.6f %4s %11f\0A\00", align 1
@.str.13 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.14 = private unnamed_addr constant [38 x i8] c"\0A***********************************\0A\00", align 1
@.str.15 = private unnamed_addr constant [14 x i8] c"press RETURN\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 float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%15 = call i64 @scanf(ptr noundef @.str.4, ptr noundef %3)
%16 = load i64, ptr @EOF, align 8
%17 = icmp eq i64 %15, %16
br i1 %17, label %18, label %19
18: ; preds = %0
store i32 1, ptr %1, align 4
br label %160
19: ; preds = %0
%20 = load i32, ptr %3, align 4
%21 = call ptr @vector(i32 noundef 1, i32 noundef %20)
store ptr %21, ptr %9, align 8
%22 = load i32, ptr %3, align 4
%23 = call ptr @vector(i32 noundef 1, i32 noundef %22)
store ptr %23, ptr %10, align 8
store i32 1, ptr %4, align 4
br label %24
24: ; preds = %150, %19
%25 = load i32, ptr %4, align 4
%26 = icmp sle i32 %25, 2
br i1 %26, label %27, label %153
27: ; preds = %24
%28 = load i32, ptr %4, align 4
%29 = icmp eq i32 %28, 1
br i1 %29, label %30, label %62
30: ; preds = %27
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 1, ptr %2, align 4
br label %32
32: ; preds = %58, %30
%33 = load i32, ptr %2, align 4
%34 = load i32, ptr %3, align 4
%35 = icmp sle i32 %33, %34
br i1 %35, label %36, label %61
36: ; preds = %32
%37 = load i32, ptr %2, align 4
%38 = sitofp i32 %37 to double
%39 = fmul double %38, 0x400921FB4D12D84A
%40 = load i32, ptr %3, align 4
%41 = sitofp i32 %40 to double
%42 = fdiv double %39, %41
%43 = fptrunc double %42 to float
%44 = load ptr, ptr %9, align 8
%45 = load i32, ptr %2, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds float, ptr %44, i64 %46
store float %43, ptr %47, align 4
%48 = load ptr, ptr %9, align 8
%49 = load i32, ptr %2, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds float, ptr %48, i64 %50
%52 = load float, ptr %51, align 4
%53 = call float @sin(float noundef %52)
%54 = load ptr, ptr %10, align 8
%55 = load i32, ptr %2, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds float, ptr %54, i64 %56
store float %53, ptr %57, align 4
br label %58
58: ; preds = %36
%59 = load i32, ptr %2, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %2, align 4
br label %32, !llvm.loop !6
61: ; preds = %32
br label %99
62: ; preds = %27
%63 = load i32, ptr %4, align 4
%64 = icmp eq i32 %63, 2
br i1 %64, label %65, label %97
65: ; preds = %62
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store i32 1, ptr %2, align 4
br label %67
67: ; preds = %93, %65
%68 = load i32, ptr %2, align 4
%69 = load i32, ptr %3, align 4
%70 = icmp sle i32 %68, %69
br i1 %70, label %71, label %96
71: ; preds = %67
%72 = load i32, ptr %2, align 4
%73 = sitofp i32 %72 to double
%74 = fmul double %73, 1.000000e+00
%75 = load i32, ptr %3, align 4
%76 = sitofp i32 %75 to double
%77 = fdiv double %74, %76
%78 = fptrunc double %77 to float
%79 = load ptr, ptr %9, align 8
%80 = load i32, ptr %2, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds float, ptr %79, i64 %81
store float %78, ptr %82, align 4
%83 = load ptr, ptr %9, align 8
%84 = load i32, ptr %2, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds float, ptr %83, i64 %85
%87 = load float, ptr %86, align 4
%88 = call float @exp(float noundef %87)
%89 = load ptr, ptr %10, align 8
%90 = load i32, ptr %2, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds float, ptr %89, i64 %91
store float %88, ptr %92, align 4
br label %93
93: ; preds = %71
%94 = load i32, ptr %2, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %2, align 4
br label %67, !llvm.loop !8
96: ; preds = %67
br label %98
97: ; preds = %62
br label %153
98: ; preds = %96
br label %99
99: ; preds = %98, %61
%100 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.8, ptr noundef @.str.9, ptr noundef @.str.10, ptr noundef @.str.11)
store i32 1, ptr %2, align 4
br label %101
101: ; preds = %143, %99
%102 = load i32, ptr %2, align 4
%103 = icmp sle i32 %102, 10
br i1 %103, label %104, label %146
104: ; preds = %101
%105 = load i32, ptr %4, align 4
%106 = icmp eq i32 %105, 1
br i1 %106, label %107, label %116
107: ; preds = %104
%108 = load i32, ptr %2, align 4
%109 = sitofp i32 %108 to double
%110 = fdiv double %109, 1.000000e+01
%111 = fadd double -5.000000e-02, %110
%112 = fmul double %111, 0x400921FB4D12D84A
%113 = fptrunc double %112 to float
store float %113, ptr %7, align 4
%114 = load float, ptr %7, align 4
%115 = call float @sin(float noundef %114)
store float %115, ptr %6, align 4
br label %128
116: ; preds = %104
%117 = load i32, ptr %4, align 4
%118 = icmp eq i32 %117, 2
br i1 %118, label %119, label %127
119: ; preds = %116
%120 = load i32, ptr %2, align 4
%121 = sitofp i32 %120 to double
%122 = fdiv double %121, 1.000000e+01
%123 = fadd double -5.000000e-02, %122
%124 = fptrunc double %123 to float
store float %124, ptr %7, align 4
%125 = load float, ptr %7, align 4
%126 = call float @exp(float noundef %125)
store float %126, ptr %6, align 4
br label %127
127: ; preds = %119, %116
br label %128
128: ; preds = %127, %107
%129 = load ptr, ptr %9, align 8
%130 = load ptr, ptr %10, align 8
%131 = load i32, ptr %3, align 4
%132 = load float, ptr %7, align 4
%133 = call i32 @polint(ptr noundef %129, ptr noundef %130, i32 noundef %131, float noundef %132, ptr noundef %8, ptr noundef %5)
%134 = load float, ptr %7, align 4
%135 = fpext float %134 to double
%136 = load float, ptr %6, align 4
%137 = fpext float %136 to double
%138 = load float, ptr %8, align 4
%139 = fpext float %138 to double
%140 = load float, ptr %5, align 4
%141 = fpext float %140 to double
%142 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, double noundef %135, double noundef %137, double noundef %139, ptr noundef @.str.13, double noundef %141)
br label %143
143: ; preds = %128
%144 = load i32, ptr %2, align 4
%145 = add nsw i32 %144, 1
store i32 %145, ptr %2, align 4
br label %101, !llvm.loop !9
146: ; preds = %101
%147 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
%148 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
%149 = call i32 (...) @getchar()
br label %150
150: ; preds = %146
%151 = load i32, ptr %4, align 4
%152 = add nsw i32 %151, 1
store i32 %152, ptr %4, align 4
br label %24, !llvm.loop !10
153: ; preds = %97, %24
%154 = load ptr, ptr %10, align 8
%155 = load i32, ptr %3, align 4
%156 = call i32 @free_vector(ptr noundef %154, i32 noundef 1, i32 noundef %155)
%157 = load ptr, ptr %9, align 8
%158 = load i32, ptr %3, align 4
%159 = call i32 @free_vector(ptr noundef %157, i32 noundef 1, i32 noundef %158)
store i32 0, ptr %1, align 4
br label %160
160: ; preds = %153, %18
%161 = load i32, ptr %1, align 4
ret i32 %161
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @scanf(ptr noundef, ptr noundef) #1
declare ptr @vector(i32 noundef, i32 noundef) #1
declare float @sin(float noundef) #1
declare float @exp(float noundef) #1
declare i32 @polint(ptr noundef, ptr noundef, i32 noundef, float noundef, ptr noundef, ptr noundef) #1
declare i32 @getchar(...) #1
declare i32 @free_vector(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8nn50ozw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"generation of interpolation tables\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c" ... sin(x) 0<x<PI\0A\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c" ... exp(x) 0<x<1 \0A\00", align 1
@.str.3 = private unnamed_addr constant [38 x i8] c"how many entries go in these tables?\0A\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.5 = private unnamed_addr constant [29 x i8] c"\0Asine function from 0 to PI\0A\00", align 1
@.str.6 = private unnamed_addr constant [35 x i8] c"\0Aexponential function from 0 to 1\0A\00", align 1
@.str.7 = private unnamed_addr constant [21 x i8] c"\0A%9s %13s %16s %13s\0A\00", align 1
@.str.8 = private unnamed_addr constant [2 x i8] c"x\00", align 1
@.str.9 = private unnamed_addr constant [5 x i8] c"f(x)\00", align 1
@.str.10 = private unnamed_addr constant [13 x i8] c"interpolated\00", align 1
@.str.11 = private unnamed_addr constant [6 x i8] c"error\00", align 1
@.str.12 = private unnamed_addr constant [31 x i8] c"%12.6f %12.6f %12.6f %4s %11f\0A\00", align 1
@.str.13 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.14 = private unnamed_addr constant [38 x i8] c"\0A***********************************\0A\00", align 1
@.str.15 = private unnamed_addr constant [14 x i8] c"press RETURN\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 float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%15 = call i64 @scanf(ptr noundef @.str.4, ptr noundef %3)
%16 = load i64, ptr @EOF, align 8
%17 = icmp eq i64 %15, %16
br i1 %17, label %18, label %19
18: ; preds = %0
store i32 1, ptr %1, align 4
br label %166
19: ; preds = %0
%20 = load i32, ptr %3, align 4
%21 = call ptr @vector(i32 noundef 1, i32 noundef %20)
store ptr %21, ptr %9, align 8
%22 = load i32, ptr %3, align 4
%23 = call ptr @vector(i32 noundef 1, i32 noundef %22)
store ptr %23, ptr %10, align 8
store i32 1, ptr %4, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp sle i32 %24, 2
br i1 %25, label %.lr.ph8, label %.loopexit
.lr.ph8: ; preds = %19
br label %26
26: ; preds = %.lr.ph8, %154
%27 = load i32, ptr %4, align 4
%28 = icmp eq i32 %27, 1
br i1 %28, label %29, label %63
29: ; preds = %26
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 1, ptr %2, align 4
%31 = load i32, ptr %2, align 4
%32 = load i32, ptr %3, align 4
%33 = icmp sle i32 %31, %32
br i1 %33, label %.lr.ph2, label %62
.lr.ph2: ; preds = %29
br label %34
34: ; preds = %.lr.ph2, %56
%35 = load i32, ptr %2, align 4
%36 = sitofp i32 %35 to double
%37 = fmul double %36, 0x400921FB4D12D84A
%38 = load i32, ptr %3, align 4
%39 = sitofp i32 %38 to double
%40 = fdiv double %37, %39
%41 = fptrunc double %40 to float
%42 = load ptr, ptr %9, align 8
%43 = load i32, ptr %2, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds float, ptr %42, i64 %44
store float %41, ptr %45, align 4
%46 = load ptr, ptr %9, align 8
%47 = load i32, ptr %2, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds float, ptr %46, i64 %48
%50 = load float, ptr %49, align 4
%51 = call float @sin(float noundef %50)
%52 = load ptr, ptr %10, align 8
%53 = load i32, ptr %2, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds float, ptr %52, i64 %54
store float %51, ptr %55, align 4
br label %56
56: ; preds = %34
%57 = load i32, ptr %2, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %2, align 4
%59 = load i32, ptr %2, align 4
%60 = load i32, ptr %3, align 4
%61 = icmp sle i32 %59, %60
br i1 %61, label %34, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %56
br label %62
62: ; preds = %._crit_edge3, %29
br label %102
63: ; preds = %26
%64 = load i32, ptr %4, align 4
%65 = icmp eq i32 %64, 2
br i1 %65, label %66, label %100
66: ; preds = %63
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store i32 1, ptr %2, align 4
%68 = load i32, ptr %2, align 4
%69 = load i32, ptr %3, align 4
%70 = icmp sle i32 %68, %69
br i1 %70, label %.lr.ph, label %99
.lr.ph: ; preds = %66
br label %71
71: ; preds = %.lr.ph, %93
%72 = load i32, ptr %2, align 4
%73 = sitofp i32 %72 to double
%74 = fmul double %73, 1.000000e+00
%75 = load i32, ptr %3, align 4
%76 = sitofp i32 %75 to double
%77 = fdiv double %74, %76
%78 = fptrunc double %77 to float
%79 = load ptr, ptr %9, align 8
%80 = load i32, ptr %2, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds float, ptr %79, i64 %81
store float %78, ptr %82, align 4
%83 = load ptr, ptr %9, align 8
%84 = load i32, ptr %2, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds float, ptr %83, i64 %85
%87 = load float, ptr %86, align 4
%88 = call float @exp(float noundef %87)
%89 = load ptr, ptr %10, align 8
%90 = load i32, ptr %2, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds float, ptr %89, i64 %91
store float %88, ptr %92, align 4
br label %93
93: ; preds = %71
%94 = load i32, ptr %2, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %2, align 4
%96 = load i32, ptr %2, align 4
%97 = load i32, ptr %3, align 4
%98 = icmp sle i32 %96, %97
br i1 %98, label %71, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %93
br label %99
99: ; preds = %._crit_edge, %66
br label %101
100: ; preds = %63
br label %159
101: ; preds = %99
br label %102
102: ; preds = %101, %62
%103 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.8, ptr noundef @.str.9, ptr noundef @.str.10, ptr noundef @.str.11)
store i32 1, ptr %2, align 4
%104 = load i32, ptr %2, align 4
%105 = icmp sle i32 %104, 10
br i1 %105, label %.lr.ph5, label %150
.lr.ph5: ; preds = %102
br label %106
106: ; preds = %.lr.ph5, %145
%107 = load i32, ptr %4, align 4
%108 = icmp eq i32 %107, 1
br i1 %108, label %109, label %118
109: ; preds = %106
%110 = load i32, ptr %2, align 4
%111 = sitofp i32 %110 to double
%112 = fdiv double %111, 1.000000e+01
%113 = fadd double -5.000000e-02, %112
%114 = fmul double %113, 0x400921FB4D12D84A
%115 = fptrunc double %114 to float
store float %115, ptr %7, align 4
%116 = load float, ptr %7, align 4
%117 = call float @sin(float noundef %116)
store float %117, ptr %6, align 4
br label %130
118: ; preds = %106
%119 = load i32, ptr %4, align 4
%120 = icmp eq i32 %119, 2
br i1 %120, label %121, label %129
121: ; preds = %118
%122 = load i32, ptr %2, align 4
%123 = sitofp i32 %122 to double
%124 = fdiv double %123, 1.000000e+01
%125 = fadd double -5.000000e-02, %124
%126 = fptrunc double %125 to float
store float %126, ptr %7, align 4
%127 = load float, ptr %7, align 4
%128 = call float @exp(float noundef %127)
store float %128, ptr %6, align 4
br label %129
129: ; preds = %121, %118
br label %130
130: ; preds = %129, %109
%131 = load ptr, ptr %9, align 8
%132 = load ptr, ptr %10, align 8
%133 = load i32, ptr %3, align 4
%134 = load float, ptr %7, align 4
%135 = call i32 @polint(ptr noundef %131, ptr noundef %132, i32 noundef %133, float noundef %134, ptr noundef %8, ptr noundef %5)
%136 = load float, ptr %7, align 4
%137 = fpext float %136 to double
%138 = load float, ptr %6, align 4
%139 = fpext float %138 to double
%140 = load float, ptr %8, align 4
%141 = fpext float %140 to double
%142 = load float, ptr %5, align 4
%143 = fpext float %142 to double
%144 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, double noundef %137, double noundef %139, double noundef %141, ptr noundef @.str.13, double noundef %143)
br label %145
145: ; preds = %130
%146 = load i32, ptr %2, align 4
%147 = add nsw i32 %146, 1
store i32 %147, ptr %2, align 4
%148 = load i32, ptr %2, align 4
%149 = icmp sle i32 %148, 10
br i1 %149, label %106, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %145
br label %150
150: ; preds = %._crit_edge6, %102
%151 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
%152 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
%153 = call i32 (...) @getchar()
br label %154
154: ; preds = %150
%155 = load i32, ptr %4, align 4
%156 = add nsw i32 %155, 1
store i32 %156, ptr %4, align 4
%157 = load i32, ptr %4, align 4
%158 = icmp sle i32 %157, 2
br i1 %158, label %26, label %..loopexit_crit_edge, !llvm.loop !10
..loopexit_crit_edge: ; preds = %154
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %19
br label %159
159: ; preds = %.loopexit, %100
%160 = load ptr, ptr %10, align 8
%161 = load i32, ptr %3, align 4
%162 = call i32 @free_vector(ptr noundef %160, i32 noundef 1, i32 noundef %161)
%163 = load ptr, ptr %9, align 8
%164 = load i32, ptr %3, align 4
%165 = call i32 @free_vector(ptr noundef %163, i32 noundef 1, i32 noundef %164)
store i32 0, ptr %1, align 4
br label %166
166: ; preds = %159, %18
%167 = load i32, ptr %1, align 4
ret i32 %167
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @scanf(ptr noundef, ptr noundef) #1
declare ptr @vector(i32 noundef, i32 noundef) #1
declare float @sin(float noundef) #1
declare float @exp(float noundef) #1
declare i32 @polint(ptr noundef, ptr noundef, i32 noundef, float noundef, ptr noundef, ptr noundef) #1
declare i32 @getchar(...) #1
declare i32 @free_vector(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmppbrm92se.c'
source_filename = "/tmp/tmppbrm92se.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppbrm92se.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptr9cl_vi.c'
source_filename = "/tmp/tmptr9cl_vi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @my_putstr(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 = %12, %1
%5 = load ptr, ptr %2, align 8
%6 = load i32, ptr %3, align 4
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, ptr %5, i64 %7
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %21
12: ; preds = %4
%13 = load ptr, ptr %2, align 8
%14 = load i32, ptr %3, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
%18 = call i32 @my_putchar(i8 noundef signext %17)
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %3, align 4
br label %4, !llvm.loop !6
21: ; preds = %4
ret i32 0
}
declare i32 @my_putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptr9cl_vi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @my_putstr(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%4 = load ptr, ptr %2, align 8
%5 = load i32, ptr %3, align 4
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds i8, ptr %4, i64 %6
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 0
br i1 %10, label %.lr.ph, label %27
.lr.ph: ; preds = %1
br label %11
11: ; preds = %.lr.ph, %11
%12 = load ptr, ptr %2, align 8
%13 = load i32, ptr %3, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = call i32 @my_putchar(i8 noundef signext %16)
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %3, align 4
%20 = load ptr, ptr %2, align 8
%21 = load i32, ptr %3, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %25, 0
br i1 %26, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %27
27: ; preds = %._crit_edge, %1
ret i32 0
}
declare i32 @my_putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpw260elpo.c'
source_filename = "/tmp/tmpw260elpo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @panel_cancel_edit_mode() #0 {
%1 = call i32 (...) @panel_get_edit_mode()
%2 = icmp eq i32 %1, 1
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = call i32 @step_edit_set_enable(i32 noundef 0)
br label %17
5: ; preds = %0
%6 = call i32 (...) @panel_get_edit_mode()
%7 = icmp eq i32 %6, 2
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = call i32 @song_edit_set_enable(i32 noundef 0)
br label %16
10: ; preds = %5
%11 = call i32 (...) @panel_get_edit_mode()
%12 = icmp eq i32 %11, 3
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = call i32 @pattern_edit_set_enable(i32 noundef 0)
br label %15
15: ; preds = %13, %10
br label %16
16: ; preds = %15, %8
br label %17
17: ; preds = %16, %3
ret void
}
declare i32 @panel_get_edit_mode(...) #1
declare i32 @step_edit_set_enable(i32 noundef) #1
declare i32 @song_edit_set_enable(i32 noundef) #1
declare i32 @pattern_edit_set_enable(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/tmpw260elpo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @panel_cancel_edit_mode() #0 {
%1 = call i32 (...) @panel_get_edit_mode()
%2 = icmp eq i32 %1, 1
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = call i32 @step_edit_set_enable(i32 noundef 0)
br label %17
5: ; preds = %0
%6 = call i32 (...) @panel_get_edit_mode()
%7 = icmp eq i32 %6, 2
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = call i32 @song_edit_set_enable(i32 noundef 0)
br label %16
10: ; preds = %5
%11 = call i32 (...) @panel_get_edit_mode()
%12 = icmp eq i32 %11, 3
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = call i32 @pattern_edit_set_enable(i32 noundef 0)
br label %15
15: ; preds = %13, %10
br label %16
16: ; preds = %15, %8
br label %17
17: ; preds = %16, %3
ret void
}
declare i32 @panel_get_edit_mode(...) #1
declare i32 @step_edit_set_enable(i32 noundef) #1
declare i32 @song_edit_set_enable(i32 noundef) #1
declare i32 @pattern_edit_set_enable(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/tmpd04g5let.c'
source_filename = "/tmp/tmpd04g5let.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @BF_getBitsFrom(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = icmp ugt i64 %13, 32
br i1 %14, label %15, label %16
15: ; preds = %3
store i32 0, ptr %4, align 4
br label %51
16: ; preds = %3
%17 = load i32, ptr %7, align 4
%18 = sdiv i32 %17, 8
store i32 %18, ptr %9, align 4
%19 = load i32, ptr %7, align 4
%20 = srem i32 %19, 8
store i32 %20, ptr %10, align 4
br label %21
21: ; preds = %48, %16
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, -1
store i32 %23, ptr %5, align 4
%24 = icmp ne i32 %22, 0
br i1 %24, label %25, label %49
25: ; preds = %21
%26 = load i32, ptr %8, align 4
%27 = shl i32 %26, 1
store i32 %27, ptr %8, align 4
%28 = load ptr, ptr %6, align 8
%29 = load i32, ptr %9, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i32, ptr %28, i64 %30
%32 = load i32, ptr %31, align 4
store i32 %32, ptr %11, align 4
%33 = load i32, ptr %10, align 4
%34 = sub nsw i32 7, %33
%35 = load i32, ptr %11, align 4
%36 = ashr i32 %35, %34
store i32 %36, ptr %11, align 4
%37 = load i32, ptr %11, align 4
%38 = and i32 %37, 1
%39 = load i32, ptr %8, align 4
%40 = or i32 %39, %38
store i32 %40, ptr %8, align 4
%41 = load i32, ptr %10, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %10, align 4
%43 = load i32, ptr %10, align 4
%44 = icmp eq i32 8, %43
br i1 %44, label %45, label %48
45: ; preds = %25
%46 = load i32, ptr %9, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %9, align 4
store i32 0, ptr %10, align 4
br label %48
48: ; preds = %45, %25
br label %21, !llvm.loop !6
49: ; preds = %21
%50 = load i32, ptr %8, align 4
store i32 %50, ptr %4, align 4
br label %51
51: ; preds = %49, %15
%52 = load i32, ptr %4, align 4
ret i32 %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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd04g5let.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @BF_getBitsFrom(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = icmp ugt i64 %13, 32
br i1 %14, label %15, label %16
15: ; preds = %3
store i32 0, ptr %4, align 4
br label %53
16: ; preds = %3
%17 = load i32, ptr %7, align 4
%18 = sdiv i32 %17, 8
store i32 %18, ptr %9, align 4
%19 = load i32, ptr %7, align 4
%20 = srem i32 %19, 8
store i32 %20, ptr %10, align 4
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, -1
store i32 %22, ptr %5, align 4
%23 = icmp ne i32 %21, 0
br i1 %23, label %.lr.ph, label %51
.lr.ph: ; preds = %16
br label %24
24: ; preds = %.lr.ph, %47
%25 = load i32, ptr %8, align 4
%26 = shl i32 %25, 1
store i32 %26, ptr %8, align 4
%27 = load ptr, ptr %6, align 8
%28 = load i32, ptr %9, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i32, ptr %27, i64 %29
%31 = load i32, ptr %30, align 4
store i32 %31, ptr %11, align 4
%32 = load i32, ptr %10, align 4
%33 = sub nsw i32 7, %32
%34 = load i32, ptr %11, align 4
%35 = ashr i32 %34, %33
store i32 %35, ptr %11, align 4
%36 = load i32, ptr %11, align 4
%37 = and i32 %36, 1
%38 = load i32, ptr %8, align 4
%39 = or i32 %38, %37
store i32 %39, ptr %8, align 4
%40 = load i32, ptr %10, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %10, align 4
%42 = load i32, ptr %10, align 4
%43 = icmp eq i32 8, %42
br i1 %43, label %44, label %47
44: ; preds = %24
%45 = load i32, ptr %9, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %9, align 4
store i32 0, ptr %10, align 4
br label %47
47: ; preds = %44, %24
%48 = load i32, ptr %5, align 4
%49 = add nsw i32 %48, -1
store i32 %49, ptr %5, align 4
%50 = icmp ne i32 %48, 0
br i1 %50, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %47
br label %51
51: ; preds = %._crit_edge, %16
%52 = load i32, ptr %8, align 4
store i32 %52, ptr %4, align 4
br label %53
53: ; preds = %51, %15
%54 = load i32, ptr %4, align 4
ret i32 %54
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpn_m5y7db.c'
source_filename = "/tmp/tmpn_m5y7db.c"
target datalayout = "e-m:e-p270: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/tmpn_m5y7db.c"
target datalayout = "e-m:e-p270: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/tmpy4zn7s22.c'
source_filename = "/tmp/tmpy4zn7s22.c"
target datalayout = "e-m:e-p270: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/tmpy4zn7s22.c"
target datalayout = "e-m:e-p270: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/tmpicenm7uu.c'
source_filename = "/tmp/tmpicenm7uu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (...) @inputRequest()
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
br label %6
6: ; preds = %65, %0
%7 = load i32, ptr %2, align 4
%8 = icmp ne i32 %7, 99999
br i1 %8, label %9, label %67
9: ; preds = %6
%10 = load i32, ptr %2, align 4
%11 = icmp sle i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = call i32 (...) @invalidInputError()
br label %63
14: ; preds = %9
%15 = load i32, ptr %2, align 4
%16 = icmp sle i32 %15, 12
br i1 %16, label %17, label %36
17: ; preds = %14
%18 = call i32 (...) @printHeaderWithFactorial()
store i32 1, ptr %3, align 4
br label %19
19: ; preds = %32, %17
%20 = load i32, ptr %3, align 4
%21 = load i32, ptr %2, align 4
%22 = icmp sle i32 %20, %21
br i1 %22, label %23, label %35
23: ; preds = %19
%24 = load i32, ptr %3, align 4
%25 = load i32, ptr %3, align 4
%26 = call i32 @factorial(i32 noundef %25)
%27 = load i32, ptr %3, align 4
%28 = call i32 @stirlingsApproximation1(i32 noundef %27)
%29 = load i32, ptr %3, align 4
%30 = call i32 @stirlingsApproximation2(i32 noundef %29)
%31 = call i32 @printFactRow(i32 noundef %24, i32 noundef %26, i32 noundef %28, i32 noundef %30)
br label %32
32: ; preds = %23
%33 = load i32, ptr %3, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %3, align 4
br label %19, !llvm.loop !6
35: ; preds = %19
br label %62
36: ; preds = %14
%37 = call i32 (...) @printApproximationHeader()
%38 = call i32 @stirlingsApproximation1(i32 noundef 1)
%39 = call i32 @stirlingsApproximation2(i32 noundef 1)
%40 = call i32 @printAppxRow(i32 noundef 1, i32 noundef %38, i32 noundef %39)
store i32 5, ptr %3, align 4
br label %41
41: ; preds = %52, %36
%42 = load i32, ptr %3, align 4
%43 = load i32, ptr %2, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %55
45: ; preds = %41
%46 = load i32, ptr %3, align 4
%47 = load i32, ptr %3, align 4
%48 = call i32 @stirlingsApproximation1(i32 noundef %47)
%49 = load i32, ptr %3, align 4
%50 = call i32 @stirlingsApproximation2(i32 noundef %49)
%51 = call i32 @printAppxRow(i32 noundef %46, i32 noundef %48, i32 noundef %50)
br label %52
52: ; preds = %45
%53 = load i32, ptr %3, align 4
%54 = add nsw i32 %53, 5
store i32 %54, ptr %3, align 4
br label %41, !llvm.loop !8
55: ; preds = %41
%56 = load i32, ptr %2, align 4
%57 = load i32, ptr %2, align 4
%58 = call i32 @stirlingsApproximation1(i32 noundef %57)
%59 = load i32, ptr %2, align 4
%60 = call i32 @stirlingsApproximation2(i32 noundef %59)
%61 = call i32 @printAppxRow(i32 noundef %56, i32 noundef %58, i32 noundef %60)
br label %62
62: ; preds = %55, %35
br label %63
63: ; preds = %62, %12
%64 = call i32 (...) @inputRequest()
br label %65
65: ; preds = %63
%66 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
br label %6, !llvm.loop !9
67: ; preds = %6
%68 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %68
}
declare i32 @inputRequest(...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @invalidInputError(...) #1
declare i32 @printHeaderWithFactorial(...) #1
declare i32 @printFactRow(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @factorial(i32 noundef) #1
declare i32 @stirlingsApproximation1(i32 noundef) #1
declare i32 @stirlingsApproximation2(i32 noundef) #1
declare i32 @printApproximationHeader(...) #1
declare i32 @printAppxRow(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpicenm7uu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (...) @inputRequest()
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%6 = load i32, ptr %2, align 4
%7 = icmp ne i32 %6, 99999
br i1 %7, label %.lr.ph5, label %72
.lr.ph5: ; preds = %0
br label %8
8: ; preds = %.lr.ph5, %68
%9 = load i32, ptr %2, align 4
%10 = icmp sle i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = call i32 (...) @invalidInputError()
br label %66
13: ; preds = %8
%14 = load i32, ptr %2, align 4
%15 = icmp sle i32 %14, 12
br i1 %15, label %16, label %37
16: ; preds = %13
%17 = call i32 (...) @printHeaderWithFactorial()
store i32 1, ptr %3, align 4
%18 = load i32, ptr %3, align 4
%19 = load i32, ptr %2, align 4
%20 = icmp sle i32 %18, %19
br i1 %20, label %.lr.ph2, label %36
.lr.ph2: ; preds = %16
br label %21
21: ; preds = %.lr.ph2, %30
%22 = load i32, ptr %3, align 4
%23 = load i32, ptr %3, align 4
%24 = call i32 @factorial(i32 noundef %23)
%25 = load i32, ptr %3, align 4
%26 = call i32 @stirlingsApproximation1(i32 noundef %25)
%27 = load i32, ptr %3, align 4
%28 = call i32 @stirlingsApproximation2(i32 noundef %27)
%29 = call i32 @printFactRow(i32 noundef %22, i32 noundef %24, i32 noundef %26, i32 noundef %28)
br label %30
30: ; preds = %21
%31 = load i32, ptr %3, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %3, align 4
%33 = load i32, ptr %3, align 4
%34 = load i32, ptr %2, align 4
%35 = icmp sle i32 %33, %34
br i1 %35, label %21, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %30
br label %36
36: ; preds = %._crit_edge3, %16
br label %65
37: ; preds = %13
%38 = call i32 (...) @printApproximationHeader()
%39 = call i32 @stirlingsApproximation1(i32 noundef 1)
%40 = call i32 @stirlingsApproximation2(i32 noundef 1)
%41 = call i32 @printAppxRow(i32 noundef 1, i32 noundef %39, i32 noundef %40)
store i32 5, ptr %3, align 4
%42 = load i32, ptr %3, align 4
%43 = load i32, ptr %2, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %.lr.ph, label %58
.lr.ph: ; preds = %37
br label %45
45: ; preds = %.lr.ph, %52
%46 = load i32, ptr %3, align 4
%47 = load i32, ptr %3, align 4
%48 = call i32 @stirlingsApproximation1(i32 noundef %47)
%49 = load i32, ptr %3, align 4
%50 = call i32 @stirlingsApproximation2(i32 noundef %49)
%51 = call i32 @printAppxRow(i32 noundef %46, i32 noundef %48, i32 noundef %50)
br label %52
52: ; preds = %45
%53 = load i32, ptr %3, align 4
%54 = add nsw i32 %53, 5
store i32 %54, ptr %3, align 4
%55 = load i32, ptr %3, align 4
%56 = load i32, ptr %2, align 4
%57 = icmp slt i32 %55, %56
br i1 %57, label %45, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %52
br label %58
58: ; preds = %._crit_edge, %37
%59 = load i32, ptr %2, align 4
%60 = load i32, ptr %2, align 4
%61 = call i32 @stirlingsApproximation1(i32 noundef %60)
%62 = load i32, ptr %2, align 4
%63 = call i32 @stirlingsApproximation2(i32 noundef %62)
%64 = call i32 @printAppxRow(i32 noundef %59, i32 noundef %61, i32 noundef %63)
br label %65
65: ; preds = %58, %36
br label %66
66: ; preds = %65, %11
%67 = call i32 (...) @inputRequest()
br label %68
68: ; preds = %66
%69 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%70 = load i32, ptr %2, align 4
%71 = icmp ne i32 %70, 99999
br i1 %71, label %8, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %68
br label %72
72: ; preds = %._crit_edge6, %0
%73 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %73
}
declare i32 @inputRequest(...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @invalidInputError(...) #1
declare i32 @printHeaderWithFactorial(...) #1
declare i32 @printFactRow(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @factorial(i32 noundef) #1
declare i32 @stirlingsApproximation1(i32 noundef) #1
declare i32 @stirlingsApproximation2(i32 noundef) #1
declare i32 @printApproximationHeader(...) #1
declare i32 @printAppxRow(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpgjj_6md9.c'
source_filename = "/tmp/tmpgjj_6md9.c"
target datalayout = "e-m:e-p270: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/tmpgjj_6md9.c"
target datalayout = "e-m:e-p270: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/tmpsvwnxa89.c'
source_filename = "/tmp/tmpsvwnxa89.c"
target datalayout = "e-m:e-p270: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/tmpsvwnxa89.c"
target datalayout = "e-m:e-p270: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/tmptqmncy_t.c'
source_filename = "/tmp/tmptqmncy_t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i32 }
@FD_SETSIZE = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [5 x i8] c"read\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_serial_byte(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca %struct.timeval, align 4
%10 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%11 = call i32 @FD_ZERO(ptr noundef %8)
%12 = load i32, ptr %5, align 4
%13 = call i32 @FD_SET(i32 noundef %12, ptr noundef %8)
%14 = load i32, ptr %7, align 4
%15 = sdiv i32 %14, 1000
%16 = getelementptr inbounds %struct.timeval, ptr %9, i32 0, i32 0
store i32 %15, ptr %16, align 4
%17 = load i32, ptr %7, align 4
%18 = srem i32 %17, 1000
%19 = mul nsw i32 %18, 1000
%20 = getelementptr inbounds %struct.timeval, ptr %9, i32 0, i32 1
store i32 %19, ptr %20, align 4
br label %21
21: ; preds = %31, %3
%22 = load i32, ptr @FD_SETSIZE, align 4
%23 = call i32 @select(i32 noundef %22, ptr noundef %8, ptr noundef null, ptr noundef null, ptr noundef %9)
store i32 %23, ptr %10, align 4
br label %24
24: ; preds = %21
%25 = load i32, ptr %10, align 4
%26 = icmp slt i32 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %24
%28 = load i64, ptr @errno, align 8
%29 = load i64, ptr @EINTR, align 8
%30 = icmp eq i64 %28, %29
br label %31
31: ; preds = %27, %24
%32 = phi i1 [ false, %24 ], [ %30, %27 ]
br i1 %32, label %21, label %33, !llvm.loop !6
33: ; preds = %31
%34 = load i32, ptr %10, align 4
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %33
store i32 0, ptr %4, align 4
br label %45
37: ; preds = %33
%38 = load i32, ptr %5, align 4
%39 = load ptr, ptr %6, align 8
%40 = call i32 @read(i32 noundef %38, ptr noundef %39, i32 noundef 1)
%41 = icmp ne i32 %40, 1
br i1 %41, label %42, label %44
42: ; preds = %37
%43 = call i32 @perror(ptr noundef @.str)
store i32 0, ptr %4, align 4
br label %45
44: ; preds = %37
store i32 1, ptr %4, align 4
br label %45
45: ; preds = %44, %42, %36
%46 = load i32, ptr %4, align 4
ret i32 %46
}
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptqmncy_t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i32 }
@FD_SETSIZE = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [5 x i8] c"read\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_serial_byte(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca %struct.timeval, align 4
%10 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%11 = call i32 @FD_ZERO(ptr noundef %8)
%12 = load i32, ptr %5, align 4
%13 = call i32 @FD_SET(i32 noundef %12, ptr noundef %8)
%14 = load i32, ptr %7, align 4
%15 = sdiv i32 %14, 1000
%16 = getelementptr inbounds %struct.timeval, ptr %9, i32 0, i32 0
store i32 %15, ptr %16, align 4
%17 = load i32, ptr %7, align 4
%18 = srem i32 %17, 1000
%19 = mul nsw i32 %18, 1000
%20 = getelementptr inbounds %struct.timeval, ptr %9, i32 0, i32 1
store i32 %19, ptr %20, align 4
br label %21
21: ; preds = %31, %3
%22 = load i32, ptr @FD_SETSIZE, align 4
%23 = call i32 @select(i32 noundef %22, ptr noundef %8, ptr noundef null, ptr noundef null, ptr noundef %9)
store i32 %23, ptr %10, align 4
br label %24
24: ; preds = %21
%25 = load i32, ptr %10, align 4
%26 = icmp slt i32 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %24
%28 = load i64, ptr @errno, align 8
%29 = load i64, ptr @EINTR, align 8
%30 = icmp eq i64 %28, %29
br label %31
31: ; preds = %27, %24
%32 = phi i1 [ false, %24 ], [ %30, %27 ]
br i1 %32, label %21, label %33, !llvm.loop !6
33: ; preds = %31
%34 = load i32, ptr %10, align 4
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %33
store i32 0, ptr %4, align 4
br label %45
37: ; preds = %33
%38 = load i32, ptr %5, align 4
%39 = load ptr, ptr %6, align 8
%40 = call i32 @read(i32 noundef %38, ptr noundef %39, i32 noundef 1)
%41 = icmp ne i32 %40, 1
br i1 %41, label %42, label %44
42: ; preds = %37
%43 = call i32 @perror(ptr noundef @.str)
store i32 0, ptr %4, align 4
br label %45
44: ; preds = %37
store i32 1, ptr %4, align 4
br label %45
45: ; preds = %44, %42, %36
%46 = load i32, ptr %4, align 4
ret i32 %46
}
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpizcy36wn.c'
source_filename = "/tmp/tmpizcy36wn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%lld\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100001 x i8], align 16
%3 = alloca [100001 x i8], align 16
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %7)
br label %9
9: ; preds = %13, %0
%10 = load i32, ptr %7, align 4
%11 = add nsw i32 %10, -1
store i32 %11, ptr %7, align 4
%12 = icmp ne i32 %10, 0
br i1 %12, label %13, label %26
13: ; preds = %9
%14 = getelementptr inbounds [100001 x i8], ptr %2, i64 0, i64 0
%15 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %14)
%16 = getelementptr inbounds [100001 x i8], ptr %3, i64 0, i64 0
%17 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %16)
%18 = getelementptr inbounds [100001 x i8], ptr %2, i64 0, i64 0
%19 = call i64 @division(ptr noundef %18, i32 noundef 1000000007)
store i64 %19, ptr %4, align 8
%20 = getelementptr inbounds [100001 x i8], ptr %3, i64 0, i64 0
%21 = call i64 @division(ptr noundef %20, i32 noundef 1000000006)
store i64 %21, ptr %5, align 8
%22 = load i64, ptr %4, align 8
%23 = load i64, ptr %5, align 8
%24 = call i32 @fast_exp(i64 noundef %22, i64 noundef %23, i32 noundef 1000000007)
%25 = call i32 @printf(ptr noundef @.str.2, i32 noundef %24)
br label %9, !llvm.loop !6
26: ; preds = %9
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i64 @division(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fast_exp(i64 noundef, i64 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/tmpizcy36wn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%lld\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100001 x i8], align 16
%3 = alloca [100001 x i8], align 16
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %7)
%9 = load i32, ptr %7, align 4
%10 = add nsw i32 %9, -1
store i32 %10, ptr %7, align 4
%11 = icmp ne i32 %9, 0
br i1 %11, label %.lr.ph, label %28
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %12
%13 = getelementptr inbounds [100001 x i8], ptr %2, i64 0, i64 0
%14 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %13)
%15 = getelementptr inbounds [100001 x i8], ptr %3, i64 0, i64 0
%16 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %15)
%17 = getelementptr inbounds [100001 x i8], ptr %2, i64 0, i64 0
%18 = call i64 @division(ptr noundef %17, i32 noundef 1000000007)
store i64 %18, ptr %4, align 8
%19 = getelementptr inbounds [100001 x i8], ptr %3, i64 0, i64 0
%20 = call i64 @division(ptr noundef %19, i32 noundef 1000000006)
store i64 %20, ptr %5, align 8
%21 = load i64, ptr %4, align 8
%22 = load i64, ptr %5, align 8
%23 = call i32 @fast_exp(i64 noundef %21, i64 noundef %22, i32 noundef 1000000007)
%24 = call i32 @printf(ptr noundef @.str.2, i32 noundef %23)
%25 = load i32, ptr %7, align 4
%26 = add nsw i32 %25, -1
store i32 %26, ptr %7, align 4
%27 = icmp ne i32 %25, 0
br i1 %27, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %28
28: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i64 @division(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fast_exp(i64 noundef, i64 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/tmpxws1lu7a.c'
source_filename = "/tmp/tmpxws1lu7a.c"
target datalayout = "e-m:e-p270: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/tmpxws1lu7a.c"
target datalayout = "e-m:e-p270: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/tmpo5svf8gw.c'
source_filename = "/tmp/tmpo5svf8gw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c" %d\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"Okay bye bye!\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [32 x i8] c"you broke the game i leave now\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [16 x i8] c"Player 1 move: \00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"Player 2 move: \00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"uh no\00", align 1
@.str.6 = private unnamed_addr constant [53 x i8] c"Player 1 Wins! Good job! buhbye now sleepy time...\0A\0A\00", align 1
@.str.7 = private unnamed_addr constant [53 x i8] c"Player 2 Wins! Good job! buhbye now sleepy time...\0A\0A\00", align 1
@.str.8 = private unnamed_addr constant [73 x i8] c"Oh snap, a draw! Y'all must be great at tic-tac-toe waow!\0AWell, buhbye\0A\0A\00", align 1
@.str.9 = private unnamed_addr constant [26 x i8] c"Invalid move, try again!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [3 x [3 x i8]], align 1
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %9, align 4
store i32 0, ptr %10, align 4
%11 = getelementptr inbounds [3 x [3 x i8]], ptr %6, i64 0, i64 0
%12 = call i32 @init_board(ptr noundef %11)
%13 = call i32 (...) @prompt()
%14 = call i32 @scanf(ptr noundef @.str, ptr noundef %7)
%15 = load i32, ptr %7, align 4
switch i32 %15, label %24 [
i32 1, label %16
i32 2, label %20
]
16: ; preds = %2
%17 = getelementptr inbounds [3 x [3 x i8]], ptr %6, i64 0, i64 0
%18 = call i32 @draw_board(ptr noundef %17)
%19 = call i32 (...) @print_controls()
br label %28
20: ; preds = %2
%21 = call i32 @printf(ptr noundef @.str.1)
%22 = load i32, ptr @EXIT_SUCCESS, align 4
%23 = call i32 @exit(i32 noundef %22) #3
unreachable
24: ; preds = %2
%25 = call i32 @printf(ptr noundef @.str.2)
%26 = load i32, ptr @EXIT_FAILURE, align 4
%27 = call i32 @exit(i32 noundef %26) #3
unreachable
28: ; preds = %16
br label %29
29: ; preds = %28, %87
%30 = load i32, ptr %9, align 4
switch i32 %30, label %35 [
i32 1, label %31
i32 2, label %33
]
31: ; preds = %29
%32 = call i32 @printf(ptr noundef @.str.3)
br label %37
33: ; preds = %29
%34 = call i32 @printf(ptr noundef @.str.4)
br label %37
35: ; preds = %29
%36 = call i32 @printf(ptr noundef @.str.5)
br label %37
37: ; preds = %35, %33, %31
%38 = call i32 @scanf(ptr noundef @.str, ptr noundef %8)
%39 = getelementptr inbounds [3 x [3 x i8]], ptr %6, i64 0, i64 0
%40 = load i32, ptr %8, align 4
%41 = call i64 @check_spot(ptr noundef %39, i32 noundef %40)
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %85
43: ; preds = %37
%44 = getelementptr inbounds [3 x [3 x i8]], ptr %6, i64 0, i64 0
%45 = load i32, ptr %8, align 4
%46 = load i32, ptr %9, align 4
%47 = call i32 @move(ptr noundef %44, i32 noundef %45, i32 noundef %46)
%48 = getelementptr inbounds [3 x [3 x i8]], ptr %6, i64 0, i64 0
%49 = call i32 @check_all(ptr noundef %48)
store i32 %49, ptr %10, align 4
%50 = load i32, ptr %10, align 4
%51 = icmp eq i32 %50, 1
br i1 %51, label %52, label %56
52: ; preds = %43
%53 = call i32 @printf(ptr noundef @.str.6)
%54 = load i32, ptr @EXIT_SUCCESS, align 4
%55 = call i32 @exit(i32 noundef %54) #3
unreachable
56: ; preds = %43
%57 = load i32, ptr %10, align 4
%58 = icmp eq i32 %57, 2
br i1 %58, label %59, label %63
59: ; preds = %56
%60 = call i32 @printf(ptr noundef @.str.7)
%61 = load i32, ptr @EXIT_SUCCESS, align 4
%62 = call i32 @exit(i32 noundef %61) #3
unreachable
63: ; preds = %56
br label %64
64: ; preds = %63
%65 = getelementptr inbounds [3 x [3 x i8]], ptr %6, i64 0, i64 0
%66 = call i64 @check_draw(ptr noundef %65)
%67 = icmp ne i64 %66, 0
br i1 %67, label %68, label %72
68: ; preds = %64
%69 = call i32 @printf(ptr noundef @.str.8)
%70 = load i32, ptr @EXIT_SUCCESS, align 4
%71 = call i32 @exit(i32 noundef %70) #3
unreachable
72: ; preds = %64
%73 = getelementptr inbounds [3 x [3 x i8]], ptr %6, i64 0, i64 0
%74 = call i32 @draw_board(ptr noundef %73)
%75 = call i32 (...) @print_controls()
%76 = load i32, ptr %9, align 4
%77 = icmp eq i32 %76, 1
br i1 %77, label %78, label %79
78: ; preds = %72
store i32 2, ptr %9, align 4
br label %84
79: ; preds = %72
%80 = load i32, ptr %9, align 4
%81 = icmp eq i32 %80, 2
br i1 %81, label %82, label %83
82: ; preds = %79
store i32 1, ptr %9, align 4
br label %83
83: ; preds = %82, %79
br label %84
84: ; preds = %83, %78
br label %87
85: ; preds = %37
%86 = call i32 @printf(ptr noundef @.str.9)
br label %87
87: ; preds = %85, %84
br label %29
}
declare i32 @init_board(ptr noundef) #1
declare i32 @prompt(...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @draw_board(ptr noundef) #1
declare i32 @print_controls(...) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @check_spot(ptr noundef, i32 noundef) #1
declare i32 @move(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @check_all(ptr noundef) #1
declare i64 @check_draw(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpo5svf8gw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c" %d\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"Okay bye bye!\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [32 x i8] c"you broke the game i leave now\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [16 x i8] c"Player 1 move: \00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"Player 2 move: \00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"uh no\00", align 1
@.str.6 = private unnamed_addr constant [53 x i8] c"Player 1 Wins! Good job! buhbye now sleepy time...\0A\0A\00", align 1
@.str.7 = private unnamed_addr constant [53 x i8] c"Player 2 Wins! Good job! buhbye now sleepy time...\0A\0A\00", align 1
@.str.8 = private unnamed_addr constant [73 x i8] c"Oh snap, a draw! Y'all must be great at tic-tac-toe waow!\0AWell, buhbye\0A\0A\00", align 1
@.str.9 = private unnamed_addr constant [26 x i8] c"Invalid move, try again!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [3 x [3 x i8]], align 1
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %9, align 4
store i32 0, ptr %10, align 4
%11 = getelementptr inbounds [3 x [3 x i8]], ptr %6, i64 0, i64 0
%12 = call i32 @init_board(ptr noundef %11)
%13 = call i32 (...) @prompt()
%14 = call i32 @scanf(ptr noundef @.str, ptr noundef %7)
%15 = load i32, ptr %7, align 4
switch i32 %15, label %24 [
i32 1, label %16
i32 2, label %20
]
16: ; preds = %2
%17 = getelementptr inbounds [3 x [3 x i8]], ptr %6, i64 0, i64 0
%18 = call i32 @draw_board(ptr noundef %17)
%19 = call i32 (...) @print_controls()
br label %28
20: ; preds = %2
%21 = call i32 @printf(ptr noundef @.str.1)
%22 = load i32, ptr @EXIT_SUCCESS, align 4
%23 = call i32 @exit(i32 noundef %22) #3
unreachable
24: ; preds = %2
%25 = call i32 @printf(ptr noundef @.str.2)
%26 = load i32, ptr @EXIT_FAILURE, align 4
%27 = call i32 @exit(i32 noundef %26) #3
unreachable
28: ; preds = %16
br label %29
29: ; preds = %87, %28
%30 = load i32, ptr %9, align 4
switch i32 %30, label %35 [
i32 1, label %31
i32 2, label %33
]
31: ; preds = %29
%32 = call i32 @printf(ptr noundef @.str.3)
br label %37
33: ; preds = %29
%34 = call i32 @printf(ptr noundef @.str.4)
br label %37
35: ; preds = %29
%36 = call i32 @printf(ptr noundef @.str.5)
br label %37
37: ; preds = %35, %33, %31
%38 = call i32 @scanf(ptr noundef @.str, ptr noundef %8)
%39 = getelementptr inbounds [3 x [3 x i8]], ptr %6, i64 0, i64 0
%40 = load i32, ptr %8, align 4
%41 = call i64 @check_spot(ptr noundef %39, i32 noundef %40)
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %85
43: ; preds = %37
%44 = getelementptr inbounds [3 x [3 x i8]], ptr %6, i64 0, i64 0
%45 = load i32, ptr %8, align 4
%46 = load i32, ptr %9, align 4
%47 = call i32 @move(ptr noundef %44, i32 noundef %45, i32 noundef %46)
%48 = getelementptr inbounds [3 x [3 x i8]], ptr %6, i64 0, i64 0
%49 = call i32 @check_all(ptr noundef %48)
store i32 %49, ptr %10, align 4
%50 = load i32, ptr %10, align 4
%51 = icmp eq i32 %50, 1
br i1 %51, label %52, label %56
52: ; preds = %43
%53 = call i32 @printf(ptr noundef @.str.6)
%54 = load i32, ptr @EXIT_SUCCESS, align 4
%55 = call i32 @exit(i32 noundef %54) #3
unreachable
56: ; preds = %43
%57 = load i32, ptr %10, align 4
%58 = icmp eq i32 %57, 2
br i1 %58, label %59, label %63
59: ; preds = %56
%60 = call i32 @printf(ptr noundef @.str.7)
%61 = load i32, ptr @EXIT_SUCCESS, align 4
%62 = call i32 @exit(i32 noundef %61) #3
unreachable
63: ; preds = %56
br label %64
64: ; preds = %63
%65 = getelementptr inbounds [3 x [3 x i8]], ptr %6, i64 0, i64 0
%66 = call i64 @check_draw(ptr noundef %65)
%67 = icmp ne i64 %66, 0
br i1 %67, label %68, label %72
68: ; preds = %64
%69 = call i32 @printf(ptr noundef @.str.8)
%70 = load i32, ptr @EXIT_SUCCESS, align 4
%71 = call i32 @exit(i32 noundef %70) #3
unreachable
72: ; preds = %64
%73 = getelementptr inbounds [3 x [3 x i8]], ptr %6, i64 0, i64 0
%74 = call i32 @draw_board(ptr noundef %73)
%75 = call i32 (...) @print_controls()
%76 = load i32, ptr %9, align 4
%77 = icmp eq i32 %76, 1
br i1 %77, label %78, label %79
78: ; preds = %72
store i32 2, ptr %9, align 4
br label %84
79: ; preds = %72
%80 = load i32, ptr %9, align 4
%81 = icmp eq i32 %80, 2
br i1 %81, label %82, label %83
82: ; preds = %79
store i32 1, ptr %9, align 4
br label %83
83: ; preds = %82, %79
br label %84
84: ; preds = %83, %78
br label %87
85: ; preds = %37
%86 = call i32 @printf(ptr noundef @.str.9)
br label %87
87: ; preds = %85, %84
br label %29
}
declare i32 @init_board(ptr noundef) #1
declare i32 @prompt(...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @draw_board(ptr noundef) #1
declare i32 @print_controls(...) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @check_spot(ptr noundef, i32 noundef) #1
declare i32 @move(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @check_all(ptr noundef) #1
declare i64 @check_draw(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpal472kvl.c'
source_filename = "/tmp/tmpal472kvl.c"
target datalayout = "e-m:e-p270: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 [415 x i8] c"Usage: %s [options]\0A\0A -s, --server, --host <server> specify server to connect to\0A (default: localhost)\0A -p, --port <port> specify port to connect to\0A (default: 6666)\0A -o, --output print game grid after game\0A (useful in AI vs AI games)\0A -h, --help show this help\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call ptr @basename(ptr noundef %4)
%6 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %5)
%7 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @basename(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/tmpal472kvl.c"
target datalayout = "e-m:e-p270: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 [415 x i8] c"Usage: %s [options]\0A\0A -s, --server, --host <server> specify server to connect to\0A (default: localhost)\0A -p, --port <port> specify port to connect to\0A (default: 6666)\0A -o, --output print game grid after game\0A (useful in AI vs AI games)\0A -h, --help show this help\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call ptr @basename(ptr noundef %4)
%6 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %5)
%7 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @basename(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/tmpe9slf5o1.c'
source_filename = "/tmp/tmpe9slf5o1.c"
target datalayout = "e-m:e-p270: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/tmpe9slf5o1.c"
target datalayout = "e-m:e-p270: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/tmp1tlfm89n.c'
source_filename = "/tmp/tmp1tlfm89n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [7 x i8] c"\0A %.1f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
store i32 0, ptr %1, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%8 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%9 = load float, ptr %2, align 4
store float %9, ptr %5, align 4
%10 = load float, ptr %3, align 4
%11 = load float, ptr %2, align 4
%12 = fcmp ogt float %10, %11
br i1 %12, label %13, label %19
13: ; preds = %0
%14 = load float, ptr %3, align 4
%15 = load float, ptr %4, align 4
%16 = fcmp ogt float %14, %15
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = load float, ptr %3, align 4
store float %18, ptr %5, align 4
br label %19
19: ; preds = %17, %13, %0
%20 = load float, ptr %4, align 4
%21 = load float, ptr %2, align 4
%22 = fcmp ogt float %20, %21
br i1 %22, label %23, label %29
23: ; preds = %19
%24 = load float, ptr %4, align 4
%25 = load float, ptr %3, align 4
%26 = fcmp ogt float %24, %25
br i1 %26, label %27, label %29
27: ; preds = %23
%28 = load float, ptr %4, align 4
store float %28, ptr %5, align 4
br label %29
29: ; preds = %27, %23, %19
%30 = load float, ptr %5, align 4
%31 = call i32 @printf(ptr noundef @.str.1, float noundef %30)
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1tlfm89n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [7 x i8] c"\0A %.1f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
store i32 0, ptr %1, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%8 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%9 = load float, ptr %2, align 4
store float %9, ptr %5, align 4
%10 = load float, ptr %3, align 4
%11 = load float, ptr %2, align 4
%12 = fcmp ogt float %10, %11
br i1 %12, label %13, label %19
13: ; preds = %0
%14 = load float, ptr %3, align 4
%15 = load float, ptr %4, align 4
%16 = fcmp ogt float %14, %15
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = load float, ptr %3, align 4
store float %18, ptr %5, align 4
br label %19
19: ; preds = %17, %13, %0
%20 = load float, ptr %4, align 4
%21 = load float, ptr %2, align 4
%22 = fcmp ogt float %20, %21
br i1 %22, label %23, label %29
23: ; preds = %19
%24 = load float, ptr %4, align 4
%25 = load float, ptr %3, align 4
%26 = fcmp ogt float %24, %25
br i1 %26, label %27, label %29
27: ; preds = %23
%28 = load float, ptr %4, align 4
store float %28, ptr %5, align 4
br label %29
29: ; preds = %27, %23, %19
%30 = load float, ptr %5, align 4
%31 = call i32 @printf(ptr noundef @.str.1, float noundef %30)
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"}
|
; ModuleID = '/tmp/tmp5ouy611u.c'
source_filename = "/tmp/tmp5ouy611u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_solve(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%15 = load ptr, ptr %5, align 8
%16 = call i32 @find_empty_pos_since(ptr noundef %15, ptr noundef %6, ptr noundef %7)
%17 = icmp ne i32 %16, 0
br i1 %17, label %19, label %18
18: ; preds = %3
store i32 0, ptr %4, align 4
br label %145
19: ; preds = %3
%20 = load i32, ptr %6, align 4
%21 = sdiv i32 %20, 3
%22 = mul nsw i32 %21, 3
store i32 %22, ptr %14, align 4
%23 = load i32, ptr %7, align 4
%24 = sdiv i32 %23, 3
%25 = mul nsw i32 %24, 3
store i32 %25, ptr %13, align 4
%26 = load i32, ptr %7, align 4
%27 = icmp slt i32 %26, 9
br i1 %27, label %28, label %32
28: ; preds = %19
%29 = load i32, ptr %6, align 4
store i32 %29, ptr %11, align 4
%30 = load i32, ptr %7, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %12, align 4
br label %35
32: ; preds = %19
%33 = load i32, ptr %6, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %11, align 4
store i32 0, ptr %12, align 4
br label %35
35: ; preds = %32, %28
store i32 49, ptr %8, align 4
br label %36
36: ; preds = %134, %35
%37 = load i32, ptr %8, align 4
%38 = icmp sle i32 %37, 57
br i1 %38, label %39, label %137
39: ; preds = %36
store i32 0, ptr %9, align 4
br label %40
40: ; preds = %57, %39
%41 = load i32, ptr %9, align 4
%42 = icmp slt i32 %41, 9
br i1 %42, label %43, label %60
43: ; preds = %40
%44 = load ptr, ptr %5, align 8
%45 = load i32, ptr %6, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [11 x i8], ptr %44, i64 %46
%48 = load i32, ptr %9, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [11 x i8], ptr %47, i64 0, i64 %49
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = load i32, ptr %8, align 4
%54 = icmp eq i32 %52, %53
br i1 %54, label %55, label %56
55: ; preds = %43
br label %133
56: ; preds = %43
br label %57
57: ; preds = %56
%58 = load i32, ptr %9, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %9, align 4
br label %40, !llvm.loop !6
60: ; preds = %40
store i32 0, ptr %9, align 4
br label %61
61: ; preds = %78, %60
%62 = load i32, ptr %9, align 4
%63 = icmp slt i32 %62, 9
br i1 %63, label %64, label %81
64: ; preds = %61
%65 = load ptr, ptr %5, align 8
%66 = load i32, ptr %9, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [11 x i8], ptr %65, i64 %67
%69 = load i32, ptr %7, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [11 x i8], ptr %68, i64 0, i64 %70
%72 = load i8, ptr %71, align 1
%73 = sext i8 %72 to i32
%74 = load i32, ptr %8, align 4
%75 = icmp eq i32 %73, %74
br i1 %75, label %76, label %77
76: ; preds = %64
br label %133
77: ; preds = %64
br label %78
78: ; preds = %77
%79 = load i32, ptr %9, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %9, align 4
br label %61, !llvm.loop !8
81: ; preds = %61
%82 = load i32, ptr %14, align 4
store i32 %82, ptr %9, align 4
br label %83
83: ; preds = %113, %81
%84 = load i32, ptr %9, align 4
%85 = load i32, ptr %14, align 4
%86 = add nsw i32 %85, 3
%87 = icmp slt i32 %84, %86
br i1 %87, label %88, label %116
88: ; preds = %83
%89 = load i32, ptr %13, align 4
store i32 %89, ptr %10, align 4
br label %90
90: ; preds = %109, %88
%91 = load i32, ptr %10, align 4
%92 = load i32, ptr %13, align 4
%93 = add nsw i32 %92, 3
%94 = icmp slt i32 %91, %93
br i1 %94, label %95, label %112
95: ; preds = %90
%96 = load ptr, ptr %5, align 8
%97 = load i32, ptr %9, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [11 x i8], ptr %96, i64 %98
%100 = load i32, ptr %10, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [11 x i8], ptr %99, i64 0, i64 %101
%103 = load i8, ptr %102, align 1
%104 = sext i8 %103 to i32
%105 = load i32, ptr %8, align 4
%106 = icmp eq i32 %104, %105
br i1 %106, label %107, label %108
107: ; preds = %95
br label %133
108: ; preds = %95
br label %109
109: ; preds = %108
%110 = load i32, ptr %10, align 4
%111 = add nsw i32 %110, 1
store i32 %111, ptr %10, align 4
br label %90, !llvm.loop !9
112: ; preds = %90
br label %113
113: ; preds = %112
%114 = load i32, ptr %9, align 4
%115 = add nsw i32 %114, 1
store i32 %115, ptr %9, align 4
br label %83, !llvm.loop !10
116: ; preds = %83
%117 = load i32, ptr %8, align 4
%118 = trunc i32 %117 to i8
%119 = load ptr, ptr %5, align 8
%120 = load i32, ptr %6, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds [11 x i8], ptr %119, i64 %121
%123 = load i32, ptr %7, align 4
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds [11 x i8], ptr %122, i64 0, i64 %124
store i8 %118, ptr %125, align 1
%126 = load ptr, ptr %5, align 8
%127 = load i32, ptr %11, align 4
%128 = load i32, ptr %12, align 4
%129 = call i32 @_solve(ptr noundef %126, i32 noundef %127, i32 noundef %128)
%130 = icmp eq i32 %129, 0
br i1 %130, label %131, label %132
131: ; preds = %116
store i32 0, ptr %4, align 4
br label %145
132: ; preds = %116
br label %133
133: ; preds = %132, %107, %76, %55
br label %134
134: ; preds = %133
%135 = load i32, ptr %8, align 4
%136 = add nsw i32 %135, 1
store i32 %136, ptr %8, align 4
br label %36, !llvm.loop !11
137: ; preds = %36
%138 = load ptr, ptr %5, align 8
%139 = load i32, ptr %6, align 4
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds [11 x i8], ptr %138, i64 %140
%142 = load i32, ptr %7, align 4
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds [11 x i8], ptr %141, i64 0, i64 %143
store i8 48, ptr %144, align 1
store i32 1, ptr %4, align 4
br label %145
145: ; preds = %137, %131, %18
%146 = load i32, ptr %4, align 4
ret i32 %146
}
declare i32 @find_empty_pos_since(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5ouy611u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_solve(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%15 = load ptr, ptr %5, align 8
%16 = call i32 @find_empty_pos_since(ptr noundef %15, ptr noundef %6, ptr noundef %7)
%17 = icmp ne i32 %16, 0
br i1 %17, label %19, label %18
18: ; preds = %3
store i32 0, ptr %4, align 4
br label %154
19: ; preds = %3
%20 = load i32, ptr %6, align 4
%21 = sdiv i32 %20, 3
%22 = mul nsw i32 %21, 3
store i32 %22, ptr %14, align 4
%23 = load i32, ptr %7, align 4
%24 = sdiv i32 %23, 3
%25 = mul nsw i32 %24, 3
store i32 %25, ptr %13, align 4
%26 = load i32, ptr %7, align 4
%27 = icmp slt i32 %26, 9
br i1 %27, label %28, label %32
28: ; preds = %19
%29 = load i32, ptr %6, align 4
store i32 %29, ptr %11, align 4
%30 = load i32, ptr %7, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %12, align 4
br label %35
32: ; preds = %19
%33 = load i32, ptr %6, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %11, align 4
store i32 0, ptr %12, align 4
br label %35
35: ; preds = %32, %28
store i32 49, ptr %8, align 4
%36 = load i32, ptr %8, align 4
%37 = icmp sle i32 %36, 57
br i1 %37, label %.lr.ph11, label %146
.lr.ph11: ; preds = %35
br label %38
38: ; preds = %.lr.ph11, %141
store i32 0, ptr %9, align 4
%39 = load i32, ptr %9, align 4
%40 = icmp slt i32 %39, 9
br i1 %40, label %.lr.ph, label %60
.lr.ph: ; preds = %38
br label %41
41: ; preds = %.lr.ph, %55
%42 = load ptr, ptr %5, align 8
%43 = load i32, ptr %6, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [11 x i8], ptr %42, i64 %44
%46 = load i32, ptr %9, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [11 x i8], ptr %45, i64 0, i64 %47
%49 = load i8, ptr %48, align 1
%50 = sext i8 %49 to i32
%51 = load i32, ptr %8, align 4
%52 = icmp eq i32 %50, %51
br i1 %52, label %53, label %54
53: ; preds = %41
br label %140
54: ; preds = %41
br label %55
55: ; preds = %54
%56 = load i32, ptr %9, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %9, align 4
%58 = load i32, ptr %9, align 4
%59 = icmp slt i32 %58, 9
br i1 %59, label %41, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %55
br label %60
60: ; preds = %._crit_edge, %38
store i32 0, ptr %9, align 4
%61 = load i32, ptr %9, align 4
%62 = icmp slt i32 %61, 9
br i1 %62, label %.lr.ph2, label %82
.lr.ph2: ; preds = %60
br label %63
63: ; preds = %.lr.ph2, %77
%64 = load ptr, ptr %5, align 8
%65 = load i32, ptr %9, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [11 x i8], ptr %64, i64 %66
%68 = load i32, ptr %7, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [11 x i8], ptr %67, i64 0, i64 %69
%71 = load i8, ptr %70, align 1
%72 = sext i8 %71 to i32
%73 = load i32, ptr %8, align 4
%74 = icmp eq i32 %72, %73
br i1 %74, label %75, label %76
75: ; preds = %63
br label %140
76: ; preds = %63
br label %77
77: ; preds = %76
%78 = load i32, ptr %9, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %9, align 4
%80 = load i32, ptr %9, align 4
%81 = icmp slt i32 %80, 9
br i1 %81, label %63, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %77
br label %82
82: ; preds = %._crit_edge3, %60
%83 = load i32, ptr %14, align 4
store i32 %83, ptr %9, align 4
%84 = load i32, ptr %9, align 4
%85 = load i32, ptr %14, align 4
%86 = add nsw i32 %85, 3
%87 = icmp slt i32 %84, %86
br i1 %87, label %.lr.ph8, label %123
.lr.ph8: ; preds = %82
br label %88
88: ; preds = %.lr.ph8, %116
%89 = load i32, ptr %13, align 4
store i32 %89, ptr %10, align 4
%90 = load i32, ptr %10, align 4
%91 = load i32, ptr %13, align 4
%92 = add nsw i32 %91, 3
%93 = icmp slt i32 %90, %92
br i1 %93, label %.lr.ph5, label %115
.lr.ph5: ; preds = %88
br label %94
94: ; preds = %.lr.ph5, %108
%95 = load ptr, ptr %5, align 8
%96 = load i32, ptr %9, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [11 x i8], ptr %95, i64 %97
%99 = load i32, ptr %10, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [11 x i8], ptr %98, i64 0, i64 %100
%102 = load i8, ptr %101, align 1
%103 = sext i8 %102 to i32
%104 = load i32, ptr %8, align 4
%105 = icmp eq i32 %103, %104
br i1 %105, label %106, label %107
106: ; preds = %94
br label %140
107: ; preds = %94
br label %108
108: ; preds = %107
%109 = load i32, ptr %10, align 4
%110 = add nsw i32 %109, 1
store i32 %110, ptr %10, align 4
%111 = load i32, ptr %10, align 4
%112 = load i32, ptr %13, align 4
%113 = add nsw i32 %112, 3
%114 = icmp slt i32 %111, %113
br i1 %114, label %94, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %108
br label %115
115: ; preds = %._crit_edge6, %88
br label %116
116: ; preds = %115
%117 = load i32, ptr %9, align 4
%118 = add nsw i32 %117, 1
store i32 %118, ptr %9, align 4
%119 = load i32, ptr %9, align 4
%120 = load i32, ptr %14, align 4
%121 = add nsw i32 %120, 3
%122 = icmp slt i32 %119, %121
br i1 %122, label %88, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %116
br label %123
123: ; preds = %._crit_edge9, %82
%124 = load i32, ptr %8, align 4
%125 = trunc i32 %124 to i8
%126 = load ptr, ptr %5, align 8
%127 = load i32, ptr %6, align 4
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds [11 x i8], ptr %126, i64 %128
%130 = load i32, ptr %7, align 4
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds [11 x i8], ptr %129, i64 0, i64 %131
store i8 %125, ptr %132, align 1
%133 = load ptr, ptr %5, align 8
%134 = load i32, ptr %11, align 4
%135 = load i32, ptr %12, align 4
%136 = call i32 @_solve(ptr noundef %133, i32 noundef %134, i32 noundef %135)
%137 = icmp eq i32 %136, 0
br i1 %137, label %138, label %139
138: ; preds = %123
store i32 0, ptr %4, align 4
br label %154
139: ; preds = %123
br label %140
140: ; preds = %139, %106, %75, %53
br label %141
141: ; preds = %140
%142 = load i32, ptr %8, align 4
%143 = add nsw i32 %142, 1
store i32 %143, ptr %8, align 4
%144 = load i32, ptr %8, align 4
%145 = icmp sle i32 %144, 57
br i1 %145, label %38, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %141
br label %146
146: ; preds = %._crit_edge12, %35
%147 = load ptr, ptr %5, align 8
%148 = load i32, ptr %6, align 4
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds [11 x i8], ptr %147, i64 %149
%151 = load i32, ptr %7, align 4
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds [11 x i8], ptr %150, i64 0, i64 %152
store i8 48, ptr %153, align 1
store i32 1, ptr %4, align 4
br label %154
154: ; preds = %146, %138, %18
%155 = load i32, ptr %4, align 4
ret i32 %155
}
declare i32 @find_empty_pos_since(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmp1cd08py4.c'
source_filename = "/tmp/tmp1cd08py4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @host_signal_send_self(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @host_raise(i32 noundef %3)
ret void
}
declare i32 @host_raise(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/tmp1cd08py4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @host_signal_send_self(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @host_raise(i32 noundef %3)
ret void
}
declare i32 @host_raise(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/tmp66p0oy13.c'
source_filename = "/tmp/tmp66p0oy13.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@COLOR_YELLOW = dso_local global i32 0, align 4
@COLOR_BLUE = dso_local global i32 0, align 4
@COLOR_WHITE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [13 x i8] c"Hello World.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca ptr, align 8
%2 = call i32 (...) @initscr()
%3 = call i32 (...) @start_color()
%4 = load i32, ptr @COLOR_YELLOW, align 4
%5 = load i32, ptr @COLOR_BLUE, align 4
%6 = call i32 @init_pair(i32 noundef 1, i32 noundef %4, i32 noundef %5)
%7 = load i32, ptr @COLOR_BLUE, align 4
%8 = load i32, ptr @COLOR_YELLOW, align 4
%9 = call i32 @init_pair(i32 noundef 2, i32 noundef %7, i32 noundef %8)
%10 = load i32, ptr @COLOR_BLUE, align 4
%11 = load i32, ptr @COLOR_WHITE, align 4
%12 = call i32 @init_pair(i32 noundef 3, i32 noundef %10, i32 noundef %11)
%13 = call ptr @newwin(i32 noundef 12, i32 noundef 40, i32 noundef 13, i32 noundef 0)
store ptr %13, ptr %1, align 8
%14 = load ptr, ptr %1, align 8
%15 = call i32 @wmove(ptr noundef %14, i32 noundef 0, i32 noundef 5)
%16 = load ptr, ptr %1, align 8
%17 = call i32 @wprintw(ptr noundef %16, ptr noundef @.str)
%18 = load ptr, ptr %1, align 8
%19 = call i32 @COLOR_PAIR(i32 noundef 1)
%20 = call i32 @wbkgd(ptr noundef %18, i32 noundef %19)
%21 = load ptr, ptr %1, align 8
%22 = call i32 @wrefresh(ptr noundef %21)
%23 = call i32 (...) @getch()
%24 = load ptr, ptr %1, align 8
%25 = call i32 @delwin(ptr noundef %24)
%26 = call i32 (...) @endwin()
ret void
}
declare i32 @initscr(...) #1
declare i32 @start_color(...) #1
declare i32 @init_pair(i32 noundef, i32 noundef, i32 noundef) #1
declare ptr @newwin(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @wmove(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @wprintw(ptr noundef, ptr noundef) #1
declare i32 @wbkgd(ptr noundef, i32 noundef) #1
declare i32 @COLOR_PAIR(i32 noundef) #1
declare i32 @wrefresh(ptr noundef) #1
declare i32 @getch(...) #1
declare i32 @delwin(ptr noundef) #1
declare i32 @endwin(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp66p0oy13.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@COLOR_YELLOW = dso_local global i32 0, align 4
@COLOR_BLUE = dso_local global i32 0, align 4
@COLOR_WHITE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [13 x i8] c"Hello World.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca ptr, align 8
%2 = call i32 (...) @initscr()
%3 = call i32 (...) @start_color()
%4 = load i32, ptr @COLOR_YELLOW, align 4
%5 = load i32, ptr @COLOR_BLUE, align 4
%6 = call i32 @init_pair(i32 noundef 1, i32 noundef %4, i32 noundef %5)
%7 = load i32, ptr @COLOR_BLUE, align 4
%8 = load i32, ptr @COLOR_YELLOW, align 4
%9 = call i32 @init_pair(i32 noundef 2, i32 noundef %7, i32 noundef %8)
%10 = load i32, ptr @COLOR_BLUE, align 4
%11 = load i32, ptr @COLOR_WHITE, align 4
%12 = call i32 @init_pair(i32 noundef 3, i32 noundef %10, i32 noundef %11)
%13 = call ptr @newwin(i32 noundef 12, i32 noundef 40, i32 noundef 13, i32 noundef 0)
store ptr %13, ptr %1, align 8
%14 = load ptr, ptr %1, align 8
%15 = call i32 @wmove(ptr noundef %14, i32 noundef 0, i32 noundef 5)
%16 = load ptr, ptr %1, align 8
%17 = call i32 @wprintw(ptr noundef %16, ptr noundef @.str)
%18 = load ptr, ptr %1, align 8
%19 = call i32 @COLOR_PAIR(i32 noundef 1)
%20 = call i32 @wbkgd(ptr noundef %18, i32 noundef %19)
%21 = load ptr, ptr %1, align 8
%22 = call i32 @wrefresh(ptr noundef %21)
%23 = call i32 (...) @getch()
%24 = load ptr, ptr %1, align 8
%25 = call i32 @delwin(ptr noundef %24)
%26 = call i32 (...) @endwin()
ret void
}
declare i32 @initscr(...) #1
declare i32 @start_color(...) #1
declare i32 @init_pair(i32 noundef, i32 noundef, i32 noundef) #1
declare ptr @newwin(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @wmove(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @wprintw(ptr noundef, ptr noundef) #1
declare i32 @wbkgd(ptr noundef, i32 noundef) #1
declare i32 @COLOR_PAIR(i32 noundef) #1
declare i32 @wrefresh(ptr noundef) #1
declare i32 @getch(...) #1
declare i32 @delwin(ptr noundef) #1
declare i32 @endwin(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfptvlju3.c'
source_filename = "/tmp/tmpfptvlju3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nonzero_random(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = sub nsw i32 %4, 1
store i32 %5, ptr %3, align 4
%6 = call i32 (...) @rand()
%7 = load i32, ptr %3, align 4
%8 = srem i32 %6, %7
%9 = add nsw i32 %8, 1
ret i32 %9
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfptvlju3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nonzero_random(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = sub nsw i32 %4, 1
store i32 %5, ptr %3, align 4
%6 = call i32 (...) @rand()
%7 = load i32, ptr %3, align 4
%8 = srem i32 %6, %7
%9 = add nsw i32 %8, 1
ret i32 %9
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpou8t_mx7.c'
source_filename = "/tmp/tmpou8t_mx7.c"
target datalayout = "e-m:e-p270: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/tmpou8t_mx7.c"
target datalayout = "e-m:e-p270: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/tmptu7jw8so.c'
source_filename = "/tmp/tmptu7jw8so.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getStreamKey(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [11 x i8], align 1
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%12 = getelementptr inbounds [11 x i8], ptr %6, i64 0, i64 0
%13 = load i32, ptr %3, align 4
%14 = call i32 @snprintf(ptr noundef %12, i32 noundef 11, ptr noundef @.str, i32 noundef %13)
%15 = load ptr, ptr %4, align 8
%16 = call i64 @strlen(ptr noundef %15)
store i64 %16, ptr %7, align 8
%17 = getelementptr inbounds [11 x i8], ptr %6, i64 0, i64 0
%18 = call i64 @strlen(ptr noundef %17)
store i64 %18, ptr %8, align 8
%19 = load i64, ptr %7, align 8
%20 = load i64, ptr %8, align 8
%21 = add i64 %19, %20
%22 = call ptr @malloc(i64 noundef %21)
store ptr %22, ptr %5, align 8
store i64 0, ptr %10, align 8
store i64 0, ptr %9, align 8
br label %23
23: ; preds = %30, %2
%24 = load ptr, ptr %4, align 8
%25 = load i64, ptr %9, align 8
%26 = getelementptr inbounds i8, ptr %24, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp ne i32 %28, 35
br i1 %29, label %30, label %40
30: ; preds = %23
%31 = load ptr, ptr %4, align 8
%32 = load i64, ptr %9, align 8
%33 = add i64 %32, 1
store i64 %33, ptr %9, align 8
%34 = getelementptr inbounds i8, ptr %31, i64 %32
%35 = load i8, ptr %34, align 1
%36 = load ptr, ptr %5, align 8
%37 = load i64, ptr %10, align 8
%38 = add i64 %37, 1
store i64 %38, ptr %10, align 8
%39 = getelementptr inbounds i8, ptr %36, i64 %37
store i8 %35, ptr %39, align 1
br label %23, !llvm.loop !6
40: ; preds = %23
store i64 0, ptr %11, align 8
br label %41
41: ; preds = %54, %40
%42 = load i64, ptr %11, align 8
%43 = getelementptr inbounds [11 x i8], ptr %6, i64 0, i64 0
%44 = call i64 @strlen(ptr noundef %43)
%45 = icmp ult i64 %42, %44
br i1 %45, label %46, label %57
46: ; preds = %41
%47 = load i64, ptr %11, align 8
%48 = getelementptr inbounds [11 x i8], ptr %6, i64 0, i64 %47
%49 = load i8, ptr %48, align 1
%50 = load ptr, ptr %5, align 8
%51 = load i64, ptr %10, align 8
%52 = add i64 %51, 1
store i64 %52, ptr %10, align 8
%53 = getelementptr inbounds i8, ptr %50, i64 %51
store i8 %49, ptr %53, align 1
br label %54
54: ; preds = %46
%55 = load i64, ptr %11, align 8
%56 = add i64 %55, 1
store i64 %56, ptr %11, align 8
br label %41, !llvm.loop !8
57: ; preds = %41
%58 = load i64, ptr %9, align 8
%59 = add i64 %58, 1
store i64 %59, ptr %9, align 8
br label %60
60: ; preds = %67, %57
%61 = load ptr, ptr %4, align 8
%62 = load i64, ptr %9, align 8
%63 = getelementptr inbounds i8, ptr %61, i64 %62
%64 = load i8, ptr %63, align 1
%65 = sext i8 %64 to i32
%66 = icmp ne i32 %65, 0
br i1 %66, label %67, label %77
67: ; preds = %60
%68 = load ptr, ptr %4, align 8
%69 = load i64, ptr %9, align 8
%70 = add i64 %69, 1
store i64 %70, ptr %9, align 8
%71 = getelementptr inbounds i8, ptr %68, i64 %69
%72 = load i8, ptr %71, align 1
%73 = load ptr, ptr %5, align 8
%74 = load i64, ptr %10, align 8
%75 = add i64 %74, 1
store i64 %75, ptr %10, align 8
%76 = getelementptr inbounds i8, ptr %73, i64 %74
store i8 %72, ptr %76, align 1
br label %60, !llvm.loop !9
77: ; preds = %60
%78 = load ptr, ptr %5, align 8
%79 = load i64, ptr %10, align 8
%80 = getelementptr inbounds i8, ptr %78, i64 %79
store i8 0, ptr %80, align 1
%81 = load ptr, ptr %5, align 8
ret ptr %81
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptu7jw8so.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getStreamKey(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [11 x i8], align 1
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%12 = getelementptr inbounds [11 x i8], ptr %6, i64 0, i64 0
%13 = load i32, ptr %3, align 4
%14 = call i32 @snprintf(ptr noundef %12, i32 noundef 11, ptr noundef @.str, i32 noundef %13)
%15 = load ptr, ptr %4, align 8
%16 = call i64 @strlen(ptr noundef %15)
store i64 %16, ptr %7, align 8
%17 = getelementptr inbounds [11 x i8], ptr %6, i64 0, i64 0
%18 = call i64 @strlen(ptr noundef %17)
store i64 %18, ptr %8, align 8
%19 = load i64, ptr %7, align 8
%20 = load i64, ptr %8, align 8
%21 = add i64 %19, %20
%22 = call ptr @malloc(i64 noundef %21)
store ptr %22, ptr %5, align 8
store i64 0, ptr %10, align 8
store i64 0, ptr %9, align 8
%23 = load ptr, ptr %4, align 8
%24 = load i64, ptr %9, align 8
%25 = getelementptr inbounds i8, ptr %23, i64 %24
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = icmp ne i32 %27, 35
br i1 %28, label %.lr.ph, label %45
.lr.ph: ; preds = %2
br label %29
29: ; preds = %.lr.ph, %29
%30 = load ptr, ptr %4, align 8
%31 = load i64, ptr %9, align 8
%32 = add i64 %31, 1
store i64 %32, ptr %9, align 8
%33 = getelementptr inbounds i8, ptr %30, i64 %31
%34 = load i8, ptr %33, align 1
%35 = load ptr, ptr %5, align 8
%36 = load i64, ptr %10, align 8
%37 = add i64 %36, 1
store i64 %37, ptr %10, align 8
%38 = getelementptr inbounds i8, ptr %35, i64 %36
store i8 %34, ptr %38, align 1
%39 = load ptr, ptr %4, align 8
%40 = load i64, ptr %9, align 8
%41 = getelementptr inbounds i8, ptr %39, i64 %40
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = icmp ne i32 %43, 35
br i1 %44, label %29, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %45
45: ; preds = %._crit_edge, %2
store i64 0, ptr %11, align 8
%46 = load i64, ptr %11, align 8
%47 = getelementptr inbounds [11 x i8], ptr %6, i64 0, i64 0
%48 = call i64 @strlen(ptr noundef %47)
%49 = icmp ult i64 %46, %48
br i1 %49, label %.lr.ph2, label %64
.lr.ph2: ; preds = %45
br label %50
50: ; preds = %.lr.ph2, %58
%51 = load i64, ptr %11, align 8
%52 = getelementptr inbounds [11 x i8], ptr %6, i64 0, i64 %51
%53 = load i8, ptr %52, align 1
%54 = load ptr, ptr %5, align 8
%55 = load i64, ptr %10, align 8
%56 = add i64 %55, 1
store i64 %56, ptr %10, align 8
%57 = getelementptr inbounds i8, ptr %54, i64 %55
store i8 %53, ptr %57, align 1
br label %58
58: ; preds = %50
%59 = load i64, ptr %11, align 8
%60 = add i64 %59, 1
store i64 %60, ptr %11, align 8
%61 = load i64, ptr %11, align 8
%62 = call i64 @strlen(ptr noundef %47)
%63 = icmp ult i64 %61, %62
br i1 %63, label %50, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %58
br label %64
64: ; preds = %._crit_edge3, %45
%65 = load i64, ptr %9, align 8
%66 = add i64 %65, 1
store i64 %66, ptr %9, align 8
%67 = load ptr, ptr %4, align 8
%68 = load i64, ptr %9, align 8
%69 = getelementptr inbounds i8, ptr %67, i64 %68
%70 = load i8, ptr %69, align 1
%71 = sext i8 %70 to i32
%72 = icmp ne i32 %71, 0
br i1 %72, label %.lr.ph5, label %89
.lr.ph5: ; preds = %64
br label %73
73: ; preds = %.lr.ph5, %73
%74 = load ptr, ptr %4, align 8
%75 = load i64, ptr %9, align 8
%76 = add i64 %75, 1
store i64 %76, ptr %9, align 8
%77 = getelementptr inbounds i8, ptr %74, i64 %75
%78 = load i8, ptr %77, align 1
%79 = load ptr, ptr %5, align 8
%80 = load i64, ptr %10, align 8
%81 = add i64 %80, 1
store i64 %81, ptr %10, align 8
%82 = getelementptr inbounds i8, ptr %79, i64 %80
store i8 %78, ptr %82, align 1
%83 = load ptr, ptr %4, align 8
%84 = load i64, ptr %9, align 8
%85 = getelementptr inbounds i8, ptr %83, i64 %84
%86 = load i8, ptr %85, align 1
%87 = sext i8 %86 to i32
%88 = icmp ne i32 %87, 0
br i1 %88, label %73, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %73
br label %89
89: ; preds = %._crit_edge6, %64
%90 = load ptr, ptr %5, align 8
%91 = load i64, ptr %10, align 8
%92 = getelementptr inbounds i8, ptr %90, i64 %91
store i8 0, ptr %92, align 1
%93 = load ptr, ptr %5, align 8
ret ptr %93
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp3nj8ywoe.c'
source_filename = "/tmp/tmp3nj8ywoe.c"
target datalayout = "e-m:e-p270: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, i32 }
@.str = private unnamed_addr constant [7 x i8] c"accept\00", align 1
@.str.1 = private unnamed_addr constant [37 x i8] c"accept!(IPAddress = %s, Port = %hu)\0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"----- recv begin -----\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.4 = private unnamed_addr constant [22 x i8] c"----- recv end -----\0A\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"%Y/%m/%d %H:%M:%S %Z\00", align 1
@.str.6 = private unnamed_addr constant [9 x i8] c"<html>\0D\0A\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c" <head>\0D\0A\00", align 1
@.str.8 = private unnamed_addr constant [34 x i8] c" <title>Content-Type</title>\0D\0A\00", align 1
@.str.9 = private unnamed_addr constant [12 x i8] c" </head>\0D\0A\00", align 1
@.str.10 = private unnamed_addr constant [11 x i8] c" <body>\0D\0A\00", align 1
@.str.11 = private unnamed_addr constant [5 x i8] c" \00", align 1
@.str.12 = private unnamed_addr constant [3 x i8] c"\0D\0A\00", align 1
@.str.13 = private unnamed_addr constant [12 x i8] c" </body>\0D\0A\00", align 1
@.str.14 = private unnamed_addr constant [10 x i8] c"</html>\0D\0A\00", align 1
@.str.15 = private unnamed_addr constant [18 x i8] c"HTTP/1.0 200 OK\0D\0A\00", align 1
@.str.16 = private unnamed_addr constant [17 x i8] c"Content-Length: \00", align 1
@.str.17 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.18 = private unnamed_addr constant [26 x i8] c"Content-Type: text/html\0D\0A\00", align 1
@.str.19 = private unnamed_addr constant [19 x i8] c"Pragma: no-cache\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @accept_loop(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca %struct.sockaddr_in, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [4096 x i8], align 16
%10 = alloca [4096 x i8], align 16
%11 = alloca [4096 x i8], align 16
%12 = alloca [4096 x i8], align 16
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%15 = alloca [128 x i8], align 16
%16 = alloca i32, align 4
%17 = alloca [128 x i8], align 16
store i32 %0, ptr %2, align 4
store i32 0, ptr %8, align 4
call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 4096, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 4096, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 4096, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %12, i8 0, i64 4096, i1 false)
store i32 0, ptr %16, align 4
br label %18
18: ; preds = %1, %25
store i32 8, ptr %4, align 4
%19 = load i32, ptr %2, align 4
%20 = call i32 @accept(i32 noundef %19, ptr noundef %3, ptr noundef %4)
store i32 %20, ptr %5, align 4
%21 = load i32, ptr %5, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %18
%24 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %8, align 4
br label %103
25: ; preds = %18
%26 = getelementptr inbounds %struct.sockaddr_in, ptr %3, i32 0, i32 1
%27 = load i32, ptr %26, align 4
%28 = call ptr @inet_ntoa(i32 noundef %27)
store ptr %28, ptr %6, align 8
%29 = getelementptr inbounds %struct.sockaddr_in, ptr %3, i32 0, i32 0
%30 = load i32, ptr %29, align 4
%31 = call i32 @ntohs(i32 noundef %30)
store i32 %31, ptr %7, align 4
%32 = load ptr, ptr %6, align 8
%33 = load i32, ptr %7, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %32, i32 noundef %33)
%35 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
%36 = call i32 @memset(ptr noundef %35, i32 noundef 0, i32 noundef 4096)
%37 = load i32, ptr %5, align 4
%38 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
%39 = call i32 @recv(i32 noundef %37, ptr noundef %38, i32 noundef 4096, i32 noundef 0)
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%41 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %41)
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%44 = call i32 @time(ptr noundef null)
store i32 %44, ptr %13, align 4
%45 = call ptr @gmtime(ptr noundef %13)
store ptr %45, ptr %14, align 8
%46 = getelementptr inbounds [128 x i8], ptr %15, i64 0, i64 0
%47 = load ptr, ptr %14, align 8
%48 = call i32 @strftime(ptr noundef %46, i32 noundef 128, ptr noundef @.str.5, ptr noundef %47)
%49 = getelementptr inbounds [4096 x i8], ptr %12, i64 0, i64 0
%50 = call i32 @strcpy(ptr noundef %49, ptr noundef @.str.6)
%51 = getelementptr inbounds [4096 x i8], ptr %12, i64 0, i64 0
%52 = call i32 @strcat(ptr noundef %51, ptr noundef @.str.7)
%53 = getelementptr inbounds [4096 x i8], ptr %12, i64 0, i64 0
%54 = call i32 @strcat(ptr noundef %53, ptr noundef @.str.8)
%55 = getelementptr inbounds [4096 x i8], ptr %12, i64 0, i64 0
%56 = call i32 @strcat(ptr noundef %55, ptr noundef @.str.9)
%57 = getelementptr inbounds [4096 x i8], ptr %12, i64 0, i64 0
%58 = call i32 @strcat(ptr noundef %57, ptr noundef @.str.10)
%59 = getelementptr inbounds [4096 x i8], ptr %12, i64 0, i64 0
%60 = call i32 @strcat(ptr noundef %59, ptr noundef @.str.11)
%61 = getelementptr inbounds [4096 x i8], ptr %12, i64 0, i64 0
%62 = getelementptr inbounds [128 x i8], ptr %15, i64 0, i64 0
%63 = call i32 @strcat(ptr noundef %61, ptr noundef %62)
%64 = getelementptr inbounds [4096 x i8], ptr %12, i64 0, i64 0
%65 = call i32 @strcat(ptr noundef %64, ptr noundef @.str.12)
%66 = getelementptr inbounds [4096 x i8], ptr %12, i64 0, i64 0
%67 = call i32 @strcat(ptr noundef %66, ptr noundef @.str.13)
%68 = getelementptr inbounds [4096 x i8], ptr %12, i64 0, i64 0
%69 = call i32 @strcat(ptr noundef %68, ptr noundef @.str.14)
%70 = getelementptr inbounds [4096 x i8], ptr %11, i64 0, i64 0
%71 = call i32 @strcpy(ptr noundef %70, ptr noundef @.str.15)
%72 = getelementptr inbounds [4096 x i8], ptr %11, i64 0, i64 0
%73 = call i32 @strcat(ptr noundef %72, ptr noundef @.str.16)
%74 = getelementptr inbounds [4096 x i8], ptr %12, i64 0, i64 0
%75 = call i32 @strlen(ptr noundef %74)
store i32 %75, ptr %16, align 4
%76 = getelementptr inbounds [128 x i8], ptr %17, i64 0, i64 0
%77 = load i32, ptr %16, align 4
%78 = call i32 @sprintf(ptr noundef %76, ptr noundef @.str.17, i32 noundef %77)
%79 = getelementptr inbounds [4096 x i8], ptr %11, i64 0, i64 0
%80 = getelementptr inbounds [128 x i8], ptr %17, i64 0, i64 0
%81 = call i32 @strcat(ptr noundef %79, ptr noundef %80)
%82 = getelementptr inbounds [4096 x i8], ptr %11, i64 0, i64 0
%83 = call i32 @strcat(ptr noundef %82, ptr noundef @.str.12)
%84 = getelementptr inbounds [4096 x i8], ptr %11, i64 0, i64 0
%85 = call i32 @strcat(ptr noundef %84, ptr noundef @.str.18)
%86 = getelementptr inbounds [4096 x i8], ptr %11, i64 0, i64 0
%87 = call i32 @strcat(ptr noundef %86, ptr noundef @.str.19)
%88 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%89 = getelementptr inbounds [4096 x i8], ptr %11, i64 0, i64 0
%90 = call i32 @strcpy(ptr noundef %88, ptr noundef %89)
%91 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%92 = call i32 @strcat(ptr noundef %91, ptr noundef @.str.12)
%93 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%94 = getelementptr inbounds [4096 x i8], ptr %12, i64 0, i64 0
%95 = call i32 @strcat(ptr noundef %93, ptr noundef %94)
%96 = load i32, ptr %5, align 4
%97 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%98 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%99 = call i32 @strlen(ptr noundef %98)
%100 = call i32 @send(i32 noundef %96, ptr noundef %97, i32 noundef %99, i32 noundef 0)
%101 = load i32, ptr %5, align 4
%102 = call i32 @close(i32 noundef %101)
br label %18
103: ; preds = %23
%104 = load i32, ptr %8, align 4
ret i32 %104
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @perror(ptr noundef) #2
declare ptr @inet_ntoa(i32 noundef) #2
declare i32 @ntohs(i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @time(ptr noundef) #2
declare ptr @gmtime(ptr noundef) #2
declare i32 @strftime(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i32 @strcat(ptr noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @close(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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/tmp3nj8ywoe.c"
target datalayout = "e-m:e-p270: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, i32 }
@.str = private unnamed_addr constant [7 x i8] c"accept\00", align 1
@.str.1 = private unnamed_addr constant [37 x i8] c"accept!(IPAddress = %s, Port = %hu)\0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"----- recv begin -----\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.4 = private unnamed_addr constant [22 x i8] c"----- recv end -----\0A\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"%Y/%m/%d %H:%M:%S %Z\00", align 1
@.str.6 = private unnamed_addr constant [9 x i8] c"<html>\0D\0A\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c" <head>\0D\0A\00", align 1
@.str.8 = private unnamed_addr constant [34 x i8] c" <title>Content-Type</title>\0D\0A\00", align 1
@.str.9 = private unnamed_addr constant [12 x i8] c" </head>\0D\0A\00", align 1
@.str.10 = private unnamed_addr constant [11 x i8] c" <body>\0D\0A\00", align 1
@.str.11 = private unnamed_addr constant [5 x i8] c" \00", align 1
@.str.12 = private unnamed_addr constant [3 x i8] c"\0D\0A\00", align 1
@.str.13 = private unnamed_addr constant [12 x i8] c" </body>\0D\0A\00", align 1
@.str.14 = private unnamed_addr constant [10 x i8] c"</html>\0D\0A\00", align 1
@.str.15 = private unnamed_addr constant [18 x i8] c"HTTP/1.0 200 OK\0D\0A\00", align 1
@.str.16 = private unnamed_addr constant [17 x i8] c"Content-Length: \00", align 1
@.str.17 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.18 = private unnamed_addr constant [26 x i8] c"Content-Type: text/html\0D\0A\00", align 1
@.str.19 = private unnamed_addr constant [19 x i8] c"Pragma: no-cache\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @accept_loop(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca %struct.sockaddr_in, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [4096 x i8], align 16
%10 = alloca [4096 x i8], align 16
%11 = alloca [4096 x i8], align 16
%12 = alloca [4096 x i8], align 16
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%15 = alloca [128 x i8], align 16
%16 = alloca i32, align 4
%17 = alloca [128 x i8], align 16
store i32 %0, ptr %2, align 4
store i32 0, ptr %8, align 4
call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 4096, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 4096, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 4096, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %12, i8 0, i64 4096, i1 false)
store i32 0, ptr %16, align 4
store i32 8, ptr %4, align 4
%18 = load i32, ptr %2, align 4
%19 = call i32 @accept(i32 noundef %18, ptr noundef %3, ptr noundef %4)
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %5, align 4
%21 = icmp slt i32 %20, 0
br i1 %21, label %22, label %.lr.ph
.lr.ph: ; preds = %1
br label %24
._crit_edge: ; preds = %24
br label %22
22: ; preds = %._crit_edge, %1
%23 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %8, align 4
br label %106
24: ; preds = %.lr.ph, %24
%25 = getelementptr inbounds %struct.sockaddr_in, ptr %3, i32 0, i32 1
%26 = load i32, ptr %25, align 4
%27 = call ptr @inet_ntoa(i32 noundef %26)
store ptr %27, ptr %6, align 8
%28 = getelementptr inbounds %struct.sockaddr_in, ptr %3, i32 0, i32 0
%29 = load i32, ptr %28, align 4
%30 = call i32 @ntohs(i32 noundef %29)
store i32 %30, ptr %7, align 4
%31 = load ptr, ptr %6, align 8
%32 = load i32, ptr %7, align 4
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %31, i32 noundef %32)
%34 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
%35 = call i32 @memset(ptr noundef %34, i32 noundef 0, i32 noundef 4096)
%36 = load i32, ptr %5, align 4
%37 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
%38 = call i32 @recv(i32 noundef %36, ptr noundef %37, i32 noundef 4096, i32 noundef 0)
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%40 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %40)
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%43 = call i32 @time(ptr noundef null)
store i32 %43, ptr %13, align 4
%44 = call ptr @gmtime(ptr noundef %13)
store ptr %44, ptr %14, align 8
%45 = getelementptr inbounds [128 x i8], ptr %15, i64 0, i64 0
%46 = load ptr, ptr %14, align 8
%47 = call i32 @strftime(ptr noundef %45, i32 noundef 128, ptr noundef @.str.5, ptr noundef %46)
%48 = getelementptr inbounds [4096 x i8], ptr %12, i64 0, i64 0
%49 = call i32 @strcpy(ptr noundef %48, ptr noundef @.str.6)
%50 = getelementptr inbounds [4096 x i8], ptr %12, i64 0, i64 0
%51 = call i32 @strcat(ptr noundef %50, ptr noundef @.str.7)
%52 = getelementptr inbounds [4096 x i8], ptr %12, i64 0, i64 0
%53 = call i32 @strcat(ptr noundef %52, ptr noundef @.str.8)
%54 = getelementptr inbounds [4096 x i8], ptr %12, i64 0, i64 0
%55 = call i32 @strcat(ptr noundef %54, ptr noundef @.str.9)
%56 = getelementptr inbounds [4096 x i8], ptr %12, i64 0, i64 0
%57 = call i32 @strcat(ptr noundef %56, ptr noundef @.str.10)
%58 = getelementptr inbounds [4096 x i8], ptr %12, i64 0, i64 0
%59 = call i32 @strcat(ptr noundef %58, ptr noundef @.str.11)
%60 = getelementptr inbounds [4096 x i8], ptr %12, i64 0, i64 0
%61 = getelementptr inbounds [128 x i8], ptr %15, i64 0, i64 0
%62 = call i32 @strcat(ptr noundef %60, ptr noundef %61)
%63 = getelementptr inbounds [4096 x i8], ptr %12, i64 0, i64 0
%64 = call i32 @strcat(ptr noundef %63, ptr noundef @.str.12)
%65 = getelementptr inbounds [4096 x i8], ptr %12, i64 0, i64 0
%66 = call i32 @strcat(ptr noundef %65, ptr noundef @.str.13)
%67 = getelementptr inbounds [4096 x i8], ptr %12, i64 0, i64 0
%68 = call i32 @strcat(ptr noundef %67, ptr noundef @.str.14)
%69 = getelementptr inbounds [4096 x i8], ptr %11, i64 0, i64 0
%70 = call i32 @strcpy(ptr noundef %69, ptr noundef @.str.15)
%71 = getelementptr inbounds [4096 x i8], ptr %11, i64 0, i64 0
%72 = call i32 @strcat(ptr noundef %71, ptr noundef @.str.16)
%73 = getelementptr inbounds [4096 x i8], ptr %12, i64 0, i64 0
%74 = call i32 @strlen(ptr noundef %73)
store i32 %74, ptr %16, align 4
%75 = getelementptr inbounds [128 x i8], ptr %17, i64 0, i64 0
%76 = load i32, ptr %16, align 4
%77 = call i32 @sprintf(ptr noundef %75, ptr noundef @.str.17, i32 noundef %76)
%78 = getelementptr inbounds [4096 x i8], ptr %11, i64 0, i64 0
%79 = getelementptr inbounds [128 x i8], ptr %17, i64 0, i64 0
%80 = call i32 @strcat(ptr noundef %78, ptr noundef %79)
%81 = getelementptr inbounds [4096 x i8], ptr %11, i64 0, i64 0
%82 = call i32 @strcat(ptr noundef %81, ptr noundef @.str.12)
%83 = getelementptr inbounds [4096 x i8], ptr %11, i64 0, i64 0
%84 = call i32 @strcat(ptr noundef %83, ptr noundef @.str.18)
%85 = getelementptr inbounds [4096 x i8], ptr %11, i64 0, i64 0
%86 = call i32 @strcat(ptr noundef %85, ptr noundef @.str.19)
%87 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%88 = getelementptr inbounds [4096 x i8], ptr %11, i64 0, i64 0
%89 = call i32 @strcpy(ptr noundef %87, ptr noundef %88)
%90 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%91 = call i32 @strcat(ptr noundef %90, ptr noundef @.str.12)
%92 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%93 = getelementptr inbounds [4096 x i8], ptr %12, i64 0, i64 0
%94 = call i32 @strcat(ptr noundef %92, ptr noundef %93)
%95 = load i32, ptr %5, align 4
%96 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%97 = getelementptr inbounds [4096 x i8], ptr %10, i64 0, i64 0
%98 = call i32 @strlen(ptr noundef %97)
%99 = call i32 @send(i32 noundef %95, ptr noundef %96, i32 noundef %98, i32 noundef 0)
%100 = load i32, ptr %5, align 4
%101 = call i32 @close(i32 noundef %100)
store i32 8, ptr %4, align 4
%102 = load i32, ptr %2, align 4
%103 = call i32 @accept(i32 noundef %102, ptr noundef %3, ptr noundef %4)
store i32 %103, ptr %5, align 4
%104 = load i32, ptr %5, align 4
%105 = icmp slt i32 %104, 0
br i1 %105, label %._crit_edge, label %24
106: ; preds = %22
%107 = load i32, ptr %8, align 4
ret i32 %107
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @perror(ptr noundef) #2
declare ptr @inet_ntoa(i32 noundef) #2
declare i32 @ntohs(i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @time(ptr noundef) #2
declare ptr @gmtime(ptr noundef) #2
declare i32 @strftime(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i32 @strcat(ptr noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @close(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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/tmpllhwruwg.c'
source_filename = "/tmp/tmpllhwruwg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tlm_encode_wspr_temp(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp slt i32 %4, -50
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 0, ptr %2, align 4
br label %15
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = icmp sgt i32 %8, 44
br i1 %9, label %10, label %11
10: ; preds = %7
store i32 18, ptr %2, align 4
br label %15
11: ; preds = %7
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %12, 50
%14 = sdiv i32 %13, 5
store i32 %14, ptr %2, align 4
br label %15
15: ; preds = %11, %10, %6
%16 = load i32, ptr %2, align 4
ret i32 %16
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpllhwruwg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tlm_encode_wspr_temp(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp slt i32 %4, -50
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 0, ptr %2, align 4
br label %15
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = icmp sgt i32 %8, 44
br i1 %9, label %10, label %11
10: ; preds = %7
store i32 18, ptr %2, align 4
br label %15
11: ; preds = %7
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %12, 50
%14 = sdiv i32 %13, 5
store i32 %14, ptr %2, align 4
br label %15
15: ; preds = %11, %10, %6
%16 = load i32, ptr %2, align 4
ret i32 %16
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphmi_xega.c'
source_filename = "/tmp/tmphmi_xega.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [52 x i8] c"Your choice (%s) did not match any of the choices:\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c", \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ask_menu(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca [1024 x i8], align 16
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
%15 = load ptr, ptr %11, align 8
store i32 -1, ptr %15, align 4
br label %16
16: ; preds = %5, %76
%17 = load ptr, ptr %7, align 8
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %17)
%19 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
%20 = load i32, ptr @stdin, align 4
%21 = call i32 @fgets(ptr noundef %19, i32 noundef 1024, i32 noundef %20)
%22 = icmp ne i32 %21, 0
br i1 %22, label %24, label %23
23: ; preds = %16
store i32 -1, ptr %6, align 4
br label %78
24: ; preds = %16
%25 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
%26 = call ptr @clean_string(ptr noundef %25)
store ptr %26, ptr %13, align 8
%27 = load ptr, ptr %13, align 8
%28 = call i32 @strlen(ptr noundef %27)
%29 = icmp slt i32 %28, 1
br i1 %29, label %30, label %33
30: ; preds = %24
%31 = load i32, ptr %10, align 4
%32 = load ptr, ptr %11, align 8
store i32 %31, ptr %32, align 4
store i32 0, ptr %6, align 4
br label %78
33: ; preds = %24
store i32 0, ptr %14, align 4
br label %34
34: ; preds = %51, %33
%35 = load i32, ptr %14, align 4
%36 = load i32, ptr %8, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %38, label %54
38: ; preds = %34
%39 = load ptr, ptr %9, align 8
%40 = load i32, ptr %14, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds ptr, ptr %39, i64 %41
%43 = load ptr, ptr %42, align 8
%44 = load ptr, ptr %13, align 8
%45 = call i32 @strcmp(ptr noundef %43, ptr noundef %44)
%46 = icmp ne i32 %45, 0
br i1 %46, label %50, label %47
47: ; preds = %38
%48 = load i32, ptr %14, align 4
%49 = load ptr, ptr %11, align 8
store i32 %48, ptr %49, align 4
store i32 0, ptr %6, align 4
br label %78
50: ; preds = %38
br label %51
51: ; preds = %50
%52 = load i32, ptr %14, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %14, align 4
br label %34, !llvm.loop !6
54: ; preds = %34
%55 = load ptr, ptr %13, align 8
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %55)
store i32 0, ptr %14, align 4
br label %57
57: ; preds = %73, %54
%58 = load i32, ptr %14, align 4
%59 = load i32, ptr %8, align 4
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %76
61: ; preds = %57
%62 = load i32, ptr %14, align 4
%63 = icmp sgt i32 %62, 0
br i1 %63, label %64, label %66
64: ; preds = %61
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %66
66: ; preds = %64, %61
%67 = load ptr, ptr %9, align 8
%68 = load i32, ptr %14, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds ptr, ptr %67, i64 %69
%71 = load ptr, ptr %70, align 8
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %71)
br label %73
73: ; preds = %66
%74 = load i32, ptr %14, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %14, align 4
br label %57, !llvm.loop !8
76: ; preds = %57
%77 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %16
78: ; preds = %47, %30, %23
%79 = load i32, ptr %6, align 4
ret i32 %79
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @clean_string(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphmi_xega.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [52 x i8] c"Your choice (%s) did not match any of the choices:\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c", \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ask_menu(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca [1024 x i8], align 16
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
%15 = load ptr, ptr %11, align 8
store i32 -1, ptr %15, align 4
%16 = load ptr, ptr %7, align 8
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %16)
%18 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
%19 = load i32, ptr @stdin, align 4
%20 = call i32 @fgets(ptr noundef %18, i32 noundef 1024, i32 noundef %19)
%21 = icmp ne i32 %20, 0
br i1 %21, label %.lr.ph5, label %22
.lr.ph5: ; preds = %5
br label %23
._crit_edge6: ; preds = %79
br label %22
22: ; preds = %._crit_edge6, %5
store i32 -1, ptr %6, align 4
br label %86
23: ; preds = %.lr.ph5, %79
%24 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
%25 = call ptr @clean_string(ptr noundef %24)
store ptr %25, ptr %13, align 8
%26 = load ptr, ptr %13, align 8
%27 = call i32 @strlen(ptr noundef %26)
%28 = icmp slt i32 %27, 1
br i1 %28, label %29, label %32
29: ; preds = %23
%30 = load i32, ptr %10, align 4
%31 = load ptr, ptr %11, align 8
store i32 %30, ptr %31, align 4
store i32 0, ptr %6, align 4
br label %86
32: ; preds = %23
store i32 0, ptr %14, align 4
%33 = load i32, ptr %14, align 4
%34 = load i32, ptr %8, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %.lr.ph, label %55
.lr.ph: ; preds = %32
br label %36
36: ; preds = %.lr.ph, %49
%37 = load ptr, ptr %9, align 8
%38 = load i32, ptr %14, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds ptr, ptr %37, i64 %39
%41 = load ptr, ptr %40, align 8
%42 = load ptr, ptr %13, align 8
%43 = call i32 @strcmp(ptr noundef %41, ptr noundef %42)
%44 = icmp ne i32 %43, 0
br i1 %44, label %48, label %45
45: ; preds = %36
%46 = load i32, ptr %14, align 4
%47 = load ptr, ptr %11, align 8
store i32 %46, ptr %47, align 4
store i32 0, ptr %6, align 4
br label %86
48: ; preds = %36
br label %49
49: ; preds = %48
%50 = load i32, ptr %14, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %14, align 4
%52 = load i32, ptr %14, align 4
%53 = load i32, ptr %8, align 4
%54 = icmp slt i32 %52, %53
br i1 %54, label %36, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %49
br label %55
55: ; preds = %._crit_edge, %32
%56 = load ptr, ptr %13, align 8
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %56)
store i32 0, ptr %14, align 4
%58 = load i32, ptr %14, align 4
%59 = load i32, ptr %8, align 4
%60 = icmp slt i32 %58, %59
br i1 %60, label %.lr.ph2, label %79
.lr.ph2: ; preds = %55
br label %61
61: ; preds = %.lr.ph2, %73
%62 = load i32, ptr %14, align 4
%63 = icmp sgt i32 %62, 0
br i1 %63, label %64, label %66
64: ; preds = %61
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %66
66: ; preds = %64, %61
%67 = load ptr, ptr %9, align 8
%68 = load i32, ptr %14, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds ptr, ptr %67, i64 %69
%71 = load ptr, ptr %70, align 8
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %71)
br label %73
73: ; preds = %66
%74 = load i32, ptr %14, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %14, align 4
%76 = load i32, ptr %14, align 4
%77 = load i32, ptr %8, align 4
%78 = icmp slt i32 %76, %77
br i1 %78, label %61, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %73
br label %79
79: ; preds = %._crit_edge3, %55
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%81 = load ptr, ptr %7, align 8
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %81)
%83 = load i32, ptr @stdin, align 4
%84 = call i32 @fgets(ptr noundef %18, i32 noundef 1024, i32 noundef %83)
%85 = icmp ne i32 %84, 0
br i1 %85, label %23, label %._crit_edge6
86: ; preds = %45, %29, %22
%87 = load i32, ptr %6, align 4
ret i32 %87
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @clean_string(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpraiz4zp_.c'
source_filename = "/tmp/tmpraiz4zp_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getWords(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%10 = call i64 @malloc(i32 noundef 400)
%11 = inttoptr i64 %10 to ptr
store ptr %11, ptr %3, align 8
%12 = load ptr, ptr %3, align 8
%13 = call i32 @memset(ptr noundef %12, i32 noundef 0, i32 noundef 400)
%14 = load ptr, ptr %2, align 8
%15 = call i32 @strlen(ptr noundef %14)
store i32 %15, ptr %8, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %7, align 4
br label %16
16: ; preds = %59, %1
%17 = load i32, ptr %7, align 4
%18 = load i32, ptr %8, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %62
20: ; preds = %16
%21 = load ptr, ptr %2, align 8
%22 = load i32, ptr %7, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
%25 = load i8, ptr %24, align 1
store i8 %25, ptr %5, align 1
%26 = load i8, ptr %5, align 1
%27 = call i64 @isDelimiter(i8 noundef signext %26)
%28 = icmp ne i64 %27, 0
br i1 %28, label %29, label %41
29: ; preds = %20
%30 = load i32, ptr %6, align 4
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %39
32: ; preds = %29
store i32 0, ptr %6, align 4
%33 = load ptr, ptr %4, align 8
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %9, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %9, align 4
%37 = sext i32 %35 to i64
%38 = getelementptr inbounds ptr, ptr %34, i64 %37
store ptr %33, ptr %38, align 8
br label %40
39: ; preds = %29
br label %40
40: ; preds = %39, %32
br label %58
41: ; preds = %20
%42 = load i32, ptr %6, align 4
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %51
44: ; preds = %41
%45 = load i8, ptr %5, align 1
%46 = load ptr, ptr %4, align 8
%47 = load i32, ptr %6, align 4
%48 = add i32 %47, 1
store i32 %48, ptr %6, align 4
%49 = zext i32 %47 to i64
%50 = getelementptr inbounds i8, ptr %46, i64 %49
store i8 %45, ptr %50, align 1
br label %57
51: ; preds = %41
%52 = call i64 @malloc(i32 noundef 24)
%53 = inttoptr i64 %52 to ptr
store ptr %53, ptr %4, align 8
%54 = load i8, ptr %5, align 1
%55 = load ptr, ptr %4, align 8
%56 = getelementptr inbounds i8, ptr %55, i64 0
store i8 %54, ptr %56, align 1
store i32 1, ptr %6, align 4
br label %57
57: ; preds = %51, %44
br label %58
58: ; preds = %57, %40
br label %59
59: ; preds = %58
%60 = load i32, ptr %7, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %7, align 4
br label %16, !llvm.loop !6
62: ; preds = %16
%63 = load i32, ptr %6, align 4
%64 = icmp ne i32 %63, 0
br i1 %64, label %65, label %72
65: ; preds = %62
%66 = load ptr, ptr %4, align 8
%67 = load ptr, ptr %3, align 8
%68 = load i32, ptr %9, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %9, align 4
%70 = sext i32 %68 to i64
%71 = getelementptr inbounds ptr, ptr %67, i64 %70
store ptr %66, ptr %71, align 8
br label %72
72: ; preds = %65, %62
%73 = load ptr, ptr %3, align 8
ret ptr %73
}
declare i64 @malloc(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @isDelimiter(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/tmpraiz4zp_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getWords(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%10 = call i64 @malloc(i32 noundef 400)
%11 = inttoptr i64 %10 to ptr
store ptr %11, ptr %3, align 8
%12 = load ptr, ptr %3, align 8
%13 = call i32 @memset(ptr noundef %12, i32 noundef 0, i32 noundef 400)
%14 = load ptr, ptr %2, align 8
%15 = call i32 @strlen(ptr noundef %14)
store i32 %15, ptr %8, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %7, align 4
%16 = load i32, ptr %7, align 4
%17 = load i32, ptr %8, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %.lr.ph, label %64
.lr.ph: ; preds = %1
br label %19
19: ; preds = %.lr.ph, %58
%20 = load ptr, ptr %2, align 8
%21 = load i32, ptr %7, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load i8, ptr %23, align 1
store i8 %24, ptr %5, align 1
%25 = load i8, ptr %5, align 1
%26 = call i64 @isDelimiter(i8 noundef signext %25)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %40
28: ; preds = %19
%29 = load i32, ptr %6, align 4
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %38
31: ; preds = %28
store i32 0, ptr %6, align 4
%32 = load ptr, ptr %4, align 8
%33 = load ptr, ptr %3, align 8
%34 = load i32, ptr %9, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %9, align 4
%36 = sext i32 %34 to i64
%37 = getelementptr inbounds ptr, ptr %33, i64 %36
store ptr %32, ptr %37, align 8
br label %39
38: ; preds = %28
br label %39
39: ; preds = %38, %31
br label %57
40: ; preds = %19
%41 = load i32, ptr %6, align 4
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %50
43: ; preds = %40
%44 = load i8, ptr %5, align 1
%45 = load ptr, ptr %4, align 8
%46 = load i32, ptr %6, align 4
%47 = add i32 %46, 1
store i32 %47, ptr %6, align 4
%48 = zext i32 %46 to i64
%49 = getelementptr inbounds i8, ptr %45, i64 %48
store i8 %44, ptr %49, align 1
br label %56
50: ; preds = %40
%51 = call i64 @malloc(i32 noundef 24)
%52 = inttoptr i64 %51 to ptr
store ptr %52, ptr %4, align 8
%53 = load i8, ptr %5, align 1
%54 = load ptr, ptr %4, align 8
%55 = getelementptr inbounds i8, ptr %54, i64 0
store i8 %53, ptr %55, align 1
store i32 1, ptr %6, align 4
br label %56
56: ; preds = %50, %43
br label %57
57: ; preds = %56, %39
br label %58
58: ; preds = %57
%59 = load i32, ptr %7, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %7, align 4
%61 = load i32, ptr %7, align 4
%62 = load i32, ptr %8, align 4
%63 = icmp slt i32 %61, %62
br i1 %63, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %58
br label %64
64: ; preds = %._crit_edge, %1
%65 = load i32, ptr %6, align 4
%66 = icmp ne i32 %65, 0
br i1 %66, label %67, label %74
67: ; preds = %64
%68 = load ptr, ptr %4, align 8
%69 = load ptr, ptr %3, align 8
%70 = load i32, ptr %9, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %9, align 4
%72 = sext i32 %70 to i64
%73 = getelementptr inbounds ptr, ptr %69, i64 %72
store ptr %68, ptr %73, align 8
br label %74
74: ; preds = %67, %64
%75 = load ptr, ptr %3, align 8
ret ptr %75
}
declare i64 @malloc(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @isDelimiter(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/tmpkdhgr_ge.c'
source_filename = "/tmp/tmpkdhgr_ge.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Triple #%3d:%4d,%3d,%3d\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c" -->%5d +%5d =%5d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_pythagorean_triples(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
store i32 0, ptr %11, align 4
%12 = load i32, ptr %3, align 4
store i32 %12, ptr %5, align 4
br label %13
13: ; preds = %66, %2
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %69
17: ; preds = %13
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %6, align 4
br label %20
20: ; preds = %62, %17
%21 = load i32, ptr %6, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %65
24: ; preds = %20
%25 = load i32, ptr %6, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %7, align 4
br label %27
27: ; preds = %58, %24
%28 = load i32, ptr %7, align 4
%29 = load i32, ptr %4, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %31, label %61
31: ; preds = %27
%32 = load i32, ptr %5, align 4
%33 = load i32, ptr %5, align 4
%34 = mul nsw i32 %32, %33
store i32 %34, ptr %8, align 4
%35 = load i32, ptr %6, align 4
%36 = load i32, ptr %6, align 4
%37 = mul nsw i32 %35, %36
store i32 %37, ptr %9, align 4
%38 = load i32, ptr %7, align 4
%39 = load i32, ptr %7, align 4
%40 = mul nsw i32 %38, %39
store i32 %40, ptr %10, align 4
%41 = load i32, ptr %8, align 4
%42 = load i32, ptr %9, align 4
%43 = add nsw i32 %41, %42
%44 = load i32, ptr %10, align 4
%45 = icmp eq i32 %43, %44
br i1 %45, label %46, label %57
46: ; preds = %31
%47 = load i32, ptr %11, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %11, align 4
%49 = load i32, ptr %5, align 4
%50 = load i32, ptr %6, align 4
%51 = load i32, ptr %7, align 4
%52 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str, i32 noundef %48, i32 noundef %49, i32 noundef %50, i32 noundef %51)
%53 = load i32, ptr %8, align 4
%54 = load i32, ptr %9, align 4
%55 = load i32, ptr %10, align 4
%56 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %53, i32 noundef %54, i32 noundef %55)
br label %57
57: ; preds = %46, %31
br label %58
58: ; preds = %57
%59 = load i32, ptr %7, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %7, align 4
br label %27, !llvm.loop !6
61: ; preds = %27
br label %62
62: ; preds = %61
%63 = load i32, ptr %6, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %6, align 4
br label %20, !llvm.loop !8
65: ; preds = %20
br label %66
66: ; preds = %65
%67 = load i32, ptr %5, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %5, align 4
br label %13, !llvm.loop !9
69: ; preds = %13
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkdhgr_ge.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Triple #%3d:%4d,%3d,%3d\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c" -->%5d +%5d =%5d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_pythagorean_triples(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
store i32 0, ptr %11, align 4
%12 = load i32, ptr %3, align 4
store i32 %12, ptr %5, align 4
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph5, label %75
.lr.ph5: ; preds = %2
br label %16
16: ; preds = %.lr.ph5, %69
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %6, align 4
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %.lr.ph2, label %68
.lr.ph2: ; preds = %16
br label %22
22: ; preds = %.lr.ph2, %62
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %7, align 4
%25 = load i32, ptr %7, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %.lr.ph, label %61
.lr.ph: ; preds = %22
br label %28
28: ; preds = %.lr.ph, %55
%29 = load i32, ptr %5, align 4
%30 = load i32, ptr %5, align 4
%31 = mul nsw i32 %29, %30
store i32 %31, ptr %8, align 4
%32 = load i32, ptr %6, align 4
%33 = load i32, ptr %6, align 4
%34 = mul nsw i32 %32, %33
store i32 %34, ptr %9, align 4
%35 = load i32, ptr %7, align 4
%36 = load i32, ptr %7, align 4
%37 = mul nsw i32 %35, %36
store i32 %37, ptr %10, align 4
%38 = load i32, ptr %8, align 4
%39 = load i32, ptr %9, align 4
%40 = add nsw i32 %38, %39
%41 = load i32, ptr %10, align 4
%42 = icmp eq i32 %40, %41
br i1 %42, label %43, label %54
43: ; preds = %28
%44 = load i32, ptr %11, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %11, align 4
%46 = load i32, ptr %5, align 4
%47 = load i32, ptr %6, align 4
%48 = load i32, ptr %7, align 4
%49 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str, i32 noundef %45, i32 noundef %46, i32 noundef %47, i32 noundef %48)
%50 = load i32, ptr %8, align 4
%51 = load i32, ptr %9, align 4
%52 = load i32, ptr %10, align 4
%53 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %50, i32 noundef %51, i32 noundef %52)
br label %54
54: ; preds = %43, %28
br label %55
55: ; preds = %54
%56 = load i32, ptr %7, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %7, align 4
%58 = load i32, ptr %7, align 4
%59 = load i32, ptr %4, align 4
%60 = icmp slt i32 %58, %59
br i1 %60, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %55
br label %61
61: ; preds = %._crit_edge, %22
br label %62
62: ; preds = %61
%63 = load i32, ptr %6, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %6, align 4
%65 = load i32, ptr %6, align 4
%66 = load i32, ptr %4, align 4
%67 = icmp slt i32 %65, %66
br i1 %67, label %22, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %62
br label %68
68: ; preds = %._crit_edge3, %16
br label %69
69: ; preds = %68
%70 = load i32, ptr %5, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %5, align 4
%72 = load i32, ptr %5, align 4
%73 = load i32, ptr %4, align 4
%74 = icmp slt i32 %72, %73
br i1 %74, label %16, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %69
br label %75
75: ; preds = %._crit_edge6, %2
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpzh28cfv3.c'
source_filename = "/tmp/tmpzh28cfv3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"dp = %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @upcase(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
store ptr %0, ptr %2, align 8
store ptr %3, ptr %4, align 8
br label %6
6: ; preds = %26, %1
%7 = load ptr, ptr %2, align 8
%8 = load i8, ptr %7, align 1
%9 = icmp ne i8 %8, 0
br i1 %9, label %10, label %30
10: ; preds = %6
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %2, align 8
%13 = load i8, ptr %11, align 1
store i8 %13, ptr %5, align 1
%14 = load i8, ptr %5, align 1
%15 = sext i8 %14 to i32
%16 = icmp sge i32 %15, 97
br i1 %16, label %17, label %26
17: ; preds = %10
%18 = load i8, ptr %5, align 1
%19 = sext i8 %18 to i32
%20 = icmp sle i32 %19, 122
br i1 %20, label %21, label %26
21: ; preds = %17
%22 = load i8, ptr %5, align 1
%23 = sext i8 %22 to i32
%24 = add nsw i32 %23, -32
%25 = trunc i32 %24 to i8
store i8 %25, ptr %5, align 1
br label %26
26: ; preds = %21, %17, %10
%27 = load i8, ptr %5, align 1
%28 = load ptr, ptr %4, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 -1
store ptr %29, ptr %4, align 8
store i8 %27, ptr %28, align 1
br label %6, !llvm.loop !6
30: ; preds = %6
%31 = load ptr, ptr %4, align 8
%32 = call i32 @printf(ptr noundef @.str, ptr noundef %31)
%33 = load ptr, ptr %4, align 8
ret ptr %33
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzh28cfv3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"dp = %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @upcase(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
store ptr %0, ptr %2, align 8
store ptr %3, ptr %4, align 8
%6 = load ptr, ptr %2, align 8
%7 = load i8, ptr %6, align 1
%8 = icmp ne i8 %7, 0
br i1 %8, label %.lr.ph, label %32
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %25
%10 = load ptr, ptr %2, align 8
%11 = getelementptr inbounds i8, ptr %10, i32 1
store ptr %11, ptr %2, align 8
%12 = load i8, ptr %10, align 1
store i8 %12, ptr %5, align 1
%13 = load i8, ptr %5, align 1
%14 = sext i8 %13 to i32
%15 = icmp sge i32 %14, 97
br i1 %15, label %16, label %25
16: ; preds = %9
%17 = load i8, ptr %5, align 1
%18 = sext i8 %17 to i32
%19 = icmp sle i32 %18, 122
br i1 %19, label %20, label %25
20: ; preds = %16
%21 = load i8, ptr %5, align 1
%22 = sext i8 %21 to i32
%23 = add nsw i32 %22, -32
%24 = trunc i32 %23 to i8
store i8 %24, ptr %5, align 1
br label %25
25: ; preds = %20, %16, %9
%26 = load i8, ptr %5, align 1
%27 = load ptr, ptr %4, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 -1
store ptr %28, ptr %4, align 8
store i8 %26, ptr %27, align 1
%29 = load ptr, ptr %2, align 8
%30 = load i8, ptr %29, align 1
%31 = icmp ne i8 %30, 0
br i1 %31, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %32
32: ; preds = %._crit_edge, %1
%33 = load ptr, ptr %4, align 8
%34 = call i32 @printf(ptr noundef @.str, ptr noundef %33)
%35 = load ptr, ptr %4, align 8
ret ptr %35
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp72rvbo7_.c'
source_filename = "/tmp/tmp72rvbo7_.c"
target datalayout = "e-m:e-p270: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/tmp72rvbo7_.c"
target datalayout = "e-m:e-p270: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/tmpv8ih3zj5.c'
source_filename = "/tmp/tmpv8ih3zj5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @valid_identifier(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = call i64 @isalnum(i32 noundef %4)
%6 = icmp ne i64 %5, 0
br i1 %6, label %16, label %7
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = icmp eq i32 %8, 45
br i1 %9, label %16, label %10
10: ; preds = %7
%11 = load i32, ptr %3, align 4
%12 = icmp eq i32 %11, 95
br i1 %12, label %16, label %13
13: ; preds = %10
%14 = load i32, ptr %3, align 4
%15 = icmp eq i32 %14, 35
br i1 %15, label %16, label %17
16: ; preds = %13, %10, %7, %1
store i32 1, ptr %2, align 4
br label %18
17: ; preds = %13
store i32 0, ptr %2, align 4
br label %18
18: ; preds = %17, %16
%19 = load i32, ptr %2, align 4
ret i32 %19
}
declare i64 @isalnum(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/tmpv8ih3zj5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @valid_identifier(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = call i64 @isalnum(i32 noundef %4)
%6 = icmp ne i64 %5, 0
br i1 %6, label %16, label %7
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = icmp eq i32 %8, 45
br i1 %9, label %16, label %10
10: ; preds = %7
%11 = load i32, ptr %3, align 4
%12 = icmp eq i32 %11, 95
br i1 %12, label %16, label %13
13: ; preds = %10
%14 = load i32, ptr %3, align 4
%15 = icmp eq i32 %14, 35
br i1 %15, label %16, label %17
16: ; preds = %13, %10, %7, %1
store i32 1, ptr %2, align 4
br label %18
17: ; preds = %13
store i32 0, ptr %2, align 4
br label %18
18: ; preds = %17, %16
%19 = load i32, ptr %2, align 4
ret i32 %19
}
declare i64 @isalnum(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/tmp47tmnxqg.c'
source_filename = "/tmp/tmp47tmnxqg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @towlower_l(i8 noundef signext %0, i32 noundef %1) #0 {
%3 = alloca i8, align 1
%4 = alloca i8, align 1
%5 = alloca i32, align 4
store i8 %0, ptr %4, align 1
store i32 %1, ptr %5, align 4
%6 = load i8, ptr %4, align 1
%7 = load i32, ptr %5, align 4
%8 = call i64 @iswupper_l(i8 noundef signext %6, i32 noundef %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %16
10: ; preds = %2
%11 = load i8, ptr %4, align 1
%12 = sext i8 %11 to i32
%13 = sub nsw i32 %12, 65
%14 = add nsw i32 %13, 97
%15 = trunc i32 %14 to i8
store i8 %15, ptr %3, align 1
br label %18
16: ; preds = %2
%17 = load i8, ptr %4, align 1
store i8 %17, ptr %3, align 1
br label %18
18: ; preds = %16, %10
%19 = load i8, ptr %3, align 1
ret i8 %19
}
declare i64 @iswupper_l(i8 noundef signext, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp47tmnxqg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @towlower_l(i8 noundef signext %0, i32 noundef %1) #0 {
%3 = alloca i8, align 1
%4 = alloca i8, align 1
%5 = alloca i32, align 4
store i8 %0, ptr %4, align 1
store i32 %1, ptr %5, align 4
%6 = load i8, ptr %4, align 1
%7 = load i32, ptr %5, align 4
%8 = call i64 @iswupper_l(i8 noundef signext %6, i32 noundef %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %16
10: ; preds = %2
%11 = load i8, ptr %4, align 1
%12 = sext i8 %11 to i32
%13 = sub nsw i32 %12, 65
%14 = add nsw i32 %13, 97
%15 = trunc i32 %14 to i8
store i8 %15, ptr %3, align 1
br label %18
16: ; preds = %2
%17 = load i8, ptr %4, align 1
store i8 %17, ptr %3, align 1
br label %18
18: ; preds = %16, %10
%19 = load i8, ptr %3, align 1
ret i8 %19
}
declare i64 @iswupper_l(i8 noundef signext, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpivbhyr7z.c'
source_filename = "/tmp/tmpivbhyr7z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @smaunch_fs_has_key(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 @assert(ptr noundef %3)
%5 = call ptr (...) @smaunch_fs_has_database()
%6 = call i32 @assert(ptr noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = call i64 @get_key(ptr noundef %7, i32 noundef 0)
%9 = icmp sge i64 %8, 0
%10 = zext i1 %9 to i32
ret i32 %10
}
declare i32 @assert(ptr noundef) #1
declare ptr @smaunch_fs_has_database(...) #1
declare i64 @get_key(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/tmpivbhyr7z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @smaunch_fs_has_key(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 @assert(ptr noundef %3)
%5 = call ptr (...) @smaunch_fs_has_database()
%6 = call i32 @assert(ptr noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = call i64 @get_key(ptr noundef %7, i32 noundef 0)
%9 = icmp sge i64 %8, 0
%10 = zext i1 %9 to i32
ret i32 %10
}
declare i32 @assert(ptr noundef) #1
declare ptr @smaunch_fs_has_database(...) #1
declare i64 @get_key(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/tmpojfyymvz.c'
source_filename = "/tmp/tmpojfyymvz.c"
target datalayout = "e-m:e-p270: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 [66 x i8] c"The message you typed is incorrect. If you need help type %%HELP\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_invalid_command() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
ret void
}
declare i32 @fprintf(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/tmpojfyymvz.c"
target datalayout = "e-m:e-p270: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 [66 x i8] c"The message you typed is incorrect. If you need help type %%HELP\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_invalid_command() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
ret void
}
declare i32 @fprintf(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/tmpb3q7syoa.c'
source_filename = "/tmp/tmpb3q7syoa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"//net/el3:0\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"-r\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"-s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 0
%12 = load ptr, ptr %11, align 8
%13 = call i32 @usage(ptr noundef %12)
br label %14
14: ; preds = %9, %2
%15 = load i32, ptr @O_RDWR, align 4
%16 = call i32 @open(ptr noundef @.str, i32 noundef %15)
store i32 %16, ptr %6, align 4
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = call i32 @strcmp(ptr noundef %19, ptr noundef @.str.1)
%21 = icmp ne i32 %20, 0
br i1 %21, label %25, label %22
22: ; preds = %14
%23 = load i32, ptr %6, align 4
%24 = call i32 @ether_recv(i32 noundef %23)
br label %40
25: ; preds = %14
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 1
%28 = load ptr, ptr %27, align 8
%29 = call i32 @strcmp(ptr noundef %28, ptr noundef @.str.2)
%30 = icmp ne i32 %29, 0
br i1 %30, label %34, label %31
31: ; preds = %25
%32 = load i32, ptr %6, align 4
%33 = call i32 @ether_send(i32 noundef %32)
br label %39
34: ; preds = %25
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds ptr, ptr %35, i64 0
%37 = load ptr, ptr %36, align 8
%38 = call i32 @usage(ptr noundef %37)
br label %39
39: ; preds = %34, %31
br label %40
40: ; preds = %39, %22
%41 = load i32, ptr %6, align 4
%42 = call i32 @close(i32 noundef %41)
%43 = load i32, ptr %3, align 4
ret i32 %43
}
declare i32 @usage(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @ether_recv(i32 noundef) #1
declare i32 @ether_send(i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb3q7syoa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"//net/el3:0\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"-r\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"-s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 0
%12 = load ptr, ptr %11, align 8
%13 = call i32 @usage(ptr noundef %12)
br label %14
14: ; preds = %9, %2
%15 = load i32, ptr @O_RDWR, align 4
%16 = call i32 @open(ptr noundef @.str, i32 noundef %15)
store i32 %16, ptr %6, align 4
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = call i32 @strcmp(ptr noundef %19, ptr noundef @.str.1)
%21 = icmp ne i32 %20, 0
br i1 %21, label %25, label %22
22: ; preds = %14
%23 = load i32, ptr %6, align 4
%24 = call i32 @ether_recv(i32 noundef %23)
br label %40
25: ; preds = %14
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 1
%28 = load ptr, ptr %27, align 8
%29 = call i32 @strcmp(ptr noundef %28, ptr noundef @.str.2)
%30 = icmp ne i32 %29, 0
br i1 %30, label %34, label %31
31: ; preds = %25
%32 = load i32, ptr %6, align 4
%33 = call i32 @ether_send(i32 noundef %32)
br label %39
34: ; preds = %25
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds ptr, ptr %35, i64 0
%37 = load ptr, ptr %36, align 8
%38 = call i32 @usage(ptr noundef %37)
br label %39
39: ; preds = %34, %31
br label %40
40: ; preds = %39, %22
%41 = load i32, ptr %6, align 4
%42 = call i32 @close(i32 noundef %41)
%43 = load i32, ptr %3, align 4
ret i32 %43
}
declare i32 @usage(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @ether_recv(i32 noundef) #1
declare i32 @ether_send(i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdbwnj79k.c'
source_filename = "/tmp/tmpdbwnj79k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hasLocationafterTheOffset(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%10 = call ptr (...) @getPcontent()
store ptr %10, ptr %8, align 8
%11 = load i32, ptr %5, align 4
%12 = call i32 @defineStartAndEnd(ptr noundef %4, ptr noundef %7, i32 noundef %11)
store i32 0, ptr %9, align 4
%13 = load i32, ptr %4, align 4
store i32 %13, ptr %6, align 4
br label %14
14: ; preds = %142, %2
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %7, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %145
18: ; preds = %14
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %9, align 4
%21 = sub nsw i32 %19, %20
%22 = icmp sgt i32 %21, 1
br i1 %22, label %23, label %26
23: ; preds = %18
%24 = load i32, ptr %6, align 4
%25 = add nsw i32 %24, -1
store i32 %25, ptr %6, align 4
br label %26
26: ; preds = %23, %18
%27 = load i32, ptr %6, align 4
store i32 %27, ptr %9, align 4
%28 = load ptr, ptr %8, align 8
%29 = load i32, ptr %6, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp slt i32 %33, 65
br i1 %34, label %43, label %35
35: ; preds = %26
%36 = load ptr, ptr %8, align 8
%37 = load i32, ptr %6, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = icmp sgt i32 %41, 90
br i1 %42, label %43, label %44
43: ; preds = %35, %26
br label %142
44: ; preds = %35
br label %45
45: ; preds = %61, %44
%46 = load ptr, ptr %8, align 8
%47 = load i32, ptr %6, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8, ptr %46, i64 %48
%50 = load i8, ptr %49, align 1
%51 = call i64 @fitPattern(i8 noundef signext 97, i8 noundef signext %50)
%52 = icmp ne i64 %51, 0
br i1 %52, label %53, label %62
53: ; preds = %45
%54 = load i32, ptr %6, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %6, align 4
%56 = load i32, ptr %6, align 4
%57 = load i32, ptr %7, align 4
%58 = sub nsw i32 %57, 3
%59 = icmp sgt i32 %56, %58
br i1 %59, label %60, label %61
60: ; preds = %53
store i32 0, ptr %3, align 4
br label %146
61: ; preds = %53
br label %45, !llvm.loop !6
62: ; preds = %45
%63 = load i32, ptr %6, align 4
%64 = load i32, ptr %9, align 4
%65 = sub nsw i32 %63, %64
%66 = icmp sge i32 %65, 1
br i1 %66, label %67, label %141
67: ; preds = %62
%68 = load ptr, ptr %8, align 8
%69 = load i32, ptr %6, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, ptr %68, i64 %70
%72 = load i8, ptr %71, align 1
%73 = call i64 @fitPattern(i8 noundef signext 101, i8 noundef signext %72)
%74 = icmp ne i64 %73, 0
br i1 %74, label %83, label %75
75: ; preds = %67
%76 = load ptr, ptr %8, align 8
%77 = load i32, ptr %6, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i8, ptr %76, i64 %78
%80 = load i8, ptr %79, align 1
%81 = sext i8 %80 to i32
%82 = icmp eq i32 %81, 32
br i1 %82, label %83, label %141
83: ; preds = %75, %67
%84 = load i32, ptr %6, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %6, align 4
br label %86
86: ; preds = %102, %83
%87 = load ptr, ptr %8, align 8
%88 = load i32, ptr %6, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i8, ptr %87, i64 %89
%91 = load i8, ptr %90, align 1
%92 = sext i8 %91 to i32
%93 = icmp eq i32 %92, 32
br i1 %93, label %94, label %103
94: ; preds = %86
%95 = load i32, ptr %6, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %6, align 4
%97 = load i32, ptr %6, align 4
%98 = load i32, ptr %7, align 4
%99 = sub nsw i32 %98, 2
%100 = icmp sgt i32 %97, %99
br i1 %100, label %101, label %102
101: ; preds = %94
store i32 0, ptr %3, align 4
br label %146
102: ; preds = %94
br label %86, !llvm.loop !8
103: ; preds = %86
%104 = load ptr, ptr %8, align 8
%105 = load i32, ptr %6, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i8, ptr %104, i64 %106
%108 = load i8, ptr %107, align 1
%109 = sext i8 %108 to i32
%110 = icmp sge i32 %109, 65
br i1 %110, label %111, label %140
111: ; preds = %103
%112 = load ptr, ptr %8, align 8
%113 = load i32, ptr %6, align 4
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds i8, ptr %112, i64 %114
%116 = load i8, ptr %115, align 1
%117 = sext i8 %116 to i32
%118 = icmp sle i32 %117, 90
br i1 %118, label %119, label %140
119: ; preds = %111
%120 = load ptr, ptr %8, align 8
%121 = load i32, ptr %6, align 4
%122 = add nsw i32 %121, 1
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds i8, ptr %120, i64 %123
%125 = load i8, ptr %124, align 1
%126 = sext i8 %125 to i32
%127 = icmp sge i32 %126, 65
br i1 %127, label %128, label %140
128: ; preds = %119
%129 = load ptr, ptr %8, align 8
%130 = load i32, ptr %6, align 4
%131 = add nsw i32 %130, 1
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds i8, ptr %129, i64 %132
%134 = load i8, ptr %133, align 1
%135 = sext i8 %134 to i32
%136 = icmp sle i32 %135, 90
br i1 %136, label %137, label %140
137: ; preds = %128
%138 = load i32, ptr %6, align 4
%139 = add nsw i32 %138, 2
store i32 %139, ptr %3, align 4
br label %146
140: ; preds = %128, %119, %111, %103
br label %141
141: ; preds = %140, %75, %62
br label %142
142: ; preds = %141, %43
%143 = load i32, ptr %6, align 4
%144 = add nsw i32 %143, 1
store i32 %144, ptr %6, align 4
br label %14, !llvm.loop !9
145: ; preds = %14
store i32 0, ptr %3, align 4
br label %146
146: ; preds = %145, %137, %101, %60
%147 = load i32, ptr %3, align 4
ret i32 %147
}
declare ptr @getPcontent(...) #1
declare i32 @defineStartAndEnd(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @fitPattern(i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdbwnj79k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hasLocationafterTheOffset(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%10 = call ptr (...) @getPcontent()
store ptr %10, ptr %8, align 8
%11 = load i32, ptr %5, align 4
%12 = call i32 @defineStartAndEnd(ptr noundef %4, ptr noundef %7, i32 noundef %11)
store i32 0, ptr %9, align 4
%13 = load i32, ptr %4, align 4
store i32 %13, ptr %6, align 4
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %7, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph5, label %159
.lr.ph5: ; preds = %2
br label %17
17: ; preds = %.lr.ph5, %153
%18 = load i32, ptr %6, align 4
%19 = load i32, ptr %9, align 4
%20 = sub nsw i32 %18, %19
%21 = icmp sgt i32 %20, 1
br i1 %21, label %22, label %25
22: ; preds = %17
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, -1
store i32 %24, ptr %6, align 4
br label %25
25: ; preds = %22, %17
%26 = load i32, ptr %6, align 4
store i32 %26, ptr %9, align 4
%27 = load ptr, ptr %8, align 8
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp slt i32 %32, 65
br i1 %33, label %42, label %34
34: ; preds = %25
%35 = load ptr, ptr %8, align 8
%36 = load i32, ptr %6, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp sgt i32 %40, 90
br i1 %41, label %42, label %43
42: ; preds = %34, %25
br label %153
43: ; preds = %34
%44 = load ptr, ptr %8, align 8
%45 = load i32, ptr %6, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %44, i64 %46
%48 = load i8, ptr %47, align 1
%49 = call i64 @fitPattern(i8 noundef signext 97, i8 noundef signext %48)
%50 = icmp ne i64 %49, 0
br i1 %50, label %.lr.ph, label %67
.lr.ph: ; preds = %43
br label %59
51: ; preds = %59
%52 = load ptr, ptr %8, align 8
%53 = load i32, ptr %6, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
%56 = load i8, ptr %55, align 1
%57 = call i64 @fitPattern(i8 noundef signext 97, i8 noundef signext %56)
%58 = icmp ne i64 %57, 0
br i1 %58, label %59, label %._crit_edge, !llvm.loop !6
59: ; preds = %.lr.ph, %51
%60 = load i32, ptr %6, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %6, align 4
%62 = load i32, ptr %6, align 4
%63 = load i32, ptr %7, align 4
%64 = sub nsw i32 %63, 3
%65 = icmp sgt i32 %62, %64
br i1 %65, label %66, label %51
66: ; preds = %59
store i32 0, ptr %3, align 4
br label %160
._crit_edge: ; preds = %51
br label %67
67: ; preds = %._crit_edge, %43
%68 = load i32, ptr %6, align 4
%69 = load i32, ptr %9, align 4
%70 = sub nsw i32 %68, %69
%71 = icmp sge i32 %70, 1
br i1 %71, label %72, label %152
72: ; preds = %67
%73 = load ptr, ptr %8, align 8
%74 = load i32, ptr %6, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i8, ptr %73, i64 %75
%77 = load i8, ptr %76, align 1
%78 = call i64 @fitPattern(i8 noundef signext 101, i8 noundef signext %77)
%79 = icmp ne i64 %78, 0
br i1 %79, label %88, label %80
80: ; preds = %72
%81 = load ptr, ptr %8, align 8
%82 = load i32, ptr %6, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i8, ptr %81, i64 %83
%85 = load i8, ptr %84, align 1
%86 = sext i8 %85 to i32
%87 = icmp eq i32 %86, 32
br i1 %87, label %88, label %152
88: ; preds = %80, %72
%89 = load i32, ptr %6, align 4
%90 = add nsw i32 %89, 1
store i32 %90, ptr %6, align 4
%91 = load ptr, ptr %8, align 8
%92 = load i32, ptr %6, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i8, ptr %91, i64 %93
%95 = load i8, ptr %94, align 1
%96 = sext i8 %95 to i32
%97 = icmp eq i32 %96, 32
br i1 %97, label %.lr.ph2, label %114
.lr.ph2: ; preds = %88
br label %106
98: ; preds = %106
%99 = load ptr, ptr %8, align 8
%100 = load i32, ptr %6, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds i8, ptr %99, i64 %101
%103 = load i8, ptr %102, align 1
%104 = sext i8 %103 to i32
%105 = icmp eq i32 %104, 32
br i1 %105, label %106, label %._crit_edge3, !llvm.loop !8
106: ; preds = %.lr.ph2, %98
%107 = load i32, ptr %6, align 4
%108 = add nsw i32 %107, 1
store i32 %108, ptr %6, align 4
%109 = load i32, ptr %6, align 4
%110 = load i32, ptr %7, align 4
%111 = sub nsw i32 %110, 2
%112 = icmp sgt i32 %109, %111
br i1 %112, label %113, label %98
113: ; preds = %106
store i32 0, ptr %3, align 4
br label %160
._crit_edge3: ; preds = %98
br label %114
114: ; preds = %._crit_edge3, %88
%115 = load ptr, ptr %8, align 8
%116 = load i32, ptr %6, align 4
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds i8, ptr %115, i64 %117
%119 = load i8, ptr %118, align 1
%120 = sext i8 %119 to i32
%121 = icmp sge i32 %120, 65
br i1 %121, label %122, label %151
122: ; preds = %114
%123 = load ptr, ptr %8, align 8
%124 = load i32, ptr %6, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds i8, ptr %123, i64 %125
%127 = load i8, ptr %126, align 1
%128 = sext i8 %127 to i32
%129 = icmp sle i32 %128, 90
br i1 %129, label %130, label %151
130: ; preds = %122
%131 = load ptr, ptr %8, align 8
%132 = load i32, ptr %6, align 4
%133 = add nsw i32 %132, 1
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds i8, ptr %131, i64 %134
%136 = load i8, ptr %135, align 1
%137 = sext i8 %136 to i32
%138 = icmp sge i32 %137, 65
br i1 %138, label %139, label %151
139: ; preds = %130
%140 = load ptr, ptr %8, align 8
%141 = load i32, ptr %6, align 4
%142 = add nsw i32 %141, 1
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds i8, ptr %140, i64 %143
%145 = load i8, ptr %144, align 1
%146 = sext i8 %145 to i32
%147 = icmp sle i32 %146, 90
br i1 %147, label %148, label %151
148: ; preds = %139
%149 = load i32, ptr %6, align 4
%150 = add nsw i32 %149, 2
store i32 %150, ptr %3, align 4
br label %160
151: ; preds = %139, %130, %122, %114
br label %152
152: ; preds = %151, %80, %67
br label %153
153: ; preds = %152, %42
%154 = load i32, ptr %6, align 4
%155 = add nsw i32 %154, 1
store i32 %155, ptr %6, align 4
%156 = load i32, ptr %6, align 4
%157 = load i32, ptr %7, align 4
%158 = icmp slt i32 %156, %157
br i1 %158, label %17, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %153
br label %159
159: ; preds = %._crit_edge6, %2
store i32 0, ptr %3, align 4
br label %160
160: ; preds = %159, %148, %113, %66
%161 = load i32, ptr %3, align 4
ret i32 %161
}
declare ptr @getPcontent(...) #1
declare i32 @defineStartAndEnd(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @fitPattern(i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpxe35efr3.c'
source_filename = "/tmp/tmpxe35efr3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Welcome to pottailex\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxe35efr3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Welcome to pottailex\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpw8youlyh.c'
source_filename = "/tmp/tmpw8youlyh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @findMode(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
%10 = load ptr, ptr %3, align 8
%11 = call i32 @cntHelper(ptr noundef %10, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8)
store i32 0, ptr %5, align 4
%12 = load i32, ptr %8, align 4
%13 = sext i32 %12 to i64
%14 = mul i64 %13, 4
%15 = trunc i64 %14 to i32
%16 = call i64 @malloc(i32 noundef %15)
%17 = inttoptr i64 %16 to ptr
store ptr %17, ptr %9, align 8
%18 = load i32, ptr %8, align 4
%19 = load ptr, ptr %4, align 8
store i32 %18, ptr %19, align 4
store i32 0, ptr %8, align 4
%20 = load ptr, ptr %9, align 8
%21 = load ptr, ptr %3, align 8
%22 = load i32, ptr %6, align 4
%23 = call i32 @pickHelper(ptr noundef %20, ptr noundef %21, ptr noundef %5, i32 noundef %22, ptr noundef %7, ptr noundef %8)
%24 = load ptr, ptr %9, align 8
ret ptr %24
}
declare i32 @cntHelper(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @pickHelper(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw8youlyh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @findMode(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
%10 = load ptr, ptr %3, align 8
%11 = call i32 @cntHelper(ptr noundef %10, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8)
store i32 0, ptr %5, align 4
%12 = load i32, ptr %8, align 4
%13 = sext i32 %12 to i64
%14 = mul i64 %13, 4
%15 = trunc i64 %14 to i32
%16 = call i64 @malloc(i32 noundef %15)
%17 = inttoptr i64 %16 to ptr
store ptr %17, ptr %9, align 8
%18 = load i32, ptr %8, align 4
%19 = load ptr, ptr %4, align 8
store i32 %18, ptr %19, align 4
store i32 0, ptr %8, align 4
%20 = load ptr, ptr %9, align 8
%21 = load ptr, ptr %3, align 8
%22 = load i32, ptr %6, align 4
%23 = call i32 @pickHelper(ptr noundef %20, ptr noundef %21, ptr noundef %5, i32 noundef %22, ptr noundef %7, ptr noundef %8)
%24 = load ptr, ptr %9, align 8
ret ptr %24
}
declare i32 @cntHelper(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @pickHelper(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqi8ugm18.c'
source_filename = "/tmp/tmpqi8ugm18.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [11 x i8] c"stdout: %s\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @head(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
br label %6
6: ; preds = %30, %2
%7 = load i32, ptr %4, align 4
%8 = add nsw i32 %7, -1
store i32 %8, ptr %4, align 4
%9 = icmp ne i32 %7, 0
br i1 %9, label %10, label %31
10: ; preds = %6
br label %11
11: ; preds = %29, %10
%12 = load ptr, ptr %3, align 8
%13 = call i32 @getc(ptr noundef %12)
store i32 %13, ptr %5, align 4
%14 = load i32, ptr @EOF, align 4
%15 = icmp ne i32 %13, %14
br i1 %15, label %16, label %30
16: ; preds = %11
%17 = load i32, ptr %5, align 4
%18 = call i32 @putchar(i32 noundef %17)
%19 = load i32, ptr @EOF, align 4
%20 = icmp eq i32 %18, %19
br i1 %20, label %21, label %25
21: ; preds = %16
%22 = load i32, ptr @errno, align 4
%23 = call i32 @strerror(i32 noundef %22)
%24 = call i32 @err(i32 noundef 1, ptr noundef @.str, i32 noundef %23)
br label %25
25: ; preds = %21, %16
%26 = load i32, ptr %5, align 4
%27 = icmp eq i32 %26, 10
br i1 %27, label %28, label %29
28: ; preds = %25
br label %30
29: ; preds = %25
br label %11, !llvm.loop !6
30: ; preds = %28, %11
br label %6, !llvm.loop !8
31: ; preds = %6
ret void
}
declare i32 @getc(ptr noundef) #1
declare i32 @putchar(i32 noundef) #1
declare i32 @err(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqi8ugm18.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [11 x i8] c"stdout: %s\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @head(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = add nsw i32 %6, -1
store i32 %7, ptr %4, align 4
%8 = icmp ne i32 %6, 0
br i1 %8, label %.lr.ph1, label %36
.lr.ph1: ; preds = %2
br label %9
9: ; preds = %.lr.ph1, %32
%10 = load ptr, ptr %3, align 8
%11 = call i32 @getc(ptr noundef %10)
store i32 %11, ptr %5, align 4
%12 = load i32, ptr @EOF, align 4
%13 = icmp ne i32 %11, %12
br i1 %13, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %9
br label %19
14: ; preds = %28
%15 = load ptr, ptr %3, align 8
%16 = call i32 @getc(ptr noundef %15)
store i32 %16, ptr %5, align 4
%17 = load i32, ptr @EOF, align 4
%18 = icmp ne i32 %16, %17
br i1 %18, label %19, label %..loopexit_crit_edge, !llvm.loop !6
19: ; preds = %.lr.ph, %14
%20 = load i32, ptr %5, align 4
%21 = call i32 @putchar(i32 noundef %20)
%22 = load i32, ptr @EOF, align 4
%23 = icmp eq i32 %21, %22
br i1 %23, label %24, label %28
24: ; preds = %19
%25 = load i32, ptr @errno, align 4
%26 = call i32 @strerror(i32 noundef %25)
%27 = call i32 @err(i32 noundef 1, ptr noundef @.str, i32 noundef %26)
br label %28
28: ; preds = %24, %19
%29 = load i32, ptr %5, align 4
%30 = icmp eq i32 %29, 10
br i1 %30, label %31, label %14
31: ; preds = %28
br label %32
..loopexit_crit_edge: ; preds = %14
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %9
br label %32
32: ; preds = %.loopexit, %31
%33 = load i32, ptr %4, align 4
%34 = add nsw i32 %33, -1
store i32 %34, ptr %4, align 4
%35 = icmp ne i32 %33, 0
br i1 %35, label %9, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %32
br label %36
36: ; preds = %._crit_edge, %2
ret void
}
declare i32 @getc(ptr noundef) #1
declare i32 @putchar(i32 noundef) #1
declare i32 @err(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpkfy638t5.c'
source_filename = "/tmp/tmpkfy638t5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global 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/tmpkfy638t5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global 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/tmpqk34nzwq.c'
source_filename = "/tmp/tmpqk34nzwq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i8 @Cyc_Character_tolower(i8 noundef zeroext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = call i64 @Cyc_Character_isupper(i8 noundef zeroext %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %11
6: ; preds = %1
%7 = load i8, ptr %2, align 1
%8 = zext i8 %7 to i32
%9 = add nsw i32 %8, 32
%10 = trunc i32 %9 to i8
store i8 %10, ptr %2, align 1
br label %11
11: ; preds = %6, %1
%12 = load i8, ptr %2, align 1
ret i8 %12
}
declare i64 @Cyc_Character_isupper(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/tmpqk34nzwq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i8 @Cyc_Character_tolower(i8 noundef zeroext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = call i64 @Cyc_Character_isupper(i8 noundef zeroext %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %11
6: ; preds = %1
%7 = load i8, ptr %2, align 1
%8 = zext i8 %7 to i32
%9 = add nsw i32 %8, 32
%10 = trunc i32 %9 to i8
store i8 %10, ptr %2, align 1
br label %11
11: ; preds = %6, %1
%12 = load i8, ptr %2, align 1
ret i8 %12
}
declare i64 @Cyc_Character_isupper(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/tmp6djc9cre.c'
source_filename = "/tmp/tmp6djc9cre.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CT_F_CTLOG_NEW_FROM_CONF = dso_local global i32 0, align 4
@CT_R_LOG_CONF_MISSING_DESCRIPTION = dso_local global i32 0, align 4
@CT_R_LOG_CONF_MISSING_KEY = 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/tmp6djc9cre.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CT_F_CTLOG_NEW_FROM_CONF = dso_local global i32 0, align 4
@CT_R_LOG_CONF_MISSING_DESCRIPTION = dso_local global i32 0, align 4
@CT_R_LOG_CONF_MISSING_KEY = 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/tmpvg8tpil5.c'
source_filename = "/tmp/tmpvg8tpil5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @http_lc(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr %3, align 8
br label %4
4: ; preds = %20, %1
%5 = load ptr, ptr %2, align 8
%6 = load i64, ptr %3, align 8
%7 = getelementptr inbounds i8, ptr %5, i64 %6
%8 = load i8, ptr %7, align 1
%9 = icmp ne i8 %8, 0
br i1 %9, label %10, label %23
10: ; preds = %4
%11 = load ptr, ptr %2, align 8
%12 = load i64, ptr %3, align 8
%13 = getelementptr inbounds i8, ptr %11, i64 %12
%14 = load i8, ptr %13, align 1
%15 = call i64 @tolower(i8 noundef signext %14)
%16 = trunc i64 %15 to i8
%17 = load ptr, ptr %2, align 8
%18 = load i64, ptr %3, align 8
%19 = getelementptr inbounds i8, ptr %17, i64 %18
store i8 %16, ptr %19, align 1
br label %20
20: ; preds = %10
%21 = load i64, ptr %3, align 8
%22 = add i64 %21, 1
store i64 %22, ptr %3, align 8
br label %4, !llvm.loop !6
23: ; preds = %4
%24 = load ptr, ptr %2, align 8
ret ptr %24
}
declare i64 @tolower(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/tmpvg8tpil5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @http_lc(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr %3, align 8
%4 = load ptr, ptr %2, align 8
%5 = load i64, ptr %3, align 8
%6 = getelementptr inbounds i8, ptr %4, i64 %5
%7 = load i8, ptr %6, align 1
%8 = icmp ne i8 %7, 0
br i1 %8, label %.lr.ph, label %27
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %19
%10 = load ptr, ptr %2, align 8
%11 = load i64, ptr %3, align 8
%12 = getelementptr inbounds i8, ptr %10, i64 %11
%13 = load i8, ptr %12, align 1
%14 = call i64 @tolower(i8 noundef signext %13)
%15 = trunc i64 %14 to i8
%16 = load ptr, ptr %2, align 8
%17 = load i64, ptr %3, align 8
%18 = getelementptr inbounds i8, ptr %16, i64 %17
store i8 %15, ptr %18, align 1
br label %19
19: ; preds = %9
%20 = load i64, ptr %3, align 8
%21 = add i64 %20, 1
store i64 %21, ptr %3, align 8
%22 = load ptr, ptr %2, align 8
%23 = load i64, ptr %3, align 8
%24 = getelementptr inbounds i8, ptr %22, i64 %23
%25 = load i8, ptr %24, align 1
%26 = icmp ne i8 %25, 0
br i1 %26, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %27
27: ; preds = %._crit_edge, %1
%28 = load ptr, ptr %2, align 8
ret ptr %28
}
declare i64 @tolower(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/tmpo0o4uypu.c'
source_filename = "/tmp/tmpo0o4uypu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @reshap_() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @reshapeviewport()
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @reshapeviewport(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo0o4uypu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @reshap_() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @reshapeviewport()
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @reshapeviewport(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphue3rnlx.c'
source_filename = "/tmp/tmphue3rnlx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [142 x i8] c" Make a choice from the Menu below\0A\0A\091 to add item to the list.\0A\092 to print the items in the list.\0A\093 to quit the program.\0A\09Enter a number?: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @UserMenu() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphue3rnlx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [142 x i8] c" Make a choice from the Menu below\0A\0A\091 to add item to the list.\0A\092 to print the items in the list.\0A\093 to quit the program.\0A\09Enter a number?: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @UserMenu() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpiyn0d26p.c'
source_filename = "/tmp/tmpiyn0d26p.c"
target datalayout = "e-m:e-p270: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/tmpiyn0d26p.c"
target datalayout = "e-m:e-p270: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/tmpu2d54s55.c'
source_filename = "/tmp/tmpu2d54s55.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @copy(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [1000 x i8], align 16
store ptr %0, ptr %2, align 8
%4 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%5 = load ptr, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = call i32 @memcpy(ptr noundef %4, ptr noundef %5, i32 noundef %7)
ret void
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu2d54s55.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @copy(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [1000 x i8], align 16
store ptr %0, ptr %2, align 8
%4 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%5 = load ptr, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = call i32 @memcpy(ptr noundef %4, ptr noundef %5, i32 noundef %7)
ret void
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv8hpxjym.c'
source_filename = "/tmp/tmpv8hpxjym.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gaucof(i32 noundef %0, ptr noundef %1, ptr noundef %2, float noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca float, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
store i32 %0, ptr %7, align 4
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store float %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%16 = load i32, ptr %7, align 4
%17 = load i32, ptr %7, align 4
%18 = call ptr @matrix(i32 noundef 1, i32 noundef %16, i32 noundef 1, i32 noundef %17)
store ptr %18, ptr %15, align 8
store i32 1, ptr %13, align 4
br label %19
19: ; preds = %60, %6
%20 = load i32, ptr %13, align 4
%21 = load i32, ptr %7, align 4
%22 = icmp sle i32 %20, %21
br i1 %22, label %23, label %63
23: ; preds = %19
%24 = load i32, ptr %13, align 4
%25 = icmp ne i32 %24, 1
br i1 %25, label %26, label %37
26: ; preds = %23
%27 = load ptr, ptr %9, align 8
%28 = load i32, ptr %13, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds float, ptr %27, i64 %29
%31 = load float, ptr %30, align 4
%32 = call float @sqrt(float noundef %31)
%33 = load ptr, ptr %9, align 8
%34 = load i32, ptr %13, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds float, ptr %33, i64 %35
store float %32, ptr %36, align 4
br label %37
37: ; preds = %26, %23
store i32 1, ptr %14, align 4
br label %38
38: ; preds = %56, %37
%39 = load i32, ptr %14, align 4
%40 = load i32, ptr %7, align 4
%41 = icmp sle i32 %39, %40
br i1 %41, label %42, label %59
42: ; preds = %38
%43 = load i32, ptr %13, align 4
%44 = load i32, ptr %14, align 4
%45 = icmp eq i32 %43, %44
%46 = zext i1 %45 to i32
%47 = sitofp i32 %46 to float
%48 = load ptr, ptr %15, align 8
%49 = load i32, ptr %13, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds ptr, ptr %48, i64 %50
%52 = load ptr, ptr %51, align 8
%53 = load i32, ptr %14, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds float, ptr %52, i64 %54
store float %47, ptr %55, align 4
br label %56
56: ; preds = %42
%57 = load i32, ptr %14, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %14, align 4
br label %38, !llvm.loop !6
59: ; preds = %38
br label %60
60: ; preds = %59
%61 = load i32, ptr %13, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %13, align 4
br label %19, !llvm.loop !8
63: ; preds = %19
%64 = load ptr, ptr %8, align 8
%65 = load ptr, ptr %9, align 8
%66 = load i32, ptr %7, align 4
%67 = load ptr, ptr %15, align 8
call void @tqli(ptr noundef %64, ptr noundef %65, i32 noundef %66, ptr noundef %67)
%68 = load ptr, ptr %8, align 8
%69 = load ptr, ptr %15, align 8
%70 = load i32, ptr %7, align 4
call void @eigsrt(ptr noundef %68, ptr noundef %69, i32 noundef %70)
store i32 1, ptr %13, align 4
br label %71
71: ; preds = %106, %63
%72 = load i32, ptr %13, align 4
%73 = load i32, ptr %7, align 4
%74 = icmp sle i32 %72, %73
br i1 %74, label %75, label %109
75: ; preds = %71
%76 = load ptr, ptr %8, align 8
%77 = load i32, ptr %13, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds float, ptr %76, i64 %78
%80 = load float, ptr %79, align 4
%81 = load ptr, ptr %11, align 8
%82 = load i32, ptr %13, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds float, ptr %81, i64 %83
store float %80, ptr %84, align 4
%85 = load float, ptr %10, align 4
%86 = load ptr, ptr %15, align 8
%87 = getelementptr inbounds ptr, ptr %86, i64 1
%88 = load ptr, ptr %87, align 8
%89 = load i32, ptr %13, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds float, ptr %88, i64 %90
%92 = load float, ptr %91, align 4
%93 = fmul float %85, %92
%94 = load ptr, ptr %15, align 8
%95 = getelementptr inbounds ptr, ptr %94, i64 1
%96 = load ptr, ptr %95, align 8
%97 = load i32, ptr %13, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds float, ptr %96, i64 %98
%100 = load float, ptr %99, align 4
%101 = fmul float %93, %100
%102 = load ptr, ptr %12, align 8
%103 = load i32, ptr %13, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds float, ptr %102, i64 %104
store float %101, ptr %105, align 4
br label %106
106: ; preds = %75
%107 = load i32, ptr %13, align 4
%108 = add nsw i32 %107, 1
store i32 %108, ptr %13, align 4
br label %71, !llvm.loop !9
109: ; preds = %71
%110 = load ptr, ptr %15, align 8
%111 = load i32, ptr %7, align 4
%112 = load i32, ptr %7, align 4
%113 = call i32 @free_matrix(ptr noundef %110, i32 noundef 1, i32 noundef %111, i32 noundef 1, i32 noundef %112)
ret void
}
declare ptr @matrix(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare float @sqrt(float noundef) #1
declare void @tqli(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare void @eigsrt(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free_matrix(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv8hpxjym.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gaucof(i32 noundef %0, ptr noundef %1, ptr noundef %2, float noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca float, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
store i32 %0, ptr %7, align 4
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store float %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%16 = load i32, ptr %7, align 4
%17 = load i32, ptr %7, align 4
%18 = call ptr @matrix(i32 noundef 1, i32 noundef %16, i32 noundef 1, i32 noundef %17)
store ptr %18, ptr %15, align 8
store i32 1, ptr %13, align 4
%19 = load i32, ptr %13, align 4
%20 = load i32, ptr %7, align 4
%21 = icmp sle i32 %19, %20
br i1 %21, label %.lr.ph2, label %67
.lr.ph2: ; preds = %6
br label %22
22: ; preds = %.lr.ph2, %61
%23 = load i32, ptr %13, align 4
%24 = icmp ne i32 %23, 1
br i1 %24, label %25, label %36
25: ; preds = %22
%26 = load ptr, ptr %9, align 8
%27 = load i32, ptr %13, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds float, ptr %26, i64 %28
%30 = load float, ptr %29, align 4
%31 = call float @sqrt(float noundef %30)
%32 = load ptr, ptr %9, align 8
%33 = load i32, ptr %13, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds float, ptr %32, i64 %34
store float %31, ptr %35, align 4
br label %36
36: ; preds = %25, %22
store i32 1, ptr %14, align 4
%37 = load i32, ptr %14, align 4
%38 = load i32, ptr %7, align 4
%39 = icmp sle i32 %37, %38
br i1 %39, label %.lr.ph, label %60
.lr.ph: ; preds = %36
br label %40
40: ; preds = %.lr.ph, %54
%41 = load i32, ptr %13, align 4
%42 = load i32, ptr %14, align 4
%43 = icmp eq i32 %41, %42
%44 = zext i1 %43 to i32
%45 = sitofp i32 %44 to float
%46 = load ptr, ptr %15, align 8
%47 = load i32, ptr %13, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds ptr, ptr %46, i64 %48
%50 = load ptr, ptr %49, align 8
%51 = load i32, ptr %14, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds float, ptr %50, i64 %52
store float %45, ptr %53, align 4
br label %54
54: ; preds = %40
%55 = load i32, ptr %14, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %14, align 4
%57 = load i32, ptr %14, align 4
%58 = load i32, ptr %7, align 4
%59 = icmp sle i32 %57, %58
br i1 %59, label %40, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %54
br label %60
60: ; preds = %._crit_edge, %36
br label %61
61: ; preds = %60
%62 = load i32, ptr %13, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %13, align 4
%64 = load i32, ptr %13, align 4
%65 = load i32, ptr %7, align 4
%66 = icmp sle i32 %64, %65
br i1 %66, label %22, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %61
br label %67
67: ; preds = %._crit_edge3, %6
%68 = load ptr, ptr %8, align 8
%69 = load ptr, ptr %9, align 8
%70 = load i32, ptr %7, align 4
%71 = load ptr, ptr %15, align 8
call void @tqli(ptr noundef %68, ptr noundef %69, i32 noundef %70, ptr noundef %71)
%72 = load ptr, ptr %8, align 8
%73 = load ptr, ptr %15, align 8
%74 = load i32, ptr %7, align 4
call void @eigsrt(ptr noundef %72, ptr noundef %73, i32 noundef %74)
store i32 1, ptr %13, align 4
%75 = load i32, ptr %13, align 4
%76 = load i32, ptr %7, align 4
%77 = icmp sle i32 %75, %76
br i1 %77, label %.lr.ph5, label %115
.lr.ph5: ; preds = %67
br label %78
78: ; preds = %.lr.ph5, %109
%79 = load ptr, ptr %8, align 8
%80 = load i32, ptr %13, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds float, ptr %79, i64 %81
%83 = load float, ptr %82, align 4
%84 = load ptr, ptr %11, align 8
%85 = load i32, ptr %13, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds float, ptr %84, i64 %86
store float %83, ptr %87, align 4
%88 = load float, ptr %10, align 4
%89 = load ptr, ptr %15, align 8
%90 = getelementptr inbounds ptr, ptr %89, i64 1
%91 = load ptr, ptr %90, align 8
%92 = load i32, ptr %13, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds float, ptr %91, i64 %93
%95 = load float, ptr %94, align 4
%96 = fmul float %88, %95
%97 = load ptr, ptr %15, align 8
%98 = getelementptr inbounds ptr, ptr %97, i64 1
%99 = load ptr, ptr %98, align 8
%100 = load i32, ptr %13, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds float, ptr %99, i64 %101
%103 = load float, ptr %102, align 4
%104 = fmul float %96, %103
%105 = load ptr, ptr %12, align 8
%106 = load i32, ptr %13, align 4
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds float, ptr %105, i64 %107
store float %104, ptr %108, align 4
br label %109
109: ; preds = %78
%110 = load i32, ptr %13, align 4
%111 = add nsw i32 %110, 1
store i32 %111, ptr %13, align 4
%112 = load i32, ptr %13, align 4
%113 = load i32, ptr %7, align 4
%114 = icmp sle i32 %112, %113
br i1 %114, label %78, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %109
br label %115
115: ; preds = %._crit_edge6, %67
%116 = load ptr, ptr %15, align 8
%117 = load i32, ptr %7, align 4
%118 = load i32, ptr %7, align 4
%119 = call i32 @free_matrix(ptr noundef %116, i32 noundef 1, i32 noundef %117, i32 noundef 1, i32 noundef %118)
ret void
}
declare ptr @matrix(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare float @sqrt(float noundef) #1
declare void @tqli(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare void @eigsrt(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free_matrix(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp6tg5ie0d.c'
source_filename = "/tmp/tmp6tg5ie0d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%lld\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca [100000 x i64], align 16
%10 = alloca [100000 x i64], align 16
store i32 0, ptr %1, align 4
store i64 0, ptr %6, align 8
%11 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
%12 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
store i64 0, ptr %2, align 8
br label %13
13: ; preds = %21, %0
%14 = load i64, ptr %2, align 8
%15 = load i64, ptr %5, align 8
%16 = icmp slt i64 %14, %15
br i1 %16, label %17, label %24
17: ; preds = %13
%18 = load i64, ptr %2, align 8
%19 = getelementptr inbounds [100000 x i64], ptr %9, i64 0, i64 %18
%20 = call i32 @scanf(ptr noundef @.str, ptr noundef %19)
br label %21
21: ; preds = %17
%22 = load i64, ptr %2, align 8
%23 = add nsw i64 %22, 1
store i64 %23, ptr %2, align 8
br label %13, !llvm.loop !6
24: ; preds = %13
%25 = getelementptr inbounds [100000 x i64], ptr %9, i64 0, i64 0
%26 = load i64, ptr %5, align 8
%27 = call i32 @insertion(ptr noundef %25, i64 noundef %26)
store i64 0, ptr %2, align 8
%28 = load i64, ptr %4, align 8
%29 = sub nsw i64 %28, 1
store i64 %29, ptr %3, align 8
br label %30
30: ; preds = %47, %24
%31 = load i64, ptr %3, align 8
%32 = load i64, ptr %5, align 8
%33 = icmp slt i64 %31, %32
br i1 %33, label %34, label %52
34: ; preds = %30
%35 = load i64, ptr %3, align 8
%36 = getelementptr inbounds [100000 x i64], ptr %9, i64 0, i64 %35
%37 = load i64, ptr %36, align 8
%38 = load i64, ptr %2, align 8
%39 = getelementptr inbounds [100000 x i64], ptr %9, i64 0, i64 %38
%40 = load i64, ptr %39, align 8
%41 = sub nsw i64 %37, %40
%42 = load i64, ptr %6, align 8
%43 = getelementptr inbounds [100000 x i64], ptr %10, i64 0, i64 %42
store i64 %41, ptr %43, align 8
%44 = load i64, ptr %6, align 8
%45 = add nsw i64 %44, 1
store i64 %45, ptr %6, align 8
%46 = load i64, ptr %6, align 8
store i64 %46, ptr %7, align 8
br label %47
47: ; preds = %34
%48 = load i64, ptr %2, align 8
%49 = add nsw i64 %48, 1
store i64 %49, ptr %2, align 8
%50 = load i64, ptr %3, align 8
%51 = add nsw i64 %50, 1
store i64 %51, ptr %3, align 8
br label %30, !llvm.loop !8
52: ; preds = %30
%53 = getelementptr inbounds [100000 x i64], ptr %10, i64 0, i64 0
%54 = load i64, ptr %53, align 16
store i64 %54, ptr %8, align 8
store i64 0, ptr %2, align 8
br label %55
55: ; preds = %70, %52
%56 = load i64, ptr %2, align 8
%57 = load i64, ptr %7, align 8
%58 = icmp slt i64 %56, %57
br i1 %58, label %59, label %73
59: ; preds = %55
%60 = load i64, ptr %8, align 8
%61 = load i64, ptr %2, align 8
%62 = getelementptr inbounds [100000 x i64], ptr %10, i64 0, i64 %61
%63 = load i64, ptr %62, align 8
%64 = icmp sgt i64 %60, %63
br i1 %64, label %65, label %69
65: ; preds = %59
%66 = load i64, ptr %2, align 8
%67 = getelementptr inbounds [100000 x i64], ptr %10, i64 0, i64 %66
%68 = load i64, ptr %67, align 8
store i64 %68, ptr %8, align 8
br label %69
69: ; preds = %65, %59
br label %70
70: ; preds = %69
%71 = load i64, ptr %2, align 8
%72 = add nsw i64 %71, 1
store i64 %72, ptr %2, align 8
br label %55, !llvm.loop !9
73: ; preds = %55
%74 = load i64, ptr %8, align 8
%75 = call i32 @printf(ptr noundef @.str, i64 noundef %74)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @insertion(ptr noundef, i64 noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6tg5ie0d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%lld\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca [100000 x i64], align 16
%10 = alloca [100000 x i64], align 16
store i32 0, ptr %1, align 4
store i64 0, ptr %6, align 8
%11 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
%12 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
store i64 0, ptr %2, align 8
%13 = load i64, ptr %2, align 8
%14 = load i64, ptr %5, align 8
%15 = icmp slt i64 %13, %14
br i1 %15, label %.lr.ph, label %26
.lr.ph: ; preds = %0
br label %16
16: ; preds = %.lr.ph, %20
%17 = load i64, ptr %2, align 8
%18 = getelementptr inbounds [100000 x i64], ptr %9, i64 0, i64 %17
%19 = call i32 @scanf(ptr noundef @.str, ptr noundef %18)
br label %20
20: ; preds = %16
%21 = load i64, ptr %2, align 8
%22 = add nsw i64 %21, 1
store i64 %22, ptr %2, align 8
%23 = load i64, ptr %2, align 8
%24 = load i64, ptr %5, align 8
%25 = icmp slt i64 %23, %24
br i1 %25, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %26
26: ; preds = %._crit_edge, %0
%27 = getelementptr inbounds [100000 x i64], ptr %9, i64 0, i64 0
%28 = load i64, ptr %5, align 8
%29 = call i32 @insertion(ptr noundef %27, i64 noundef %28)
store i64 0, ptr %2, align 8
%30 = load i64, ptr %4, align 8
%31 = sub nsw i64 %30, 1
store i64 %31, ptr %3, align 8
%32 = load i64, ptr %3, align 8
%33 = load i64, ptr %5, align 8
%34 = icmp slt i64 %32, %33
br i1 %34, label %.lr.ph2, label %56
.lr.ph2: ; preds = %26
br label %35
35: ; preds = %.lr.ph2, %48
%36 = load i64, ptr %3, align 8
%37 = getelementptr inbounds [100000 x i64], ptr %9, i64 0, i64 %36
%38 = load i64, ptr %37, align 8
%39 = load i64, ptr %2, align 8
%40 = getelementptr inbounds [100000 x i64], ptr %9, i64 0, i64 %39
%41 = load i64, ptr %40, align 8
%42 = sub nsw i64 %38, %41
%43 = load i64, ptr %6, align 8
%44 = getelementptr inbounds [100000 x i64], ptr %10, i64 0, i64 %43
store i64 %42, ptr %44, align 8
%45 = load i64, ptr %6, align 8
%46 = add nsw i64 %45, 1
store i64 %46, ptr %6, align 8
%47 = load i64, ptr %6, align 8
store i64 %47, ptr %7, align 8
br label %48
48: ; preds = %35
%49 = load i64, ptr %2, align 8
%50 = add nsw i64 %49, 1
store i64 %50, ptr %2, align 8
%51 = load i64, ptr %3, align 8
%52 = add nsw i64 %51, 1
store i64 %52, ptr %3, align 8
%53 = load i64, ptr %3, align 8
%54 = load i64, ptr %5, align 8
%55 = icmp slt i64 %53, %54
br i1 %55, label %35, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %48
br label %56
56: ; preds = %._crit_edge3, %26
%57 = getelementptr inbounds [100000 x i64], ptr %10, i64 0, i64 0
%58 = load i64, ptr %57, align 16
store i64 %58, ptr %8, align 8
store i64 0, ptr %2, align 8
%59 = load i64, ptr %2, align 8
%60 = load i64, ptr %7, align 8
%61 = icmp slt i64 %59, %60
br i1 %61, label %.lr.ph5, label %79
.lr.ph5: ; preds = %56
br label %62
62: ; preds = %.lr.ph5, %73
%63 = load i64, ptr %8, align 8
%64 = load i64, ptr %2, align 8
%65 = getelementptr inbounds [100000 x i64], ptr %10, i64 0, i64 %64
%66 = load i64, ptr %65, align 8
%67 = icmp sgt i64 %63, %66
br i1 %67, label %68, label %72
68: ; preds = %62
%69 = load i64, ptr %2, align 8
%70 = getelementptr inbounds [100000 x i64], ptr %10, i64 0, i64 %69
%71 = load i64, ptr %70, align 8
store i64 %71, ptr %8, align 8
br label %72
72: ; preds = %68, %62
br label %73
73: ; preds = %72
%74 = load i64, ptr %2, align 8
%75 = add nsw i64 %74, 1
store i64 %75, ptr %2, align 8
%76 = load i64, ptr %2, align 8
%77 = load i64, ptr %7, align 8
%78 = icmp slt i64 %76, %77
br i1 %78, label %62, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %73
br label %79
79: ; preds = %._crit_edge6, %56
%80 = load i64, ptr %8, align 8
%81 = call i32 @printf(ptr noundef @.str, i64 noundef %80)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @insertion(ptr noundef, i64 noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpyfh3jm79.c'
source_filename = "/tmp/tmpyfh3jm79.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @printprimes(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i64 1, ptr %5, align 8
br label %6
6: ; preds = %27, %2
%7 = load i64, ptr %5, align 8
%8 = load i64, ptr %4, align 8
%9 = icmp slt i64 %7, %8
br i1 %9, label %10, label %30
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = load i64, ptr %5, align 8
%13 = sdiv i64 %12, 8
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = load i8, ptr %14, align 1
%16 = zext i8 %15 to i32
%17 = load i64, ptr %5, align 8
%18 = srem i64 %17, 8
%19 = trunc i64 %18 to i32
%20 = shl i32 1, %19
%21 = and i32 %16, %20
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %10
%24 = load i64, ptr %5, align 8
%25 = call i32 @printf(ptr noundef @.str, i64 noundef %24)
br label %26
26: ; preds = %23, %10
br label %27
27: ; preds = %26
%28 = load i64, ptr %5, align 8
%29 = add nsw i64 %28, 1
store i64 %29, ptr %5, align 8
br label %6, !llvm.loop !6
30: ; preds = %6
ret i32 0
}
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/tmpyfh3jm79.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @printprimes(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i64 1, ptr %5, align 8
%6 = load i64, ptr %5, align 8
%7 = load i64, ptr %4, align 8
%8 = icmp slt i64 %6, %7
br i1 %8, label %.lr.ph, label %32
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %26
%10 = load ptr, ptr %3, align 8
%11 = load i64, ptr %5, align 8
%12 = sdiv i64 %11, 8
%13 = getelementptr inbounds i8, ptr %10, i64 %12
%14 = load i8, ptr %13, align 1
%15 = zext i8 %14 to i32
%16 = load i64, ptr %5, align 8
%17 = srem i64 %16, 8
%18 = trunc i64 %17 to i32
%19 = shl i32 1, %18
%20 = and i32 %15, %19
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %9
%23 = load i64, ptr %5, align 8
%24 = call i32 @printf(ptr noundef @.str, i64 noundef %23)
br label %25
25: ; preds = %22, %9
br label %26
26: ; preds = %25
%27 = load i64, ptr %5, align 8
%28 = add nsw i64 %27, 1
store i64 %28, ptr %5, align 8
%29 = load i64, ptr %5, align 8
%30 = load i64, ptr %4, align 8
%31 = icmp slt i64 %29, %30
br i1 %31, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %32
32: ; preds = %._crit_edge, %2
ret i32 0
}
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/tmpykk0t6jd.c'
source_filename = "/tmp/tmpykk0t6jd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @twoSum(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [100000 x i32], align 16
%8 = alloca ptr, align 8
%9 = 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
call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 400000, i1 false)
%10 = call ptr @malloc(i32 noundef 8)
store ptr %10, ptr %8, align 8
store i32 0, ptr %9, align 4
br label %11
11: ; preds = %58, %3
%12 = load i32, ptr %9, align 4
%13 = load i32, ptr %5, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %61
15: ; preds = %11
%16 = load i32, ptr %6, align 4
%17 = load ptr, ptr %4, align 8
%18 = load i32, ptr %9, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %17, i64 %19
%21 = load i32, ptr %20, align 4
%22 = sub nsw i32 %16, %21
%23 = add nsw i32 %22, 50000
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [100000 x i32], ptr %7, i64 0, i64 %24
%26 = load i32, ptr %25, align 4
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %39
28: ; preds = %15
%29 = load i32, ptr %9, align 4
%30 = add nsw i32 %29, 1
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %9, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %31, i64 %33
%35 = load i32, ptr %34, align 4
%36 = add nsw i32 %35, 50000
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [100000 x i32], ptr %7, i64 0, i64 %37
store i32 %30, ptr %38, align 4
br label %57
39: ; preds = %15
%40 = load i32, ptr %6, align 4
%41 = load ptr, ptr %4, align 8
%42 = load i32, ptr %9, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
%45 = load i32, ptr %44, align 4
%46 = sub nsw i32 %40, %45
%47 = add nsw i32 %46, 50000
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [100000 x i32], ptr %7, i64 0, i64 %48
%50 = load i32, ptr %49, align 4
%51 = sub nsw i32 %50, 1
%52 = load ptr, ptr %8, align 8
%53 = getelementptr inbounds i32, ptr %52, i64 0
store i32 %51, ptr %53, align 4
%54 = load i32, ptr %9, align 4
%55 = load ptr, ptr %8, align 8
%56 = getelementptr inbounds i32, ptr %55, i64 1
store i32 %54, ptr %56, align 4
br label %61
57: ; preds = %28
br label %58
58: ; preds = %57
%59 = load i32, ptr %9, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %9, align 4
br label %11, !llvm.loop !6
61: ; preds = %39, %11
%62 = load ptr, ptr %8, align 8
ret ptr %62
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare ptr @malloc(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpykk0t6jd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @twoSum(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [100000 x i32], align 16
%8 = alloca ptr, align 8
%9 = 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
call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 400000, i1 false)
%10 = call ptr @malloc(i32 noundef 8)
store ptr %10, ptr %8, align 8
store i32 0, ptr %9, align 4
%11 = load i32, ptr %9, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %3
br label %14
14: ; preds = %.lr.ph, %57
%15 = load i32, ptr %6, align 4
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %9, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, ptr %16, i64 %18
%20 = load i32, ptr %19, align 4
%21 = sub nsw i32 %15, %20
%22 = add nsw i32 %21, 50000
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [100000 x i32], ptr %7, i64 0, i64 %23
%25 = load i32, ptr %24, align 4
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %38
27: ; preds = %14
%28 = load i32, ptr %9, align 4
%29 = add nsw i32 %28, 1
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %9, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %30, i64 %32
%34 = load i32, ptr %33, align 4
%35 = add nsw i32 %34, 50000
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [100000 x i32], ptr %7, i64 0, i64 %36
store i32 %29, ptr %37, align 4
br label %56
38: ; preds = %14
%39 = load i32, ptr %6, align 4
%40 = load ptr, ptr %4, align 8
%41 = load i32, ptr %9, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %40, i64 %42
%44 = load i32, ptr %43, align 4
%45 = sub nsw i32 %39, %44
%46 = add nsw i32 %45, 50000
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [100000 x i32], ptr %7, i64 0, i64 %47
%49 = load i32, ptr %48, align 4
%50 = sub nsw i32 %49, 1
%51 = load ptr, ptr %8, align 8
%52 = getelementptr inbounds i32, ptr %51, i64 0
store i32 %50, ptr %52, align 4
%53 = load i32, ptr %9, align 4
%54 = load ptr, ptr %8, align 8
%55 = getelementptr inbounds i32, ptr %54, i64 1
store i32 %53, ptr %55, align 4
br label %63
56: ; preds = %27
br label %57
57: ; preds = %56
%58 = load i32, ptr %9, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %9, align 4
%60 = load i32, ptr %9, align 4
%61 = load i32, ptr %5, align 4
%62 = icmp slt i32 %60, %61
br i1 %62, label %14, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %57
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %3
br label %63
63: ; preds = %.loopexit, %38
%64 = load ptr, ptr %8, align 8
ret ptr %64
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare ptr @malloc(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpbail2sw0.c'
source_filename = "/tmp/tmpbail2sw0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @calcSunDeclination(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
store double %0, ptr %2, align 8
%7 = load double, ptr %2, align 8
%8 = call double @calcObliquityCorrection(double noundef %7)
store double %8, ptr %3, align 8
%9 = load double, ptr %2, align 8
%10 = call double @calcSunApparentLong(double noundef %9)
store double %10, ptr %4, align 8
%11 = load double, ptr %3, align 8
%12 = call i32 @degToRad(double noundef %11)
%13 = call double @sin(i32 noundef %12)
%14 = load double, ptr %4, align 8
%15 = call i32 @degToRad(double noundef %14)
%16 = call double @sin(i32 noundef %15)
%17 = fmul double %13, %16
store double %17, ptr %5, align 8
%18 = load double, ptr %5, align 8
%19 = call i32 @asin(double noundef %18)
%20 = call double @radToDeg(i32 noundef %19)
store double %20, ptr %6, align 8
%21 = load double, ptr %6, align 8
ret double %21
}
declare double @calcObliquityCorrection(double noundef) #1
declare double @calcSunApparentLong(double noundef) #1
declare double @sin(i32 noundef) #1
declare i32 @degToRad(double noundef) #1
declare double @radToDeg(i32 noundef) #1
declare i32 @asin(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbail2sw0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @calcSunDeclination(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
store double %0, ptr %2, align 8
%7 = load double, ptr %2, align 8
%8 = call double @calcObliquityCorrection(double noundef %7)
store double %8, ptr %3, align 8
%9 = load double, ptr %2, align 8
%10 = call double @calcSunApparentLong(double noundef %9)
store double %10, ptr %4, align 8
%11 = load double, ptr %3, align 8
%12 = call i32 @degToRad(double noundef %11)
%13 = call double @sin(i32 noundef %12)
%14 = load double, ptr %4, align 8
%15 = call i32 @degToRad(double noundef %14)
%16 = call double @sin(i32 noundef %15)
%17 = fmul double %13, %16
store double %17, ptr %5, align 8
%18 = load double, ptr %5, align 8
%19 = call i32 @asin(double noundef %18)
%20 = call double @radToDeg(i32 noundef %19)
store double %20, ptr %6, align 8
%21 = load double, ptr %6, align 8
ret double %21
}
declare double @calcObliquityCorrection(double noundef) #1
declare double @calcSunApparentLong(double noundef) #1
declare double @sin(i32 noundef) #1
declare i32 @degToRad(double noundef) #1
declare double @radToDeg(i32 noundef) #1
declare i32 @asin(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkxt7k_d4.c'
source_filename = "/tmp/tmpkxt7k_d4.c"
target datalayout = "e-m:e-p270: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/tmpkxt7k_d4.c"
target datalayout = "e-m:e-p270: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/tmpkfgf42yv.c'
source_filename = "/tmp/tmpkfgf42yv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [43 x i8] c"You have now been charged for your order.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @chargeClient() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkfgf42yv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [43 x i8] c"You have now been charged for your order.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @chargeClient() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6ob7b3lo.c'
source_filename = "/tmp/tmp6ob7b3lo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c" \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @equalizeSpacing(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
store i32 %7, ptr %5, align 4
br label %8
8: ; preds = %12, %2
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp ne i32 %9, %10
br i1 %11, label %12, label %16
12: ; preds = %8
%13 = call i32 @printw(ptr noundef @.str)
%14 = load i32, ptr %5, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %5, align 4
br label %8, !llvm.loop !6
16: ; preds = %8
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i32 @printw(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp6ob7b3lo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c" \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @equalizeSpacing(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
store i32 %7, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %8, %9
br i1 %10, label %.lr.ph, label %18
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %11
%12 = call i32 @printw(ptr noundef @.str)
%13 = load i32, ptr %5, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %5, align 4
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp ne i32 %15, %16
br i1 %17, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %18
18: ; preds = %._crit_edge, %2
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i32 @printw(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpataycwgp.c'
source_filename = "/tmp/tmpataycwgp.c"
target datalayout = "e-m:e-p270: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.in_addr = type { i32 }
%struct.iphdr = type { i32, i32, i32, i32, i32, i32, i32, ptr, ptr }
@IPPROTO_IGMP = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ip_header_init(ptr noundef %0, i32 %1, i32 %2) #0 {
%4 = alloca %struct.in_addr, align 4
%5 = alloca %struct.in_addr, align 4
%6 = alloca ptr, align 8
%7 = getelementptr inbounds %struct.in_addr, ptr %4, i32 0, i32 0
store i32 %1, ptr %7, align 4
%8 = getelementptr inbounds %struct.in_addr, ptr %5, i32 0, i32 0
store i32 %2, ptr %8, align 4
store ptr %0, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = getelementptr inbounds %struct.iphdr, ptr %9, i32 0, i32 0
store i32 4, ptr %10, align 8
%11 = load ptr, ptr %6, align 8
%12 = getelementptr inbounds %struct.iphdr, ptr %11, i32 0, i32 1
store i32 6, ptr %12, align 4
%13 = load ptr, ptr %6, align 8
%14 = getelementptr inbounds %struct.iphdr, ptr %13, i32 0, i32 2
store i32 192, ptr %14, align 8
%15 = call ptr @htons(i32 noundef 0)
%16 = load ptr, ptr %6, align 8
%17 = getelementptr inbounds %struct.iphdr, ptr %16, i32 0, i32 8
store ptr %15, ptr %17, align 8
%18 = call ptr @htons(i32 noundef 16384)
%19 = load ptr, ptr %6, align 8
%20 = getelementptr inbounds %struct.iphdr, ptr %19, i32 0, i32 7
store ptr %18, ptr %20, align 8
%21 = load ptr, ptr %6, align 8
%22 = getelementptr inbounds %struct.iphdr, ptr %21, i32 0, i32 3
store i32 1, ptr %22, align 4
%23 = load i32, ptr @IPPROTO_IGMP, align 4
%24 = load ptr, ptr %6, align 8
%25 = getelementptr inbounds %struct.iphdr, ptr %24, i32 0, i32 6
store i32 %23, ptr %25, align 8
%26 = getelementptr inbounds %struct.in_addr, ptr %4, i32 0, i32 0
%27 = load i32, ptr %26, align 4
%28 = load ptr, ptr %6, align 8
%29 = getelementptr inbounds %struct.iphdr, ptr %28, i32 0, i32 5
store i32 %27, ptr %29, align 4
%30 = getelementptr inbounds %struct.in_addr, ptr %5, i32 0, i32 0
%31 = load i32, ptr %30, align 4
%32 = load ptr, ptr %6, align 8
%33 = getelementptr inbounds %struct.iphdr, ptr %32, i32 0, i32 4
store i32 %31, ptr %33, align 8
ret void
}
declare ptr @htons(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/tmpataycwgp.c"
target datalayout = "e-m:e-p270: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.in_addr = type { i32 }
%struct.iphdr = type { i32, i32, i32, i32, i32, i32, i32, ptr, ptr }
@IPPROTO_IGMP = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ip_header_init(ptr noundef %0, i32 %1, i32 %2) #0 {
%4 = alloca %struct.in_addr, align 4
%5 = alloca %struct.in_addr, align 4
%6 = alloca ptr, align 8
%7 = getelementptr inbounds %struct.in_addr, ptr %4, i32 0, i32 0
store i32 %1, ptr %7, align 4
%8 = getelementptr inbounds %struct.in_addr, ptr %5, i32 0, i32 0
store i32 %2, ptr %8, align 4
store ptr %0, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = getelementptr inbounds %struct.iphdr, ptr %9, i32 0, i32 0
store i32 4, ptr %10, align 8
%11 = load ptr, ptr %6, align 8
%12 = getelementptr inbounds %struct.iphdr, ptr %11, i32 0, i32 1
store i32 6, ptr %12, align 4
%13 = load ptr, ptr %6, align 8
%14 = getelementptr inbounds %struct.iphdr, ptr %13, i32 0, i32 2
store i32 192, ptr %14, align 8
%15 = call ptr @htons(i32 noundef 0)
%16 = load ptr, ptr %6, align 8
%17 = getelementptr inbounds %struct.iphdr, ptr %16, i32 0, i32 8
store ptr %15, ptr %17, align 8
%18 = call ptr @htons(i32 noundef 16384)
%19 = load ptr, ptr %6, align 8
%20 = getelementptr inbounds %struct.iphdr, ptr %19, i32 0, i32 7
store ptr %18, ptr %20, align 8
%21 = load ptr, ptr %6, align 8
%22 = getelementptr inbounds %struct.iphdr, ptr %21, i32 0, i32 3
store i32 1, ptr %22, align 4
%23 = load i32, ptr @IPPROTO_IGMP, align 4
%24 = load ptr, ptr %6, align 8
%25 = getelementptr inbounds %struct.iphdr, ptr %24, i32 0, i32 6
store i32 %23, ptr %25, align 8
%26 = getelementptr inbounds %struct.in_addr, ptr %4, i32 0, i32 0
%27 = load i32, ptr %26, align 4
%28 = load ptr, ptr %6, align 8
%29 = getelementptr inbounds %struct.iphdr, ptr %28, i32 0, i32 5
store i32 %27, ptr %29, align 4
%30 = getelementptr inbounds %struct.in_addr, ptr %5, i32 0, i32 0
%31 = load i32, ptr %30, align 4
%32 = load ptr, ptr %6, align 8
%33 = getelementptr inbounds %struct.iphdr, ptr %32, i32 0, i32 4
store i32 %31, ptr %33, align 8
ret void
}
declare ptr @htons(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/tmpfls159f8.c'
source_filename = "/tmp/tmpfls159f8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @HHNa_alpha2(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = fneg double %3
%5 = fdiv double %4, 2.000000e+01
%6 = call double @exp(double noundef %5) #2
%7 = fmul double 7.000000e-02, %6
ret double %7
}
; Function Attrs: nounwind
declare double @exp(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfls159f8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @HHNa_alpha2(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = fneg double %3
%5 = fdiv double %4, 2.000000e+01
%6 = call double @exp(double noundef %5) #2
%7 = fmul double 7.000000e-02, %6
ret double %7
}
; Function Attrs: nounwind
declare double @exp(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8m2_xaez.c'
source_filename = "/tmp/tmp8m2_xaez.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bitwise_clear(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%8 = load i64, ptr %5, align 8
store i64 %8, ptr %7, align 8
br label %9
9: ; preds = %28, %3
%10 = load i64, ptr %7, align 8
%11 = load i64, ptr %5, align 8
%12 = load i64, ptr %6, align 8
%13 = add i64 %11, %12
%14 = icmp ult i64 %10, %13
br i1 %14, label %15, label %31
15: ; preds = %9
%16 = load i64, ptr %7, align 8
%17 = urem i64 %16, 8
%18 = sub i64 7, %17
%19 = trunc i64 %18 to i32
%20 = shl i32 1, %19
%21 = xor i32 %20, -1
%22 = load ptr, ptr %4, align 8
%23 = load i64, ptr %7, align 8
%24 = udiv i64 %23, 8
%25 = getelementptr inbounds i32, ptr %22, i64 %24
%26 = load i32, ptr %25, align 4
%27 = and i32 %26, %21
store i32 %27, ptr %25, align 4
br label %28
28: ; preds = %15
%29 = load i64, ptr %7, align 8
%30 = add i64 %29, 1
store i64 %30, ptr %7, align 8
br label %9, !llvm.loop !6
31: ; preds = %9
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/tmp8m2_xaez.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bitwise_clear(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%8 = load i64, ptr %5, align 8
store i64 %8, ptr %7, align 8
%9 = load i64, ptr %7, align 8
%10 = load i64, ptr %5, align 8
%11 = load i64, ptr %6, align 8
%12 = add i64 %10, %11
%13 = icmp ult i64 %9, %12
br i1 %13, label %.lr.ph, label %35
.lr.ph: ; preds = %3
br label %14
14: ; preds = %.lr.ph, %27
%15 = load i64, ptr %7, align 8
%16 = urem i64 %15, 8
%17 = sub i64 7, %16
%18 = trunc i64 %17 to i32
%19 = shl i32 1, %18
%20 = xor i32 %19, -1
%21 = load ptr, ptr %4, align 8
%22 = load i64, ptr %7, align 8
%23 = udiv i64 %22, 8
%24 = getelementptr inbounds i32, ptr %21, i64 %23
%25 = load i32, ptr %24, align 4
%26 = and i32 %25, %20
store i32 %26, ptr %24, align 4
br label %27
27: ; preds = %14
%28 = load i64, ptr %7, align 8
%29 = add i64 %28, 1
store i64 %29, ptr %7, align 8
%30 = load i64, ptr %7, align 8
%31 = load i64, ptr %5, align 8
%32 = load i64, ptr %6, align 8
%33 = add i64 %31, %32
%34 = icmp ult i64 %30, %33
br i1 %34, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %35
35: ; 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/tmpl_kw526f.c'
source_filename = "/tmp/tmpl_kw526f.c"
target datalayout = "e-m:e-p270: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.ifconf = type { i32, ptr }
%struct.ifreq = type { i32 }
%struct.sockaddr_in = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@SIOCGIFCONF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"127.0.0.1\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getlocalip(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca %struct.ifconf, align 8
%7 = alloca [512 x i8], align 16
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
%10 = getelementptr inbounds %struct.ifconf, ptr %6, i32 0, i32 0
store i32 512, ptr %10, align 8
%11 = getelementptr inbounds [512 x i8], ptr %7, i64 0, i64 0
%12 = getelementptr inbounds %struct.ifconf, ptr %6, i32 0, i32 1
store ptr %11, ptr %12, align 8
%13 = load i32, ptr @AF_INET, align 4
%14 = load i32, ptr @SOCK_DGRAM, align 4
%15 = call i32 @socket(i32 noundef %13, i32 noundef %14, i32 noundef 0)
store i32 %15, ptr %5, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %1
store i32 -1, ptr %2, align 4
br label %53
18: ; preds = %1
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr @SIOCGIFCONF, align 4
%21 = call i32 @ioctl(i32 noundef %19, i32 noundef %20, ptr noundef %6)
%22 = load i32, ptr %5, align 4
%23 = call i32 @close(i32 noundef %22)
%24 = getelementptr inbounds [512 x i8], ptr %7, i64 0, i64 0
store ptr %24, ptr %8, align 8
%25 = getelementptr inbounds %struct.ifconf, ptr %6, i32 0, i32 0
%26 = load i32, ptr %25, align 8
%27 = sext i32 %26 to i64
%28 = udiv i64 %27, 4
%29 = trunc i64 %28 to i32
store i32 %29, ptr %4, align 4
br label %30
30: ; preds = %49, %18
%31 = load i32, ptr %4, align 4
%32 = icmp sgt i32 %31, 0
br i1 %32, label %33, label %52
33: ; preds = %30
%34 = load ptr, ptr %8, align 8
%35 = getelementptr inbounds %struct.ifreq, ptr %34, i32 0, i32 0
%36 = getelementptr inbounds %struct.sockaddr_in, ptr %35, i32 0, i32 0
%37 = load i32, ptr %36, align 4
%38 = call ptr @inet_ntoa(i32 noundef %37)
store ptr %38, ptr %9, align 8
%39 = load ptr, ptr %9, align 8
%40 = call i64 @strcmp(ptr noundef %39, ptr noundef @.str)
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %45
42: ; preds = %33
%43 = load ptr, ptr %8, align 8
%44 = getelementptr inbounds %struct.ifreq, ptr %43, i32 1
store ptr %44, ptr %8, align 8
br label %49
45: ; preds = %33
%46 = load ptr, ptr %3, align 8
%47 = load ptr, ptr %9, align 8
%48 = call i32 @strcpy(ptr noundef %46, ptr noundef %47)
store i32 0, ptr %2, align 4
br label %53
49: ; preds = %42
%50 = load i32, ptr %4, align 4
%51 = add nsw i32 %50, -1
store i32 %51, ptr %4, align 4
br label %30, !llvm.loop !6
52: ; preds = %30
store i32 -1, ptr %2, align 4
br label %53
53: ; preds = %52, %45, %17
%54 = load i32, ptr %2, align 4
ret i32 %54
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare ptr @inet_ntoa(i32 noundef) #1
declare i64 @strcmp(ptr noundef, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl_kw526f.c"
target datalayout = "e-m:e-p270: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.ifconf = type { i32, ptr }
%struct.ifreq = type { i32 }
%struct.sockaddr_in = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@SIOCGIFCONF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"127.0.0.1\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getlocalip(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca %struct.ifconf, align 8
%7 = alloca [512 x i8], align 16
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
%10 = getelementptr inbounds %struct.ifconf, ptr %6, i32 0, i32 0
store i32 512, ptr %10, align 8
%11 = getelementptr inbounds [512 x i8], ptr %7, i64 0, i64 0
%12 = getelementptr inbounds %struct.ifconf, ptr %6, i32 0, i32 1
store ptr %11, ptr %12, align 8
%13 = load i32, ptr @AF_INET, align 4
%14 = load i32, ptr @SOCK_DGRAM, align 4
%15 = call i32 @socket(i32 noundef %13, i32 noundef %14, i32 noundef 0)
store i32 %15, ptr %5, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %1
store i32 -1, ptr %2, align 4
br label %54
18: ; preds = %1
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr @SIOCGIFCONF, align 4
%21 = call i32 @ioctl(i32 noundef %19, i32 noundef %20, ptr noundef %6)
%22 = load i32, ptr %5, align 4
%23 = call i32 @close(i32 noundef %22)
%24 = getelementptr inbounds [512 x i8], ptr %7, i64 0, i64 0
store ptr %24, ptr %8, align 8
%25 = getelementptr inbounds %struct.ifconf, ptr %6, i32 0, i32 0
%26 = load i32, ptr %25, align 8
%27 = sext i32 %26 to i64
%28 = udiv i64 %27, 4
%29 = trunc i64 %28 to i32
store i32 %29, ptr %4, align 4
%30 = load i32, ptr %4, align 4
%31 = icmp sgt i32 %30, 0
br i1 %31, label %.lr.ph, label %53
.lr.ph: ; preds = %18
br label %32
32: ; preds = %.lr.ph, %48
%33 = load ptr, ptr %8, align 8
%34 = getelementptr inbounds %struct.ifreq, ptr %33, i32 0, i32 0
%35 = getelementptr inbounds %struct.sockaddr_in, ptr %34, i32 0, i32 0
%36 = load i32, ptr %35, align 4
%37 = call ptr @inet_ntoa(i32 noundef %36)
store ptr %37, ptr %9, align 8
%38 = load ptr, ptr %9, align 8
%39 = call i64 @strcmp(ptr noundef %38, ptr noundef @.str)
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %44
41: ; preds = %32
%42 = load ptr, ptr %8, align 8
%43 = getelementptr inbounds %struct.ifreq, ptr %42, i32 1
store ptr %43, ptr %8, align 8
br label %48
44: ; preds = %32
%45 = load ptr, ptr %3, align 8
%46 = load ptr, ptr %9, align 8
%47 = call i32 @strcpy(ptr noundef %45, ptr noundef %46)
store i32 0, ptr %2, align 4
br label %54
48: ; preds = %41
%49 = load i32, ptr %4, align 4
%50 = add nsw i32 %49, -1
store i32 %50, ptr %4, align 4
%51 = load i32, ptr %4, align 4
%52 = icmp sgt i32 %51, 0
br i1 %52, label %32, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %48
br label %53
53: ; preds = %._crit_edge, %18
store i32 -1, ptr %2, align 4
br label %54
54: ; preds = %53, %44, %17
%55 = load i32, ptr %2, align 4
ret i32 %55
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare ptr @inet_ntoa(i32 noundef) #1
declare i64 @strcmp(ptr noundef, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpf05vvkud.c'
source_filename = "/tmp/tmpf05vvkud.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"rgb(%d, %d, %d)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hex_to_dec() #0 {
%1 = alloca [8 x i8], align 1
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %2, align 4
br label %6
6: ; preds = %14, %0
%7 = load i32, ptr %2, align 4
%8 = icmp slt i32 %7, 8
br i1 %8, label %9, label %17
9: ; preds = %6
%10 = call signext i8 (...) @getchar()
%11 = load i32, ptr %2, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 %12
store i8 %10, ptr %13, align 1
br label %14
14: ; preds = %9
%15 = load i32, ptr %2, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %2, align 4
br label %6, !llvm.loop !6
17: ; preds = %6
store i32 1, ptr %2, align 4
br label %18
18: ; preds = %37, %17
%19 = load i32, ptr %2, align 4
%20 = icmp slt i32 %19, 3
br i1 %20, label %21, label %40
21: ; preds = %18
%22 = load i32, ptr %2, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 %23
%25 = load i8, ptr %24, align 1
%26 = load i32, ptr %2, align 4
%27 = call i32 @hex_decimal_convert(i8 noundef signext %25, i32 noundef %26)
%28 = mul nsw i32 %27, 16
%29 = load i32, ptr %2, align 4
%30 = add nsw i32 %29, 1
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 %31
%33 = load i8, ptr %32, align 1
%34 = load i32, ptr %2, align 4
%35 = call i32 @hex_decimal_convert(i8 noundef signext %33, i32 noundef %34)
%36 = add nsw i32 %28, %35
store i32 %36, ptr %3, align 4
br label %37
37: ; preds = %21
%38 = load i32, ptr %2, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %2, align 4
br label %18, !llvm.loop !8
40: ; preds = %18
store i32 3, ptr %2, align 4
br label %41
41: ; preds = %60, %40
%42 = load i32, ptr %2, align 4
%43 = icmp slt i32 %42, 5
br i1 %43, label %44, label %63
44: ; preds = %41
%45 = load i32, ptr %2, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 %46
%48 = load i8, ptr %47, align 1
%49 = load i32, ptr %2, align 4
%50 = call i32 @hex_decimal_convert(i8 noundef signext %48, i32 noundef %49)
%51 = mul nsw i32 %50, 16
%52 = load i32, ptr %2, align 4
%53 = add nsw i32 %52, 1
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 %54
%56 = load i8, ptr %55, align 1
%57 = load i32, ptr %2, align 4
%58 = call i32 @hex_decimal_convert(i8 noundef signext %56, i32 noundef %57)
%59 = add nsw i32 %51, %58
store i32 %59, ptr %4, align 4
br label %60
60: ; preds = %44
%61 = load i32, ptr %2, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %2, align 4
br label %41, !llvm.loop !9
63: ; preds = %41
store i32 5, ptr %2, align 4
br label %64
64: ; preds = %83, %63
%65 = load i32, ptr %2, align 4
%66 = icmp slt i32 %65, 7
br i1 %66, label %67, label %86
67: ; preds = %64
%68 = load i32, ptr %2, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 %69
%71 = load i8, ptr %70, align 1
%72 = load i32, ptr %2, align 4
%73 = call i32 @hex_decimal_convert(i8 noundef signext %71, i32 noundef %72)
%74 = mul nsw i32 %73, 16
%75 = load i32, ptr %2, align 4
%76 = add nsw i32 %75, 1
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 %77
%79 = load i8, ptr %78, align 1
%80 = load i32, ptr %2, align 4
%81 = call i32 @hex_decimal_convert(i8 noundef signext %79, i32 noundef %80)
%82 = add nsw i32 %74, %81
store i32 %82, ptr %5, align 4
br label %83
83: ; preds = %67
%84 = load i32, ptr %2, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %2, align 4
br label %64, !llvm.loop !10
86: ; preds = %64
%87 = load i32, ptr %3, align 4
%88 = load i32, ptr %4, align 4
%89 = load i32, ptr %5, align 4
%90 = call i32 @printf(ptr noundef @.str, i32 noundef %87, i32 noundef %88, i32 noundef %89)
ret void
}
declare signext i8 @getchar(...) #1
declare i32 @hex_decimal_convert(i8 noundef signext, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!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/tmpf05vvkud.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"rgb(%d, %d, %d)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hex_to_dec() #0 {
%1 = alloca [8 x i8], align 1
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 8
br i1 %7, label %.lr.ph, label %18
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %13
%9 = call signext i8 (...) @getchar()
%10 = load i32, ptr %2, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 %11
store i8 %9, ptr %12, align 1
br label %13
13: ; preds = %8
%14 = load i32, ptr %2, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %2, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp slt i32 %16, 8
br i1 %17, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %18
18: ; preds = %._crit_edge, %0
store i32 1, ptr %2, align 4
%19 = load i32, ptr %2, align 4
%20 = icmp slt i32 %19, 3
br i1 %20, label %.lr.ph2, label %42
.lr.ph2: ; preds = %18
br label %21
21: ; preds = %.lr.ph2, %37
%22 = load i32, ptr %2, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 %23
%25 = load i8, ptr %24, align 1
%26 = load i32, ptr %2, align 4
%27 = call i32 @hex_decimal_convert(i8 noundef signext %25, i32 noundef %26)
%28 = mul nsw i32 %27, 16
%29 = load i32, ptr %2, align 4
%30 = add nsw i32 %29, 1
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 %31
%33 = load i8, ptr %32, align 1
%34 = load i32, ptr %2, align 4
%35 = call i32 @hex_decimal_convert(i8 noundef signext %33, i32 noundef %34)
%36 = add nsw i32 %28, %35
store i32 %36, ptr %3, align 4
br label %37
37: ; preds = %21
%38 = load i32, ptr %2, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %2, align 4
%40 = load i32, ptr %2, align 4
%41 = icmp slt i32 %40, 3
br i1 %41, label %21, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %37
br label %42
42: ; preds = %._crit_edge3, %18
store i32 3, ptr %2, align 4
%43 = load i32, ptr %2, align 4
%44 = icmp slt i32 %43, 5
br i1 %44, label %.lr.ph5, label %66
.lr.ph5: ; preds = %42
br label %45
45: ; preds = %.lr.ph5, %61
%46 = load i32, ptr %2, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 %47
%49 = load i8, ptr %48, align 1
%50 = load i32, ptr %2, align 4
%51 = call i32 @hex_decimal_convert(i8 noundef signext %49, i32 noundef %50)
%52 = mul nsw i32 %51, 16
%53 = load i32, ptr %2, align 4
%54 = add nsw i32 %53, 1
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 %55
%57 = load i8, ptr %56, align 1
%58 = load i32, ptr %2, align 4
%59 = call i32 @hex_decimal_convert(i8 noundef signext %57, i32 noundef %58)
%60 = add nsw i32 %52, %59
store i32 %60, ptr %4, align 4
br label %61
61: ; preds = %45
%62 = load i32, ptr %2, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %2, align 4
%64 = load i32, ptr %2, align 4
%65 = icmp slt i32 %64, 5
br i1 %65, label %45, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %61
br label %66
66: ; preds = %._crit_edge6, %42
store i32 5, ptr %2, align 4
%67 = load i32, ptr %2, align 4
%68 = icmp slt i32 %67, 7
br i1 %68, label %.lr.ph8, label %90
.lr.ph8: ; preds = %66
br label %69
69: ; preds = %.lr.ph8, %85
%70 = load i32, ptr %2, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 %71
%73 = load i8, ptr %72, align 1
%74 = load i32, ptr %2, align 4
%75 = call i32 @hex_decimal_convert(i8 noundef signext %73, i32 noundef %74)
%76 = mul nsw i32 %75, 16
%77 = load i32, ptr %2, align 4
%78 = add nsw i32 %77, 1
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 %79
%81 = load i8, ptr %80, align 1
%82 = load i32, ptr %2, align 4
%83 = call i32 @hex_decimal_convert(i8 noundef signext %81, i32 noundef %82)
%84 = add nsw i32 %76, %83
store i32 %84, ptr %5, align 4
br label %85
85: ; preds = %69
%86 = load i32, ptr %2, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %2, align 4
%88 = load i32, ptr %2, align 4
%89 = icmp slt i32 %88, 7
br i1 %89, label %69, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %85
br label %90
90: ; preds = %._crit_edge9, %66
%91 = load i32, ptr %3, align 4
%92 = load i32, ptr %4, align 4
%93 = load i32, ptr %5, align 4
%94 = call i32 @printf(ptr noundef @.str, i32 noundef %91, i32 noundef %92, i32 noundef %93)
ret void
}
declare signext i8 @getchar(...) #1
declare i32 @hex_decimal_convert(i8 noundef signext, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpef_qhuxf.c'
source_filename = "/tmp/tmpef_qhuxf.c"
target datalayout = "e-m:e-p270: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/tmpef_qhuxf.c"
target datalayout = "e-m:e-p270: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/tmp25ndyjrj.c'
source_filename = "/tmp/tmp25ndyjrj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"thread 2 is running: id is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @thread2_run(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = call i32 (...) @pthread_self()
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
%6 = call i32 @pthread_exit(ptr noundef null)
%7 = load ptr, ptr %2, align 8
ret ptr %7
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @pthread_self(...) #1
declare i32 @pthread_exit(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp25ndyjrj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"thread 2 is running: id is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @thread2_run(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = call i32 (...) @pthread_self()
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
%6 = call i32 @pthread_exit(ptr noundef null)
%7 = load ptr, ptr %2, align 8
ret ptr %7
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @pthread_self(...) #1
declare i32 @pthread_exit(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzg34uxop.c'
source_filename = "/tmp/tmpzg34uxop.c"
target datalayout = "e-m:e-p270: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 [8 x i8] c"%s:%i: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @tscfg_report_err_v(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%9 = load i32, ptr @stderr, align 4
%10 = load ptr, ptr %5, align 8
%11 = load i32, ptr %6, align 4
%12 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str, ptr noundef %10, i32 noundef %11)
%13 = load i32, ptr @stderr, align 4
%14 = load ptr, ptr %7, align 8
%15 = load i32, ptr %8, align 4
%16 = call i32 @vfprintf(i32 noundef %13, ptr noundef %14, i32 noundef %15)
%17 = load i32, ptr @stderr, align 4
%18 = call i32 @fputc(i8 noundef signext 10, i32 noundef %17)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @vfprintf(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fputc(i8 noundef signext, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzg34uxop.c"
target datalayout = "e-m:e-p270: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 [8 x i8] c"%s:%i: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @tscfg_report_err_v(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%9 = load i32, ptr @stderr, align 4
%10 = load ptr, ptr %5, align 8
%11 = load i32, ptr %6, align 4
%12 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str, ptr noundef %10, i32 noundef %11)
%13 = load i32, ptr @stderr, align 4
%14 = load ptr, ptr %7, align 8
%15 = load i32, ptr %8, align 4
%16 = call i32 @vfprintf(i32 noundef %13, ptr noundef %14, i32 noundef %15)
%17 = load i32, ptr @stderr, align 4
%18 = call i32 @fputc(i8 noundef signext 10, i32 noundef %17)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @vfprintf(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fputc(i8 noundef signext, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfr__492r.c'
source_filename = "/tmp/tmpfr__492r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"[ERROR] - Couldn't open file!\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 512, ptr %7, align 4
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 1
%12 = load ptr, ptr %11, align 8
%13 = call ptr @fopen(ptr noundef %12, ptr noundef @.str)
store ptr %13, ptr %6, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %19
15: ; preds = %2
%16 = call i32 @printf(ptr noundef @.str.1)
%17 = load i32, ptr @EXIT_FAILURE, align 4
%18 = call i32 @exit(i32 noundef %17) #3
unreachable
19: ; preds = %2
%20 = load ptr, ptr %6, align 8
%21 = load i32, ptr @SEEK_END, align 4
%22 = call i32 @fseek(ptr noundef %20, i64 noundef 0, i32 noundef %21)
%23 = load ptr, ptr %6, align 8
%24 = call i32 @ftell(ptr noundef %23)
store i32 %24, ptr %8, align 4
%25 = load ptr, ptr %6, align 8
%26 = load i32, ptr @SEEK_SET, align 4
%27 = call i32 @fseek(ptr noundef %25, i64 noundef 0, i32 noundef %26)
%28 = load i32, ptr %8, align 4
%29 = load i32, ptr %7, align 4
%30 = add i32 %28, %29
%31 = call ptr @malloc(i32 noundef %30)
store ptr %31, ptr %9, align 8
%32 = load ptr, ptr %9, align 8
%33 = load i32, ptr %7, align 4
%34 = zext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
%36 = load i32, ptr %8, align 4
%37 = load ptr, ptr %6, align 8
%38 = call i32 @fread(ptr noundef %35, i32 noundef %36, i32 noundef 1, ptr noundef %37)
%39 = load ptr, ptr %6, align 8
%40 = call i32 @fclose(ptr noundef %39)
br label %41
41: ; preds = %46, %19
%42 = load i32, ptr %7, align 4
%43 = load i32, ptr %8, align 4
%44 = add i32 %43, 512
%45 = icmp ult i32 %42, %44
br i1 %45, label %46, label %52
46: ; preds = %41
%47 = load ptr, ptr %9, align 8
%48 = load i32, ptr %7, align 4
%49 = call i32 @print_opcode(ptr noundef %47, i32 noundef %48)
%50 = load i32, ptr %7, align 4
%51 = add i32 %50, 2
store i32 %51, ptr %7, align 4
br label %41, !llvm.loop !6
52: ; preds = %41
%53 = call i32 @putchar(i8 noundef signext 10)
%54 = load ptr, ptr %9, align 8
%55 = call i32 @free(ptr noundef %54)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @ftell(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @print_opcode(ptr noundef, i32 noundef) #1
declare i32 @putchar(i8 noundef signext) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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/tmpfr__492r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"[ERROR] - Couldn't open file!\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 512, ptr %7, align 4
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 1
%12 = load ptr, ptr %11, align 8
%13 = call ptr @fopen(ptr noundef %12, ptr noundef @.str)
store ptr %13, ptr %6, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %19
15: ; preds = %2
%16 = call i32 @printf(ptr noundef @.str.1)
%17 = load i32, ptr @EXIT_FAILURE, align 4
%18 = call i32 @exit(i32 noundef %17) #3
unreachable
19: ; preds = %2
%20 = load ptr, ptr %6, align 8
%21 = load i32, ptr @SEEK_END, align 4
%22 = call i32 @fseek(ptr noundef %20, i64 noundef 0, i32 noundef %21)
%23 = load ptr, ptr %6, align 8
%24 = call i32 @ftell(ptr noundef %23)
store i32 %24, ptr %8, align 4
%25 = load ptr, ptr %6, align 8
%26 = load i32, ptr @SEEK_SET, align 4
%27 = call i32 @fseek(ptr noundef %25, i64 noundef 0, i32 noundef %26)
%28 = load i32, ptr %8, align 4
%29 = load i32, ptr %7, align 4
%30 = add i32 %28, %29
%31 = call ptr @malloc(i32 noundef %30)
store ptr %31, ptr %9, align 8
%32 = load ptr, ptr %9, align 8
%33 = load i32, ptr %7, align 4
%34 = zext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
%36 = load i32, ptr %8, align 4
%37 = load ptr, ptr %6, align 8
%38 = call i32 @fread(ptr noundef %35, i32 noundef %36, i32 noundef 1, ptr noundef %37)
%39 = load ptr, ptr %6, align 8
%40 = call i32 @fclose(ptr noundef %39)
%41 = load i32, ptr %7, align 4
%42 = load i32, ptr %8, align 4
%43 = add i32 %42, 512
%44 = icmp ult i32 %41, %43
br i1 %44, label %.lr.ph, label %55
.lr.ph: ; preds = %19
br label %45
45: ; preds = %.lr.ph, %45
%46 = load ptr, ptr %9, align 8
%47 = load i32, ptr %7, align 4
%48 = call i32 @print_opcode(ptr noundef %46, i32 noundef %47)
%49 = load i32, ptr %7, align 4
%50 = add i32 %49, 2
store i32 %50, ptr %7, align 4
%51 = load i32, ptr %7, align 4
%52 = load i32, ptr %8, align 4
%53 = add i32 %52, 512
%54 = icmp ult i32 %51, %53
br i1 %54, label %45, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %45
br label %55
55: ; preds = %._crit_edge, %19
%56 = call i32 @putchar(i8 noundef signext 10)
%57 = load ptr, ptr %9, align 8
%58 = call i32 @free(ptr noundef %57)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @ftell(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @print_opcode(ptr noundef, i32 noundef) #1
declare i32 @putchar(i8 noundef signext) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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/tmpyecx28oi.c'
source_filename = "/tmp/tmpyecx28oi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @brush_motor_forward(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds i32, ptr %3, i64 4
store volatile i32 1, ptr %4, align 4
%5 = call i32 @usleep(i32 noundef 50)
ret void
}
declare i32 @usleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyecx28oi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @brush_motor_forward(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds i32, ptr %3, i64 4
store volatile i32 1, ptr %4, align 4
%5 = call i32 @usleep(i32 noundef 50)
ret void
}
declare i32 @usleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2ybu_cuw.c'
source_filename = "/tmp/tmp2ybu_cuw.c"
target datalayout = "e-m:e-p270: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/tmp2ybu_cuw.c"
target datalayout = "e-m:e-p270: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/tmp5g__5sos.c'
source_filename = "/tmp/tmp5g__5sos.c"
target datalayout = "e-m:e-p270: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/tmp5g__5sos.c"
target datalayout = "e-m:e-p270: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/tmps0licnrj.c'
source_filename = "/tmp/tmps0licnrj.c"
target datalayout = "e-m:e-p270: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 [7 x i8] c"%.13a\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 double, align 8
store i32 0, ptr %1, align 4
%4 = call i32 @srand(i32 noundef 0)
store double 0.000000e+00, ptr %3, align 8
store i32 0, ptr %2, align 4
br label %5
5: ; preds = %14, %0
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 100
br i1 %7, label %8, label %17
8: ; preds = %5
%9 = load double, ptr %3, align 8
%10 = fadd double %9, 1.000000e-01
store double %10, ptr %3, align 8
%11 = load i32, ptr @stderr, align 4
%12 = load double, ptr %3, align 8
%13 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str, double noundef %12)
br label %14
14: ; preds = %8
%15 = load i32, ptr %2, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %2, align 4
br label %5, !llvm.loop !6
17: ; preds = %5
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps0licnrj.c"
target datalayout = "e-m:e-p270: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 [7 x i8] c"%.13a\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 double, align 8
store i32 0, ptr %1, align 4
%4 = call i32 @srand(i32 noundef 0)
store double 0.000000e+00, ptr %3, align 8
store i32 0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 100
br i1 %6, label %.lr.ph, label %18
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %13
%8 = load double, ptr %3, align 8
%9 = fadd double %8, 1.000000e-01
store double %9, ptr %3, align 8
%10 = load i32, ptr @stderr, align 4
%11 = load double, ptr %3, align 8
%12 = call i32 @fprintf(i32 noundef %10, ptr noundef @.str, double noundef %11)
br label %13
13: ; preds = %7
%14 = load i32, ptr %2, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %2, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp slt i32 %16, 100
br i1 %17, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %18
18: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmps4b3xwxa.c'
source_filename = "/tmp/tmps4b3xwxa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ubcstr.str = internal global [64 x i8] zeroinitializer, align 16
@LONG_MAX = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [10 x i8] c"unlimited\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%lu\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ubcstr(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store ptr @ubcstr.str, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = getelementptr inbounds i8, ptr %8, i64 64
%10 = getelementptr inbounds i8, ptr %9, i64 -1
store ptr %10, ptr %7, align 8
%11 = load i64, ptr %4, align 8
%12 = load i64, ptr @LONG_MAX, align 8
%13 = icmp eq i64 %11, %12
br i1 %13, label %14, label %26
14: ; preds = %2
%15 = load ptr, ptr %6, align 8
%16 = load ptr, ptr %7, align 8
%17 = load ptr, ptr %6, align 8
%18 = ptrtoint ptr %16 to i64
%19 = ptrtoint ptr %17 to i64
%20 = sub i64 %18, %19
%21 = trunc i64 %20 to i32
%22 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %15, i32 noundef %21, ptr noundef @.str)
%23 = load ptr, ptr %6, align 8
%24 = sext i32 %22 to i64
%25 = getelementptr inbounds i8, ptr %23, i64 %24
store ptr %25, ptr %6, align 8
br label %39
26: ; preds = %2
%27 = load ptr, ptr %6, align 8
%28 = load ptr, ptr %7, align 8
%29 = load ptr, ptr %6, align 8
%30 = ptrtoint ptr %28 to i64
%31 = ptrtoint ptr %29 to i64
%32 = sub i64 %30, %31
%33 = trunc i64 %32 to i32
%34 = load i64, ptr %4, align 8
%35 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %27, i32 noundef %33, ptr noundef @.str.1, i64 noundef %34)
%36 = load ptr, ptr %6, align 8
%37 = sext i32 %35 to i64
%38 = getelementptr inbounds i8, ptr %36, i64 %37
store ptr %38, ptr %6, align 8
br label %39
39: ; preds = %26, %14
%40 = load i64, ptr %4, align 8
%41 = load i64, ptr %5, align 8
%42 = icmp eq i64 %40, %41
br i1 %42, label %43, label %44
43: ; preds = %39
store ptr @ubcstr.str, ptr %3, align 8
br label %76
44: ; preds = %39
%45 = load ptr, ptr %6, align 8
%46 = getelementptr inbounds i8, ptr %45, i32 1
store ptr %46, ptr %6, align 8
store i8 58, ptr %45, align 1
%47 = load i64, ptr %5, align 8
%48 = load i64, ptr @LONG_MAX, align 8
%49 = icmp eq i64 %47, %48
br i1 %49, label %50, label %62
50: ; preds = %44
%51 = load ptr, ptr %6, align 8
%52 = load ptr, ptr %7, align 8
%53 = load ptr, ptr %6, align 8
%54 = ptrtoint ptr %52 to i64
%55 = ptrtoint ptr %53 to i64
%56 = sub i64 %54, %55
%57 = trunc i64 %56 to i32
%58 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %51, i32 noundef %57, ptr noundef @.str)
%59 = load ptr, ptr %6, align 8
%60 = sext i32 %58 to i64
%61 = getelementptr inbounds i8, ptr %59, i64 %60
store ptr %61, ptr %6, align 8
br label %75
62: ; preds = %44
%63 = load ptr, ptr %6, align 8
%64 = load ptr, ptr %7, align 8
%65 = load ptr, ptr %6, align 8
%66 = ptrtoint ptr %64 to i64
%67 = ptrtoint ptr %65 to i64
%68 = sub i64 %66, %67
%69 = trunc i64 %68 to i32
%70 = load i64, ptr %5, align 8
%71 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %63, i32 noundef %69, ptr noundef @.str.1, i64 noundef %70)
%72 = load ptr, ptr %6, align 8
%73 = sext i32 %71 to i64
%74 = getelementptr inbounds i8, ptr %72, i64 %73
store ptr %74, ptr %6, align 8
br label %75
75: ; preds = %62, %50
store ptr @ubcstr.str, ptr %3, align 8
br label %76
76: ; preds = %75, %43
%77 = load ptr, ptr %3, align 8
ret ptr %77
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps4b3xwxa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ubcstr.str = internal global [64 x i8] zeroinitializer, align 16
@LONG_MAX = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [10 x i8] c"unlimited\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%lu\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ubcstr(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store ptr @ubcstr.str, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = getelementptr inbounds i8, ptr %8, i64 64
%10 = getelementptr inbounds i8, ptr %9, i64 -1
store ptr %10, ptr %7, align 8
%11 = load i64, ptr %4, align 8
%12 = load i64, ptr @LONG_MAX, align 8
%13 = icmp eq i64 %11, %12
br i1 %13, label %14, label %26
14: ; preds = %2
%15 = load ptr, ptr %6, align 8
%16 = load ptr, ptr %7, align 8
%17 = load ptr, ptr %6, align 8
%18 = ptrtoint ptr %16 to i64
%19 = ptrtoint ptr %17 to i64
%20 = sub i64 %18, %19
%21 = trunc i64 %20 to i32
%22 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %15, i32 noundef %21, ptr noundef @.str)
%23 = load ptr, ptr %6, align 8
%24 = sext i32 %22 to i64
%25 = getelementptr inbounds i8, ptr %23, i64 %24
store ptr %25, ptr %6, align 8
br label %39
26: ; preds = %2
%27 = load ptr, ptr %6, align 8
%28 = load ptr, ptr %7, align 8
%29 = load ptr, ptr %6, align 8
%30 = ptrtoint ptr %28 to i64
%31 = ptrtoint ptr %29 to i64
%32 = sub i64 %30, %31
%33 = trunc i64 %32 to i32
%34 = load i64, ptr %4, align 8
%35 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %27, i32 noundef %33, ptr noundef @.str.1, i64 noundef %34)
%36 = load ptr, ptr %6, align 8
%37 = sext i32 %35 to i64
%38 = getelementptr inbounds i8, ptr %36, i64 %37
store ptr %38, ptr %6, align 8
br label %39
39: ; preds = %26, %14
%40 = load i64, ptr %4, align 8
%41 = load i64, ptr %5, align 8
%42 = icmp eq i64 %40, %41
br i1 %42, label %43, label %44
43: ; preds = %39
store ptr @ubcstr.str, ptr %3, align 8
br label %76
44: ; preds = %39
%45 = load ptr, ptr %6, align 8
%46 = getelementptr inbounds i8, ptr %45, i32 1
store ptr %46, ptr %6, align 8
store i8 58, ptr %45, align 1
%47 = load i64, ptr %5, align 8
%48 = load i64, ptr @LONG_MAX, align 8
%49 = icmp eq i64 %47, %48
br i1 %49, label %50, label %62
50: ; preds = %44
%51 = load ptr, ptr %6, align 8
%52 = load ptr, ptr %7, align 8
%53 = load ptr, ptr %6, align 8
%54 = ptrtoint ptr %52 to i64
%55 = ptrtoint ptr %53 to i64
%56 = sub i64 %54, %55
%57 = trunc i64 %56 to i32
%58 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %51, i32 noundef %57, ptr noundef @.str)
%59 = load ptr, ptr %6, align 8
%60 = sext i32 %58 to i64
%61 = getelementptr inbounds i8, ptr %59, i64 %60
store ptr %61, ptr %6, align 8
br label %75
62: ; preds = %44
%63 = load ptr, ptr %6, align 8
%64 = load ptr, ptr %7, align 8
%65 = load ptr, ptr %6, align 8
%66 = ptrtoint ptr %64 to i64
%67 = ptrtoint ptr %65 to i64
%68 = sub i64 %66, %67
%69 = trunc i64 %68 to i32
%70 = load i64, ptr %5, align 8
%71 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %63, i32 noundef %69, ptr noundef @.str.1, i64 noundef %70)
%72 = load ptr, ptr %6, align 8
%73 = sext i32 %71 to i64
%74 = getelementptr inbounds i8, ptr %72, i64 %73
store ptr %74, ptr %6, align 8
br label %75
75: ; preds = %62, %50
store ptr @ubcstr.str, ptr %3, align 8
br label %76
76: ; preds = %75, %43
%77 = load ptr, ptr %3, align 8
ret ptr %77
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkcmft8bs.c'
source_filename = "/tmp/tmpkcmft8bs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_WRONLY = dso_local global i32 0, align 4
@O_NDELAY = dso_local global i32 0, align 4
@F_SETFL = dso_local global i32 0, align 4
@F_GETFL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %5, align 8
%8 = getelementptr inbounds ptr, ptr %7, i64 1
%9 = load ptr, ptr %8, align 8
%10 = load i32, ptr @O_WRONLY, align 4
%11 = load i32, ptr @O_NDELAY, align 4
%12 = or i32 %10, %11
%13 = call i32 @open(ptr noundef %9, i32 noundef %12)
store i32 %13, ptr %6, align 4
%14 = load i32, ptr %6, align 4
%15 = icmp sgt i32 %14, -1
br i1 %15, label %16, label %29
16: ; preds = %2
%17 = load i32, ptr %6, align 4
%18 = load i32, ptr @F_SETFL, align 4
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr @F_GETFL, align 4
%21 = call i32 @fcntl(i32 noundef %19, i32 noundef %20, i32 noundef 0)
%22 = load i32, ptr @O_NDELAY, align 4
%23 = or i32 %21, %22
%24 = call i32 @fcntl(i32 noundef %17, i32 noundef %18, i32 noundef %23)
%25 = load i32, ptr %6, align 4
%26 = call i32 @write(i32 noundef %25, ptr noundef @.str, i32 noundef 1)
%27 = load i32, ptr %6, align 4
%28 = call i32 @close(i32 noundef %27)
br label %29
29: ; preds = %16, %2
%30 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fcntl(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkcmft8bs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_WRONLY = dso_local global i32 0, align 4
@O_NDELAY = dso_local global i32 0, align 4
@F_SETFL = dso_local global i32 0, align 4
@F_GETFL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %5, align 8
%8 = getelementptr inbounds ptr, ptr %7, i64 1
%9 = load ptr, ptr %8, align 8
%10 = load i32, ptr @O_WRONLY, align 4
%11 = load i32, ptr @O_NDELAY, align 4
%12 = or i32 %10, %11
%13 = call i32 @open(ptr noundef %9, i32 noundef %12)
store i32 %13, ptr %6, align 4
%14 = load i32, ptr %6, align 4
%15 = icmp sgt i32 %14, -1
br i1 %15, label %16, label %29
16: ; preds = %2
%17 = load i32, ptr %6, align 4
%18 = load i32, ptr @F_SETFL, align 4
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr @F_GETFL, align 4
%21 = call i32 @fcntl(i32 noundef %19, i32 noundef %20, i32 noundef 0)
%22 = load i32, ptr @O_NDELAY, align 4
%23 = or i32 %21, %22
%24 = call i32 @fcntl(i32 noundef %17, i32 noundef %18, i32 noundef %23)
%25 = load i32, ptr %6, align 4
%26 = call i32 @write(i32 noundef %25, ptr noundef @.str, i32 noundef 1)
%27 = load i32, ptr %6, align 4
%28 = call i32 @close(i32 noundef %27)
br label %29
29: ; preds = %16, %2
%30 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fcntl(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6ae4g6y9.c'
source_filename = "/tmp/tmp6ae4g6y9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"foo5\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @foo_func() #0 {
%1 = call i32 @puts(ptr noundef @.str)
ret i32 %1
}
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6ae4g6y9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"foo5\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @foo_func() #0 {
%1 = call i32 @puts(ptr noundef @.str)
ret i32 %1
}
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpm9gfgdu4.c'
source_filename = "/tmp/tmpm9gfgdu4.c"
target datalayout = "e-m:e-p270: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/tmpm9gfgdu4.c"
target datalayout = "e-m:e-p270: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/tmpchih4_cg.c'
source_filename = "/tmp/tmpchih4_cg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, double }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @get_seconds(i32 %0, double %1, i32 %2, double %3) #0 {
%5 = alloca %struct.timeval, align 8
%6 = alloca %struct.timeval, align 8
%7 = getelementptr inbounds { i32, double }, ptr %5, i32 0, i32 0
store i32 %0, ptr %7, align 8
%8 = getelementptr inbounds { i32, double }, ptr %5, i32 0, i32 1
store double %1, ptr %8, align 8
%9 = getelementptr inbounds { i32, double }, ptr %6, i32 0, i32 0
store i32 %2, ptr %9, align 8
%10 = getelementptr inbounds { i32, double }, ptr %6, i32 0, i32 1
store double %3, ptr %10, align 8
%11 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 0
%12 = load i32, ptr %11, align 8
%13 = getelementptr inbounds %struct.timeval, ptr %5, i32 0, i32 0
%14 = load i32, ptr %13, align 8
%15 = sub nsw i32 %12, %14
%16 = mul nsw i32 %15, 1000000
%17 = sitofp i32 %16 to double
%18 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 1
%19 = load double, ptr %18, align 8
%20 = fadd double %17, %19
%21 = getelementptr inbounds %struct.timeval, ptr %5, i32 0, i32 1
%22 = load double, ptr %21, align 8
%23 = fsub double %20, %22
%24 = fdiv double %23, 1.000000e+06
ret double %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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpchih4_cg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, double }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @get_seconds(i32 %0, double %1, i32 %2, double %3) #0 {
%5 = alloca %struct.timeval, align 8
%6 = alloca %struct.timeval, align 8
%7 = getelementptr inbounds { i32, double }, ptr %5, i32 0, i32 0
store i32 %0, ptr %7, align 8
%8 = getelementptr inbounds { i32, double }, ptr %5, i32 0, i32 1
store double %1, ptr %8, align 8
%9 = getelementptr inbounds { i32, double }, ptr %6, i32 0, i32 0
store i32 %2, ptr %9, align 8
%10 = getelementptr inbounds { i32, double }, ptr %6, i32 0, i32 1
store double %3, ptr %10, align 8
%11 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 0
%12 = load i32, ptr %11, align 8
%13 = getelementptr inbounds %struct.timeval, ptr %5, i32 0, i32 0
%14 = load i32, ptr %13, align 8
%15 = sub nsw i32 %12, %14
%16 = mul nsw i32 %15, 1000000
%17 = sitofp i32 %16 to double
%18 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 1
%19 = load double, ptr %18, align 8
%20 = fadd double %17, %19
%21 = getelementptr inbounds %struct.timeval, ptr %5, i32 0, i32 1
%22 = load double, ptr %21, align 8
%23 = fsub double %20, %22
%24 = fdiv double %23, 1.000000e+06
ret double %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"}
|
; ModuleID = '/tmp/tmpnpt3gg3n.c'
source_filename = "/tmp/tmpnpt3gg3n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"usage:\0A\00", align 1
@.str.1 = private unnamed_addr constant [45 x i8] c" -n n length of sequence pair\0A\00", align 1
@.str.2 = private unnamed_addr constant [46 x i8] c" [-I ins_prob] probability of insertion\0A\00", align 1
@.str.3 = private unnamed_addr constant [45 x i8] c" [-D del_prob] probability of deletion\0A\00", align 1
@.str.4 = private unnamed_addr constant [49 x i8] c" [-U sub_prob] probability of substitution\0A\00", align 1
@.str.5 = private unnamed_addr constant [43 x i8] c" [-N noc_prob] probability of nocall\0A\00", align 1
@.str.6 = private unnamed_addr constant [77 x i8] c" [-p global_prob] global probability (override ins., del. and sub. prob.)\0A\00", align 1
@.str.7 = private unnamed_addr constant [60 x i8] c" [-P pair] number of pairs to produce (default 1)\0A\00", align 1
@.str.8 = private unnamed_addr constant [54 x i8] c" [-s seed] seed for random number generator\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @show_help() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
%7 = call i32 @printf(ptr noundef @.str.6)
%8 = call i32 @printf(ptr noundef @.str.7)
%9 = call i32 @printf(ptr noundef @.str.8)
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/tmpnpt3gg3n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"usage:\0A\00", align 1
@.str.1 = private unnamed_addr constant [45 x i8] c" -n n length of sequence pair\0A\00", align 1
@.str.2 = private unnamed_addr constant [46 x i8] c" [-I ins_prob] probability of insertion\0A\00", align 1
@.str.3 = private unnamed_addr constant [45 x i8] c" [-D del_prob] probability of deletion\0A\00", align 1
@.str.4 = private unnamed_addr constant [49 x i8] c" [-U sub_prob] probability of substitution\0A\00", align 1
@.str.5 = private unnamed_addr constant [43 x i8] c" [-N noc_prob] probability of nocall\0A\00", align 1
@.str.6 = private unnamed_addr constant [77 x i8] c" [-p global_prob] global probability (override ins., del. and sub. prob.)\0A\00", align 1
@.str.7 = private unnamed_addr constant [60 x i8] c" [-P pair] number of pairs to produce (default 1)\0A\00", align 1
@.str.8 = private unnamed_addr constant [54 x i8] c" [-s seed] seed for random number generator\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @show_help() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
%7 = call i32 @printf(ptr noundef @.str.6)
%8 = call i32 @printf(ptr noundef @.str.7)
%9 = call i32 @printf(ptr noundef @.str.8)
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/tmpvvv95xsl.c'
source_filename = "/tmp/tmpvvv95xsl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"Unable to open %s for reading\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @load_board(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = call ptr @fopen(ptr noundef %6, ptr noundef @.str)
store ptr %7, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %13, label %10
10: ; preds = %2
%11 = load ptr, ptr %3, align 8
%12 = call i32 @throw_error(ptr noundef @.str.1, ptr noundef %11)
br label %13
13: ; preds = %10, %2
%14 = load ptr, ptr %5, align 8
%15 = call i32 @load_board_header(ptr noundef %14)
%16 = load ptr, ptr %5, align 8
%17 = load i32, ptr %4, align 4
%18 = call i32 @load_board_cells(ptr noundef %16, i32 noundef %17)
%19 = load ptr, ptr %5, align 8
%20 = call i32 @fclose(ptr noundef %19)
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @throw_error(ptr noundef, ptr noundef) #1
declare i32 @load_board_header(ptr noundef) #1
declare i32 @load_board_cells(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/tmpvvv95xsl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"Unable to open %s for reading\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @load_board(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = call ptr @fopen(ptr noundef %6, ptr noundef @.str)
store ptr %7, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %13, label %10
10: ; preds = %2
%11 = load ptr, ptr %3, align 8
%12 = call i32 @throw_error(ptr noundef @.str.1, ptr noundef %11)
br label %13
13: ; preds = %10, %2
%14 = load ptr, ptr %5, align 8
%15 = call i32 @load_board_header(ptr noundef %14)
%16 = load ptr, ptr %5, align 8
%17 = load i32, ptr %4, align 4
%18 = call i32 @load_board_cells(ptr noundef %16, i32 noundef %17)
%19 = load ptr, ptr %5, align 8
%20 = call i32 @fclose(ptr noundef %19)
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @throw_error(ptr noundef, ptr noundef) #1
declare i32 @load_board_header(ptr noundef) #1
declare i32 @load_board_cells(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/tmp3zkm020m.c'
source_filename = "/tmp/tmp3zkm020m.c"
target datalayout = "e-m:e-p270: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/tmp3zkm020m.c"
target datalayout = "e-m:e-p270: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/tmpvv838lyd.c'
source_filename = "/tmp/tmpvv838lyd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvv838lyd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpib6q0pd4.c'
source_filename = "/tmp/tmpib6q0pd4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @createNewlineInstruction(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%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
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %10
9: ; preds = %2
store i32 -1, ptr %3, align 4
br label %16
10: ; preds = %2
store i32 120000, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = call i32 @addInstructionToMemory(i32 noundef %11)
%13 = icmp eq i32 %12, -1
br i1 %13, label %14, label %15
14: ; preds = %10
store i32 -1, ptr %3, align 4
br label %16
15: ; preds = %10
store i32 1, ptr %3, align 4
br label %16
16: ; preds = %15, %14, %9
%17 = load i32, ptr %3, align 4
ret i32 %17
}
declare i32 @addInstructionToMemory(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/tmpib6q0pd4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @createNewlineInstruction(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%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
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %10
9: ; preds = %2
store i32 -1, ptr %3, align 4
br label %16
10: ; preds = %2
store i32 120000, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = call i32 @addInstructionToMemory(i32 noundef %11)
%13 = icmp eq i32 %12, -1
br i1 %13, label %14, label %15
14: ; preds = %10
store i32 -1, ptr %3, align 4
br label %16
15: ; preds = %10
store i32 1, ptr %3, align 4
br label %16
16: ; preds = %15, %14, %9
%17 = load i32, ptr %3, align 4
ret i32 %17
}
declare i32 @addInstructionToMemory(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/tmp7qzfgron.c'
source_filename = "/tmp/tmp7qzfgron.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"test.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"File open error\00", align 1
@EOF = dso_local global i32 0, align 4
@stdout = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [15 x i8] c"Operand => %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"Operator => %c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%5 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %5, ptr %4, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %10
7: ; preds = %0
%8 = call i32 @perror(ptr noundef @.str.2)
%9 = call i32 @exit(i32 noundef -1) #3
unreachable
10: ; preds = %0
br label %11
11: ; preds = %60, %21, %10
%12 = load ptr, ptr %4, align 8
%13 = call i32 @feof(ptr noundef %12)
%14 = icmp ne i32 %13, 0
%15 = xor i1 %14, true
br i1 %15, label %16, label %61
16: ; preds = %11
%17 = load ptr, ptr %4, align 8
%18 = call i32 @fgetc(ptr noundef %17)
store i32 %18, ptr %2, align 4
%19 = load i32, ptr %2, align 4
%20 = icmp eq i32 %19, 10
br i1 %20, label %21, label %22
21: ; preds = %16
br label %11, !llvm.loop !6
22: ; preds = %16
%23 = load i32, ptr %2, align 4
%24 = call i64 @isdigit(i32 noundef %23)
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %54
26: ; preds = %22
%27 = load i32, ptr %2, align 4
%28 = sub nsw i32 %27, 48
store i32 %28, ptr %3, align 4
br label %29
29: ; preds = %40, %26
%30 = load ptr, ptr %4, align 8
%31 = call i32 @fgetc(ptr noundef %30)
store i32 %31, ptr %2, align 4
%32 = load i32, ptr @EOF, align 4
%33 = icmp ne i32 %31, %32
br i1 %33, label %34, label %38
34: ; preds = %29
%35 = load i32, ptr %2, align 4
%36 = call i64 @isdigit(i32 noundef %35)
%37 = icmp ne i64 %36, 0
br label %38
38: ; preds = %34, %29
%39 = phi i1 [ false, %29 ], [ %37, %34 ]
br i1 %39, label %40, label %46
40: ; preds = %38
%41 = load i32, ptr %3, align 4
%42 = mul nsw i32 10, %41
%43 = load i32, ptr %2, align 4
%44 = add nsw i32 %42, %43
%45 = sub nsw i32 %44, 48
store i32 %45, ptr %3, align 4
br label %29, !llvm.loop !8
46: ; preds = %38
%47 = load i32, ptr @stdout, align 4
%48 = load i32, ptr %3, align 4
%49 = trunc i32 %48 to i8
%50 = call i32 @fprintf(i32 noundef %47, ptr noundef @.str.3, i8 noundef signext %49)
%51 = load i32, ptr %2, align 4
%52 = load ptr, ptr %4, align 8
%53 = call i32 @ungetc(i32 noundef %51, ptr noundef %52)
br label %59
54: ; preds = %22
%55 = load i32, ptr @stdout, align 4
%56 = load i32, ptr %2, align 4
%57 = trunc i32 %56 to i8
%58 = call i32 @fprintf(i32 noundef %55, ptr noundef @.str.4, i8 noundef signext %57)
br label %59
59: ; preds = %54, %46
br label %60
60: ; preds = %59
br label %11, !llvm.loop !6
61: ; preds = %11
%62 = load ptr, ptr %4, align 8
%63 = call i32 @fclose(ptr noundef %62)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @feof(ptr noundef) #1
declare i32 @fgetc(ptr noundef) #1
declare i64 @isdigit(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i8 noundef signext) #1
declare i32 @ungetc(i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7qzfgron.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"test.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"File open error\00", align 1
@EOF = dso_local global i32 0, align 4
@stdout = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [15 x i8] c"Operand => %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"Operator => %c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%5 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %5, ptr %4, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %10
7: ; preds = %0
%8 = call i32 @perror(ptr noundef @.str.2)
%9 = call i32 @exit(i32 noundef -1) #3
unreachable
10: ; preds = %0
%11 = load ptr, ptr %4, align 8
%12 = call i32 @feof(ptr noundef %11)
%13 = icmp ne i32 %12, 0
%14 = xor i1 %13, true
br i1 %14, label %.lr.ph, label %64
.lr.ph: ; preds = %10
br label %15
15: ; preds = %.lr.ph, %.backedge
%16 = load ptr, ptr %4, align 8
%17 = call i32 @fgetc(ptr noundef %16)
store i32 %17, ptr %2, align 4
%18 = load i32, ptr %2, align 4
%19 = icmp eq i32 %18, 10
br i1 %19, label %20, label %25
20: ; preds = %15
br label %.backedge
.backedge: ; preds = %20, %63
%21 = load ptr, ptr %4, align 8
%22 = call i32 @feof(ptr noundef %21)
%23 = icmp ne i32 %22, 0
%24 = xor i1 %23, true
br i1 %24, label %15, label %._crit_edge, !llvm.loop !6
25: ; preds = %15
%26 = load i32, ptr %2, align 4
%27 = call i64 @isdigit(i32 noundef %26)
%28 = icmp ne i64 %27, 0
br i1 %28, label %29, label %57
29: ; preds = %25
%30 = load i32, ptr %2, align 4
%31 = sub nsw i32 %30, 48
store i32 %31, ptr %3, align 4
br label %32
32: ; preds = %43, %29
%33 = load ptr, ptr %4, align 8
%34 = call i32 @fgetc(ptr noundef %33)
store i32 %34, ptr %2, align 4
%35 = load i32, ptr @EOF, align 4
%36 = icmp ne i32 %34, %35
br i1 %36, label %37, label %41
37: ; preds = %32
%38 = load i32, ptr %2, align 4
%39 = call i64 @isdigit(i32 noundef %38)
%40 = icmp ne i64 %39, 0
br label %41
41: ; preds = %37, %32
%42 = phi i1 [ false, %32 ], [ %40, %37 ]
br i1 %42, label %43, label %49
43: ; preds = %41
%44 = load i32, ptr %3, align 4
%45 = mul nsw i32 10, %44
%46 = load i32, ptr %2, align 4
%47 = add nsw i32 %45, %46
%48 = sub nsw i32 %47, 48
store i32 %48, ptr %3, align 4
br label %32, !llvm.loop !8
49: ; preds = %41
%50 = load i32, ptr @stdout, align 4
%51 = load i32, ptr %3, align 4
%52 = trunc i32 %51 to i8
%53 = call i32 @fprintf(i32 noundef %50, ptr noundef @.str.3, i8 noundef signext %52)
%54 = load i32, ptr %2, align 4
%55 = load ptr, ptr %4, align 8
%56 = call i32 @ungetc(i32 noundef %54, ptr noundef %55)
br label %62
57: ; preds = %25
%58 = load i32, ptr @stdout, align 4
%59 = load i32, ptr %2, align 4
%60 = trunc i32 %59 to i8
%61 = call i32 @fprintf(i32 noundef %58, ptr noundef @.str.4, i8 noundef signext %60)
br label %62
62: ; preds = %57, %49
br label %63
63: ; preds = %62
br label %.backedge
._crit_edge: ; preds = %.backedge
br label %64
64: ; preds = %._crit_edge, %10
%65 = load ptr, ptr %4, align 8
%66 = call i32 @fclose(ptr noundef %65)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @feof(ptr noundef) #1
declare i32 @fgetc(ptr noundef) #1
declare i64 @isdigit(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i8 noundef signext) #1
declare i32 @ungetc(i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpg7qyam4b.c'
source_filename = "/tmp/tmpg7qyam4b.c"
target datalayout = "e-m:e-p270: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/tmpg7qyam4b.c"
target datalayout = "e-m:e-p270: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/tmpw5hfwz0g.c'
source_filename = "/tmp/tmpw5hfwz0g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"0) Exit\0A\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"1) Append\0A\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"2) Display\0A\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"3) Insert\0A\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"4) Delete\0A\00", align 1
@.str.6 = private unnamed_addr constant [12 x i8] c"5) Reverse\0A\00", align 1
@.str.7 = private unnamed_addr constant [22 x i8] c"6) Reverse recursion\0A\00", align 1
@.str.8 = private unnamed_addr constant [20 x i8] c"Enter your choice: \00", align 1
@.str.9 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @menu() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @printf(ptr noundef @.str.1)
%4 = call i32 @printf(ptr noundef @.str.2)
%5 = call i32 @printf(ptr noundef @.str.3)
%6 = call i32 @printf(ptr noundef @.str.4)
%7 = call i32 @printf(ptr noundef @.str.5)
%8 = call i32 @printf(ptr noundef @.str.6)
%9 = call i32 @printf(ptr noundef @.str.7)
%10 = call i32 @printf(ptr noundef @.str.8)
%11 = call i32 @scanf(ptr noundef @.str.9, ptr noundef %1)
%12 = load i32, ptr %1, align 4
ret i32 %12
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw5hfwz0g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"0) Exit\0A\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"1) Append\0A\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"2) Display\0A\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"3) Insert\0A\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"4) Delete\0A\00", align 1
@.str.6 = private unnamed_addr constant [12 x i8] c"5) Reverse\0A\00", align 1
@.str.7 = private unnamed_addr constant [22 x i8] c"6) Reverse recursion\0A\00", align 1
@.str.8 = private unnamed_addr constant [20 x i8] c"Enter your choice: \00", align 1
@.str.9 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @menu() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @printf(ptr noundef @.str.1)
%4 = call i32 @printf(ptr noundef @.str.2)
%5 = call i32 @printf(ptr noundef @.str.3)
%6 = call i32 @printf(ptr noundef @.str.4)
%7 = call i32 @printf(ptr noundef @.str.5)
%8 = call i32 @printf(ptr noundef @.str.6)
%9 = call i32 @printf(ptr noundef @.str.7)
%10 = call i32 @printf(ptr noundef @.str.8)
%11 = call i32 @scanf(ptr noundef @.str.9, ptr noundef %1)
%12 = load i32, ptr %1, align 4
ret i32 %12
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplr8qyqmt.c'
source_filename = "/tmp/tmplr8qyqmt.c"
target datalayout = "e-m:e-p270: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 [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @error(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplr8qyqmt.c"
target datalayout = "e-m:e-p270: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 [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @error(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyo0n2z84.c'
source_filename = "/tmp/tmpyo0n2z84.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\E8\BE\93\E5\85\A510\E4\B8\AA\E5\AD\97\E7\AC\A6\0A\00", align 1
@.str.1 = private unnamed_addr constant [58 x i8] c"\E6\95\B0\E5\AD\97=%d,\E5\A4\A7\E5\86\99\E5\AD\97\E6\AF\8D=%d,\E5\B0\8F\E5\86\99\E5\AD\97\E6\AF\8D=%d,\E5\85\B6\E4\BB\96\E5\AD\97\E7\AC\A6=%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
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [10 x i8], align 1
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %6, align 4
br label %9
9: ; preds = %17, %0
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %10, 10
br i1 %11, label %12, label %20
12: ; preds = %9
%13 = call signext i8 (...) @getchar()
%14 = load i32, ptr %6, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [10 x i8], ptr %7, i64 0, i64 %15
store i8 %13, ptr %16, align 1
br label %17
17: ; preds = %12
%18 = load i32, ptr %6, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %6, align 4
br label %9, !llvm.loop !6
20: ; preds = %9
store i32 0, ptr %6, align 4
br label %21
21: ; preds = %81, %20
%22 = load i32, ptr %6, align 4
%23 = icmp slt i32 %22, 10
br i1 %23, label %24, label %84
24: ; preds = %21
%25 = load i32, ptr %6, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [10 x i8], ptr %7, i64 0, i64 %26
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp sle i32 48, %29
br i1 %30, label %31, label %41
31: ; preds = %24
%32 = load i32, ptr %6, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [10 x i8], ptr %7, i64 0, i64 %33
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = icmp sle i32 %36, 57
br i1 %37, label %38, label %41
38: ; preds = %31
%39 = load i32, ptr %5, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %5, align 4
br label %80
41: ; preds = %31, %24
%42 = load i32, ptr %6, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [10 x i8], ptr %7, i64 0, i64 %43
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp sle i32 65, %46
br i1 %47, label %48, label %58
48: ; preds = %41
%49 = load i32, ptr %6, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [10 x i8], ptr %7, i64 0, i64 %50
%52 = load i8, ptr %51, align 1
%53 = sext i8 %52 to i32
%54 = icmp sle i32 %53, 90
br i1 %54, label %55, label %58
55: ; preds = %48
%56 = load i32, ptr %2, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %2, align 4
br label %79
58: ; preds = %48, %41
%59 = load i32, ptr %6, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [10 x i8], ptr %7, i64 0, i64 %60
%62 = load i8, ptr %61, align 1
%63 = sext i8 %62 to i32
%64 = icmp sle i32 97, %63
br i1 %64, label %65, label %75
65: ; preds = %58
%66 = load i32, ptr %6, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [10 x i8], ptr %7, i64 0, i64 %67
%69 = load i8, ptr %68, align 1
%70 = sext i8 %69 to i32
%71 = icmp sle i32 %70, 122
br i1 %71, label %72, label %75
72: ; preds = %65
%73 = load i32, ptr %3, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %3, align 4
br label %78
75: ; preds = %65, %58
%76 = load i32, ptr %4, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %4, align 4
br label %78
78: ; preds = %75, %72
br label %79
79: ; preds = %78, %55
br label %80
80: ; preds = %79, %38
br label %81
81: ; preds = %80
%82 = load i32, ptr %6, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %6, align 4
br label %21, !llvm.loop !8
84: ; preds = %21
%85 = load i32, ptr %5, align 4
%86 = load i32, ptr %2, align 4
%87 = load i32, ptr %3, align 4
%88 = load i32, ptr %4, align 4
%89 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %85, i32 noundef %86, i32 noundef %87, i32 noundef %88)
ret i32 0
}
declare i32 @printf(ptr 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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyo0n2z84.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\E8\BE\93\E5\85\A510\E4\B8\AA\E5\AD\97\E7\AC\A6\0A\00", align 1
@.str.1 = private unnamed_addr constant [58 x i8] c"\E6\95\B0\E5\AD\97=%d,\E5\A4\A7\E5\86\99\E5\AD\97\E6\AF\8D=%d,\E5\B0\8F\E5\86\99\E5\AD\97\E6\AF\8D=%d,\E5\85\B6\E4\BB\96\E5\AD\97\E7\AC\A6=%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
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [10 x i8], align 1
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %6, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %9, 10
br i1 %10, label %.lr.ph, label %21
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %16
%12 = call signext i8 (...) @getchar()
%13 = load i32, ptr %6, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [10 x i8], ptr %7, i64 0, i64 %14
store i8 %12, ptr %15, align 1
br label %16
16: ; preds = %11
%17 = load i32, ptr %6, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %6, align 4
%19 = load i32, ptr %6, align 4
%20 = icmp slt i32 %19, 10
br i1 %20, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %21
21: ; preds = %._crit_edge, %0
store i32 0, ptr %6, align 4
%22 = load i32, ptr %6, align 4
%23 = icmp slt i32 %22, 10
br i1 %23, label %.lr.ph2, label %86
.lr.ph2: ; preds = %21
br label %24
24: ; preds = %.lr.ph2, %81
%25 = load i32, ptr %6, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [10 x i8], ptr %7, i64 0, i64 %26
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp sle i32 48, %29
br i1 %30, label %31, label %41
31: ; preds = %24
%32 = load i32, ptr %6, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [10 x i8], ptr %7, i64 0, i64 %33
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = icmp sle i32 %36, 57
br i1 %37, label %38, label %41
38: ; preds = %31
%39 = load i32, ptr %5, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %5, align 4
br label %80
41: ; preds = %31, %24
%42 = load i32, ptr %6, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [10 x i8], ptr %7, i64 0, i64 %43
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp sle i32 65, %46
br i1 %47, label %48, label %58
48: ; preds = %41
%49 = load i32, ptr %6, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [10 x i8], ptr %7, i64 0, i64 %50
%52 = load i8, ptr %51, align 1
%53 = sext i8 %52 to i32
%54 = icmp sle i32 %53, 90
br i1 %54, label %55, label %58
55: ; preds = %48
%56 = load i32, ptr %2, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %2, align 4
br label %79
58: ; preds = %48, %41
%59 = load i32, ptr %6, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [10 x i8], ptr %7, i64 0, i64 %60
%62 = load i8, ptr %61, align 1
%63 = sext i8 %62 to i32
%64 = icmp sle i32 97, %63
br i1 %64, label %65, label %75
65: ; preds = %58
%66 = load i32, ptr %6, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [10 x i8], ptr %7, i64 0, i64 %67
%69 = load i8, ptr %68, align 1
%70 = sext i8 %69 to i32
%71 = icmp sle i32 %70, 122
br i1 %71, label %72, label %75
72: ; preds = %65
%73 = load i32, ptr %3, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %3, align 4
br label %78
75: ; preds = %65, %58
%76 = load i32, ptr %4, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %4, align 4
br label %78
78: ; preds = %75, %72
br label %79
79: ; preds = %78, %55
br label %80
80: ; preds = %79, %38
br label %81
81: ; preds = %80
%82 = load i32, ptr %6, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %6, align 4
%84 = load i32, ptr %6, align 4
%85 = icmp slt i32 %84, 10
br i1 %85, label %24, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %81
br label %86
86: ; preds = %._crit_edge3, %21
%87 = load i32, ptr %5, align 4
%88 = load i32, ptr %2, align 4
%89 = load i32, ptr %3, align 4
%90 = load i32, ptr %4, align 4
%91 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %87, i32 noundef %88, i32 noundef %89, i32 noundef %90)
ret i32 0
}
declare i32 @printf(ptr 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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpb79k1wzw.c'
source_filename = "/tmp/tmpb79k1wzw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"x -4.000000\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca float, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
store float 4.000000e+00, ptr %3, align 4
%4 = call i32 @print(ptr noundef @.str)
%5 = load float, ptr %1, align 4
%6 = fpext float %5 to double
%7 = fadd double %6, -4.000000e+00
%8 = fptrunc double %7 to float
store float %8, ptr %1, align 4
%9 = load float, ptr %1, align 4
%10 = call i32 @printid(float noundef %9)
ret void
}
declare i32 @print(ptr noundef) #1
declare i32 @printid(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb79k1wzw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"x -4.000000\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca float, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
store float 4.000000e+00, ptr %3, align 4
%4 = call i32 @print(ptr noundef @.str)
%5 = load float, ptr %1, align 4
%6 = fpext float %5 to double
%7 = fadd double %6, -4.000000e+00
%8 = fptrunc double %7 to float
store float %8, ptr %1, align 4
%9 = load float, ptr %1, align 4
%10 = call i32 @printid(float noundef %9)
ret void
}
declare i32 @print(ptr noundef) #1
declare i32 @printid(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpeufd5yju.c'
source_filename = "/tmp/tmpeufd5yju.c"
target datalayout = "e-m:e-p270: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/tmpeufd5yju.c"
target datalayout = "e-m:e-p270: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/tmp9oplecrc.c'
source_filename = "/tmp/tmp9oplecrc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mpeg3audio_ac3_calc_lowcomp(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load i32, ptr %8, align 4
%10 = icmp slt i32 %9, 7
br i1 %10, label %11, label %27
11: ; preds = %4
%12 = load i32, ptr %6, align 4
%13 = add nsw i32 %12, 256
%14 = load i32, ptr %7, align 4
%15 = icmp eq i32 %13, %14
br i1 %15, label %16, label %17
16: ; preds = %11
store i32 384, ptr %5, align 4
br label %26
17: ; preds = %11
%18 = load i32, ptr %6, align 4
%19 = load i32, ptr %7, align 4
%20 = icmp sgt i32 %18, %19
br i1 %20, label %21, label %25
21: ; preds = %17
%22 = load i32, ptr %5, align 4
%23 = sub nsw i32 %22, 64
%24 = call i32 @mpeg3_max(i32 noundef 0, i32 noundef %23)
store i32 %24, ptr %5, align 4
br label %25
25: ; preds = %21, %17
br label %26
26: ; preds = %25, %16
br label %51
27: ; preds = %4
%28 = load i32, ptr %8, align 4
%29 = icmp slt i32 %28, 20
br i1 %29, label %30, label %46
30: ; preds = %27
%31 = load i32, ptr %6, align 4
%32 = add nsw i32 %31, 256
%33 = load i32, ptr %7, align 4
%34 = icmp eq i32 %32, %33
br i1 %34, label %35, label %36
35: ; preds = %30
store i32 320, ptr %5, align 4
br label %45
36: ; preds = %30
%37 = load i32, ptr %6, align 4
%38 = load i32, ptr %7, align 4
%39 = icmp sgt i32 %37, %38
br i1 %39, label %40, label %44
40: ; preds = %36
%41 = load i32, ptr %5, align 4
%42 = sub nsw i32 %41, 64
%43 = call i32 @mpeg3_max(i32 noundef 0, i32 noundef %42)
store i32 %43, ptr %5, align 4
br label %44
44: ; preds = %40, %36
br label %45
45: ; preds = %44, %35
br label %50
46: ; preds = %27
%47 = load i32, ptr %5, align 4
%48 = sub nsw i32 %47, 128
%49 = call i32 @mpeg3_max(i32 noundef 0, i32 noundef %48)
store i32 %49, ptr %5, align 4
br label %50
50: ; preds = %46, %45
br label %51
51: ; preds = %50, %26
%52 = load i32, ptr %5, align 4
ret i32 %52
}
declare i32 @mpeg3_max(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/tmp9oplecrc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mpeg3audio_ac3_calc_lowcomp(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load i32, ptr %8, align 4
%10 = icmp slt i32 %9, 7
br i1 %10, label %11, label %27
11: ; preds = %4
%12 = load i32, ptr %6, align 4
%13 = add nsw i32 %12, 256
%14 = load i32, ptr %7, align 4
%15 = icmp eq i32 %13, %14
br i1 %15, label %16, label %17
16: ; preds = %11
store i32 384, ptr %5, align 4
br label %26
17: ; preds = %11
%18 = load i32, ptr %6, align 4
%19 = load i32, ptr %7, align 4
%20 = icmp sgt i32 %18, %19
br i1 %20, label %21, label %25
21: ; preds = %17
%22 = load i32, ptr %5, align 4
%23 = sub nsw i32 %22, 64
%24 = call i32 @mpeg3_max(i32 noundef 0, i32 noundef %23)
store i32 %24, ptr %5, align 4
br label %25
25: ; preds = %21, %17
br label %26
26: ; preds = %25, %16
br label %51
27: ; preds = %4
%28 = load i32, ptr %8, align 4
%29 = icmp slt i32 %28, 20
br i1 %29, label %30, label %46
30: ; preds = %27
%31 = load i32, ptr %6, align 4
%32 = add nsw i32 %31, 256
%33 = load i32, ptr %7, align 4
%34 = icmp eq i32 %32, %33
br i1 %34, label %35, label %36
35: ; preds = %30
store i32 320, ptr %5, align 4
br label %45
36: ; preds = %30
%37 = load i32, ptr %6, align 4
%38 = load i32, ptr %7, align 4
%39 = icmp sgt i32 %37, %38
br i1 %39, label %40, label %44
40: ; preds = %36
%41 = load i32, ptr %5, align 4
%42 = sub nsw i32 %41, 64
%43 = call i32 @mpeg3_max(i32 noundef 0, i32 noundef %42)
store i32 %43, ptr %5, align 4
br label %44
44: ; preds = %40, %36
br label %45
45: ; preds = %44, %35
br label %50
46: ; preds = %27
%47 = load i32, ptr %5, align 4
%48 = sub nsw i32 %47, 128
%49 = call i32 @mpeg3_max(i32 noundef 0, i32 noundef %48)
store i32 %49, ptr %5, align 4
br label %50
50: ; preds = %46, %45
br label %51
51: ; preds = %50, %26
%52 = load i32, ptr %5, align 4
ret i32 %52
}
declare i32 @mpeg3_max(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/tmpxs82af_8.c'
source_filename = "/tmp/tmpxs82af_8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @__io_putchar(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 10
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 @__putc(i32 noundef 13)
br label %7
7: ; preds = %5, %1
%8 = load i32, ptr %2, align 4
%9 = call i32 @__putc(i32 noundef %8)
%10 = load i32, ptr %2, align 4
ret i32 %10
}
declare i32 @__putc(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/tmpxs82af_8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @__io_putchar(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 10
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 @__putc(i32 noundef 13)
br label %7
7: ; preds = %5, %1
%8 = load i32, ptr %2, align 4
%9 = call i32 @__putc(i32 noundef %8)
%10 = load i32, ptr %2, align 4
ret i32 %10
}
declare i32 @__putc(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/tmpk4nr2hrs.c'
source_filename = "/tmp/tmpk4nr2hrs.c"
target datalayout = "e-m:e-p270: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/tmpk4nr2hrs.c"
target datalayout = "e-m:e-p270: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/tmpa6cnlj51.c'
source_filename = "/tmp/tmpa6cnlj51.c"
target datalayout = "e-m:e-p270: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/tmpa6cnlj51.c"
target datalayout = "e-m:e-p270: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/tmpoqsycg5v.c'
source_filename = "/tmp/tmpoqsycg5v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (...) @check_vect()
%4 = call i32 (...) @foo()
ret i32 0
}
declare i32 @check_vect(...) #1
declare i32 @foo(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoqsycg5v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (...) @check_vect()
%4 = call i32 (...) @foo()
ret i32 0
}
declare i32 @check_vect(...) #1
declare i32 @foo(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpx9thcu1v.c'
source_filename = "/tmp/tmpx9thcu1v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"rb\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Ftestread(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call ptr @fopen(ptr noundef %5, ptr noundef @.str)
store ptr %6, ptr %4, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 -1, ptr %2, align 4
br label %12
9: ; preds = %1
%10 = load ptr, ptr %4, align 8
%11 = call i32 @fclose(ptr noundef %10)
store i32 0, ptr %2, align 4
br label %12
12: ; preds = %9, %8
%13 = load i32, ptr %2, align 4
ret i32 %13
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx9thcu1v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"rb\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Ftestread(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call ptr @fopen(ptr noundef %5, ptr noundef @.str)
store ptr %6, ptr %4, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 -1, ptr %2, align 4
br label %12
9: ; preds = %1
%10 = load ptr, ptr %4, align 8
%11 = call i32 @fclose(ptr noundef %10)
store i32 0, ptr %2, align 4
br label %12
12: ; preds = %9, %8
%13 = load i32, ptr %2, align 4
ret i32 %13
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.