llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmpdrp86wcp.c'
source_filename = "/tmp/tmpdrp86wcp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @timer_elapsed_seconds_short(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @timer_elapsed_seconds(ptr noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @timer_elapsed_seconds(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/tmpdrp86wcp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @timer_elapsed_seconds_short(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @timer_elapsed_seconds(ptr noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @timer_elapsed_seconds(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/tmp6fihku0n.c'
source_filename = "/tmp/tmp6fihku0n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 i64, align 8
store i32 0, ptr %1, align 4
%3 = call i64 (...) @fork()
store i64 %3, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 (...) @function()
br label %11
8: ; preds = %0
%9 = load i64, ptr %2, align 8
%10 = call i32 @waitpid(i64 noundef %9, ptr noundef null, i32 noundef 0)
br label %11
11: ; preds = %8, %6
ret i32 0
}
declare i64 @fork(...) #1
declare i32 @function(...) #1
declare i32 @waitpid(i64 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6fihku0n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 i64, align 8
store i32 0, ptr %1, align 4
%3 = call i64 (...) @fork()
store i64 %3, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 (...) @function()
br label %11
8: ; preds = %0
%9 = load i64, ptr %2, align 8
%10 = call i32 @waitpid(i64 noundef %9, ptr noundef null, i32 noundef 0)
br label %11
11: ; preds = %8, %6
ret i32 0
}
declare i64 @fork(...) #1
declare i32 @function(...) #1
declare i32 @waitpid(i64 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptdui2w9b.c'
source_filename = "/tmp/tmptdui2w9b.c"
target datalayout = "e-m:e-p270: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/tmptdui2w9b.c"
target datalayout = "e-m:e-p270: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/tmpyywwihle.c'
source_filename = "/tmp/tmpyywwihle.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [76 x i8] c"ceeqlib.c\0AVersion %f\0ACopyright Rob Edwards\0DReleased under the MIT license\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [43 x i8] c"Usage: ceeqlib [command] [file1] [file2]\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [82 x i8] c" fastq2fasta [fastq file] print the fastq file in fasta format\0A\00", align 1
@.str.3 = private unnamed_addr constant [95 x i8] c" fastq2fasta_sorted [fastq file] print the fastq file with the sequence ids sorted\0A\00", align 1
@.str.4 = private unnamed_addr constant [148 x i8] c" fastq_pair [left reads] [right reads] pair the left and right reads, creating left_paired, right_paired, left_single, and right_single files\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @help() #0 {
%1 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef 1.000000e-01)
%2 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%6 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(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/tmpyywwihle.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [76 x i8] c"ceeqlib.c\0AVersion %f\0ACopyright Rob Edwards\0DReleased under the MIT license\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [43 x i8] c"Usage: ceeqlib [command] [file1] [file2]\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [82 x i8] c" fastq2fasta [fastq file] print the fastq file in fasta format\0A\00", align 1
@.str.3 = private unnamed_addr constant [95 x i8] c" fastq2fasta_sorted [fastq file] print the fastq file with the sequence ids sorted\0A\00", align 1
@.str.4 = private unnamed_addr constant [148 x i8] c" fastq_pair [left reads] [right reads] pair the left and right reads, creating left_paired, right_paired, left_single, and right_single files\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @help() #0 {
%1 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef 1.000000e-01)
%2 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%6 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(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/tmpmlfquq_g.c'
source_filename = "/tmp/tmpmlfquq_g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"%d %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"inline_inline_2decl_only\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"inline_inline_undeclared\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"inline_inline_predeclared\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"inline_inline_postdeclared\00", align 1
@.str.5 = private unnamed_addr constant [30 x i8] c"inline_inline_prepostdeclared\00", align 1
@.str.6 = private unnamed_addr constant [26 x i8] c"inline_inline_undeclared2\00", align 1
@.str.7 = private unnamed_addr constant [27 x i8] c"inline_inline_predeclared2\00", align 1
@.str.8 = private unnamed_addr constant [28 x i8] c"inline_inline_postdeclared2\00", align 1
@.str.9 = private unnamed_addr constant [31 x i8] c"inline_inline_prepostdeclared2\00", align 1
@.str.10 = private unnamed_addr constant [27 x i8] c"extern_extern_postdeclared\00", align 1
@.str.11 = private unnamed_addr constant [28 x i8] c"extern_extern_postdeclared2\00", align 1
@.str.12 = private unnamed_addr constant [26 x i8] c"extern_extern_predeclared\00", align 1
@.str.13 = private unnamed_addr constant [27 x i8] c"extern_extern_predeclared2\00", align 1
@.str.14 = private unnamed_addr constant [30 x i8] c"extern_extern_prepostdeclared\00", align 1
@.str.15 = private unnamed_addr constant [31 x i8] c"extern_extern_prepostdeclared2\00", align 1
@.str.16 = private unnamed_addr constant [25 x i8] c"extern_extern_undeclared\00", align 1
@.str.17 = private unnamed_addr constant [26 x i8] c"extern_extern_undeclared2\00", align 1
@.str.18 = private unnamed_addr constant [20 x i8] c"extern_postdeclared\00", align 1
@.str.19 = private unnamed_addr constant [21 x i8] c"extern_postdeclared2\00", align 1
@.str.20 = private unnamed_addr constant [19 x i8] c"extern_predeclared\00", align 1
@.str.21 = private unnamed_addr constant [20 x i8] c"extern_predeclared2\00", align 1
@.str.22 = private unnamed_addr constant [23 x i8] c"extern_prepostdeclared\00", align 1
@.str.23 = private unnamed_addr constant [18 x i8] c"extern_undeclared\00", align 1
@.str.24 = private unnamed_addr constant [19 x i8] c"extern_undeclared2\00", align 1
@.str.25 = private unnamed_addr constant [33 x i8] c"inst2_extern_inline_postdeclared\00", align 1
@.str.26 = private unnamed_addr constant [32 x i8] c"inst2_extern_inline_predeclared\00", align 1
@.str.27 = private unnamed_addr constant [32 x i8] c"inst3_extern_inline_predeclared\00", align 1
@.str.28 = private unnamed_addr constant [32 x i8] c"inst_extern_inline_postdeclared\00", align 1
@.str.29 = private unnamed_addr constant [31 x i8] c"inst_extern_inline_predeclared\00", align 1
@.str.30 = private unnamed_addr constant [5 x i8] c"main\00", align 1
@.str.31 = private unnamed_addr constant [26 x i8] c"noinst_extern_inline_func\00", align 1
@.str.32 = private unnamed_addr constant [34 x i8] c"noinst_extern_inline_postdeclared\00", align 1
@.str.33 = private unnamed_addr constant [35 x i8] c"noinst_extern_inline_postdeclared2\00", align 1
@.str.34 = private unnamed_addr constant [32 x i8] c"noinst_extern_inline_undeclared\00", align 1
@.str.35 = private unnamed_addr constant [34 x i8] c"noinst_static_inline_postdeclared\00", align 1
@.str.36 = private unnamed_addr constant [35 x i8] c"noinst2_static_inline_postdeclared\00", align 1
@.str.37 = private unnamed_addr constant [33 x i8] c"noinst_static_inline_predeclared\00", align 1
@.str.38 = private unnamed_addr constant [34 x i8] c"noinst2_static_inline_predeclared\00", align 1
@.str.39 = private unnamed_addr constant [12 x i8] c"static_func\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @check_exports() #0 {
%1 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @inline_inline_2decl_only, ptr null) to i32), ptr noundef @.str.1)
%2 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @inline_inline_undeclared, ptr null) to i32), ptr noundef @.str.2)
%3 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @inline_inline_predeclared, ptr null) to i32), ptr noundef @.str.3)
%4 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @inline_inline_postdeclared, ptr null) to i32), ptr noundef @.str.4)
%5 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @inline_inline_prepostdeclared, ptr null) to i32), ptr noundef @.str.5)
%6 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @inline_inline_undeclared2, ptr null) to i32), ptr noundef @.str.6)
%7 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @inline_inline_predeclared2, ptr null) to i32), ptr noundef @.str.7)
%8 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @inline_inline_postdeclared2, ptr null) to i32), ptr noundef @.str.8)
%9 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @inline_inline_prepostdeclared2, ptr null) to i32), ptr noundef @.str.9)
%10 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_extern_postdeclared, ptr null) to i32), ptr noundef @.str.10)
%11 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_extern_postdeclared2, ptr null) to i32), ptr noundef @.str.11)
%12 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_extern_predeclared, ptr null) to i32), ptr noundef @.str.12)
%13 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_extern_predeclared2, ptr null) to i32), ptr noundef @.str.13)
%14 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_extern_prepostdeclared, ptr null) to i32), ptr noundef @.str.14)
%15 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_extern_prepostdeclared2, ptr null) to i32), ptr noundef @.str.15)
%16 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_extern_undeclared, ptr null) to i32), ptr noundef @.str.16)
%17 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_extern_undeclared2, ptr null) to i32), ptr noundef @.str.17)
%18 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_postdeclared, ptr null) to i32), ptr noundef @.str.18)
%19 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_postdeclared2, ptr null) to i32), ptr noundef @.str.19)
%20 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_predeclared, ptr null) to i32), ptr noundef @.str.20)
%21 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_predeclared2, ptr null) to i32), ptr noundef @.str.21)
%22 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_prepostdeclared, ptr null) to i32), ptr noundef @.str.22)
%23 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_undeclared, ptr null) to i32), ptr noundef @.str.23)
%24 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_undeclared2, ptr null) to i32), ptr noundef @.str.24)
%25 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @inst2_extern_inline_postdeclared, ptr null) to i32), ptr noundef @.str.25)
%26 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @inst2_extern_inline_predeclared, ptr null) to i32), ptr noundef @.str.26)
%27 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @inst3_extern_inline_predeclared, ptr null) to i32), ptr noundef @.str.27)
%28 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @inst_extern_inline_postdeclared, ptr null) to i32), ptr noundef @.str.28)
%29 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @inst_extern_inline_predeclared, ptr null) to i32), ptr noundef @.str.29)
%30 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @main, ptr null) to i32), ptr noundef @.str.30)
%31 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @noinst_extern_inline_func, ptr null) to i32), ptr noundef @.str.31)
%32 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @noinst_extern_inline_postdeclared, ptr null) to i32), ptr noundef @.str.32)
%33 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @noinst_extern_inline_postdeclared2, ptr null) to i32), ptr noundef @.str.33)
%34 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @noinst_extern_inline_undeclared, ptr null) to i32), ptr noundef @.str.34)
%35 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @noinst_static_inline_postdeclared, ptr null) to i32), ptr noundef @.str.35)
%36 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @noinst2_static_inline_postdeclared, ptr null) to i32), ptr noundef @.str.36)
%37 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @noinst_static_inline_predeclared, ptr null) to i32), ptr noundef @.str.37)
%38 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @noinst2_static_inline_predeclared, ptr null) to i32), ptr noundef @.str.38)
%39 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @static_func, ptr null) to i32), ptr noundef @.str.39)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, ptr noundef) #1
declare extern_weak void @inline_inline_2decl_only() #1
declare extern_weak void @inline_inline_undeclared() #1
declare extern_weak void @inline_inline_predeclared() #1
declare extern_weak void @inline_inline_postdeclared() #1
declare extern_weak void @inline_inline_prepostdeclared() #1
declare extern_weak void @inline_inline_undeclared2() #1
declare extern_weak void @inline_inline_predeclared2() #1
declare extern_weak void @inline_inline_postdeclared2() #1
declare extern_weak void @inline_inline_prepostdeclared2() #1
declare extern_weak void @extern_extern_postdeclared() #1
declare extern_weak void @extern_extern_postdeclared2() #1
declare extern_weak void @extern_extern_predeclared() #1
declare extern_weak void @extern_extern_predeclared2() #1
declare extern_weak void @extern_extern_prepostdeclared() #1
declare extern_weak void @extern_extern_prepostdeclared2() #1
declare extern_weak void @extern_extern_undeclared() #1
declare extern_weak void @extern_extern_undeclared2() #1
declare extern_weak void @extern_postdeclared() #1
declare extern_weak void @extern_postdeclared2() #1
declare extern_weak void @extern_predeclared() #1
declare extern_weak void @extern_predeclared2() #1
declare extern_weak void @extern_prepostdeclared() #1
declare extern_weak void @extern_undeclared() #1
declare extern_weak void @extern_undeclared2() #1
declare extern_weak void @inst2_extern_inline_postdeclared() #1
declare extern_weak void @inst2_extern_inline_predeclared() #1
declare extern_weak void @inst3_extern_inline_predeclared() #1
declare extern_weak void @inst_extern_inline_postdeclared() #1
declare extern_weak void @inst_extern_inline_predeclared() #1
declare extern_weak void @main() #1
declare extern_weak void @noinst_extern_inline_func() #1
declare extern_weak void @noinst_extern_inline_postdeclared() #1
declare extern_weak void @noinst_extern_inline_postdeclared2() #1
declare extern_weak void @noinst_extern_inline_undeclared() #1
declare extern_weak void @noinst_static_inline_postdeclared() #1
declare extern_weak void @noinst2_static_inline_postdeclared() #1
declare extern_weak void @noinst_static_inline_predeclared() #1
declare extern_weak void @noinst2_static_inline_predeclared() #1
declare extern_weak void @static_func() #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmlfquq_g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"%d %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"inline_inline_2decl_only\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"inline_inline_undeclared\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"inline_inline_predeclared\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"inline_inline_postdeclared\00", align 1
@.str.5 = private unnamed_addr constant [30 x i8] c"inline_inline_prepostdeclared\00", align 1
@.str.6 = private unnamed_addr constant [26 x i8] c"inline_inline_undeclared2\00", align 1
@.str.7 = private unnamed_addr constant [27 x i8] c"inline_inline_predeclared2\00", align 1
@.str.8 = private unnamed_addr constant [28 x i8] c"inline_inline_postdeclared2\00", align 1
@.str.9 = private unnamed_addr constant [31 x i8] c"inline_inline_prepostdeclared2\00", align 1
@.str.10 = private unnamed_addr constant [27 x i8] c"extern_extern_postdeclared\00", align 1
@.str.11 = private unnamed_addr constant [28 x i8] c"extern_extern_postdeclared2\00", align 1
@.str.12 = private unnamed_addr constant [26 x i8] c"extern_extern_predeclared\00", align 1
@.str.13 = private unnamed_addr constant [27 x i8] c"extern_extern_predeclared2\00", align 1
@.str.14 = private unnamed_addr constant [30 x i8] c"extern_extern_prepostdeclared\00", align 1
@.str.15 = private unnamed_addr constant [31 x i8] c"extern_extern_prepostdeclared2\00", align 1
@.str.16 = private unnamed_addr constant [25 x i8] c"extern_extern_undeclared\00", align 1
@.str.17 = private unnamed_addr constant [26 x i8] c"extern_extern_undeclared2\00", align 1
@.str.18 = private unnamed_addr constant [20 x i8] c"extern_postdeclared\00", align 1
@.str.19 = private unnamed_addr constant [21 x i8] c"extern_postdeclared2\00", align 1
@.str.20 = private unnamed_addr constant [19 x i8] c"extern_predeclared\00", align 1
@.str.21 = private unnamed_addr constant [20 x i8] c"extern_predeclared2\00", align 1
@.str.22 = private unnamed_addr constant [23 x i8] c"extern_prepostdeclared\00", align 1
@.str.23 = private unnamed_addr constant [18 x i8] c"extern_undeclared\00", align 1
@.str.24 = private unnamed_addr constant [19 x i8] c"extern_undeclared2\00", align 1
@.str.25 = private unnamed_addr constant [33 x i8] c"inst2_extern_inline_postdeclared\00", align 1
@.str.26 = private unnamed_addr constant [32 x i8] c"inst2_extern_inline_predeclared\00", align 1
@.str.27 = private unnamed_addr constant [32 x i8] c"inst3_extern_inline_predeclared\00", align 1
@.str.28 = private unnamed_addr constant [32 x i8] c"inst_extern_inline_postdeclared\00", align 1
@.str.29 = private unnamed_addr constant [31 x i8] c"inst_extern_inline_predeclared\00", align 1
@.str.30 = private unnamed_addr constant [5 x i8] c"main\00", align 1
@.str.31 = private unnamed_addr constant [26 x i8] c"noinst_extern_inline_func\00", align 1
@.str.32 = private unnamed_addr constant [34 x i8] c"noinst_extern_inline_postdeclared\00", align 1
@.str.33 = private unnamed_addr constant [35 x i8] c"noinst_extern_inline_postdeclared2\00", align 1
@.str.34 = private unnamed_addr constant [32 x i8] c"noinst_extern_inline_undeclared\00", align 1
@.str.35 = private unnamed_addr constant [34 x i8] c"noinst_static_inline_postdeclared\00", align 1
@.str.36 = private unnamed_addr constant [35 x i8] c"noinst2_static_inline_postdeclared\00", align 1
@.str.37 = private unnamed_addr constant [33 x i8] c"noinst_static_inline_predeclared\00", align 1
@.str.38 = private unnamed_addr constant [34 x i8] c"noinst2_static_inline_predeclared\00", align 1
@.str.39 = private unnamed_addr constant [12 x i8] c"static_func\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @check_exports() #0 {
%1 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @inline_inline_2decl_only, ptr null) to i32), ptr noundef @.str.1)
%2 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @inline_inline_undeclared, ptr null) to i32), ptr noundef @.str.2)
%3 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @inline_inline_predeclared, ptr null) to i32), ptr noundef @.str.3)
%4 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @inline_inline_postdeclared, ptr null) to i32), ptr noundef @.str.4)
%5 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @inline_inline_prepostdeclared, ptr null) to i32), ptr noundef @.str.5)
%6 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @inline_inline_undeclared2, ptr null) to i32), ptr noundef @.str.6)
%7 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @inline_inline_predeclared2, ptr null) to i32), ptr noundef @.str.7)
%8 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @inline_inline_postdeclared2, ptr null) to i32), ptr noundef @.str.8)
%9 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @inline_inline_prepostdeclared2, ptr null) to i32), ptr noundef @.str.9)
%10 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_extern_postdeclared, ptr null) to i32), ptr noundef @.str.10)
%11 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_extern_postdeclared2, ptr null) to i32), ptr noundef @.str.11)
%12 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_extern_predeclared, ptr null) to i32), ptr noundef @.str.12)
%13 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_extern_predeclared2, ptr null) to i32), ptr noundef @.str.13)
%14 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_extern_prepostdeclared, ptr null) to i32), ptr noundef @.str.14)
%15 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_extern_prepostdeclared2, ptr null) to i32), ptr noundef @.str.15)
%16 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_extern_undeclared, ptr null) to i32), ptr noundef @.str.16)
%17 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_extern_undeclared2, ptr null) to i32), ptr noundef @.str.17)
%18 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_postdeclared, ptr null) to i32), ptr noundef @.str.18)
%19 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_postdeclared2, ptr null) to i32), ptr noundef @.str.19)
%20 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_predeclared, ptr null) to i32), ptr noundef @.str.20)
%21 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_predeclared2, ptr null) to i32), ptr noundef @.str.21)
%22 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_prepostdeclared, ptr null) to i32), ptr noundef @.str.22)
%23 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_undeclared, ptr null) to i32), ptr noundef @.str.23)
%24 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @extern_undeclared2, ptr null) to i32), ptr noundef @.str.24)
%25 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @inst2_extern_inline_postdeclared, ptr null) to i32), ptr noundef @.str.25)
%26 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @inst2_extern_inline_predeclared, ptr null) to i32), ptr noundef @.str.26)
%27 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @inst3_extern_inline_predeclared, ptr null) to i32), ptr noundef @.str.27)
%28 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @inst_extern_inline_postdeclared, ptr null) to i32), ptr noundef @.str.28)
%29 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @inst_extern_inline_predeclared, ptr null) to i32), ptr noundef @.str.29)
%30 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @main, ptr null) to i32), ptr noundef @.str.30)
%31 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @noinst_extern_inline_func, ptr null) to i32), ptr noundef @.str.31)
%32 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @noinst_extern_inline_postdeclared, ptr null) to i32), ptr noundef @.str.32)
%33 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @noinst_extern_inline_postdeclared2, ptr null) to i32), ptr noundef @.str.33)
%34 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @noinst_extern_inline_undeclared, ptr null) to i32), ptr noundef @.str.34)
%35 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @noinst_static_inline_postdeclared, ptr null) to i32), ptr noundef @.str.35)
%36 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @noinst2_static_inline_postdeclared, ptr null) to i32), ptr noundef @.str.36)
%37 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @noinst_static_inline_predeclared, ptr null) to i32), ptr noundef @.str.37)
%38 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @noinst2_static_inline_predeclared, ptr null) to i32), ptr noundef @.str.38)
%39 = call i32 @printf(ptr noundef @.str, i32 noundef zext (i1 icmp ne (ptr @static_func, ptr null) to i32), ptr noundef @.str.39)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, ptr noundef) #1
declare extern_weak void @inline_inline_2decl_only() #1
declare extern_weak void @inline_inline_undeclared() #1
declare extern_weak void @inline_inline_predeclared() #1
declare extern_weak void @inline_inline_postdeclared() #1
declare extern_weak void @inline_inline_prepostdeclared() #1
declare extern_weak void @inline_inline_undeclared2() #1
declare extern_weak void @inline_inline_predeclared2() #1
declare extern_weak void @inline_inline_postdeclared2() #1
declare extern_weak void @inline_inline_prepostdeclared2() #1
declare extern_weak void @extern_extern_postdeclared() #1
declare extern_weak void @extern_extern_postdeclared2() #1
declare extern_weak void @extern_extern_predeclared() #1
declare extern_weak void @extern_extern_predeclared2() #1
declare extern_weak void @extern_extern_prepostdeclared() #1
declare extern_weak void @extern_extern_prepostdeclared2() #1
declare extern_weak void @extern_extern_undeclared() #1
declare extern_weak void @extern_extern_undeclared2() #1
declare extern_weak void @extern_postdeclared() #1
declare extern_weak void @extern_postdeclared2() #1
declare extern_weak void @extern_predeclared() #1
declare extern_weak void @extern_predeclared2() #1
declare extern_weak void @extern_prepostdeclared() #1
declare extern_weak void @extern_undeclared() #1
declare extern_weak void @extern_undeclared2() #1
declare extern_weak void @inst2_extern_inline_postdeclared() #1
declare extern_weak void @inst2_extern_inline_predeclared() #1
declare extern_weak void @inst3_extern_inline_predeclared() #1
declare extern_weak void @inst_extern_inline_postdeclared() #1
declare extern_weak void @inst_extern_inline_predeclared() #1
declare extern_weak void @main() #1
declare extern_weak void @noinst_extern_inline_func() #1
declare extern_weak void @noinst_extern_inline_postdeclared() #1
declare extern_weak void @noinst_extern_inline_postdeclared2() #1
declare extern_weak void @noinst_extern_inline_undeclared() #1
declare extern_weak void @noinst_static_inline_postdeclared() #1
declare extern_weak void @noinst2_static_inline_postdeclared() #1
declare extern_weak void @noinst_static_inline_predeclared() #1
declare extern_weak void @noinst2_static_inline_predeclared() #1
declare extern_weak void @static_func() #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpodzjoneg.c'
source_filename = "/tmp/tmpodzjoneg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Extra_PrintBinary__(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = sext i32 %11 to i64
%13 = urem i64 %12, 32
%14 = trunc i64 %13 to i32
store i32 %14, ptr %7, align 4
%15 = load i32, ptr %6, align 4
%16 = sext i32 %15 to i64
%17 = udiv i64 %16, 32
%18 = load i32, ptr %7, align 4
%19 = icmp sgt i32 %18, 0
%20 = zext i1 %19 to i32
%21 = sext i32 %20 to i64
%22 = add i64 %17, %21
%23 = trunc i64 %22 to i32
store i32 %23, ptr %8, align 4
%24 = load i32, ptr %8, align 4
%25 = sub nsw i32 %24, 1
store i32 %25, ptr %9, align 4
br label %26
26: ; preds = %64, %3
%27 = load i32, ptr %9, align 4
%28 = icmp sge i32 %27, 0
br i1 %28, label %29, label %67
29: ; preds = %26
%30 = load i32, ptr %9, align 4
%31 = load i32, ptr %8, align 4
%32 = sub nsw i32 %31, 1
%33 = icmp eq i32 %30, %32
br i1 %33, label %34, label %40
34: ; preds = %29
%35 = load i32, ptr %7, align 4
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %34
%38 = load i32, ptr %7, align 4
%39 = sub nsw i32 %38, 1
br label %41
40: ; preds = %34, %29
br label %41
41: ; preds = %40, %37
%42 = phi i32 [ %39, %37 ], [ 31, %40 ]
store i32 %42, ptr %10, align 4
br label %43
43: ; preds = %60, %41
%44 = load i32, ptr %10, align 4
%45 = icmp sge i32 %44, 0
br i1 %45, label %46, label %63
46: ; preds = %43
%47 = load ptr, ptr %4, align 8
%48 = load ptr, ptr %5, align 8
%49 = load i32, ptr %9, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i32, ptr %48, i64 %50
%52 = load i32, ptr %51, align 4
%53 = load i32, ptr %10, align 4
%54 = shl i32 1, %53
%55 = and i32 %52, %54
%56 = icmp ugt i32 %55, 0
%57 = zext i1 %56 to i32
%58 = add nsw i32 48, %57
%59 = call i32 @fprintf(ptr noundef %47, ptr noundef @.str, i32 noundef %58)
br label %60
60: ; preds = %46
%61 = load i32, ptr %10, align 4
%62 = add nsw i32 %61, -1
store i32 %62, ptr %10, align 4
br label %43, !llvm.loop !6
63: ; preds = %43
br label %64
64: ; preds = %63
%65 = load i32, ptr %9, align 4
%66 = add nsw i32 %65, -1
store i32 %66, ptr %9, align 4
br label %26, !llvm.loop !8
67: ; preds = %26
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpodzjoneg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Extra_PrintBinary__(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = sext i32 %11 to i64
%13 = urem i64 %12, 32
%14 = trunc i64 %13 to i32
store i32 %14, ptr %7, align 4
%15 = load i32, ptr %6, align 4
%16 = sext i32 %15 to i64
%17 = udiv i64 %16, 32
%18 = load i32, ptr %7, align 4
%19 = icmp sgt i32 %18, 0
%20 = zext i1 %19 to i32
%21 = sext i32 %20 to i64
%22 = add i64 %17, %21
%23 = trunc i64 %22 to i32
store i32 %23, ptr %8, align 4
%24 = load i32, ptr %8, align 4
%25 = sub nsw i32 %24, 1
store i32 %25, ptr %9, align 4
%26 = load i32, ptr %9, align 4
%27 = icmp sge i32 %26, 0
br i1 %27, label %.lr.ph2, label %69
.lr.ph2: ; preds = %3
br label %28
28: ; preds = %.lr.ph2, %64
%29 = load i32, ptr %9, align 4
%30 = load i32, ptr %8, align 4
%31 = sub nsw i32 %30, 1
%32 = icmp eq i32 %29, %31
br i1 %32, label %33, label %39
33: ; preds = %28
%34 = load i32, ptr %7, align 4
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %39
36: ; preds = %33
%37 = load i32, ptr %7, align 4
%38 = sub nsw i32 %37, 1
br label %40
39: ; preds = %33, %28
br label %40
40: ; preds = %39, %36
%41 = phi i32 [ %38, %36 ], [ 31, %39 ]
store i32 %41, ptr %10, align 4
%42 = load i32, ptr %10, align 4
%43 = icmp sge i32 %42, 0
br i1 %43, label %.lr.ph, label %63
.lr.ph: ; preds = %40
br label %44
44: ; preds = %.lr.ph, %58
%45 = load ptr, ptr %4, align 8
%46 = load ptr, ptr %5, align 8
%47 = load i32, ptr %9, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i32, ptr %46, i64 %48
%50 = load i32, ptr %49, align 4
%51 = load i32, ptr %10, align 4
%52 = shl i32 1, %51
%53 = and i32 %50, %52
%54 = icmp ugt i32 %53, 0
%55 = zext i1 %54 to i32
%56 = add nsw i32 48, %55
%57 = call i32 @fprintf(ptr noundef %45, ptr noundef @.str, i32 noundef %56)
br label %58
58: ; preds = %44
%59 = load i32, ptr %10, align 4
%60 = add nsw i32 %59, -1
store i32 %60, ptr %10, align 4
%61 = load i32, ptr %10, align 4
%62 = icmp sge i32 %61, 0
br i1 %62, label %44, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %58
br label %63
63: ; preds = %._crit_edge, %40
br label %64
64: ; preds = %63
%65 = load i32, ptr %9, align 4
%66 = add nsw i32 %65, -1
store i32 %66, ptr %9, align 4
%67 = load i32, ptr %9, align 4
%68 = icmp sge i32 %67, 0
br i1 %68, label %28, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %64
br label %69
69: ; preds = %._crit_edge3, %3
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpkvly00sz.c'
source_filename = "/tmp/tmpkvly00sz.c"
target datalayout = "e-m:e-p270: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/tmpkvly00sz.c"
target datalayout = "e-m:e-p270: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/tmp2__fq1po.c'
source_filename = "/tmp/tmp2__fq1po.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @largeAdjustmentGT(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = sub i32 %3, 2
%5 = icmp ugt i32 %4, -2
br i1 %5, label %6, label %11
6: ; preds = %1
%7 = load i32, ptr %2, align 4
%8 = icmp eq i32 %7, 1
%9 = zext i1 %8 to i32
%10 = call i32 @clang_analyzer_eval(i32 noundef %9)
br label %16
11: ; preds = %1
%12 = load i32, ptr %2, align 4
%13 = icmp ne i32 %12, 1
%14 = zext i1 %13 to i32
%15 = call i32 @clang_analyzer_eval(i32 noundef %14)
br label %16
16: ; preds = %11, %6
ret void
}
declare i32 @clang_analyzer_eval(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/tmp2__fq1po.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @largeAdjustmentGT(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = sub i32 %3, 2
%5 = icmp ugt i32 %4, -2
br i1 %5, label %6, label %11
6: ; preds = %1
%7 = load i32, ptr %2, align 4
%8 = icmp eq i32 %7, 1
%9 = zext i1 %8 to i32
%10 = call i32 @clang_analyzer_eval(i32 noundef %9)
br label %16
11: ; preds = %1
%12 = load i32, ptr %2, align 4
%13 = icmp ne i32 %12, 1
%14 = zext i1 %13 to i32
%15 = call i32 @clang_analyzer_eval(i32 noundef %14)
br label %16
16: ; preds = %11, %6
ret void
}
declare i32 @clang_analyzer_eval(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/tmpr2wsfryj.c'
source_filename = "/tmp/tmpr2wsfryj.c"
target datalayout = "e-m:e-p270: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/tmpr2wsfryj.c"
target datalayout = "e-m:e-p270: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/tmp2d0q_osj.c'
source_filename = "/tmp/tmp2d0q_osj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.v = private unnamed_addr constant [10 x i32] [i32 5, i32 9, i32 16, i32 10, i32 4, i32 3, i32 7, i32 11, i32 1, i32 0], align 16
@.str = private unnamed_addr constant [34 x i8] c"Inserisci il numero da cercare: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"La posizione e': %d \00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"PAUSE\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.v, i64 40, i1 false)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %4)
store i32 0, ptr %5, align 4
store i32 0, ptr %3, align 4
br label %8
8: ; preds = %31, %0
%9 = load i32, ptr %3, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %12, 10
br label %14
14: ; preds = %11, %8
%15 = phi i1 [ false, %8 ], [ %13, %11 ]
br i1 %15, label %16, label %32
16: ; preds = %14
%17 = load i32, ptr %5, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %18
%20 = load i32, ptr %19, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp eq i32 %20, %21
br i1 %22, label %23, label %28
23: ; preds = %16
%24 = load i32, ptr %5, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %24)
%26 = load i32, ptr %3, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %3, align 4
br label %31
28: ; preds = %16
%29 = load i32, ptr %5, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %5, align 4
br label %31
31: ; preds = %28, %23
br label %8, !llvm.loop !6
32: ; preds = %14
%33 = call i32 @system(ptr noundef @.str.3)
%34 = load i32, ptr %1, align 4
ret i32 %34
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @scanf(ptr noundef, ptr noundef) #2
declare i32 @system(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2d0q_osj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.v = private unnamed_addr constant [10 x i32] [i32 5, i32 9, i32 16, i32 10, i32 4, i32 3, i32 7, i32 11, i32 1, i32 0], align 16
@.str = private unnamed_addr constant [34 x i8] c"Inserisci il numero da cercare: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"La posizione e': %d \00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"PAUSE\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.v, i64 40, i1 false)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %4)
store i32 0, ptr %5, align 4
store i32 0, ptr %3, align 4
br label %8
8: ; preds = %31, %0
%9 = load i32, ptr %3, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %12, 10
br label %14
14: ; preds = %11, %8
%15 = phi i1 [ false, %8 ], [ %13, %11 ]
br i1 %15, label %16, label %32
16: ; preds = %14
%17 = load i32, ptr %5, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %18
%20 = load i32, ptr %19, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp eq i32 %20, %21
br i1 %22, label %23, label %28
23: ; preds = %16
%24 = load i32, ptr %5, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %24)
%26 = load i32, ptr %3, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %3, align 4
br label %31
28: ; preds = %16
%29 = load i32, ptr %5, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %5, align 4
br label %31
31: ; preds = %28, %23
br label %8, !llvm.loop !6
32: ; preds = %14
%33 = call i32 @system(ptr noundef @.str.3)
%34 = load i32, ptr %1, align 4
ret i32 %34
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @scanf(ptr noundef, ptr noundef) #2
declare i32 @system(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpe7dwoafa.c'
source_filename = "/tmp/tmpe7dwoafa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"RLIMIT_AS\00", align 1
@RLIMIT_AS = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [11 x i8] c"RLIMIT_CPU\00", align 1
@RLIMIT_CPU = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [13 x i8] c"RLIMIT_FSIZE\00", align 1
@RLIMIT_FSIZE = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [14 x i8] c"RLIMIT_NOFILE\00", align 1
@RLIMIT_NOFILE = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [13 x i8] c"RLIMIT_NPROC\00", align 1
@RLIMIT_NPROC = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @status_sandbox() #0 {
%1 = load i32, ptr @RLIMIT_AS, align 4
%2 = call i32 @pr_limits(ptr noundef @.str, i32 noundef %1)
%3 = load i32, ptr @RLIMIT_CPU, align 4
%4 = call i32 @pr_limits(ptr noundef @.str.1, i32 noundef %3)
%5 = load i32, ptr @RLIMIT_FSIZE, align 4
%6 = call i32 @pr_limits(ptr noundef @.str.2, i32 noundef %5)
%7 = load i32, ptr @RLIMIT_NOFILE, align 4
%8 = call i32 @pr_limits(ptr noundef @.str.3, i32 noundef %7)
%9 = load i32, ptr @RLIMIT_NPROC, align 4
%10 = call i32 @pr_limits(ptr noundef @.str.4, i32 noundef %9)
ret void
}
declare i32 @pr_limits(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/tmpe7dwoafa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"RLIMIT_AS\00", align 1
@RLIMIT_AS = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [11 x i8] c"RLIMIT_CPU\00", align 1
@RLIMIT_CPU = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [13 x i8] c"RLIMIT_FSIZE\00", align 1
@RLIMIT_FSIZE = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [14 x i8] c"RLIMIT_NOFILE\00", align 1
@RLIMIT_NOFILE = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [13 x i8] c"RLIMIT_NPROC\00", align 1
@RLIMIT_NPROC = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @status_sandbox() #0 {
%1 = load i32, ptr @RLIMIT_AS, align 4
%2 = call i32 @pr_limits(ptr noundef @.str, i32 noundef %1)
%3 = load i32, ptr @RLIMIT_CPU, align 4
%4 = call i32 @pr_limits(ptr noundef @.str.1, i32 noundef %3)
%5 = load i32, ptr @RLIMIT_FSIZE, align 4
%6 = call i32 @pr_limits(ptr noundef @.str.2, i32 noundef %5)
%7 = load i32, ptr @RLIMIT_NOFILE, align 4
%8 = call i32 @pr_limits(ptr noundef @.str.3, i32 noundef %7)
%9 = load i32, ptr @RLIMIT_NPROC, align 4
%10 = call i32 @pr_limits(ptr noundef @.str.4, i32 noundef %9)
ret void
}
declare i32 @pr_limits(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/tmp5roxmwf9.c'
source_filename = "/tmp/tmp5roxmwf9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bme280_compensate_P_int64_twentyfour_bit_output(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @bme280_compensate_P_int64(i32 noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = lshr i32 %6, 1
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
ret i32 %8
}
declare i32 @bme280_compensate_P_int64(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/tmp5roxmwf9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bme280_compensate_P_int64_twentyfour_bit_output(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @bme280_compensate_P_int64(i32 noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = lshr i32 %6, 1
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
ret i32 %8
}
declare i32 @bme280_compensate_P_int64(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/tmpo_dtdgxt.c'
source_filename = "/tmp/tmpo_dtdgxt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cutarray(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i8, align 1
%10 = alloca i8, align 1
%11 = alloca i8, align 1
%12 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
store i8 -1, ptr %9, align 1
store i8 0, ptr %10, align 1
store i8 63, ptr %11, align 1
store i32 0, ptr %12, align 4
br label %13
13: ; preds = %48, %4
%14 = load i32, ptr %12, align 4
%15 = load i32, ptr %8, align 4
%16 = sdiv i32 %15, 8
%17 = icmp slt i32 %14, %16
br i1 %17, label %18, label %51
18: ; preds = %13
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %12, align 4
%21 = load i32, ptr %7, align 4
%22 = sdiv i32 %21, 8
%23 = add nsw i32 %20, %22
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %19, i64 %24
%26 = load i8, ptr %25, align 1
%27 = zext i8 %26 to i32
%28 = load i32, ptr %7, align 4
%29 = srem i32 %28, 8
%30 = shl i32 %27, %29
%31 = load ptr, ptr %5, align 8
%32 = load i32, ptr %12, align 4
%33 = load i32, ptr %7, align 4
%34 = sdiv i32 %33, 8
%35 = add nsw i32 %32, %34
%36 = add nsw i32 %35, 1
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %31, i64 %37
%39 = load i8, ptr %38, align 1
%40 = zext i8 %39 to i32
%41 = load i32, ptr %7, align 4
%42 = srem i32 %41, 8
%43 = sub nsw i32 8, %42
%44 = ashr i32 %40, %43
%45 = or i32 %30, %44
%46 = trunc i32 %45 to i8
%47 = call i32 @printbinary(i8 noundef zeroext %46)
br label %48
48: ; preds = %18
%49 = load i32, ptr %12, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %12, align 4
br label %13, !llvm.loop !6
51: ; preds = %13
%52 = load ptr, ptr %5, align 8
%53 = load i32, ptr %8, align 4
%54 = sdiv i32 %53, 8
%55 = load i32, ptr %7, align 4
%56 = sdiv i32 %55, 8
%57 = add nsw i32 %54, %56
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i8, ptr %52, i64 %58
%60 = load i8, ptr %59, align 1
%61 = zext i8 %60 to i32
%62 = load i32, ptr %7, align 4
%63 = srem i32 %62, 8
%64 = shl i32 %61, %63
%65 = load ptr, ptr %5, align 8
%66 = load i32, ptr %8, align 4
%67 = sdiv i32 %66, 8
%68 = load i32, ptr %7, align 4
%69 = sdiv i32 %68, 8
%70 = add nsw i32 %67, %69
%71 = add nsw i32 %70, 1
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8, ptr %65, i64 %72
%74 = load i8, ptr %73, align 1
%75 = zext i8 %74 to i32
%76 = load i32, ptr %7, align 4
%77 = srem i32 %76, 8
%78 = sub nsw i32 8, %77
%79 = ashr i32 %75, %78
%80 = or i32 %64, %79
%81 = load i32, ptr %8, align 4
%82 = srem i32 %81, 8
%83 = sub nsw i32 8, %82
%84 = shl i32 255, %83
%85 = and i32 %80, %84
%86 = trunc i32 %85 to i8
%87 = call i32 @printbinary(i8 noundef zeroext %86)
ret void
}
declare i32 @printbinary(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo_dtdgxt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cutarray(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i8, align 1
%10 = alloca i8, align 1
%11 = alloca i8, align 1
%12 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
store i8 -1, ptr %9, align 1
store i8 0, ptr %10, align 1
store i8 63, ptr %11, align 1
store i32 0, ptr %12, align 4
%13 = load i32, ptr %12, align 4
%14 = load i32, ptr %8, align 4
%15 = sdiv i32 %14, 8
%16 = icmp slt i32 %13, %15
br i1 %16, label %.lr.ph, label %54
.lr.ph: ; preds = %4
br label %17
17: ; preds = %.lr.ph, %47
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %12, align 4
%20 = load i32, ptr %7, align 4
%21 = sdiv i32 %20, 8
%22 = add nsw i32 %19, %21
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %18, i64 %23
%25 = load i8, ptr %24, align 1
%26 = zext i8 %25 to i32
%27 = load i32, ptr %7, align 4
%28 = srem i32 %27, 8
%29 = shl i32 %26, %28
%30 = load ptr, ptr %5, align 8
%31 = load i32, ptr %12, align 4
%32 = load i32, ptr %7, align 4
%33 = sdiv i32 %32, 8
%34 = add nsw i32 %31, %33
%35 = add nsw i32 %34, 1
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %30, i64 %36
%38 = load i8, ptr %37, align 1
%39 = zext i8 %38 to i32
%40 = load i32, ptr %7, align 4
%41 = srem i32 %40, 8
%42 = sub nsw i32 8, %41
%43 = ashr i32 %39, %42
%44 = or i32 %29, %43
%45 = trunc i32 %44 to i8
%46 = call i32 @printbinary(i8 noundef zeroext %45)
br label %47
47: ; preds = %17
%48 = load i32, ptr %12, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %12, align 4
%50 = load i32, ptr %12, align 4
%51 = load i32, ptr %8, align 4
%52 = sdiv i32 %51, 8
%53 = icmp slt i32 %50, %52
br i1 %53, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %47
br label %54
54: ; preds = %._crit_edge, %4
%55 = load ptr, ptr %5, align 8
%56 = load i32, ptr %8, align 4
%57 = sdiv i32 %56, 8
%58 = load i32, ptr %7, align 4
%59 = sdiv i32 %58, 8
%60 = add nsw i32 %57, %59
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8, ptr %55, i64 %61
%63 = load i8, ptr %62, align 1
%64 = zext i8 %63 to i32
%65 = load i32, ptr %7, align 4
%66 = srem i32 %65, 8
%67 = shl i32 %64, %66
%68 = load ptr, ptr %5, align 8
%69 = load i32, ptr %8, align 4
%70 = sdiv i32 %69, 8
%71 = load i32, ptr %7, align 4
%72 = sdiv i32 %71, 8
%73 = add nsw i32 %70, %72
%74 = add nsw i32 %73, 1
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i8, ptr %68, i64 %75
%77 = load i8, ptr %76, align 1
%78 = zext i8 %77 to i32
%79 = load i32, ptr %7, align 4
%80 = srem i32 %79, 8
%81 = sub nsw i32 8, %80
%82 = ashr i32 %78, %81
%83 = or i32 %67, %82
%84 = load i32, ptr %8, align 4
%85 = srem i32 %84, 8
%86 = sub nsw i32 8, %85
%87 = shl i32 255, %86
%88 = and i32 %83, %87
%89 = trunc i32 %88 to i8
%90 = call i32 @printbinary(i8 noundef zeroext %89)
ret void
}
declare i32 @printbinary(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp0z1ith9q.c'
source_filename = "/tmp/tmp0z1ith9q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Linux\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"/proc/self/exe\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"Windows\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @geral_pegarPastaCorrente(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%5 = call i64 @strcmp(ptr noundef @.str, ptr noundef @.str)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %32
7: ; preds = %1
store i32 0, ptr %4, align 4
%8 = load ptr, ptr %3, align 8
%9 = call i32 @readlink(ptr noundef @.str.1, ptr noundef %8, i32 noundef 255)
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %12
11: ; preds = %7
store i32 2, ptr %2, align 4
br label %45
12: ; preds = %7
%13 = load ptr, ptr %3, align 8
%14 = call i32 @strlen(ptr noundef %13)
store i32 %14, ptr %4, align 4
br label %15
15: ; preds = %23, %12
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %4, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %21, 47
br i1 %22, label %23, label %26
23: ; preds = %15
%24 = load i32, ptr %4, align 4
%25 = add nsw i32 %24, -1
store i32 %25, ptr %4, align 4
br label %15, !llvm.loop !6
26: ; preds = %15
%27 = load ptr, ptr %3, align 8
%28 = load i32, ptr %4, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
store i8 0, ptr %30, align 1
br label %31
31: ; preds = %26
br label %42
32: ; preds = %1
%33 = call i64 @strcmp(ptr noundef @.str, ptr noundef @.str.2)
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %41
35: ; preds = %32
%36 = load ptr, ptr %3, align 8
%37 = call i32 @getcwd(ptr noundef %36, i32 noundef 255)
%38 = icmp ne i32 %37, 0
br i1 %38, label %40, label %39
39: ; preds = %35
store i32 2, ptr %2, align 4
br label %45
40: ; preds = %35
br label %41
41: ; preds = %40, %32
br label %42
42: ; preds = %41, %31
%43 = load ptr, ptr %3, align 8
%44 = call i32 @strcat(ptr noundef %43, ptr noundef @.str.3)
store i32 1, ptr %2, align 4
br label %45
45: ; preds = %42, %39, %11
%46 = load i32, ptr %2, align 4
ret i32 %46
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @readlink(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @getcwd(ptr noundef, i32 noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0z1ith9q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Linux\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"/proc/self/exe\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"Windows\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @geral_pegarPastaCorrente(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%5 = call i64 @strcmp(ptr noundef @.str, ptr noundef @.str)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %38
7: ; preds = %1
store i32 0, ptr %4, align 4
%8 = load ptr, ptr %3, align 8
%9 = call i32 @readlink(ptr noundef @.str.1, ptr noundef %8, i32 noundef 255)
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %12
11: ; preds = %7
store i32 2, ptr %2, align 4
br label %51
12: ; preds = %7
%13 = load ptr, ptr %3, align 8
%14 = call i32 @strlen(ptr noundef %13)
store i32 %14, ptr %4, align 4
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %4, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp ne i32 %20, 47
br i1 %21, label %.lr.ph, label %32
.lr.ph: ; preds = %12
br label %22
22: ; preds = %.lr.ph, %22
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, -1
store i32 %24, ptr %4, align 4
%25 = load ptr, ptr %3, align 8
%26 = load i32, ptr %4, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp ne i32 %30, 47
br i1 %31, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %32
32: ; preds = %._crit_edge, %12
%33 = load ptr, ptr %3, align 8
%34 = load i32, ptr %4, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
store i8 0, ptr %36, align 1
br label %37
37: ; preds = %32
br label %48
38: ; preds = %1
%39 = call i64 @strcmp(ptr noundef @.str, ptr noundef @.str.2)
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %47
41: ; preds = %38
%42 = load ptr, ptr %3, align 8
%43 = call i32 @getcwd(ptr noundef %42, i32 noundef 255)
%44 = icmp ne i32 %43, 0
br i1 %44, label %46, label %45
45: ; preds = %41
store i32 2, ptr %2, align 4
br label %51
46: ; preds = %41
br label %47
47: ; preds = %46, %38
br label %48
48: ; preds = %47, %37
%49 = load ptr, ptr %3, align 8
%50 = call i32 @strcat(ptr noundef %49, ptr noundef @.str.3)
store i32 1, ptr %2, align 4
br label %51
51: ; preds = %48, %45, %11
%52 = load i32, ptr %2, align 4
ret i32 %52
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @readlink(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @getcwd(ptr noundef, i32 noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpeck9kl3b.c'
source_filename = "/tmp/tmpeck9kl3b.c"
target datalayout = "e-m:e-p270: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/tmpeck9kl3b.c"
target datalayout = "e-m:e-p270: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/tmpzbhlqglb.c'
source_filename = "/tmp/tmpzbhlqglb.c"
target datalayout = "e-m:e-p270: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_RDONLY = 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/tmpzbhlqglb.c"
target datalayout = "e-m:e-p270: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_RDONLY = 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/tmpxx_wuy65.c'
source_filename = "/tmp/tmpxx_wuy65.c"
target datalayout = "e-m:e-p270: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/tmpxx_wuy65.c"
target datalayout = "e-m:e-p270: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/tmplhlynut_.c'
source_filename = "/tmp/tmplhlynut_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cc_c(double noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #0 {
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca double, align 8
%22 = alloca double, align 8
%23 = alloca double, align 8
%24 = alloca double, align 8
store double %0, ptr %10, align 8
store double %1, ptr %11, align 8
store double %2, ptr %12, align 8
store double %3, ptr %13, align 8
store double %4, ptr %14, align 8
store ptr %5, ptr %15, align 8
store ptr %6, ptr %16, align 8
store ptr %7, ptr %17, align 8
%25 = load double, ptr %10, align 8
%26 = load double, ptr %13, align 8
%27 = fsub double %25, %26
store double %27, ptr %18, align 8
%28 = load double, ptr %11, align 8
%29 = load double, ptr %14, align 8
%30 = fadd double %28, %29
store double %30, ptr %19, align 8
%31 = load double, ptr %18, align 8
%32 = call double @llvm.fabs.f64(double %31)
%33 = fcmp olt double %32, 0x3D719799812DEA11
br i1 %33, label %34, label %39
34: ; preds = %8
%35 = load double, ptr %19, align 8
%36 = call double @llvm.fabs.f64(double %35)
%37 = fcmp olt double %36, 0x3D719799812DEA11
br i1 %37, label %38, label %39
38: ; preds = %34
store double 1.000000e+04, ptr %9, align 8
br label %110
39: ; preds = %34, %8
%40 = load double, ptr %18, align 8
%41 = load double, ptr %18, align 8
%42 = load double, ptr %19, align 8
%43 = load double, ptr %19, align 8
%44 = fmul double %42, %43
%45 = call double @llvm.fmuladd.f64(double %40, double %41, double %44)
%46 = call double @sqrt(double noundef %45) #4
store double %46, ptr %20, align 8
%47 = load double, ptr %20, align 8
%48 = fcmp ogt double %47, 4.000000e+00
br i1 %48, label %49, label %50
49: ; preds = %39
store double 1.000000e+04, ptr %9, align 8
br label %110
50: ; preds = %39
%51 = load double, ptr %19, align 8
%52 = load double, ptr %18, align 8
%53 = call double @my_atan2(double noundef %51, double noundef %52)
store double %53, ptr %21, align 8
%54 = load double, ptr %20, align 8
%55 = load double, ptr %20, align 8
%56 = fneg double %54
%57 = call double @llvm.fmuladd.f64(double %56, double %55, double 8.000000e+00)
%58 = fdiv double %57, 8.000000e+00
%59 = fptosi double %58 to i32
%60 = call double @acos(i32 noundef %59)
%61 = load ptr, ptr %16, align 8
store double %60, ptr %61, align 8
%62 = load ptr, ptr %16, align 8
%63 = load double, ptr %62, align 8
%64 = call double @sin(double noundef %63) #4
store double %64, ptr %24, align 8
%65 = load double, ptr %24, align 8
%66 = call double @llvm.fabs.f64(double %65)
%67 = fcmp olt double %66, 1.000000e-03
br i1 %67, label %68, label %69
68: ; preds = %50
store double 0.000000e+00, ptr %24, align 8
br label %69
69: ; preds = %68, %50
%70 = load double, ptr %24, align 8
%71 = call double @llvm.fabs.f64(double %70)
%72 = fcmp olt double %71, 1.000000e-03
br i1 %72, label %73, label %78
73: ; preds = %69
%74 = load double, ptr %20, align 8
%75 = call double @llvm.fabs.f64(double %74)
%76 = fcmp olt double %75, 1.000000e-03
br i1 %76, label %77, label %78
77: ; preds = %73
store double 1.000000e+04, ptr %9, align 8
br label %110
78: ; preds = %73, %69
%79 = load double, ptr %24, align 8
%80 = fmul double 2.000000e+00, %79
%81 = load double, ptr %20, align 8
%82 = fdiv double %80, %81
%83 = fptosi double %82 to i32
%84 = call double @asin(i32 noundef %83)
store double %84, ptr %22, align 8
%85 = load double, ptr %22, align 8
%86 = fsub double 0x3FF921FB544486E0, %85
%87 = load double, ptr %21, align 8
%88 = fadd double %86, %87
%89 = call double @mod2pi(double noundef %88)
%90 = load ptr, ptr %15, align 8
store double %89, ptr %90, align 8
%91 = load ptr, ptr %15, align 8
%92 = load double, ptr %91, align 8
%93 = load ptr, ptr %16, align 8
%94 = load double, ptr %93, align 8
%95 = fsub double %92, %94
%96 = load double, ptr %12, align 8
%97 = fsub double %95, %96
%98 = call double @mod2pi(double noundef %97)
%99 = load ptr, ptr %17, align 8
store double %98, ptr %99, align 8
%100 = load ptr, ptr %15, align 8
%101 = load double, ptr %100, align 8
%102 = load ptr, ptr %16, align 8
%103 = load double, ptr %102, align 8
%104 = fadd double %101, %103
%105 = load ptr, ptr %17, align 8
%106 = load double, ptr %105, align 8
%107 = fadd double %104, %106
%108 = fmul double 1.000000e+00, %107
store double %108, ptr %23, align 8
%109 = load double, ptr %23, align 8
store double %109, ptr %9, align 8
br label %110
110: ; preds = %78, %77, %49, %38
%111 = load double, ptr %9, align 8
ret double %111
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
; Function Attrs: nounwind
declare double @sqrt(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare double @my_atan2(double noundef, double noundef) #3
declare double @acos(i32 noundef) #3
; Function Attrs: nounwind
declare double @sin(double noundef) #2
declare double @asin(i32 noundef) #3
declare double @mod2pi(double noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplhlynut_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cc_c(double noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #0 {
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca double, align 8
%22 = alloca double, align 8
%23 = alloca double, align 8
%24 = alloca double, align 8
store double %0, ptr %10, align 8
store double %1, ptr %11, align 8
store double %2, ptr %12, align 8
store double %3, ptr %13, align 8
store double %4, ptr %14, align 8
store ptr %5, ptr %15, align 8
store ptr %6, ptr %16, align 8
store ptr %7, ptr %17, align 8
%25 = load double, ptr %10, align 8
%26 = load double, ptr %13, align 8
%27 = fsub double %25, %26
store double %27, ptr %18, align 8
%28 = load double, ptr %11, align 8
%29 = load double, ptr %14, align 8
%30 = fadd double %28, %29
store double %30, ptr %19, align 8
%31 = load double, ptr %18, align 8
%32 = call double @llvm.fabs.f64(double %31)
%33 = fcmp olt double %32, 0x3D719799812DEA11
br i1 %33, label %34, label %39
34: ; preds = %8
%35 = load double, ptr %19, align 8
%36 = call double @llvm.fabs.f64(double %35)
%37 = fcmp olt double %36, 0x3D719799812DEA11
br i1 %37, label %38, label %39
38: ; preds = %34
store double 1.000000e+04, ptr %9, align 8
br label %110
39: ; preds = %34, %8
%40 = load double, ptr %18, align 8
%41 = load double, ptr %18, align 8
%42 = load double, ptr %19, align 8
%43 = load double, ptr %19, align 8
%44 = fmul double %42, %43
%45 = call double @llvm.fmuladd.f64(double %40, double %41, double %44)
%46 = call double @sqrt(double noundef %45) #4
store double %46, ptr %20, align 8
%47 = load double, ptr %20, align 8
%48 = fcmp ogt double %47, 4.000000e+00
br i1 %48, label %49, label %50
49: ; preds = %39
store double 1.000000e+04, ptr %9, align 8
br label %110
50: ; preds = %39
%51 = load double, ptr %19, align 8
%52 = load double, ptr %18, align 8
%53 = call double @my_atan2(double noundef %51, double noundef %52)
store double %53, ptr %21, align 8
%54 = load double, ptr %20, align 8
%55 = load double, ptr %20, align 8
%56 = fneg double %54
%57 = call double @llvm.fmuladd.f64(double %56, double %55, double 8.000000e+00)
%58 = fdiv double %57, 8.000000e+00
%59 = fptosi double %58 to i32
%60 = call double @acos(i32 noundef %59)
%61 = load ptr, ptr %16, align 8
store double %60, ptr %61, align 8
%62 = load ptr, ptr %16, align 8
%63 = load double, ptr %62, align 8
%64 = call double @sin(double noundef %63) #4
store double %64, ptr %24, align 8
%65 = load double, ptr %24, align 8
%66 = call double @llvm.fabs.f64(double %65)
%67 = fcmp olt double %66, 1.000000e-03
br i1 %67, label %68, label %69
68: ; preds = %50
store double 0.000000e+00, ptr %24, align 8
br label %69
69: ; preds = %68, %50
%70 = load double, ptr %24, align 8
%71 = call double @llvm.fabs.f64(double %70)
%72 = fcmp olt double %71, 1.000000e-03
br i1 %72, label %73, label %78
73: ; preds = %69
%74 = load double, ptr %20, align 8
%75 = call double @llvm.fabs.f64(double %74)
%76 = fcmp olt double %75, 1.000000e-03
br i1 %76, label %77, label %78
77: ; preds = %73
store double 1.000000e+04, ptr %9, align 8
br label %110
78: ; preds = %73, %69
%79 = load double, ptr %24, align 8
%80 = fmul double 2.000000e+00, %79
%81 = load double, ptr %20, align 8
%82 = fdiv double %80, %81
%83 = fptosi double %82 to i32
%84 = call double @asin(i32 noundef %83)
store double %84, ptr %22, align 8
%85 = load double, ptr %22, align 8
%86 = fsub double 0x3FF921FB544486E0, %85
%87 = load double, ptr %21, align 8
%88 = fadd double %86, %87
%89 = call double @mod2pi(double noundef %88)
%90 = load ptr, ptr %15, align 8
store double %89, ptr %90, align 8
%91 = load ptr, ptr %15, align 8
%92 = load double, ptr %91, align 8
%93 = load ptr, ptr %16, align 8
%94 = load double, ptr %93, align 8
%95 = fsub double %92, %94
%96 = load double, ptr %12, align 8
%97 = fsub double %95, %96
%98 = call double @mod2pi(double noundef %97)
%99 = load ptr, ptr %17, align 8
store double %98, ptr %99, align 8
%100 = load ptr, ptr %15, align 8
%101 = load double, ptr %100, align 8
%102 = load ptr, ptr %16, align 8
%103 = load double, ptr %102, align 8
%104 = fadd double %101, %103
%105 = load ptr, ptr %17, align 8
%106 = load double, ptr %105, align 8
%107 = fadd double %104, %106
%108 = fmul double 1.000000e+00, %107
store double %108, ptr %23, align 8
%109 = load double, ptr %23, align 8
store double %109, ptr %9, align 8
br label %110
110: ; preds = %78, %77, %49, %38
%111 = load double, ptr %9, align 8
ret double %111
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
; Function Attrs: nounwind
declare double @sqrt(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare double @my_atan2(double noundef, double noundef) #3
declare double @acos(i32 noundef) #3
; Function Attrs: nounwind
declare double @sin(double noundef) #2
declare double @asin(i32 noundef) #3
declare double @mod2pi(double noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcf5bio_p.c'
source_filename = "/tmp/tmpcf5bio_p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0Ausage: chess [-s,-m,-x] <command>\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"commands and options:\0A\00", align 1
@.str.2 = private unnamed_addr constant [80 x i8] c" <move> Make a move in an ongoing game. The computer player will respond\0A\00", align 1
@.str.3 = private unnamed_addr constant [80 x i8] c" with a move. The move should be in a algebraic notation like so:\0A\00", align 1
@.str.4 = private unnamed_addr constant [79 x i8] c" 'Ndxe5+' (no quotes). If the move is a pawn promotion, an extra\0A\00", align 1
@.str.5 = private unnamed_addr constant [74 x i8] c" capital letter must denote what piece to promote to, e.g.:\0A\00", align 1
@.str.6 = private unnamed_addr constant [75 x i8] c" 'e8=Q'. Castling can be performed by 'O-O' or 'O-O-O' (i.e.\0A\00", align 1
@.str.7 = private unnamed_addr constant [41 x i8] c" capital 'oh', not zeros).\0A\00", align 1
@.str.8 = private unnamed_addr constant [81 x i8] c" new Starts a new game, where a virtual coin toss determines who plays\0A\00", align 1
@.str.9 = private unnamed_addr constant [65 x i8] c" white. The game files are stored in ~/.BitChess/.\0A\00", align 1
@.str.10 = private unnamed_addr constant [49 x i8] c" print Shows the current board position.\0A\00", align 1
@.str.11 = private unnamed_addr constant [41 x i8] c" reset Restarts an ongoing game.\0A\00", align 1
@.str.12 = private unnamed_addr constant [80 x i8] c" switch Switches sides in an ongoing game. The computer player will make\0A\00", align 1
@.str.13 = private unnamed_addr constant [23 x i8] c" a move.\0A\00", align 1
@.str.14 = private unnamed_addr constant [77 x i8] c" backup <n> Backs up the current game to a file with the specified number\0A\00", align 1
@.str.15 = private unnamed_addr constant [63 x i8] c" <n>. Can be restored using the restore command.\0A\00", align 1
@.str.16 = private unnamed_addr constant [77 x i8] c" restore <n> Restores a backed-up game from the file with the given number\0A\00", align 1
@.str.17 = private unnamed_addr constant [60 x i8] c" <n>. Requires a <n>.game file to be present.\0A\00", align 1
@.str.18 = private unnamed_addr constant [73 x i8] c"-s Silences output to only critical messages, such as moves.\0A\00", align 1
@.str.19 = private unnamed_addr constant [80 x i8] c"-m Uses simple move notation. When used, moves must be written like\0A\00", align 1
@.str.20 = private unnamed_addr constant [77 x i8] c" so: 'd7-d5'. No indications for pieces, captures or check are\0A\00", align 1
@.str.21 = private unnamed_addr constant [74 x i8] c" used. For pawn promotions, append an extra capital letter:\0A\00", align 1
@.str.22 = private unnamed_addr constant [75 x i8] c" 'e7-e4Q'. Automatically also enables silent mode, i.e.: -s.\0A\00", align 1
@.str.23 = private unnamed_addr constant [81 x i8] c"-x Performs the move without having the AI player do a counter move.\0A\00", align 1
@.str.24 = private unnamed_addr constant [40 x i8] c"-h --help Shows this help message.\0A\00", align 1
@.str.25 = private unnamed_addr constant [46 x i8] c"-v --version Shows the application version.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = call i32 (...) @version()
%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 @printf(ptr noundef @.str.9)
%12 = call i32 @printf(ptr noundef @.str.10)
%13 = call i32 @printf(ptr noundef @.str.11)
%14 = call i32 @printf(ptr noundef @.str.12)
%15 = call i32 @printf(ptr noundef @.str.13)
%16 = call i32 @printf(ptr noundef @.str.14)
%17 = call i32 @printf(ptr noundef @.str.15)
%18 = call i32 @printf(ptr noundef @.str.16)
%19 = call i32 @printf(ptr noundef @.str.17)
%20 = call i32 @printf(ptr noundef @.str.18)
%21 = call i32 @printf(ptr noundef @.str.19)
%22 = call i32 @printf(ptr noundef @.str.20)
%23 = call i32 @printf(ptr noundef @.str.21)
%24 = call i32 @printf(ptr noundef @.str.22)
%25 = call i32 @printf(ptr noundef @.str.23)
%26 = call i32 @printf(ptr noundef @.str.24)
%27 = call i32 @printf(ptr noundef @.str.25)
ret void
}
declare i32 @version(...) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcf5bio_p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0Ausage: chess [-s,-m,-x] <command>\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"commands and options:\0A\00", align 1
@.str.2 = private unnamed_addr constant [80 x i8] c" <move> Make a move in an ongoing game. The computer player will respond\0A\00", align 1
@.str.3 = private unnamed_addr constant [80 x i8] c" with a move. The move should be in a algebraic notation like so:\0A\00", align 1
@.str.4 = private unnamed_addr constant [79 x i8] c" 'Ndxe5+' (no quotes). If the move is a pawn promotion, an extra\0A\00", align 1
@.str.5 = private unnamed_addr constant [74 x i8] c" capital letter must denote what piece to promote to, e.g.:\0A\00", align 1
@.str.6 = private unnamed_addr constant [75 x i8] c" 'e8=Q'. Castling can be performed by 'O-O' or 'O-O-O' (i.e.\0A\00", align 1
@.str.7 = private unnamed_addr constant [41 x i8] c" capital 'oh', not zeros).\0A\00", align 1
@.str.8 = private unnamed_addr constant [81 x i8] c" new Starts a new game, where a virtual coin toss determines who plays\0A\00", align 1
@.str.9 = private unnamed_addr constant [65 x i8] c" white. The game files are stored in ~/.BitChess/.\0A\00", align 1
@.str.10 = private unnamed_addr constant [49 x i8] c" print Shows the current board position.\0A\00", align 1
@.str.11 = private unnamed_addr constant [41 x i8] c" reset Restarts an ongoing game.\0A\00", align 1
@.str.12 = private unnamed_addr constant [80 x i8] c" switch Switches sides in an ongoing game. The computer player will make\0A\00", align 1
@.str.13 = private unnamed_addr constant [23 x i8] c" a move.\0A\00", align 1
@.str.14 = private unnamed_addr constant [77 x i8] c" backup <n> Backs up the current game to a file with the specified number\0A\00", align 1
@.str.15 = private unnamed_addr constant [63 x i8] c" <n>. Can be restored using the restore command.\0A\00", align 1
@.str.16 = private unnamed_addr constant [77 x i8] c" restore <n> Restores a backed-up game from the file with the given number\0A\00", align 1
@.str.17 = private unnamed_addr constant [60 x i8] c" <n>. Requires a <n>.game file to be present.\0A\00", align 1
@.str.18 = private unnamed_addr constant [73 x i8] c"-s Silences output to only critical messages, such as moves.\0A\00", align 1
@.str.19 = private unnamed_addr constant [80 x i8] c"-m Uses simple move notation. When used, moves must be written like\0A\00", align 1
@.str.20 = private unnamed_addr constant [77 x i8] c" so: 'd7-d5'. No indications for pieces, captures or check are\0A\00", align 1
@.str.21 = private unnamed_addr constant [74 x i8] c" used. For pawn promotions, append an extra capital letter:\0A\00", align 1
@.str.22 = private unnamed_addr constant [75 x i8] c" 'e7-e4Q'. Automatically also enables silent mode, i.e.: -s.\0A\00", align 1
@.str.23 = private unnamed_addr constant [81 x i8] c"-x Performs the move without having the AI player do a counter move.\0A\00", align 1
@.str.24 = private unnamed_addr constant [40 x i8] c"-h --help Shows this help message.\0A\00", align 1
@.str.25 = private unnamed_addr constant [46 x i8] c"-v --version Shows the application version.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = call i32 (...) @version()
%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 @printf(ptr noundef @.str.9)
%12 = call i32 @printf(ptr noundef @.str.10)
%13 = call i32 @printf(ptr noundef @.str.11)
%14 = call i32 @printf(ptr noundef @.str.12)
%15 = call i32 @printf(ptr noundef @.str.13)
%16 = call i32 @printf(ptr noundef @.str.14)
%17 = call i32 @printf(ptr noundef @.str.15)
%18 = call i32 @printf(ptr noundef @.str.16)
%19 = call i32 @printf(ptr noundef @.str.17)
%20 = call i32 @printf(ptr noundef @.str.18)
%21 = call i32 @printf(ptr noundef @.str.19)
%22 = call i32 @printf(ptr noundef @.str.20)
%23 = call i32 @printf(ptr noundef @.str.21)
%24 = call i32 @printf(ptr noundef @.str.22)
%25 = call i32 @printf(ptr noundef @.str.23)
%26 = call i32 @printf(ptr noundef @.str.24)
%27 = call i32 @printf(ptr noundef @.str.25)
ret void
}
declare i32 @version(...) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqsdwu87r.c'
source_filename = "/tmp/tmpqsdwu87r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = sub i32 %4, 1
%6 = call i32 @printf(ptr noundef @.str, i32 noundef %5)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqsdwu87r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = sub i32 %4, 1
%6 = call i32 @printf(ptr noundef @.str, i32 noundef %5)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8g_drifb.c'
source_filename = "/tmp/tmp8g_drifb.c"
target datalayout = "e-m:e-p270: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.compiler.used = appending global [1 x ptr] [ptr @bpf_sk_lookup_test5], section "llvm.metadata"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bpf_sk_lookup_test5(ptr noundef %0) #0 section "fail_no_release_subcall" {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @lookup_no_release(ptr noundef %3)
ret i32 0
}
declare i32 @lookup_no_release(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8g_drifb.c"
target datalayout = "e-m:e-p270: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.compiler.used = appending global [1 x ptr] [ptr @bpf_sk_lookup_test5], section "llvm.metadata"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bpf_sk_lookup_test5(ptr noundef %0) #0 section "fail_no_release_subcall" {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @lookup_no_release(ptr noundef %3)
ret i32 0
}
declare i32 @lookup_no_release(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp24qnfq0.c'
source_filename = "/tmp/tmpp24qnfq0.c"
target datalayout = "e-m:e-p270: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/tmpp24qnfq0.c"
target datalayout = "e-m:e-p270: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/tmp7bql1k4z.c'
source_filename = "/tmp/tmp7bql1k4z.c"
target datalayout = "e-m:e-p270: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/tmp7bql1k4z.c"
target datalayout = "e-m:e-p270: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/tmpx2q8qo_9.c'
source_filename = "/tmp/tmpx2q8qo_9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [60 x i8] c"CHILD (pid %d): It was nice knowing you, parent. I'm done.\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [27 x i8] c"PARENT (pid %d): Started.\0A\00", align 1
@.str.2 = private unnamed_addr constant [55 x i8] c"PARENT: Starting infinite loop. Press Ctrl+C to exit.\0A\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"Use 'ps' to see the zombie process\0A\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
store i32 0, ptr %1, align 4
%3 = call i64 (...) @fork()
store i64 %3, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %11
6: ; preds = %0
%7 = call i32 (...) @getpid()
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %7)
%9 = load i32, ptr @EXIT_SUCCESS, align 4
%10 = call i32 @exit(i32 noundef %9) #3
unreachable
11: ; preds = %0
%12 = call i32 (...) @getpid()
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %12)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %16
16: ; preds = %11, %16
%17 = call i32 @sleep(i32 noundef 1)
br label %16
}
declare i64 @fork(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @getpid(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpx2q8qo_9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [60 x i8] c"CHILD (pid %d): It was nice knowing you, parent. I'm done.\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [27 x i8] c"PARENT (pid %d): Started.\0A\00", align 1
@.str.2 = private unnamed_addr constant [55 x i8] c"PARENT: Starting infinite loop. Press Ctrl+C to exit.\0A\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"Use 'ps' to see the zombie process\0A\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
store i32 0, ptr %1, align 4
%3 = call i64 (...) @fork()
store i64 %3, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %11
6: ; preds = %0
%7 = call i32 (...) @getpid()
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %7)
%9 = load i32, ptr @EXIT_SUCCESS, align 4
%10 = call i32 @exit(i32 noundef %9) #3
unreachable
11: ; preds = %0
%12 = call i32 (...) @getpid()
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %12)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %16
16: ; preds = %16, %11
%17 = call i32 @sleep(i32 noundef 1)
br label %16
}
declare i64 @fork(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @getpid(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmplzyjwhty.c'
source_filename = "/tmp/tmplzyjwhty.c"
target datalayout = "e-m:e-p270: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/tmplzyjwhty.c"
target datalayout = "e-m:e-p270: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/tmpu75m64jw.c'
source_filename = "/tmp/tmpu75m64jw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cost_of_travel(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call i32 @manhattan_h(ptr noundef %7, ptr noundef %8, i32 noundef %9)
ret i32 %10
}
declare i32 @manhattan_h(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu75m64jw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cost_of_travel(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call i32 @manhattan_h(ptr noundef %7, ptr noundef %8, i32 noundef %9)
ret i32 %10
}
declare i32 @manhattan_h(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgst6nifx.c'
source_filename = "/tmp/tmpgst6nifx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@deobfuscate.d = internal global [256 x i8] zeroinitializer, align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @deobfuscate(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
%4 = alloca i8, align 1
%5 = alloca i8, align 1
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%8 = load ptr, ptr %2, align 8
%9 = getelementptr inbounds i8, ptr %8, i64 0
%10 = load i8, ptr %9, align 1
store i8 %10, ptr %3, align 1
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 1
%13 = load i8, ptr %12, align 1
store i8 %13, ptr %4, align 1
%14 = load ptr, ptr %2, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 2
%16 = load i8, ptr %15, align 1
%17 = zext i8 %16 to i32
%18 = load i8, ptr %3, align 1
%19 = zext i8 %18 to i32
%20 = xor i32 %17, %19
%21 = load i8, ptr %4, align 1
%22 = zext i8 %21 to i32
%23 = xor i32 %20, %22
%24 = trunc i32 %23 to i8
store i8 %24, ptr %5, align 1
%25 = load i8, ptr %5, align 1
%26 = zext i8 %25 to i32
%27 = add nsw i32 %26, 1
%28 = trunc i32 %27 to i8
%29 = call i32 @memset(ptr noundef @deobfuscate.d, i32 noundef 0, i8 noundef zeroext %28)
store i32 0, ptr %6, align 4
store i32 3, ptr %7, align 4
br label %30
30: ; preds = %67, %1
%31 = load i32, ptr %6, align 4
%32 = load i8, ptr %5, align 1
%33 = zext i8 %32 to i32
%34 = icmp slt i32 %31, %33
br i1 %34, label %35, label %72
35: ; preds = %30
%36 = load ptr, ptr %2, align 8
%37 = load i32, ptr %7, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
%40 = load i8, ptr %39, align 1
%41 = zext i8 %40 to i32
%42 = load i8, ptr %4, align 1
%43 = zext i8 %42 to i32
%44 = xor i32 %41, %43
%45 = trunc i32 %44 to i8
%46 = load i32, ptr %6, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [256 x i8], ptr @deobfuscate.d, i64 0, i64 %47
store i8 %45, ptr %48, align 1
%49 = load i8, ptr %4, align 1
%50 = zext i8 %49 to i32
%51 = load i32, ptr %6, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [256 x i8], ptr @deobfuscate.d, i64 0, i64 %52
%54 = load i8, ptr %53, align 1
%55 = zext i8 %54 to i32
%56 = sub nsw i32 %55, %50
%57 = trunc i32 %56 to i8
store i8 %57, ptr %53, align 1
%58 = load i8, ptr %3, align 1
%59 = zext i8 %58 to i32
%60 = load i32, ptr %6, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [256 x i8], ptr @deobfuscate.d, i64 0, i64 %61
%63 = load i8, ptr %62, align 1
%64 = zext i8 %63 to i32
%65 = xor i32 %64, %59
%66 = trunc i32 %65 to i8
store i8 %66, ptr %62, align 1
br label %67
67: ; preds = %35
%68 = load i32, ptr %6, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %6, align 4
%70 = load i32, ptr %7, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %7, align 4
br label %30, !llvm.loop !6
72: ; preds = %30
%73 = load i8, ptr %5, align 1
%74 = zext i8 %73 to i64
%75 = getelementptr inbounds [256 x i8], ptr @deobfuscate.d, i64 0, i64 %74
store i8 0, ptr %75, align 1
ret ptr @deobfuscate.d
}
declare i32 @memset(ptr noundef, i32 noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgst6nifx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@deobfuscate.d = internal global [256 x i8] zeroinitializer, align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @deobfuscate(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
%4 = alloca i8, align 1
%5 = alloca i8, align 1
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%8 = load ptr, ptr %2, align 8
%9 = getelementptr inbounds i8, ptr %8, i64 0
%10 = load i8, ptr %9, align 1
store i8 %10, ptr %3, align 1
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 1
%13 = load i8, ptr %12, align 1
store i8 %13, ptr %4, align 1
%14 = load ptr, ptr %2, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 2
%16 = load i8, ptr %15, align 1
%17 = zext i8 %16 to i32
%18 = load i8, ptr %3, align 1
%19 = zext i8 %18 to i32
%20 = xor i32 %17, %19
%21 = load i8, ptr %4, align 1
%22 = zext i8 %21 to i32
%23 = xor i32 %20, %22
%24 = trunc i32 %23 to i8
store i8 %24, ptr %5, align 1
%25 = load i8, ptr %5, align 1
%26 = zext i8 %25 to i32
%27 = add nsw i32 %26, 1
%28 = trunc i32 %27 to i8
%29 = call i32 @memset(ptr noundef @deobfuscate.d, i32 noundef 0, i8 noundef zeroext %28)
store i32 0, ptr %6, align 4
store i32 3, ptr %7, align 4
%30 = load i32, ptr %6, align 4
%31 = load i8, ptr %5, align 1
%32 = zext i8 %31 to i32
%33 = icmp slt i32 %30, %32
br i1 %33, label %.lr.ph, label %75
.lr.ph: ; preds = %1
br label %34
34: ; preds = %.lr.ph, %66
%35 = load ptr, ptr %2, align 8
%36 = load i32, ptr %7, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
%39 = load i8, ptr %38, align 1
%40 = zext i8 %39 to i32
%41 = load i8, ptr %4, align 1
%42 = zext i8 %41 to i32
%43 = xor i32 %40, %42
%44 = trunc i32 %43 to i8
%45 = load i32, ptr %6, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [256 x i8], ptr @deobfuscate.d, i64 0, i64 %46
store i8 %44, ptr %47, align 1
%48 = load i8, ptr %4, align 1
%49 = zext i8 %48 to i32
%50 = load i32, ptr %6, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [256 x i8], ptr @deobfuscate.d, i64 0, i64 %51
%53 = load i8, ptr %52, align 1
%54 = zext i8 %53 to i32
%55 = sub nsw i32 %54, %49
%56 = trunc i32 %55 to i8
store i8 %56, ptr %52, align 1
%57 = load i8, ptr %3, align 1
%58 = zext i8 %57 to i32
%59 = load i32, ptr %6, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [256 x i8], ptr @deobfuscate.d, i64 0, i64 %60
%62 = load i8, ptr %61, align 1
%63 = zext i8 %62 to i32
%64 = xor i32 %63, %58
%65 = trunc i32 %64 to i8
store i8 %65, ptr %61, align 1
br label %66
66: ; preds = %34
%67 = load i32, ptr %6, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %6, align 4
%69 = load i32, ptr %7, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %7, align 4
%71 = load i32, ptr %6, align 4
%72 = load i8, ptr %5, align 1
%73 = zext i8 %72 to i32
%74 = icmp slt i32 %71, %73
br i1 %74, label %34, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %66
br label %75
75: ; preds = %._crit_edge, %1
%76 = load i8, ptr %5, align 1
%77 = zext i8 %76 to i64
%78 = getelementptr inbounds [256 x i8], ptr @deobfuscate.d, i64 0, i64 %77
store i8 0, ptr %78, align 1
ret ptr @deobfuscate.d
}
declare i32 @memset(ptr noundef, i32 noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpb9e4wrx3.c'
source_filename = "/tmp/tmpb9e4wrx3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = 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 100, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = sext i32 %8 to i64
%10 = mul i64 %9, 4
%11 = trunc i64 %10 to i32
%12 = call ptr @malloc(i32 noundef %11)
store ptr %12, ptr %7, align 8
%13 = load i32, ptr %6, align 4
%14 = load ptr, ptr %7, align 8
%15 = call i32 @process_plain_bad(i32 noundef %13, ptr noundef %14)
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare i32 @process_plain_bad(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/tmpb9e4wrx3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = 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 100, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = sext i32 %8 to i64
%10 = mul i64 %9, 4
%11 = trunc i64 %10 to i32
%12 = call ptr @malloc(i32 noundef %11)
store ptr %12, ptr %7, align 8
%13 = load i32, ptr %6, align 4
%14 = load ptr, ptr %7, align 8
%15 = call i32 @process_plain_bad(i32 noundef %13, ptr noundef %14)
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare i32 @process_plain_bad(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/tmpblbxiehp.c'
source_filename = "/tmp/tmpblbxiehp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @sqrt(float noundef %0) #0 {
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca i32, align 4
store float %0, ptr %3, align 4
%5 = load float, ptr %3, align 4
%6 = fpext float %5 to double
%7 = fcmp ole double %6, -1.000000e-03
br i1 %7, label %8, label %9
8: ; preds = %1
store float -1.000000e+00, ptr %2, align 4
br label %15
9: ; preds = %1
store i32 6, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = load float, ptr %3, align 4
%12 = load float, ptr %3, align 4
%13 = fdiv float %12, 2.000000e+00
%14 = call float @babylonianSqrt(i32 noundef %10, float noundef %11, float noundef %13)
store float %14, ptr %2, align 4
br label %15
15: ; preds = %9, %8
%16 = load float, ptr %2, align 4
ret float %16
}
declare float @babylonianSqrt(i32 noundef, float 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/tmpblbxiehp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @sqrt(float noundef %0) #0 {
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca i32, align 4
store float %0, ptr %3, align 4
%5 = load float, ptr %3, align 4
%6 = fpext float %5 to double
%7 = fcmp ole double %6, -1.000000e-03
br i1 %7, label %8, label %9
8: ; preds = %1
store float -1.000000e+00, ptr %2, align 4
br label %15
9: ; preds = %1
store i32 6, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = load float, ptr %3, align 4
%12 = load float, ptr %3, align 4
%13 = fdiv float %12, 2.000000e+00
%14 = call float @babylonianSqrt(i32 noundef %10, float noundef %11, float noundef %13)
store float %14, ptr %2, align 4
br label %15
15: ; preds = %9, %8
%16 = load float, ptr %2, align 4
ret float %16
}
declare float @babylonianSqrt(i32 noundef, float 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/tmpi_7k4sqs.c'
source_filename = "/tmp/tmpi_7k4sqs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s= [%g\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c", %g\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"]\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printVec(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca [256 x i8], align 16
%11 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
store i32 235, ptr %9, align 4
%12 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
store ptr %12, ptr %11, align 8
%13 = load ptr, ptr %11, align 8
%14 = load ptr, ptr %6, align 8
%15 = load ptr, ptr %4, align 8
%16 = getelementptr inbounds double, ptr %15, i64 0
%17 = load double, ptr %16, align 8
%18 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %13, ptr noundef @.str, ptr noundef %14, double noundef %17)
store i32 %18, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = load i32, ptr %9, align 4
%21 = sub nsw i32 %20, %19
store i32 %21, ptr %9, align 4
%22 = load i32, ptr %8, align 4
%23 = load ptr, ptr %11, align 8
%24 = sext i32 %22 to i64
%25 = getelementptr inbounds i8, ptr %23, i64 %24
store ptr %25, ptr %11, align 8
store i32 1, ptr %7, align 4
br label %26
26: ; preds = %50, %3
%27 = load i32, ptr %7, align 4
%28 = load i32, ptr %5, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %30, label %33
30: ; preds = %26
%31 = load i32, ptr %9, align 4
%32 = icmp sgt i32 %31, 0
br label %33
33: ; preds = %30, %26
%34 = phi i1 [ false, %26 ], [ %32, %30 ]
br i1 %34, label %35, label %53
35: ; preds = %33
%36 = load ptr, ptr %11, align 8
%37 = load ptr, ptr %4, align 8
%38 = load i32, ptr %7, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds double, ptr %37, i64 %39
%41 = load double, ptr %40, align 8
%42 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %36, ptr noundef @.str.1, double noundef %41)
store i32 %42, ptr %8, align 4
%43 = load i32, ptr %8, align 4
%44 = load i32, ptr %9, align 4
%45 = sub nsw i32 %44, %43
store i32 %45, ptr %9, align 4
%46 = load i32, ptr %8, align 4
%47 = load ptr, ptr %11, align 8
%48 = sext i32 %46 to i64
%49 = getelementptr inbounds i8, ptr %47, i64 %48
store ptr %49, ptr %11, align 8
br label %50
50: ; preds = %35
%51 = load i32, ptr %7, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %7, align 4
br label %26, !llvm.loop !6
53: ; preds = %33
%54 = load i32, ptr %9, align 4
%55 = icmp sgt i32 %54, 0
br i1 %55, label %56, label %59
56: ; preds = %53
%57 = load ptr, ptr %11, align 8
%58 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %57, ptr noundef @.str.2)
br label %59
59: ; preds = %56, %53
%60 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%61 = call i32 @PRNT(ptr noundef @.str.3, ptr noundef %60)
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @PRNT(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/tmpi_7k4sqs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s= [%g\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c", %g\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"]\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printVec(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca [256 x i8], align 16
%11 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
store i32 235, ptr %9, align 4
%12 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
store ptr %12, ptr %11, align 8
%13 = load ptr, ptr %11, align 8
%14 = load ptr, ptr %6, align 8
%15 = load ptr, ptr %4, align 8
%16 = getelementptr inbounds double, ptr %15, i64 0
%17 = load double, ptr %16, align 8
%18 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %13, ptr noundef @.str, ptr noundef %14, double noundef %17)
store i32 %18, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = load i32, ptr %9, align 4
%21 = sub nsw i32 %20, %19
store i32 %21, ptr %9, align 4
%22 = load i32, ptr %8, align 4
%23 = load ptr, ptr %11, align 8
%24 = sext i32 %22 to i64
%25 = getelementptr inbounds i8, ptr %23, i64 %24
store ptr %25, ptr %11, align 8
store i32 1, ptr %7, align 4
br label %26
26: ; preds = %50, %3
%27 = load i32, ptr %7, align 4
%28 = load i32, ptr %5, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %30, label %33
30: ; preds = %26
%31 = load i32, ptr %9, align 4
%32 = icmp sgt i32 %31, 0
br label %33
33: ; preds = %30, %26
%34 = phi i1 [ false, %26 ], [ %32, %30 ]
br i1 %34, label %35, label %53
35: ; preds = %33
%36 = load ptr, ptr %11, align 8
%37 = load ptr, ptr %4, align 8
%38 = load i32, ptr %7, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds double, ptr %37, i64 %39
%41 = load double, ptr %40, align 8
%42 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %36, ptr noundef @.str.1, double noundef %41)
store i32 %42, ptr %8, align 4
%43 = load i32, ptr %8, align 4
%44 = load i32, ptr %9, align 4
%45 = sub nsw i32 %44, %43
store i32 %45, ptr %9, align 4
%46 = load i32, ptr %8, align 4
%47 = load ptr, ptr %11, align 8
%48 = sext i32 %46 to i64
%49 = getelementptr inbounds i8, ptr %47, i64 %48
store ptr %49, ptr %11, align 8
br label %50
50: ; preds = %35
%51 = load i32, ptr %7, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %7, align 4
br label %26, !llvm.loop !6
53: ; preds = %33
%54 = load i32, ptr %9, align 4
%55 = icmp sgt i32 %54, 0
br i1 %55, label %56, label %59
56: ; preds = %53
%57 = load ptr, ptr %11, align 8
%58 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %57, ptr noundef @.str.2)
br label %59
59: ; preds = %56, %53
%60 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%61 = call i32 @PRNT(ptr noundef @.str.3, ptr noundef %60)
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @PRNT(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/tmp9tzyfqwy.c'
source_filename = "/tmp/tmp9tzyfqwy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %6, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i32 @strcpy(ptr noundef %7, ptr noundef %8)
%10 = load i32, ptr %4, align 4
ret i32 %10
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9tzyfqwy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %6, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i32 @strcpy(ptr noundef %7, ptr noundef %8)
%10 = load i32, ptr %4, align 4
ret i32 %10
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp23aapvlo.c'
source_filename = "/tmp/tmp23aapvlo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.ex2.str1 = private unnamed_addr constant [20 x i8] c"Hello World.\00\00\00\00\00\00\00\00", align 16
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ex2() #0 {
%1 = alloca [20 x i8], align 16
%2 = alloca [20 x i8], align 16
%3 = alloca i32, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.ex2.str1, i64 20, i1 false)
%4 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%5 = getelementptr inbounds [20 x i8], ptr %1, i64 0, i64 0
%6 = call i32 @strcpy(ptr noundef %4, ptr noundef %5)
%7 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%8 = call i32 @printf(ptr noundef @.str, ptr noundef %7)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp23aapvlo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.ex2.str1 = private unnamed_addr constant [20 x i8] c"Hello World.\00\00\00\00\00\00\00\00", align 16
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ex2() #0 {
%1 = alloca [20 x i8], align 16
%2 = alloca [20 x i8], align 16
%3 = alloca i32, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.ex2.str1, i64 20, i1 false)
%4 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%5 = getelementptr inbounds [20 x i8], ptr %1, i64 0, i64 0
%6 = call i32 @strcpy(ptr noundef %4, ptr noundef %5)
%7 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%8 = call i32 @printf(ptr noundef @.str, ptr noundef %7)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbyzlpjuf.c'
source_filename = "/tmp/tmpbyzlpjuf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [50 x i8] c"setparams: Internal error: invalid class type %c\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"%scharacter class\0A\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c" \00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"%sparameter (class ='%c')\0A\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"%sinteger m\0A\00", align 1
@.str.5 = private unnamed_addr constant [20 x i8] c"%sparameter (m=%d)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @write_ep_info(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
%6 = load i8, ptr %4, align 1
%7 = sext i8 %6 to i32
%8 = icmp eq i32 %7, 83
br i1 %8, label %9, label %10
9: ; preds = %2
store i32 24, ptr %5, align 4
br label %50
10: ; preds = %2
%11 = load i8, ptr %4, align 1
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 87
br i1 %13, label %14, label %15
14: ; preds = %10
store i32 25, ptr %5, align 4
br label %49
15: ; preds = %10
%16 = load i8, ptr %4, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 65
br i1 %18, label %19, label %20
19: ; preds = %15
store i32 28, ptr %5, align 4
br label %48
20: ; preds = %15
%21 = load i8, ptr %4, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 66
br i1 %23, label %24, label %25
24: ; preds = %20
store i32 30, ptr %5, align 4
br label %47
25: ; preds = %20
%26 = load i8, ptr %4, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 67
br i1 %28, label %29, label %30
29: ; preds = %25
store i32 32, ptr %5, align 4
br label %46
30: ; preds = %25
%31 = load i8, ptr %4, align 1
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 68
br i1 %33, label %34, label %35
34: ; preds = %30
store i32 36, ptr %5, align 4
br label %45
35: ; preds = %30
%36 = load i8, ptr %4, align 1
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 69
br i1 %38, label %39, label %40
39: ; preds = %35
store i32 40, ptr %5, align 4
br label %44
40: ; preds = %35
%41 = load i8, ptr %4, align 1
%42 = call i32 @printf(ptr noundef @.str, i8 noundef signext %41)
%43 = call i32 @exit(i32 noundef 1) #3
unreachable
44: ; preds = %39
br label %45
45: ; preds = %44, %34
br label %46
46: ; preds = %45, %29
br label %47
47: ; preds = %46, %24
br label %48
48: ; preds = %47, %19
br label %49
49: ; preds = %48, %14
br label %50
50: ; preds = %49, %9
%51 = load ptr, ptr %3, align 8
%52 = call i32 (ptr, ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef @.str.1, ptr noundef @.str.2)
%53 = load ptr, ptr %3, align 8
%54 = load i8, ptr %4, align 1
%55 = sext i8 %54 to i32
%56 = call i32 (ptr, ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef %55)
%57 = load ptr, ptr %3, align 8
%58 = call i32 (ptr, ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef @.str.4, ptr noundef @.str.2)
%59 = load ptr, ptr %3, align 8
%60 = load i32, ptr %5, align 4
%61 = call i32 (ptr, ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str.5, ptr noundef @.str.2, i32 noundef %60)
ret void
}
declare i32 @printf(ptr noundef, i8 noundef signext) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fprintf(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" }
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/tmpbyzlpjuf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [50 x i8] c"setparams: Internal error: invalid class type %c\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"%scharacter class\0A\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c" \00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"%sparameter (class ='%c')\0A\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"%sinteger m\0A\00", align 1
@.str.5 = private unnamed_addr constant [20 x i8] c"%sparameter (m=%d)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @write_ep_info(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
%6 = load i8, ptr %4, align 1
%7 = sext i8 %6 to i32
%8 = icmp eq i32 %7, 83
br i1 %8, label %9, label %10
9: ; preds = %2
store i32 24, ptr %5, align 4
br label %50
10: ; preds = %2
%11 = load i8, ptr %4, align 1
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 87
br i1 %13, label %14, label %15
14: ; preds = %10
store i32 25, ptr %5, align 4
br label %49
15: ; preds = %10
%16 = load i8, ptr %4, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 65
br i1 %18, label %19, label %20
19: ; preds = %15
store i32 28, ptr %5, align 4
br label %48
20: ; preds = %15
%21 = load i8, ptr %4, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 66
br i1 %23, label %24, label %25
24: ; preds = %20
store i32 30, ptr %5, align 4
br label %47
25: ; preds = %20
%26 = load i8, ptr %4, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 67
br i1 %28, label %29, label %30
29: ; preds = %25
store i32 32, ptr %5, align 4
br label %46
30: ; preds = %25
%31 = load i8, ptr %4, align 1
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 68
br i1 %33, label %34, label %35
34: ; preds = %30
store i32 36, ptr %5, align 4
br label %45
35: ; preds = %30
%36 = load i8, ptr %4, align 1
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 69
br i1 %38, label %39, label %40
39: ; preds = %35
store i32 40, ptr %5, align 4
br label %44
40: ; preds = %35
%41 = load i8, ptr %4, align 1
%42 = call i32 @printf(ptr noundef @.str, i8 noundef signext %41)
%43 = call i32 @exit(i32 noundef 1) #3
unreachable
44: ; preds = %39
br label %45
45: ; preds = %44, %34
br label %46
46: ; preds = %45, %29
br label %47
47: ; preds = %46, %24
br label %48
48: ; preds = %47, %19
br label %49
49: ; preds = %48, %14
br label %50
50: ; preds = %49, %9
%51 = load ptr, ptr %3, align 8
%52 = call i32 (ptr, ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef @.str.1, ptr noundef @.str.2)
%53 = load ptr, ptr %3, align 8
%54 = load i8, ptr %4, align 1
%55 = sext i8 %54 to i32
%56 = call i32 (ptr, ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef %55)
%57 = load ptr, ptr %3, align 8
%58 = call i32 (ptr, ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef @.str.4, ptr noundef @.str.2)
%59 = load ptr, ptr %3, align 8
%60 = load i32, ptr %5, align 4
%61 = call i32 (ptr, ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str.5, ptr noundef @.str.2, i32 noundef %60)
ret void
}
declare i32 @printf(ptr noundef, i8 noundef signext) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fprintf(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" }
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/tmpefsos0ag.c'
source_filename = "/tmp/tmpefsos0ag.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@stdout = dso_local global ptr null, align 8
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @select_outfile(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%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 i64 @strcmp(ptr noundef %5, ptr noundef @.str)
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = load ptr, ptr @stdout, align 8
store ptr %9, ptr %2, align 8
br label %20
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = call i32 @backup(ptr noundef %11)
%13 = icmp eq i32 %12, 1
br i1 %13, label %14, label %15
14: ; preds = %10
store ptr null, ptr %2, align 8
br label %20
15: ; preds = %10
%16 = load ptr, ptr %3, align 8
%17 = call ptr @fopen(ptr noundef %16, ptr noundef @.str.1)
store ptr %17, ptr %4, align 8
br label %18
18: ; preds = %15
%19 = load ptr, ptr %4, align 8
store ptr %19, ptr %2, align 8
br label %20
20: ; preds = %18, %14, %8
%21 = load ptr, ptr %2, align 8
ret ptr %21
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @backup(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpefsos0ag.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@stdout = dso_local global ptr null, align 8
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @select_outfile(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%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 i64 @strcmp(ptr noundef %5, ptr noundef @.str)
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = load ptr, ptr @stdout, align 8
store ptr %9, ptr %2, align 8
br label %20
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = call i32 @backup(ptr noundef %11)
%13 = icmp eq i32 %12, 1
br i1 %13, label %14, label %15
14: ; preds = %10
store ptr null, ptr %2, align 8
br label %20
15: ; preds = %10
%16 = load ptr, ptr %3, align 8
%17 = call ptr @fopen(ptr noundef %16, ptr noundef @.str.1)
store ptr %17, ptr %4, align 8
br label %18
18: ; preds = %15
%19 = load ptr, ptr %4, align 8
store ptr %19, ptr %2, align 8
br label %20
20: ; preds = %18, %14, %8
%21 = load ptr, ptr %2, align 8
ret ptr %21
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @backup(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl3si2giw.c'
source_filename = "/tmp/tmpl3si2giw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @YL_MAC(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca [20 x i8], align 16
%12 = alloca [20 x i8], align 16
%13 = alloca [20 x i8], align 16
%14 = alloca [20 x i8], align 16
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%15 = load i32, ptr %7, align 4
%16 = add nsw i32 %15, 7
%17 = sdiv i32 %16, 8
store i32 %17, ptr %10, align 4
%18 = load ptr, ptr %6, align 8
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load i32, ptr %10, align 4
%23 = mul nsw i32 %22, 8
%24 = load i32, ptr %7, align 4
%25 = sub nsw i32 %23, %24
%26 = call i32 @memset(ptr noundef %21, i32 noundef 0, i32 noundef %25)
%27 = getelementptr inbounds [20 x i8], ptr %11, i64 0, i64 0
%28 = load ptr, ptr %6, align 8
%29 = call i32 @memcpy(ptr noundef %27, ptr noundef %28, i32 noundef 8)
store i32 1, ptr %9, align 4
br label %30
30: ; preds = %43, %4
%31 = load i32, ptr %9, align 4
%32 = load i32, ptr %10, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %34, label %46
34: ; preds = %30
%35 = getelementptr inbounds [20 x i8], ptr %11, i64 0, i64 0
%36 = load ptr, ptr %6, align 8
%37 = load i32, ptr %9, align 4
%38 = mul nsw i32 %37, 8
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %36, i64 %39
%41 = getelementptr inbounds [20 x i8], ptr %11, i64 0, i64 0
%42 = call i32 @XOR(ptr noundef %35, ptr noundef %40, ptr noundef %41)
br label %43
43: ; preds = %34
%44 = load i32, ptr %9, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %9, align 4
br label %30, !llvm.loop !6
46: ; preds = %30
%47 = getelementptr inbounds [20 x i8], ptr %12, i64 0, i64 0
%48 = getelementptr inbounds [20 x i8], ptr %11, i64 0, i64 0
%49 = call i32 @hex2str(ptr noundef %47, ptr noundef %48, i32 noundef 8)
%50 = getelementptr inbounds [20 x i8], ptr %13, i64 0, i64 0
%51 = getelementptr inbounds [20 x i8], ptr %11, i64 0, i64 0
%52 = getelementptr inbounds i8, ptr %51, i64 4
%53 = call i32 @hex2str(ptr noundef %50, ptr noundef %52, i32 noundef 8)
%54 = getelementptr inbounds [20 x i8], ptr %12, i64 0, i64 0
%55 = getelementptr inbounds [20 x i8], ptr %12, i64 0, i64 0
%56 = load ptr, ptr %5, align 8
%57 = call i32 @des(ptr noundef %54, ptr noundef %55, ptr noundef %56)
%58 = getelementptr inbounds [20 x i8], ptr %12, i64 0, i64 0
%59 = getelementptr inbounds [20 x i8], ptr %13, i64 0, i64 0
%60 = getelementptr inbounds [20 x i8], ptr %14, i64 0, i64 0
%61 = call i32 @XOR(ptr noundef %58, ptr noundef %59, ptr noundef %60)
%62 = getelementptr inbounds [20 x i8], ptr %14, i64 0, i64 0
%63 = getelementptr inbounds [20 x i8], ptr %14, i64 0, i64 0
%64 = load ptr, ptr %5, align 8
%65 = call i32 @des(ptr noundef %62, ptr noundef %63, ptr noundef %64)
%66 = load ptr, ptr %8, align 8
%67 = getelementptr inbounds [20 x i8], ptr %14, i64 0, i64 0
%68 = call i32 @hex2str(ptr noundef %66, ptr noundef %67, i32 noundef 8)
ret i32 0
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @XOR(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @hex2str(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @des(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl3si2giw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @YL_MAC(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca [20 x i8], align 16
%12 = alloca [20 x i8], align 16
%13 = alloca [20 x i8], align 16
%14 = alloca [20 x i8], align 16
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%15 = load i32, ptr %7, align 4
%16 = add nsw i32 %15, 7
%17 = sdiv i32 %16, 8
store i32 %17, ptr %10, align 4
%18 = load ptr, ptr %6, align 8
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load i32, ptr %10, align 4
%23 = mul nsw i32 %22, 8
%24 = load i32, ptr %7, align 4
%25 = sub nsw i32 %23, %24
%26 = call i32 @memset(ptr noundef %21, i32 noundef 0, i32 noundef %25)
%27 = getelementptr inbounds [20 x i8], ptr %11, i64 0, i64 0
%28 = load ptr, ptr %6, align 8
%29 = call i32 @memcpy(ptr noundef %27, ptr noundef %28, i32 noundef 8)
store i32 1, ptr %9, align 4
%30 = load i32, ptr %9, align 4
%31 = load i32, ptr %10, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %.lr.ph, label %48
.lr.ph: ; preds = %4
br label %33
33: ; preds = %.lr.ph, %42
%34 = getelementptr inbounds [20 x i8], ptr %11, i64 0, i64 0
%35 = load ptr, ptr %6, align 8
%36 = load i32, ptr %9, align 4
%37 = mul nsw i32 %36, 8
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %35, i64 %38
%40 = getelementptr inbounds [20 x i8], ptr %11, i64 0, i64 0
%41 = call i32 @XOR(ptr noundef %34, ptr noundef %39, ptr noundef %40)
br label %42
42: ; preds = %33
%43 = load i32, ptr %9, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %9, align 4
%45 = load i32, ptr %9, align 4
%46 = load i32, ptr %10, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %33, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %42
br label %48
48: ; preds = %._crit_edge, %4
%49 = getelementptr inbounds [20 x i8], ptr %12, i64 0, i64 0
%50 = getelementptr inbounds [20 x i8], ptr %11, i64 0, i64 0
%51 = call i32 @hex2str(ptr noundef %49, ptr noundef %50, i32 noundef 8)
%52 = getelementptr inbounds [20 x i8], ptr %13, i64 0, i64 0
%53 = getelementptr inbounds [20 x i8], ptr %11, i64 0, i64 0
%54 = getelementptr inbounds i8, ptr %53, i64 4
%55 = call i32 @hex2str(ptr noundef %52, ptr noundef %54, i32 noundef 8)
%56 = getelementptr inbounds [20 x i8], ptr %12, i64 0, i64 0
%57 = getelementptr inbounds [20 x i8], ptr %12, i64 0, i64 0
%58 = load ptr, ptr %5, align 8
%59 = call i32 @des(ptr noundef %56, ptr noundef %57, ptr noundef %58)
%60 = getelementptr inbounds [20 x i8], ptr %12, i64 0, i64 0
%61 = getelementptr inbounds [20 x i8], ptr %13, i64 0, i64 0
%62 = getelementptr inbounds [20 x i8], ptr %14, i64 0, i64 0
%63 = call i32 @XOR(ptr noundef %60, ptr noundef %61, ptr noundef %62)
%64 = getelementptr inbounds [20 x i8], ptr %14, i64 0, i64 0
%65 = getelementptr inbounds [20 x i8], ptr %14, i64 0, i64 0
%66 = load ptr, ptr %5, align 8
%67 = call i32 @des(ptr noundef %64, ptr noundef %65, ptr noundef %66)
%68 = load ptr, ptr %8, align 8
%69 = getelementptr inbounds [20 x i8], ptr %14, i64 0, i64 0
%70 = call i32 @hex2str(ptr noundef %68, ptr noundef %69, i32 noundef 8)
ret i32 0
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @XOR(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @hex2str(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @des(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"}
|
; ModuleID = '/tmp/tmp31lwvwav.c'
source_filename = "/tmp/tmp31lwvwav.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bubble32(ptr noundef %0, i8 noundef zeroext %1, i8 noundef zeroext %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca i8, align 1
%7 = alloca i32, align 4
%8 = alloca i8, align 1
%9 = alloca i8, align 1
%10 = alloca i8, align 1
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
store i8 %2, ptr %6, align 1
%11 = load i8, ptr %6, align 1
%12 = zext i8 %11 to i32
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %84
14: ; preds = %3
store i8 0, ptr %8, align 1
br label %15
15: ; preds = %80, %14
%16 = load i8, ptr %8, align 1
%17 = zext i8 %16 to i32
%18 = load i8, ptr %5, align 1
%19 = zext i8 %18 to i32
%20 = icmp slt i32 %17, %19
br i1 %20, label %21, label %83
21: ; preds = %15
store i8 1, ptr %10, align 1
store i8 0, ptr %9, align 1
br label %22
22: ; preds = %71, %21
%23 = load i8, ptr %9, align 1
%24 = zext i8 %23 to i32
%25 = load i8, ptr %5, align 1
%26 = zext i8 %25 to i32
%27 = sub nsw i32 %26, 1
%28 = load i8, ptr %8, align 1
%29 = zext i8 %28 to i32
%30 = sub nsw i32 %27, %29
%31 = icmp slt i32 %24, %30
br i1 %31, label %32, label %74
32: ; preds = %22
%33 = load ptr, ptr %4, align 8
%34 = load i8, ptr %9, align 1
%35 = zext i8 %34 to i64
%36 = getelementptr inbounds i32, ptr %33, i64 %35
%37 = load i32, ptr %36, align 4
%38 = load ptr, ptr %4, align 8
%39 = load i8, ptr %9, align 1
%40 = zext i8 %39 to i32
%41 = add nsw i32 %40, 1
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %38, i64 %42
%44 = load i32, ptr %43, align 4
%45 = icmp ugt i32 %37, %44
br i1 %45, label %46, label %70
46: ; preds = %32
store i8 0, ptr %10, align 1
%47 = load ptr, ptr %4, align 8
%48 = load i8, ptr %9, align 1
%49 = zext i8 %48 to i64
%50 = getelementptr inbounds i32, ptr %47, i64 %49
%51 = load i32, ptr %50, align 4
store i32 %51, ptr %7, align 4
%52 = load ptr, ptr %4, align 8
%53 = load i8, ptr %9, align 1
%54 = zext i8 %53 to i32
%55 = add nsw i32 %54, 1
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i32, ptr %52, i64 %56
%58 = load i32, ptr %57, align 4
%59 = load ptr, ptr %4, align 8
%60 = load i8, ptr %9, align 1
%61 = zext i8 %60 to i64
%62 = getelementptr inbounds i32, ptr %59, i64 %61
store i32 %58, ptr %62, align 4
%63 = load i32, ptr %7, align 4
%64 = load ptr, ptr %4, align 8
%65 = load i8, ptr %9, align 1
%66 = zext i8 %65 to i32
%67 = add nsw i32 %66, 1
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i32, ptr %64, i64 %68
store i32 %63, ptr %69, align 4
br label %70
70: ; preds = %46, %32
br label %71
71: ; preds = %70
%72 = load i8, ptr %9, align 1
%73 = add i8 %72, 1
store i8 %73, ptr %9, align 1
br label %22, !llvm.loop !6
74: ; preds = %22
%75 = load i8, ptr %10, align 1
%76 = zext i8 %75 to i32
%77 = icmp eq i32 %76, 1
br i1 %77, label %78, label %79
78: ; preds = %74
br label %83
79: ; preds = %74
br label %80
80: ; preds = %79
%81 = load i8, ptr %8, align 1
%82 = add i8 %81, 1
store i8 %82, ptr %8, align 1
br label %15, !llvm.loop !8
83: ; preds = %78, %15
br label %154
84: ; preds = %3
store i8 0, ptr %8, align 1
br label %85
85: ; preds = %150, %84
%86 = load i8, ptr %8, align 1
%87 = zext i8 %86 to i32
%88 = load i8, ptr %5, align 1
%89 = zext i8 %88 to i32
%90 = icmp slt i32 %87, %89
br i1 %90, label %91, label %153
91: ; preds = %85
store i8 1, ptr %10, align 1
store i8 0, ptr %9, align 1
br label %92
92: ; preds = %141, %91
%93 = load i8, ptr %9, align 1
%94 = zext i8 %93 to i32
%95 = load i8, ptr %5, align 1
%96 = zext i8 %95 to i32
%97 = sub nsw i32 %96, 1
%98 = load i8, ptr %8, align 1
%99 = zext i8 %98 to i32
%100 = sub nsw i32 %97, %99
%101 = icmp slt i32 %94, %100
br i1 %101, label %102, label %144
102: ; preds = %92
%103 = load ptr, ptr %4, align 8
%104 = load i8, ptr %9, align 1
%105 = zext i8 %104 to i64
%106 = getelementptr inbounds i32, ptr %103, i64 %105
%107 = load i32, ptr %106, align 4
%108 = load ptr, ptr %4, align 8
%109 = load i8, ptr %9, align 1
%110 = zext i8 %109 to i32
%111 = add nsw i32 %110, 1
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds i32, ptr %108, i64 %112
%114 = load i32, ptr %113, align 4
%115 = icmp ult i32 %107, %114
br i1 %115, label %116, label %140
116: ; preds = %102
store i8 0, ptr %10, align 1
%117 = load ptr, ptr %4, align 8
%118 = load i8, ptr %9, align 1
%119 = zext i8 %118 to i64
%120 = getelementptr inbounds i32, ptr %117, i64 %119
%121 = load i32, ptr %120, align 4
store i32 %121, ptr %7, align 4
%122 = load ptr, ptr %4, align 8
%123 = load i8, ptr %9, align 1
%124 = zext i8 %123 to i32
%125 = add nsw i32 %124, 1
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds i32, ptr %122, i64 %126
%128 = load i32, ptr %127, align 4
%129 = load ptr, ptr %4, align 8
%130 = load i8, ptr %9, align 1
%131 = zext i8 %130 to i64
%132 = getelementptr inbounds i32, ptr %129, i64 %131
store i32 %128, ptr %132, align 4
%133 = load i32, ptr %7, align 4
%134 = load ptr, ptr %4, align 8
%135 = load i8, ptr %9, align 1
%136 = zext i8 %135 to i32
%137 = add nsw i32 %136, 1
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds i32, ptr %134, i64 %138
store i32 %133, ptr %139, align 4
br label %140
140: ; preds = %116, %102
br label %141
141: ; preds = %140
%142 = load i8, ptr %9, align 1
%143 = add i8 %142, 1
store i8 %143, ptr %9, align 1
br label %92, !llvm.loop !9
144: ; preds = %92
%145 = load i8, ptr %10, align 1
%146 = zext i8 %145 to i32
%147 = icmp eq i32 %146, 1
br i1 %147, label %148, label %149
148: ; preds = %144
br label %153
149: ; preds = %144
br label %150
150: ; preds = %149
%151 = load i8, ptr %8, align 1
%152 = add i8 %151, 1
store i8 %152, ptr %8, align 1
br label %85, !llvm.loop !10
153: ; preds = %148, %85
br label %154
154: ; preds = %153, %83
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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp31lwvwav.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bubble32(ptr noundef %0, i8 noundef zeroext %1, i8 noundef zeroext %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca i8, align 1
%7 = alloca i32, align 4
%8 = alloca i8, align 1
%9 = alloca i8, align 1
%10 = alloca i8, align 1
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
store i8 %2, ptr %6, align 1
%11 = load i8, ptr %6, align 1
%12 = zext i8 %11 to i32
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %96
14: ; preds = %3
store i8 0, ptr %8, align 1
%15 = load i8, ptr %8, align 1
%16 = zext i8 %15 to i32
%17 = load i8, ptr %5, align 1
%18 = zext i8 %17 to i32
%19 = icmp slt i32 %16, %18
br i1 %19, label %.lr.ph8, label %.loopexit
.lr.ph8: ; preds = %14
br label %20
20: ; preds = %.lr.ph8, %87
store i8 1, ptr %10, align 1
store i8 0, ptr %9, align 1
%21 = load i8, ptr %9, align 1
%22 = zext i8 %21 to i32
%23 = load i8, ptr %5, align 1
%24 = zext i8 %23 to i32
%25 = sub nsw i32 %24, 1
%26 = load i8, ptr %8, align 1
%27 = zext i8 %26 to i32
%28 = sub nsw i32 %25, %27
%29 = icmp slt i32 %22, %28
br i1 %29, label %.lr.ph5, label %81
.lr.ph5: ; preds = %20
br label %30
30: ; preds = %.lr.ph5, %69
%31 = load ptr, ptr %4, align 8
%32 = load i8, ptr %9, align 1
%33 = zext i8 %32 to i64
%34 = getelementptr inbounds i32, ptr %31, i64 %33
%35 = load i32, ptr %34, align 4
%36 = load ptr, ptr %4, align 8
%37 = load i8, ptr %9, align 1
%38 = zext i8 %37 to i32
%39 = add nsw i32 %38, 1
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %36, i64 %40
%42 = load i32, ptr %41, align 4
%43 = icmp ugt i32 %35, %42
br i1 %43, label %44, label %68
44: ; preds = %30
store i8 0, ptr %10, align 1
%45 = load ptr, ptr %4, align 8
%46 = load i8, ptr %9, align 1
%47 = zext i8 %46 to i64
%48 = getelementptr inbounds i32, ptr %45, i64 %47
%49 = load i32, ptr %48, align 4
store i32 %49, ptr %7, align 4
%50 = load ptr, ptr %4, align 8
%51 = load i8, ptr %9, align 1
%52 = zext i8 %51 to i32
%53 = add nsw i32 %52, 1
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i32, ptr %50, i64 %54
%56 = load i32, ptr %55, align 4
%57 = load ptr, ptr %4, align 8
%58 = load i8, ptr %9, align 1
%59 = zext i8 %58 to i64
%60 = getelementptr inbounds i32, ptr %57, i64 %59
store i32 %56, ptr %60, align 4
%61 = load i32, ptr %7, align 4
%62 = load ptr, ptr %4, align 8
%63 = load i8, ptr %9, align 1
%64 = zext i8 %63 to i32
%65 = add nsw i32 %64, 1
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i32, ptr %62, i64 %66
store i32 %61, ptr %67, align 4
br label %68
68: ; preds = %44, %30
br label %69
69: ; preds = %68
%70 = load i8, ptr %9, align 1
%71 = add i8 %70, 1
store i8 %71, ptr %9, align 1
%72 = load i8, ptr %9, align 1
%73 = zext i8 %72 to i32
%74 = load i8, ptr %5, align 1
%75 = zext i8 %74 to i32
%76 = sub nsw i32 %75, 1
%77 = load i8, ptr %8, align 1
%78 = zext i8 %77 to i32
%79 = sub nsw i32 %76, %78
%80 = icmp slt i32 %73, %79
br i1 %80, label %30, label %._crit_edge6, !llvm.loop !6
._crit_edge6: ; preds = %69
br label %81
81: ; preds = %._crit_edge6, %20
%82 = load i8, ptr %10, align 1
%83 = zext i8 %82 to i32
%84 = icmp eq i32 %83, 1
br i1 %84, label %85, label %86
85: ; preds = %81
br label %95
86: ; preds = %81
br label %87
87: ; preds = %86
%88 = load i8, ptr %8, align 1
%89 = add i8 %88, 1
store i8 %89, ptr %8, align 1
%90 = load i8, ptr %8, align 1
%91 = zext i8 %90 to i32
%92 = load i8, ptr %5, align 1
%93 = zext i8 %92 to i32
%94 = icmp slt i32 %91, %93
br i1 %94, label %20, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %87
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %14
br label %95
95: ; preds = %.loopexit, %85
br label %178
96: ; preds = %3
store i8 0, ptr %8, align 1
%97 = load i8, ptr %8, align 1
%98 = zext i8 %97 to i32
%99 = load i8, ptr %5, align 1
%100 = zext i8 %99 to i32
%101 = icmp slt i32 %98, %100
br i1 %101, label %.lr.ph3, label %.loopexit1
.lr.ph3: ; preds = %96
br label %102
102: ; preds = %.lr.ph3, %169
store i8 1, ptr %10, align 1
store i8 0, ptr %9, align 1
%103 = load i8, ptr %9, align 1
%104 = zext i8 %103 to i32
%105 = load i8, ptr %5, align 1
%106 = zext i8 %105 to i32
%107 = sub nsw i32 %106, 1
%108 = load i8, ptr %8, align 1
%109 = zext i8 %108 to i32
%110 = sub nsw i32 %107, %109
%111 = icmp slt i32 %104, %110
br i1 %111, label %.lr.ph, label %163
.lr.ph: ; preds = %102
br label %112
112: ; preds = %.lr.ph, %151
%113 = load ptr, ptr %4, align 8
%114 = load i8, ptr %9, align 1
%115 = zext i8 %114 to i64
%116 = getelementptr inbounds i32, ptr %113, i64 %115
%117 = load i32, ptr %116, align 4
%118 = load ptr, ptr %4, align 8
%119 = load i8, ptr %9, align 1
%120 = zext i8 %119 to i32
%121 = add nsw i32 %120, 1
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds i32, ptr %118, i64 %122
%124 = load i32, ptr %123, align 4
%125 = icmp ult i32 %117, %124
br i1 %125, label %126, label %150
126: ; preds = %112
store i8 0, ptr %10, align 1
%127 = load ptr, ptr %4, align 8
%128 = load i8, ptr %9, align 1
%129 = zext i8 %128 to i64
%130 = getelementptr inbounds i32, ptr %127, i64 %129
%131 = load i32, ptr %130, align 4
store i32 %131, ptr %7, align 4
%132 = load ptr, ptr %4, align 8
%133 = load i8, ptr %9, align 1
%134 = zext i8 %133 to i32
%135 = add nsw i32 %134, 1
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds i32, ptr %132, i64 %136
%138 = load i32, ptr %137, align 4
%139 = load ptr, ptr %4, align 8
%140 = load i8, ptr %9, align 1
%141 = zext i8 %140 to i64
%142 = getelementptr inbounds i32, ptr %139, i64 %141
store i32 %138, ptr %142, align 4
%143 = load i32, ptr %7, align 4
%144 = load ptr, ptr %4, align 8
%145 = load i8, ptr %9, align 1
%146 = zext i8 %145 to i32
%147 = add nsw i32 %146, 1
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds i32, ptr %144, i64 %148
store i32 %143, ptr %149, align 4
br label %150
150: ; preds = %126, %112
br label %151
151: ; preds = %150
%152 = load i8, ptr %9, align 1
%153 = add i8 %152, 1
store i8 %153, ptr %9, align 1
%154 = load i8, ptr %9, align 1
%155 = zext i8 %154 to i32
%156 = load i8, ptr %5, align 1
%157 = zext i8 %156 to i32
%158 = sub nsw i32 %157, 1
%159 = load i8, ptr %8, align 1
%160 = zext i8 %159 to i32
%161 = sub nsw i32 %158, %160
%162 = icmp slt i32 %155, %161
br i1 %162, label %112, label %._crit_edge, !llvm.loop !9
._crit_edge: ; preds = %151
br label %163
163: ; preds = %._crit_edge, %102
%164 = load i8, ptr %10, align 1
%165 = zext i8 %164 to i32
%166 = icmp eq i32 %165, 1
br i1 %166, label %167, label %168
167: ; preds = %163
br label %177
168: ; preds = %163
br label %169
169: ; preds = %168
%170 = load i8, ptr %8, align 1
%171 = add i8 %170, 1
store i8 %171, ptr %8, align 1
%172 = load i8, ptr %8, align 1
%173 = zext i8 %172 to i32
%174 = load i8, ptr %5, align 1
%175 = zext i8 %174 to i32
%176 = icmp slt i32 %173, %175
br i1 %176, label %102, label %..loopexit1_crit_edge, !llvm.loop !10
..loopexit1_crit_edge: ; preds = %169
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %96
br label %177
177: ; preds = %.loopexit1, %167
br label %178
178: ; preds = %177, %95
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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmp4pxorkbx.c'
source_filename = "/tmp/tmp4pxorkbx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"Hello world from Aaron Rodriguez!\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"I learned that %d+%d=%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"The grade I am working for is : %c\0A\00", align 1
@.str.3 = private unnamed_addr constant [46 x i8] c"The temperature outside is barely %f degrees\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef 2, i32 noundef 2, i32 noundef 4)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 65)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef 3.200000e+01)
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/tmp4pxorkbx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"Hello world from Aaron Rodriguez!\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"I learned that %d+%d=%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"The grade I am working for is : %c\0A\00", align 1
@.str.3 = private unnamed_addr constant [46 x i8] c"The temperature outside is barely %f degrees\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef 2, i32 noundef 2, i32 noundef 4)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 65)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef 3.200000e+01)
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/tmp6oub7xig.c'
source_filename = "/tmp/tmp6oub7xig.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"sync\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"sync\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @do_sync() #0 {
%1 = call i64 (...) @sync()
%2 = icmp ne i64 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = call i32 @warn(ptr noundef @.str)
br label %5
5: ; preds = %3, %0
%6 = call i32 @printf(ptr noundef @.str.1)
ret void
}
declare i64 @sync(...) #1
declare i32 @warn(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6oub7xig.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"sync\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"sync\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @do_sync() #0 {
%1 = call i64 (...) @sync()
%2 = icmp ne i64 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = call i32 @warn(ptr noundef @.str)
br label %5
5: ; preds = %3, %0
%6 = call i32 @printf(ptr noundef @.str.1)
ret void
}
declare i64 @sync(...) #1
declare i32 @warn(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0yr23apa.c'
source_filename = "/tmp/tmp0yr23apa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @signal_deinit() #0 {
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/tmp0yr23apa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @signal_deinit() #0 {
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/tmp8d77g11r.c'
source_filename = "/tmp/tmp8d77g11r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getRow(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%7 = load i32, ptr %3, align 4
%8 = add nsw i32 %7, 1
%9 = load ptr, ptr %4, align 8
store i32 %8, ptr %9, align 4
%10 = sext i32 %8 to i64
%11 = mul i64 %10, 4
%12 = trunc i64 %11 to i32
%13 = call i64 @malloc(i32 noundef %12)
%14 = inttoptr i64 %13 to ptr
store ptr %14, ptr %5, align 8
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds i32, ptr %15, i64 0
store i32 1, ptr %16, align 4
store i32 1, ptr %6, align 4
br label %17
17: ; preds = %42, %2
%18 = load i32, ptr %6, align 4
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %19, align 4
%21 = icmp slt i32 %18, %20
br i1 %21, label %22, label %45
22: ; preds = %17
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %6, align 4
%25 = sub nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %23, i64 %26
%28 = load i32, ptr %27, align 4
%29 = sext i32 %28 to i64
%30 = load i32, ptr %3, align 4
%31 = add nsw i32 %30, -1
store i32 %31, ptr %3, align 4
%32 = sext i32 %30 to i64
%33 = mul nsw i64 %29, %32
%34 = load i32, ptr %6, align 4
%35 = sext i32 %34 to i64
%36 = sdiv i64 %33, %35
%37 = trunc i64 %36 to i32
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr %6, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %38, i64 %40
store i32 %37, ptr %41, align 4
br label %42
42: ; preds = %22
%43 = load i32, ptr %6, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %6, align 4
br label %17, !llvm.loop !6
45: ; preds = %17
%46 = load ptr, ptr %5, align 8
ret ptr %46
}
declare i64 @malloc(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/tmp8d77g11r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getRow(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%7 = load i32, ptr %3, align 4
%8 = add nsw i32 %7, 1
%9 = load ptr, ptr %4, align 8
store i32 %8, ptr %9, align 4
%10 = sext i32 %8 to i64
%11 = mul i64 %10, 4
%12 = trunc i64 %11 to i32
%13 = call i64 @malloc(i32 noundef %12)
%14 = inttoptr i64 %13 to ptr
store ptr %14, ptr %5, align 8
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds i32, ptr %15, i64 0
store i32 1, ptr %16, align 4
store i32 1, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = load ptr, ptr %4, align 8
%19 = load i32, ptr %18, align 4
%20 = icmp slt i32 %17, %19
br i1 %20, label %.lr.ph, label %48
.lr.ph: ; preds = %2
br label %21
21: ; preds = %.lr.ph, %41
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %6, align 4
%24 = sub nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %22, i64 %25
%27 = load i32, ptr %26, align 4
%28 = sext i32 %27 to i64
%29 = load i32, ptr %3, align 4
%30 = add nsw i32 %29, -1
store i32 %30, ptr %3, align 4
%31 = sext i32 %29 to i64
%32 = mul nsw i64 %28, %31
%33 = load i32, ptr %6, align 4
%34 = sext i32 %33 to i64
%35 = sdiv i64 %32, %34
%36 = trunc i64 %35 to i32
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %6, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i32, ptr %37, i64 %39
store i32 %36, ptr %40, align 4
br label %41
41: ; preds = %21
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
%44 = load i32, ptr %6, align 4
%45 = load ptr, ptr %4, align 8
%46 = load i32, ptr %45, align 4
%47 = icmp slt i32 %44, %46
br i1 %47, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %41
br label %48
48: ; preds = %._crit_edge, %2
%49 = load ptr, ptr %5, align 8
ret ptr %49
}
declare i64 @malloc(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/tmpn7jamncj.c'
source_filename = "/tmp/tmpn7jamncj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @soar_ecWatchLevel(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 sgt i32 %4, 5
br i1 %5, label %9, label %6
6: ; preds = %1
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %6, %1
store i32 -1, ptr %2, align 4
br label %42
10: ; preds = %6
%11 = call i32 @set_sysparam(i32 noundef 1, i32 noundef 0)
%12 = call i32 @set_sysparam(i32 noundef 2, i32 noundef 0)
%13 = call i32 @set_sysparam(i32 noundef 4, i32 noundef 0)
%14 = call i32 @set_sysparam(i32 noundef 3, i32 noundef 0)
%15 = call i32 @set_sysparam(i32 noundef 5, i32 noundef 0)
%16 = call i32 @set_sysparam(i32 noundef 6, i32 noundef 0)
%17 = call i32 @set_sysparam(i32 noundef 9, i32 noundef 0)
%18 = call i32 @set_sysparam(i32 noundef 8, i32 noundef 0)
%19 = call i32 @set_sysparam(i32 noundef 28, i32 noundef 0)
%20 = load i32, ptr %3, align 4
switch i32 %20, label %41 [
i32 0, label %21
i32 5, label %28
i32 4, label %30
i32 3, label %32
i32 2, label %37
i32 1, label %39
]
21: ; preds = %10
%22 = call i32 @set_sysparam(i32 noundef 7, i32 noundef 1)
%23 = call i32 @set_sysparam(i32 noundef 10, i32 noundef 0)
%24 = call i32 @set_sysparam(i32 noundef 11, i32 noundef 0)
%25 = call i32 @set_sysparam(i32 noundef 12, i32 noundef 0)
%26 = call i32 @set_sysparam(i32 noundef 13, i32 noundef 0)
%27 = call i32 @set_sysparam(i32 noundef 28, i32 noundef 0)
br label %41
28: ; preds = %10
%29 = call i32 @set_sysparam(i32 noundef 8, i32 noundef 1)
br label %30
30: ; preds = %10, %28
%31 = call i32 @set_sysparam(i32 noundef 9, i32 noundef 1)
br label %32
32: ; preds = %10, %30
%33 = call i32 @set_sysparam(i32 noundef 4, i32 noundef 1)
%34 = call i32 @set_sysparam(i32 noundef 3, i32 noundef 1)
%35 = call i32 @set_sysparam(i32 noundef 5, i32 noundef 1)
%36 = call i32 @set_sysparam(i32 noundef 6, i32 noundef 1)
br label %37
37: ; preds = %10, %32
%38 = call i32 @set_sysparam(i32 noundef 2, i32 noundef 1)
br label %39
39: ; preds = %10, %37
%40 = call i32 @set_sysparam(i32 noundef 1, i32 noundef 1)
br label %41
41: ; preds = %39, %10, %21
store i32 0, ptr %2, align 4
br label %42
42: ; preds = %41, %9
%43 = load i32, ptr %2, align 4
ret i32 %43
}
declare i32 @set_sysparam(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/tmpn7jamncj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @soar_ecWatchLevel(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 sgt i32 %4, 5
br i1 %5, label %9, label %6
6: ; preds = %1
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %6, %1
store i32 -1, ptr %2, align 4
br label %42
10: ; preds = %6
%11 = call i32 @set_sysparam(i32 noundef 1, i32 noundef 0)
%12 = call i32 @set_sysparam(i32 noundef 2, i32 noundef 0)
%13 = call i32 @set_sysparam(i32 noundef 4, i32 noundef 0)
%14 = call i32 @set_sysparam(i32 noundef 3, i32 noundef 0)
%15 = call i32 @set_sysparam(i32 noundef 5, i32 noundef 0)
%16 = call i32 @set_sysparam(i32 noundef 6, i32 noundef 0)
%17 = call i32 @set_sysparam(i32 noundef 9, i32 noundef 0)
%18 = call i32 @set_sysparam(i32 noundef 8, i32 noundef 0)
%19 = call i32 @set_sysparam(i32 noundef 28, i32 noundef 0)
%20 = load i32, ptr %3, align 4
switch i32 %20, label %41 [
i32 0, label %21
i32 5, label %28
i32 4, label %30
i32 3, label %32
i32 2, label %37
i32 1, label %39
]
21: ; preds = %10
%22 = call i32 @set_sysparam(i32 noundef 7, i32 noundef 1)
%23 = call i32 @set_sysparam(i32 noundef 10, i32 noundef 0)
%24 = call i32 @set_sysparam(i32 noundef 11, i32 noundef 0)
%25 = call i32 @set_sysparam(i32 noundef 12, i32 noundef 0)
%26 = call i32 @set_sysparam(i32 noundef 13, i32 noundef 0)
%27 = call i32 @set_sysparam(i32 noundef 28, i32 noundef 0)
br label %41
28: ; preds = %10
%29 = call i32 @set_sysparam(i32 noundef 8, i32 noundef 1)
br label %30
30: ; preds = %28, %10
%31 = call i32 @set_sysparam(i32 noundef 9, i32 noundef 1)
br label %32
32: ; preds = %30, %10
%33 = call i32 @set_sysparam(i32 noundef 4, i32 noundef 1)
%34 = call i32 @set_sysparam(i32 noundef 3, i32 noundef 1)
%35 = call i32 @set_sysparam(i32 noundef 5, i32 noundef 1)
%36 = call i32 @set_sysparam(i32 noundef 6, i32 noundef 1)
br label %37
37: ; preds = %32, %10
%38 = call i32 @set_sysparam(i32 noundef 2, i32 noundef 1)
br label %39
39: ; preds = %37, %10
%40 = call i32 @set_sysparam(i32 noundef 1, i32 noundef 1)
br label %41
41: ; preds = %39, %21, %10
store i32 0, ptr %2, align 4
br label %42
42: ; preds = %41, %9
%43 = load i32, ptr %2, align 4
ret i32 %43
}
declare i32 @set_sysparam(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/tmpvee6qfx8.c'
source_filename = "/tmp/tmpvee6qfx8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ft_chardup(i8 noundef zeroext %0) #0 {
%2 = alloca i8, align 1
%3 = alloca ptr, align 8
store i8 %0, ptr %2, align 1
%4 = call ptr @ft_memalloc(i32 noundef 3)
store ptr %4, ptr %3, align 8
%5 = load i8, ptr %2, align 1
%6 = load ptr, ptr %3, align 8
store i8 %5, ptr %6, align 1
%7 = load ptr, ptr %3, align 8
%8 = getelementptr inbounds i8, ptr %7, i64 1
store i8 0, ptr %8, align 1
%9 = load ptr, ptr %3, align 8
ret ptr %9
}
declare ptr @ft_memalloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvee6qfx8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ft_chardup(i8 noundef zeroext %0) #0 {
%2 = alloca i8, align 1
%3 = alloca ptr, align 8
store i8 %0, ptr %2, align 1
%4 = call ptr @ft_memalloc(i32 noundef 3)
store ptr %4, ptr %3, align 8
%5 = load i8, ptr %2, align 1
%6 = load ptr, ptr %3, align 8
store i8 %5, ptr %6, align 1
%7 = load ptr, ptr %3, align 8
%8 = getelementptr inbounds i8, ptr %7, i64 1
store i8 0, ptr %8, align 1
%9 = load ptr, ptr %3, align 8
ret ptr %9
}
declare ptr @ft_memalloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptgkj51mg.c'
source_filename = "/tmp/tmptgkj51mg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"i = %ld\0A\00", align 1
@CLOCKS_PER_SEC = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [15 x i8] c"elapsed = %lf\0A\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 double, align 8
%5 = alloca i64, align 8
store i32 0, ptr %1, align 4
%6 = call i64 (...) @clock()
store i64 %6, ptr %2, align 8
store i64 0, ptr %5, align 8
br label %7
7: ; preds = %14, %0
%8 = load i64, ptr %5, align 8
%9 = icmp ne i64 %8, 1000000
br i1 %9, label %10, label %17
10: ; preds = %7
%11 = load i64, ptr %5, align 8
%12 = sitofp i64 %11 to double
%13 = call i32 @printf(ptr noundef @.str, double noundef %12)
br label %14
14: ; preds = %10
%15 = load i64, ptr %5, align 8
%16 = add nsw i64 %15, 1
store i64 %16, ptr %5, align 8
br label %7, !llvm.loop !6
17: ; preds = %7
%18 = load i64, ptr %5, align 8
%19 = sitofp i64 %18 to double
%20 = call i32 @printf(ptr noundef @.str, double noundef %19)
%21 = call i64 (...) @clock()
store i64 %21, ptr %3, align 8
%22 = load i64, ptr %3, align 8
%23 = load i64, ptr %2, align 8
%24 = sub nsw i64 %22, %23
%25 = sitofp i64 %24 to double
%26 = load i64, ptr @CLOCKS_PER_SEC, align 8
%27 = sitofp i64 %26 to double
%28 = fdiv double %25, %27
store double %28, ptr %4, align 8
%29 = load double, ptr %4, align 8
%30 = call i32 @printf(ptr noundef @.str.1, double noundef %29)
ret i32 0
}
declare i64 @clock(...) #1
declare i32 @printf(ptr noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptgkj51mg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"i = %ld\0A\00", align 1
@CLOCKS_PER_SEC = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [15 x i8] c"elapsed = %lf\0A\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 double, align 8
%5 = alloca i64, align 8
store i32 0, ptr %1, align 4
%6 = call i64 (...) @clock()
store i64 %6, ptr %2, align 8
store i64 0, ptr %5, align 8
%7 = load i64, ptr %5, align 8
%8 = icmp ne i64 %7, 1000000
br i1 %8, label %.lr.ph, label %18
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %13
%10 = load i64, ptr %5, align 8
%11 = sitofp i64 %10 to double
%12 = call i32 @printf(ptr noundef @.str, double noundef %11)
br label %13
13: ; preds = %9
%14 = load i64, ptr %5, align 8
%15 = add nsw i64 %14, 1
store i64 %15, ptr %5, align 8
%16 = load i64, ptr %5, align 8
%17 = icmp ne i64 %16, 1000000
br i1 %17, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %18
18: ; preds = %._crit_edge, %0
%19 = load i64, ptr %5, align 8
%20 = sitofp i64 %19 to double
%21 = call i32 @printf(ptr noundef @.str, double noundef %20)
%22 = call i64 (...) @clock()
store i64 %22, ptr %3, align 8
%23 = load i64, ptr %3, align 8
%24 = load i64, ptr %2, align 8
%25 = sub nsw i64 %23, %24
%26 = sitofp i64 %25 to double
%27 = load i64, ptr @CLOCKS_PER_SEC, align 8
%28 = sitofp i64 %27 to double
%29 = fdiv double %26, %28
store double %29, ptr %4, align 8
%30 = load double, ptr %4, align 8
%31 = call i32 @printf(ptr noundef @.str.1, double noundef %30)
ret i32 0
}
declare i64 @clock(...) #1
declare i32 @printf(ptr noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpmlooimkv.c'
source_filename = "/tmp/tmpmlooimkv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
store i32 0, ptr %1, align 4
%2 = call i32 (...) @ViewSpeak()
ret i32 0
}
declare i32 @ViewSpeak(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmlooimkv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
store i32 0, ptr %1, align 4
%2 = call i32 (...) @ViewSpeak()
ret i32 0
}
declare i32 @ViewSpeak(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpihm8r6gg.c'
source_filename = "/tmp/tmpihm8r6gg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_valid_email(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpihm8r6gg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_valid_email(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8hl53e8w.c'
source_filename = "/tmp/tmp8hl53e8w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"Enter two distinct ints\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%ld%ld\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"The larger of %ld and %ld is %ld\0A\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
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3)
%7 = load i64, ptr %2, align 8
%8 = load i64, ptr %3, align 8
%9 = call i64 @Larger(i64 noundef %7, i64 noundef %8)
store i64 %9, ptr %4, align 8
%10 = load i64, ptr %2, align 8
%11 = load i64, ptr %3, align 8
%12 = load i64, ptr %4, align 8
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %10, i64 noundef %11, i64 noundef %12)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @Larger(i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8hl53e8w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"Enter two distinct ints\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%ld%ld\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"The larger of %ld and %ld is %ld\0A\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
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3)
%7 = load i64, ptr %2, align 8
%8 = load i64, ptr %3, align 8
%9 = call i64 @Larger(i64 noundef %7, i64 noundef %8)
store i64 %9, ptr %4, align 8
%10 = load i64, ptr %2, align 8
%11 = load i64, ptr %3, align 8
%12 = load i64, ptr %4, align 8
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %10, i64 noundef %11, i64 noundef %12)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @Larger(i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp05ur3qlx.c'
source_filename = "/tmp/tmp05ur3qlx.c"
target datalayout = "e-m:e-p270: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/tmp05ur3qlx.c"
target datalayout = "e-m:e-p270: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/tmpz4vccogq.c'
source_filename = "/tmp/tmpz4vccogq.c"
target datalayout = "e-m:e-p270: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/tmpz4vccogq.c"
target datalayout = "e-m:e-p270: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/tmpmcye22i8.c'
source_filename = "/tmp/tmpmcye22i8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @quicksort_iterative(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca [64 x i32], align 16
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 -1, ptr %6, align 4
store i32 0, ptr %7, align 4
%10 = load i32, ptr %4, align 4
%11 = sub nsw i32 %10, 1
store i32 %11, ptr %8, align 4
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %6, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %6, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [64 x i32], ptr %5, i64 0, i64 %15
store i32 %12, ptr %16, align 4
%17 = load i32, ptr %8, align 4
%18 = load i32, ptr %6, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %6, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [64 x i32], ptr %5, i64 0, i64 %20
store i32 %17, ptr %21, align 4
br label %22
22: ; preds = %73, %2
%23 = load i32, ptr %6, align 4
%24 = icmp sge i32 %23, 0
br i1 %24, label %25, label %74
25: ; preds = %22
%26 = load i32, ptr %6, align 4
%27 = add nsw i32 %26, -1
store i32 %27, ptr %6, align 4
%28 = sext i32 %26 to i64
%29 = getelementptr inbounds [64 x i32], ptr %5, i64 0, i64 %28
%30 = load i32, ptr %29, align 4
store i32 %30, ptr %8, align 4
%31 = load i32, ptr %6, align 4
%32 = add nsw i32 %31, -1
store i32 %32, ptr %6, align 4
%33 = sext i32 %31 to i64
%34 = getelementptr inbounds [64 x i32], ptr %5, i64 0, i64 %33
%35 = load i32, ptr %34, align 4
store i32 %35, ptr %7, align 4
%36 = load ptr, ptr %3, align 8
%37 = load i32, ptr %7, align 4
%38 = load i32, ptr %8, align 4
%39 = call i32 @partition2(ptr noundef %36, i32 noundef %37, i32 noundef %38)
store i32 %39, ptr %9, align 4
%40 = load i32, ptr %7, align 4
%41 = load i32, ptr %9, align 4
%42 = sub nsw i32 %41, 1
%43 = icmp slt i32 %40, %42
br i1 %43, label %44, label %56
44: ; preds = %25
%45 = load i32, ptr %7, align 4
%46 = load i32, ptr %6, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %6, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [64 x i32], ptr %5, i64 0, i64 %48
store i32 %45, ptr %49, align 4
%50 = load i32, ptr %9, align 4
%51 = sub nsw i32 %50, 1
%52 = load i32, ptr %6, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %6, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [64 x i32], ptr %5, i64 0, i64 %54
store i32 %51, ptr %55, align 4
br label %56
56: ; preds = %44, %25
%57 = load i32, ptr %9, align 4
%58 = add nsw i32 %57, 1
%59 = load i32, ptr %8, align 4
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %73
61: ; preds = %56
%62 = load i32, ptr %9, align 4
%63 = add nsw i32 %62, 1
%64 = load i32, ptr %6, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %6, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [64 x i32], ptr %5, i64 0, i64 %66
store i32 %63, ptr %67, align 4
%68 = load i32, ptr %8, align 4
%69 = load i32, ptr %6, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %6, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [64 x i32], ptr %5, i64 0, i64 %71
store i32 %68, ptr %72, align 4
br label %73
73: ; preds = %61, %56
br label %22, !llvm.loop !6
74: ; preds = %22
ret void
}
declare i32 @partition2(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmcye22i8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @quicksort_iterative(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca [64 x i32], align 16
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 -1, ptr %6, align 4
store i32 0, ptr %7, align 4
%10 = load i32, ptr %4, align 4
%11 = sub nsw i32 %10, 1
store i32 %11, ptr %8, align 4
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %6, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %6, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [64 x i32], ptr %5, i64 0, i64 %15
store i32 %12, ptr %16, align 4
%17 = load i32, ptr %8, align 4
%18 = load i32, ptr %6, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %6, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [64 x i32], ptr %5, i64 0, i64 %20
store i32 %17, ptr %21, align 4
%22 = load i32, ptr %6, align 4
%23 = icmp sge i32 %22, 0
br i1 %23, label %.lr.ph, label %75
.lr.ph: ; preds = %2
br label %24
24: ; preds = %.lr.ph, %72
%25 = load i32, ptr %6, align 4
%26 = add nsw i32 %25, -1
store i32 %26, ptr %6, align 4
%27 = sext i32 %25 to i64
%28 = getelementptr inbounds [64 x i32], ptr %5, i64 0, i64 %27
%29 = load i32, ptr %28, align 4
store i32 %29, ptr %8, align 4
%30 = load i32, ptr %6, align 4
%31 = add nsw i32 %30, -1
store i32 %31, ptr %6, align 4
%32 = sext i32 %30 to i64
%33 = getelementptr inbounds [64 x i32], ptr %5, i64 0, i64 %32
%34 = load i32, ptr %33, align 4
store i32 %34, ptr %7, align 4
%35 = load ptr, ptr %3, align 8
%36 = load i32, ptr %7, align 4
%37 = load i32, ptr %8, align 4
%38 = call i32 @partition2(ptr noundef %35, i32 noundef %36, i32 noundef %37)
store i32 %38, ptr %9, align 4
%39 = load i32, ptr %7, align 4
%40 = load i32, ptr %9, align 4
%41 = sub nsw i32 %40, 1
%42 = icmp slt i32 %39, %41
br i1 %42, label %43, label %55
43: ; preds = %24
%44 = load i32, ptr %7, align 4
%45 = load i32, ptr %6, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %6, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [64 x i32], ptr %5, i64 0, i64 %47
store i32 %44, ptr %48, align 4
%49 = load i32, ptr %9, align 4
%50 = sub nsw i32 %49, 1
%51 = load i32, ptr %6, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %6, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [64 x i32], ptr %5, i64 0, i64 %53
store i32 %50, ptr %54, align 4
br label %55
55: ; preds = %43, %24
%56 = load i32, ptr %9, align 4
%57 = add nsw i32 %56, 1
%58 = load i32, ptr %8, align 4
%59 = icmp slt i32 %57, %58
br i1 %59, label %60, label %72
60: ; preds = %55
%61 = load i32, ptr %9, align 4
%62 = add nsw i32 %61, 1
%63 = load i32, ptr %6, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %6, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [64 x i32], ptr %5, i64 0, i64 %65
store i32 %62, ptr %66, align 4
%67 = load i32, ptr %8, align 4
%68 = load i32, ptr %6, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %6, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [64 x i32], ptr %5, i64 0, i64 %70
store i32 %67, ptr %71, align 4
br label %72
72: ; preds = %60, %55
%73 = load i32, ptr %6, align 4
%74 = icmp sge i32 %73, 0
br i1 %74, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %72
br label %75
75: ; preds = %._crit_edge, %2
ret void
}
declare i32 @partition2(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpunqq7vcd.c'
source_filename = "/tmp/tmpunqq7vcd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @starts_case_with(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = call i64 @strncasecmp(ptr noundef %5, ptr noundef %6, i32 noundef %8)
%10 = icmp eq i64 %9, 0
%11 = zext i1 %10 to i32
ret i32 %11
}
declare i64 @strncasecmp(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/tmpunqq7vcd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @starts_case_with(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = call i64 @strncasecmp(ptr noundef %5, ptr noundef %6, i32 noundef %8)
%10 = icmp eq i64 %9, 0
%11 = zext i1 %10 to i32
ret i32 %11
}
declare i64 @strncasecmp(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/tmp98ur22ch.c'
source_filename = "/tmp/tmp98ur22ch.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FPURoundingModeSet(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load volatile i32, ptr inttoptr (i64 3758157628 to ptr), align 4
%4 = and i32 %3, -12582913
%5 = load i32, ptr %2, align 4
%6 = or i32 %4, %5
store volatile i32 %6, ptr inttoptr (i64 3758157628 to ptr), 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/tmp98ur22ch.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FPURoundingModeSet(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load volatile i32, ptr inttoptr (i64 3758157628 to ptr), align 4
%4 = and i32 %3, -12582913
%5 = load i32, ptr %2, align 4
%6 = or i32 %4, %5
store volatile i32 %6, ptr inttoptr (i64 3758157628 to ptr), 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/tmpjj66_5gp.c'
source_filename = "/tmp/tmpjj66_5gp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @al_string_startswith(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %5, align 8
%8 = call i64 @strlen(ptr noundef %7)
store i64 %8, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i64 @strlen(ptr noundef %9)
%11 = load i64, ptr %6, align 8
%12 = icmp ult i64 %10, %11
br i1 %12, label %13, label %14
13: ; preds = %2
store i32 0, ptr %3, align 4
br label %21
14: ; preds = %2
%15 = load ptr, ptr %4, align 8
%16 = load ptr, ptr %5, align 8
%17 = load i64, ptr %6, align 8
%18 = call i64 @strncmp(ptr noundef %15, ptr noundef %16, i64 noundef %17)
%19 = icmp eq i64 %18, 0
%20 = zext i1 %19 to i32
store i32 %20, ptr %3, align 4
br label %21
21: ; preds = %14, %13
%22 = load i32, ptr %3, align 4
ret i32 %22
}
declare i64 @strlen(ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjj66_5gp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @al_string_startswith(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %5, align 8
%8 = call i64 @strlen(ptr noundef %7)
store i64 %8, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i64 @strlen(ptr noundef %9)
%11 = load i64, ptr %6, align 8
%12 = icmp ult i64 %10, %11
br i1 %12, label %13, label %14
13: ; preds = %2
store i32 0, ptr %3, align 4
br label %21
14: ; preds = %2
%15 = load ptr, ptr %4, align 8
%16 = load ptr, ptr %5, align 8
%17 = load i64, ptr %6, align 8
%18 = call i64 @strncmp(ptr noundef %15, ptr noundef %16, i64 noundef %17)
%19 = icmp eq i64 %18, 0
%20 = zext i1 %19 to i32
store i32 %20, ptr %3, align 4
br label %21
21: ; preds = %14, %13
%22 = load i32, ptr %3, align 4
ret i32 %22
}
declare i64 @strlen(ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpetyaq6vz.c'
source_filename = "/tmp/tmpetyaq6vz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Enter thresholds for A, B, C, D\0A\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"in that order, decreasing percentages > \00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"%f %f %f %f\00", align 1
@.str.3 = private unnamed_addr constant [47 x i8] c"Thank you. Now enter student score (percent) >\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"Student has an A grade\0A\00", align 1
@.str.6 = private unnamed_addr constant [24 x i8] c"Student has an B grade\0A\00", align 1
@.str.7 = private unnamed_addr constant [24 x i8] c"Student has an C grade\0A\00", align 1
@.str.8 = private unnamed_addr constant [24 x i8] c"Student has an D grade\0A\00", align 1
@.str.9 = private unnamed_addr constant [31 x i8] c"Student has failed the course\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
store i32 0, ptr %1, align 4
%7 = call i32 @printf(ptr noundef @.str)
%8 = call i32 @printf(ptr noundef @.str.1)
%9 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%10 = call i32 @printf(ptr noundef @.str.3)
%11 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.4, ptr noundef %6)
%12 = load float, ptr %6, align 4
%13 = load float, ptr %2, align 4
%14 = fcmp oge float %12, %13
br i1 %14, label %15, label %17
15: ; preds = %0
%16 = call i32 @printf(ptr noundef @.str.5)
store i32 0, ptr %1, align 4
br label %53
17: ; preds = %0
%18 = load float, ptr %6, align 4
%19 = load float, ptr %2, align 4
%20 = fcmp olt float %18, %19
br i1 %20, label %21, label %27
21: ; preds = %17
%22 = load float, ptr %6, align 4
%23 = load float, ptr %3, align 4
%24 = fcmp oge float %22, %23
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = call i32 @printf(ptr noundef @.str.6)
store i32 0, ptr %1, align 4
br label %53
27: ; preds = %21, %17
%28 = load float, ptr %6, align 4
%29 = load float, ptr %3, align 4
%30 = fcmp olt float %28, %29
br i1 %30, label %31, label %37
31: ; preds = %27
%32 = load float, ptr %6, align 4
%33 = load float, ptr %5, align 4
%34 = fcmp oge float %32, %33
br i1 %34, label %35, label %37
35: ; preds = %31
%36 = call i32 @printf(ptr noundef @.str.7)
store i32 0, ptr %1, align 4
br label %53
37: ; preds = %31, %27
%38 = load float, ptr %6, align 4
%39 = load float, ptr %4, align 4
%40 = fcmp olt float %38, %39
br i1 %40, label %41, label %47
41: ; preds = %37
%42 = load float, ptr %6, align 4
%43 = load float, ptr %5, align 4
%44 = fcmp oge float %42, %43
br i1 %44, label %45, label %47
45: ; preds = %41
%46 = call i32 @printf(ptr noundef @.str.8)
store i32 0, ptr %1, align 4
br label %53
47: ; preds = %41, %37
%48 = call i32 @printf(ptr noundef @.str.9)
br label %49
49: ; preds = %47
br label %50
50: ; preds = %49
br label %51
51: ; preds = %50
br label %52
52: ; preds = %51
store i32 0, ptr %1, align 4
br label %53
53: ; preds = %52, %45, %35, %25, %15
%54 = load i32, ptr %1, align 4
ret i32 %54
}
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/tmpetyaq6vz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Enter thresholds for A, B, C, D\0A\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"in that order, decreasing percentages > \00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"%f %f %f %f\00", align 1
@.str.3 = private unnamed_addr constant [47 x i8] c"Thank you. Now enter student score (percent) >\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"Student has an A grade\0A\00", align 1
@.str.6 = private unnamed_addr constant [24 x i8] c"Student has an B grade\0A\00", align 1
@.str.7 = private unnamed_addr constant [24 x i8] c"Student has an C grade\0A\00", align 1
@.str.8 = private unnamed_addr constant [24 x i8] c"Student has an D grade\0A\00", align 1
@.str.9 = private unnamed_addr constant [31 x i8] c"Student has failed the course\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
store i32 0, ptr %1, align 4
%7 = call i32 @printf(ptr noundef @.str)
%8 = call i32 @printf(ptr noundef @.str.1)
%9 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%10 = call i32 @printf(ptr noundef @.str.3)
%11 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.4, ptr noundef %6)
%12 = load float, ptr %6, align 4
%13 = load float, ptr %2, align 4
%14 = fcmp oge float %12, %13
br i1 %14, label %15, label %17
15: ; preds = %0
%16 = call i32 @printf(ptr noundef @.str.5)
store i32 0, ptr %1, align 4
br label %53
17: ; preds = %0
%18 = load float, ptr %6, align 4
%19 = load float, ptr %2, align 4
%20 = fcmp olt float %18, %19
br i1 %20, label %21, label %27
21: ; preds = %17
%22 = load float, ptr %6, align 4
%23 = load float, ptr %3, align 4
%24 = fcmp oge float %22, %23
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = call i32 @printf(ptr noundef @.str.6)
store i32 0, ptr %1, align 4
br label %53
27: ; preds = %21, %17
%28 = load float, ptr %6, align 4
%29 = load float, ptr %3, align 4
%30 = fcmp olt float %28, %29
br i1 %30, label %31, label %37
31: ; preds = %27
%32 = load float, ptr %6, align 4
%33 = load float, ptr %5, align 4
%34 = fcmp oge float %32, %33
br i1 %34, label %35, label %37
35: ; preds = %31
%36 = call i32 @printf(ptr noundef @.str.7)
store i32 0, ptr %1, align 4
br label %53
37: ; preds = %31, %27
%38 = load float, ptr %6, align 4
%39 = load float, ptr %4, align 4
%40 = fcmp olt float %38, %39
br i1 %40, label %41, label %47
41: ; preds = %37
%42 = load float, ptr %6, align 4
%43 = load float, ptr %5, align 4
%44 = fcmp oge float %42, %43
br i1 %44, label %45, label %47
45: ; preds = %41
%46 = call i32 @printf(ptr noundef @.str.8)
store i32 0, ptr %1, align 4
br label %53
47: ; preds = %41, %37
%48 = call i32 @printf(ptr noundef @.str.9)
br label %49
49: ; preds = %47
br label %50
50: ; preds = %49
br label %51
51: ; preds = %50
br label %52
52: ; preds = %51
store i32 0, ptr %1, align 4
br label %53
53: ; preds = %52, %45, %35, %25, %15
%54 = load i32, ptr %1, align 4
ret i32 %54
}
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/tmph_8ejdiq.c'
source_filename = "/tmp/tmph_8ejdiq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
store i32 0, ptr %1, align 4
%2 = call i32 (...) @print_status()
ret i32 0
}
declare i32 @print_status(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmph_8ejdiq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
store i32 0, ptr %1, align 4
%2 = call i32 (...) @print_status()
ret i32 0
}
declare i32 @print_status(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdxjk0mue.c'
source_filename = "/tmp/tmpdxjk0mue.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @zfeast_hcsrgv(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18) #0 {
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca ptr, align 8
%24 = alloca ptr, align 8
%25 = alloca ptr, align 8
%26 = alloca ptr, align 8
%27 = alloca ptr, align 8
%28 = alloca ptr, align 8
%29 = alloca ptr, align 8
%30 = alloca ptr, align 8
%31 = alloca ptr, align 8
%32 = alloca ptr, align 8
%33 = alloca ptr, align 8
%34 = alloca ptr, align 8
%35 = alloca ptr, align 8
%36 = alloca ptr, align 8
%37 = alloca ptr, align 8
%38 = alloca ptr, align 8
store ptr %0, ptr %20, align 8
store ptr %1, ptr %21, align 8
store ptr %2, ptr %22, align 8
store ptr %3, ptr %23, align 8
store ptr %4, ptr %24, align 8
store ptr %5, ptr %25, align 8
store ptr %6, ptr %26, align 8
store ptr %7, ptr %27, align 8
store ptr %8, ptr %28, align 8
store ptr %9, ptr %29, align 8
store ptr %10, ptr %30, align 8
store ptr %11, ptr %31, align 8
store ptr %12, ptr %32, align 8
store ptr %13, ptr %33, align 8
store ptr %14, ptr %34, align 8
store ptr %15, ptr %35, align 8
store ptr %16, ptr %36, align 8
store ptr %17, ptr %37, align 8
store ptr %18, ptr %38, align 8
%39 = load ptr, ptr %20, align 8
%40 = load ptr, ptr %21, align 8
%41 = load ptr, ptr %22, align 8
%42 = load ptr, ptr %23, align 8
%43 = load ptr, ptr %24, align 8
%44 = load ptr, ptr %25, align 8
%45 = load ptr, ptr %26, align 8
%46 = load ptr, ptr %27, align 8
%47 = load ptr, ptr %28, align 8
%48 = load ptr, ptr %29, align 8
%49 = load ptr, ptr %30, align 8
%50 = load ptr, ptr %31, align 8
%51 = load ptr, ptr %32, align 8
%52 = load ptr, ptr %33, align 8
%53 = load ptr, ptr %34, align 8
%54 = load ptr, ptr %35, align 8
%55 = load ptr, ptr %36, align 8
%56 = load ptr, ptr %37, align 8
%57 = load ptr, ptr %38, align 8
%58 = call i32 @zfeast_hcsrgv_(ptr noundef %39, ptr noundef %40, ptr noundef %41, ptr noundef %42, ptr noundef %43, ptr noundef %44, ptr noundef %45, ptr noundef %46, ptr noundef %47, ptr noundef %48, ptr noundef %49, ptr noundef %50, ptr noundef %51, ptr noundef %52, ptr noundef %53, ptr noundef %54, ptr noundef %55, ptr noundef %56, ptr noundef %57)
ret void
}
declare i32 @zfeast_hcsrgv_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdxjk0mue.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @zfeast_hcsrgv(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18) #0 {
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca ptr, align 8
%24 = alloca ptr, align 8
%25 = alloca ptr, align 8
%26 = alloca ptr, align 8
%27 = alloca ptr, align 8
%28 = alloca ptr, align 8
%29 = alloca ptr, align 8
%30 = alloca ptr, align 8
%31 = alloca ptr, align 8
%32 = alloca ptr, align 8
%33 = alloca ptr, align 8
%34 = alloca ptr, align 8
%35 = alloca ptr, align 8
%36 = alloca ptr, align 8
%37 = alloca ptr, align 8
%38 = alloca ptr, align 8
store ptr %0, ptr %20, align 8
store ptr %1, ptr %21, align 8
store ptr %2, ptr %22, align 8
store ptr %3, ptr %23, align 8
store ptr %4, ptr %24, align 8
store ptr %5, ptr %25, align 8
store ptr %6, ptr %26, align 8
store ptr %7, ptr %27, align 8
store ptr %8, ptr %28, align 8
store ptr %9, ptr %29, align 8
store ptr %10, ptr %30, align 8
store ptr %11, ptr %31, align 8
store ptr %12, ptr %32, align 8
store ptr %13, ptr %33, align 8
store ptr %14, ptr %34, align 8
store ptr %15, ptr %35, align 8
store ptr %16, ptr %36, align 8
store ptr %17, ptr %37, align 8
store ptr %18, ptr %38, align 8
%39 = load ptr, ptr %20, align 8
%40 = load ptr, ptr %21, align 8
%41 = load ptr, ptr %22, align 8
%42 = load ptr, ptr %23, align 8
%43 = load ptr, ptr %24, align 8
%44 = load ptr, ptr %25, align 8
%45 = load ptr, ptr %26, align 8
%46 = load ptr, ptr %27, align 8
%47 = load ptr, ptr %28, align 8
%48 = load ptr, ptr %29, align 8
%49 = load ptr, ptr %30, align 8
%50 = load ptr, ptr %31, align 8
%51 = load ptr, ptr %32, align 8
%52 = load ptr, ptr %33, align 8
%53 = load ptr, ptr %34, align 8
%54 = load ptr, ptr %35, align 8
%55 = load ptr, ptr %36, align 8
%56 = load ptr, ptr %37, align 8
%57 = load ptr, ptr %38, align 8
%58 = call i32 @zfeast_hcsrgv_(ptr noundef %39, ptr noundef %40, ptr noundef %41, ptr noundef %42, ptr noundef %43, ptr noundef %44, ptr noundef %45, ptr noundef %46, ptr noundef %47, ptr noundef %48, ptr noundef %49, ptr noundef %50, ptr noundef %51, ptr noundef %52, ptr noundef %53, ptr noundef %54, ptr noundef %55, ptr noundef %56, ptr noundef %57)
ret void
}
declare i32 @zfeast_hcsrgv_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpiuipavzn.c'
source_filename = "/tmp/tmpiuipavzn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [48 x i8] c"\0ADigite um numero, esse numero deve ser impar:\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [41 x i8] c"\0ADesculpe mais o numero deve ser impar:\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c" %d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
br label %7
7: ; preds = %11, %0
%8 = load i32, ptr %2, align 4
%9 = srem i32 %8, 2
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %7
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%13 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
br label %7, !llvm.loop !6
14: ; preds = %7
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %4, align 4
br label %16
16: ; preds = %37, %14
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %2, align 4
%19 = icmp sle i32 %17, %18
br i1 %19, label %20, label %40
20: ; preds = %16
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %3, align 4
br label %23
23: ; preds = %30, %20
%24 = load i32, ptr %3, align 4
%25 = load i32, ptr %2, align 4
%26 = icmp sle i32 %24, %25
br i1 %26, label %27, label %35
27: ; preds = %23
%28 = load i32, ptr %3, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %28)
br label %30
30: ; preds = %27
%31 = load i32, ptr %3, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %3, align 4
%33 = load i32, ptr %2, align 4
%34 = add nsw i32 %33, -1
store i32 %34, ptr %2, align 4
br label %23, !llvm.loop !8
35: ; preds = %23
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %37
37: ; preds = %35
%38 = load i32, ptr %4, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %4, align 4
br label %16, !llvm.loop !9
40: ; preds = %16
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiuipavzn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [48 x i8] c"\0ADigite um numero, esse numero deve ser impar:\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [41 x i8] c"\0ADesculpe mais o numero deve ser impar:\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c" %d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%7 = load i32, ptr %2, align 4
%8 = srem i32 %7, 2
%9 = icmp eq i32 %8, 0
br i1 %9, label %.lr.ph, label %16
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %10
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%12 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%13 = load i32, ptr %2, align 4
%14 = srem i32 %13, 2
%15 = icmp eq i32 %14, 0
br i1 %15, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %16
16: ; preds = %._crit_edge, %0
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %4, align 4
%18 = load i32, ptr %4, align 4
%19 = load i32, ptr %2, align 4
%20 = icmp sle i32 %18, %19
br i1 %20, label %.lr.ph5, label %46
.lr.ph5: ; preds = %16
br label %21
21: ; preds = %.lr.ph5, %40
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %3, align 4
%24 = load i32, ptr %3, align 4
%25 = load i32, ptr %2, align 4
%26 = icmp sle i32 %24, %25
br i1 %26, label %.lr.ph2, label %38
.lr.ph2: ; preds = %21
br label %27
27: ; preds = %.lr.ph2, %30
%28 = load i32, ptr %3, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %28)
br label %30
30: ; preds = %27
%31 = load i32, ptr %3, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %3, align 4
%33 = load i32, ptr %2, align 4
%34 = add nsw i32 %33, -1
store i32 %34, ptr %2, align 4
%35 = load i32, ptr %3, align 4
%36 = load i32, ptr %2, align 4
%37 = icmp sle i32 %35, %36
br i1 %37, label %27, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %30
br label %38
38: ; preds = %._crit_edge3, %21
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %40
40: ; preds = %38
%41 = load i32, ptr %4, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %4, align 4
%43 = load i32, ptr %4, align 4
%44 = load i32, ptr %2, align 4
%45 = icmp sle i32 %43, %44
br i1 %45, label %21, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %40
br label %46
46: ; preds = %._crit_edge6, %16
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpag_aeurv.c'
source_filename = "/tmp/tmpag_aeurv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"mkdir\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"-p\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mkdir_p(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
store ptr %0, ptr %2, align 8
%4 = call i64 (...) @fork()
store i64 %4, ptr %3, align 8
%5 = load i64, ptr %3, align 8
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load ptr, ptr %2, align 8
%9 = call i32 @execlp(ptr noundef @.str, ptr noundef @.str, ptr noundef @.str.1, ptr noundef %8, ptr noundef null)
br label %13
10: ; preds = %1
%11 = load i64, ptr %3, align 8
%12 = call i32 @waitpid(i64 noundef %11, ptr noundef null, i32 noundef 0)
br label %13
13: ; preds = %10, %7
ret void
}
declare i64 @fork(...) #1
declare i32 @execlp(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @waitpid(i64 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpag_aeurv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"mkdir\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"-p\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mkdir_p(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
store ptr %0, ptr %2, align 8
%4 = call i64 (...) @fork()
store i64 %4, ptr %3, align 8
%5 = load i64, ptr %3, align 8
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load ptr, ptr %2, align 8
%9 = call i32 @execlp(ptr noundef @.str, ptr noundef @.str, ptr noundef @.str.1, ptr noundef %8, ptr noundef null)
br label %13
10: ; preds = %1
%11 = load i64, ptr %3, align 8
%12 = call i32 @waitpid(i64 noundef %11, ptr noundef null, i32 noundef 0)
br label %13
13: ; preds = %10, %7
ret void
}
declare i64 @fork(...) #1
declare i32 @execlp(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @waitpid(i64 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpn4thmxng.c'
source_filename = "/tmp/tmpn4thmxng.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"pipe create failed\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"fork failed.\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"close pipe fd 1 failed.\0A\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"read %d: %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"close pipe fd 0 failed.\0A\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.6 = private unnamed_addr constant [15 x i8] c"write failed.\0A\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 [2 x i32], align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [100 x i8], align 16
%7 = alloca [100 x i8], align 16
store i32 0, ptr %1, align 4
%8 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%9 = call i32 @pipe(ptr noundef %8)
store i32 %9, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %14
14: ; preds = %12, %0
%15 = call i64 (...) @fork()
store i64 %15, ptr %2, align 8
%16 = load i64, ptr %2, align 8
%17 = icmp slt i64 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %14
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%20 = call i32 @exit(i32 noundef -1) #3
unreachable
21: ; preds = %14
%22 = load i64, ptr %2, align 8
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %42
24: ; preds = %21
%25 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 1
%26 = load i32, ptr %25, align 4
%27 = call i32 @close(i32 noundef %26)
store i32 %27, ptr %4, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp slt i32 %28, 0
br i1 %29, label %30, label %33
30: ; preds = %24
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%32 = call i32 @exit(i32 noundef -1) #3
unreachable
33: ; preds = %24
br label %34
34: ; preds = %33, %34
%35 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%36 = load i32, ptr %35, align 4
%37 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
%38 = call i32 @read(i32 noundef %36, ptr noundef %37, i32 noundef 100)
store i32 %38, ptr %5, align 4
%39 = load i32, ptr %5, align 4
%40 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %39, ptr noundef %40)
br label %34
42: ; preds = %21
%43 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%44 = load i32, ptr %43, align 4
%45 = call i32 @close(i32 noundef %44)
store i32 %45, ptr %4, align 4
%46 = load i32, ptr %4, align 4
%47 = icmp slt i32 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %42
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %50
50: ; preds = %48, %42
br label %51
51: ; preds = %50, %65
%52 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
%53 = call i32 @scanf(ptr noundef @.str.5, ptr noundef %52)
%54 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 1
%55 = load i32, ptr %54, align 4
%56 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
%57 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
%58 = call i64 @strlen(ptr noundef %57)
%59 = add nsw i64 %58, 1
%60 = call i32 @write(i32 noundef %55, ptr noundef %56, i64 noundef %59)
store i32 %60, ptr %4, align 4
%61 = load i32, ptr %4, align 4
%62 = icmp slt i32 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %51
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %65
65: ; preds = %63, %51
br label %51
}
declare i32 @pipe(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @fork(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @close(i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i64 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" }
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/tmpn4thmxng.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"pipe create failed\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"fork failed.\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"close pipe fd 1 failed.\0A\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"read %d: %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"close pipe fd 0 failed.\0A\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.6 = private unnamed_addr constant [15 x i8] c"write failed.\0A\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 [2 x i32], align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [100 x i8], align 16
%7 = alloca [100 x i8], align 16
store i32 0, ptr %1, align 4
%8 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%9 = call i32 @pipe(ptr noundef %8)
store i32 %9, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %14
14: ; preds = %12, %0
%15 = call i64 (...) @fork()
store i64 %15, ptr %2, align 8
%16 = load i64, ptr %2, align 8
%17 = icmp slt i64 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %14
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%20 = call i32 @exit(i32 noundef -1) #3
unreachable
21: ; preds = %14
%22 = load i64, ptr %2, align 8
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %42
24: ; preds = %21
%25 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 1
%26 = load i32, ptr %25, align 4
%27 = call i32 @close(i32 noundef %26)
store i32 %27, ptr %4, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp slt i32 %28, 0
br i1 %29, label %30, label %33
30: ; preds = %24
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%32 = call i32 @exit(i32 noundef -1) #3
unreachable
33: ; preds = %24
br label %34
34: ; preds = %34, %33
%35 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%36 = load i32, ptr %35, align 4
%37 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
%38 = call i32 @read(i32 noundef %36, ptr noundef %37, i32 noundef 100)
store i32 %38, ptr %5, align 4
%39 = load i32, ptr %5, align 4
%40 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %39, ptr noundef %40)
br label %34
42: ; preds = %21
%43 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%44 = load i32, ptr %43, align 4
%45 = call i32 @close(i32 noundef %44)
store i32 %45, ptr %4, align 4
%46 = load i32, ptr %4, align 4
%47 = icmp slt i32 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %42
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %50
50: ; preds = %48, %42
br label %51
51: ; preds = %65, %50
%52 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
%53 = call i32 @scanf(ptr noundef @.str.5, ptr noundef %52)
%54 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 1
%55 = load i32, ptr %54, align 4
%56 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
%57 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
%58 = call i64 @strlen(ptr noundef %57)
%59 = add nsw i64 %58, 1
%60 = call i32 @write(i32 noundef %55, ptr noundef %56, i64 noundef %59)
store i32 %60, ptr %4, align 4
%61 = load i32, ptr %4, align 4
%62 = icmp slt i32 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %51
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %65
65: ; preds = %63, %51
br label %51
}
declare i32 @pipe(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @fork(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @close(i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i64 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" }
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/tmp1qdfxpqb.c'
source_filename = "/tmp/tmp1qdfxpqb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Allocating 64k pages < 128TB \0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"Allocating 16M chunks < 128TB \0A\00", align 1
@MAP_HUGETLB = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [32 x i8] c"Allocating 16G chunks < 128TB \0A\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"Allocating 64k pages > 128TB \0A\00", align 1
@.str.4 = private unnamed_addr constant [32 x i8] c"Allocating 16M chunks > 128TB \0A\00", align 1
@.str.5 = private unnamed_addr constant [32 x i8] c"Allocating 16G chunks > 128TB \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fixed_position() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @mmap_chunks_lower(i32 noundef 8000, i32 noundef 0)
%3 = call i32 @printf(ptr noundef @.str.1)
%4 = load i32, ptr @MAP_HUGETLB, align 4
%5 = call i32 @mmap_chunks_lower(i32 noundef 64, i32 noundef %4)
%6 = call i32 @printf(ptr noundef @.str.2)
%7 = load i32, ptr @MAP_HUGETLB, align 4
%8 = or i32 %7, -2013265920
%9 = call i32 @mmap_chunks_lower(i32 noundef 1, i32 noundef %8)
%10 = call i32 @printf(ptr noundef @.str.3)
%11 = call i32 @mmap_chunks_higher(i32 noundef 24384, i32 noundef 0)
%12 = call i32 @printf(ptr noundef @.str.4)
%13 = load i32, ptr @MAP_HUGETLB, align 4
%14 = call i32 @mmap_chunks_higher(i32 noundef 64, i32 noundef %13)
%15 = call i32 @printf(ptr noundef @.str.5)
%16 = load i32, ptr @MAP_HUGETLB, align 4
%17 = or i32 %16, -2013265920
%18 = call i32 @mmap_chunks_higher(i32 noundef 1, i32 noundef %17)
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @mmap_chunks_lower(i32 noundef, i32 noundef) #1
declare i32 @mmap_chunks_higher(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/tmp1qdfxpqb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Allocating 64k pages < 128TB \0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"Allocating 16M chunks < 128TB \0A\00", align 1
@MAP_HUGETLB = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [32 x i8] c"Allocating 16G chunks < 128TB \0A\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"Allocating 64k pages > 128TB \0A\00", align 1
@.str.4 = private unnamed_addr constant [32 x i8] c"Allocating 16M chunks > 128TB \0A\00", align 1
@.str.5 = private unnamed_addr constant [32 x i8] c"Allocating 16G chunks > 128TB \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fixed_position() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @mmap_chunks_lower(i32 noundef 8000, i32 noundef 0)
%3 = call i32 @printf(ptr noundef @.str.1)
%4 = load i32, ptr @MAP_HUGETLB, align 4
%5 = call i32 @mmap_chunks_lower(i32 noundef 64, i32 noundef %4)
%6 = call i32 @printf(ptr noundef @.str.2)
%7 = load i32, ptr @MAP_HUGETLB, align 4
%8 = or i32 %7, -2013265920
%9 = call i32 @mmap_chunks_lower(i32 noundef 1, i32 noundef %8)
%10 = call i32 @printf(ptr noundef @.str.3)
%11 = call i32 @mmap_chunks_higher(i32 noundef 24384, i32 noundef 0)
%12 = call i32 @printf(ptr noundef @.str.4)
%13 = load i32, ptr @MAP_HUGETLB, align 4
%14 = call i32 @mmap_chunks_higher(i32 noundef 64, i32 noundef %13)
%15 = call i32 @printf(ptr noundef @.str.5)
%16 = load i32, ptr @MAP_HUGETLB, align 4
%17 = or i32 %16, -2013265920
%18 = call i32 @mmap_chunks_higher(i32 noundef 1, i32 noundef %17)
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @mmap_chunks_lower(i32 noundef, i32 noundef) #1
declare i32 @mmap_chunks_higher(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/tmppdez_b6j.c'
source_filename = "/tmp/tmppdez_b6j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timespec = type { i32, i32 }
@LOG_WARNING = dso_local global i32 0, align 4
@stdout = dso_local global ptr null, align 8
@stderr = dso_local global ptr null, align 8
@CLOCK_REALTIME = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [16 x i8] c"[%s %ld.%.9ld] \00", align 1
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mbox_log_console(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %struct.timespec, align 4
%8 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr @LOG_WARNING, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %3
%13 = load ptr, ptr @stdout, align 8
br label %16
14: ; preds = %3
%15 = load ptr, ptr @stderr, align 8
br label %16
16: ; preds = %14, %12
%17 = phi ptr [ %13, %12 ], [ %15, %14 ]
store ptr %17, ptr %8, align 8
%18 = load i32, ptr @CLOCK_REALTIME, align 4
%19 = call i32 @clock_gettime(i32 noundef %18, ptr noundef %7)
%20 = load ptr, ptr %8, align 8
%21 = getelementptr inbounds %struct.timespec, ptr %7, i32 0, i32 1
%22 = load i32, ptr %21, align 4
%23 = getelementptr inbounds %struct.timespec, ptr %7, i32 0, i32 0
%24 = load i32, ptr %23, align 4
%25 = call i32 @fprintf(ptr noundef %20, ptr noundef @.str, ptr noundef @.str.1, i32 noundef %22, i32 noundef %24)
%26 = load ptr, ptr %8, align 8
%27 = load ptr, ptr %5, align 8
%28 = load i32, ptr %6, align 4
%29 = call i32 @vfprintf(ptr noundef %26, ptr noundef %27, i32 noundef %28)
ret void
}
declare i32 @clock_gettime(i32 noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @vfprintf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppdez_b6j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timespec = type { i32, i32 }
@LOG_WARNING = dso_local global i32 0, align 4
@stdout = dso_local global ptr null, align 8
@stderr = dso_local global ptr null, align 8
@CLOCK_REALTIME = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [16 x i8] c"[%s %ld.%.9ld] \00", align 1
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mbox_log_console(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %struct.timespec, align 4
%8 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr @LOG_WARNING, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %3
%13 = load ptr, ptr @stdout, align 8
br label %16
14: ; preds = %3
%15 = load ptr, ptr @stderr, align 8
br label %16
16: ; preds = %14, %12
%17 = phi ptr [ %13, %12 ], [ %15, %14 ]
store ptr %17, ptr %8, align 8
%18 = load i32, ptr @CLOCK_REALTIME, align 4
%19 = call i32 @clock_gettime(i32 noundef %18, ptr noundef %7)
%20 = load ptr, ptr %8, align 8
%21 = getelementptr inbounds %struct.timespec, ptr %7, i32 0, i32 1
%22 = load i32, ptr %21, align 4
%23 = getelementptr inbounds %struct.timespec, ptr %7, i32 0, i32 0
%24 = load i32, ptr %23, align 4
%25 = call i32 @fprintf(ptr noundef %20, ptr noundef @.str, ptr noundef @.str.1, i32 noundef %22, i32 noundef %24)
%26 = load ptr, ptr %8, align 8
%27 = load ptr, ptr %5, align 8
%28 = load i32, ptr %6, align 4
%29 = call i32 @vfprintf(ptr noundef %26, ptr noundef %27, i32 noundef %28)
ret void
}
declare i32 @clock_gettime(i32 noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @vfprintf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0s72b6q2.c'
source_filename = "/tmp/tmp0s72b6q2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @readstring(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca [2 x i8], align 1
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
%11 = getelementptr inbounds [2 x i8], ptr %8, i64 0, i64 0
%12 = load ptr, ptr %7, align 8
%13 = call i32 @fread(ptr noundef %11, i32 noundef 1, i32 noundef 2, ptr noundef %12)
store i32 %13, ptr %10, align 4
%14 = load i32, ptr %10, align 4
%15 = icmp ne i32 %14, 2
br i1 %15, label %16, label %17
16: ; preds = %3
store i32 -1, ptr %4, align 4
br label %49
17: ; preds = %3
%18 = getelementptr inbounds [2 x i8], ptr %8, i64 0, i64 0
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = shl i32 %20, 8
%22 = getelementptr inbounds [2 x i8], ptr %8, i64 0, i64 1
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = or i32 %21, %24
store i32 %25, ptr %9, align 4
%26 = load i32, ptr %9, align 4
%27 = load i32, ptr %6, align 4
%28 = icmp sgt i32 %26, %27
br i1 %28, label %29, label %30
29: ; preds = %17
store i32 -1, ptr %4, align 4
br label %49
30: ; preds = %17
%31 = load ptr, ptr %5, align 8
%32 = load i32, ptr %9, align 4
%33 = load ptr, ptr %7, align 8
%34 = call i32 @fread(ptr noundef %31, i32 noundef 1, i32 noundef %32, ptr noundef %33)
store i32 %34, ptr %10, align 4
%35 = load i32, ptr %10, align 4
%36 = load i32, ptr %9, align 4
%37 = icmp ne i32 %35, %36
br i1 %37, label %47, label %38
38: ; preds = %30
%39 = load ptr, ptr %5, align 8
%40 = load i32, ptr %9, align 4
%41 = sub nsw i32 %40, 1
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %39, i64 %42
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %38, %30
store i32 -1, ptr %4, align 4
br label %49
48: ; preds = %38
store i32 0, ptr %4, align 4
br label %49
49: ; preds = %48, %47, %29, %16
%50 = load i32, ptr %4, align 4
ret i32 %50
}
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0s72b6q2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @readstring(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca [2 x i8], align 1
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
%11 = getelementptr inbounds [2 x i8], ptr %8, i64 0, i64 0
%12 = load ptr, ptr %7, align 8
%13 = call i32 @fread(ptr noundef %11, i32 noundef 1, i32 noundef 2, ptr noundef %12)
store i32 %13, ptr %10, align 4
%14 = load i32, ptr %10, align 4
%15 = icmp ne i32 %14, 2
br i1 %15, label %16, label %17
16: ; preds = %3
store i32 -1, ptr %4, align 4
br label %49
17: ; preds = %3
%18 = getelementptr inbounds [2 x i8], ptr %8, i64 0, i64 0
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = shl i32 %20, 8
%22 = getelementptr inbounds [2 x i8], ptr %8, i64 0, i64 1
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = or i32 %21, %24
store i32 %25, ptr %9, align 4
%26 = load i32, ptr %9, align 4
%27 = load i32, ptr %6, align 4
%28 = icmp sgt i32 %26, %27
br i1 %28, label %29, label %30
29: ; preds = %17
store i32 -1, ptr %4, align 4
br label %49
30: ; preds = %17
%31 = load ptr, ptr %5, align 8
%32 = load i32, ptr %9, align 4
%33 = load ptr, ptr %7, align 8
%34 = call i32 @fread(ptr noundef %31, i32 noundef 1, i32 noundef %32, ptr noundef %33)
store i32 %34, ptr %10, align 4
%35 = load i32, ptr %10, align 4
%36 = load i32, ptr %9, align 4
%37 = icmp ne i32 %35, %36
br i1 %37, label %47, label %38
38: ; preds = %30
%39 = load ptr, ptr %5, align 8
%40 = load i32, ptr %9, align 4
%41 = sub nsw i32 %40, 1
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %39, i64 %42
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %38, %30
store i32 -1, ptr %4, align 4
br label %49
48: ; preds = %38
store i32 0, ptr %4, align 4
br label %49
49: ; preds = %48, %47, %29, %16
%50 = load i32, ptr %4, align 4
ret i32 %50
}
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6jb7fvlg.c'
source_filename = "/tmp/tmp6jb7fvlg.c"
target datalayout = "e-m:e-p270: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/tmp6jb7fvlg.c"
target datalayout = "e-m:e-p270: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/tmpa2lj4vpq.c'
source_filename = "/tmp/tmpa2lj4vpq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"\0AOpenSHMEM Analyzer\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @shmem_double_max_to_all(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6, ptr noundef %7) #0 {
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store i32 %2, ptr %11, align 4
store i32 %3, ptr %12, align 4
store i32 %4, ptr %13, align 4
store i32 %5, ptr %14, align 4
store ptr %6, ptr %15, align 8
store ptr %7, ptr %16, align 8
%17 = 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/tmpa2lj4vpq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"\0AOpenSHMEM Analyzer\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @shmem_double_max_to_all(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6, ptr noundef %7) #0 {
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store i32 %2, ptr %11, align 4
store i32 %3, ptr %12, align 4
store i32 %4, ptr %13, align 4
store i32 %5, ptr %14, align 4
store ptr %6, ptr %15, align 8
store ptr %7, ptr %16, align 8
%17 = 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/tmpolgc7wba.c'
source_filename = "/tmp/tmpolgc7wba.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Error: The file \22%s\22 doesn't exist.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @openFile(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %4, align 8
%8 = call ptr @fopen(ptr noundef %6, ptr noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %14
11: ; preds = %2
%12 = load ptr, ptr %3, align 8
%13 = call i32 @printf(ptr noundef @.str, ptr noundef %12)
br label %14
14: ; preds = %11, %2
%15 = load ptr, ptr %5, align 8
ret ptr %15
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpolgc7wba.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Error: The file \22%s\22 doesn't exist.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @openFile(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %4, align 8
%8 = call ptr @fopen(ptr noundef %6, ptr noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %14
11: ; preds = %2
%12 = load ptr, ptr %3, align 8
%13 = call i32 @printf(ptr noundef @.str, ptr noundef %12)
br label %14
14: ; preds = %11, %2
%15 = load ptr, ptr %5, align 8
ret ptr %15
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2d52y9c6.c'
source_filename = "/tmp/tmp2d52y9c6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @unescape_url(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
br label %5
5: ; preds = %38, %1
%6 = load ptr, ptr %2, align 8
%7 = load i32, ptr %4, align 4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds i8, ptr %6, i64 %8
%10 = load i8, ptr %9, align 1
%11 = icmp ne i8 %10, 0
br i1 %11, label %12, label %43
12: ; preds = %5
%13 = load ptr, ptr %2, align 8
%14 = load i32, ptr %4, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
%18 = load ptr, ptr %2, align 8
%19 = load i32, ptr %3, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
store i8 %17, ptr %21, align 1
%22 = sext i8 %17 to i32
%23 = icmp eq i32 %22, 37
br i1 %23, label %24, label %37
24: ; preds = %12
%25 = load ptr, ptr %2, align 8
%26 = load i32, ptr %4, align 4
%27 = add nsw i32 %26, 1
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %25, i64 %28
%30 = call signext i8 @x2c(ptr noundef %29)
%31 = load ptr, ptr %2, align 8
%32 = load i32, ptr %3, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, i64 %33
store i8 %30, ptr %34, align 1
%35 = load i32, ptr %4, align 4
%36 = add nsw i32 %35, 2
store i32 %36, ptr %4, align 4
br label %37
37: ; preds = %24, %12
br label %38
38: ; preds = %37
%39 = load i32, ptr %3, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %3, align 4
%41 = load i32, ptr %4, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %4, align 4
br label %5, !llvm.loop !6
43: ; preds = %5
%44 = load ptr, ptr %2, align 8
%45 = load i32, ptr %3, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %44, i64 %46
store i8 0, ptr %47, align 1
ret void
}
declare signext i8 @x2c(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp2d52y9c6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @unescape_url(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%5 = load ptr, ptr %2, align 8
%6 = load i32, ptr %4, align 4
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, ptr %5, i64 %7
%9 = load i8, ptr %8, align 1
%10 = icmp ne i8 %9, 0
br i1 %10, label %.lr.ph, label %48
.lr.ph: ; preds = %1
br label %11
11: ; preds = %.lr.ph, %37
%12 = load ptr, ptr %2, align 8
%13 = load i32, ptr %4, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = load ptr, ptr %2, align 8
%18 = load i32, ptr %3, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
store i8 %16, ptr %20, align 1
%21 = sext i8 %16 to i32
%22 = icmp eq i32 %21, 37
br i1 %22, label %23, label %36
23: ; preds = %11
%24 = load ptr, ptr %2, align 8
%25 = load i32, ptr %4, align 4
%26 = add nsw i32 %25, 1
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %24, i64 %27
%29 = call signext i8 @x2c(ptr noundef %28)
%30 = load ptr, ptr %2, align 8
%31 = load i32, ptr %3, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %30, i64 %32
store i8 %29, ptr %33, align 1
%34 = load i32, ptr %4, align 4
%35 = add nsw i32 %34, 2
store i32 %35, ptr %4, align 4
br label %36
36: ; preds = %23, %11
br label %37
37: ; preds = %36
%38 = load i32, ptr %3, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %3, align 4
%40 = load i32, ptr %4, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %4, align 4
%42 = load ptr, ptr %2, align 8
%43 = load i32, ptr %4, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, ptr %42, i64 %44
%46 = load i8, ptr %45, align 1
%47 = icmp ne i8 %46, 0
br i1 %47, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %48
48: ; preds = %._crit_edge, %1
%49 = load ptr, ptr %2, align 8
%50 = load i32, ptr %3, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i8, ptr %49, i64 %51
store i8 0, ptr %52, align 1
ret void
}
declare signext i8 @x2c(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpcqyheq2r.c'
source_filename = "/tmp/tmpcqyheq2r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @BuildChannel() #0 {
%1 = call i32 (...) @DimensionChannel()
%2 = call i32 (...) @DescribeChannel()
%3 = call i32 (...) @DensityChannel()
ret void
}
declare i32 @DimensionChannel(...) #1
declare i32 @DescribeChannel(...) #1
declare i32 @DensityChannel(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcqyheq2r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @BuildChannel() #0 {
%1 = call i32 (...) @DimensionChannel()
%2 = call i32 (...) @DescribeChannel()
%3 = call i32 (...) @DensityChannel()
ret void
}
declare i32 @DimensionChannel(...) #1
declare i32 @DescribeChannel(...) #1
declare i32 @DensityChannel(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpehjg3c_2.c'
source_filename = "/tmp/tmpehjg3c_2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"Enter an integer > \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"\0A0\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"\0AThat's all, have a nice day!\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"\0A%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
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = load i32, ptr %2, align 4
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %0
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %1, align 4
br label %57
11: ; preds = %0
br label %12
12: ; preds = %54, %11
%13 = load i32, ptr %2, align 4
%14 = call i64 @abs(i32 noundef %13)
%15 = icmp sgt i64 %14, 0
br i1 %15, label %16, label %55
16: ; preds = %12
%17 = load i32, ptr %2, align 4
%18 = icmp sgt i32 %17, 0
br i1 %18, label %27, label %19
19: ; preds = %16
%20 = load i32, ptr %2, align 4
%21 = icmp slt i32 %20, 0
br i1 %21, label %22, label %36
22: ; preds = %19
%23 = load i32, ptr %2, align 4
%24 = sitofp i32 %23 to double
%25 = fdiv double %24, 1.000000e+01
%26 = fcmp ogt double %25, 1.000000e+01
br i1 %26, label %27, label %36
27: ; preds = %22, %16
%28 = load i32, ptr %2, align 4
%29 = srem i32 %28, 10
store i32 %29, ptr %3, align 4
%30 = load i32, ptr %3, align 4
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %30)
%32 = load i32, ptr %2, align 4
%33 = sitofp i32 %32 to double
%34 = fdiv double %33, 1.000000e+01
%35 = fptosi double %34 to i32
store i32 %35, ptr %2, align 4
br label %54
36: ; preds = %22, %19
%37 = load i32, ptr %2, align 4
%38 = icmp slt i32 %37, 0
br i1 %38, label %39, label %53
39: ; preds = %36
%40 = load i32, ptr %2, align 4
%41 = sitofp i32 %40 to double
%42 = fdiv double %41, 1.000000e+01
%43 = fcmp olt double %42, 1.000000e+01
br i1 %43, label %44, label %53
44: ; preds = %39
%45 = load i32, ptr %2, align 4
%46 = srem i32 %45, 10
store i32 %46, ptr %3, align 4
%47 = load i32, ptr %3, align 4
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %47)
%49 = load i32, ptr %2, align 4
%50 = sitofp i32 %49 to double
%51 = fdiv double %50, 1.000000e+01
%52 = fptosi double %51 to i32
store i32 %52, ptr %2, align 4
br label %53
53: ; preds = %44, %39, %36
br label %54
54: ; preds = %53, %27
br label %12, !llvm.loop !6
55: ; preds = %12
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %1, align 4
br label %57
57: ; preds = %55, %8
%58 = load i32, ptr %1, align 4
ret i32 %58
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @abs(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/tmpehjg3c_2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"Enter an integer > \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"\0A0\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"\0AThat's all, have a nice day!\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"\0A%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
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = load i32, ptr %2, align 4
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %0
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %1, align 4
br label %59
11: ; preds = %0
%12 = load i32, ptr %2, align 4
%13 = call i64 @abs(i32 noundef %12)
%14 = icmp sgt i64 %13, 0
br i1 %14, label %.lr.ph, label %57
.lr.ph: ; preds = %11
br label %15
15: ; preds = %.lr.ph, %53
%16 = load i32, ptr %2, align 4
%17 = icmp sgt i32 %16, 0
br i1 %17, label %26, label %18
18: ; preds = %15
%19 = load i32, ptr %2, align 4
%20 = icmp slt i32 %19, 0
br i1 %20, label %21, label %35
21: ; preds = %18
%22 = load i32, ptr %2, align 4
%23 = sitofp i32 %22 to double
%24 = fdiv double %23, 1.000000e+01
%25 = fcmp ogt double %24, 1.000000e+01
br i1 %25, label %26, label %35
26: ; preds = %21, %15
%27 = load i32, ptr %2, align 4
%28 = srem i32 %27, 10
store i32 %28, ptr %3, align 4
%29 = load i32, ptr %3, align 4
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %29)
%31 = load i32, ptr %2, align 4
%32 = sitofp i32 %31 to double
%33 = fdiv double %32, 1.000000e+01
%34 = fptosi double %33 to i32
store i32 %34, ptr %2, align 4
br label %53
35: ; preds = %21, %18
%36 = load i32, ptr %2, align 4
%37 = icmp slt i32 %36, 0
br i1 %37, label %38, label %52
38: ; preds = %35
%39 = load i32, ptr %2, align 4
%40 = sitofp i32 %39 to double
%41 = fdiv double %40, 1.000000e+01
%42 = fcmp olt double %41, 1.000000e+01
br i1 %42, label %43, label %52
43: ; preds = %38
%44 = load i32, ptr %2, align 4
%45 = srem i32 %44, 10
store i32 %45, ptr %3, align 4
%46 = load i32, ptr %3, align 4
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %46)
%48 = load i32, ptr %2, align 4
%49 = sitofp i32 %48 to double
%50 = fdiv double %49, 1.000000e+01
%51 = fptosi double %50 to i32
store i32 %51, ptr %2, align 4
br label %52
52: ; preds = %43, %38, %35
br label %53
53: ; preds = %52, %26
%54 = load i32, ptr %2, align 4
%55 = call i64 @abs(i32 noundef %54)
%56 = icmp sgt i64 %55, 0
br i1 %56, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %53
br label %57
57: ; preds = %._crit_edge, %11
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %1, align 4
br label %59
59: ; preds = %57, %8
%60 = load i32, ptr %1, align 4
ret i32 %60
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @abs(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/tmpluecna_n.c'
source_filename = "/tmp/tmpluecna_n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"%d %g\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"Your input was: x == %d\09\09 f == %g\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 float, align 4
%4 = alloca [257 x i8], align 16
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %4, i8 0, i64 257, i1 false)
%5 = getelementptr inbounds [257 x i8], ptr %4, i64 0, i64 0
%6 = load i32, ptr @stdin, align 4
%7 = call i32 @fgets(ptr noundef %5, i32 noundef 257, i32 noundef %6)
%8 = getelementptr inbounds [257 x i8], ptr %4, i64 0, i64 255
%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 %24
12: ; preds = %0
%13 = getelementptr inbounds [257 x i8], ptr %4, i64 0, i64 255
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 10
br i1 %16, label %17, label %24
17: ; preds = %12
br label %18
18: ; preds = %22, %17
%19 = call signext i8 (...) @getchar()
%20 = sext i8 %19 to i32
%21 = icmp ne i32 %20, 10
br i1 %21, label %22, label %23
22: ; preds = %18
br label %18, !llvm.loop !6
23: ; preds = %18
br label %24
24: ; preds = %23, %12, %0
%25 = getelementptr inbounds [257 x i8], ptr %4, i64 0, i64 0
%26 = call i32 @sscanf(ptr noundef %25, ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%27 = load i32, ptr %2, align 4
%28 = load float, ptr %3, align 4
%29 = call i32 @printf(ptr noundef @.str.1, i32 noundef %27, float noundef %28)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #2
declare signext i8 @getchar(...) #2
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, i32 noundef, float 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/tmpluecna_n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"%d %g\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"Your input was: x == %d\09\09 f == %g\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 float, align 4
%4 = alloca [257 x i8], align 16
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %4, i8 0, i64 257, i1 false)
%5 = getelementptr inbounds [257 x i8], ptr %4, i64 0, i64 0
%6 = load i32, ptr @stdin, align 4
%7 = call i32 @fgets(ptr noundef %5, i32 noundef 257, i32 noundef %6)
%8 = getelementptr inbounds [257 x i8], ptr %4, i64 0, i64 255
%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 %23
12: ; preds = %0
%13 = getelementptr inbounds [257 x i8], ptr %4, i64 0, i64 255
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 10
br i1 %16, label %17, label %23
17: ; preds = %12
br label %18
18: ; preds = %18, %17
%19 = call signext i8 (...) @getchar()
%20 = sext i8 %19 to i32
%21 = icmp ne i32 %20, 10
br i1 %21, label %18, label %22, !llvm.loop !6
22: ; preds = %18
br label %23
23: ; preds = %22, %12, %0
%24 = getelementptr inbounds [257 x i8], ptr %4, i64 0, i64 0
%25 = call i32 @sscanf(ptr noundef %24, ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%26 = load i32, ptr %2, align 4
%27 = load float, ptr %3, align 4
%28 = call i32 @printf(ptr noundef @.str.1, i32 noundef %26, float noundef %27)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #2
declare signext i8 @getchar(...) #2
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, i32 noundef, float 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/tmpblc1g306.c'
source_filename = "/tmp/tmpblc1g306.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Digite o Tamanho;\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"#\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"pause\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %24, %0
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %27
11: ; preds = %7
%12 = load i32, ptr %2, align 4
store i32 %12, ptr %4, align 4
br label %13
13: ; preds = %19, %11
%14 = load i32, ptr %4, align 4
%15 = load i32, ptr %3, align 4
%16 = icmp sgt i32 %14, %15
br i1 %16, label %17, label %22
17: ; preds = %13
%18 = call i32 @printf(ptr noundef @.str.2)
br label %19
19: ; preds = %17
%20 = load i32, ptr %4, align 4
%21 = add nsw i32 %20, -1
store i32 %21, ptr %4, align 4
br label %13, !llvm.loop !6
22: ; preds = %13
%23 = call i32 @printf(ptr noundef @.str.3)
br label %24
24: ; preds = %22
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %3, align 4
br label %7, !llvm.loop !8
27: ; preds = %7
%28 = call i32 @system(ptr noundef @.str.4)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpblc1g306.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Digite o Tamanho;\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"#\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"pause\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph2, label %31
.lr.ph2: ; preds = %0
br label %10
10: ; preds = %.lr.ph2, %25
%11 = load i32, ptr %2, align 4
store i32 %11, ptr %4, align 4
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr %3, align 4
%14 = icmp sgt i32 %12, %13
br i1 %14, label %.lr.ph, label %23
.lr.ph: ; preds = %10
br label %15
15: ; preds = %.lr.ph, %17
%16 = call i32 @printf(ptr noundef @.str.2)
br label %17
17: ; preds = %15
%18 = load i32, ptr %4, align 4
%19 = add nsw i32 %18, -1
store i32 %19, ptr %4, align 4
%20 = load i32, ptr %4, align 4
%21 = load i32, ptr %3, align 4
%22 = icmp sgt i32 %20, %21
br i1 %22, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %23
23: ; preds = %._crit_edge, %10
%24 = call i32 @printf(ptr noundef @.str.3)
br label %25
25: ; preds = %23
%26 = load i32, ptr %3, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %3, align 4
%28 = load i32, ptr %3, align 4
%29 = load i32, ptr %2, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %10, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %25
br label %31
31: ; preds = %._crit_edge3, %0
%32 = call i32 @system(ptr noundef @.str.4)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpxoxa5w2v.c'
source_filename = "/tmp/tmpxoxa5w2v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Generating primes:\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"done.\0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"pgi: %d - total: %lld\0A\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"solution: %lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i64 0, ptr %3, align 8
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 (...) @generatePrimesSieve()
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 1, ptr %2, align 4
br label %7
7: ; preds = %23, %0
%8 = load i32, ptr %2, align 4
%9 = icmp sle i32 %8, 100000000
br i1 %9, label %10, label %26
10: ; preds = %7
%11 = load i32, ptr %2, align 4
%12 = call i64 @isPrimeGeneratingInteger(i32 noundef %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %22
14: ; preds = %10
%15 = load i64, ptr %3, align 8
%16 = load i32, ptr %2, align 4
%17 = sext i32 %16 to i64
%18 = add nsw i64 %15, %17
store i64 %18, ptr %3, align 8
%19 = load i32, ptr %2, align 4
%20 = load i64, ptr %3, align 8
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %19, i64 noundef %20)
br label %22
22: ; preds = %14, %10
br label %23
23: ; preds = %22
%24 = load i32, ptr %2, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %2, align 4
br label %7, !llvm.loop !6
26: ; preds = %7
%27 = load i64, ptr %3, align 8
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %27)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @generatePrimesSieve(...) #1
declare i64 @isPrimeGeneratingInteger(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/tmpxoxa5w2v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Generating primes:\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"done.\0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"pgi: %d - total: %lld\0A\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"solution: %lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i64 0, ptr %3, align 8
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 (...) @generatePrimesSieve()
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 1, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = icmp sle i32 %7, 100000000
br i1 %8, label %.lr.ph, label %27
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %22
%10 = load i32, ptr %2, align 4
%11 = call i64 @isPrimeGeneratingInteger(i32 noundef %10)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %21
13: ; preds = %9
%14 = load i64, ptr %3, align 8
%15 = load i32, ptr %2, align 4
%16 = sext i32 %15 to i64
%17 = add nsw i64 %14, %16
store i64 %17, ptr %3, align 8
%18 = load i32, ptr %2, align 4
%19 = load i64, ptr %3, align 8
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %18, i64 noundef %19)
br label %21
21: ; preds = %13, %9
br label %22
22: ; preds = %21
%23 = load i32, ptr %2, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %2, align 4
%25 = load i32, ptr %2, align 4
%26 = icmp sle i32 %25, 100000000
br i1 %26, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %27
27: ; preds = %._crit_edge, %0
%28 = load i64, ptr %3, align 8
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %28)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @generatePrimesSieve(...) #1
declare i64 @isPrimeGeneratingInteger(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/tmpj5z06m4i.c'
source_filename = "/tmp/tmpj5z06m4i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @longestPalindrome(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%9 = load ptr, ptr %2, align 8
store ptr %9, ptr %7, align 8
store ptr null, ptr %8, align 8
br label %10
10: ; preds = %16, %1
%11 = load ptr, ptr %7, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %7, align 8
%13 = load i8, ptr %11, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %10
%17 = load i32, ptr %4, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %4, align 4
br label %10, !llvm.loop !6
19: ; preds = %10
store i32 0, ptr %5, align 4
br label %20
20: ; preds = %154, %19
%21 = load i32, ptr %5, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %157
24: ; preds = %20
store i32 0, ptr %6, align 4
br label %25
25: ; preds = %58, %24
%26 = load i32, ptr %5, align 4
%27 = load i32, ptr %6, align 4
%28 = sub nsw i32 %26, %27
%29 = icmp sge i32 %28, 0
br i1 %29, label %30, label %36
30: ; preds = %25
%31 = load i32, ptr %5, align 4
%32 = load i32, ptr %6, align 4
%33 = add nsw i32 %31, %32
%34 = load i32, ptr %4, align 4
%35 = icmp slt i32 %33, %34
br label %36
36: ; preds = %30, %25
%37 = phi i1 [ false, %25 ], [ %35, %30 ]
br i1 %37, label %38, label %61
38: ; preds = %36
%39 = load ptr, ptr %2, align 8
%40 = load i32, ptr %5, align 4
%41 = load i32, ptr %6, align 4
%42 = sub nsw i32 %40, %41
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %39, i64 %43
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = load ptr, ptr %2, align 8
%48 = load i32, ptr %5, align 4
%49 = load i32, ptr %6, align 4
%50 = add nsw i32 %48, %49
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i8, ptr %47, i64 %51
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = icmp ne i32 %46, %54
br i1 %55, label %56, label %57
56: ; preds = %38
br label %61
57: ; preds = %38
br label %58
58: ; preds = %57
%59 = load i32, ptr %6, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %6, align 4
br label %25, !llvm.loop !8
61: ; preds = %56, %36
%62 = load i32, ptr %6, align 4
%63 = mul nsw i32 2, %62
%64 = add nsw i32 %63, 1
%65 = load i32, ptr %3, align 4
%66 = icmp sgt i32 %64, %65
br i1 %66, label %67, label %87
67: ; preds = %61
%68 = load i32, ptr %6, align 4
%69 = mul nsw i32 2, %68
%70 = add nsw i32 %69, 1
store i32 %70, ptr %3, align 4
%71 = load ptr, ptr %2, align 8
%72 = load i32, ptr %5, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i8, ptr %71, i64 %73
%75 = load i32, ptr %6, align 4
%76 = sext i32 %75 to i64
%77 = sub i64 0, %76
%78 = getelementptr inbounds i8, ptr %74, i64 %77
%79 = getelementptr inbounds i8, ptr %78, i64 1
store ptr %79, ptr %7, align 8
%80 = load ptr, ptr %2, align 8
%81 = load i32, ptr %5, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i8, ptr %80, i64 %82
%84 = load i32, ptr %6, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i8, ptr %83, i64 %85
store ptr %86, ptr %8, align 8
br label %87
87: ; preds = %67, %61
store i32 0, ptr %6, align 4
br label %88
88: ; preds = %123, %87
%89 = load i32, ptr %5, align 4
%90 = load i32, ptr %6, align 4
%91 = sub nsw i32 %89, %90
%92 = icmp sge i32 %91, 0
br i1 %92, label %93, label %100
93: ; preds = %88
%94 = load i32, ptr %5, align 4
%95 = load i32, ptr %6, align 4
%96 = add nsw i32 %94, %95
%97 = add nsw i32 %96, 1
%98 = load i32, ptr %4, align 4
%99 = icmp slt i32 %97, %98
br label %100
100: ; preds = %93, %88
%101 = phi i1 [ false, %88 ], [ %99, %93 ]
br i1 %101, label %102, label %126
102: ; preds = %100
%103 = load ptr, ptr %2, align 8
%104 = load i32, ptr %5, align 4
%105 = load i32, ptr %6, align 4
%106 = sub nsw i32 %104, %105
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds i8, ptr %103, i64 %107
%109 = load i8, ptr %108, align 1
%110 = sext i8 %109 to i32
%111 = load ptr, ptr %2, align 8
%112 = load i32, ptr %5, align 4
%113 = load i32, ptr %6, align 4
%114 = add nsw i32 %112, %113
%115 = add nsw i32 %114, 1
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds i8, ptr %111, i64 %116
%118 = load i8, ptr %117, align 1
%119 = sext i8 %118 to i32
%120 = icmp ne i32 %110, %119
br i1 %120, label %121, label %122
121: ; preds = %102
br label %126
122: ; preds = %102
br label %123
123: ; preds = %122
%124 = load i32, ptr %6, align 4
%125 = add nsw i32 %124, 1
store i32 %125, ptr %6, align 4
br label %88, !llvm.loop !9
126: ; preds = %121, %100
%127 = load i32, ptr %6, align 4
%128 = mul nsw i32 2, %127
%129 = add nsw i32 %128, 2
%130 = load i32, ptr %3, align 4
%131 = icmp sgt i32 %129, %130
br i1 %131, label %132, label %153
132: ; preds = %126
%133 = load i32, ptr %6, align 4
%134 = mul nsw i32 2, %133
%135 = add nsw i32 %134, 2
store i32 %135, ptr %3, align 4
%136 = load ptr, ptr %2, align 8
%137 = load i32, ptr %5, align 4
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds i8, ptr %136, i64 %138
%140 = load i32, ptr %6, align 4
%141 = sext i32 %140 to i64
%142 = sub i64 0, %141
%143 = getelementptr inbounds i8, ptr %139, i64 %142
%144 = getelementptr inbounds i8, ptr %143, i64 1
store ptr %144, ptr %7, align 8
%145 = load ptr, ptr %2, align 8
%146 = load i32, ptr %5, align 4
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds i8, ptr %145, i64 %147
%149 = load i32, ptr %6, align 4
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds i8, ptr %148, i64 %150
%152 = getelementptr inbounds i8, ptr %151, i64 1
store ptr %152, ptr %8, align 8
br label %153
153: ; preds = %132, %126
br label %154
154: ; preds = %153
%155 = load i32, ptr %5, align 4
%156 = add nsw i32 %155, 1
store i32 %156, ptr %5, align 4
br label %20, !llvm.loop !10
157: ; preds = %20
%158 = load ptr, ptr %8, align 8
store i8 0, ptr %158, align 1
%159 = load ptr, ptr %7, align 8
ret ptr %159
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpj5z06m4i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @longestPalindrome(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%9 = load ptr, ptr %2, align 8
store ptr %9, ptr %7, align 8
store ptr null, ptr %8, align 8
%10 = load ptr, ptr %7, align 8
%11 = getelementptr inbounds i8, ptr %10, i32 1
store ptr %11, ptr %7, align 8
%12 = load i8, ptr %10, align 1
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 0
br i1 %14, label %.lr.ph, label %23
.lr.ph: ; preds = %1
br label %15
15: ; preds = %.lr.ph, %15
%16 = load i32, ptr %4, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %4, align 4
%18 = load ptr, ptr %7, align 8
%19 = getelementptr inbounds i8, ptr %18, i32 1
store ptr %19, ptr %7, align 8
%20 = load i8, ptr %18, align 1
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %21, 0
br i1 %22, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %23
23: ; preds = %._crit_edge, %1
store i32 0, ptr %5, align 4
%24 = load i32, ptr %5, align 4
%25 = load i32, ptr %4, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %.lr.ph3, label %163
.lr.ph3: ; preds = %23
br label %27
27: ; preds = %.lr.ph3, %157
store i32 0, ptr %6, align 4
br label %28
28: ; preds = %61, %27
%29 = load i32, ptr %5, align 4
%30 = load i32, ptr %6, align 4
%31 = sub nsw i32 %29, %30
%32 = icmp sge i32 %31, 0
br i1 %32, label %33, label %39
33: ; preds = %28
%34 = load i32, ptr %5, align 4
%35 = load i32, ptr %6, align 4
%36 = add nsw i32 %34, %35
%37 = load i32, ptr %4, align 4
%38 = icmp slt i32 %36, %37
br label %39
39: ; preds = %33, %28
%40 = phi i1 [ false, %28 ], [ %38, %33 ]
br i1 %40, label %41, label %.loopexit1
41: ; preds = %39
%42 = load ptr, ptr %2, align 8
%43 = load i32, ptr %5, align 4
%44 = load i32, ptr %6, align 4
%45 = sub nsw i32 %43, %44
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %42, i64 %46
%48 = load i8, ptr %47, align 1
%49 = sext i8 %48 to i32
%50 = load ptr, ptr %2, align 8
%51 = load i32, ptr %5, align 4
%52 = load i32, ptr %6, align 4
%53 = add nsw i32 %51, %52
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %50, i64 %54
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = icmp ne i32 %49, %57
br i1 %58, label %59, label %60
59: ; preds = %41
br label %64
60: ; preds = %41
br label %61
61: ; preds = %60
%62 = load i32, ptr %6, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %6, align 4
br label %28, !llvm.loop !8
.loopexit1: ; preds = %39
br label %64
64: ; preds = %.loopexit1, %59
%65 = load i32, ptr %6, align 4
%66 = mul nsw i32 2, %65
%67 = add nsw i32 %66, 1
%68 = load i32, ptr %3, align 4
%69 = icmp sgt i32 %67, %68
br i1 %69, label %70, label %90
70: ; preds = %64
%71 = load i32, ptr %6, align 4
%72 = mul nsw i32 2, %71
%73 = add nsw i32 %72, 1
store i32 %73, ptr %3, align 4
%74 = load ptr, ptr %2, align 8
%75 = load i32, ptr %5, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8, ptr %74, i64 %76
%78 = load i32, ptr %6, align 4
%79 = sext i32 %78 to i64
%80 = sub i64 0, %79
%81 = getelementptr inbounds i8, ptr %77, i64 %80
%82 = getelementptr inbounds i8, ptr %81, i64 1
store ptr %82, ptr %7, align 8
%83 = load ptr, ptr %2, align 8
%84 = load i32, ptr %5, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i8, ptr %83, i64 %85
%87 = load i32, ptr %6, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i8, ptr %86, i64 %88
store ptr %89, ptr %8, align 8
br label %90
90: ; preds = %70, %64
store i32 0, ptr %6, align 4
br label %91
91: ; preds = %126, %90
%92 = load i32, ptr %5, align 4
%93 = load i32, ptr %6, align 4
%94 = sub nsw i32 %92, %93
%95 = icmp sge i32 %94, 0
br i1 %95, label %96, label %103
96: ; preds = %91
%97 = load i32, ptr %5, align 4
%98 = load i32, ptr %6, align 4
%99 = add nsw i32 %97, %98
%100 = add nsw i32 %99, 1
%101 = load i32, ptr %4, align 4
%102 = icmp slt i32 %100, %101
br label %103
103: ; preds = %96, %91
%104 = phi i1 [ false, %91 ], [ %102, %96 ]
br i1 %104, label %105, label %.loopexit
105: ; preds = %103
%106 = load ptr, ptr %2, align 8
%107 = load i32, ptr %5, align 4
%108 = load i32, ptr %6, align 4
%109 = sub nsw i32 %107, %108
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8, ptr %106, i64 %110
%112 = load i8, ptr %111, align 1
%113 = sext i8 %112 to i32
%114 = load ptr, ptr %2, align 8
%115 = load i32, ptr %5, align 4
%116 = load i32, ptr %6, align 4
%117 = add nsw i32 %115, %116
%118 = add nsw i32 %117, 1
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i8, ptr %114, i64 %119
%121 = load i8, ptr %120, align 1
%122 = sext i8 %121 to i32
%123 = icmp ne i32 %113, %122
br i1 %123, label %124, label %125
124: ; preds = %105
br label %129
125: ; preds = %105
br label %126
126: ; preds = %125
%127 = load i32, ptr %6, align 4
%128 = add nsw i32 %127, 1
store i32 %128, ptr %6, align 4
br label %91, !llvm.loop !9
.loopexit: ; preds = %103
br label %129
129: ; preds = %.loopexit, %124
%130 = load i32, ptr %6, align 4
%131 = mul nsw i32 2, %130
%132 = add nsw i32 %131, 2
%133 = load i32, ptr %3, align 4
%134 = icmp sgt i32 %132, %133
br i1 %134, label %135, label %156
135: ; preds = %129
%136 = load i32, ptr %6, align 4
%137 = mul nsw i32 2, %136
%138 = add nsw i32 %137, 2
store i32 %138, ptr %3, align 4
%139 = load ptr, ptr %2, align 8
%140 = load i32, ptr %5, align 4
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds i8, ptr %139, i64 %141
%143 = load i32, ptr %6, align 4
%144 = sext i32 %143 to i64
%145 = sub i64 0, %144
%146 = getelementptr inbounds i8, ptr %142, i64 %145
%147 = getelementptr inbounds i8, ptr %146, i64 1
store ptr %147, ptr %7, align 8
%148 = load ptr, ptr %2, align 8
%149 = load i32, ptr %5, align 4
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds i8, ptr %148, i64 %150
%152 = load i32, ptr %6, align 4
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds i8, ptr %151, i64 %153
%155 = getelementptr inbounds i8, ptr %154, i64 1
store ptr %155, ptr %8, align 8
br label %156
156: ; preds = %135, %129
br label %157
157: ; preds = %156
%158 = load i32, ptr %5, align 4
%159 = add nsw i32 %158, 1
store i32 %159, ptr %5, align 4
%160 = load i32, ptr %5, align 4
%161 = load i32, ptr %4, align 4
%162 = icmp slt i32 %160, %161
br i1 %162, label %27, label %._crit_edge4, !llvm.loop !10
._crit_edge4: ; preds = %157
br label %163
163: ; preds = %._crit_edge4, %23
%164 = load ptr, ptr %8, align 8
store i8 0, ptr %164, align 1
%165 = load ptr, ptr %7, align 8
ret ptr %165
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp8wob8gbn.c'
source_filename = "/tmp/tmp8wob8gbn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i32 @putchar(i32 noundef 15)
store i32 0, ptr %6, align 4
br label %8
8: ; preds = %18, %2
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %9, 16
br i1 %10, label %11, label %21
11: ; preds = %8
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%14 = sub nsw i32 15, %13
%15 = shl i32 %14, 4
%16 = add nsw i32 %12, %15
%17 = call i32 @putchar(i32 noundef %16)
br label %18
18: ; preds = %11
%19 = load i32, ptr %6, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %6, align 4
br label %8, !llvm.loop !6
21: ; preds = %8
%22 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @putchar(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8wob8gbn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i32 @putchar(i32 noundef 15)
store i32 0, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = icmp slt i32 %8, 16
br i1 %9, label %.lr.ph, label %22
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %17
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %6, align 4
%13 = sub nsw i32 15, %12
%14 = shl i32 %13, 4
%15 = add nsw i32 %11, %14
%16 = call i32 @putchar(i32 noundef %15)
br label %17
17: ; preds = %10
%18 = load i32, ptr %6, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %6, align 4
%21 = icmp slt i32 %20, 16
br i1 %21, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %22
22: ; preds = %._crit_edge, %2
%23 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @putchar(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpbkqffcoq.c'
source_filename = "/tmp/tmpbkqffcoq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s\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 [1000 x i8], align 16
store i32 0, ptr %1, align 4
br label %4
4: ; preds = %14, %0
%5 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%6 = call i32 @get_line(ptr noundef %5, i32 noundef 1000)
store i32 %6, ptr %2, align 4
%7 = icmp sgt i32 %6, 0
br i1 %7, label %8, label %15
8: ; preds = %4
%9 = load i32, ptr %2, align 4
%10 = icmp sgt i32 %9, 80
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%13 = call i32 @printf(ptr noundef @.str, ptr noundef %12)
br label %14
14: ; preds = %11, %8
br label %4, !llvm.loop !6
15: ; preds = %4
ret i32 0
}
declare i32 @get_line(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpbkqffcoq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s\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 [1000 x i8], align 16
store i32 0, ptr %1, align 4
%4 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%5 = call i32 @get_line(ptr noundef %4, i32 noundef 1000)
store i32 %5, ptr %2, align 4
%6 = icmp sgt i32 %5, 0
br i1 %6, label %.lr.ph, label %16
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %13
%8 = load i32, ptr %2, align 4
%9 = icmp sgt i32 %8, 80
br i1 %9, label %10, label %13
10: ; preds = %7
%11 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%12 = call i32 @printf(ptr noundef @.str, ptr noundef %11)
br label %13
13: ; preds = %10, %7
%14 = call i32 @get_line(ptr noundef %4, i32 noundef 1000)
store i32 %14, ptr %2, align 4
%15 = icmp sgt i32 %14, 0
br i1 %15, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %16
16: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @get_line(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpz8n_fu41.c'
source_filename = "/tmp/tmpz8n_fu41.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stringCompare(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %2, %32
%8 = load ptr, ptr %4, align 8
%9 = load i32, ptr %6, align 4
%10 = call i64 @loadCharacter(ptr noundef %8, i32 noundef %9)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %19
12: ; preds = %7
%13 = load ptr, ptr %5, align 8
%14 = load i32, ptr %6, align 4
%15 = call i64 @loadCharacter(ptr noundef %13, i32 noundef %14)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %12
store i32 1, ptr %3, align 4
br label %33
18: ; preds = %12
store i32 0, ptr %3, align 4
br label %33
19: ; preds = %7
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %6, align 4
%22 = call i64 @loadCharacter(ptr noundef %20, i32 noundef %21)
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %6, align 4
%25 = call i64 @loadCharacter(ptr noundef %23, i32 noundef %24)
%26 = icmp eq i64 %22, %25
br i1 %26, label %27, label %30
27: ; preds = %19
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %6, align 4
br label %31
30: ; preds = %19
store i32 0, ptr %3, align 4
br label %33
31: ; preds = %27
br label %32
32: ; preds = %31
br label %7
33: ; preds = %30, %18, %17
%34 = load i32, ptr %3, align 4
ret i32 %34
}
declare i64 @loadCharacter(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/tmpz8n_fu41.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stringCompare(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %6, align 4
%9 = call i64 @loadCharacter(ptr noundef %7, i32 noundef %8)
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %.lr.ph
.lr.ph: ; preds = %2
br label %18
._crit_edge: ; preds = %31
br label %11
11: ; preds = %._crit_edge, %2
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr %6, align 4
%14 = call i64 @loadCharacter(ptr noundef %12, i32 noundef %13)
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %11
store i32 1, ptr %3, align 4
br label %36
17: ; preds = %11
store i32 0, ptr %3, align 4
br label %36
18: ; preds = %.lr.ph, %31
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %6, align 4
%21 = call i64 @loadCharacter(ptr noundef %19, i32 noundef %20)
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %6, align 4
%24 = call i64 @loadCharacter(ptr noundef %22, i32 noundef %23)
%25 = icmp eq i64 %21, %24
br i1 %25, label %26, label %29
26: ; preds = %18
%27 = load i32, ptr %6, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %6, align 4
br label %30
29: ; preds = %18
store i32 0, ptr %3, align 4
br label %36
30: ; preds = %26
br label %31
31: ; preds = %30
%32 = load ptr, ptr %4, align 8
%33 = load i32, ptr %6, align 4
%34 = call i64 @loadCharacter(ptr noundef %32, i32 noundef %33)
%35 = icmp eq i64 %34, 0
br i1 %35, label %._crit_edge, label %18
36: ; preds = %29, %17, %16
%37 = load i32, ptr %3, align 4
ret i32 %37
}
declare i64 @loadCharacter(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/tmpvtxmchjq.c'
source_filename = "/tmp/tmpvtxmchjq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @OW_ReadBytes(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 i8, align 1
%12 = alloca [64 x i8], align 16
%13 = alloca i8, align 1
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i8 -1, ptr %11, align 1
store i32 0, ptr %10, align 4
br label %14
14: ; preds = %57, %3
%15 = load i32, ptr %10, align 4
%16 = load i32, ptr %7, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %60
18: ; preds = %14
store i8 0, ptr %13, align 1
store i32 0, ptr %9, align 4
br label %19
19: ; preds = %48, %18
%20 = load i32, ptr %9, align 4
%21 = icmp slt i32 %20, 8
br i1 %21, label %22, label %51
22: ; preds = %19
%23 = load i8, ptr %13, align 1
%24 = zext i8 %23 to i32
%25 = ashr i32 %24, 1
%26 = trunc i32 %25 to i8
store i8 %26, ptr %13, align 1
%27 = load i32, ptr %5, align 4
%28 = call i32 @write(i32 noundef %27, ptr noundef %11, i32 noundef 1)
%29 = call i32 @usleep(i32 noundef 500)
%30 = load i32, ptr %5, align 4
%31 = getelementptr inbounds [64 x i8], ptr %12, i64 0, i64 0
%32 = call i32 @read(i32 noundef %30, ptr noundef %31, i32 noundef 64)
store i32 %32, ptr %8, align 4
%33 = load i32, ptr %8, align 4
%34 = icmp sle i32 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %22
%36 = load i32, ptr %10, align 4
store i32 %36, ptr %4, align 4
br label %62
37: ; preds = %22
%38 = getelementptr inbounds [64 x i8], ptr %12, i64 0, i64 0
%39 = load i8, ptr %38, align 16
%40 = zext i8 %39 to i32
%41 = icmp eq i32 %40, 255
br i1 %41, label %42, label %47
42: ; preds = %37
%43 = load i8, ptr %13, align 1
%44 = zext i8 %43 to i32
%45 = or i32 %44, 128
%46 = trunc i32 %45 to i8
store i8 %46, ptr %13, align 1
br label %47
47: ; preds = %42, %37
br label %48
48: ; preds = %47
%49 = load i32, ptr %9, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %9, align 4
br label %19, !llvm.loop !6
51: ; preds = %19
%52 = load i8, ptr %13, align 1
%53 = load ptr, ptr %6, align 8
%54 = load i32, ptr %10, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %53, i64 %55
store i8 %52, ptr %56, align 1
br label %57
57: ; preds = %51
%58 = load i32, ptr %10, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %10, align 4
br label %14, !llvm.loop !8
60: ; preds = %14
%61 = load i32, ptr %10, align 4
store i32 %61, ptr %4, align 4
br label %62
62: ; preds = %60, %35
%63 = load i32, ptr %4, align 4
ret i32 %63
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @usleep(i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvtxmchjq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @OW_ReadBytes(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 i8, align 1
%12 = alloca [64 x i8], align 16
%13 = alloca i8, align 1
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i8 -1, ptr %11, align 1
store i32 0, ptr %10, align 4
%14 = load i32, ptr %10, align 4
%15 = load i32, ptr %7, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph2, label %63
.lr.ph2: ; preds = %3
br label %17
17: ; preds = %.lr.ph2, %57
store i8 0, ptr %13, align 1
store i32 0, ptr %9, align 4
%18 = load i32, ptr %9, align 4
%19 = icmp slt i32 %18, 8
br i1 %19, label %.lr.ph, label %51
.lr.ph: ; preds = %17
br label %20
20: ; preds = %.lr.ph, %46
%21 = load i8, ptr %13, align 1
%22 = zext i8 %21 to i32
%23 = ashr i32 %22, 1
%24 = trunc i32 %23 to i8
store i8 %24, ptr %13, align 1
%25 = load i32, ptr %5, align 4
%26 = call i32 @write(i32 noundef %25, ptr noundef %11, i32 noundef 1)
%27 = call i32 @usleep(i32 noundef 500)
%28 = load i32, ptr %5, align 4
%29 = getelementptr inbounds [64 x i8], ptr %12, i64 0, i64 0
%30 = call i32 @read(i32 noundef %28, ptr noundef %29, i32 noundef 64)
store i32 %30, ptr %8, align 4
%31 = load i32, ptr %8, align 4
%32 = icmp sle i32 %31, 0
br i1 %32, label %33, label %35
33: ; preds = %20
%34 = load i32, ptr %10, align 4
store i32 %34, ptr %4, align 4
br label %65
35: ; preds = %20
%36 = getelementptr inbounds [64 x i8], ptr %12, i64 0, i64 0
%37 = load i8, ptr %36, align 16
%38 = zext i8 %37 to i32
%39 = icmp eq i32 %38, 255
br i1 %39, label %40, label %45
40: ; preds = %35
%41 = load i8, ptr %13, align 1
%42 = zext i8 %41 to i32
%43 = or i32 %42, 128
%44 = trunc i32 %43 to i8
store i8 %44, ptr %13, align 1
br label %45
45: ; preds = %40, %35
br label %46
46: ; preds = %45
%47 = load i32, ptr %9, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %9, align 4
%49 = load i32, ptr %9, align 4
%50 = icmp slt i32 %49, 8
br i1 %50, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %46
br label %51
51: ; preds = %._crit_edge, %17
%52 = load i8, ptr %13, align 1
%53 = load ptr, ptr %6, align 8
%54 = load i32, ptr %10, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %53, i64 %55
store i8 %52, ptr %56, align 1
br label %57
57: ; preds = %51
%58 = load i32, ptr %10, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %10, align 4
%60 = load i32, ptr %10, align 4
%61 = load i32, ptr %7, align 4
%62 = icmp slt i32 %60, %61
br i1 %62, label %17, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %57
br label %63
63: ; preds = %._crit_edge3, %3
%64 = load i32, ptr %10, align 4
store i32 %64, ptr %4, align 4
br label %65
65: ; preds = %63, %33
%66 = load i32, ptr %4, align 4
ret i32 %66
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @usleep(i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp10zvlkup.c'
source_filename = "/tmp/tmp10zvlkup.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fetch(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
%15 = load i32, ptr %8, align 4
store i32 %15, ptr %12, align 4
br label %16
16: ; preds = %57, %5
%17 = load i32, ptr %12, align 4
%18 = load i32, ptr %9, align 4
%19 = icmp sle i32 %17, %18
br i1 %19, label %20, label %60
20: ; preds = %16
%21 = load ptr, ptr %10, align 8
%22 = load ptr, ptr %7, align 8
%23 = load i32, ptr %12, align 4
%24 = sub nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i64, ptr %22, i64 %25
%27 = load i64, ptr %26, align 8
%28 = call i32 @fseek(ptr noundef %21, i64 noundef %27, i32 noundef 0)
%29 = load ptr, ptr %7, align 8
%30 = load i32, ptr %12, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i64, ptr %29, i64 %31
%33 = load i64, ptr %32, align 8
%34 = load ptr, ptr %7, align 8
%35 = load i32, ptr %12, align 4
%36 = sub nsw i32 %35, 1
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i64, ptr %34, i64 %37
%39 = load i64, ptr %38, align 8
%40 = sub nsw i64 %33, %39
%41 = trunc i64 %40 to i32
store i32 %41, ptr %14, align 4
%42 = load ptr, ptr %11, align 8
%43 = load i32, ptr @stdout, align 4
%44 = call i32 @fputs(ptr noundef %42, i32 noundef %43)
store i32 0, ptr %13, align 4
br label %45
45: ; preds = %53, %20
%46 = load i32, ptr %13, align 4
%47 = load i32, ptr %14, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %49, label %56
49: ; preds = %45
%50 = load ptr, ptr %10, align 8
%51 = call i32 @getc(ptr noundef %50)
%52 = call i32 @putchar(i32 noundef %51)
br label %53
53: ; preds = %49
%54 = load i32, ptr %13, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %13, align 4
br label %45, !llvm.loop !6
56: ; preds = %45
br label %57
57: ; preds = %56
%58 = load i32, ptr %12, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %12, align 4
br label %16, !llvm.loop !8
60: ; preds = %16
%61 = load i32, ptr %6, align 4
ret i32 %61
}
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @fputs(ptr noundef, i32 noundef) #1
declare i32 @putchar(i32 noundef) #1
declare i32 @getc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp10zvlkup.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fetch(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
%15 = load i32, ptr %8, align 4
store i32 %15, ptr %12, align 4
%16 = load i32, ptr %12, align 4
%17 = load i32, ptr %9, align 4
%18 = icmp sle i32 %16, %17
br i1 %18, label %.lr.ph2, label %64
.lr.ph2: ; preds = %5
br label %19
19: ; preds = %.lr.ph2, %58
%20 = load ptr, ptr %10, align 8
%21 = load ptr, ptr %7, align 8
%22 = load i32, ptr %12, align 4
%23 = sub nsw i32 %22, 1
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i64, ptr %21, i64 %24
%26 = load i64, ptr %25, align 8
%27 = call i32 @fseek(ptr noundef %20, i64 noundef %26, i32 noundef 0)
%28 = load ptr, ptr %7, align 8
%29 = load i32, ptr %12, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i64, ptr %28, i64 %30
%32 = load i64, ptr %31, align 8
%33 = load ptr, ptr %7, align 8
%34 = load i32, ptr %12, align 4
%35 = sub nsw i32 %34, 1
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i64, ptr %33, i64 %36
%38 = load i64, ptr %37, align 8
%39 = sub nsw i64 %32, %38
%40 = trunc i64 %39 to i32
store i32 %40, ptr %14, align 4
%41 = load ptr, ptr %11, align 8
%42 = load i32, ptr @stdout, align 4
%43 = call i32 @fputs(ptr noundef %41, i32 noundef %42)
store i32 0, ptr %13, align 4
%44 = load i32, ptr %13, align 4
%45 = load i32, ptr %14, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %.lr.ph, label %57
.lr.ph: ; preds = %19
br label %47
47: ; preds = %.lr.ph, %51
%48 = load ptr, ptr %10, align 8
%49 = call i32 @getc(ptr noundef %48)
%50 = call i32 @putchar(i32 noundef %49)
br label %51
51: ; preds = %47
%52 = load i32, ptr %13, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %13, align 4
%54 = load i32, ptr %13, align 4
%55 = load i32, ptr %14, align 4
%56 = icmp slt i32 %54, %55
br i1 %56, label %47, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %51
br label %57
57: ; preds = %._crit_edge, %19
br label %58
58: ; preds = %57
%59 = load i32, ptr %12, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %12, align 4
%61 = load i32, ptr %12, align 4
%62 = load i32, ptr %9, align 4
%63 = icmp sle i32 %61, %62
br i1 %63, label %19, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %58
br label %64
64: ; preds = %._crit_edge3, %5
%65 = load i32, ptr %6, align 4
ret i32 %65
}
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @fputs(ptr noundef, i32 noundef) #1
declare i32 @putchar(i32 noundef) #1
declare i32 @getc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpm9hx2z2n.c'
source_filename = "/tmp/tmpm9hx2z2n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Decrypt(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 [4 x [4 x i32]], align 16
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %8
8: ; preds = %49, %2
%9 = load i32, ptr %5, align 4
%10 = icmp slt i32 %9, 16
br i1 %10, label %11, label %52
11: ; preds = %8
%12 = load i32, ptr %5, align 4
%13 = srem i32 %12, 2
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %31
15: ; preds = %11
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %5, align 4
%18 = ashr i32 %17, 1
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %16, i64 %19
%21 = load i32, ptr %20, align 4
%22 = and i32 %21, 15
%23 = load i32, ptr %5, align 4
%24 = sdiv i32 %23, 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [4 x [4 x i32]], ptr %7, i64 0, i64 %25
%27 = load i32, ptr %5, align 4
%28 = srem i32 %27, 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [4 x i32], ptr %26, i64 0, i64 %29
store i32 %22, ptr %30, align 4
br label %48
31: ; preds = %11
%32 = load ptr, ptr %3, align 8
%33 = load i32, ptr %5, align 4
%34 = ashr i32 %33, 1
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i32, ptr %32, i64 %35
%37 = load i32, ptr %36, align 4
%38 = ashr i32 %37, 4
%39 = and i32 %38, 15
%40 = load i32, ptr %5, align 4
%41 = sdiv i32 %40, 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [4 x [4 x i32]], ptr %7, i64 0, i64 %42
%44 = load i32, ptr %5, align 4
%45 = srem i32 %44, 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [4 x i32], ptr %43, i64 0, i64 %46
store i32 %39, ptr %47, align 4
br label %48
48: ; preds = %31, %15
br label %49
49: ; preds = %48
%50 = load i32, ptr %5, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %5, align 4
br label %8, !llvm.loop !6
52: ; preds = %8
store i32 11, ptr %5, align 4
br label %53
53: ; preds = %82, %52
%54 = load i32, ptr %5, align 4
%55 = icmp sge i32 %54, 0
br i1 %55, label %56, label %85
56: ; preds = %53
%57 = getelementptr inbounds [4 x [4 x i32]], ptr %7, i64 0, i64 0
%58 = load ptr, ptr %4, align 8
%59 = load i32, ptr %5, align 4
%60 = add nsw i32 %59, 1
%61 = call i32 @AddKey(ptr noundef %57, ptr noundef %58, i32 noundef %60)
store i32 3, ptr %6, align 4
br label %62
62: ; preds = %78, %56
%63 = load i32, ptr %6, align 4
%64 = icmp sge i32 %63, 0
br i1 %64, label %65, label %81
65: ; preds = %62
%66 = getelementptr inbounds [4 x [4 x i32]], ptr %7, i64 0, i64 0
%67 = call i32 @invMixColumn(ptr noundef %66)
%68 = getelementptr inbounds [4 x [4 x i32]], ptr %7, i64 0, i64 0
%69 = call i32 @invShiftRow(ptr noundef %68)
%70 = getelementptr inbounds [4 x [4 x i32]], ptr %7, i64 0, i64 0
%71 = call i32 @invSubCell(ptr noundef %70)
%72 = getelementptr inbounds [4 x [4 x i32]], ptr %7, i64 0, i64 0
%73 = load i32, ptr %5, align 4
%74 = mul nsw i32 %73, 4
%75 = load i32, ptr %6, align 4
%76 = add nsw i32 %74, %75
%77 = call i32 @AddConstants(ptr noundef %72, i32 noundef %76)
br label %78
78: ; preds = %65
%79 = load i32, ptr %6, align 4
%80 = add nsw i32 %79, -1
store i32 %80, ptr %6, align 4
br label %62, !llvm.loop !8
81: ; preds = %62
br label %82
82: ; preds = %81
%83 = load i32, ptr %5, align 4
%84 = add nsw i32 %83, -1
store i32 %84, ptr %5, align 4
br label %53, !llvm.loop !9
85: ; preds = %53
%86 = getelementptr inbounds [4 x [4 x i32]], ptr %7, i64 0, i64 0
%87 = load ptr, ptr %4, align 8
%88 = call i32 @AddKey(ptr noundef %86, ptr noundef %87, i32 noundef 0)
store i32 0, ptr %5, align 4
br label %89
89: ; preds = %125, %85
%90 = load i32, ptr %5, align 4
%91 = icmp slt i32 %90, 8
br i1 %91, label %92, label %128
92: ; preds = %89
%93 = load i32, ptr %5, align 4
%94 = mul nsw i32 2, %93
%95 = sdiv i32 %94, 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [4 x [4 x i32]], ptr %7, i64 0, i64 %96
%98 = load i32, ptr %5, align 4
%99 = mul nsw i32 2, %98
%100 = srem i32 %99, 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [4 x i32], ptr %97, i64 0, i64 %101
%103 = load i32, ptr %102, align 4
%104 = and i32 %103, 15
%105 = shl i32 %104, 4
%106 = load i32, ptr %5, align 4
%107 = mul nsw i32 2, %106
%108 = add nsw i32 %107, 1
%109 = sdiv i32 %108, 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [4 x [4 x i32]], ptr %7, i64 0, i64 %110
%112 = load i32, ptr %5, align 4
%113 = mul nsw i32 2, %112
%114 = add nsw i32 %113, 1
%115 = srem i32 %114, 4
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds [4 x i32], ptr %111, i64 0, i64 %116
%118 = load i32, ptr %117, align 4
%119 = and i32 %118, 15
%120 = or i32 %105, %119
%121 = load ptr, ptr %3, align 8
%122 = load i32, ptr %5, align 4
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds i32, ptr %121, i64 %123
store i32 %120, ptr %124, align 4
br label %125
125: ; preds = %92
%126 = load i32, ptr %5, align 4
%127 = add nsw i32 %126, 1
store i32 %127, ptr %5, align 4
br label %89, !llvm.loop !10
128: ; preds = %89
ret void
}
declare i32 @AddKey(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @invMixColumn(ptr noundef) #1
declare i32 @invShiftRow(ptr noundef) #1
declare i32 @invSubCell(ptr noundef) #1
declare i32 @AddConstants(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm9hx2z2n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Decrypt(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 [4 x [4 x i32]], align 16
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp slt i32 %8, 16
br i1 %9, label %.lr.ph, label %53
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %48
%11 = load i32, ptr %5, align 4
%12 = srem i32 %11, 2
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %30
14: ; preds = %10
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %5, align 4
%17 = ashr i32 %16, 1
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, ptr %15, i64 %18
%20 = load i32, ptr %19, align 4
%21 = and i32 %20, 15
%22 = load i32, ptr %5, align 4
%23 = sdiv i32 %22, 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [4 x [4 x i32]], ptr %7, i64 0, i64 %24
%26 = load i32, ptr %5, align 4
%27 = srem i32 %26, 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [4 x i32], ptr %25, i64 0, i64 %28
store i32 %21, ptr %29, align 4
br label %47
30: ; preds = %10
%31 = load ptr, ptr %3, align 8
%32 = load i32, ptr %5, align 4
%33 = ashr i32 %32, 1
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %31, i64 %34
%36 = load i32, ptr %35, align 4
%37 = ashr i32 %36, 4
%38 = and i32 %37, 15
%39 = load i32, ptr %5, align 4
%40 = sdiv i32 %39, 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [4 x [4 x i32]], ptr %7, i64 0, i64 %41
%43 = load i32, ptr %5, align 4
%44 = srem i32 %43, 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [4 x i32], ptr %42, i64 0, i64 %45
store i32 %38, ptr %46, align 4
br label %47
47: ; preds = %30, %14
br label %48
48: ; preds = %47
%49 = load i32, ptr %5, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %5, align 4
%51 = load i32, ptr %5, align 4
%52 = icmp slt i32 %51, 16
br i1 %52, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %48
br label %53
53: ; preds = %._crit_edge, %2
store i32 11, ptr %5, align 4
%54 = load i32, ptr %5, align 4
%55 = icmp sge i32 %54, 0
br i1 %55, label %.lr.ph5, label %88
.lr.ph5: ; preds = %53
br label %56
56: ; preds = %.lr.ph5, %83
%57 = getelementptr inbounds [4 x [4 x i32]], ptr %7, i64 0, i64 0
%58 = load ptr, ptr %4, align 8
%59 = load i32, ptr %5, align 4
%60 = add nsw i32 %59, 1
%61 = call i32 @AddKey(ptr noundef %57, ptr noundef %58, i32 noundef %60)
store i32 3, ptr %6, align 4
%62 = load i32, ptr %6, align 4
%63 = icmp sge i32 %62, 0
br i1 %63, label %.lr.ph2, label %82
.lr.ph2: ; preds = %56
br label %64
64: ; preds = %.lr.ph2, %77
%65 = getelementptr inbounds [4 x [4 x i32]], ptr %7, i64 0, i64 0
%66 = call i32 @invMixColumn(ptr noundef %65)
%67 = getelementptr inbounds [4 x [4 x i32]], ptr %7, i64 0, i64 0
%68 = call i32 @invShiftRow(ptr noundef %67)
%69 = getelementptr inbounds [4 x [4 x i32]], ptr %7, i64 0, i64 0
%70 = call i32 @invSubCell(ptr noundef %69)
%71 = getelementptr inbounds [4 x [4 x i32]], ptr %7, i64 0, i64 0
%72 = load i32, ptr %5, align 4
%73 = mul nsw i32 %72, 4
%74 = load i32, ptr %6, align 4
%75 = add nsw i32 %73, %74
%76 = call i32 @AddConstants(ptr noundef %71, i32 noundef %75)
br label %77
77: ; preds = %64
%78 = load i32, ptr %6, align 4
%79 = add nsw i32 %78, -1
store i32 %79, ptr %6, align 4
%80 = load i32, ptr %6, align 4
%81 = icmp sge i32 %80, 0
br i1 %81, label %64, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %77
br label %82
82: ; preds = %._crit_edge3, %56
br label %83
83: ; preds = %82
%84 = load i32, ptr %5, align 4
%85 = add nsw i32 %84, -1
store i32 %85, ptr %5, align 4
%86 = load i32, ptr %5, align 4
%87 = icmp sge i32 %86, 0
br i1 %87, label %56, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %83
br label %88
88: ; preds = %._crit_edge6, %53
%89 = getelementptr inbounds [4 x [4 x i32]], ptr %7, i64 0, i64 0
%90 = load ptr, ptr %4, align 8
%91 = call i32 @AddKey(ptr noundef %89, ptr noundef %90, i32 noundef 0)
store i32 0, ptr %5, align 4
%92 = load i32, ptr %5, align 4
%93 = icmp slt i32 %92, 8
br i1 %93, label %.lr.ph8, label %132
.lr.ph8: ; preds = %88
br label %94
94: ; preds = %.lr.ph8, %127
%95 = load i32, ptr %5, align 4
%96 = mul nsw i32 2, %95
%97 = sdiv i32 %96, 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [4 x [4 x i32]], ptr %7, i64 0, i64 %98
%100 = load i32, ptr %5, align 4
%101 = mul nsw i32 2, %100
%102 = srem i32 %101, 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [4 x i32], ptr %99, i64 0, i64 %103
%105 = load i32, ptr %104, align 4
%106 = and i32 %105, 15
%107 = shl i32 %106, 4
%108 = load i32, ptr %5, align 4
%109 = mul nsw i32 2, %108
%110 = add nsw i32 %109, 1
%111 = sdiv i32 %110, 4
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds [4 x [4 x i32]], ptr %7, i64 0, i64 %112
%114 = load i32, ptr %5, align 4
%115 = mul nsw i32 2, %114
%116 = add nsw i32 %115, 1
%117 = srem i32 %116, 4
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds [4 x i32], ptr %113, i64 0, i64 %118
%120 = load i32, ptr %119, align 4
%121 = and i32 %120, 15
%122 = or i32 %107, %121
%123 = load ptr, ptr %3, align 8
%124 = load i32, ptr %5, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds i32, ptr %123, i64 %125
store i32 %122, ptr %126, align 4
br label %127
127: ; preds = %94
%128 = load i32, ptr %5, align 4
%129 = add nsw i32 %128, 1
store i32 %129, ptr %5, align 4
%130 = load i32, ptr %5, align 4
%131 = icmp slt i32 %130, 8
br i1 %131, label %94, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %127
br label %132
132: ; preds = %._crit_edge9, %88
ret void
}
declare i32 @AddKey(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @invMixColumn(ptr noundef) #1
declare i32 @invShiftRow(ptr noundef) #1
declare i32 @invSubCell(ptr noundef) #1
declare i32 @AddConstants(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpu8ivzjov.c'
source_filename = "/tmp/tmpu8ivzjov.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @satazel(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca [3 x double], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store double 0.000000e+00, ptr %7, align 8
store double 0x3FF921FB54442D18, ptr %8, align 8
%10 = load ptr, ptr %4, align 8
%11 = getelementptr inbounds double, ptr %10, i64 2
%12 = load double, ptr %11, align 8
%13 = fcmp ogt double %12, 0xC15854A640000000
br i1 %13, label %14, label %42
14: ; preds = %3
%15 = load ptr, ptr %4, align 8
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 0
%18 = call i32 @ecef2enu(ptr noundef %15, ptr noundef %16, ptr noundef %17)
%19 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 0
%20 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 0
%21 = call i32 @dot(ptr noundef %19, ptr noundef %20, i32 noundef 2)
%22 = sitofp i32 %21 to double
%23 = fcmp olt double %22, 0x3D719799812DEA11
br i1 %23, label %24, label %25
24: ; preds = %14
br label %31
25: ; preds = %14
%26 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 0
%27 = load double, ptr %26, align 16
%28 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 1
%29 = load double, ptr %28, align 8
%30 = call double @atan2(double noundef %27, double noundef %29) #3
br label %31
31: ; preds = %25, %24
%32 = phi double [ 0.000000e+00, %24 ], [ %30, %25 ]
store double %32, ptr %7, align 8
%33 = load double, ptr %7, align 8
%34 = fcmp olt double %33, 0.000000e+00
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = load double, ptr %7, align 8
%37 = fadd double %36, 0x401921FB54442D18
store double %37, ptr %7, align 8
br label %38
38: ; preds = %35, %31
%39 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 2
%40 = load double, ptr %39, align 16
%41 = call double @asin(double noundef %40) #3
store double %41, ptr %8, align 8
br label %42
42: ; preds = %38, %3
%43 = load ptr, ptr %6, align 8
%44 = icmp ne ptr %43, null
br i1 %44, label %45, label %52
45: ; preds = %42
%46 = load double, ptr %7, align 8
%47 = load ptr, ptr %6, align 8
%48 = getelementptr inbounds double, ptr %47, i64 0
store double %46, ptr %48, align 8
%49 = load double, ptr %8, align 8
%50 = load ptr, ptr %6, align 8
%51 = getelementptr inbounds double, ptr %50, i64 1
store double %49, ptr %51, align 8
br label %52
52: ; preds = %45, %42
%53 = load double, ptr %8, align 8
ret double %53
}
declare i32 @ecef2enu(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @dot(ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: nounwind
declare double @atan2(double noundef, double noundef) #2
; Function Attrs: nounwind
declare double @asin(double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu8ivzjov.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @satazel(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca [3 x double], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store double 0.000000e+00, ptr %7, align 8
store double 0x3FF921FB54442D18, ptr %8, align 8
%10 = load ptr, ptr %4, align 8
%11 = getelementptr inbounds double, ptr %10, i64 2
%12 = load double, ptr %11, align 8
%13 = fcmp ogt double %12, 0xC15854A640000000
br i1 %13, label %14, label %42
14: ; preds = %3
%15 = load ptr, ptr %4, align 8
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 0
%18 = call i32 @ecef2enu(ptr noundef %15, ptr noundef %16, ptr noundef %17)
%19 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 0
%20 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 0
%21 = call i32 @dot(ptr noundef %19, ptr noundef %20, i32 noundef 2)
%22 = sitofp i32 %21 to double
%23 = fcmp olt double %22, 0x3D719799812DEA11
br i1 %23, label %24, label %25
24: ; preds = %14
br label %31
25: ; preds = %14
%26 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 0
%27 = load double, ptr %26, align 16
%28 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 1
%29 = load double, ptr %28, align 8
%30 = call double @atan2(double noundef %27, double noundef %29) #3
br label %31
31: ; preds = %25, %24
%32 = phi double [ 0.000000e+00, %24 ], [ %30, %25 ]
store double %32, ptr %7, align 8
%33 = load double, ptr %7, align 8
%34 = fcmp olt double %33, 0.000000e+00
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = load double, ptr %7, align 8
%37 = fadd double %36, 0x401921FB54442D18
store double %37, ptr %7, align 8
br label %38
38: ; preds = %35, %31
%39 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 2
%40 = load double, ptr %39, align 16
%41 = call double @asin(double noundef %40) #3
store double %41, ptr %8, align 8
br label %42
42: ; preds = %38, %3
%43 = load ptr, ptr %6, align 8
%44 = icmp ne ptr %43, null
br i1 %44, label %45, label %52
45: ; preds = %42
%46 = load double, ptr %7, align 8
%47 = load ptr, ptr %6, align 8
%48 = getelementptr inbounds double, ptr %47, i64 0
store double %46, ptr %48, align 8
%49 = load double, ptr %8, align 8
%50 = load ptr, ptr %6, align 8
%51 = getelementptr inbounds double, ptr %50, i64 1
store double %49, ptr %51, align 8
br label %52
52: ; preds = %45, %42
%53 = load double, ptr %8, align 8
ret double %53
}
declare i32 @ecef2enu(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @dot(ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: nounwind
declare double @atan2(double noundef, double noundef) #2
; Function Attrs: nounwind
declare double @asin(double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpoh1jutva.c'
source_filename = "/tmp/tmpoh1jutva.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [231 x i8] c"This program computes the sum of the squares of integers in a range.\0AThe lower bound should not be less than %ld and \0A the upper bound should not be more than %ld .\0AEnter the limits (enter 0 for both limits to quit):\0Alower limit: \00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"upper limit: \00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Please try again.\0A\00", align 1
@.str.3 = private unnamed_addr constant [40 x i8] c"The sum of the squares of the integers \00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"from %ld to %ld is %g\0A\00", align 1
@.str.5 = private unnamed_addr constant [53 x i8] c"Enter the limits (enter 0 for both limits to quit):\0A\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"lower limit: \00", align 1
@.str.7 = private unnamed_addr constant [7 x i8] c"Done.\0A\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 double, align 8
store i32 0, ptr %1, align 4
store i64 -10000000, ptr %2, align 8
store i64 10000000, ptr %3, align 8
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef -10000000, i64 noundef 10000000)
%8 = call i64 (...) @get_long()
store i64 %8, ptr %4, align 8
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%10 = call i64 (...) @get_long()
store i64 %10, ptr %5, align 8
br label %11
11: ; preds = %35, %0
%12 = load i64, ptr %4, align 8
%13 = icmp ne i64 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %11
%15 = load i64, ptr %5, align 8
%16 = icmp ne i64 %15, 0
br label %17
17: ; preds = %14, %11
%18 = phi i1 [ true, %11 ], [ %16, %14 ]
br i1 %18, label %19, label %41
19: ; preds = %17
%20 = load i64, ptr %4, align 8
%21 = load i64, ptr %5, align 8
%22 = call i64 @bad_limits(i64 noundef %20, i64 noundef %21, i64 noundef -10000000, i64 noundef 10000000)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %19
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %35
26: ; preds = %19
%27 = load i64, ptr %4, align 8
%28 = load i64, ptr %5, align 8
%29 = call double @sum_squares(i64 noundef %27, i64 noundef %28)
store double %29, ptr %6, align 8
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%31 = load i64, ptr %4, align 8
%32 = load i64, ptr %5, align 8
%33 = load double, ptr %6, align 8
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i64 noundef %31, i64 noundef %32, double noundef %33)
br label %35
35: ; preds = %26, %24
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%38 = call i64 (...) @get_long()
store i64 %38, ptr %4, align 8
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%40 = call i64 (...) @get_long()
store i64 %40, ptr %5, align 8
br label %11, !llvm.loop !6
41: ; preds = %17
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @get_long(...) #1
declare i64 @bad_limits(i64 noundef, i64 noundef, i64 noundef, i64 noundef) #1
declare double @sum_squares(i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoh1jutva.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [231 x i8] c"This program computes the sum of the squares of integers in a range.\0AThe lower bound should not be less than %ld and \0A the upper bound should not be more than %ld .\0AEnter the limits (enter 0 for both limits to quit):\0Alower limit: \00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"upper limit: \00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Please try again.\0A\00", align 1
@.str.3 = private unnamed_addr constant [40 x i8] c"The sum of the squares of the integers \00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"from %ld to %ld is %g\0A\00", align 1
@.str.5 = private unnamed_addr constant [53 x i8] c"Enter the limits (enter 0 for both limits to quit):\0A\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"lower limit: \00", align 1
@.str.7 = private unnamed_addr constant [7 x i8] c"Done.\0A\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 double, align 8
store i32 0, ptr %1, align 4
store i64 -10000000, ptr %2, align 8
store i64 10000000, ptr %3, align 8
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef -10000000, i64 noundef 10000000)
%8 = call i64 (...) @get_long()
store i64 %8, ptr %4, align 8
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%10 = call i64 (...) @get_long()
store i64 %10, ptr %5, align 8
br label %11
11: ; preds = %35, %0
%12 = load i64, ptr %4, align 8
%13 = icmp ne i64 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %11
%15 = load i64, ptr %5, align 8
%16 = icmp ne i64 %15, 0
br label %17
17: ; preds = %14, %11
%18 = phi i1 [ true, %11 ], [ %16, %14 ]
br i1 %18, label %19, label %41
19: ; preds = %17
%20 = load i64, ptr %4, align 8
%21 = load i64, ptr %5, align 8
%22 = call i64 @bad_limits(i64 noundef %20, i64 noundef %21, i64 noundef -10000000, i64 noundef 10000000)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %19
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %35
26: ; preds = %19
%27 = load i64, ptr %4, align 8
%28 = load i64, ptr %5, align 8
%29 = call double @sum_squares(i64 noundef %27, i64 noundef %28)
store double %29, ptr %6, align 8
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%31 = load i64, ptr %4, align 8
%32 = load i64, ptr %5, align 8
%33 = load double, ptr %6, align 8
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i64 noundef %31, i64 noundef %32, double noundef %33)
br label %35
35: ; preds = %26, %24
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%38 = call i64 (...) @get_long()
store i64 %38, ptr %4, align 8
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%40 = call i64 (...) @get_long()
store i64 %40, ptr %5, align 8
br label %11, !llvm.loop !6
41: ; preds = %17
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @get_long(...) #1
declare i64 @bad_limits(i64 noundef, i64 noundef, i64 noundef, i64 noundef) #1
declare double @sum_squares(i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpbff5acyb.c'
source_filename = "/tmp/tmpbff5acyb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AF_UNSPEC = dso_local global i32 0, align 4
@AI_PASSIVE = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbff5acyb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AF_UNSPEC = dso_local global i32 0, align 4
@AI_PASSIVE = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgl80ig1_.c'
source_filename = "/tmp/tmpgl80ig1_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"utilization\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"stop\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @hplba_stop(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 @write_lba_attribute(ptr noundef %3, ptr noundef @.str, ptr noundef @.str.1)
ret i32 %4
}
declare i32 @write_lba_attribute(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/tmpgl80ig1_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"utilization\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"stop\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @hplba_stop(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 @write_lba_attribute(ptr noundef %3, ptr noundef @.str, ptr noundef @.str.1)
ret i32 %4
}
declare i32 @write_lba_attribute(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/tmp_buogffo.c'
source_filename = "/tmp/tmp_buogffo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [57 x i8] c"\09------------------------------------------------------\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"\091 - Inserir novo site\0A\00", align 1
@.str.2 = private unnamed_addr constant [39 x i8] c"\092 - Inserir palavra chave em um site\0A\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"\093 - Remover um site da lista\0A\00", align 1
@.str.4 = private unnamed_addr constant [38 x i8] c"\094 - Atualizar relevancia de um site\0A\00", align 1
@.str.5 = private unnamed_addr constant [19 x i8] c"\095 - Exibir lista\0A\00", align 1
@.str.6 = private unnamed_addr constant [58 x i8] c"\096 - Buscar por palavra chave e exibir sugestao de sites\0A\00", align 1
@.str.7 = private unnamed_addr constant [45 x i8] c"\097 - Liberar memoria e finalizar o programa\0A\00", align 1
@.str.8 = private unnamed_addr constant [32 x i8] c"\0A\09>> Digite uma opcao (1 - 7): \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printMenu() #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)
%10 = 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/tmp_buogffo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [57 x i8] c"\09------------------------------------------------------\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"\091 - Inserir novo site\0A\00", align 1
@.str.2 = private unnamed_addr constant [39 x i8] c"\092 - Inserir palavra chave em um site\0A\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"\093 - Remover um site da lista\0A\00", align 1
@.str.4 = private unnamed_addr constant [38 x i8] c"\094 - Atualizar relevancia de um site\0A\00", align 1
@.str.5 = private unnamed_addr constant [19 x i8] c"\095 - Exibir lista\0A\00", align 1
@.str.6 = private unnamed_addr constant [58 x i8] c"\096 - Buscar por palavra chave e exibir sugestao de sites\0A\00", align 1
@.str.7 = private unnamed_addr constant [45 x i8] c"\097 - Liberar memoria e finalizar o programa\0A\00", align 1
@.str.8 = private unnamed_addr constant [32 x i8] c"\0A\09>> Digite uma opcao (1 - 7): \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printMenu() #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)
%10 = 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/tmptcpynsnl.c'
source_filename = "/tmp/tmptcpynsnl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 i32 @dollar() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @peekList()
%3 = call i64 @strcmp(i32 noundef %2, ptr noundef @.str)
%4 = icmp ne i64 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %0
store i32 0, ptr %1, align 4
br label %8
6: ; preds = %0
%7 = call i32 (...) @dequeueList()
store i32 1, ptr %1, align 4
br label %8
8: ; preds = %6, %5
%9 = load i32, ptr %1, align 4
ret i32 %9
}
declare i64 @strcmp(i32 noundef, ptr noundef) #1
declare i32 @peekList(...) #1
declare i32 @dequeueList(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptcpynsnl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 i32 @dollar() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @peekList()
%3 = call i64 @strcmp(i32 noundef %2, ptr noundef @.str)
%4 = icmp ne i64 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %0
store i32 0, ptr %1, align 4
br label %8
6: ; preds = %0
%7 = call i32 (...) @dequeueList()
store i32 1, ptr %1, align 4
br label %8
8: ; preds = %6, %5
%9 = load i32, ptr %1, align 4
ret i32 %9
}
declare i64 @strcmp(i32 noundef, ptr noundef) #1
declare i32 @peekList(...) #1
declare i32 @dequeueList(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp02869j4w.c'
source_filename = "/tmp/tmp02869j4w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@S_IFMT = 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/tmp02869j4w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@S_IFMT = 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/tmpbyddggqy.c'
source_filename = "/tmp/tmpbyddggqy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fstatat(i32 noundef %0, ptr noalias noundef %1, ptr noalias noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%12 = load ptr, ptr %6, align 8
store ptr %12, ptr %10, align 8
%13 = load ptr, ptr %7, align 8
store ptr %13, ptr %11, align 8
%14 = load i32, ptr %5, align 4
%15 = load ptr, ptr %10, align 8
%16 = load ptr, ptr %11, align 8
%17 = load i32, ptr %8, align 4
%18 = call i32 @__fxstatat(i32 noundef 3, i32 noundef %14, ptr noundef %15, ptr noundef %16, i32 noundef %17)
store i32 %18, ptr %9, align 4
%19 = load i32, ptr %9, align 4
ret i32 %19
}
declare i32 @__fxstatat(i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbyddggqy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fstatat(i32 noundef %0, ptr noalias noundef %1, ptr noalias noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%12 = load ptr, ptr %6, align 8
store ptr %12, ptr %10, align 8
%13 = load ptr, ptr %7, align 8
store ptr %13, ptr %11, align 8
%14 = load i32, ptr %5, align 4
%15 = load ptr, ptr %10, align 8
%16 = load ptr, ptr %11, align 8
%17 = load i32, ptr %8, align 4
%18 = call i32 @__fxstatat(i32 noundef 3, i32 noundef %14, ptr noundef %15, ptr noundef %16, i32 noundef %17)
store i32 %18, ptr %9, align 4
%19 = load i32, ptr %9, align 4
ret i32 %19
}
declare i32 @__fxstatat(i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwew3vyev.c'
source_filename = "/tmp/tmpwew3vyev.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGINT = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sighandler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = load i32, ptr @SIGINT, align 4
%5 = icmp eq i32 %3, %4
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 @exit(i32 noundef 0) #2
unreachable
8: ; preds = %1
ret void
}
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwew3vyev.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGINT = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sighandler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = load i32, ptr @SIGINT, align 4
%5 = icmp eq i32 %3, %4
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 @exit(i32 noundef 0) #2
unreachable
8: ; preds = %1
ret void
}
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfpiz6e9d.c'
source_filename = "/tmp/tmpfpiz6e9d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pic_init() #0 {
%1 = call i32 @outportb(i32 noundef 32, i32 noundef 17)
%2 = call i32 @outportb(i32 noundef 160, i32 noundef 17)
%3 = call i32 @outportb(i32 noundef 33, i32 noundef 32)
%4 = call i32 @outportb(i32 noundef 161, i32 noundef 40)
%5 = call i32 @outportb(i32 noundef 33, i32 noundef 4)
%6 = call i32 @outportb(i32 noundef 161, i32 noundef 2)
%7 = call i32 @outportb(i32 noundef 33, i32 noundef 13)
%8 = call i32 @outportb(i32 noundef 161, i32 noundef 9)
%9 = call i32 @outportb(i32 noundef 33, i32 noundef 255)
ret void
}
declare i32 @outportb(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/tmpfpiz6e9d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pic_init() #0 {
%1 = call i32 @outportb(i32 noundef 32, i32 noundef 17)
%2 = call i32 @outportb(i32 noundef 160, i32 noundef 17)
%3 = call i32 @outportb(i32 noundef 33, i32 noundef 32)
%4 = call i32 @outportb(i32 noundef 161, i32 noundef 40)
%5 = call i32 @outportb(i32 noundef 33, i32 noundef 4)
%6 = call i32 @outportb(i32 noundef 161, i32 noundef 2)
%7 = call i32 @outportb(i32 noundef 33, i32 noundef 13)
%8 = call i32 @outportb(i32 noundef 161, i32 noundef 9)
%9 = call i32 @outportb(i32 noundef 33, i32 noundef 255)
ret void
}
declare i32 @outportb(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/tmphl_4ilu0.c'
source_filename = "/tmp/tmphl_4ilu0.c"
target datalayout = "e-m:e-p270: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/tmphl_4ilu0.c"
target datalayout = "e-m:e-p270: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/tmpricoupvo.c'
source_filename = "/tmp/tmpricoupvo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%i %i\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"divisa\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%s%s\0A\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"N\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"S\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"E\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"O\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %7
7: ; preds = %41, %0
%8 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
%9 = load i32, ptr %2, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %42
11: ; preds = %7
%12 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3, ptr noundef %4)
br label %13
13: ; preds = %40, %11
%14 = load i32, ptr %2, align 4
%15 = add nsw i32 %14, -1
store i32 %15, ptr %2, align 4
%16 = icmp ne i32 %14, 0
br i1 %16, label %17, label %41
17: ; preds = %13
%18 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %5, ptr noundef %6)
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %3, align 4
%21 = icmp eq i32 %19, %20
br i1 %21, label %26, label %22
22: ; preds = %17
%23 = load i32, ptr %6, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp eq i32 %23, %24
br i1 %25, label %26, label %28
26: ; preds = %22, %17
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %40
28: ; preds = %22
%29 = load i32, ptr %6, align 4
%30 = load i32, ptr %4, align 4
%31 = icmp sgt i32 %29, %30
%32 = zext i1 %31 to i64
%33 = select i1 %31, ptr @.str.4, ptr @.str.5
%34 = load i32, ptr %5, align 4
%35 = load i32, ptr %3, align 4
%36 = icmp sgt i32 %34, %35
%37 = zext i1 %36 to i64
%38 = select i1 %36, ptr @.str.6, ptr @.str.7
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %33, ptr noundef %38)
br label %40
40: ; preds = %28, %26
br label %13, !llvm.loop !6
41: ; preds = %13
br label %7, !llvm.loop !8
42: ; preds = %7
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpricoupvo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%i %i\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"divisa\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%s%s\0A\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"N\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"S\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"E\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"O\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
%8 = load i32, ptr %2, align 4
%9 = icmp ne i32 %8, 0
br i1 %9, label %.lr.ph2, label %46
.lr.ph2: ; preds = %0
br label %10
10: ; preds = %.lr.ph2, %42
%11 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3, ptr noundef %4)
%12 = load i32, ptr %2, align 4
%13 = add nsw i32 %12, -1
store i32 %13, ptr %2, align 4
%14 = icmp ne i32 %12, 0
br i1 %14, label %.lr.ph, label %42
.lr.ph: ; preds = %10
br label %15
15: ; preds = %.lr.ph, %38
%16 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %5, ptr noundef %6)
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %3, align 4
%19 = icmp eq i32 %17, %18
br i1 %19, label %24, label %20
20: ; preds = %15
%21 = load i32, ptr %6, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp eq i32 %21, %22
br i1 %23, label %24, label %26
24: ; preds = %20, %15
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %38
26: ; preds = %20
%27 = load i32, ptr %6, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp sgt i32 %27, %28
%30 = zext i1 %29 to i64
%31 = select i1 %29, ptr @.str.4, ptr @.str.5
%32 = load i32, ptr %5, align 4
%33 = load i32, ptr %3, align 4
%34 = icmp sgt i32 %32, %33
%35 = zext i1 %34 to i64
%36 = select i1 %34, ptr @.str.6, ptr @.str.7
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %31, ptr noundef %36)
br label %38
38: ; preds = %26, %24
%39 = load i32, ptr %2, align 4
%40 = add nsw i32 %39, -1
store i32 %40, ptr %2, align 4
%41 = icmp ne i32 %39, 0
br i1 %41, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %42
42: ; preds = %._crit_edge, %10
%43 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
%44 = load i32, ptr %2, align 4
%45 = icmp ne i32 %44, 0
br i1 %45, label %10, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %42
br label %46
46: ; preds = %._crit_edge3, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpa09r_1oo.c'
source_filename = "/tmp/tmpa09r_1oo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" %c\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%02x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @str_format_hex(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = mul nsw i32 %8, 2
store i32 %9, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = sext i32 %10 to i64
%12 = mul i64 1, %11
%13 = trunc i64 %12 to i32
%14 = call ptr @malloc(i32 noundef %13)
store ptr %14, ptr %6, align 8
store i32 0, ptr %7, align 4
br label %15
15: ; preds = %52, %2
%16 = load i32, ptr %7, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %55
19: ; preds = %15
%20 = load ptr, ptr %3, 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
%25 = call i64 @isalpha(i8 noundef signext %24)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %39
27: ; preds = %19
%28 = load ptr, ptr %6, align 8
%29 = load i32, ptr %7, align 4
%30 = mul nsw i32 %29, 2
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %28, i64 %31
%33 = load ptr, ptr %3, align 8
%34 = load i32, ptr %7, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = load i8, ptr %36, align 1
%38 = call i32 @sprintf(ptr noundef %32, ptr noundef @.str, i8 noundef signext %37)
br label %51
39: ; preds = %19
%40 = load ptr, ptr %6, align 8
%41 = load i32, ptr %7, align 4
%42 = mul nsw i32 %41, 2
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %40, i64 %43
%45 = load ptr, ptr %3, align 8
%46 = load i32, ptr %7, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, ptr %45, i64 %47
%49 = load i8, ptr %48, align 1
%50 = call i32 @sprintf(ptr noundef %44, ptr noundef @.str.1, i8 noundef signext %49)
br label %51
51: ; preds = %39, %27
br label %52
52: ; preds = %51
%53 = load i32, ptr %7, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %7, align 4
br label %15, !llvm.loop !6
55: ; preds = %15
%56 = load ptr, ptr %6, align 8
ret ptr %56
}
declare ptr @malloc(i32 noundef) #1
declare i64 @isalpha(i8 noundef signext) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa09r_1oo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" %c\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%02x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @str_format_hex(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = mul nsw i32 %8, 2
store i32 %9, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = sext i32 %10 to i64
%12 = mul i64 1, %11
%13 = trunc i64 %12 to i32
%14 = call ptr @malloc(i32 noundef %13)
store ptr %14, ptr %6, align 8
store i32 0, ptr %7, align 4
%15 = load i32, ptr %7, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %57
.lr.ph: ; preds = %2
br label %18
18: ; preds = %.lr.ph, %51
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
%23 = load i8, ptr %22, align 1
%24 = call i64 @isalpha(i8 noundef signext %23)
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %38
26: ; preds = %18
%27 = load ptr, ptr %6, align 8
%28 = load i32, ptr %7, align 4
%29 = mul nsw i32 %28, 2
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %27, i64 %30
%32 = load ptr, ptr %3, align 8
%33 = load i32, ptr %7, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
%36 = load i8, ptr %35, align 1
%37 = call i32 @sprintf(ptr noundef %31, ptr noundef @.str, i8 noundef signext %36)
br label %50
38: ; preds = %18
%39 = load ptr, ptr %6, align 8
%40 = load i32, ptr %7, align 4
%41 = mul nsw i32 %40, 2
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %39, i64 %42
%44 = load ptr, ptr %3, align 8
%45 = load i32, ptr %7, 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 i32 @sprintf(ptr noundef %43, ptr noundef @.str.1, i8 noundef signext %48)
br label %50
50: ; preds = %38, %26
br label %51
51: ; preds = %50
%52 = load i32, ptr %7, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %7, align 4
%54 = load i32, ptr %7, align 4
%55 = load i32, ptr %4, align 4
%56 = icmp slt i32 %54, %55
br i1 %56, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %51
br label %57
57: ; preds = %._crit_edge, %2
%58 = load ptr, ptr %6, align 8
ret ptr %58
}
declare ptr @malloc(i32 noundef) #1
declare i64 @isalpha(i8 noundef signext) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpmz5epoas.c'
source_filename = "/tmp/tmpmz5epoas.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%02x \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @put_byte(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %19, %2
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %22
11: ; preds = %7
%12 = load ptr, ptr %3, align 8
%13 = load i8, ptr %12, align 1
%14 = zext i8 %13 to i32
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = call i32 @printf(ptr noundef @.str, i32 noundef %15)
%17 = load ptr, ptr %3, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %3, align 8
br label %19
19: ; preds = %11
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %5, align 4
br label %7, !llvm.loop !6
22: ; preds = %7
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmz5epoas.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%02x \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @put_byte(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph, label %24
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %18
%11 = load ptr, ptr %3, align 8
%12 = load i8, ptr %11, align 1
%13 = zext i8 %12 to i32
store i32 %13, ptr %6, align 4
%14 = load i32, ptr %6, align 4
%15 = call i32 @printf(ptr noundef @.str, i32 noundef %14)
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds i8, ptr %16, i32 1
store ptr %17, ptr %3, align 8
br label %18
18: ; preds = %10
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4
%21 = load i32, ptr %5, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %24
24: ; preds = %._crit_edge, %2
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpzmyjkmn8.c'
source_filename = "/tmp/tmpzmyjkmn8.c"
target datalayout = "e-m:e-p270: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/tmpzmyjkmn8.c"
target datalayout = "e-m:e-p270: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/tmpzosbpjf_.c'
source_filename = "/tmp/tmpzosbpjf_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@NAN = dso_local global float 0.000000e+00, align 4
@INFINITY = dso_local global float 0.000000e+00, align 4
@HUGE_VALF = dso_local global float 0.000000e+00, align 4
@FP_NAN = dso_local global i64 0, align 8
@FP_INFINITE = dso_local global i64 0, align 8
@FP_NORMAL = dso_local global i64 0, align 8
@FP_ZERO = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
store i32 0, ptr %1, align 4
%7 = load float, ptr @NAN, align 4
store float %7, ptr %2, align 4
%8 = load float, ptr @INFINITY, align 4
store float %8, ptr %3, align 4
%9 = load float, ptr @HUGE_VALF, align 4
store float %9, ptr %4, align 4
store float 0x3810000000000000, ptr %5, align 4
store float 0.000000e+00, ptr %6, align 4
%10 = load float, ptr %2, align 4
%11 = call i64 @fpclassify(float noundef %10)
%12 = load i64, ptr @FP_NAN, align 8
%13 = icmp ne i64 %11, %12
br i1 %13, label %14, label %16
14: ; preds = %0
%15 = call i32 (...) @abort() #3
unreachable
16: ; preds = %0
%17 = load float, ptr %3, align 4
%18 = call i64 @fpclassify(float noundef %17)
%19 = load i64, ptr @FP_INFINITE, align 8
%20 = icmp ne i64 %18, %19
br i1 %20, label %21, label %23
21: ; preds = %16
%22 = call i32 (...) @abort() #3
unreachable
23: ; preds = %16
%24 = load float, ptr %4, align 4
%25 = call i64 @fpclassify(float noundef %24)
%26 = load i64, ptr @FP_INFINITE, align 8
%27 = icmp ne i64 %25, %26
br i1 %27, label %28, label %30
28: ; preds = %23
%29 = call i32 (...) @abort() #3
unreachable
30: ; preds = %23
%31 = load float, ptr %5, align 4
%32 = call i64 @fpclassify(float noundef %31)
%33 = load i64, ptr @FP_NORMAL, align 8
%34 = icmp ne i64 %32, %33
br i1 %34, label %35, label %37
35: ; preds = %30
%36 = call i32 (...) @abort() #3
unreachable
37: ; preds = %30
%38 = load float, ptr %6, align 4
%39 = call i64 @fpclassify(float noundef %38)
%40 = load i64, ptr @FP_ZERO, align 8
%41 = icmp ne i64 %39, %40
br i1 %41, label %42, label %44
42: ; preds = %37
%43 = call i32 (...) @abort() #3
unreachable
44: ; preds = %37
%45 = load float, ptr %2, align 4
%46 = call i64 @isnan(float noundef %45)
%47 = icmp ne i64 %46, 0
br i1 %47, label %50, label %48
48: ; preds = %44
%49 = call i32 (...) @abort() #3
unreachable
50: ; preds = %44
%51 = load float, ptr %3, align 4
%52 = call i64 @isnan(float noundef %51)
%53 = icmp ne i64 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %50
%55 = call i32 (...) @abort() #3
unreachable
56: ; preds = %50
%57 = load float, ptr %4, align 4
%58 = call i64 @isnan(float noundef %57)
%59 = icmp ne i64 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %56
%61 = call i32 (...) @abort() #3
unreachable
62: ; preds = %56
%63 = load float, ptr %5, align 4
%64 = call i64 @isnan(float noundef %63)
%65 = icmp ne i64 %64, 0
br i1 %65, label %66, label %68
66: ; preds = %62
%67 = call i32 (...) @abort() #3
unreachable
68: ; preds = %62
%69 = load float, ptr %6, align 4
%70 = call i64 @isnan(float noundef %69)
%71 = icmp ne i64 %70, 0
br i1 %71, label %72, label %74
72: ; preds = %68
%73 = call i32 (...) @abort() #3
unreachable
74: ; preds = %68
%75 = load float, ptr %2, align 4
%76 = call i64 @isinf(float noundef %75)
%77 = icmp ne i64 %76, 0
br i1 %77, label %78, label %80
78: ; preds = %74
%79 = call i32 (...) @abort() #3
unreachable
80: ; preds = %74
%81 = load float, ptr %3, align 4
%82 = call i64 @isinf(float noundef %81)
%83 = icmp ne i64 %82, 0
br i1 %83, label %86, label %84
84: ; preds = %80
%85 = call i32 (...) @abort() #3
unreachable
86: ; preds = %80
%87 = load float, ptr %4, align 4
%88 = call i64 @isinf(float noundef %87)
%89 = icmp ne i64 %88, 0
br i1 %89, label %92, label %90
90: ; preds = %86
%91 = call i32 (...) @abort() #3
unreachable
92: ; preds = %86
%93 = load float, ptr %5, align 4
%94 = call i64 @isnan(float noundef %93)
%95 = icmp ne i64 %94, 0
br i1 %95, label %96, label %98
96: ; preds = %92
%97 = call i32 (...) @abort() #3
unreachable
98: ; preds = %92
%99 = load float, ptr %6, align 4
%100 = call i64 @isinf(float noundef %99)
%101 = icmp ne i64 %100, 0
br i1 %101, label %102, label %104
102: ; preds = %98
%103 = call i32 (...) @abort() #3
unreachable
104: ; preds = %98
%105 = load float, ptr %2, align 4
%106 = call i64 @isfinite(float noundef %105)
%107 = icmp ne i64 %106, 0
br i1 %107, label %108, label %110
108: ; preds = %104
%109 = call i32 (...) @abort() #3
unreachable
110: ; preds = %104
%111 = load float, ptr %3, align 4
%112 = call i64 @isfinite(float noundef %111)
%113 = icmp ne i64 %112, 0
br i1 %113, label %114, label %116
114: ; preds = %110
%115 = call i32 (...) @abort() #3
unreachable
116: ; preds = %110
%117 = load float, ptr %4, align 4
%118 = call i64 @isfinite(float noundef %117)
%119 = icmp ne i64 %118, 0
br i1 %119, label %120, label %122
120: ; preds = %116
%121 = call i32 (...) @abort() #3
unreachable
122: ; preds = %116
%123 = load float, ptr %5, align 4
%124 = call i64 @isfinite(float noundef %123)
%125 = icmp ne i64 %124, 0
br i1 %125, label %128, label %126
126: ; preds = %122
%127 = call i32 (...) @abort() #3
unreachable
128: ; preds = %122
%129 = load float, ptr %6, align 4
%130 = call i64 @isfinite(float noundef %129)
%131 = icmp ne i64 %130, 0
br i1 %131, label %134, label %132
132: ; preds = %128
%133 = call i32 (...) @abort() #3
unreachable
134: ; preds = %128
%135 = load float, ptr %2, align 4
%136 = call i64 @isnormal(float noundef %135)
%137 = icmp ne i64 %136, 0
br i1 %137, label %138, label %140
138: ; preds = %134
%139 = call i32 (...) @abort() #3
unreachable
140: ; preds = %134
%141 = load float, ptr %3, align 4
%142 = call i64 @isnormal(float noundef %141)
%143 = icmp ne i64 %142, 0
br i1 %143, label %144, label %146
144: ; preds = %140
%145 = call i32 (...) @abort() #3
unreachable
146: ; preds = %140
%147 = load float, ptr %4, align 4
%148 = call i64 @isnormal(float noundef %147)
%149 = icmp ne i64 %148, 0
br i1 %149, label %150, label %152
150: ; preds = %146
%151 = call i32 (...) @abort() #3
unreachable
152: ; preds = %146
%153 = load float, ptr %5, align 4
%154 = call i64 @isnormal(float noundef %153)
%155 = icmp ne i64 %154, 0
br i1 %155, label %158, label %156
156: ; preds = %152
%157 = call i32 (...) @abort() #3
unreachable
158: ; preds = %152
%159 = load float, ptr %6, align 4
%160 = call i64 @isnormal(float noundef %159)
%161 = icmp ne i64 %160, 0
br i1 %161, label %162, label %164
162: ; preds = %158
%163 = call i32 (...) @abort() #3
unreachable
164: ; preds = %158
%165 = load float, ptr %5, align 4
%166 = call i64 @signbit(float noundef %165)
%167 = icmp ne i64 %166, 0
br i1 %167, label %168, label %170
168: ; preds = %164
%169 = call i32 (...) @abort() #3
unreachable
170: ; preds = %164
%171 = load float, ptr %5, align 4
%172 = fneg float %171
%173 = call i64 @signbit(float noundef %172)
%174 = icmp ne i64 %173, 0
br i1 %174, label %177, label %175
175: ; preds = %170
%176 = call i32 (...) @abort() #3
unreachable
177: ; preds = %170
%178 = load float, ptr %3, align 4
%179 = load float, ptr %5, align 4
%180 = call i32 @isgreater(float noundef %178, float noundef %179)
%181 = icmp ne i32 %180, 0
br i1 %181, label %184, label %182
182: ; preds = %177
%183 = call i32 (...) @abort() #3
unreachable
184: ; preds = %177
%185 = load float, ptr %3, align 4
%186 = load float, ptr %4, align 4
%187 = call i32 @isgreaterequal(float noundef %185, float noundef %186)
%188 = icmp ne i32 %187, 0
br i1 %188, label %191, label %189
189: ; preds = %184
%190 = call i32 (...) @abort() #3
unreachable
191: ; preds = %184
%192 = load float, ptr %5, align 4
%193 = load float, ptr %3, align 4
%194 = call i32 @isless(float noundef %192, float noundef %193)
%195 = icmp ne i32 %194, 0
br i1 %195, label %198, label %196
196: ; preds = %191
%197 = call i32 (...) @abort() #3
unreachable
198: ; preds = %191
%199 = load float, ptr %4, align 4
%200 = load float, ptr %3, align 4
%201 = call i32 @islessequal(float noundef %199, float noundef %200)
%202 = icmp ne i32 %201, 0
br i1 %202, label %205, label %203
203: ; preds = %198
%204 = call i32 (...) @abort() #3
unreachable
205: ; preds = %198
%206 = load float, ptr %3, align 4
%207 = load float, ptr %5, align 4
%208 = call i32 @islessgreater(float noundef %206, float noundef %207)
%209 = icmp ne i32 %208, 0
br i1 %209, label %212, label %210
210: ; preds = %205
%211 = call i32 (...) @abort() #3
unreachable
212: ; preds = %205
%213 = load float, ptr %2, align 4
%214 = load float, ptr %5, align 4
%215 = call i32 @isunordered(float noundef %213, float noundef %214)
%216 = icmp ne i32 %215, 0
br i1 %216, label %219, label %217
217: ; preds = %212
%218 = call i32 (...) @abort() #3
unreachable
219: ; preds = %212
ret i32 0
}
declare i64 @fpclassify(float noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i64 @isnan(float noundef) #1
declare i64 @isinf(float noundef) #1
declare i64 @isfinite(float noundef) #1
declare i64 @isnormal(float noundef) #1
declare i64 @signbit(float noundef) #1
declare i32 @isgreater(float noundef, float noundef) #1
declare i32 @isgreaterequal(float noundef, float noundef) #1
declare i32 @isless(float noundef, float noundef) #1
declare i32 @islessequal(float noundef, float noundef) #1
declare i32 @islessgreater(float noundef, float noundef) #1
declare i32 @isunordered(float 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" }
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/tmpzosbpjf_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@NAN = dso_local global float 0.000000e+00, align 4
@INFINITY = dso_local global float 0.000000e+00, align 4
@HUGE_VALF = dso_local global float 0.000000e+00, align 4
@FP_NAN = dso_local global i64 0, align 8
@FP_INFINITE = dso_local global i64 0, align 8
@FP_NORMAL = dso_local global i64 0, align 8
@FP_ZERO = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
store i32 0, ptr %1, align 4
%7 = load float, ptr @NAN, align 4
store float %7, ptr %2, align 4
%8 = load float, ptr @INFINITY, align 4
store float %8, ptr %3, align 4
%9 = load float, ptr @HUGE_VALF, align 4
store float %9, ptr %4, align 4
store float 0x3810000000000000, ptr %5, align 4
store float 0.000000e+00, ptr %6, align 4
%10 = load float, ptr %2, align 4
%11 = call i64 @fpclassify(float noundef %10)
%12 = load i64, ptr @FP_NAN, align 8
%13 = icmp ne i64 %11, %12
br i1 %13, label %14, label %16
14: ; preds = %0
%15 = call i32 (...) @abort() #3
unreachable
16: ; preds = %0
%17 = load float, ptr %3, align 4
%18 = call i64 @fpclassify(float noundef %17)
%19 = load i64, ptr @FP_INFINITE, align 8
%20 = icmp ne i64 %18, %19
br i1 %20, label %21, label %23
21: ; preds = %16
%22 = call i32 (...) @abort() #3
unreachable
23: ; preds = %16
%24 = load float, ptr %4, align 4
%25 = call i64 @fpclassify(float noundef %24)
%26 = load i64, ptr @FP_INFINITE, align 8
%27 = icmp ne i64 %25, %26
br i1 %27, label %28, label %30
28: ; preds = %23
%29 = call i32 (...) @abort() #3
unreachable
30: ; preds = %23
%31 = load float, ptr %5, align 4
%32 = call i64 @fpclassify(float noundef %31)
%33 = load i64, ptr @FP_NORMAL, align 8
%34 = icmp ne i64 %32, %33
br i1 %34, label %35, label %37
35: ; preds = %30
%36 = call i32 (...) @abort() #3
unreachable
37: ; preds = %30
%38 = load float, ptr %6, align 4
%39 = call i64 @fpclassify(float noundef %38)
%40 = load i64, ptr @FP_ZERO, align 8
%41 = icmp ne i64 %39, %40
br i1 %41, label %42, label %44
42: ; preds = %37
%43 = call i32 (...) @abort() #3
unreachable
44: ; preds = %37
%45 = load float, ptr %2, align 4
%46 = call i64 @isnan(float noundef %45)
%47 = icmp ne i64 %46, 0
br i1 %47, label %50, label %48
48: ; preds = %44
%49 = call i32 (...) @abort() #3
unreachable
50: ; preds = %44
%51 = load float, ptr %3, align 4
%52 = call i64 @isnan(float noundef %51)
%53 = icmp ne i64 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %50
%55 = call i32 (...) @abort() #3
unreachable
56: ; preds = %50
%57 = load float, ptr %4, align 4
%58 = call i64 @isnan(float noundef %57)
%59 = icmp ne i64 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %56
%61 = call i32 (...) @abort() #3
unreachable
62: ; preds = %56
%63 = load float, ptr %5, align 4
%64 = call i64 @isnan(float noundef %63)
%65 = icmp ne i64 %64, 0
br i1 %65, label %66, label %68
66: ; preds = %62
%67 = call i32 (...) @abort() #3
unreachable
68: ; preds = %62
%69 = load float, ptr %6, align 4
%70 = call i64 @isnan(float noundef %69)
%71 = icmp ne i64 %70, 0
br i1 %71, label %72, label %74
72: ; preds = %68
%73 = call i32 (...) @abort() #3
unreachable
74: ; preds = %68
%75 = load float, ptr %2, align 4
%76 = call i64 @isinf(float noundef %75)
%77 = icmp ne i64 %76, 0
br i1 %77, label %78, label %80
78: ; preds = %74
%79 = call i32 (...) @abort() #3
unreachable
80: ; preds = %74
%81 = load float, ptr %3, align 4
%82 = call i64 @isinf(float noundef %81)
%83 = icmp ne i64 %82, 0
br i1 %83, label %86, label %84
84: ; preds = %80
%85 = call i32 (...) @abort() #3
unreachable
86: ; preds = %80
%87 = load float, ptr %4, align 4
%88 = call i64 @isinf(float noundef %87)
%89 = icmp ne i64 %88, 0
br i1 %89, label %92, label %90
90: ; preds = %86
%91 = call i32 (...) @abort() #3
unreachable
92: ; preds = %86
%93 = load float, ptr %5, align 4
%94 = call i64 @isnan(float noundef %93)
%95 = icmp ne i64 %94, 0
br i1 %95, label %96, label %98
96: ; preds = %92
%97 = call i32 (...) @abort() #3
unreachable
98: ; preds = %92
%99 = load float, ptr %6, align 4
%100 = call i64 @isinf(float noundef %99)
%101 = icmp ne i64 %100, 0
br i1 %101, label %102, label %104
102: ; preds = %98
%103 = call i32 (...) @abort() #3
unreachable
104: ; preds = %98
%105 = load float, ptr %2, align 4
%106 = call i64 @isfinite(float noundef %105)
%107 = icmp ne i64 %106, 0
br i1 %107, label %108, label %110
108: ; preds = %104
%109 = call i32 (...) @abort() #3
unreachable
110: ; preds = %104
%111 = load float, ptr %3, align 4
%112 = call i64 @isfinite(float noundef %111)
%113 = icmp ne i64 %112, 0
br i1 %113, label %114, label %116
114: ; preds = %110
%115 = call i32 (...) @abort() #3
unreachable
116: ; preds = %110
%117 = load float, ptr %4, align 4
%118 = call i64 @isfinite(float noundef %117)
%119 = icmp ne i64 %118, 0
br i1 %119, label %120, label %122
120: ; preds = %116
%121 = call i32 (...) @abort() #3
unreachable
122: ; preds = %116
%123 = load float, ptr %5, align 4
%124 = call i64 @isfinite(float noundef %123)
%125 = icmp ne i64 %124, 0
br i1 %125, label %128, label %126
126: ; preds = %122
%127 = call i32 (...) @abort() #3
unreachable
128: ; preds = %122
%129 = load float, ptr %6, align 4
%130 = call i64 @isfinite(float noundef %129)
%131 = icmp ne i64 %130, 0
br i1 %131, label %134, label %132
132: ; preds = %128
%133 = call i32 (...) @abort() #3
unreachable
134: ; preds = %128
%135 = load float, ptr %2, align 4
%136 = call i64 @isnormal(float noundef %135)
%137 = icmp ne i64 %136, 0
br i1 %137, label %138, label %140
138: ; preds = %134
%139 = call i32 (...) @abort() #3
unreachable
140: ; preds = %134
%141 = load float, ptr %3, align 4
%142 = call i64 @isnormal(float noundef %141)
%143 = icmp ne i64 %142, 0
br i1 %143, label %144, label %146
144: ; preds = %140
%145 = call i32 (...) @abort() #3
unreachable
146: ; preds = %140
%147 = load float, ptr %4, align 4
%148 = call i64 @isnormal(float noundef %147)
%149 = icmp ne i64 %148, 0
br i1 %149, label %150, label %152
150: ; preds = %146
%151 = call i32 (...) @abort() #3
unreachable
152: ; preds = %146
%153 = load float, ptr %5, align 4
%154 = call i64 @isnormal(float noundef %153)
%155 = icmp ne i64 %154, 0
br i1 %155, label %158, label %156
156: ; preds = %152
%157 = call i32 (...) @abort() #3
unreachable
158: ; preds = %152
%159 = load float, ptr %6, align 4
%160 = call i64 @isnormal(float noundef %159)
%161 = icmp ne i64 %160, 0
br i1 %161, label %162, label %164
162: ; preds = %158
%163 = call i32 (...) @abort() #3
unreachable
164: ; preds = %158
%165 = load float, ptr %5, align 4
%166 = call i64 @signbit(float noundef %165)
%167 = icmp ne i64 %166, 0
br i1 %167, label %168, label %170
168: ; preds = %164
%169 = call i32 (...) @abort() #3
unreachable
170: ; preds = %164
%171 = load float, ptr %5, align 4
%172 = fneg float %171
%173 = call i64 @signbit(float noundef %172)
%174 = icmp ne i64 %173, 0
br i1 %174, label %177, label %175
175: ; preds = %170
%176 = call i32 (...) @abort() #3
unreachable
177: ; preds = %170
%178 = load float, ptr %3, align 4
%179 = load float, ptr %5, align 4
%180 = call i32 @isgreater(float noundef %178, float noundef %179)
%181 = icmp ne i32 %180, 0
br i1 %181, label %184, label %182
182: ; preds = %177
%183 = call i32 (...) @abort() #3
unreachable
184: ; preds = %177
%185 = load float, ptr %3, align 4
%186 = load float, ptr %4, align 4
%187 = call i32 @isgreaterequal(float noundef %185, float noundef %186)
%188 = icmp ne i32 %187, 0
br i1 %188, label %191, label %189
189: ; preds = %184
%190 = call i32 (...) @abort() #3
unreachable
191: ; preds = %184
%192 = load float, ptr %5, align 4
%193 = load float, ptr %3, align 4
%194 = call i32 @isless(float noundef %192, float noundef %193)
%195 = icmp ne i32 %194, 0
br i1 %195, label %198, label %196
196: ; preds = %191
%197 = call i32 (...) @abort() #3
unreachable
198: ; preds = %191
%199 = load float, ptr %4, align 4
%200 = load float, ptr %3, align 4
%201 = call i32 @islessequal(float noundef %199, float noundef %200)
%202 = icmp ne i32 %201, 0
br i1 %202, label %205, label %203
203: ; preds = %198
%204 = call i32 (...) @abort() #3
unreachable
205: ; preds = %198
%206 = load float, ptr %3, align 4
%207 = load float, ptr %5, align 4
%208 = call i32 @islessgreater(float noundef %206, float noundef %207)
%209 = icmp ne i32 %208, 0
br i1 %209, label %212, label %210
210: ; preds = %205
%211 = call i32 (...) @abort() #3
unreachable
212: ; preds = %205
%213 = load float, ptr %2, align 4
%214 = load float, ptr %5, align 4
%215 = call i32 @isunordered(float noundef %213, float noundef %214)
%216 = icmp ne i32 %215, 0
br i1 %216, label %219, label %217
217: ; preds = %212
%218 = call i32 (...) @abort() #3
unreachable
219: ; preds = %212
ret i32 0
}
declare i64 @fpclassify(float noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i64 @isnan(float noundef) #1
declare i64 @isinf(float noundef) #1
declare i64 @isfinite(float noundef) #1
declare i64 @isnormal(float noundef) #1
declare i64 @signbit(float noundef) #1
declare i32 @isgreater(float noundef, float noundef) #1
declare i32 @isgreaterequal(float noundef, float noundef) #1
declare i32 @isless(float noundef, float noundef) #1
declare i32 @islessequal(float noundef, float noundef) #1
declare i32 @islessgreater(float noundef, float noundef) #1
declare i32 @isunordered(float 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" }
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/tmpa_lsu3l6.c'
source_filename = "/tmp/tmpa_lsu3l6.c"
target datalayout = "e-m:e-p270: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_RDONLY = 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/tmpa_lsu3l6.c"
target datalayout = "e-m:e-p270: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_RDONLY = 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/tmposkk402a.c'
source_filename = "/tmp/tmposkk402a.c"
target datalayout = "e-m:e-p270: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 [44 x i8] c"\0AAccess to dangerous function %s() denied.\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"fork\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fork() #0 {
%1 = alloca i32, align 4
%2 = load i32, ptr @stderr, align 4
%3 = call i32 @fprintf(i32 noundef %2, ptr noundef @.str, ptr noundef @.str.1)
%4 = call i32 @assert(i32 noundef 0)
%5 = load i32, ptr %1, align 4
ret i32 %5
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmposkk402a.c"
target datalayout = "e-m:e-p270: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 [44 x i8] c"\0AAccess to dangerous function %s() denied.\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"fork\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fork() #0 {
%1 = alloca i32, align 4
%2 = load i32, ptr @stderr, align 4
%3 = call i32 @fprintf(i32 noundef %2, ptr noundef @.str, ptr noundef @.str.1)
%4 = call i32 @assert(i32 noundef 0)
%5 = load i32, ptr %1, align 4
ret i32 %5
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6zfwpmzy.c'
source_filename = "/tmp/tmp6zfwpmzy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @notmain() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @uart_init()
%3 = call i32 (...) @GETPC()
%4 = call i32 @hexstring(i32 noundef %3)
%5 = call i32 (...) @GETSP()
%6 = call i32 @hexstring(i32 noundef %5)
store i32 0, ptr %1, align 4
br label %7
7: ; preds = %14, %0
%8 = load i32, ptr %1, align 4
%9 = icmp ult i32 %8, 10
br i1 %9, label %10, label %17
10: ; preds = %7
%11 = load i32, ptr %1, align 4
%12 = add i32 65, %11
%13 = call i32 @uart_putc(i32 noundef %12)
br label %14
14: ; preds = %10
%15 = load i32, ptr %1, align 4
%16 = add i32 %15, 1
store i32 %16, ptr %1, align 4
br label %7, !llvm.loop !6
17: ; preds = %7
%18 = call i32 @uart_putc(i32 noundef 13)
%19 = call i32 @uart_putc(i32 noundef 10)
%20 = call i32 @uart_putc(i32 noundef 85)
%21 = call i32 @uart_putc(i32 noundef 48)
%22 = call i32 @PUT32(i32 noundef -268435456, i32 noundef 1)
ret i32 0
}
declare i32 @uart_init(...) #1
declare i32 @hexstring(i32 noundef) #1
declare i32 @GETPC(...) #1
declare i32 @GETSP(...) #1
declare i32 @uart_putc(i32 noundef) #1
declare i32 @PUT32(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6zfwpmzy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @notmain() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @uart_init()
%3 = call i32 (...) @GETPC()
%4 = call i32 @hexstring(i32 noundef %3)
%5 = call i32 (...) @GETSP()
%6 = call i32 @hexstring(i32 noundef %5)
store i32 0, ptr %1, align 4
%7 = load i32, ptr %1, align 4
%8 = icmp ult i32 %7, 10
br i1 %8, label %.lr.ph, label %18
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %13
%10 = load i32, ptr %1, align 4
%11 = add i32 65, %10
%12 = call i32 @uart_putc(i32 noundef %11)
br label %13
13: ; preds = %9
%14 = load i32, ptr %1, align 4
%15 = add i32 %14, 1
store i32 %15, ptr %1, align 4
%16 = load i32, ptr %1, align 4
%17 = icmp ult i32 %16, 10
br i1 %17, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %18
18: ; preds = %._crit_edge, %0
%19 = call i32 @uart_putc(i32 noundef 13)
%20 = call i32 @uart_putc(i32 noundef 10)
%21 = call i32 @uart_putc(i32 noundef 85)
%22 = call i32 @uart_putc(i32 noundef 48)
%23 = call i32 @PUT32(i32 noundef -268435456, i32 noundef 1)
ret i32 0
}
declare i32 @uart_init(...) #1
declare i32 @hexstring(i32 noundef) #1
declare i32 @GETPC(...) #1
declare i32 @GETSP(...) #1
declare i32 @uart_putc(i32 noundef) #1
declare i32 @PUT32(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9l72p7va.c'
source_filename = "/tmp/tmp9l72p7va.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timespec = type { i32 }
@CLOCK_MONOTONIC = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [9 x i8] c"seed=%u\0A\00", align 1
@RAND_MAX = dso_local global float 0.000000e+00, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @piEst(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca float, align 4
%4 = alloca %struct.timespec, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
store i32 %0, ptr %2, align 4
store float 0.000000e+00, ptr %3, align 4
%9 = load i32, ptr @CLOCK_MONOTONIC, align 4
%10 = call i32 @clock_gettime(i32 noundef %9, ptr noundef %4)
%11 = getelementptr inbounds %struct.timespec, ptr %4, i32 0, i32 0
%12 = load i32, ptr %11, align 4
store i32 %12, ptr %5, align 4
%13 = load i32, ptr %5, align 4
%14 = call i32 @printf(ptr noundef @.str, i32 noundef %13)
store i32 0, ptr %6, align 4
br label %15
15: ; preds = %42, %1
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr %2, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %45
19: ; preds = %15
%20 = call i64 @rand_r(ptr noundef %5)
%21 = sitofp i64 %20 to float
%22 = load float, ptr @RAND_MAX, align 4
%23 = fdiv float %21, %22
%24 = call float @llvm.fmuladd.f32(float %23, float 2.000000e+00, float -1.000000e+00)
store float %24, ptr %7, align 4
%25 = call i64 @rand_r(ptr noundef %5)
%26 = sitofp i64 %25 to float
%27 = load float, ptr @RAND_MAX, align 4
%28 = fdiv float %26, %27
%29 = call float @llvm.fmuladd.f32(float %28, float 2.000000e+00, float -1.000000e+00)
store float %29, ptr %8, align 4
%30 = load float, ptr %7, align 4
%31 = load float, ptr %7, align 4
%32 = load float, ptr %8, align 4
%33 = load float, ptr %8, align 4
%34 = fmul float %32, %33
%35 = call float @llvm.fmuladd.f32(float %30, float %31, float %34)
%36 = fpext float %35 to double
%37 = fcmp ole double %36, 1.000000e+00
br i1 %37, label %38, label %41
38: ; preds = %19
%39 = load float, ptr %3, align 4
%40 = fadd float %39, 1.000000e+00
store float %40, ptr %3, align 4
br label %41
41: ; preds = %38, %19
br label %42
42: ; preds = %41
%43 = load i32, ptr %6, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %6, align 4
br label %15, !llvm.loop !6
45: ; preds = %15
%46 = load float, ptr %3, align 4
ret float %46
}
declare i32 @clock_gettime(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i64 @rand_r(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9l72p7va.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timespec = type { i32 }
@CLOCK_MONOTONIC = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [9 x i8] c"seed=%u\0A\00", align 1
@RAND_MAX = dso_local global float 0.000000e+00, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @piEst(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca float, align 4
%4 = alloca %struct.timespec, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
store i32 %0, ptr %2, align 4
store float 0.000000e+00, ptr %3, align 4
%9 = load i32, ptr @CLOCK_MONOTONIC, align 4
%10 = call i32 @clock_gettime(i32 noundef %9, ptr noundef %4)
%11 = getelementptr inbounds %struct.timespec, ptr %4, i32 0, i32 0
%12 = load i32, ptr %11, align 4
store i32 %12, ptr %5, align 4
%13 = load i32, ptr %5, align 4
%14 = call i32 @printf(ptr noundef @.str, i32 noundef %13)
store i32 0, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %47
.lr.ph: ; preds = %1
br label %18
18: ; preds = %.lr.ph, %41
%19 = call i64 @rand_r(ptr noundef %5)
%20 = sitofp i64 %19 to float
%21 = load float, ptr @RAND_MAX, align 4
%22 = fdiv float %20, %21
%23 = call float @llvm.fmuladd.f32(float %22, float 2.000000e+00, float -1.000000e+00)
store float %23, ptr %7, align 4
%24 = call i64 @rand_r(ptr noundef %5)
%25 = sitofp i64 %24 to float
%26 = load float, ptr @RAND_MAX, align 4
%27 = fdiv float %25, %26
%28 = call float @llvm.fmuladd.f32(float %27, float 2.000000e+00, float -1.000000e+00)
store float %28, ptr %8, align 4
%29 = load float, ptr %7, align 4
%30 = load float, ptr %7, align 4
%31 = load float, ptr %8, align 4
%32 = load float, ptr %8, align 4
%33 = fmul float %31, %32
%34 = call float @llvm.fmuladd.f32(float %29, float %30, float %33)
%35 = fpext float %34 to double
%36 = fcmp ole double %35, 1.000000e+00
br i1 %36, label %37, label %40
37: ; preds = %18
%38 = load float, ptr %3, align 4
%39 = fadd float %38, 1.000000e+00
store float %39, ptr %3, align 4
br label %40
40: ; preds = %37, %18
br label %41
41: ; preds = %40
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
%44 = load i32, ptr %6, align 4
%45 = load i32, ptr %2, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %41
br label %47
47: ; preds = %._crit_edge, %1
%48 = load float, ptr %3, align 4
ret float %48
}
declare i32 @clock_gettime(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i64 @rand_r(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp3av6fkdu.c'
source_filename = "/tmp/tmp3av6fkdu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s \00", align 1
@EOF = dso_local global i8 0, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @nxtcmd(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i32 @printf(ptr noundef @.str, ptr noundef %8)
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %10
10: ; preds = %2, %41
%11 = call signext i8 (...) @getchar()
%12 = load ptr, ptr %4, align 8
store i8 %11, ptr %12, align 1
%13 = load ptr, ptr %4, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = load i8, ptr @EOF, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %15, %17
br i1 %18, label %19, label %20
19: ; preds = %10
store i32 -1, ptr %3, align 4
br label %42
20: ; preds = %10
%21 = load ptr, ptr %4, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 10
br i1 %24, label %25, label %28
25: ; preds = %20
%26 = load ptr, ptr %4, align 8
store i8 0, ptr %26, align 1
%27 = load i32, ptr %7, align 4
store i32 %27, ptr %3, align 4
br label %42
28: ; preds = %20
%29 = load i32, ptr %6, align 4
%30 = icmp ne i32 %29, 0
br i1 %30, label %36, label %31
31: ; preds = %28
%32 = load ptr, ptr %4, align 8
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp ne i32 %34, 32
br i1 %35, label %36, label %41
36: ; preds = %31, %28
%37 = load ptr, ptr %4, align 8
%38 = getelementptr inbounds i8, ptr %37, i32 1
store ptr %38, ptr %4, align 8
%39 = load i32, ptr %7, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %7, align 4
store i32 1, ptr %6, align 4
br label %41
41: ; preds = %36, %31
br label %10
42: ; preds = %25, %19
%43 = load i32, ptr %3, align 4
ret i32 %43
}
declare i32 @printf(ptr noundef, 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3av6fkdu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s \00", align 1
@EOF = dso_local global i8 0, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @nxtcmd(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i32 @printf(ptr noundef @.str, ptr noundef %8)
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%10 = call signext i8 (...) @getchar()
%11 = load ptr, ptr %4, align 8
store i8 %10, ptr %11, align 1
%12 = load ptr, ptr %4, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = load i8, ptr @EOF, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %14, %16
br i1 %17, label %18, label %.lr.ph
.lr.ph: ; preds = %2
br label %19
._crit_edge: ; preds = %40
br label %18
18: ; preds = %._crit_edge, %2
store i32 -1, ptr %3, align 4
br label %49
19: ; preds = %.lr.ph, %40
%20 = load ptr, ptr %4, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 10
br i1 %23, label %24, label %27
24: ; preds = %19
%25 = load ptr, ptr %4, align 8
store i8 0, ptr %25, align 1
%26 = load i32, ptr %7, align 4
store i32 %26, ptr %3, align 4
br label %49
27: ; preds = %19
%28 = load i32, ptr %6, align 4
%29 = icmp ne i32 %28, 0
br i1 %29, label %35, label %30
30: ; preds = %27
%31 = load ptr, ptr %4, align 8
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp ne i32 %33, 32
br i1 %34, label %35, label %40
35: ; preds = %30, %27
%36 = load ptr, ptr %4, align 8
%37 = getelementptr inbounds i8, ptr %36, i32 1
store ptr %37, ptr %4, align 8
%38 = load i32, ptr %7, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %7, align 4
store i32 1, ptr %6, align 4
br label %40
40: ; preds = %35, %30
%41 = call signext i8 (...) @getchar()
%42 = load ptr, ptr %4, align 8
store i8 %41, ptr %42, align 1
%43 = load ptr, ptr %4, align 8
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = load i8, ptr @EOF, align 1
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %45, %47
br i1 %48, label %._crit_edge, label %19
49: ; preds = %24, %18
%50 = load i32, ptr %3, align 4
ret i32 %50
}
declare i32 @printf(ptr noundef, 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"}
|
; ModuleID = '/tmp/tmp1xyso4b_.c'
source_filename = "/tmp/tmp1xyso4b_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unnamed_addr constant [16 x i8] c"this is a book.\00", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [16 x i8], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.a, i64 16, i1 false)
%3 = getelementptr inbounds [16 x i8], ptr %2, i64 0, i64 0
%4 = call i32 @fun(ptr noundef %3, i8 noundef signext 105)
%5 = getelementptr inbounds [16 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @puts(ptr noundef %5)
%7 = call i32 (...) @getchar()
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @fun(ptr noundef, i8 noundef signext) #2
declare i32 @puts(ptr noundef) #2
declare i32 @getchar(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1xyso4b_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unnamed_addr constant [16 x i8] c"this is a book.\00", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [16 x i8], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.a, i64 16, i1 false)
%3 = getelementptr inbounds [16 x i8], ptr %2, i64 0, i64 0
%4 = call i32 @fun(ptr noundef %3, i8 noundef signext 105)
%5 = getelementptr inbounds [16 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @puts(ptr noundef %5)
%7 = call i32 (...) @getchar()
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @fun(ptr noundef, i8 noundef signext) #2
declare i32 @puts(ptr noundef) #2
declare i32 @getchar(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7s444_j9.c'
source_filename = "/tmp/tmp7s444_j9.c"
target datalayout = "e-m:e-p270: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/tmp7s444_j9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.