llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
|---|---|
; ModuleID = '/tmp/tmp2tr5qqwx.c'
source_filename = "/tmp/tmp2tr5qqwx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bi_tree_size(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 @bi_tree_size_api(ptr noundef %3)
ret i32 %4
}
declare i32 @bi_tree_size_api(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2tr5qqwx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bi_tree_size(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 @bi_tree_size_api(ptr noundef %3)
ret i32 %4
}
declare i32 @bi_tree_size_api(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpw91ot_od.c'
source_filename = "/tmp/tmpw91ot_od.c"
target datalayout = "e-m:e-p270: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/tmpw91ot_od.c"
target datalayout = "e-m:e-p270: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/tmp2w2_nl5d.c'
source_filename = "/tmp/tmp2w2_nl5d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @do_tests(i32 noundef 23)
ret i32 %2
}
declare i32 @do_tests(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/tmp2w2_nl5d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @do_tests(i32 noundef 23)
ret i32 %2
}
declare i32 @do_tests(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/tmpah_u9pl4.c'
source_filename = "/tmp/tmpah_u9pl4.c"
target datalayout = "e-m:e-p270: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/tmpah_u9pl4.c"
target datalayout = "e-m:e-p270: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/tmpohnzfotv.c'
source_filename = "/tmp/tmpohnzfotv.c"
target datalayout = "e-m:e-p270: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/tmpohnzfotv.c"
target datalayout = "e-m:e-p270: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/tmplq54p01r.c'
source_filename = "/tmp/tmplq54p01r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @libamg_process_stop_init_program(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 @_set_init_program(i32 noundef 0, ptr noundef %3)
ret i32 %4
}
declare i32 @_set_init_program(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/tmplq54p01r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @libamg_process_stop_init_program(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 @_set_init_program(i32 noundef 0, ptr noundef %3)
ret i32 %4
}
declare i32 @_set_init_program(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/tmpucebxjqn.c'
source_filename = "/tmp/tmpucebxjqn.c"
target datalayout = "e-m:e-p270: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/tmpucebxjqn.c"
target datalayout = "e-m:e-p270: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/tmpiv25vs7a.c'
source_filename = "/tmp/tmpiv25vs7a.c"
target datalayout = "e-m:e-p270: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/tmpiv25vs7a.c"
target datalayout = "e-m:e-p270: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/tmpdgj8y9ik.c'
source_filename = "/tmp/tmpdgj8y9ik.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @str_cmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @strcmp(ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdgj8y9ik.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @str_cmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @strcmp(ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptnszk65_.c'
source_filename = "/tmp/tmptnszk65_.c"
target datalayout = "e-m:e-p270: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/tmptnszk65_.c"
target datalayout = "e-m:e-p270: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/tmpmjx2rik5.c'
source_filename = "/tmp/tmpmjx2rik5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @_start() #0 {
%1 = call i32 (...) @main()
%2 = call i32 @exit(i32 noundef %1) #3
unreachable
}
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #1
declare i32 @main(...) #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 = { 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 = { "frame-pointer"="all" "no-trapping-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/tmpmjx2rik5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @_start() #0 {
%1 = call i32 (...) @main()
%2 = call i32 @exit(i32 noundef %1) #3
unreachable
}
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #1
declare i32 @main(...) #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 = { 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 = { "frame-pointer"="all" "no-trapping-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/tmpe8ridbng.c'
source_filename = "/tmp/tmpe8ridbng.c"
target datalayout = "e-m:e-p270: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/tmpe8ridbng.c"
target datalayout = "e-m:e-p270: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/tmplbujn8xf.c'
source_filename = "/tmp/tmplbujn8xf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @lfind(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
store i64 0, ptr %5, align 8
br label %6
6: ; preds = %15, %2
%7 = load ptr, ptr %3, align 8
%8 = load i64, ptr %5, align 8
%9 = getelementptr inbounds i8, ptr %7, i64 %8
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = load i8, ptr %4, align 1
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %11, %13
br i1 %14, label %15, label %18
15: ; preds = %6
%16 = load i64, ptr %5, align 8
%17 = add i64 %16, 1
store i64 %17, ptr %5, align 8
br label %6, !llvm.loop !6
18: ; preds = %6
%19 = load ptr, ptr %3, align 8
%20 = ptrtoint ptr %19 to i64
%21 = load i64, ptr %5, align 8
%22 = add i64 %20, %21
ret i64 %22
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmplbujn8xf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @lfind(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
store i64 0, ptr %5, align 8
%6 = load ptr, ptr %3, align 8
%7 = load i64, ptr %5, align 8
%8 = getelementptr inbounds i8, ptr %6, i64 %7
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
%11 = load i8, ptr %4, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %10, %12
br i1 %13, label %.lr.ph, label %25
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %14
%15 = load i64, ptr %5, align 8
%16 = add i64 %15, 1
store i64 %16, ptr %5, align 8
%17 = load ptr, ptr %3, align 8
%18 = load i64, ptr %5, align 8
%19 = getelementptr inbounds i8, ptr %17, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = load i8, ptr %4, align 1
%23 = sext i8 %22 to i32
%24 = icmp ne i32 %21, %23
br i1 %24, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %25
25: ; preds = %._crit_edge, %2
%26 = load ptr, ptr %3, align 8
%27 = ptrtoint ptr %26 to i64
%28 = load i64, ptr %5, align 8
%29 = add i64 %27, %28
ret i64 %29
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpvogdhsgy.c'
source_filename = "/tmp/tmpvogdhsgy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strlen(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %12, %1
%5 = load ptr, ptr %2, align 8
%6 = load i32, ptr %3, align 4
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, ptr %5, i64 %7
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %4
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %3, align 4
br label %4, !llvm.loop !6
15: ; preds = %4
%16 = load i32, ptr %3, align 4
ret i32 %16
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvogdhsgy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strlen(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%4 = load ptr, ptr %2, align 8
%5 = load i32, ptr %3, align 4
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds i8, ptr %4, i64 %6
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 0
br i1 %10, label %.lr.ph, label %21
.lr.ph: ; preds = %1
br label %11
11: ; preds = %.lr.ph, %11
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %3, align 4
%14 = load ptr, ptr %2, align 8
%15 = load i32, ptr %3, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %19, 0
br i1 %20, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %21
21: ; preds = %._crit_edge, %1
%22 = load i32, ptr %3, align 4
ret i32 %22
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpxexx2l7t.c'
source_filename = "/tmp/tmpxexx2l7t.c"
target datalayout = "e-m:e-p270: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.some_data = private unnamed_addr constant [4 x i32] [i32 1492, i32 1066, i32 0, i32 0], align 16
@.str = private unnamed_addr constant [9 x i8] c"%2s%14s\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"i\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"some_data[i]\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"%2d%14d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [4 x i32], align 16
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.some_data, i64 16, i1 false)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2)
store i32 0, ptr %7, align 4
br label %9
9: ; preds = %19, %2
%10 = load i32, ptr %7, align 4
%11 = icmp slt i32 %10, 4
br i1 %11, label %12, label %22
12: ; preds = %9
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %7, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 %15
%17 = load i32, ptr %16, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %13, i32 noundef %17)
br label %19
19: ; preds = %12
%20 = load i32, ptr %7, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %7, align 4
br label %9, !llvm.loop !6
22: ; preds = %9
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #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/tmpxexx2l7t.c"
target datalayout = "e-m:e-p270: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.some_data = private unnamed_addr constant [4 x i32] [i32 1492, i32 1066, i32 0, i32 0], align 16
@.str = private unnamed_addr constant [9 x i8] c"%2s%14s\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"i\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"some_data[i]\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"%2d%14d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [4 x i32], align 16
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.some_data, i64 16, i1 false)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2)
store i32 0, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = icmp slt i32 %9, 4
br i1 %10, label %.lr.ph, label %23
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %18
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %7, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 %14
%16 = load i32, ptr %15, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %12, i32 noundef %16)
br label %18
18: ; preds = %11
%19 = load i32, ptr %7, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %7, align 4
%21 = load i32, ptr %7, align 4
%22 = icmp slt i32 %21, 4
br i1 %22, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %23
23: ; preds = %._crit_edge, %2
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #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/tmpw7524qa4.c'
source_filename = "/tmp/tmpw7524qa4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cfree(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 @dlfree(ptr noundef %3)
ret void
}
declare i32 @dlfree(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw7524qa4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cfree(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 @dlfree(ptr noundef %3)
ret void
}
declare i32 @dlfree(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbfwqopiz.c'
source_filename = "/tmp/tmpbfwqopiz.c"
target datalayout = "e-m:e-p270: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/tmpbfwqopiz.c"
target datalayout = "e-m:e-p270: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/tmpiv6u6h9v.c'
source_filename = "/tmp/tmpiv6u6h9v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @kernel__Char__to_lower(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
%3 = alloca i8, align 1
%4 = alloca i16, align 2
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i8, align 1
%8 = alloca i8, align 1
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i8, align 1
%13 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%14 = load i8, ptr %2, align 1
%15 = call signext i16 @kernel__Char__is_upper(i8 noundef signext %14)
store i16 %15, ptr %4, align 2
%16 = load i16, ptr %4, align 2
%17 = icmp ne i16 %16, 0
br i1 %17, label %18, label %36
18: ; preds = %1
%19 = load i8, ptr %2, align 1
%20 = zext i8 %19 to i64
store i64 %20, ptr %6, align 8
%21 = load i64, ptr %6, align 8
store i64 %21, ptr %5, align 8
br label %22
22: ; preds = %18
store i8 97, ptr %7, align 1
store i8 65, ptr %8, align 1
%23 = load i8, ptr %7, align 1
%24 = load i8, ptr %8, align 1
%25 = call i64 @kernel__Char__distance(i8 noundef signext %23, i8 noundef signext %24)
store i64 %25, ptr %9, align 8
%26 = load i64, ptr %5, align 8
%27 = load i64, ptr %9, align 8
%28 = add nsw i64 %26, %27
store i64 %28, ptr %11, align 8
%29 = load i64, ptr %11, align 8
store i64 %29, ptr %10, align 8
br label %30
30: ; preds = %22
%31 = load i64, ptr %10, align 8
%32 = trunc i64 %31 to i8
store i8 %32, ptr %13, align 1
%33 = load i8, ptr %13, align 1
store i8 %33, ptr %12, align 1
br label %34
34: ; preds = %30
%35 = load i8, ptr %12, align 1
store i8 %35, ptr %3, align 1
br label %38
36: ; preds = %1
%37 = load i8, ptr %2, align 1
store i8 %37, ptr %3, align 1
br label %38
38: ; preds = %36, %34
%39 = load i8, ptr %3, align 1
ret i8 %39
}
declare signext i16 @kernel__Char__is_upper(i8 noundef signext) #1
declare i64 @kernel__Char__distance(i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiv6u6h9v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @kernel__Char__to_lower(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
%3 = alloca i8, align 1
%4 = alloca i16, align 2
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i8, align 1
%8 = alloca i8, align 1
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i8, align 1
%13 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%14 = load i8, ptr %2, align 1
%15 = call signext i16 @kernel__Char__is_upper(i8 noundef signext %14)
store i16 %15, ptr %4, align 2
%16 = load i16, ptr %4, align 2
%17 = icmp ne i16 %16, 0
br i1 %17, label %18, label %36
18: ; preds = %1
%19 = load i8, ptr %2, align 1
%20 = zext i8 %19 to i64
store i64 %20, ptr %6, align 8
%21 = load i64, ptr %6, align 8
store i64 %21, ptr %5, align 8
br label %22
22: ; preds = %18
store i8 97, ptr %7, align 1
store i8 65, ptr %8, align 1
%23 = load i8, ptr %7, align 1
%24 = load i8, ptr %8, align 1
%25 = call i64 @kernel__Char__distance(i8 noundef signext %23, i8 noundef signext %24)
store i64 %25, ptr %9, align 8
%26 = load i64, ptr %5, align 8
%27 = load i64, ptr %9, align 8
%28 = add nsw i64 %26, %27
store i64 %28, ptr %11, align 8
%29 = load i64, ptr %11, align 8
store i64 %29, ptr %10, align 8
br label %30
30: ; preds = %22
%31 = load i64, ptr %10, align 8
%32 = trunc i64 %31 to i8
store i8 %32, ptr %13, align 1
%33 = load i8, ptr %13, align 1
store i8 %33, ptr %12, align 1
br label %34
34: ; preds = %30
%35 = load i8, ptr %12, align 1
store i8 %35, ptr %3, align 1
br label %38
36: ; preds = %1
%37 = load i8, ptr %2, align 1
store i8 %37, ptr %3, align 1
br label %38
38: ; preds = %36, %34
%39 = load i8, ptr %3, align 1
ret i8 %39
}
declare signext i16 @kernel__Char__is_upper(i8 noundef signext) #1
declare i64 @kernel__Char__distance(i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6w68efit.c'
source_filename = "/tmp/tmp6w68efit.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"Usage: %s (ls|<FILENAME>)\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"Description:\0A\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"\09Dump contents of a tar file\0A\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"Options:\0A\00", align 1
@.str.4 = private unnamed_addr constant [43 x i8] c"\09ls\09\09display listing of files in tar file\0A\00", align 1
@.str.5 = private unnamed_addr constant [49 x i8] c"\09<FILENAME>\09filename within tar file to display\0A\00", align 1
@.str.6 = private unnamed_addr constant [35 x i8] c"\09--help\09\09display this help screen\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @tarHelp(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 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
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/tmp6w68efit.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"Usage: %s (ls|<FILENAME>)\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"Description:\0A\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"\09Dump contents of a tar file\0A\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"Options:\0A\00", align 1
@.str.4 = private unnamed_addr constant [43 x i8] c"\09ls\09\09display listing of files in tar file\0A\00", align 1
@.str.5 = private unnamed_addr constant [49 x i8] c"\09<FILENAME>\09filename within tar file to display\0A\00", align 1
@.str.6 = private unnamed_addr constant [35 x i8] c"\09--help\09\09display this help screen\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @tarHelp(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 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
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/tmpoglii04b.c'
source_filename = "/tmp/tmpoglii04b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @read_ull(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i64, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @readn(i32 noundef %4, ptr noundef %3, i32 noundef 8)
%6 = load i64, ptr %3, align 8
ret i64 %6
}
declare i32 @readn(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoglii04b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @read_ull(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i64, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @readn(i32 noundef %4, ptr noundef %3, i32 noundef 8)
%6 = load i64, ptr %3, align 8
ret i64 %6
}
declare i32 @readn(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpb11_27_l.c'
source_filename = "/tmp/tmpb11_27_l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @maxheapify(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%11 = load i64, ptr %5, align 8
%12 = mul i64 2, %11
%13 = add i64 %12, 1
store i64 %13, ptr %9, align 8
%14 = load i64, ptr %5, align 8
%15 = mul i64 2, %14
%16 = add i64 %15, 2
store i64 %16, ptr %10, align 8
%17 = load i64, ptr %9, align 8
%18 = load i64, ptr %6, align 8
%19 = icmp ule i64 %17, %18
br i1 %19, label %20, label %32
20: ; preds = %3
%21 = load ptr, ptr %4, align 8
%22 = load i64, ptr %9, align 8
%23 = getelementptr inbounds i32, ptr %21, i64 %22
%24 = load i32, ptr %23, align 4
%25 = load ptr, ptr %4, align 8
%26 = load i64, ptr %5, align 8
%27 = getelementptr inbounds i32, ptr %25, i64 %26
%28 = load i32, ptr %27, align 4
%29 = icmp sgt i32 %24, %28
br i1 %29, label %30, label %32
30: ; preds = %20
%31 = load i64, ptr %9, align 8
store i64 %31, ptr %7, align 8
br label %34
32: ; preds = %20, %3
%33 = load i64, ptr %5, align 8
store i64 %33, ptr %7, align 8
br label %34
34: ; preds = %32, %30
%35 = load i64, ptr %10, align 8
%36 = load i64, ptr %6, align 8
%37 = icmp ule i64 %35, %36
br i1 %37, label %38, label %50
38: ; preds = %34
%39 = load ptr, ptr %4, align 8
%40 = load i64, ptr %10, align 8
%41 = getelementptr inbounds i32, ptr %39, i64 %40
%42 = load i32, ptr %41, align 4
%43 = load ptr, ptr %4, align 8
%44 = load i64, ptr %7, align 8
%45 = getelementptr inbounds i32, ptr %43, i64 %44
%46 = load i32, ptr %45, align 4
%47 = icmp sgt i32 %42, %46
br i1 %47, label %48, label %50
48: ; preds = %38
%49 = load i64, ptr %10, align 8
store i64 %49, ptr %7, align 8
br label %50
50: ; preds = %48, %38, %34
%51 = load i64, ptr %7, align 8
%52 = load i64, ptr %5, align 8
%53 = icmp ne i64 %51, %52
br i1 %53, label %54, label %73
54: ; preds = %50
%55 = load ptr, ptr %4, align 8
%56 = load i64, ptr %5, align 8
%57 = getelementptr inbounds i32, ptr %55, i64 %56
%58 = load i32, ptr %57, align 4
store i32 %58, ptr %8, align 4
%59 = load ptr, ptr %4, align 8
%60 = load i64, ptr %7, align 8
%61 = getelementptr inbounds i32, ptr %59, i64 %60
%62 = load i32, ptr %61, align 4
%63 = load ptr, ptr %4, align 8
%64 = load i64, ptr %5, align 8
%65 = getelementptr inbounds i32, ptr %63, i64 %64
store i32 %62, ptr %65, align 4
%66 = load i32, ptr %8, align 4
%67 = load ptr, ptr %4, align 8
%68 = load i64, ptr %7, align 8
%69 = getelementptr inbounds i32, ptr %67, i64 %68
store i32 %66, ptr %69, align 4
%70 = load ptr, ptr %4, align 8
%71 = load i64, ptr %7, align 8
%72 = load i64, ptr %6, align 8
call void @maxheapify(ptr noundef %70, i64 noundef %71, i64 noundef %72)
br label %73
73: ; preds = %54, %50
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/tmpb11_27_l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @maxheapify(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%11 = load i64, ptr %5, align 8
%12 = mul i64 2, %11
%13 = add i64 %12, 1
store i64 %13, ptr %9, align 8
%14 = load i64, ptr %5, align 8
%15 = mul i64 2, %14
%16 = add i64 %15, 2
store i64 %16, ptr %10, align 8
%17 = load i64, ptr %9, align 8
%18 = load i64, ptr %6, align 8
%19 = icmp ule i64 %17, %18
br i1 %19, label %20, label %32
20: ; preds = %3
%21 = load ptr, ptr %4, align 8
%22 = load i64, ptr %9, align 8
%23 = getelementptr inbounds i32, ptr %21, i64 %22
%24 = load i32, ptr %23, align 4
%25 = load ptr, ptr %4, align 8
%26 = load i64, ptr %5, align 8
%27 = getelementptr inbounds i32, ptr %25, i64 %26
%28 = load i32, ptr %27, align 4
%29 = icmp sgt i32 %24, %28
br i1 %29, label %30, label %32
30: ; preds = %20
%31 = load i64, ptr %9, align 8
store i64 %31, ptr %7, align 8
br label %34
32: ; preds = %20, %3
%33 = load i64, ptr %5, align 8
store i64 %33, ptr %7, align 8
br label %34
34: ; preds = %32, %30
%35 = load i64, ptr %10, align 8
%36 = load i64, ptr %6, align 8
%37 = icmp ule i64 %35, %36
br i1 %37, label %38, label %50
38: ; preds = %34
%39 = load ptr, ptr %4, align 8
%40 = load i64, ptr %10, align 8
%41 = getelementptr inbounds i32, ptr %39, i64 %40
%42 = load i32, ptr %41, align 4
%43 = load ptr, ptr %4, align 8
%44 = load i64, ptr %7, align 8
%45 = getelementptr inbounds i32, ptr %43, i64 %44
%46 = load i32, ptr %45, align 4
%47 = icmp sgt i32 %42, %46
br i1 %47, label %48, label %50
48: ; preds = %38
%49 = load i64, ptr %10, align 8
store i64 %49, ptr %7, align 8
br label %50
50: ; preds = %48, %38, %34
%51 = load i64, ptr %7, align 8
%52 = load i64, ptr %5, align 8
%53 = icmp ne i64 %51, %52
br i1 %53, label %54, label %73
54: ; preds = %50
%55 = load ptr, ptr %4, align 8
%56 = load i64, ptr %5, align 8
%57 = getelementptr inbounds i32, ptr %55, i64 %56
%58 = load i32, ptr %57, align 4
store i32 %58, ptr %8, align 4
%59 = load ptr, ptr %4, align 8
%60 = load i64, ptr %7, align 8
%61 = getelementptr inbounds i32, ptr %59, i64 %60
%62 = load i32, ptr %61, align 4
%63 = load ptr, ptr %4, align 8
%64 = load i64, ptr %5, align 8
%65 = getelementptr inbounds i32, ptr %63, i64 %64
store i32 %62, ptr %65, align 4
%66 = load i32, ptr %8, align 4
%67 = load ptr, ptr %4, align 8
%68 = load i64, ptr %7, align 8
%69 = getelementptr inbounds i32, ptr %67, i64 %68
store i32 %66, ptr %69, align 4
%70 = load ptr, ptr %4, align 8
%71 = load i64, ptr %7, align 8
%72 = load i64, ptr %6, align 8
call void @maxheapify(ptr noundef %70, i64 noundef %71, i64 noundef %72)
br label %73
73: ; preds = %54, %50
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/tmpqub0fxnu.c'
source_filename = "/tmp/tmpqub0fxnu.c"
target datalayout = "e-m:e-p270: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 [24 x i8] c"Usage: pretty file ...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqub0fxnu.c"
target datalayout = "e-m:e-p270: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 [24 x i8] c"Usage: pretty file ...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy5txsf_5.c'
source_filename = "/tmp/tmpy5txsf_5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.1 = private unnamed_addr constant [42 x i8] c" Przyklad programu wykorzystujacy menu \00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c" Wybierz:\00", align 1
@.str.3 = private unnamed_addr constant [41 x i8] c" w - wypisanie 3.5 najwazniejszych zasad\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c" p - przyklad programu\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c" k - koniec pracy\00", align 1
@.str.6 = private unnamed_addr constant [12 x i8] c"Twoj wybor:\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"%c\0A\00", align 1
@.str.9 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.10 = private unnamed_addr constant [2 x i8] c" \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @menu() #0 {
%1 = alloca i8, align 1
%2 = alloca i8, align 1
%3 = alloca i8, align 1
%4 = alloca i8, align 1
%5 = alloca i8, align 1
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca i8, align 1
%9 = alloca i32, align 4
%10 = alloca [6 x ptr], align 16
%11 = alloca i8, align 1
store i8 -55, ptr %1, align 1
store i8 -51, ptr %2, align 1
store i8 -69, ptr %3, align 1
store i8 -70, ptr %4, align 1
store i8 -56, ptr %5, align 1
store i8 -68, ptr %6, align 1
store i8 -52, ptr %7, align 1
store i8 -71, ptr %8, align 1
store i32 0, ptr %9, align 4
br label %12
12: ; preds = %17, %0
%13 = load i32, ptr %9, align 4
%14 = icmp slt i32 %13, 25
br i1 %14, label %15, label %20
15: ; preds = %12
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %17
17: ; preds = %15
%18 = load i32, ptr %9, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %9, align 4
br label %12, !llvm.loop !6
20: ; preds = %12
%21 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 0
store ptr @.str.1, ptr %21, align 16
%22 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 1
store ptr @.str.2, ptr %22, align 8
%23 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 2
store ptr @.str.3, ptr %23, align 16
%24 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 3
store ptr @.str.4, ptr %24, align 8
%25 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 4
store ptr @.str.5, ptr %25, align 16
%26 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 5
store ptr @.str.6, ptr %26, align 8
%27 = load i8, ptr %1, align 1
%28 = sext i8 %27 to i32
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %28)
store i32 0, ptr %9, align 4
br label %30
30: ; preds = %40, %20
%31 = load i32, ptr %9, align 4
%32 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 0
%33 = load ptr, ptr %32, align 16
%34 = call i32 @strlen(ptr noundef %33)
%35 = icmp slt i32 %31, %34
br i1 %35, label %36, label %43
36: ; preds = %30
%37 = load i8, ptr %2, align 1
%38 = sext i8 %37 to i32
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %38)
br label %40
40: ; preds = %36
%41 = load i32, ptr %9, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %9, align 4
br label %30, !llvm.loop !8
43: ; preds = %30
%44 = load i8, ptr %3, align 1
%45 = sext i8 %44 to i32
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %45)
%47 = load i8, ptr %4, align 1
%48 = sext i8 %47 to i32
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %48)
%50 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 0
%51 = load ptr, ptr %50, align 16
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %51)
%53 = load i8, ptr %4, align 1
%54 = sext i8 %53 to i32
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %54)
%56 = load i8, ptr %7, align 1
%57 = sext i8 %56 to i32
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %57)
store i32 0, ptr %9, align 4
br label %59
59: ; preds = %69, %43
%60 = load i32, ptr %9, align 4
%61 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 0
%62 = load ptr, ptr %61, align 16
%63 = call i32 @strlen(ptr noundef %62)
%64 = icmp slt i32 %60, %63
br i1 %64, label %65, label %72
65: ; preds = %59
%66 = load i8, ptr %2, align 1
%67 = sext i8 %66 to i32
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %67)
br label %69
69: ; preds = %65
%70 = load i32, ptr %9, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %9, align 4
br label %59, !llvm.loop !9
72: ; preds = %59
%73 = load i8, ptr %8, align 1
%74 = sext i8 %73 to i32
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %74)
%76 = load i8, ptr %4, align 1
%77 = sext i8 %76 to i32
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %77)
%79 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 1
%80 = load ptr, ptr %79, align 8
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %80)
store i32 0, ptr %9, align 4
br label %82
82: ; preds = %94, %72
%83 = load i32, ptr %9, align 4
%84 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 0
%85 = load ptr, ptr %84, align 16
%86 = call i32 @strlen(ptr noundef %85)
%87 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 1
%88 = load ptr, ptr %87, align 8
%89 = call i32 @strlen(ptr noundef %88)
%90 = sub nsw i32 %86, %89
%91 = icmp slt i32 %83, %90
br i1 %91, label %92, label %97
92: ; preds = %82
%93 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %94
94: ; preds = %92
%95 = load i32, ptr %9, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %9, align 4
br label %82, !llvm.loop !10
97: ; preds = %82
%98 = load i8, ptr %4, align 1
%99 = sext i8 %98 to i32
%100 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %99)
%101 = load i8, ptr %4, align 1
%102 = sext i8 %101 to i32
%103 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %102)
%104 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 2
%105 = load ptr, ptr %104, align 16
%106 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %105)
store i32 0, ptr %9, align 4
br label %107
107: ; preds = %119, %97
%108 = load i32, ptr %9, align 4
%109 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 0
%110 = load ptr, ptr %109, align 16
%111 = call i32 @strlen(ptr noundef %110)
%112 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 2
%113 = load ptr, ptr %112, align 16
%114 = call i32 @strlen(ptr noundef %113)
%115 = sub nsw i32 %111, %114
%116 = icmp slt i32 %108, %115
br i1 %116, label %117, label %122
117: ; preds = %107
%118 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %119
119: ; preds = %117
%120 = load i32, ptr %9, align 4
%121 = add nsw i32 %120, 1
store i32 %121, ptr %9, align 4
br label %107, !llvm.loop !11
122: ; preds = %107
%123 = load i8, ptr %4, align 1
%124 = sext i8 %123 to i32
%125 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %124)
%126 = load i8, ptr %4, align 1
%127 = sext i8 %126 to i32
%128 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %127)
%129 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 3
%130 = load ptr, ptr %129, align 8
%131 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %130)
store i32 0, ptr %9, align 4
br label %132
132: ; preds = %144, %122
%133 = load i32, ptr %9, align 4
%134 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 0
%135 = load ptr, ptr %134, align 16
%136 = call i32 @strlen(ptr noundef %135)
%137 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 3
%138 = load ptr, ptr %137, align 8
%139 = call i32 @strlen(ptr noundef %138)
%140 = sub nsw i32 %136, %139
%141 = icmp slt i32 %133, %140
br i1 %141, label %142, label %147
142: ; preds = %132
%143 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %144
144: ; preds = %142
%145 = load i32, ptr %9, align 4
%146 = add nsw i32 %145, 1
store i32 %146, ptr %9, align 4
br label %132, !llvm.loop !12
147: ; preds = %132
%148 = load i8, ptr %4, align 1
%149 = sext i8 %148 to i32
%150 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %149)
%151 = load i8, ptr %4, align 1
%152 = sext i8 %151 to i32
%153 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %152)
%154 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 4
%155 = load ptr, ptr %154, align 16
%156 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %155)
store i32 0, ptr %9, align 4
br label %157
157: ; preds = %169, %147
%158 = load i32, ptr %9, align 4
%159 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 0
%160 = load ptr, ptr %159, align 16
%161 = call i32 @strlen(ptr noundef %160)
%162 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 4
%163 = load ptr, ptr %162, align 16
%164 = call i32 @strlen(ptr noundef %163)
%165 = sub nsw i32 %161, %164
%166 = icmp slt i32 %158, %165
br i1 %166, label %167, label %172
167: ; preds = %157
%168 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %169
169: ; preds = %167
%170 = load i32, ptr %9, align 4
%171 = add nsw i32 %170, 1
store i32 %171, ptr %9, align 4
br label %157, !llvm.loop !13
172: ; preds = %157
%173 = load i8, ptr %4, align 1
%174 = sext i8 %173 to i32
%175 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %174)
%176 = load i8, ptr %5, align 1
%177 = sext i8 %176 to i32
%178 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %177)
store i32 0, ptr %9, align 4
br label %179
179: ; preds = %189, %172
%180 = load i32, ptr %9, align 4
%181 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 0
%182 = load ptr, ptr %181, align 16
%183 = call i32 @strlen(ptr noundef %182)
%184 = icmp slt i32 %180, %183
br i1 %184, label %185, label %192
185: ; preds = %179
%186 = load i8, ptr %2, align 1
%187 = sext i8 %186 to i32
%188 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %187)
br label %189
189: ; preds = %185
%190 = load i32, ptr %9, align 4
%191 = add nsw i32 %190, 1
store i32 %191, ptr %9, align 4
br label %179, !llvm.loop !14
192: ; preds = %179
%193 = load i8, ptr %6, align 1
%194 = sext i8 %193 to i32
%195 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %194)
%196 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 5
%197 = load ptr, ptr %196, align 8
%198 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %197)
br label %199
199: ; preds = %192, %225
%200 = call signext i8 (...) @getchar()
store i8 %200, ptr %11, align 1
%201 = load i8, ptr %11, align 1
%202 = sext i8 %201 to i32
%203 = icmp eq i32 %202, 119
br i1 %203, label %224, label %204
204: ; preds = %199
%205 = load i8, ptr %11, align 1
%206 = sext i8 %205 to i32
%207 = icmp eq i32 %206, 87
br i1 %207, label %224, label %208
208: ; preds = %204
%209 = load i8, ptr %11, align 1
%210 = sext i8 %209 to i32
%211 = icmp eq i32 %210, 112
br i1 %211, label %224, label %212
212: ; preds = %208
%213 = load i8, ptr %11, align 1
%214 = sext i8 %213 to i32
%215 = icmp eq i32 %214, 80
br i1 %215, label %224, label %216
216: ; preds = %212
%217 = load i8, ptr %11, align 1
%218 = sext i8 %217 to i32
%219 = icmp eq i32 %218, 107
br i1 %219, label %224, label %220
220: ; preds = %216
%221 = load i8, ptr %11, align 1
%222 = sext i8 %221 to i32
%223 = icmp eq i32 %222, 75
br i1 %223, label %224, label %225
224: ; preds = %220, %216, %212, %208, %204, %199
br label %226
225: ; preds = %220
br label %199
226: ; preds = %224
%227 = load i8, ptr %11, align 1
ret i8 %227
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @strlen(ptr noundef) #1
declare signext i8 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy5txsf_5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.1 = private unnamed_addr constant [42 x i8] c" Przyklad programu wykorzystujacy menu \00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c" Wybierz:\00", align 1
@.str.3 = private unnamed_addr constant [41 x i8] c" w - wypisanie 3.5 najwazniejszych zasad\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c" p - przyklad programu\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c" k - koniec pracy\00", align 1
@.str.6 = private unnamed_addr constant [12 x i8] c"Twoj wybor:\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"%c\0A\00", align 1
@.str.9 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.10 = private unnamed_addr constant [2 x i8] c" \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @menu() #0 {
%1 = alloca i8, align 1
%2 = alloca i8, align 1
%3 = alloca i8, align 1
%4 = alloca i8, align 1
%5 = alloca i8, align 1
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca i8, align 1
%9 = alloca i32, align 4
%10 = alloca [6 x ptr], align 16
%11 = alloca i8, align 1
store i8 -55, ptr %1, align 1
store i8 -51, ptr %2, align 1
store i8 -69, ptr %3, align 1
store i8 -70, ptr %4, align 1
store i8 -56, ptr %5, align 1
store i8 -68, ptr %6, align 1
store i8 -52, ptr %7, align 1
store i8 -71, ptr %8, align 1
store i32 0, ptr %9, align 4
%12 = load i32, ptr %9, align 4
%13 = icmp slt i32 %12, 25
br i1 %13, label %.lr.ph, label %21
.lr.ph: ; preds = %0
br label %14
14: ; preds = %.lr.ph, %16
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %16
16: ; preds = %14
%17 = load i32, ptr %9, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %9, align 4
%19 = load i32, ptr %9, align 4
%20 = icmp slt i32 %19, 25
br i1 %20, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %21
21: ; preds = %._crit_edge, %0
%22 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 0
store ptr @.str.1, ptr %22, align 16
%23 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 1
store ptr @.str.2, ptr %23, align 8
%24 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 2
store ptr @.str.3, ptr %24, align 16
%25 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 3
store ptr @.str.4, ptr %25, align 8
%26 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 4
store ptr @.str.5, ptr %26, align 16
%27 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 5
store ptr @.str.6, ptr %27, align 8
%28 = load i8, ptr %1, align 1
%29 = sext i8 %28 to i32
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %29)
store i32 0, ptr %9, align 4
%31 = load i32, ptr %9, align 4
%32 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 0
%33 = load ptr, ptr %32, align 16
%34 = call i32 @strlen(ptr noundef %33)
%35 = icmp slt i32 %31, %34
br i1 %35, label %.lr.ph2, label %47
.lr.ph2: ; preds = %21
br label %36
36: ; preds = %.lr.ph2, %40
%37 = load i8, ptr %2, align 1
%38 = sext i8 %37 to i32
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %38)
br label %40
40: ; preds = %36
%41 = load i32, ptr %9, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %9, align 4
%43 = load i32, ptr %9, align 4
%44 = load ptr, ptr %32, align 16
%45 = call i32 @strlen(ptr noundef %44)
%46 = icmp slt i32 %43, %45
br i1 %46, label %36, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %40
br label %47
47: ; preds = %._crit_edge3, %21
%48 = load i8, ptr %3, align 1
%49 = sext i8 %48 to i32
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %49)
%51 = load i8, ptr %4, align 1
%52 = sext i8 %51 to i32
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %52)
%54 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 0
%55 = load ptr, ptr %54, align 16
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %55)
%57 = load i8, ptr %4, align 1
%58 = sext i8 %57 to i32
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %58)
%60 = load i8, ptr %7, align 1
%61 = sext i8 %60 to i32
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %61)
store i32 0, ptr %9, align 4
%63 = load i32, ptr %9, align 4
%64 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 0
%65 = load ptr, ptr %64, align 16
%66 = call i32 @strlen(ptr noundef %65)
%67 = icmp slt i32 %63, %66
br i1 %67, label %.lr.ph5, label %79
.lr.ph5: ; preds = %47
br label %68
68: ; preds = %.lr.ph5, %72
%69 = load i8, ptr %2, align 1
%70 = sext i8 %69 to i32
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %70)
br label %72
72: ; preds = %68
%73 = load i32, ptr %9, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %9, align 4
%75 = load i32, ptr %9, align 4
%76 = load ptr, ptr %64, align 16
%77 = call i32 @strlen(ptr noundef %76)
%78 = icmp slt i32 %75, %77
br i1 %78, label %68, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %72
br label %79
79: ; preds = %._crit_edge6, %47
%80 = load i8, ptr %8, align 1
%81 = sext i8 %80 to i32
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %81)
%83 = load i8, ptr %4, align 1
%84 = sext i8 %83 to i32
%85 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %84)
%86 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 1
%87 = load ptr, ptr %86, align 8
%88 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %87)
store i32 0, ptr %9, align 4
%89 = load i32, ptr %9, align 4
%90 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 0
%91 = load ptr, ptr %90, align 16
%92 = call i32 @strlen(ptr noundef %91)
%93 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 1
%94 = load ptr, ptr %93, align 8
%95 = call i32 @strlen(ptr noundef %94)
%96 = sub nsw i32 %92, %95
%97 = icmp slt i32 %89, %96
br i1 %97, label %.lr.ph8, label %110
.lr.ph8: ; preds = %79
br label %98
98: ; preds = %.lr.ph8, %100
%99 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %100
100: ; preds = %98
%101 = load i32, ptr %9, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %9, align 4
%103 = load i32, ptr %9, align 4
%104 = load ptr, ptr %90, align 16
%105 = call i32 @strlen(ptr noundef %104)
%106 = load ptr, ptr %93, align 8
%107 = call i32 @strlen(ptr noundef %106)
%108 = sub nsw i32 %105, %107
%109 = icmp slt i32 %103, %108
br i1 %109, label %98, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %100
br label %110
110: ; preds = %._crit_edge9, %79
%111 = load i8, ptr %4, align 1
%112 = sext i8 %111 to i32
%113 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %112)
%114 = load i8, ptr %4, align 1
%115 = sext i8 %114 to i32
%116 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %115)
%117 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 2
%118 = load ptr, ptr %117, align 16
%119 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %118)
store i32 0, ptr %9, align 4
%120 = load i32, ptr %9, align 4
%121 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 0
%122 = load ptr, ptr %121, align 16
%123 = call i32 @strlen(ptr noundef %122)
%124 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 2
%125 = load ptr, ptr %124, align 16
%126 = call i32 @strlen(ptr noundef %125)
%127 = sub nsw i32 %123, %126
%128 = icmp slt i32 %120, %127
br i1 %128, label %.lr.ph11, label %141
.lr.ph11: ; preds = %110
br label %129
129: ; preds = %.lr.ph11, %131
%130 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %131
131: ; preds = %129
%132 = load i32, ptr %9, align 4
%133 = add nsw i32 %132, 1
store i32 %133, ptr %9, align 4
%134 = load i32, ptr %9, align 4
%135 = load ptr, ptr %121, align 16
%136 = call i32 @strlen(ptr noundef %135)
%137 = load ptr, ptr %124, align 16
%138 = call i32 @strlen(ptr noundef %137)
%139 = sub nsw i32 %136, %138
%140 = icmp slt i32 %134, %139
br i1 %140, label %129, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %131
br label %141
141: ; preds = %._crit_edge12, %110
%142 = load i8, ptr %4, align 1
%143 = sext i8 %142 to i32
%144 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %143)
%145 = load i8, ptr %4, align 1
%146 = sext i8 %145 to i32
%147 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %146)
%148 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 3
%149 = load ptr, ptr %148, align 8
%150 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %149)
store i32 0, ptr %9, align 4
%151 = load i32, ptr %9, align 4
%152 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 0
%153 = load ptr, ptr %152, align 16
%154 = call i32 @strlen(ptr noundef %153)
%155 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 3
%156 = load ptr, ptr %155, align 8
%157 = call i32 @strlen(ptr noundef %156)
%158 = sub nsw i32 %154, %157
%159 = icmp slt i32 %151, %158
br i1 %159, label %.lr.ph14, label %172
.lr.ph14: ; preds = %141
br label %160
160: ; preds = %.lr.ph14, %162
%161 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %162
162: ; preds = %160
%163 = load i32, ptr %9, align 4
%164 = add nsw i32 %163, 1
store i32 %164, ptr %9, align 4
%165 = load i32, ptr %9, align 4
%166 = load ptr, ptr %152, align 16
%167 = call i32 @strlen(ptr noundef %166)
%168 = load ptr, ptr %155, align 8
%169 = call i32 @strlen(ptr noundef %168)
%170 = sub nsw i32 %167, %169
%171 = icmp slt i32 %165, %170
br i1 %171, label %160, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %162
br label %172
172: ; preds = %._crit_edge15, %141
%173 = load i8, ptr %4, align 1
%174 = sext i8 %173 to i32
%175 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %174)
%176 = load i8, ptr %4, align 1
%177 = sext i8 %176 to i32
%178 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %177)
%179 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 4
%180 = load ptr, ptr %179, align 16
%181 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %180)
store i32 0, ptr %9, align 4
%182 = load i32, ptr %9, align 4
%183 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 0
%184 = load ptr, ptr %183, align 16
%185 = call i32 @strlen(ptr noundef %184)
%186 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 4
%187 = load ptr, ptr %186, align 16
%188 = call i32 @strlen(ptr noundef %187)
%189 = sub nsw i32 %185, %188
%190 = icmp slt i32 %182, %189
br i1 %190, label %.lr.ph17, label %203
.lr.ph17: ; preds = %172
br label %191
191: ; preds = %.lr.ph17, %193
%192 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %193
193: ; preds = %191
%194 = load i32, ptr %9, align 4
%195 = add nsw i32 %194, 1
store i32 %195, ptr %9, align 4
%196 = load i32, ptr %9, align 4
%197 = load ptr, ptr %183, align 16
%198 = call i32 @strlen(ptr noundef %197)
%199 = load ptr, ptr %186, align 16
%200 = call i32 @strlen(ptr noundef %199)
%201 = sub nsw i32 %198, %200
%202 = icmp slt i32 %196, %201
br i1 %202, label %191, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %193
br label %203
203: ; preds = %._crit_edge18, %172
%204 = load i8, ptr %4, align 1
%205 = sext i8 %204 to i32
%206 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %205)
%207 = load i8, ptr %5, align 1
%208 = sext i8 %207 to i32
%209 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %208)
store i32 0, ptr %9, align 4
%210 = load i32, ptr %9, align 4
%211 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 0
%212 = load ptr, ptr %211, align 16
%213 = call i32 @strlen(ptr noundef %212)
%214 = icmp slt i32 %210, %213
br i1 %214, label %.lr.ph20, label %226
.lr.ph20: ; preds = %203
br label %215
215: ; preds = %.lr.ph20, %219
%216 = load i8, ptr %2, align 1
%217 = sext i8 %216 to i32
%218 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %217)
br label %219
219: ; preds = %215
%220 = load i32, ptr %9, align 4
%221 = add nsw i32 %220, 1
store i32 %221, ptr %9, align 4
%222 = load i32, ptr %9, align 4
%223 = load ptr, ptr %211, align 16
%224 = call i32 @strlen(ptr noundef %223)
%225 = icmp slt i32 %222, %224
br i1 %225, label %215, label %._crit_edge21, !llvm.loop !14
._crit_edge21: ; preds = %219
br label %226
226: ; preds = %._crit_edge21, %203
%227 = load i8, ptr %6, align 1
%228 = sext i8 %227 to i32
%229 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %228)
%230 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 5
%231 = load ptr, ptr %230, align 8
%232 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %231)
%233 = call signext i8 (...) @getchar()
store i8 %233, ptr %11, align 1
%234 = load i8, ptr %11, align 1
%235 = sext i8 %234 to i32
%236 = icmp eq i32 %235, 119
br i1 %236, label %262, label %.lr.ph23
.lr.ph23: ; preds = %226
br label %242
237: ; preds = %258
%238 = call signext i8 (...) @getchar()
store i8 %238, ptr %11, align 1
%239 = load i8, ptr %11, align 1
%240 = sext i8 %239 to i32
%241 = icmp eq i32 %240, 119
br i1 %241, label %._crit_edge29, label %242
242: ; preds = %.lr.ph23, %237
%243 = load i8, ptr %11, align 1
%244 = sext i8 %243 to i32
%245 = icmp eq i32 %244, 87
br i1 %245, label %._crit_edge28, label %246
246: ; preds = %242
%247 = load i8, ptr %11, align 1
%248 = sext i8 %247 to i32
%249 = icmp eq i32 %248, 112
br i1 %249, label %._crit_edge27, label %250
250: ; preds = %246
%251 = load i8, ptr %11, align 1
%252 = sext i8 %251 to i32
%253 = icmp eq i32 %252, 80
br i1 %253, label %._crit_edge26, label %254
254: ; preds = %250
%255 = load i8, ptr %11, align 1
%256 = sext i8 %255 to i32
%257 = icmp eq i32 %256, 107
br i1 %257, label %._crit_edge25, label %258
258: ; preds = %254
%259 = load i8, ptr %11, align 1
%260 = sext i8 %259 to i32
%261 = icmp eq i32 %260, 75
br i1 %261, label %._crit_edge24, label %237
._crit_edge24: ; preds = %258
br label %262
._crit_edge25: ; preds = %254
br label %262
._crit_edge26: ; preds = %250
br label %262
._crit_edge27: ; preds = %246
br label %262
._crit_edge28: ; preds = %242
br label %262
._crit_edge29: ; preds = %237
br label %262
262: ; preds = %._crit_edge29, %._crit_edge28, %._crit_edge27, %._crit_edge26, %._crit_edge25, %._crit_edge24, %226
br label %263
263: ; preds = %262
%264 = load i8, ptr %11, align 1
ret i8 %264
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @strlen(ptr noundef) #1
declare signext i8 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
|
; ModuleID = '/tmp/tmpofk5yok0.c'
source_filename = "/tmp/tmpofk5yok0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"Hello World !\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
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %3
3: ; preds = %0, %11
store i32 0, ptr %2, align 4
br label %4
4: ; preds = %8, %3
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 25000000
br i1 %6, label %7, label %11
7: ; preds = %4
br label %8
8: ; preds = %7
%9 = load i32, ptr %2, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %2, align 4
br label %4, !llvm.loop !6
11: ; preds = %4
%12 = call i32 @puts(ptr noundef @.str)
br label %3
}
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpofk5yok0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"Hello World !\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
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %3
3: ; preds = %12, %0
store i32 0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 25000000
br i1 %5, label %.lr.ph, label %12
.lr.ph: ; preds = %3
br label %6
6: ; preds = %.lr.ph, %7
br label %7
7: ; preds = %6
%8 = load i32, ptr %2, align 4
%9 = add nsw i32 %8, 1
store i32 %9, ptr %2, align 4
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %10, 25000000
br i1 %11, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %7
br label %12
12: ; preds = %._crit_edge, %3
%13 = call i32 @puts(ptr noundef @.str)
br label %3
}
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpj2ef_2n2.c'
source_filename = "/tmp/tmpj2ef_2n2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @checker2(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp ne ptr %3, null
br i1 %4, label %7, label %5
5: ; preds = %1
%6 = call i32 (...) @exitWrapper()
br label %7
7: ; preds = %5, %1
ret void
}
declare i32 @exitWrapper(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj2ef_2n2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @checker2(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp ne ptr %3, null
br i1 %4, label %7, label %5
5: ; preds = %1
%6 = call i32 (...) @exitWrapper()
br label %7
7: ; preds = %5, %1
ret void
}
declare i32 @exitWrapper(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE 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_05t10s5.c'
source_filename = "/tmp/tmp_05t10s5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_05t10s5.c"
target datalayout = "e-m:e-p270: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/tmplvmncf9f.c'
source_filename = "/tmp/tmplvmncf9f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @unknown_with_different_values_bad() #0 {
%1 = alloca ptr, align 8
store ptr null, ptr %1, align 8
%2 = call i64 @unknown(i32 noundef 32)
%3 = call i64 @unknown(i32 noundef 52)
%4 = icmp ne i64 %2, %3
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = load ptr, ptr %1, align 8
store i32 42, ptr %6, align 4
br label %7
7: ; preds = %5, %0
ret void
}
declare i64 @unknown(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/tmplvmncf9f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @unknown_with_different_values_bad() #0 {
%1 = alloca ptr, align 8
store ptr null, ptr %1, align 8
%2 = call i64 @unknown(i32 noundef 32)
%3 = call i64 @unknown(i32 noundef 52)
%4 = icmp ne i64 %2, %3
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = load ptr, ptr %1, align 8
store i32 42, ptr %6, align 4
br label %7
7: ; preds = %5, %0
ret void
}
declare i64 @unknown(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/tmp8wcua5f8.c'
source_filename = "/tmp/tmp8wcua5f8.c"
target datalayout = "e-m:e-p270: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/tmp8wcua5f8.c"
target datalayout = "e-m:e-p270: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/tmpxtwh2qmx.c'
source_filename = "/tmp/tmpxtwh2qmx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @spb_log2f(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = call float @log(float noundef %3)
%5 = call float @log(float noundef 2.000000e+00)
%6 = fdiv float %4, %5
ret float %6
}
declare float @log(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/tmpxtwh2qmx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @spb_log2f(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = call float @log(float noundef %3)
%5 = call float @log(float noundef 2.000000e+00)
%6 = fdiv float %4, %5
ret float %6
}
declare float @log(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/tmp9tc3ey3u.c'
source_filename = "/tmp/tmp9tc3ey3u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@dt1.coef = internal global [4 x [5 x double]] [[5 x double] [double 1.000000e+00, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00], [5 x double] [double 3.000000e+00, double 1.600000e+01, double 5.000000e+00, double 0.000000e+00, double 0.000000e+00], [5 x double] [double -1.500000e+01, double 1.700000e+01, double 1.900000e+01, double 3.000000e+00, double 0.000000e+00], [5 x double] [double -9.450000e+02, double -1.920000e+03, double 1.482000e+03, double 7.760000e+02, double 7.900000e+01]], align 16
@dt1.denom = internal global [4 x double] [double 4.000000e+00, double 9.600000e+01, double 3.840000e+02, double 9.216000e+04], align 16
@dt1.ideg = internal global [4 x i32] [i32 2, i32 3, i32 4, i32 5], align 16
@dt1.dt1 = internal global double 0.000000e+00, align 8
@dt1.denpow = internal global double 0.000000e+00, align 8
@dt1.sum = internal global double 0.000000e+00, align 8
@dt1.term = internal global double 0.000000e+00, align 8
@dt1.x = internal global double 0.000000e+00, align 8
@dt1.xp = internal global double 0.000000e+00, align 8
@dt1.xx = internal global double 0.000000e+00, align 8
@dt1.i = internal global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @dt1(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i32 @dinvnr(ptr noundef %7, ptr noundef %8)
%10 = call double @fabs(i32 noundef %9)
store double %10, ptr @dt1.x, align 8
%11 = load double, ptr @dt1.x, align 8
%12 = load double, ptr @dt1.x, align 8
%13 = fmul double %11, %12
store double %13, ptr @dt1.xx, align 8
%14 = load double, ptr @dt1.x, align 8
store double %14, ptr @dt1.sum, align 8
store double 1.000000e+00, ptr @dt1.denpow, align 8
store i32 0, ptr @dt1.i, align 4
br label %15
15: ; preds = %43, %3
%16 = load i32, ptr @dt1.i, align 4
%17 = icmp slt i32 %16, 4
br i1 %17, label %18, label %46
18: ; preds = %15
%19 = load i32, ptr @dt1.i, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [4 x [5 x double]], ptr @dt1.coef, i64 0, i64 %20
%22 = getelementptr inbounds [5 x double], ptr %21, i64 0, i64 0
%23 = load i32, ptr @dt1.i, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [4 x i32], ptr @dt1.ideg, i64 0, i64 %24
%26 = call double @devlpl(ptr noundef %22, ptr noundef %25, ptr noundef @dt1.xx)
%27 = load double, ptr @dt1.x, align 8
%28 = fmul double %26, %27
store double %28, ptr @dt1.term, align 8
%29 = load ptr, ptr %6, align 8
%30 = load double, ptr %29, align 8
%31 = load double, ptr @dt1.denpow, align 8
%32 = fmul double %31, %30
store double %32, ptr @dt1.denpow, align 8
%33 = load double, ptr @dt1.term, align 8
%34 = load double, ptr @dt1.denpow, align 8
%35 = load i32, ptr @dt1.i, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [4 x double], ptr @dt1.denom, i64 0, i64 %36
%38 = load double, ptr %37, align 8
%39 = fmul double %34, %38
%40 = fdiv double %33, %39
%41 = load double, ptr @dt1.sum, align 8
%42 = fadd double %41, %40
store double %42, ptr @dt1.sum, align 8
br label %43
43: ; preds = %18
%44 = load i32, ptr @dt1.i, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr @dt1.i, align 4
br label %15, !llvm.loop !6
46: ; preds = %15
%47 = load ptr, ptr %4, align 8
%48 = load double, ptr %47, align 8
%49 = fcmp oge double %48, 5.000000e-01
br i1 %49, label %51, label %50
50: ; preds = %46
br label %53
51: ; preds = %46
%52 = load double, ptr @dt1.sum, align 8
store double %52, ptr @dt1.xp, align 8
br label %56
53: ; preds = %50
%54 = load double, ptr @dt1.sum, align 8
%55 = fneg double %54
store double %55, ptr @dt1.xp, align 8
br label %56
56: ; preds = %53, %51
%57 = load double, ptr @dt1.xp, align 8
store double %57, ptr @dt1.dt1, align 8
%58 = load double, ptr @dt1.dt1, align 8
ret double %58
}
declare double @fabs(i32 noundef) #1
declare i32 @dinvnr(ptr noundef, ptr noundef) #1
declare double @devlpl(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/tmp9tc3ey3u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@dt1.coef = internal global [4 x [5 x double]] [[5 x double] [double 1.000000e+00, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00], [5 x double] [double 3.000000e+00, double 1.600000e+01, double 5.000000e+00, double 0.000000e+00, double 0.000000e+00], [5 x double] [double -1.500000e+01, double 1.700000e+01, double 1.900000e+01, double 3.000000e+00, double 0.000000e+00], [5 x double] [double -9.450000e+02, double -1.920000e+03, double 1.482000e+03, double 7.760000e+02, double 7.900000e+01]], align 16
@dt1.denom = internal global [4 x double] [double 4.000000e+00, double 9.600000e+01, double 3.840000e+02, double 9.216000e+04], align 16
@dt1.ideg = internal global [4 x i32] [i32 2, i32 3, i32 4, i32 5], align 16
@dt1.dt1 = internal global double 0.000000e+00, align 8
@dt1.denpow = internal global double 0.000000e+00, align 8
@dt1.sum = internal global double 0.000000e+00, align 8
@dt1.term = internal global double 0.000000e+00, align 8
@dt1.x = internal global double 0.000000e+00, align 8
@dt1.xp = internal global double 0.000000e+00, align 8
@dt1.xx = internal global double 0.000000e+00, align 8
@dt1.i = internal global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @dt1(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i32 @dinvnr(ptr noundef %7, ptr noundef %8)
%10 = call double @fabs(i32 noundef %9)
store double %10, ptr @dt1.x, align 8
%11 = load double, ptr @dt1.x, align 8
%12 = load double, ptr @dt1.x, align 8
%13 = fmul double %11, %12
store double %13, ptr @dt1.xx, align 8
%14 = load double, ptr @dt1.x, align 8
store double %14, ptr @dt1.sum, align 8
store double 1.000000e+00, ptr @dt1.denpow, align 8
store i32 0, ptr @dt1.i, align 4
%15 = load i32, ptr @dt1.i, align 4
%16 = icmp slt i32 %15, 4
br i1 %16, label %.lr.ph, label %47
.lr.ph: ; preds = %3
br label %17
17: ; preds = %.lr.ph, %42
%18 = load i32, ptr @dt1.i, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [4 x [5 x double]], ptr @dt1.coef, i64 0, i64 %19
%21 = getelementptr inbounds [5 x double], ptr %20, i64 0, i64 0
%22 = load i32, ptr @dt1.i, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [4 x i32], ptr @dt1.ideg, i64 0, i64 %23
%25 = call double @devlpl(ptr noundef %21, ptr noundef %24, ptr noundef @dt1.xx)
%26 = load double, ptr @dt1.x, align 8
%27 = fmul double %25, %26
store double %27, ptr @dt1.term, align 8
%28 = load ptr, ptr %6, align 8
%29 = load double, ptr %28, align 8
%30 = load double, ptr @dt1.denpow, align 8
%31 = fmul double %30, %29
store double %31, ptr @dt1.denpow, align 8
%32 = load double, ptr @dt1.term, align 8
%33 = load double, ptr @dt1.denpow, align 8
%34 = load i32, ptr @dt1.i, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [4 x double], ptr @dt1.denom, i64 0, i64 %35
%37 = load double, ptr %36, align 8
%38 = fmul double %33, %37
%39 = fdiv double %32, %38
%40 = load double, ptr @dt1.sum, align 8
%41 = fadd double %40, %39
store double %41, ptr @dt1.sum, align 8
br label %42
42: ; preds = %17
%43 = load i32, ptr @dt1.i, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr @dt1.i, align 4
%45 = load i32, ptr @dt1.i, align 4
%46 = icmp slt i32 %45, 4
br i1 %46, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %42
br label %47
47: ; preds = %._crit_edge, %3
%48 = load ptr, ptr %4, align 8
%49 = load double, ptr %48, align 8
%50 = fcmp oge double %49, 5.000000e-01
br i1 %50, label %52, label %51
51: ; preds = %47
br label %54
52: ; preds = %47
%53 = load double, ptr @dt1.sum, align 8
store double %53, ptr @dt1.xp, align 8
br label %57
54: ; preds = %51
%55 = load double, ptr @dt1.sum, align 8
%56 = fneg double %55
store double %56, ptr @dt1.xp, align 8
br label %57
57: ; preds = %54, %52
%58 = load double, ptr @dt1.xp, align 8
store double %58, ptr @dt1.dt1, align 8
%59 = load double, ptr @dt1.dt1, align 8
ret double %59
}
declare double @fabs(i32 noundef) #1
declare i32 @dinvnr(ptr noundef, ptr noundef) #1
declare double @devlpl(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/tmpnscb6dqp.c'
source_filename = "/tmp/tmpnscb6dqp.c"
target datalayout = "e-m:e-p270: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/tmpnscb6dqp.c"
target datalayout = "e-m:e-p270: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/tmpsvudik1y.c'
source_filename = "/tmp/tmpsvudik1y.c"
target datalayout = "e-m:e-p270: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/tmpsvudik1y.c"
target datalayout = "e-m:e-p270: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/tmpqoxj2bj_.c'
source_filename = "/tmp/tmpqoxj2bj_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"%lld %lld\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"%lld %lld %lld\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store i32 0, ptr %1, align 4
%9 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
store i32 0, ptr %3, align 4
br label %10
10: ; preds = %61, %0
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %64
14: ; preds = %10
%15 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %4, ptr noundef %5)
%16 = call i32 (ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %6, ptr noundef %7, ptr noundef %8)
%17 = load i64, ptr %7, align 8
%18 = load i64, ptr %8, align 8
%19 = add nsw i64 %17, %18
%20 = load i64, ptr %6, align 8
%21 = icmp slt i64 %19, %20
br i1 %21, label %22, label %33
22: ; preds = %14
%23 = load i64, ptr %5, align 8
%24 = load i64, ptr %7, align 8
%25 = mul nsw i64 %23, %24
%26 = load i64, ptr %4, align 8
%27 = load i64, ptr %7, align 8
%28 = load i64, ptr %8, align 8
%29 = add nsw i64 %27, %28
%30 = mul nsw i64 %26, %29
%31 = add nsw i64 %25, %30
%32 = call i32 @printf(ptr noundef @.str.3, i64 noundef %31)
br label %60
33: ; preds = %14
%34 = load i64, ptr %6, align 8
%35 = load i64, ptr %8, align 8
%36 = add nsw i64 %34, %35
%37 = load i64, ptr %7, align 8
%38 = icmp slt i64 %36, %37
br i1 %38, label %39, label %50
39: ; preds = %33
%40 = load i64, ptr %5, align 8
%41 = load i64, ptr %6, align 8
%42 = load i64, ptr %8, align 8
%43 = add nsw i64 %41, %42
%44 = mul nsw i64 %40, %43
%45 = load i64, ptr %4, align 8
%46 = load i64, ptr %6, align 8
%47 = mul nsw i64 %45, %46
%48 = add nsw i64 %44, %47
%49 = call i32 @printf(ptr noundef @.str.3, i64 noundef %48)
br label %59
50: ; preds = %33
%51 = load i64, ptr %5, align 8
%52 = load i64, ptr %7, align 8
%53 = mul nsw i64 %51, %52
%54 = load i64, ptr %4, align 8
%55 = load i64, ptr %6, align 8
%56 = mul nsw i64 %54, %55
%57 = add nsw i64 %53, %56
%58 = call i32 @printf(ptr noundef @.str.3, i64 noundef %57)
br label %59
59: ; preds = %50, %39
br label %60
60: ; preds = %59, %22
br label %61
61: ; preds = %60
%62 = load i32, ptr %3, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %3, align 4
br label %10, !llvm.loop !6
64: ; preds = %10
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqoxj2bj_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"%lld %lld\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"%lld %lld %lld\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store i32 0, ptr %1, align 4
%9 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
store i32 0, ptr %3, align 4
%10 = load i32, ptr %3, align 4
%11 = load i32, ptr %2, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph, label %66
.lr.ph: ; preds = %0
br label %13
13: ; preds = %.lr.ph, %60
%14 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %4, ptr noundef %5)
%15 = call i32 (ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %6, ptr noundef %7, ptr noundef %8)
%16 = load i64, ptr %7, align 8
%17 = load i64, ptr %8, align 8
%18 = add nsw i64 %16, %17
%19 = load i64, ptr %6, align 8
%20 = icmp slt i64 %18, %19
br i1 %20, label %21, label %32
21: ; preds = %13
%22 = load i64, ptr %5, align 8
%23 = load i64, ptr %7, align 8
%24 = mul nsw i64 %22, %23
%25 = load i64, ptr %4, align 8
%26 = load i64, ptr %7, align 8
%27 = load i64, ptr %8, align 8
%28 = add nsw i64 %26, %27
%29 = mul nsw i64 %25, %28
%30 = add nsw i64 %24, %29
%31 = call i32 @printf(ptr noundef @.str.3, i64 noundef %30)
br label %59
32: ; preds = %13
%33 = load i64, ptr %6, align 8
%34 = load i64, ptr %8, align 8
%35 = add nsw i64 %33, %34
%36 = load i64, ptr %7, align 8
%37 = icmp slt i64 %35, %36
br i1 %37, label %38, label %49
38: ; preds = %32
%39 = load i64, ptr %5, align 8
%40 = load i64, ptr %6, align 8
%41 = load i64, ptr %8, align 8
%42 = add nsw i64 %40, %41
%43 = mul nsw i64 %39, %42
%44 = load i64, ptr %4, align 8
%45 = load i64, ptr %6, align 8
%46 = mul nsw i64 %44, %45
%47 = add nsw i64 %43, %46
%48 = call i32 @printf(ptr noundef @.str.3, i64 noundef %47)
br label %58
49: ; preds = %32
%50 = load i64, ptr %5, align 8
%51 = load i64, ptr %7, align 8
%52 = mul nsw i64 %50, %51
%53 = load i64, ptr %4, align 8
%54 = load i64, ptr %6, align 8
%55 = mul nsw i64 %53, %54
%56 = add nsw i64 %52, %55
%57 = call i32 @printf(ptr noundef @.str.3, i64 noundef %56)
br label %58
58: ; preds = %49, %38
br label %59
59: ; preds = %58, %21
br label %60
60: ; preds = %59
%61 = load i32, ptr %3, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %3, align 4
%63 = load i32, ptr %3, align 4
%64 = load i32, ptr %2, align 4
%65 = icmp slt i32 %63, %64
br i1 %65, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %60
br label %66
66: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpha3gkljb.c'
source_filename = "/tmp/tmpha3gkljb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @set_cpu_speed()
%3 = call i32 (...) @unlimit_stack()
%4 = call i32 (...) @test_enc_me_speed()
%5 = call i32 (...) @test_enc_deblock_speed()
%6 = call i32 (...) @test_enc_interpolate_speed()
ret i32 0
}
declare i32 @set_cpu_speed(...) #1
declare i32 @unlimit_stack(...) #1
declare i32 @test_enc_me_speed(...) #1
declare i32 @test_enc_deblock_speed(...) #1
declare i32 @test_enc_interpolate_speed(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpha3gkljb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @set_cpu_speed()
%3 = call i32 (...) @unlimit_stack()
%4 = call i32 (...) @test_enc_me_speed()
%5 = call i32 (...) @test_enc_deblock_speed()
%6 = call i32 (...) @test_enc_interpolate_speed()
ret i32 0
}
declare i32 @set_cpu_speed(...) #1
declare i32 @unlimit_stack(...) #1
declare i32 @test_enc_me_speed(...) #1
declare i32 @test_enc_deblock_speed(...) #1
declare i32 @test_enc_interpolate_speed(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfbfnwla5.c'
source_filename = "/tmp/tmpfbfnwla5.c"
target datalayout = "e-m:e-p270: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.nums = private unnamed_addr constant [7 x i32] [i32 6, i32 3, i32 7, i32 2, i32 1, i32 5, i32 4], align 16
@.str = private unnamed_addr constant [4 x i8] c" %d\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local 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 [7 x i32], align 16
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.nums, i64 28, i1 false)
%8 = getelementptr inbounds [7 x i32], ptr %6, i64 0, i64 0
%9 = call i32 @merge_sort(ptr noundef %8, i32 noundef 7)
store i32 0, ptr %7, align 4
br label %10
10: ; preds = %14, %2
%11 = load i32, ptr %7, align 4
%12 = icmp slt i32 %11, 7
br i1 %12, label %13, label %22
13: ; preds = %10
br label %14
14: ; preds = %13
%15 = load i32, ptr %7, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [7 x i32], ptr %6, i64 0, i64 %16
%18 = load i32, ptr %17, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %18)
%20 = load i32, ptr %7, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %7, align 4
br label %10, !llvm.loop !6
22: ; preds = %10
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
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 @merge_sort(ptr noundef, i32 noundef) #2
declare i32 @printf(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/tmpfbfnwla5.c"
target datalayout = "e-m:e-p270: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.nums = private unnamed_addr constant [7 x i32] [i32 6, i32 3, i32 7, i32 2, i32 1, i32 5, i32 4], align 16
@.str = private unnamed_addr constant [4 x i8] c" %d\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local 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 [7 x i32], align 16
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.nums, i64 28, i1 false)
%8 = getelementptr inbounds [7 x i32], ptr %6, i64 0, i64 0
%9 = call i32 @merge_sort(ptr noundef %8, i32 noundef 7)
store i32 0, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = icmp slt i32 %10, 7
br i1 %11, label %.lr.ph, label %23
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %13
br label %13
13: ; preds = %12
%14 = load i32, ptr %7, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [7 x i32], ptr %6, i64 0, i64 %15
%17 = load i32, ptr %16, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %17)
%19 = load i32, ptr %7, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %7, align 4
%21 = load i32, ptr %7, align 4
%22 = icmp slt i32 %21, 7
br i1 %22, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %23
23: ; preds = %._crit_edge, %2
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
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 @merge_sort(ptr noundef, i32 noundef) #2
declare i32 @printf(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/tmpsdrgv8x2.c'
source_filename = "/tmp/tmpsdrgv8x2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@dlanor.coef = internal global [12 x double] [double -1.000000e+00, double 3.000000e+00, double -1.500000e+01, double 1.050000e+02, double -9.450000e+02, double 1.039500e+04, double -1.351350e+05, double 0x413EEE1100000000, double 0xC1806E7908000000, double 0x41C3832FB9800000, double 0xC2099C2EA3780000, double 0x42526841857E4000], align 16
@dlanor.K1 = internal global i32 12, align 4
@dlanor.dlanor = internal global double 0.000000e+00, align 8
@dlanor.approx = internal global double 0.000000e+00, align 8
@dlanor.correc = internal global double 0.000000e+00, align 8
@dlanor.xx = internal global double 0.000000e+00, align 8
@dlanor.xx2 = internal global double 0.000000e+00, align 8
@dlanor.T2 = internal global double 0.000000e+00, align 8
@.str = private unnamed_addr constant [30 x i8] c" Argument too small in DLANOR\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @dlanor(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load double, ptr %3, align 8
%5 = call double @llvm.fabs.f64(double %4)
store double %5, ptr @dlanor.xx, align 8
%6 = load double, ptr @dlanor.xx, align 8
%7 = fcmp olt double %6, 5.000000e+00
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 @ftnstop(ptr noundef @.str)
br label %10
10: ; preds = %8, %1
%11 = load double, ptr @dlanor.xx, align 8
%12 = fmul double 5.000000e-01, %11
%13 = load double, ptr @dlanor.xx, align 8
%14 = fneg double %12
%15 = call double @llvm.fmuladd.f64(double %14, double %13, double 0xBFED67F1C864BEB5)
%16 = load double, ptr @dlanor.xx, align 8
%17 = call double @log(double noundef %16) #4
%18 = fsub double %15, %17
store double %18, ptr @dlanor.approx, align 8
%19 = load double, ptr @dlanor.xx, align 8
%20 = load double, ptr @dlanor.xx, align 8
%21 = fmul double %19, %20
store double %21, ptr @dlanor.xx2, align 8
%22 = load double, ptr @dlanor.xx2, align 8
%23 = fdiv double 1.000000e+00, %22
store double %23, ptr @dlanor.T2, align 8
%24 = call double @devlpl(ptr noundef @dlanor.coef, ptr noundef @dlanor.K1, ptr noundef @dlanor.T2)
%25 = load double, ptr @dlanor.xx2, align 8
%26 = fdiv double %24, %25
store double %26, ptr @dlanor.correc, align 8
%27 = call double @dln1px(ptr noundef @dlanor.correc)
store double %27, ptr @dlanor.correc, align 8
%28 = load double, ptr @dlanor.approx, align 8
%29 = load double, ptr @dlanor.correc, align 8
%30 = fadd double %28, %29
store double %30, ptr @dlanor.dlanor, align 8
%31 = load double, ptr @dlanor.dlanor, align 8
ret double %31
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
declare i32 @ftnstop(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
; Function Attrs: nounwind
declare double @log(double noundef) #3
declare double @devlpl(ptr noundef, ptr noundef, ptr noundef) #2
declare double @dln1px(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 nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsdrgv8x2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@dlanor.coef = internal global [12 x double] [double -1.000000e+00, double 3.000000e+00, double -1.500000e+01, double 1.050000e+02, double -9.450000e+02, double 1.039500e+04, double -1.351350e+05, double 0x413EEE1100000000, double 0xC1806E7908000000, double 0x41C3832FB9800000, double 0xC2099C2EA3780000, double 0x42526841857E4000], align 16
@dlanor.K1 = internal global i32 12, align 4
@dlanor.dlanor = internal global double 0.000000e+00, align 8
@dlanor.approx = internal global double 0.000000e+00, align 8
@dlanor.correc = internal global double 0.000000e+00, align 8
@dlanor.xx = internal global double 0.000000e+00, align 8
@dlanor.xx2 = internal global double 0.000000e+00, align 8
@dlanor.T2 = internal global double 0.000000e+00, align 8
@.str = private unnamed_addr constant [30 x i8] c" Argument too small in DLANOR\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @dlanor(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load double, ptr %3, align 8
%5 = call double @llvm.fabs.f64(double %4)
store double %5, ptr @dlanor.xx, align 8
%6 = load double, ptr @dlanor.xx, align 8
%7 = fcmp olt double %6, 5.000000e+00
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 @ftnstop(ptr noundef @.str)
br label %10
10: ; preds = %8, %1
%11 = load double, ptr @dlanor.xx, align 8
%12 = fmul double 5.000000e-01, %11
%13 = load double, ptr @dlanor.xx, align 8
%14 = fneg double %12
%15 = call double @llvm.fmuladd.f64(double %14, double %13, double 0xBFED67F1C864BEB5)
%16 = load double, ptr @dlanor.xx, align 8
%17 = call double @log(double noundef %16) #4
%18 = fsub double %15, %17
store double %18, ptr @dlanor.approx, align 8
%19 = load double, ptr @dlanor.xx, align 8
%20 = load double, ptr @dlanor.xx, align 8
%21 = fmul double %19, %20
store double %21, ptr @dlanor.xx2, align 8
%22 = load double, ptr @dlanor.xx2, align 8
%23 = fdiv double 1.000000e+00, %22
store double %23, ptr @dlanor.T2, align 8
%24 = call double @devlpl(ptr noundef @dlanor.coef, ptr noundef @dlanor.K1, ptr noundef @dlanor.T2)
%25 = load double, ptr @dlanor.xx2, align 8
%26 = fdiv double %24, %25
store double %26, ptr @dlanor.correc, align 8
%27 = call double @dln1px(ptr noundef @dlanor.correc)
store double %27, ptr @dlanor.correc, align 8
%28 = load double, ptr @dlanor.approx, align 8
%29 = load double, ptr @dlanor.correc, align 8
%30 = fadd double %28, %29
store double %30, ptr @dlanor.dlanor, align 8
%31 = load double, ptr @dlanor.dlanor, align 8
ret double %31
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
declare i32 @ftnstop(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
; Function Attrs: nounwind
declare double @log(double noundef) #3
declare double @devlpl(ptr noundef, ptr noundef, ptr noundef) #2
declare double @dln1px(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 nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp85g4t_uo.c'
source_filename = "/tmp/tmp85g4t_uo.c"
target datalayout = "e-m:e-p270: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/tmp85g4t_uo.c"
target datalayout = "e-m:e-p270: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/tmpu1h7f6z9.c'
source_filename = "/tmp/tmpu1h7f6z9.c"
target datalayout = "e-m:e-p270: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/tmpu1h7f6z9.c"
target datalayout = "e-m:e-p270: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/tmp0qwdwc7s.c'
source_filename = "/tmp/tmp0qwdwc7s.c"
target datalayout = "e-m:e-p270: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/tmp0qwdwc7s.c"
target datalayout = "e-m:e-p270: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/tmproyo52i_.c'
source_filename = "/tmp/tmproyo52i_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @read_umask() #0 {
%1 = alloca i32, align 4
%2 = call i32 @umask(i32 noundef 0)
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = call i32 @umask(i32 noundef %3)
%5 = load i32, ptr %1, align 4
ret i32 %5
}
declare i32 @umask(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/tmproyo52i_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @read_umask() #0 {
%1 = alloca i32, align 4
%2 = call i32 @umask(i32 noundef 0)
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = call i32 @umask(i32 noundef %3)
%5 = load i32, ptr %1, align 4
ret i32 %5
}
declare i32 @umask(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/tmpagtqyvil.c'
source_filename = "/tmp/tmpagtqyvil.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca 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 1, ptr %6, align 4
store i32 10, ptr %7, align 4
%11 = load i32, ptr %7, align 4
%12 = sext i32 %11 to i64
%13 = mul i64 8, %12
%14 = trunc i64 %13 to i32
%15 = call i64 @malloc(i32 noundef %14)
%16 = inttoptr i64 %15 to ptr
store ptr %16, ptr %10, align 8
store i32 0, ptr %8, align 4
br label %17
17: ; preds = %32, %2
%18 = load i32, ptr %8, align 4
%19 = load i32, ptr %7, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %35
21: ; preds = %17
%22 = load i32, ptr %6, align 4
%23 = sext i32 %22 to i64
%24 = mul i64 1, %23
%25 = trunc i64 %24 to i32
%26 = call i64 @malloc(i32 noundef %25)
%27 = inttoptr i64 %26 to ptr
%28 = load ptr, ptr %10, align 8
%29 = load i32, ptr %8, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds ptr, ptr %28, i64 %30
store ptr %27, ptr %31, align 8
br label %32
32: ; preds = %21
%33 = load i32, ptr %8, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %8, align 4
br label %17, !llvm.loop !6
35: ; preds = %17
store i32 0, ptr %8, align 4
br label %36
36: ; preds = %58, %35
%37 = load i32, ptr %8, align 4
%38 = load i32, ptr %7, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %40, label %61
40: ; preds = %36
store i32 0, ptr %9, align 4
br label %41
41: ; preds = %54, %40
%42 = load i32, ptr %9, align 4
%43 = load i32, ptr %6, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %57
45: ; preds = %41
%46 = load ptr, ptr %10, align 8
%47 = load i32, ptr %8, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds ptr, ptr %46, i64 %48
%50 = load ptr, ptr %49, align 8
%51 = load i32, ptr %9, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, ptr %50, i64 %52
store i8 51, ptr %53, align 1
br label %54
54: ; preds = %45
%55 = load i32, ptr %9, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %9, align 4
br label %41, !llvm.loop !8
57: ; preds = %41
br label %58
58: ; preds = %57
%59 = load i32, ptr %8, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %8, align 4
br label %36, !llvm.loop !9
61: ; preds = %36
store i32 0, ptr %8, align 4
br label %62
62: ; preds = %73, %61
%63 = load i32, ptr %8, align 4
%64 = load i32, ptr %7, align 4
%65 = icmp slt i32 %63, %64
br i1 %65, label %66, label %76
66: ; preds = %62
%67 = load ptr, ptr %10, align 8
%68 = load i32, ptr %8, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds ptr, ptr %67, i64 %69
%71 = load ptr, ptr %70, align 8
%72 = call i32 @printf(ptr noundef @.str, ptr noundef %71)
br label %73
73: ; preds = %66
%74 = load i32, ptr %8, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %8, align 4
br label %62, !llvm.loop !10
76: ; preds = %62
ret i32 0
}
declare i64 @malloc(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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpagtqyvil.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca 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 1, ptr %6, align 4
store i32 10, ptr %7, align 4
%11 = load i32, ptr %7, align 4
%12 = sext i32 %11 to i64
%13 = mul i64 8, %12
%14 = trunc i64 %13 to i32
%15 = call i64 @malloc(i32 noundef %14)
%16 = inttoptr i64 %15 to ptr
store ptr %16, ptr %10, align 8
store i32 0, ptr %8, align 4
%17 = load i32, ptr %8, align 4
%18 = load i32, ptr %7, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %.lr.ph, label %37
.lr.ph: ; preds = %2
br label %20
20: ; preds = %.lr.ph, %31
%21 = load i32, ptr %6, align 4
%22 = sext i32 %21 to i64
%23 = mul i64 1, %22
%24 = trunc i64 %23 to i32
%25 = call i64 @malloc(i32 noundef %24)
%26 = inttoptr i64 %25 to ptr
%27 = load ptr, ptr %10, align 8
%28 = load i32, ptr %8, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds ptr, ptr %27, i64 %29
store ptr %26, ptr %30, align 8
br label %31
31: ; preds = %20
%32 = load i32, ptr %8, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %8, align 4
%34 = load i32, ptr %8, align 4
%35 = load i32, ptr %7, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %37
37: ; preds = %._crit_edge, %2
store i32 0, ptr %8, align 4
%38 = load i32, ptr %8, align 4
%39 = load i32, ptr %7, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %.lr.ph5, label %67
.lr.ph5: ; preds = %37
br label %41
41: ; preds = %.lr.ph5, %61
store i32 0, ptr %9, align 4
%42 = load i32, ptr %9, align 4
%43 = load i32, ptr %6, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %.lr.ph2, label %60
.lr.ph2: ; preds = %41
br label %45
45: ; preds = %.lr.ph2, %54
%46 = load ptr, ptr %10, align 8
%47 = load i32, ptr %8, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds ptr, ptr %46, i64 %48
%50 = load ptr, ptr %49, align 8
%51 = load i32, ptr %9, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, ptr %50, i64 %52
store i8 51, ptr %53, align 1
br label %54
54: ; preds = %45
%55 = load i32, ptr %9, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %9, align 4
%57 = load i32, ptr %9, align 4
%58 = load i32, ptr %6, align 4
%59 = icmp slt i32 %57, %58
br i1 %59, label %45, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %54
br label %60
60: ; preds = %._crit_edge3, %41
br label %61
61: ; preds = %60
%62 = load i32, ptr %8, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %8, align 4
%64 = load i32, ptr %8, align 4
%65 = load i32, ptr %7, align 4
%66 = icmp slt i32 %64, %65
br i1 %66, label %41, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %61
br label %67
67: ; preds = %._crit_edge6, %37
store i32 0, ptr %8, align 4
%68 = load i32, ptr %8, align 4
%69 = load i32, ptr %7, align 4
%70 = icmp slt i32 %68, %69
br i1 %70, label %.lr.ph8, label %84
.lr.ph8: ; preds = %67
br label %71
71: ; preds = %.lr.ph8, %78
%72 = load ptr, ptr %10, align 8
%73 = load i32, ptr %8, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds ptr, ptr %72, i64 %74
%76 = load ptr, ptr %75, align 8
%77 = call i32 @printf(ptr noundef @.str, ptr noundef %76)
br label %78
78: ; preds = %71
%79 = load i32, ptr %8, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %8, align 4
%81 = load i32, ptr %8, align 4
%82 = load i32, ptr %7, align 4
%83 = icmp slt i32 %81, %82
br i1 %83, label %71, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %78
br label %84
84: ; preds = %._crit_edge9, %67
ret i32 0
}
declare i64 @malloc(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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmp3e7dhoz6.c'
source_filename = "/tmp/tmp3e7dhoz6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @close(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @syscall_cp(i32 noundef 3, i32 noundef %3)
ret i32 %4
}
declare i32 @syscall_cp(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/tmp3e7dhoz6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @close(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @syscall_cp(i32 noundef 3, i32 noundef %3)
ret i32 %4
}
declare i32 @syscall_cp(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/tmp3ajptxib.c'
source_filename = "/tmp/tmp3ajptxib.c"
target datalayout = "e-m:e-p270: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.if_nameindex = type { i32, ptr }
@.str = private unnamed_addr constant [8 x i8] c"%i: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%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
%8 = call ptr (...) @if_nameindex()
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
store ptr %9, ptr %7, align 8
br label %10
10: ; preds = %23, %2
%11 = load ptr, ptr %7, align 8
%12 = getelementptr inbounds %struct.if_nameindex, ptr %11, i32 0, i32 0
%13 = load i32, ptr %12, align 8
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %26
15: ; preds = %10
%16 = load ptr, ptr %7, align 8
%17 = getelementptr inbounds %struct.if_nameindex, ptr %16, i32 0, i32 0
%18 = load i32, ptr %17, align 8
%19 = load ptr, ptr %7, align 8
%20 = getelementptr inbounds %struct.if_nameindex, ptr %19, i32 0, i32 1
%21 = load ptr, ptr %20, align 8
%22 = call i32 @printf(ptr noundef @.str, i32 noundef %18, ptr noundef %21)
br label %23
23: ; preds = %15
%24 = load ptr, ptr %7, align 8
%25 = getelementptr inbounds %struct.if_nameindex, ptr %24, i32 1
store ptr %25, ptr %7, align 8
br label %10, !llvm.loop !6
26: ; preds = %10
%27 = load ptr, ptr %6, align 8
%28 = call i32 @if_freenameindex(ptr noundef %27)
ret i32 0
}
declare ptr @if_nameindex(...) #1
declare i32 @printf(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @if_freenameindex(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp3ajptxib.c"
target datalayout = "e-m:e-p270: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.if_nameindex = type { i32, ptr }
@.str = private unnamed_addr constant [8 x i8] c"%i: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%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
%8 = call ptr (...) @if_nameindex()
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
store ptr %9, ptr %7, align 8
%10 = load ptr, ptr %7, align 8
%11 = load i32, ptr %10, align 8
%12 = icmp ne i32 %11, 0
br i1 %12, label %.lr.ph, label %28
.lr.ph: ; preds = %2
br label %13
13: ; preds = %.lr.ph, %21
%14 = load ptr, ptr %7, align 8
%15 = getelementptr inbounds %struct.if_nameindex, ptr %14, i32 0, i32 0
%16 = load i32, ptr %15, align 8
%17 = load ptr, ptr %7, align 8
%18 = getelementptr inbounds %struct.if_nameindex, ptr %17, i32 0, i32 1
%19 = load ptr, ptr %18, align 8
%20 = call i32 @printf(ptr noundef @.str, i32 noundef %16, ptr noundef %19)
br label %21
21: ; preds = %13
%22 = load ptr, ptr %7, align 8
%23 = getelementptr inbounds %struct.if_nameindex, ptr %22, i32 1
store ptr %23, ptr %7, align 8
%24 = load ptr, ptr %7, align 8
%25 = getelementptr inbounds %struct.if_nameindex, ptr %24, i32 0, i32 0
%26 = load i32, ptr %25, align 8
%27 = icmp ne i32 %26, 0
br i1 %27, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %28
28: ; preds = %._crit_edge, %2
%29 = load ptr, ptr %6, align 8
%30 = call i32 @if_freenameindex(ptr noundef %29)
ret i32 0
}
declare ptr @if_nameindex(...) #1
declare i32 @printf(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @if_freenameindex(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpn2g0xma1.c'
source_filename = "/tmp/tmpn2g0xma1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"foo.sock\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"Error[%d] when listening...\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [23 x i8] c"Finished listening...\0A\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"Error[%d] when accepting...\0A\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"Begin to recv/send...\0A\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"Recieved Data[%d]:%c...%c\0A\00", align 1
@.str.6 = private unnamed_addr constant [35 x i8] c"Error[%d] when recieving Data:%s.\0A\00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"Server exited.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [2048 x i8], align 16
store i32 0, ptr %1, align 4
%9 = call i32 @unix_socket_listen(ptr noundef @.str)
store i32 %9, ptr %2, align 4
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %0
%13 = load i32, ptr @errno, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %13)
store i32 0, ptr %1, align 4
br label %66
15: ; preds = %0
%16 = load i32, ptr @errno, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %16)
%18 = load i32, ptr %2, align 4
%19 = call i32 @unix_socket_accept(i32 noundef %18, ptr noundef %4)
store i32 %19, ptr %3, align 4
%20 = load i32, ptr %2, align 4
%21 = call i32 @unix_socket_close(i32 noundef %20)
%22 = load i32, ptr %3, align 4
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %15
%25 = load i32, ptr @errno, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %25)
store i32 0, ptr %1, align 4
br label %66
27: ; preds = %15
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %5, align 4
br label %29
29: ; preds = %59, %27
%30 = load i32, ptr %5, align 4
%31 = icmp slt i32 %30, 10
br i1 %31, label %32, label %62
32: ; preds = %29
%33 = load i32, ptr %3, align 4
%34 = getelementptr inbounds [2048 x i8], ptr %8, i64 0, i64 0
%35 = call i32 @recv(i32 noundef %33, ptr noundef %34, i32 noundef 804, i32 noundef 0)
store i32 %35, ptr %7, align 4
%36 = load i32, ptr %7, align 4
%37 = icmp sge i32 %36, 0
br i1 %37, label %38, label %50
38: ; preds = %32
%39 = load i32, ptr %7, align 4
%40 = getelementptr inbounds [2048 x i8], ptr %8, i64 0, i64 0
%41 = load i8, ptr %40, align 16
%42 = sext i8 %41 to i32
%43 = load i32, ptr %7, align 4
%44 = sub nsw i32 %43, 1
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [2048 x i8], ptr %8, i64 0, i64 %45
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %39, i32 noundef %42, i32 noundef %48)
br label %50
50: ; preds = %38, %32
%51 = load i32, ptr %7, align 4
%52 = icmp eq i32 %51, -1
br i1 %52, label %53, label %58
53: ; preds = %50
%54 = load i32, ptr @errno, align 4
%55 = load i32, ptr @errno, align 4
%56 = call ptr @strerror(i32 noundef %55)
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %54, ptr noundef %56)
br label %62
58: ; preds = %50
br label %59
59: ; preds = %58
%60 = load i32, ptr %5, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %5, align 4
br label %29, !llvm.loop !6
62: ; preds = %53, %29
%63 = load i32, ptr %3, align 4
%64 = call i32 @unix_socket_close(i32 noundef %63)
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %66
66: ; preds = %62, %24, %12
%67 = load i32, ptr %1, align 4
ret i32 %67
}
declare i32 @unix_socket_listen(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @unix_socket_accept(i32 noundef, ptr noundef) #1
declare i32 @unix_socket_close(i32 noundef) #1
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @strerror(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn2g0xma1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"foo.sock\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"Error[%d] when listening...\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [23 x i8] c"Finished listening...\0A\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"Error[%d] when accepting...\0A\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"Begin to recv/send...\0A\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"Recieved Data[%d]:%c...%c\0A\00", align 1
@.str.6 = private unnamed_addr constant [35 x i8] c"Error[%d] when recieving Data:%s.\0A\00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"Server exited.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [2048 x i8], align 16
store i32 0, ptr %1, align 4
%9 = call i32 @unix_socket_listen(ptr noundef @.str)
store i32 %9, ptr %2, align 4
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %0
%13 = load i32, ptr @errno, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %13)
store i32 0, ptr %1, align 4
br label %67
15: ; preds = %0
%16 = load i32, ptr @errno, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %16)
%18 = load i32, ptr %2, align 4
%19 = call i32 @unix_socket_accept(i32 noundef %18, ptr noundef %4)
store i32 %19, ptr %3, align 4
%20 = load i32, ptr %2, align 4
%21 = call i32 @unix_socket_close(i32 noundef %20)
%22 = load i32, ptr %3, align 4
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %15
%25 = load i32, ptr @errno, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %25)
store i32 0, ptr %1, align 4
br label %67
27: ; preds = %15
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %5, align 4
%29 = load i32, ptr %5, align 4
%30 = icmp slt i32 %29, 10
br i1 %30, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %27
br label %31
31: ; preds = %.lr.ph, %58
%32 = load i32, ptr %3, align 4
%33 = getelementptr inbounds [2048 x i8], ptr %8, i64 0, i64 0
%34 = call i32 @recv(i32 noundef %32, ptr noundef %33, i32 noundef 804, i32 noundef 0)
store i32 %34, ptr %7, align 4
%35 = load i32, ptr %7, align 4
%36 = icmp sge i32 %35, 0
br i1 %36, label %37, label %49
37: ; preds = %31
%38 = load i32, ptr %7, align 4
%39 = getelementptr inbounds [2048 x i8], ptr %8, i64 0, i64 0
%40 = load i8, ptr %39, align 16
%41 = sext i8 %40 to i32
%42 = load i32, ptr %7, align 4
%43 = sub nsw i32 %42, 1
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [2048 x i8], ptr %8, i64 0, i64 %44
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %38, i32 noundef %41, i32 noundef %47)
br label %49
49: ; preds = %37, %31
%50 = load i32, ptr %7, align 4
%51 = icmp eq i32 %50, -1
br i1 %51, label %52, label %57
52: ; preds = %49
%53 = load i32, ptr @errno, align 4
%54 = load i32, ptr @errno, align 4
%55 = call ptr @strerror(i32 noundef %54)
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %53, ptr noundef %55)
br label %63
57: ; preds = %49
br label %58
58: ; preds = %57
%59 = load i32, ptr %5, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %5, align 4
%61 = load i32, ptr %5, align 4
%62 = icmp slt i32 %61, 10
br i1 %62, label %31, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %58
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %27
br label %63
63: ; preds = %.loopexit, %52
%64 = load i32, ptr %3, align 4
%65 = call i32 @unix_socket_close(i32 noundef %64)
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %67
67: ; preds = %63, %24, %12
%68 = load i32, ptr %1, align 4
ret i32 %68
}
declare i32 @unix_socket_listen(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @unix_socket_accept(i32 noundef, ptr noundef) #1
declare i32 @unix_socket_close(i32 noundef) #1
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @strerror(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_rs6o5_o.c'
source_filename = "/tmp/tmp_rs6o5_o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_rs6o5_o.c"
target datalayout = "e-m:e-p270: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/tmpw9s5x_uw.c'
source_filename = "/tmp/tmpw9s5x_uw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @GetSleepTime(i32 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i32, align 4
%4 = alloca i64, align 8
store i32 %0, ptr %3, align 4
br label %5
5: ; preds = %1
%6 = load i32, ptr %3, align 4
%7 = call i32 @time(ptr noundef null)
%8 = call i64 @difftime(i32 noundef %6, i32 noundef %7)
store i64 %8, ptr %4, align 8
%9 = load i64, ptr %4, align 8
%10 = icmp sgt i64 %9, 10800
br i1 %10, label %14, label %11
11: ; preds = %5
%12 = load i64, ptr %4, align 8
%13 = icmp slt i64 %12, -10800
br i1 %13, label %14, label %15
14: ; preds = %11, %5
store i64 -1, ptr %2, align 8
br label %23
15: ; preds = %11
%16 = load i64, ptr %4, align 8
%17 = icmp sgt i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = load i64, ptr %4, align 8
br label %21
20: ; preds = %15
br label %21
21: ; preds = %20, %18
%22 = phi i64 [ %19, %18 ], [ 0, %20 ]
store i64 %22, ptr %2, align 8
br label %23
23: ; preds = %21, %14
%24 = load i64, ptr %2, align 8
ret i64 %24
}
declare i64 @difftime(i32 noundef, i32 noundef) #1
declare i32 @time(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw9s5x_uw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @GetSleepTime(i32 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i32, align 4
%4 = alloca i64, align 8
store i32 %0, ptr %3, align 4
br label %5
5: ; preds = %1
%6 = load i32, ptr %3, align 4
%7 = call i32 @time(ptr noundef null)
%8 = call i64 @difftime(i32 noundef %6, i32 noundef %7)
store i64 %8, ptr %4, align 8
%9 = load i64, ptr %4, align 8
%10 = icmp sgt i64 %9, 10800
br i1 %10, label %14, label %11
11: ; preds = %5
%12 = load i64, ptr %4, align 8
%13 = icmp slt i64 %12, -10800
br i1 %13, label %14, label %15
14: ; preds = %11, %5
store i64 -1, ptr %2, align 8
br label %23
15: ; preds = %11
%16 = load i64, ptr %4, align 8
%17 = icmp sgt i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = load i64, ptr %4, align 8
br label %21
20: ; preds = %15
br label %21
21: ; preds = %20, %18
%22 = phi i64 [ %19, %18 ], [ 0, %20 ]
store i64 %22, ptr %2, align 8
br label %23
23: ; preds = %21, %14
%24 = load i64, ptr %2, align 8
ret i64 %24
}
declare i64 @difftime(i32 noundef, i32 noundef) #1
declare i32 @time(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwux9yqgk.c'
source_filename = "/tmp/tmpwux9yqgk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"!!! pfefct(): diagonal %d is zero !!!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pfefct(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca 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 1, ptr %10, align 4
br label %14
14: ; preds = %118, %3
%15 = load i32, ptr %10, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %121
18: ; preds = %14
%19 = load ptr, ptr %6, align 8
%20 = load i32, ptr %10, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds ptr, ptr %19, i64 %21
%23 = load ptr, ptr %22, align 8
store ptr %23, ptr %8, align 8
%24 = load ptr, ptr %6, align 8
%25 = load i32, ptr %10, align 4
%26 = add nsw i32 %25, 1
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds ptr, ptr %24, i64 %27
%29 = load ptr, ptr %28, align 8
%30 = load ptr, ptr %8, align 8
%31 = ptrtoint ptr %29 to i64
%32 = ptrtoint ptr %30 to i64
%33 = sub i64 %31, %32
%34 = sdiv exact i64 %33, 8
%35 = trunc i64 %34 to i32
store i32 %35, ptr %9, align 4
%36 = load i32, ptr %9, align 4
%37 = call i64 @calloc(i32 noundef %36, i32 noundef 8)
%38 = inttoptr i64 %37 to ptr
store ptr %38, ptr %13, align 8
%39 = load i32, ptr %9, align 4
%40 = icmp sgt i32 %39, 0
br i1 %40, label %41, label %104
41: ; preds = %18
%42 = load i32, ptr %10, align 4
%43 = load i32, ptr %9, align 4
%44 = sub nsw i32 %42, %43
store i32 %44, ptr %12, align 4
%45 = load i32, ptr %9, align 4
%46 = load ptr, ptr %6, align 8
%47 = load i32, ptr %12, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds ptr, ptr %46, i64 %48
%50 = load ptr, ptr %7, align 8
%51 = load i32, ptr %12, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds double, ptr %50, i64 %52
%54 = load ptr, ptr %8, align 8
%55 = call i32 @pflslv(i32 noundef %45, ptr noundef %49, ptr noundef %53, ptr noundef %54)
store i32 0, ptr %11, align 4
br label %56
56: ; preds = %89, %41
%57 = load i32, ptr %11, align 4
%58 = load i32, ptr %9, align 4
%59 = icmp slt i32 %57, %58
br i1 %59, label %60, label %92
60: ; preds = %56
%61 = load ptr, ptr %8, align 8
%62 = load i32, ptr %11, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double, ptr %61, i64 %63
%65 = load double, ptr %64, align 8
%66 = load ptr, ptr %13, align 8
%67 = load i32, ptr %11, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds double, ptr %66, i64 %68
store double %65, ptr %69, align 8
%70 = load ptr, ptr %8, align 8
%71 = load i32, ptr %11, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds double, ptr %70, i64 %72
%74 = load double, ptr %73, align 8
%75 = load ptr, ptr %7, align 8
%76 = load i32, ptr %10, align 4
%77 = load i32, ptr %11, align 4
%78 = add nsw i32 %76, %77
%79 = load i32, ptr %9, align 4
%80 = sub nsw i32 %78, %79
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds double, ptr %75, i64 %81
%83 = load double, ptr %82, align 8
%84 = fdiv double %74, %83
%85 = load ptr, ptr %8, align 8
%86 = load i32, ptr %11, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds double, ptr %85, i64 %87
store double %84, ptr %88, align 8
br label %89
89: ; preds = %60
%90 = load i32, ptr %11, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %11, align 4
br label %56, !llvm.loop !6
92: ; preds = %56
%93 = load ptr, ptr %8, align 8
%94 = load ptr, ptr %13, align 8
%95 = load i32, ptr %9, align 4
%96 = call i64 @dot_real(ptr noundef %93, ptr noundef %94, i32 noundef %95)
%97 = sitofp i64 %96 to double
%98 = load ptr, ptr %7, align 8
%99 = load i32, ptr %10, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds double, ptr %98, i64 %100
%102 = load double, ptr %101, align 8
%103 = fsub double %102, %97
store double %103, ptr %101, align 8
br label %104
104: ; preds = %92, %18
%105 = load ptr, ptr %13, align 8
%106 = call i32 @free(ptr noundef %105)
%107 = load ptr, ptr %7, align 8
%108 = load i32, ptr %10, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds double, ptr %107, i64 %109
%111 = load double, ptr %110, align 8
%112 = call double @llvm.fabs.f64(double %111)
%113 = fcmp olt double %112, 0x3379B604AAACA626
br i1 %113, label %114, label %117
114: ; preds = %104
%115 = load i32, ptr %10, align 4
%116 = call i32 @printf(ptr noundef @.str, i32 noundef %115)
store i32 1, ptr %4, align 4
br label %122
117: ; preds = %104
br label %118
118: ; preds = %117
%119 = load i32, ptr %10, align 4
%120 = add nsw i32 %119, 1
store i32 %120, ptr %10, align 4
br label %14, !llvm.loop !8
121: ; preds = %14
store i32 0, ptr %4, align 4
br label %122
122: ; preds = %121, %114
%123 = load i32, ptr %4, align 4
ret i32 %123
}
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @pflslv(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @dot_real(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2
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" }
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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwux9yqgk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"!!! pfefct(): diagonal %d is zero !!!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pfefct(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca 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 1, ptr %10, align 4
%14 = load i32, ptr %10, align 4
%15 = load i32, ptr %5, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph2, label %125
.lr.ph2: ; preds = %3
br label %17
17: ; preds = %.lr.ph2, %119
%18 = load ptr, ptr %6, align 8
%19 = load i32, ptr %10, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds ptr, ptr %18, i64 %20
%22 = load ptr, ptr %21, align 8
store ptr %22, ptr %8, align 8
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %10, align 4
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %23, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = load ptr, ptr %8, align 8
%30 = ptrtoint ptr %28 to i64
%31 = ptrtoint ptr %29 to i64
%32 = sub i64 %30, %31
%33 = sdiv exact i64 %32, 8
%34 = trunc i64 %33 to i32
store i32 %34, ptr %9, align 4
%35 = load i32, ptr %9, align 4
%36 = call i64 @calloc(i32 noundef %35, i32 noundef 8)
%37 = inttoptr i64 %36 to ptr
store ptr %37, ptr %13, align 8
%38 = load i32, ptr %9, align 4
%39 = icmp sgt i32 %38, 0
br i1 %39, label %40, label %105
40: ; preds = %17
%41 = load i32, ptr %10, align 4
%42 = load i32, ptr %9, align 4
%43 = sub nsw i32 %41, %42
store i32 %43, ptr %12, align 4
%44 = load i32, ptr %9, align 4
%45 = load ptr, ptr %6, align 8
%46 = load i32, ptr %12, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds ptr, ptr %45, i64 %47
%49 = load ptr, ptr %7, align 8
%50 = load i32, ptr %12, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds double, ptr %49, i64 %51
%53 = load ptr, ptr %8, align 8
%54 = call i32 @pflslv(i32 noundef %44, ptr noundef %48, ptr noundef %52, ptr noundef %53)
store i32 0, ptr %11, align 4
%55 = load i32, ptr %11, align 4
%56 = load i32, ptr %9, align 4
%57 = icmp slt i32 %55, %56
br i1 %57, label %.lr.ph, label %93
.lr.ph: ; preds = %40
br label %58
58: ; preds = %.lr.ph, %87
%59 = load ptr, ptr %8, align 8
%60 = load i32, ptr %11, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds double, ptr %59, i64 %61
%63 = load double, ptr %62, align 8
%64 = load ptr, ptr %13, align 8
%65 = load i32, ptr %11, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds double, ptr %64, i64 %66
store double %63, ptr %67, align 8
%68 = load ptr, ptr %8, align 8
%69 = load i32, ptr %11, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double, ptr %68, i64 %70
%72 = load double, ptr %71, align 8
%73 = load ptr, ptr %7, align 8
%74 = load i32, ptr %10, align 4
%75 = load i32, ptr %11, align 4
%76 = add nsw i32 %74, %75
%77 = load i32, ptr %9, align 4
%78 = sub nsw i32 %76, %77
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds double, ptr %73, i64 %79
%81 = load double, ptr %80, align 8
%82 = fdiv double %72, %81
%83 = load ptr, ptr %8, align 8
%84 = load i32, ptr %11, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds double, ptr %83, i64 %85
store double %82, ptr %86, align 8
br label %87
87: ; preds = %58
%88 = load i32, ptr %11, align 4
%89 = add nsw i32 %88, 1
store i32 %89, ptr %11, align 4
%90 = load i32, ptr %11, align 4
%91 = load i32, ptr %9, align 4
%92 = icmp slt i32 %90, %91
br i1 %92, label %58, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %87
br label %93
93: ; preds = %._crit_edge, %40
%94 = load ptr, ptr %8, align 8
%95 = load ptr, ptr %13, align 8
%96 = load i32, ptr %9, align 4
%97 = call i64 @dot_real(ptr noundef %94, ptr noundef %95, i32 noundef %96)
%98 = sitofp i64 %97 to double
%99 = load ptr, ptr %7, align 8
%100 = load i32, ptr %10, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds double, ptr %99, i64 %101
%103 = load double, ptr %102, align 8
%104 = fsub double %103, %98
store double %104, ptr %102, align 8
br label %105
105: ; preds = %93, %17
%106 = load ptr, ptr %13, align 8
%107 = call i32 @free(ptr noundef %106)
%108 = load ptr, ptr %7, align 8
%109 = load i32, ptr %10, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds double, ptr %108, i64 %110
%112 = load double, ptr %111, align 8
%113 = call double @llvm.fabs.f64(double %112)
%114 = fcmp olt double %113, 0x3379B604AAACA626
br i1 %114, label %115, label %118
115: ; preds = %105
%116 = load i32, ptr %10, align 4
%117 = call i32 @printf(ptr noundef @.str, i32 noundef %116)
store i32 1, ptr %4, align 4
br label %126
118: ; preds = %105
br label %119
119: ; preds = %118
%120 = load i32, ptr %10, align 4
%121 = add nsw i32 %120, 1
store i32 %121, ptr %10, align 4
%122 = load i32, ptr %10, align 4
%123 = load i32, ptr %5, align 4
%124 = icmp slt i32 %122, %123
br i1 %124, label %17, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %119
br label %125
125: ; preds = %._crit_edge3, %3
store i32 0, ptr %4, align 4
br label %126
126: ; preds = %125, %115
%127 = load i32, ptr %4, align 4
ret i32 %127
}
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @pflslv(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @dot_real(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2
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" }
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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpqtpdmoya.c'
source_filename = "/tmp/tmpqtpdmoya.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@NOFILE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [2 x i8] c"/\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"/dev/null\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@STDIN_FILENO = dso_local global i32 0, align 4
@STDOUT_FILENO = dso_local global i32 0, align 4
@STDERR_FILENO = dso_local global i32 0, align 4
@SIGCHLD = dso_local global i32 0, align 4
@SIG_IGN = dso_local global i32 0, align 4
@SIG_ERR = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @my_daemon() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = call i32 (...) @fork()
store i32 %4, ptr %1, align 4
%5 = icmp eq i32 %4, -1
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @exit(i32 noundef 1) #3
unreachable
8: ; preds = %0
%9 = load i32, ptr %1, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = call i32 @exit(i32 noundef 0) #3
unreachable
13: ; preds = %8
%14 = call i32 (...) @setsid()
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 @exit(i32 noundef 1) #3
unreachable
18: ; preds = %13
%19 = call i32 (...) @fork()
store i32 %19, ptr %1, align 4
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = call i32 @exit(i32 noundef 1) #3
unreachable
23: ; preds = %18
%24 = load i32, ptr %1, align 4
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = call i32 @exit(i32 noundef 0) #3
unreachable
28: ; preds = %23
store i32 0, ptr %3, align 4
br label %29
29: ; preds = %36, %28
%30 = load i32, ptr %3, align 4
%31 = load i32, ptr @NOFILE, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %39
33: ; preds = %29
%34 = load i32, ptr %3, align 4
%35 = call i32 @close(i32 noundef %34)
br label %36
36: ; preds = %33
%37 = load i32, ptr %3, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %3, align 4
br label %29, !llvm.loop !6
39: ; preds = %29
%40 = call i32 @chdir(ptr noundef @.str)
%41 = icmp eq i32 %40, -1
br i1 %41, label %42, label %44
42: ; preds = %39
%43 = call i32 @exit(i32 noundef 1) #3
unreachable
44: ; preds = %39
%45 = call i32 @umask(i32 noundef 0)
%46 = icmp eq i32 %45, -1
br i1 %46, label %47, label %49
47: ; preds = %44
%48 = call i32 @exit(i32 noundef 1) #3
unreachable
49: ; preds = %44
%50 = load i32, ptr @O_RDWR, align 4
%51 = call i32 @open(ptr noundef @.str.1, i32 noundef %50)
store i32 %51, ptr %2, align 4
%52 = icmp eq i32 %51, -1
br i1 %52, label %53, label %55
53: ; preds = %49
%54 = call i32 @exit(i32 noundef 1) #3
unreachable
55: ; preds = %49
%56 = load i32, ptr %2, align 4
%57 = load i32, ptr @STDIN_FILENO, align 4
%58 = call i32 @dup2(i32 noundef %56, i32 noundef %57)
%59 = load i32, ptr %2, align 4
%60 = load i32, ptr @STDOUT_FILENO, align 4
%61 = call i32 @dup2(i32 noundef %59, i32 noundef %60)
%62 = load i32, ptr %2, align 4
%63 = load i32, ptr @STDERR_FILENO, align 4
%64 = call i32 @dup2(i32 noundef %62, i32 noundef %63)
%65 = load i32, ptr %2, align 4
%66 = call i32 @close(i32 noundef %65)
%67 = load i32, ptr @SIGCHLD, align 4
%68 = load i32, ptr @SIG_IGN, align 4
%69 = call i64 @signal(i32 noundef %67, i32 noundef %68)
%70 = load i64, ptr @SIG_ERR, align 8
%71 = icmp eq i64 %69, %70
br i1 %71, label %72, label %74
72: ; preds = %55
%73 = call i32 @exit(i32 noundef 1) #3
unreachable
74: ; preds = %55
ret void
}
declare i32 @fork(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @setsid(...) #1
declare i32 @close(i32 noundef) #1
declare i32 @chdir(ptr noundef) #1
declare i32 @umask(i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @dup2(i32 noundef, i32 noundef) #1
declare i64 @signal(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqtpdmoya.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@NOFILE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [2 x i8] c"/\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"/dev/null\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@STDIN_FILENO = dso_local global i32 0, align 4
@STDOUT_FILENO = dso_local global i32 0, align 4
@STDERR_FILENO = dso_local global i32 0, align 4
@SIGCHLD = dso_local global i32 0, align 4
@SIG_IGN = dso_local global i32 0, align 4
@SIG_ERR = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @my_daemon() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = call i32 (...) @fork()
store i32 %4, ptr %1, align 4
%5 = icmp eq i32 %4, -1
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @exit(i32 noundef 1) #3
unreachable
8: ; preds = %0
%9 = load i32, ptr %1, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = call i32 @exit(i32 noundef 0) #3
unreachable
13: ; preds = %8
%14 = call i32 (...) @setsid()
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 @exit(i32 noundef 1) #3
unreachable
18: ; preds = %13
%19 = call i32 (...) @fork()
store i32 %19, ptr %1, align 4
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = call i32 @exit(i32 noundef 1) #3
unreachable
23: ; preds = %18
%24 = load i32, ptr %1, align 4
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = call i32 @exit(i32 noundef 0) #3
unreachable
28: ; preds = %23
store i32 0, ptr %3, align 4
%29 = load i32, ptr %3, align 4
%30 = load i32, ptr @NOFILE, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %.lr.ph, label %41
.lr.ph: ; preds = %28
br label %32
32: ; preds = %.lr.ph, %35
%33 = load i32, ptr %3, align 4
%34 = call i32 @close(i32 noundef %33)
br label %35
35: ; preds = %32
%36 = load i32, ptr %3, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %3, align 4
%38 = load i32, ptr %3, align 4
%39 = load i32, ptr @NOFILE, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %32, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %41
41: ; preds = %._crit_edge, %28
%42 = call i32 @chdir(ptr noundef @.str)
%43 = icmp eq i32 %42, -1
br i1 %43, label %44, label %46
44: ; preds = %41
%45 = call i32 @exit(i32 noundef 1) #3
unreachable
46: ; preds = %41
%47 = call i32 @umask(i32 noundef 0)
%48 = icmp eq i32 %47, -1
br i1 %48, label %49, label %51
49: ; preds = %46
%50 = call i32 @exit(i32 noundef 1) #3
unreachable
51: ; preds = %46
%52 = load i32, ptr @O_RDWR, align 4
%53 = call i32 @open(ptr noundef @.str.1, i32 noundef %52)
store i32 %53, ptr %2, align 4
%54 = icmp eq i32 %53, -1
br i1 %54, label %55, label %57
55: ; preds = %51
%56 = call i32 @exit(i32 noundef 1) #3
unreachable
57: ; preds = %51
%58 = load i32, ptr %2, align 4
%59 = load i32, ptr @STDIN_FILENO, align 4
%60 = call i32 @dup2(i32 noundef %58, i32 noundef %59)
%61 = load i32, ptr %2, align 4
%62 = load i32, ptr @STDOUT_FILENO, align 4
%63 = call i32 @dup2(i32 noundef %61, i32 noundef %62)
%64 = load i32, ptr %2, align 4
%65 = load i32, ptr @STDERR_FILENO, align 4
%66 = call i32 @dup2(i32 noundef %64, i32 noundef %65)
%67 = load i32, ptr %2, align 4
%68 = call i32 @close(i32 noundef %67)
%69 = load i32, ptr @SIGCHLD, align 4
%70 = load i32, ptr @SIG_IGN, align 4
%71 = call i64 @signal(i32 noundef %69, i32 noundef %70)
%72 = load i64, ptr @SIG_ERR, align 8
%73 = icmp eq i64 %71, %72
br i1 %73, label %74, label %76
74: ; preds = %57
%75 = call i32 @exit(i32 noundef 1) #3
unreachable
76: ; preds = %57
ret void
}
declare i32 @fork(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @setsid(...) #1
declare i32 @close(i32 noundef) #1
declare i32 @chdir(ptr noundef) #1
declare i32 @umask(i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @dup2(i32 noundef, i32 noundef) #1
declare i64 @signal(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpqxa8ue2k.c'
source_filename = "/tmp/tmpqxa8ue2k.c"
target datalayout = "e-m:e-p270: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/tmpqxa8ue2k.c"
target datalayout = "e-m:e-p270: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/tmpi1ayy5nx.c'
source_filename = "/tmp/tmpi1ayy5nx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @func_int(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%13 = load i32, ptr %9, align 4
%14 = load i32, ptr %10, align 4
%15 = load i32, ptr %11, align 4
%16 = call i32 @func_3(i32 noundef %13, i32 noundef %14, i32 noundef %15)
store i32 %16, ptr %12, align 4
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %6, align 4
%19 = add nsw i32 %17, %18
%20 = load i32, ptr %7, align 4
%21 = add nsw i32 %19, %20
%22 = load i32, ptr %8, align 4
%23 = add nsw i32 %21, %22
%24 = load i32, ptr %12, align 4
%25 = add nsw i32 %23, %24
ret i32 %25
}
declare i32 @func_3(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi1ayy5nx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @func_int(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%13 = load i32, ptr %9, align 4
%14 = load i32, ptr %10, align 4
%15 = load i32, ptr %11, align 4
%16 = call i32 @func_3(i32 noundef %13, i32 noundef %14, i32 noundef %15)
store i32 %16, ptr %12, align 4
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %6, align 4
%19 = add nsw i32 %17, %18
%20 = load i32, ptr %7, align 4
%21 = add nsw i32 %19, %20
%22 = load i32, ptr %8, align 4
%23 = add nsw i32 %21, %22
%24 = load i32, ptr %12, align 4
%25 = add nsw i32 %23, %24
ret i32 %25
}
declare i32 @func_3(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5_jkx7b_.c'
source_filename = "/tmp/tmp5_jkx7b_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cu2omLoop(ptr noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
store i64 3, ptr %13, align 8
store i64 9, ptr %14, align 8
store i64 0, ptr %10, align 8
br label %15
15: ; preds = %34, %4
%16 = load i64, ptr %10, align 8
%17 = load i64, ptr %7, align 8
%18 = icmp ult i64 %16, %17
br i1 %18, label %19, label %37
19: ; preds = %15
%20 = load i64, ptr %10, align 8
%21 = load i64, ptr %13, align 8
%22 = mul i64 %20, %21
store i64 %22, ptr %11, align 8
%23 = load i64, ptr %10, align 8
%24 = load i64, ptr %14, align 8
%25 = mul i64 %23, %24
store i64 %25, ptr %12, align 8
%26 = load ptr, ptr %5, align 8
%27 = load i64, ptr %11, align 8
%28 = getelementptr inbounds double, ptr %26, i64 %27
%29 = load ptr, ptr %6, align 8
%30 = load i64, ptr %12, align 8
%31 = getelementptr inbounds double, ptr %29, i64 %30
%32 = load i32, ptr %8, align 4
%33 = call i32 @cu2om(ptr noundef %28, ptr noundef %31, i32 noundef %32)
store i32 %33, ptr %9, align 4
br label %34
34: ; preds = %19
%35 = load i64, ptr %10, align 8
%36 = add i64 %35, 1
store i64 %36, ptr %10, align 8
br label %15, !llvm.loop !6
37: ; preds = %15
ret i32 1
}
declare i32 @cu2om(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5_jkx7b_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cu2omLoop(ptr noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
store i64 3, ptr %13, align 8
store i64 9, ptr %14, align 8
store i64 0, ptr %10, align 8
%15 = load i64, ptr %10, align 8
%16 = load i64, ptr %7, align 8
%17 = icmp ult i64 %15, %16
br i1 %17, label %.lr.ph, label %39
.lr.ph: ; preds = %4
br label %18
18: ; preds = %.lr.ph, %33
%19 = load i64, ptr %10, align 8
%20 = load i64, ptr %13, align 8
%21 = mul i64 %19, %20
store i64 %21, ptr %11, align 8
%22 = load i64, ptr %10, align 8
%23 = load i64, ptr %14, align 8
%24 = mul i64 %22, %23
store i64 %24, ptr %12, align 8
%25 = load ptr, ptr %5, align 8
%26 = load i64, ptr %11, align 8
%27 = getelementptr inbounds double, ptr %25, i64 %26
%28 = load ptr, ptr %6, align 8
%29 = load i64, ptr %12, align 8
%30 = getelementptr inbounds double, ptr %28, i64 %29
%31 = load i32, ptr %8, align 4
%32 = call i32 @cu2om(ptr noundef %27, ptr noundef %30, i32 noundef %31)
store i32 %32, ptr %9, align 4
br label %33
33: ; preds = %18
%34 = load i64, ptr %10, align 8
%35 = add i64 %34, 1
store i64 %35, ptr %10, align 8
%36 = load i64, ptr %10, align 8
%37 = load i64, ptr %7, align 8
%38 = icmp ult i64 %36, %37
br i1 %38, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %39
39: ; preds = %._crit_edge, %4
ret i32 1
}
declare i32 @cu2om(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp3l_6piab.c'
source_filename = "/tmp/tmp3l_6piab.c"
target datalayout = "e-m:e-p270: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/tmp3l_6piab.c"
target datalayout = "e-m:e-p270: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/tmprfbeu7il.c'
source_filename = "/tmp/tmprfbeu7il.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @secure_malloc(i64 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
store i64 %0, ptr %3, align 8
%5 = load i64, ptr %3, align 8
%6 = call i32 @assert(i64 noundef %5)
%7 = load i64, ptr %3, align 8
%8 = call ptr @malloc(i64 noundef %7) #3
store ptr %8, ptr %4, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %11, label %10
10: ; preds = %1
store ptr null, ptr %2, align 8
br label %16
11: ; preds = %1
%12 = load ptr, ptr %4, align 8
%13 = load i64, ptr %3, align 8
%14 = call i32 @secure_memset(ptr noundef %12, i8 noundef signext 0, i64 noundef %13)
%15 = load ptr, ptr %4, align 8
store ptr %15, ptr %2, align 8
br label %16
16: ; preds = %11, %10
%17 = load ptr, ptr %2, align 8
ret ptr %17
}
declare i32 @assert(i64 noundef) #1
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #2
declare i32 @secure_memset(ptr noundef, i8 noundef signext, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { allocsize(0) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmprfbeu7il.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @secure_malloc(i64 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
store i64 %0, ptr %3, align 8
%5 = load i64, ptr %3, align 8
%6 = call i32 @assert(i64 noundef %5)
%7 = load i64, ptr %3, align 8
%8 = call ptr @malloc(i64 noundef %7) #3
store ptr %8, ptr %4, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %11, label %10
10: ; preds = %1
store ptr null, ptr %2, align 8
br label %16
11: ; preds = %1
%12 = load ptr, ptr %4, align 8
%13 = load i64, ptr %3, align 8
%14 = call i32 @secure_memset(ptr noundef %12, i8 noundef signext 0, i64 noundef %13)
%15 = load ptr, ptr %4, align 8
store ptr %15, ptr %2, align 8
br label %16
16: ; preds = %11, %10
%17 = load ptr, ptr %2, align 8
ret ptr %17
}
declare i32 @assert(i64 noundef) #1
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #2
declare i32 @secure_memset(ptr noundef, i8 noundef signext, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { allocsize(0) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpml7hegrq.c'
source_filename = "/tmp/tmpml7hegrq.c"
target datalayout = "e-m:e-p270: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/tmpml7hegrq.c"
target datalayout = "e-m:e-p270: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/tmpp4gcaq7t.c'
source_filename = "/tmp/tmpp4gcaq7t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Geben Sie n ein\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"Nicht Rekursiv Glied: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"Rekursiv :%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = call i32 @fibonacci(i32 noundef %5)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %6)
%8 = load i32, ptr %2, align 4
%9 = call i32 @fibonacciRek(i32 noundef %8)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %9)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @fibonacci(i32 noundef) #1
declare i32 @fibonacciRek(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/tmpp4gcaq7t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Geben Sie n ein\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"Nicht Rekursiv Glied: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"Rekursiv :%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = call i32 @fibonacci(i32 noundef %5)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %6)
%8 = load i32, ptr %2, align 4
%9 = call i32 @fibonacciRek(i32 noundef %8)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %9)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @fibonacci(i32 noundef) #1
declare i32 @fibonacciRek(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/tmp8nhdtp7e.c'
source_filename = "/tmp/tmp8nhdtp7e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @exerciseA()
%3 = call i32 (...) @exerciseB()
%4 = call i32 (...) @exerciseC()
%5 = call i32 (...) @exerciseD()
%6 = call i32 (...) @exerciseE()
ret i32 0
}
declare i32 @exerciseA(...) #1
declare i32 @exerciseB(...) #1
declare i32 @exerciseC(...) #1
declare i32 @exerciseD(...) #1
declare i32 @exerciseE(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8nhdtp7e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @exerciseA()
%3 = call i32 (...) @exerciseB()
%4 = call i32 (...) @exerciseC()
%5 = call i32 (...) @exerciseD()
%6 = call i32 (...) @exerciseE()
ret i32 0
}
declare i32 @exerciseA(...) #1
declare i32 @exerciseB(...) #1
declare i32 @exerciseC(...) #1
declare i32 @exerciseD(...) #1
declare i32 @exerciseE(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxo1d8n96.c'
source_filename = "/tmp/tmpxo1d8n96.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @manualCompensation() #0 {
%1 = call i32 (...) @killClawCompensation()
%2 = call i32 @setClawMotors(i32 noundef 15)
ret void
}
declare i32 @killClawCompensation(...) #1
declare i32 @setClawMotors(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/tmpxo1d8n96.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @manualCompensation() #0 {
%1 = call i32 (...) @killClawCompensation()
%2 = call i32 @setClawMotors(i32 noundef 15)
ret void
}
declare i32 @killClawCompensation(...) #1
declare i32 @setClawMotors(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/tmpcpfsqz0c.c'
source_filename = "/tmp/tmpcpfsqz0c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ANTweenProgressTimingFunctionCubicInOut(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
%5 = load float, ptr %3, align 4
%6 = load float, ptr %4, align 4
%7 = call float @ANTweenTimingFunctionCubicInOut(float noundef %5, i32 noundef 0, i32 noundef 1, float noundef %6)
ret float %7
}
declare float @ANTweenTimingFunctionCubicInOut(float noundef, i32 noundef, i32 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/tmpcpfsqz0c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ANTweenProgressTimingFunctionCubicInOut(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
%5 = load float, ptr %3, align 4
%6 = load float, ptr %4, align 4
%7 = call float @ANTweenTimingFunctionCubicInOut(float noundef %5, i32 noundef 0, i32 noundef 1, float noundef %6)
ret float %7
}
declare float @ANTweenTimingFunctionCubicInOut(float noundef, i32 noundef, i32 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/tmp1kkcqah3.c'
source_filename = "/tmp/tmp1kkcqah3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"\1B[s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @save_cursor() #0 {
%1 = load i32, ptr @stdout, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1kkcqah3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"\1B[s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @save_cursor() #0 {
%1 = load i32, ptr @stdout, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmlk1p2xp.c'
source_filename = "/tmp/tmpmlk1p2xp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"result_byte.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"referenzsystem.txt\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"%d, %s \0A\00", align 1
@.str.5 = private unnamed_addr constant [34 x i8] c"index, s2pp-fpga, referenzsystem\0A\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"%d mismatch in \00", align 1
@.str.7 = private unnamed_addr constant [13 x i8] c"%d, %s, %s \0A\00", align 1
@.str.8 = private unnamed_addr constant [8 x i8] c"match \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @compare(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = mul nsw i32 4, %11
%13 = add nsw i32 1024, %12
%14 = call ptr @malloc(i32 noundef %13)
store ptr %14, ptr %7, align 8
%15 = call ptr @malloc(i32 noundef 1024)
store ptr %15, ptr %8, align 8
%16 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %16, ptr %9, align 8
%17 = call ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.1)
store ptr %17, ptr %10, align 8
store i32 0, ptr %5, align 4
br label %18
18: ; preds = %53, %2
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %3, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %54
22: ; preds = %18
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %5, align 4
%25 = load ptr, ptr %9, align 8
%26 = load ptr, ptr %7, align 8
%27 = call i32 @fscanf(ptr noundef %25, ptr noundef @.str.3, ptr noundef %26)
%28 = load ptr, ptr %7, align 8
%29 = getelementptr inbounds i8, ptr %28, i64 0
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 47
br i1 %32, label %33, label %49
33: ; preds = %22
%34 = load ptr, ptr %7, align 8
%35 = getelementptr inbounds i8, ptr %34, i64 1
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 47
br i1 %38, label %39, label %49
39: ; preds = %33
br label %40
40: ; preds = %45, %39
%41 = load ptr, ptr %9, align 8
%42 = call signext i8 @fgetc(ptr noundef %41)
%43 = sext i8 %42 to i32
%44 = icmp ne i32 %43, 10
br i1 %44, label %45, label %46
45: ; preds = %40
br label %40, !llvm.loop !6
46: ; preds = %40
%47 = load i32, ptr %5, align 4
%48 = add nsw i32 %47, -1
store i32 %48, ptr %5, align 4
br label %53
49: ; preds = %33, %22
%50 = load i32, ptr %5, align 4
%51 = load ptr, ptr %7, align 8
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %50, ptr noundef %51)
br label %53
53: ; preds = %49, %46
br label %18, !llvm.loop !8
54: ; preds = %18
store i32 1, ptr %6, align 4
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 0, ptr %5, align 4
br label %56
56: ; preds = %80, %54
%57 = load i32, ptr %5, align 4
%58 = load i32, ptr %4, align 4
%59 = mul nsw i32 4, %58
%60 = icmp slt i32 %57, %59
br i1 %60, label %61, label %83
61: ; preds = %56
%62 = load ptr, ptr %9, align 8
%63 = load ptr, ptr %7, align 8
%64 = call i32 @fscanf(ptr noundef %62, ptr noundef @.str.3, ptr noundef %63)
%65 = load ptr, ptr %10, align 8
%66 = load ptr, ptr %8, align 8
%67 = call i32 @fscanf(ptr noundef %65, ptr noundef @.str.3, ptr noundef %66)
%68 = load ptr, ptr %7, align 8
%69 = load ptr, ptr %8, align 8
%70 = call i64 @strcmp(ptr noundef %68, ptr noundef %69)
%71 = icmp ne i64 %70, 0
br i1 %71, label %72, label %75
72: ; preds = %61
%73 = load i32, ptr %5, align 4
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %73)
store i32 0, ptr %6, align 4
br label %75
75: ; preds = %72, %61
%76 = load i32, ptr %5, align 4
%77 = load ptr, ptr %7, align 8
%78 = load ptr, ptr %8, align 8
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %76, ptr noundef %77, ptr noundef %78)
br label %80
80: ; preds = %75
%81 = load i32, ptr %5, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %5, align 4
br label %56, !llvm.loop !9
83: ; preds = %56
%84 = load ptr, ptr %9, align 8
%85 = call i32 @fclose(ptr noundef %84)
%86 = load ptr, ptr %10, align 8
%87 = call i32 @fclose(ptr noundef %86)
%88 = load ptr, ptr %8, align 8
%89 = call i32 @free(ptr noundef %88)
%90 = load ptr, ptr %7, align 8
%91 = call i32 @free(ptr noundef %90)
%92 = load i32, ptr %6, align 4
%93 = icmp eq i32 %92, 1
br i1 %93, label %94, label %96
94: ; preds = %83
%95 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %96
96: ; preds = %94, %83
ret void
}
declare ptr @malloc(i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare signext i8 @fgetc(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmlk1p2xp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"result_byte.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"referenzsystem.txt\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"%d, %s \0A\00", align 1
@.str.5 = private unnamed_addr constant [34 x i8] c"index, s2pp-fpga, referenzsystem\0A\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"%d mismatch in \00", align 1
@.str.7 = private unnamed_addr constant [13 x i8] c"%d, %s, %s \0A\00", align 1
@.str.8 = private unnamed_addr constant [8 x i8] c"match \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @compare(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = mul nsw i32 4, %11
%13 = add nsw i32 1024, %12
%14 = call ptr @malloc(i32 noundef %13)
store ptr %14, ptr %7, align 8
%15 = call ptr @malloc(i32 noundef 1024)
store ptr %15, ptr %8, align 8
%16 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %16, ptr %9, align 8
%17 = call ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.1)
store ptr %17, ptr %10, align 8
store i32 0, ptr %5, align 4
%18 = load i32, ptr %5, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %.lr.ph, label %55
.lr.ph: ; preds = %2
br label %21
21: ; preds = %.lr.ph, %51
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %5, align 4
%24 = load ptr, ptr %9, align 8
%25 = load ptr, ptr %7, align 8
%26 = call i32 @fscanf(ptr noundef %24, ptr noundef @.str.3, ptr noundef %25)
%27 = load ptr, ptr %7, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 0
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 47
br i1 %31, label %32, label %47
32: ; preds = %21
%33 = load ptr, ptr %7, align 8
%34 = getelementptr inbounds i8, ptr %33, i64 1
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %36, 47
br i1 %37, label %38, label %47
38: ; preds = %32
br label %39
39: ; preds = %39, %38
%40 = load ptr, ptr %9, align 8
%41 = call signext i8 @fgetc(ptr noundef %40)
%42 = sext i8 %41 to i32
%43 = icmp ne i32 %42, 10
br i1 %43, label %39, label %44, !llvm.loop !6
44: ; preds = %39
%45 = load i32, ptr %5, align 4
%46 = add nsw i32 %45, -1
store i32 %46, ptr %5, align 4
br label %51
47: ; preds = %32, %21
%48 = load i32, ptr %5, align 4
%49 = load ptr, ptr %7, align 8
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %48, ptr noundef %49)
br label %51
51: ; preds = %47, %44
%52 = load i32, ptr %5, align 4
%53 = load i32, ptr %3, align 4
%54 = icmp slt i32 %52, %53
br i1 %54, label %21, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %51
br label %55
55: ; preds = %._crit_edge, %2
store i32 1, ptr %6, align 4
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 0, ptr %5, align 4
%57 = load i32, ptr %5, align 4
%58 = load i32, ptr %4, align 4
%59 = mul nsw i32 4, %58
%60 = icmp slt i32 %57, %59
br i1 %60, label %.lr.ph2, label %87
.lr.ph2: ; preds = %55
br label %61
61: ; preds = %.lr.ph2, %80
%62 = load ptr, ptr %9, align 8
%63 = load ptr, ptr %7, align 8
%64 = call i32 @fscanf(ptr noundef %62, ptr noundef @.str.3, ptr noundef %63)
%65 = load ptr, ptr %10, align 8
%66 = load ptr, ptr %8, align 8
%67 = call i32 @fscanf(ptr noundef %65, ptr noundef @.str.3, ptr noundef %66)
%68 = load ptr, ptr %7, align 8
%69 = load ptr, ptr %8, align 8
%70 = call i64 @strcmp(ptr noundef %68, ptr noundef %69)
%71 = icmp ne i64 %70, 0
br i1 %71, label %72, label %75
72: ; preds = %61
%73 = load i32, ptr %5, align 4
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %73)
store i32 0, ptr %6, align 4
br label %75
75: ; preds = %72, %61
%76 = load i32, ptr %5, align 4
%77 = load ptr, ptr %7, align 8
%78 = load ptr, ptr %8, align 8
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %76, ptr noundef %77, ptr noundef %78)
br label %80
80: ; preds = %75
%81 = load i32, ptr %5, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %5, align 4
%83 = load i32, ptr %5, align 4
%84 = load i32, ptr %4, align 4
%85 = mul nsw i32 4, %84
%86 = icmp slt i32 %83, %85
br i1 %86, label %61, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %80
br label %87
87: ; preds = %._crit_edge3, %55
%88 = load ptr, ptr %9, align 8
%89 = call i32 @fclose(ptr noundef %88)
%90 = load ptr, ptr %10, align 8
%91 = call i32 @fclose(ptr noundef %90)
%92 = load ptr, ptr %8, align 8
%93 = call i32 @free(ptr noundef %92)
%94 = load ptr, ptr %7, align 8
%95 = call i32 @free(ptr noundef %94)
%96 = load i32, ptr %6, align 4
%97 = icmp eq i32 %96, 1
br i1 %97, label %98, label %100
98: ; preds = %87
%99 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %100
100: ; preds = %98, %87
ret void
}
declare ptr @malloc(i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare signext i8 @fgetc(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpluswg8em.c'
source_filename = "/tmp/tmpluswg8em.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [192 x i8] c"Options:\0A -i Set input file\0A -o Set output file\0A -h / --help Display 'help' text\0A --about Display 'about' text\0A -d / --debug Set debug mode\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @help() #0 {
%1 = call i32 @puts(ptr noundef @.str)
ret i32 1
}
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpluswg8em.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [192 x i8] c"Options:\0A -i Set input file\0A -o Set output file\0A -h / --help Display 'help' text\0A --about Display 'about' text\0A -d / --debug Set debug mode\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @help() #0 {
%1 = call i32 @puts(ptr noundef @.str)
ret i32 1
}
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphf604005.c'
source_filename = "/tmp/tmphf604005.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0AAn application to test associative array\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"Version 0.0.1\0A\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"Author: Andrew Chang\0A\00", align 1
@.str.3 = private unnamed_addr constant [42 x i8] c"main() build time: 15:23:05, Mar 16 2022\0A\00", align 1
@.str.4 = private unnamed_addr constant [15 x i8] c"----START----\0A\00", align 1
@.str.5 = private unnamed_addr constant [217 x i8] c"##/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Andrew-M-C/Linux-Linux_Programming_Template/refs/heads/master/history/170204_ARP/170208_1356/main.c, %d: mainRet = 0x%x = %d\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"----ENDS-----\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i32 @printf(ptr noundef @.str)
%8 = call i32 @printf(ptr noundef @.str.1)
%9 = call i32 @printf(ptr noundef @.str.2)
%10 = call i32 @printf(ptr noundef @.str.3)
%11 = call i32 @printf(ptr noundef @.str.4)
%12 = load i32, ptr %4, align 4
%13 = load ptr, ptr %5, align 8
%14 = call i32 @trueMain(i32 noundef %12, ptr noundef %13)
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = call i32 @AMCPrintf(ptr noundef @.str.5, i32 noundef 77, i32 noundef %15, i32 noundef %16)
%18 = call i32 @printf(ptr noundef @.str.6)
%19 = load i32, ptr %6, align 4
%20 = call i32 @exit(i32 noundef %19) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
declare i32 @trueMain(i32 noundef, ptr noundef) #1
declare i32 @AMCPrintf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmphf604005.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0AAn application to test associative array\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"Version 0.0.1\0A\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"Author: Andrew Chang\0A\00", align 1
@.str.3 = private unnamed_addr constant [42 x i8] c"main() build time: 15:23:05, Mar 16 2022\0A\00", align 1
@.str.4 = private unnamed_addr constant [15 x i8] c"----START----\0A\00", align 1
@.str.5 = private unnamed_addr constant [217 x i8] c"##/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Andrew-M-C/Linux-Linux_Programming_Template/refs/heads/master/history/170204_ARP/170208_1356/main.c, %d: mainRet = 0x%x = %d\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"----ENDS-----\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i32 @printf(ptr noundef @.str)
%8 = call i32 @printf(ptr noundef @.str.1)
%9 = call i32 @printf(ptr noundef @.str.2)
%10 = call i32 @printf(ptr noundef @.str.3)
%11 = call i32 @printf(ptr noundef @.str.4)
%12 = load i32, ptr %4, align 4
%13 = load ptr, ptr %5, align 8
%14 = call i32 @trueMain(i32 noundef %12, ptr noundef %13)
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = call i32 @AMCPrintf(ptr noundef @.str.5, i32 noundef 77, i32 noundef %15, i32 noundef %16)
%18 = call i32 @printf(ptr noundef @.str.6)
%19 = load i32, ptr %6, align 4
%20 = call i32 @exit(i32 noundef %19) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
declare i32 @trueMain(i32 noundef, ptr noundef) #1
declare i32 @AMCPrintf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvev_dqvr.c'
source_filename = "/tmp/tmpvev_dqvr.c"
target datalayout = "e-m:e-p270: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.firstName = private unnamed_addr constant [5 x i8] c"Matt\00", align 1
@__const.main.lastName = private unnamed_addr constant [6 x i8] c"Nunes\00", align 1
@.str = private unnamed_addr constant [24 x i8] c"You are %d miles away.\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"You have %f levels of power.\0A\00", align 1
@.str.2 = private unnamed_addr constant [37 x i8] c"You have %f levels of super powers.\0A\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"Your middle initial is %c.\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"Your full name is %s %c. %s.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca float, align 4
%8 = alloca double, align 8
%9 = alloca i8, align 1
%10 = alloca [5 x i8], align 1
%11 = alloca [6 x i8], align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 100, ptr %6, align 4
store float 0x4002C28F60000000, ptr %7, align 4
store double 0x40EBBAAE809D4952, ptr %8, align 8
store i8 83, ptr %9, align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %10, ptr align 1 @__const.main.firstName, i64 5, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %11, ptr align 1 @__const.main.lastName, i64 6, i1 false)
%12 = load i32, ptr %6, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %12)
%14 = load float, ptr %7, align 4
%15 = fpext float %14 to double
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %15)
%17 = load double, ptr %8, align 8
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %17)
%19 = load i8, ptr %9, align 1
%20 = sext i8 %19 to i32
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %20)
%22 = getelementptr inbounds [5 x i8], ptr %10, i64 0, i64 0
%23 = load i8, ptr %9, align 1
%24 = sext i8 %23 to i32
%25 = getelementptr inbounds [6 x i8], ptr %11, i64 0, i64 0
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %22, i32 noundef %24, ptr noundef %25)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #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/tmpvev_dqvr.c"
target datalayout = "e-m:e-p270: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.firstName = private unnamed_addr constant [5 x i8] c"Matt\00", align 1
@__const.main.lastName = private unnamed_addr constant [6 x i8] c"Nunes\00", align 1
@.str = private unnamed_addr constant [24 x i8] c"You are %d miles away.\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"You have %f levels of power.\0A\00", align 1
@.str.2 = private unnamed_addr constant [37 x i8] c"You have %f levels of super powers.\0A\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"Your middle initial is %c.\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"Your full name is %s %c. %s.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca float, align 4
%8 = alloca double, align 8
%9 = alloca i8, align 1
%10 = alloca [5 x i8], align 1
%11 = alloca [6 x i8], align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 100, ptr %6, align 4
store float 0x4002C28F60000000, ptr %7, align 4
store double 0x40EBBAAE809D4952, ptr %8, align 8
store i8 83, ptr %9, align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %10, ptr align 1 @__const.main.firstName, i64 5, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %11, ptr align 1 @__const.main.lastName, i64 6, i1 false)
%12 = load i32, ptr %6, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %12)
%14 = load float, ptr %7, align 4
%15 = fpext float %14 to double
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %15)
%17 = load double, ptr %8, align 8
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %17)
%19 = load i8, ptr %9, align 1
%20 = sext i8 %19 to i32
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %20)
%22 = getelementptr inbounds [5 x i8], ptr %10, i64 0, i64 0
%23 = load i8, ptr %9, align 1
%24 = sext i8 %23 to i32
%25 = getelementptr inbounds [6 x i8], ptr %11, i64 0, i64 0
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %22, i32 noundef %24, ptr noundef %25)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #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/tmp856ocyic.c'
source_filename = "/tmp/tmp856ocyic.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_tabstops(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
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 1, ptr %7, align 4
br label %8
8: ; preds = %24, %3
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %27
12: ; preds = %8
%13 = load ptr, ptr %5, align 8
%14 = load i32, ptr %7, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds ptr, ptr %13, i64 %15
%17 = load ptr, ptr %16, align 8
%18 = call i32 @atoi(ptr noundef %17)
%19 = load ptr, ptr %6, align 8
%20 = load i32, ptr %7, align 4
%21 = sub nsw i32 %20, 1
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %19, i64 %22
store i32 %18, ptr %23, align 4
br label %24
24: ; preds = %12
%25 = load i32, ptr %7, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %7, align 4
br label %8, !llvm.loop !6
27: ; preds = %8
%28 = load i32, ptr %4, align 4
%29 = sub nsw i32 %28, 1
ret i32 %29
}
declare i32 @atoi(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp856ocyic.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_tabstops(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
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 1, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %29
.lr.ph: ; preds = %3
br label %11
11: ; preds = %.lr.ph, %23
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr %7, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds ptr, ptr %12, i64 %14
%16 = load ptr, ptr %15, align 8
%17 = call i32 @atoi(ptr noundef %16)
%18 = load ptr, ptr %6, align 8
%19 = load i32, ptr %7, align 4
%20 = sub nsw i32 %19, 1
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %18, i64 %21
store i32 %17, ptr %22, align 4
br label %23
23: ; preds = %11
%24 = load i32, ptr %7, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %7, align 4
%26 = load i32, ptr %7, align 4
%27 = load i32, ptr %4, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %29
29: ; preds = %._crit_edge, %3
%30 = load i32, ptr %4, align 4
%31 = sub nsw i32 %30, 1
ret i32 %31
}
declare i32 @atoi(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp0xgi_n2e.c'
source_filename = "/tmp/tmp0xgi_n2e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @one_away(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%12 = load ptr, ptr %4, align 8
store ptr %12, ptr %6, align 8
%13 = load ptr, ptr %4, align 8
%14 = call i64 @strlen(ptr noundef %13)
store i64 %14, ptr %7, align 8
%15 = load ptr, ptr %5, align 8
store ptr %15, ptr %8, align 8
%16 = load ptr, ptr %5, align 8
%17 = call i64 @strlen(ptr noundef %16)
store i64 %17, ptr %9, align 8
%18 = load i64, ptr %7, align 8
%19 = load i64, ptr %9, align 8
%20 = icmp ult i64 %18, %19
br i1 %20, label %21, label %27
21: ; preds = %2
%22 = load i64, ptr %9, align 8
store i64 %22, ptr %10, align 8
%23 = load i64, ptr %7, align 8
store i64 %23, ptr %9, align 8
%24 = load i64, ptr %10, align 8
store i64 %24, ptr %7, align 8
%25 = load ptr, ptr %5, align 8
store ptr %25, ptr %6, align 8
%26 = load ptr, ptr %4, align 8
store ptr %26, ptr %8, align 8
br label %27
27: ; preds = %21, %2
%28 = load i64, ptr %7, align 8
%29 = load i64, ptr %9, align 8
%30 = add i64 %29, 1
%31 = icmp ugt i64 %28, %30
br i1 %31, label %32, label %33
32: ; preds = %27
store i32 0, ptr %3, align 4
br label %79
33: ; preds = %27
%34 = load ptr, ptr %6, align 8
%35 = load ptr, ptr %8, align 8
%36 = call i64 @compare_strings(ptr noundef %34, ptr noundef %35)
store i64 %36, ptr %11, align 8
%37 = load ptr, ptr %6, align 8
%38 = load i64, ptr %11, align 8
%39 = getelementptr inbounds i8, ptr %37, i64 %38
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %44
43: ; preds = %33
store i32 1, ptr %3, align 4
br label %79
44: ; preds = %33
%45 = load i64, ptr %7, align 8
%46 = load i64, ptr %9, align 8
%47 = icmp eq i64 %45, %46
br i1 %47, label %48, label %64
48: ; preds = %44
%49 = load ptr, ptr %6, align 8
%50 = load i64, ptr %11, align 8
%51 = getelementptr inbounds i8, ptr %49, i64 %50
%52 = getelementptr inbounds i8, ptr %51, i64 1
%53 = load ptr, ptr %8, align 8
%54 = load i64, ptr %11, align 8
%55 = getelementptr inbounds i8, ptr %53, i64 %54
%56 = getelementptr inbounds i8, ptr %55, i64 1
%57 = call i64 @compare_strings(ptr noundef %52, ptr noundef %56)
%58 = load i64, ptr %11, align 8
%59 = add i64 %57, %58
%60 = add i64 %59, 1
%61 = load i64, ptr %7, align 8
%62 = icmp eq i64 %60, %61
%63 = zext i1 %62 to i32
store i32 %63, ptr %3, align 4
br label %79
64: ; preds = %44
%65 = load ptr, ptr %6, align 8
%66 = load i64, ptr %11, align 8
%67 = getelementptr inbounds i8, ptr %65, i64 %66
%68 = getelementptr inbounds i8, ptr %67, i64 1
%69 = load ptr, ptr %8, align 8
%70 = load i64, ptr %11, align 8
%71 = getelementptr inbounds i8, ptr %69, i64 %70
%72 = call i64 @compare_strings(ptr noundef %68, ptr noundef %71)
%73 = load i64, ptr %11, align 8
%74 = add i64 %72, %73
%75 = add i64 %74, 1
%76 = load i64, ptr %7, align 8
%77 = icmp eq i64 %75, %76
%78 = zext i1 %77 to i32
store i32 %78, ptr %3, align 4
br label %79
79: ; preds = %64, %48, %43, %32
%80 = load i32, ptr %3, align 4
ret i32 %80
}
declare i64 @strlen(ptr noundef) #1
declare i64 @compare_strings(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/tmp0xgi_n2e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @one_away(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%12 = load ptr, ptr %4, align 8
store ptr %12, ptr %6, align 8
%13 = load ptr, ptr %4, align 8
%14 = call i64 @strlen(ptr noundef %13)
store i64 %14, ptr %7, align 8
%15 = load ptr, ptr %5, align 8
store ptr %15, ptr %8, align 8
%16 = load ptr, ptr %5, align 8
%17 = call i64 @strlen(ptr noundef %16)
store i64 %17, ptr %9, align 8
%18 = load i64, ptr %7, align 8
%19 = load i64, ptr %9, align 8
%20 = icmp ult i64 %18, %19
br i1 %20, label %21, label %27
21: ; preds = %2
%22 = load i64, ptr %9, align 8
store i64 %22, ptr %10, align 8
%23 = load i64, ptr %7, align 8
store i64 %23, ptr %9, align 8
%24 = load i64, ptr %10, align 8
store i64 %24, ptr %7, align 8
%25 = load ptr, ptr %5, align 8
store ptr %25, ptr %6, align 8
%26 = load ptr, ptr %4, align 8
store ptr %26, ptr %8, align 8
br label %27
27: ; preds = %21, %2
%28 = load i64, ptr %7, align 8
%29 = load i64, ptr %9, align 8
%30 = add i64 %29, 1
%31 = icmp ugt i64 %28, %30
br i1 %31, label %32, label %33
32: ; preds = %27
store i32 0, ptr %3, align 4
br label %79
33: ; preds = %27
%34 = load ptr, ptr %6, align 8
%35 = load ptr, ptr %8, align 8
%36 = call i64 @compare_strings(ptr noundef %34, ptr noundef %35)
store i64 %36, ptr %11, align 8
%37 = load ptr, ptr %6, align 8
%38 = load i64, ptr %11, align 8
%39 = getelementptr inbounds i8, ptr %37, i64 %38
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %44
43: ; preds = %33
store i32 1, ptr %3, align 4
br label %79
44: ; preds = %33
%45 = load i64, ptr %7, align 8
%46 = load i64, ptr %9, align 8
%47 = icmp eq i64 %45, %46
br i1 %47, label %48, label %64
48: ; preds = %44
%49 = load ptr, ptr %6, align 8
%50 = load i64, ptr %11, align 8
%51 = getelementptr inbounds i8, ptr %49, i64 %50
%52 = getelementptr inbounds i8, ptr %51, i64 1
%53 = load ptr, ptr %8, align 8
%54 = load i64, ptr %11, align 8
%55 = getelementptr inbounds i8, ptr %53, i64 %54
%56 = getelementptr inbounds i8, ptr %55, i64 1
%57 = call i64 @compare_strings(ptr noundef %52, ptr noundef %56)
%58 = load i64, ptr %11, align 8
%59 = add i64 %57, %58
%60 = add i64 %59, 1
%61 = load i64, ptr %7, align 8
%62 = icmp eq i64 %60, %61
%63 = zext i1 %62 to i32
store i32 %63, ptr %3, align 4
br label %79
64: ; preds = %44
%65 = load ptr, ptr %6, align 8
%66 = load i64, ptr %11, align 8
%67 = getelementptr inbounds i8, ptr %65, i64 %66
%68 = getelementptr inbounds i8, ptr %67, i64 1
%69 = load ptr, ptr %8, align 8
%70 = load i64, ptr %11, align 8
%71 = getelementptr inbounds i8, ptr %69, i64 %70
%72 = call i64 @compare_strings(ptr noundef %68, ptr noundef %71)
%73 = load i64, ptr %11, align 8
%74 = add i64 %72, %73
%75 = add i64 %74, 1
%76 = load i64, ptr %7, align 8
%77 = icmp eq i64 %75, %76
%78 = zext i1 %77 to i32
store i32 %78, ptr %3, align 4
br label %79
79: ; preds = %64, %48, %43, %32
%80 = load i32, ptr %3, align 4
ret i32 %80
}
declare i64 @strlen(ptr noundef) #1
declare i64 @compare_strings(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/tmppdr2kh31.c'
source_filename = "/tmp/tmppdr2kh31.c"
target datalayout = "e-m:e-p270: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/tmppdr2kh31.c"
target datalayout = "e-m:e-p270: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/tmpu2lfqu5h.c'
source_filename = "/tmp/tmpu2lfqu5h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [42 x i8] c"\0A-----------MEMORY MODIFY---------------\0A\00", align 1
@.str.1 = private unnamed_addr constant [33 x i8] c"\0AEnter a starting address(HEX): \00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c" %x\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"value(HEX) at 0x%X, is: %02X\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"value(ASCII) at 0x%X, is: %c\0A\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"\0AEnter a new value: \00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c" %c\00", align 1
@.str.7 = private unnamed_addr constant [33 x i8] c"\0AInvalid value entered, Exiting\0A\00", align 1
@.str.8 = private unnamed_addr constant [73 x i8] c"\0AStarting address Exceeds buffer size, 5000(1388 HEX). Try again.......\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @MemMod(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i8, align 1
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %5, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %7
7: ; preds = %64, %1
%8 = load i32, ptr %5, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %65
10: ; preds = %7
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%12 = call i32 (ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %3)
%13 = load i32, ptr %3, align 4
%14 = icmp ule i32 %13, 5000
br i1 %14, label %15, label %62
15: ; preds = %10
%16 = load i32, ptr %3, align 4
%17 = load ptr, ptr %2, align 8
%18 = load i32, ptr %3, align 4
%19 = zext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i8, ptr %20, align 1
%22 = zext i8 %21 to i32
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %16, i32 noundef %22)
%24 = load i32, ptr %3, align 4
%25 = load ptr, ptr %2, align 8
%26 = load i32, ptr %3, align 4
%27 = zext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = load i8, ptr %28, align 1
%30 = zext i8 %29 to i32
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %24, i32 noundef %30)
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%33 = call i32 (ptr, ...) @scanf(ptr noundef @.str.6, ptr noundef %4)
%34 = load i8, ptr %4, align 1
%35 = zext i8 %34 to i32
%36 = icmp ne i32 %35, 46
br i1 %36, label %37, label %59
37: ; preds = %15
%38 = load i8, ptr %4, align 1
%39 = load ptr, ptr %2, align 8
%40 = load i32, ptr %3, align 4
%41 = zext i32 %40 to i64
%42 = getelementptr inbounds i8, ptr %39, i64 %41
store i8 %38, ptr %42, align 1
%43 = load i32, ptr %3, align 4
%44 = load ptr, ptr %2, align 8
%45 = load i32, ptr %3, align 4
%46 = zext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %44, i64 %46
%48 = load i8, ptr %47, align 1
%49 = zext i8 %48 to i32
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %43, i32 noundef %49)
%51 = load i32, ptr %3, align 4
%52 = load ptr, ptr %2, align 8
%53 = load i32, ptr %3, align 4
%54 = zext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
%56 = load i8, ptr %55, align 1
%57 = zext i8 %56 to i32
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %51, i32 noundef %57)
br label %61
59: ; preds = %15
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %61
61: ; preds = %59, %37
store i32 1, ptr %5, align 4
br label %64
62: ; preds = %10
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %64
64: ; preds = %62, %61
br label %7, !llvm.loop !6
65: ; preds = %7
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpu2lfqu5h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [42 x i8] c"\0A-----------MEMORY MODIFY---------------\0A\00", align 1
@.str.1 = private unnamed_addr constant [33 x i8] c"\0AEnter a starting address(HEX): \00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c" %x\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"value(HEX) at 0x%X, is: %02X\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"value(ASCII) at 0x%X, is: %c\0A\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"\0AEnter a new value: \00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c" %c\00", align 1
@.str.7 = private unnamed_addr constant [33 x i8] c"\0AInvalid value entered, Exiting\0A\00", align 1
@.str.8 = private unnamed_addr constant [73 x i8] c"\0AStarting address Exceeds buffer size, 5000(1388 HEX). Try again.......\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @MemMod(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i8, align 1
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %5, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = load i32, ptr %5, align 4
%8 = icmp eq i32 %7, 0
br i1 %8, label %.lr.ph, label %66
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %63
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%11 = call i32 (ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %3)
%12 = load i32, ptr %3, align 4
%13 = icmp ule i32 %12, 5000
br i1 %13, label %14, label %61
14: ; preds = %9
%15 = load i32, ptr %3, align 4
%16 = load ptr, ptr %2, align 8
%17 = load i32, ptr %3, align 4
%18 = zext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i8, ptr %19, align 1
%21 = zext i8 %20 to i32
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %15, i32 noundef %21)
%23 = load i32, ptr %3, align 4
%24 = load ptr, ptr %2, align 8
%25 = load i32, ptr %3, align 4
%26 = zext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
%28 = load i8, ptr %27, align 1
%29 = zext i8 %28 to i32
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %23, i32 noundef %29)
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%32 = call i32 (ptr, ...) @scanf(ptr noundef @.str.6, ptr noundef %4)
%33 = load i8, ptr %4, align 1
%34 = zext i8 %33 to i32
%35 = icmp ne i32 %34, 46
br i1 %35, label %36, label %58
36: ; preds = %14
%37 = load i8, ptr %4, align 1
%38 = load ptr, ptr %2, align 8
%39 = load i32, ptr %3, align 4
%40 = zext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %38, i64 %40
store i8 %37, ptr %41, align 1
%42 = load i32, ptr %3, align 4
%43 = load ptr, ptr %2, align 8
%44 = load i32, ptr %3, align 4
%45 = zext i32 %44 to i64
%46 = getelementptr inbounds i8, ptr %43, i64 %45
%47 = load i8, ptr %46, align 1
%48 = zext i8 %47 to i32
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %42, i32 noundef %48)
%50 = load i32, ptr %3, align 4
%51 = load ptr, ptr %2, align 8
%52 = load i32, ptr %3, align 4
%53 = zext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %51, i64 %53
%55 = load i8, ptr %54, align 1
%56 = zext i8 %55 to i32
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %50, i32 noundef %56)
br label %60
58: ; preds = %14
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %60
60: ; preds = %58, %36
store i32 1, ptr %5, align 4
br label %63
61: ; preds = %9
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %63
63: ; preds = %61, %60
%64 = load i32, ptr %5, align 4
%65 = icmp eq i32 %64, 0
br i1 %65, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %63
br label %66
66: ; preds = %._crit_edge, %1
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpds8uqx4k.c'
source_filename = "/tmp/tmpds8uqx4k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 (...) @lock()
%2 = call i32 (...) @f()
ret i32 0
}
declare i32 @lock(...) #1
declare i32 @f(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpds8uqx4k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 (...) @lock()
%2 = call i32 (...) @f()
ret i32 0
}
declare i32 @lock(...) #1
declare i32 @f(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgex4ri_b.c'
source_filename = "/tmp/tmpgex4ri_b.c"
target datalayout = "e-m:e-p270: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.x = private unnamed_addr constant [8 x double] [double 1.000000e+00, double 2.000000e+00, double 3.000000e+00, double 4.000000e+00, double 5.000000e+00, double 6.000000e+00, double 7.000000e+00, double 8.000000e+00], align 16
@.str = private unnamed_addr constant [11 x i8] c"mean: %lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [8 x double], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca double, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.main.x, i64 64, i1 false)
store i32 4, ptr %2, align 4
store i32 2, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = getelementptr inbounds [8 x double], ptr %1, i64 0, i64 0
%7 = load i32, ptr %3, align 4
%8 = call double @stdlib_strided_dmeanlipw(i32 noundef %5, ptr noundef %6, i32 noundef %7)
store double %8, ptr %4, align 8
%9 = load double, ptr %4, align 8
%10 = call i32 @printf(ptr noundef @.str, double noundef %9)
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 double @stdlib_strided_dmeanlipw(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, 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 = { 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/tmpgex4ri_b.c"
target datalayout = "e-m:e-p270: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.x = private unnamed_addr constant [8 x double] [double 1.000000e+00, double 2.000000e+00, double 3.000000e+00, double 4.000000e+00, double 5.000000e+00, double 6.000000e+00, double 7.000000e+00, double 8.000000e+00], align 16
@.str = private unnamed_addr constant [11 x i8] c"mean: %lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [8 x double], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca double, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.main.x, i64 64, i1 false)
store i32 4, ptr %2, align 4
store i32 2, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = getelementptr inbounds [8 x double], ptr %1, i64 0, i64 0
%7 = load i32, ptr %3, align 4
%8 = call double @stdlib_strided_dmeanlipw(i32 noundef %5, ptr noundef %6, i32 noundef %7)
store double %8, ptr %4, align 8
%9 = load double, ptr %4, align 8
%10 = call i32 @printf(ptr noundef @.str, double noundef %9)
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 double @stdlib_strided_dmeanlipw(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, 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 = { 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/tmp_03iayng.c'
source_filename = "/tmp/tmp_03iayng.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getconfigint(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca [12 x i8], align 1
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%12 = load ptr, ptr %6, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %23, label %14
14: ; preds = %4
%15 = load ptr, ptr %7, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %23, label %17
17: ; preds = %14
%18 = load ptr, ptr %8, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %23, label %20
20: ; preds = %17
%21 = load ptr, ptr %9, align 8
%22 = icmp eq ptr %21, null
br i1 %22, label %23, label %24
23: ; preds = %20, %17, %14, %4
store i32 -1, ptr %5, align 4
br label %40
24: ; preds = %20
%25 = getelementptr inbounds [12 x i8], ptr %11, i64 0, i64 0
%26 = call i32 @memset(ptr noundef %25, i32 noundef 0, i32 noundef 12)
%27 = load ptr, ptr %6, align 8
%28 = load ptr, ptr %7, align 8
%29 = getelementptr inbounds [12 x i8], ptr %11, i64 0, i64 0
%30 = load ptr, ptr %9, align 8
%31 = call i32 @getconfigstr(ptr noundef %27, ptr noundef %28, ptr noundef %29, i32 noundef 12, ptr noundef %30)
store i32 %31, ptr %10, align 4
%32 = load i32, ptr %10, align 4
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %38
34: ; preds = %24
%35 = getelementptr inbounds [12 x i8], ptr %11, i64 0, i64 0
%36 = call i32 @atoi(ptr noundef %35)
%37 = load ptr, ptr %8, align 8
store i32 %36, ptr %37, align 4
br label %38
38: ; preds = %34, %24
%39 = load i32, ptr %10, align 4
store i32 %39, ptr %5, align 4
br label %40
40: ; preds = %38, %23
%41 = load i32, ptr %5, align 4
ret i32 %41
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getconfigstr(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_03iayng.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getconfigint(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca [12 x i8], align 1
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%12 = load ptr, ptr %6, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %23, label %14
14: ; preds = %4
%15 = load ptr, ptr %7, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %23, label %17
17: ; preds = %14
%18 = load ptr, ptr %8, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %23, label %20
20: ; preds = %17
%21 = load ptr, ptr %9, align 8
%22 = icmp eq ptr %21, null
br i1 %22, label %23, label %24
23: ; preds = %20, %17, %14, %4
store i32 -1, ptr %5, align 4
br label %40
24: ; preds = %20
%25 = getelementptr inbounds [12 x i8], ptr %11, i64 0, i64 0
%26 = call i32 @memset(ptr noundef %25, i32 noundef 0, i32 noundef 12)
%27 = load ptr, ptr %6, align 8
%28 = load ptr, ptr %7, align 8
%29 = getelementptr inbounds [12 x i8], ptr %11, i64 0, i64 0
%30 = load ptr, ptr %9, align 8
%31 = call i32 @getconfigstr(ptr noundef %27, ptr noundef %28, ptr noundef %29, i32 noundef 12, ptr noundef %30)
store i32 %31, ptr %10, align 4
%32 = load i32, ptr %10, align 4
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %38
34: ; preds = %24
%35 = getelementptr inbounds [12 x i8], ptr %11, i64 0, i64 0
%36 = call i32 @atoi(ptr noundef %35)
%37 = load ptr, ptr %8, align 8
store i32 %36, ptr %37, align 4
br label %38
38: ; preds = %34, %24
%39 = load i32, ptr %10, align 4
store i32 %39, ptr %5, align 4
br label %40
40: ; preds = %38, %23
%41 = load i32, ptr %5, align 4
ret i32 %41
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getconfigstr(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpafg0i236.c'
source_filename = "/tmp/tmpafg0i236.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @uniform(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 %4, align 8
%6 = getelementptr inbounds double, ptr %5, i64 1
%7 = load double, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = getelementptr inbounds double, ptr %8, i64 0
%10 = load double, ptr %9, align 8
%11 = fsub double %7, %10
%12 = load ptr, ptr %3, align 8
%13 = call double @randy(ptr noundef %12)
%14 = load ptr, ptr %4, align 8
%15 = getelementptr inbounds double, ptr %14, i64 0
%16 = load double, ptr %15, align 8
%17 = call double @llvm.fmuladd.f64(double %11, double %13, double %16)
%18 = fadd double %17, 5.000000e-01
%19 = fptosi double %18 to i32
ret i32 %19
}
declare double @randy(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpafg0i236.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @uniform(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 %4, align 8
%6 = getelementptr inbounds double, ptr %5, i64 1
%7 = load double, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = getelementptr inbounds double, ptr %8, i64 0
%10 = load double, ptr %9, align 8
%11 = fsub double %7, %10
%12 = load ptr, ptr %3, align 8
%13 = call double @randy(ptr noundef %12)
%14 = load ptr, ptr %4, align 8
%15 = getelementptr inbounds double, ptr %14, i64 0
%16 = load double, ptr %15, align 8
%17 = call double @llvm.fmuladd.f64(double %11, double %13, double %16)
%18 = fadd double %17, 5.000000e-01
%19 = fptosi double %18 to i32
ret i32 %19
}
declare double @randy(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5_8su9jd.c'
source_filename = "/tmp/tmp5_8su9jd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @program_exit(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i8, align 1
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i64 @ricevi_opzione(i32 noundef %4, ptr noundef %3)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i32, ptr %2, align 4
%9 = call i32 @fatal_error(i32 noundef %8)
br label %10
10: ; preds = %7, %1
ret void
}
declare i64 @ricevi_opzione(i32 noundef, ptr noundef) #1
declare i32 @fatal_error(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/tmp5_8su9jd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @program_exit(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i8, align 1
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i64 @ricevi_opzione(i32 noundef %4, ptr noundef %3)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i32, ptr %2, align 4
%9 = call i32 @fatal_error(i32 noundef %8)
br label %10
10: ; preds = %7, %1
ret void
}
declare i64 @ricevi_opzione(i32 noundef, ptr noundef) #1
declare i32 @fatal_error(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/tmpa26hc94k.c'
source_filename = "/tmp/tmpa26hc94k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @powerpc_hang() #0 {
%1 = call i32 @clear32(i32 noundef 226492820, i32 noundef 48)
%2 = call i32 @udelay(i32 noundef 100)
%3 = call i32 @set32(i32 noundef 226492820, i32 noundef 32)
%4 = call i32 @udelay(i32 noundef 100)
ret void
}
declare i32 @clear32(i32 noundef, i32 noundef) #1
declare i32 @udelay(i32 noundef) #1
declare i32 @set32(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/tmpa26hc94k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @powerpc_hang() #0 {
%1 = call i32 @clear32(i32 noundef 226492820, i32 noundef 48)
%2 = call i32 @udelay(i32 noundef 100)
%3 = call i32 @set32(i32 noundef 226492820, i32 noundef 32)
%4 = call i32 @udelay(i32 noundef 100)
ret void
}
declare i32 @clear32(i32 noundef, i32 noundef) #1
declare i32 @udelay(i32 noundef) #1
declare i32 @set32(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/tmp1radxscr.c'
source_filename = "/tmp/tmp1radxscr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isupper.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isupper should be 1 for Y\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isupper_0x59() #0 {
%1 = call i32 @isupper(i32 noundef 89) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 450, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isupper(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1radxscr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isupper.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isupper should be 1 for Y\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isupper_0x59() #0 {
%1 = call i32 @isupper(i32 noundef 89) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 450, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isupper(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpehocnv54.c'
source_filename = "/tmp/tmpehocnv54.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.hostent = type { ptr }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [15 x i8] c"HARMONY_S_HOST\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"localhost\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"HARMONY_S_PORT\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tcp_connect(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca %struct.sockaddr_in, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%10 = load i32, ptr @AF_INET, align 4
%11 = load i32, ptr @SOCK_STREAM, align 4
%12 = call i32 @socket(i32 noundef %10, i32 noundef %11, i32 noundef 0)
store i32 %12, ptr %9, align 4
%13 = load i32, ptr %9, align 4
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %2
store i32 -1, ptr %3, align 4
br label %62
16: ; preds = %2
%17 = load ptr, ptr %4, align 8
%18 = icmp eq ptr %17, null
br i1 %18, label %19, label %25
19: ; preds = %16
%20 = call ptr @getenv(ptr noundef @.str)
store ptr %20, ptr %4, align 8
%21 = load ptr, ptr %4, align 8
%22 = icmp eq ptr %21, null
br i1 %22, label %23, label %24
23: ; preds = %19
store ptr @.str.1, ptr %4, align 8
br label %24
24: ; preds = %23, %19
br label %25
25: ; preds = %24, %16
%26 = load ptr, ptr %4, align 8
%27 = call ptr @gethostbyname(ptr noundef %26)
store ptr %27, ptr %7, align 8
%28 = load ptr, ptr %7, align 8
%29 = icmp ne ptr %28, null
br i1 %29, label %31, label %30
30: ; preds = %25
store i32 -1, ptr %3, align 4
br label %62
31: ; preds = %25
%32 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 2
%33 = load ptr, ptr %7, align 8
%34 = getelementptr inbounds %struct.hostent, ptr %33, i32 0, i32 0
%35 = load ptr, ptr %34, align 8
%36 = getelementptr inbounds i32, ptr %35, i64 0
%37 = load i32, ptr %36, align 4
%38 = call i32 @memcpy(ptr noundef %32, i32 noundef %37, i32 noundef 4)
%39 = load i32, ptr %5, align 4
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %50
41: ; preds = %31
%42 = call ptr @getenv(ptr noundef @.str.2)
store ptr %42, ptr %8, align 8
%43 = load ptr, ptr %8, align 8
%44 = icmp ne ptr %43, null
br i1 %44, label %45, label %48
45: ; preds = %41
%46 = load ptr, ptr %8, align 8
%47 = call i32 @atoi(ptr noundef %46)
store i32 %47, ptr %5, align 4
br label %49
48: ; preds = %41
store i32 1979, ptr %5, align 4
br label %49
49: ; preds = %48, %45
br label %50
50: ; preds = %49, %31
%51 = load i32, ptr %5, align 4
%52 = call i32 @htons(i32 noundef %51)
%53 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 1
store i32 %52, ptr %53, align 4
%54 = load i32, ptr @AF_INET, align 4
%55 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 0
store i32 %54, ptr %55, align 4
%56 = load i32, ptr %9, align 4
%57 = call i64 @connect(i32 noundef %56, ptr noundef %6, i32 noundef 12)
%58 = icmp slt i64 %57, 0
br i1 %58, label %59, label %60
59: ; preds = %50
store i32 -1, ptr %3, align 4
br label %62
60: ; preds = %50
%61 = load i32, ptr %9, align 4
store i32 %61, ptr %3, align 4
br label %62
62: ; preds = %60, %59, %30, %15
%63 = load i32, ptr %3, align 4
ret i32 %63
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare ptr @getenv(ptr noundef) #1
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @memcpy(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpehocnv54.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.hostent = type { ptr }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [15 x i8] c"HARMONY_S_HOST\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"localhost\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"HARMONY_S_PORT\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tcp_connect(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca %struct.sockaddr_in, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%10 = load i32, ptr @AF_INET, align 4
%11 = load i32, ptr @SOCK_STREAM, align 4
%12 = call i32 @socket(i32 noundef %10, i32 noundef %11, i32 noundef 0)
store i32 %12, ptr %9, align 4
%13 = load i32, ptr %9, align 4
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %2
store i32 -1, ptr %3, align 4
br label %62
16: ; preds = %2
%17 = load ptr, ptr %4, align 8
%18 = icmp eq ptr %17, null
br i1 %18, label %19, label %25
19: ; preds = %16
%20 = call ptr @getenv(ptr noundef @.str)
store ptr %20, ptr %4, align 8
%21 = load ptr, ptr %4, align 8
%22 = icmp eq ptr %21, null
br i1 %22, label %23, label %24
23: ; preds = %19
store ptr @.str.1, ptr %4, align 8
br label %24
24: ; preds = %23, %19
br label %25
25: ; preds = %24, %16
%26 = load ptr, ptr %4, align 8
%27 = call ptr @gethostbyname(ptr noundef %26)
store ptr %27, ptr %7, align 8
%28 = load ptr, ptr %7, align 8
%29 = icmp ne ptr %28, null
br i1 %29, label %31, label %30
30: ; preds = %25
store i32 -1, ptr %3, align 4
br label %62
31: ; preds = %25
%32 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 2
%33 = load ptr, ptr %7, align 8
%34 = getelementptr inbounds %struct.hostent, ptr %33, i32 0, i32 0
%35 = load ptr, ptr %34, align 8
%36 = getelementptr inbounds i32, ptr %35, i64 0
%37 = load i32, ptr %36, align 4
%38 = call i32 @memcpy(ptr noundef %32, i32 noundef %37, i32 noundef 4)
%39 = load i32, ptr %5, align 4
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %50
41: ; preds = %31
%42 = call ptr @getenv(ptr noundef @.str.2)
store ptr %42, ptr %8, align 8
%43 = load ptr, ptr %8, align 8
%44 = icmp ne ptr %43, null
br i1 %44, label %45, label %48
45: ; preds = %41
%46 = load ptr, ptr %8, align 8
%47 = call i32 @atoi(ptr noundef %46)
store i32 %47, ptr %5, align 4
br label %49
48: ; preds = %41
store i32 1979, ptr %5, align 4
br label %49
49: ; preds = %48, %45
br label %50
50: ; preds = %49, %31
%51 = load i32, ptr %5, align 4
%52 = call i32 @htons(i32 noundef %51)
%53 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 1
store i32 %52, ptr %53, align 4
%54 = load i32, ptr @AF_INET, align 4
%55 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 0
store i32 %54, ptr %55, align 4
%56 = load i32, ptr %9, align 4
%57 = call i64 @connect(i32 noundef %56, ptr noundef %6, i32 noundef 12)
%58 = icmp slt i64 %57, 0
br i1 %58, label %59, label %60
59: ; preds = %50
store i32 -1, ptr %3, align 4
br label %62
60: ; preds = %50
%61 = load i32, ptr %9, align 4
store i32 %61, ptr %3, align 4
br label %62
62: ; preds = %60, %59, %30, %15
%63 = load i32, ptr %3, align 4
ret i32 %63
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare ptr @getenv(ptr noundef) #1
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @memcpy(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6n0xrilq.c'
source_filename = "/tmp/tmp6n0xrilq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s: Performing APT full upgrade...\0A\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"sleep 1 && apt full-upgrade\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"Done\0A\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"%s: %s\00", align 1
@.str.4 = private unnamed_addr constant [43 x i8] c"Command failed to execute due to error(s).\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @apt_fullupgrade(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %4)
%6 = call i32 @system(ptr noundef @.str.1)
store i32 %6, ptr %3, align 4
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %13
10: ; preds = %1
%11 = load ptr, ptr %2, align 8
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %11, ptr noundef @.str.4)
br label %13
13: ; preds = %10, %8
%14 = call i32 @putchar(i8 noundef signext 10)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @system(ptr noundef) #1
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6n0xrilq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s: Performing APT full upgrade...\0A\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"sleep 1 && apt full-upgrade\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"Done\0A\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"%s: %s\00", align 1
@.str.4 = private unnamed_addr constant [43 x i8] c"Command failed to execute due to error(s).\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @apt_fullupgrade(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %4)
%6 = call i32 @system(ptr noundef @.str.1)
store i32 %6, ptr %3, align 4
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %13
10: ; preds = %1
%11 = load ptr, ptr %2, align 8
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %11, ptr noundef @.str.4)
br label %13
13: ; preds = %10, %8
%14 = call i32 @putchar(i8 noundef signext 10)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @system(ptr noundef) #1
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpll3aatyh.c'
source_filename = "/tmp/tmpll3aatyh.c"
target datalayout = "e-m:e-p270: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/tmpll3aatyh.c"
target datalayout = "e-m:e-p270: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/tmp94x8zakb.c'
source_filename = "/tmp/tmp94x8zakb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp94x8zakb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpujnsmnpp.c'
source_filename = "/tmp/tmpujnsmnpp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vanleer_ppa(double noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca double, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store double %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @vanleer_ppa_a(ptr noundef %9)
%11 = load double, ptr %5, align 8
%12 = load ptr, ptr %6, align 8
%13 = load ptr, ptr %7, align 8
%14 = load ptr, ptr %8, align 8
%15 = call i32 @vanleer_ppa_b(double noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14)
ret void
}
declare i32 @vanleer_ppa_a(ptr noundef) #1
declare i32 @vanleer_ppa_b(double 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/tmpujnsmnpp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vanleer_ppa(double noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca double, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store double %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @vanleer_ppa_a(ptr noundef %9)
%11 = load double, ptr %5, align 8
%12 = load ptr, ptr %6, align 8
%13 = load ptr, ptr %7, align 8
%14 = load ptr, ptr %8, align 8
%15 = call i32 @vanleer_ppa_b(double noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14)
ret void
}
declare i32 @vanleer_ppa_a(ptr noundef) #1
declare i32 @vanleer_ppa_b(double 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/tmpn4sc_995.c'
source_filename = "/tmp/tmpn4sc_995.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"-> the number of equations : %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [33 x i8] c"-> the number of variables : %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"-> total number of terms : %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @retrieve_standard_tableau_form(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
store i32 %0, ptr %2, align 4
%11 = call i32 @load_standard_tableau_dimensions(ptr noundef %4, ptr noundef %5, ptr noundef %6)
store i32 %11, ptr %3, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp sgt i32 %12, 0
br i1 %13, label %14, label %21
14: ; preds = %1
%15 = load i32, ptr %4, align 4
%16 = call i32 @printf(ptr noundef @.str, i32 noundef %15)
%17 = load i32, ptr %5, align 4
%18 = call i32 @printf(ptr noundef @.str.1, i32 noundef %17)
%19 = load i32, ptr %6, align 4
%20 = call i32 @printf(ptr noundef @.str.2, i32 noundef %19)
br label %21
21: ; preds = %14, %1
%22 = load i32, ptr %4, align 4
%23 = zext i32 %22 to i64
%24 = call ptr @llvm.stacksave()
store ptr %24, ptr %7, align 8
%25 = alloca i32, i64 %23, align 16
store i64 %23, ptr %8, align 8
%26 = load i32, ptr %5, align 4
%27 = load i32, ptr %6, align 4
%28 = mul nsw i32 %26, %27
%29 = zext i32 %28 to i64
%30 = alloca i32, i64 %29, align 16
store i64 %29, ptr %9, align 8
%31 = load i32, ptr %6, align 4
%32 = mul nsw i32 2, %31
%33 = zext i32 %32 to i64
%34 = alloca double, i64 %33, align 16
store i64 %33, ptr %10, align 8
%35 = load ptr, ptr %7, align 8
call void @llvm.stackrestore(ptr %35)
%36 = load i32, ptr %3, align 4
ret i32 %36
}
declare i32 @load_standard_tableau_dimensions(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn4sc_995.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"-> the number of equations : %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [33 x i8] c"-> the number of variables : %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"-> total number of terms : %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @retrieve_standard_tableau_form(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
store i32 %0, ptr %2, align 4
%11 = call i32 @load_standard_tableau_dimensions(ptr noundef %4, ptr noundef %5, ptr noundef %6)
store i32 %11, ptr %3, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp sgt i32 %12, 0
br i1 %13, label %14, label %21
14: ; preds = %1
%15 = load i32, ptr %4, align 4
%16 = call i32 @printf(ptr noundef @.str, i32 noundef %15)
%17 = load i32, ptr %5, align 4
%18 = call i32 @printf(ptr noundef @.str.1, i32 noundef %17)
%19 = load i32, ptr %6, align 4
%20 = call i32 @printf(ptr noundef @.str.2, i32 noundef %19)
br label %21
21: ; preds = %14, %1
%22 = load i32, ptr %4, align 4
%23 = zext i32 %22 to i64
%24 = call ptr @llvm.stacksave()
store ptr %24, ptr %7, align 8
%25 = alloca i32, i64 %23, align 16
store i64 %23, ptr %8, align 8
%26 = load i32, ptr %5, align 4
%27 = load i32, ptr %6, align 4
%28 = mul nsw i32 %26, %27
%29 = zext i32 %28 to i64
%30 = alloca i32, i64 %29, align 16
store i64 %29, ptr %9, align 8
%31 = load i32, ptr %6, align 4
%32 = mul nsw i32 2, %31
%33 = zext i32 %32 to i64
%34 = alloca double, i64 %33, align 16
store i64 %33, ptr %10, align 8
%35 = load ptr, ptr %7, align 8
call void @llvm.stackrestore(ptr %35)
%36 = load i32, ptr %3, align 4
ret i32 %36
}
declare i32 @load_standard_tableau_dimensions(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmph2ka3u2k.c'
source_filename = "/tmp/tmph2ka3u2k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @connect_retry(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
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 1, ptr %8, align 4
br label %9
9: ; preds = %26, %3
%10 = load i32, ptr %8, align 4
%11 = icmp sle i32 %10, 128
br i1 %11, label %12, label %29
12: ; preds = %9
%13 = load i32, ptr %5, align 4
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr %7, align 4
%16 = call i64 @connect(i32 noundef %13, ptr noundef %14, i32 noundef %15)
%17 = icmp eq i64 0, %16
br i1 %17, label %18, label %19
18: ; preds = %12
store i32 0, ptr %4, align 4
br label %30
19: ; preds = %12
%20 = load i32, ptr %8, align 4
%21 = icmp sle i32 %20, 64
br i1 %21, label %22, label %25
22: ; preds = %19
%23 = load i32, ptr %8, align 4
%24 = call i32 @sleep(i32 noundef %23)
br label %25
25: ; preds = %22, %19
br label %26
26: ; preds = %25
%27 = load i32, ptr %8, align 4
%28 = shl i32 %27, 1
store i32 %28, ptr %8, align 4
br label %9, !llvm.loop !6
29: ; preds = %9
store i32 -1, ptr %4, align 4
br label %30
30: ; preds = %29, %18
%31 = load i32, ptr %4, align 4
ret i32 %31
}
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmph2ka3u2k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @connect_retry(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
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 1, ptr %8, align 4
%9 = load i32, ptr %8, align 4
%10 = icmp sle i32 %9, 128
br i1 %10, label %.lr.ph, label %30
.lr.ph: ; preds = %3
br label %11
11: ; preds = %.lr.ph, %25
%12 = load i32, ptr %5, align 4
%13 = load ptr, ptr %6, align 8
%14 = load i32, ptr %7, align 4
%15 = call i64 @connect(i32 noundef %12, ptr noundef %13, i32 noundef %14)
%16 = icmp eq i64 0, %15
br i1 %16, label %17, label %18
17: ; preds = %11
store i32 0, ptr %4, align 4
br label %31
18: ; preds = %11
%19 = load i32, ptr %8, align 4
%20 = icmp sle i32 %19, 64
br i1 %20, label %21, label %24
21: ; preds = %18
%22 = load i32, ptr %8, align 4
%23 = call i32 @sleep(i32 noundef %22)
br label %24
24: ; preds = %21, %18
br label %25
25: ; preds = %24
%26 = load i32, ptr %8, align 4
%27 = shl i32 %26, 1
store i32 %27, ptr %8, align 4
%28 = load i32, ptr %8, align 4
%29 = icmp sle i32 %28, 128
br i1 %29, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %30
30: ; preds = %._crit_edge, %3
store i32 -1, ptr %4, align 4
br label %31
31: ; preds = %30, %17
%32 = load i32, ptr %4, align 4
ret i32 %32
}
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp624_zjoe.c'
source_filename = "/tmp/tmp624_zjoe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@COLOR_BLACK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @window_normal_borders(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i32, ptr @COLOR_BLACK, align 4
%5 = load i32, ptr @COLOR_BLACK, align 4
%6 = call i32 @engine_get_color(i32 noundef %4, i32 noundef %5, i32 noundef 1)
%7 = call i32 @wattrset(ptr noundef %3, i32 noundef %6)
%8 = load ptr, ptr %2, align 8
%9 = call i32 @wborder(ptr noundef %8, i8 noundef signext 124, i8 noundef signext 124, i8 noundef signext 45, i8 noundef signext 45, i8 noundef signext 43, i8 noundef signext 43, i8 noundef signext 43, i8 noundef signext 43)
ret void
}
declare i32 @wattrset(ptr noundef, i32 noundef) #1
declare i32 @engine_get_color(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @wborder(ptr noundef, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp624_zjoe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@COLOR_BLACK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @window_normal_borders(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i32, ptr @COLOR_BLACK, align 4
%5 = load i32, ptr @COLOR_BLACK, align 4
%6 = call i32 @engine_get_color(i32 noundef %4, i32 noundef %5, i32 noundef 1)
%7 = call i32 @wattrset(ptr noundef %3, i32 noundef %6)
%8 = load ptr, ptr %2, align 8
%9 = call i32 @wborder(ptr noundef %8, i8 noundef signext 124, i8 noundef signext 124, i8 noundef signext 45, i8 noundef signext 45, i8 noundef signext 43, i8 noundef signext 43, i8 noundef signext 43, i8 noundef signext 43)
ret void
}
declare i32 @wattrset(ptr noundef, i32 noundef) #1
declare i32 @engine_get_color(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @wborder(ptr noundef, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp48fm5hq3.c'
source_filename = "/tmp/tmp48fm5hq3.c"
target datalayout = "e-m:e-p270: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.tm = type { i8, i8, i8 }
@__const.main.Version = private unnamed_addr constant [4 x i8] c"2.0\00", align 1
@__const.main.xAlphaMask = private unnamed_addr constant <{ [128 x i8], [128 x i8] }> <{ [128 x i8] c"\87\F6\A1|\D6:\87\E6\0E\84\F6\CA\81\BFv\12\E8=\F7j)\C3\84\B5k\C3J\8Fv\D9\8Av\A2;\98\D7\E6\F5\9C\87lI\8C}e\D2\AF\17\8A\D6I\F8z\1B#\9C|\C8\A6\19\EE(\7FhH}\D6Z\B3\8C\F7R\FE2\D9\84\A7\A5\C9\87*\8F\F7mH}\E6%\EDT\9B\C3j\A5\98d\AC\10\D9\8F\E70\A9T\E4\\\D45\A45\FF&O\87\EAe;\DEHv\1E\B8r\C5\D8^\8A$", [128 x i8] zeroinitializer }>, align 16
@__const.main.filler = private unnamed_addr constant [99 x i8] c"Well done, you have cracked the keyfile code! Please don't pass it on, I need to eat too - Sander\00", align 16
@.str = private unnamed_addr constant [47 x i8] c"Generate Keyfile for Becasso 1.5 registration\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"Usage: gen_key <name>\0A\00", align 1
@.str.2 = private unnamed_addr constant [49 x i8] c"(Quote <name>; it will probably contain spaces)\0A\00", align 1
@stdout = dso_local global ptr null, align 8
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [30 x i8] c"Couldn't open %s for writing\0A\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"Keyfile\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [256 x i8], align 16
%7 = alloca [128 x i8], align 16
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i64, align 8
%13 = alloca ptr, align 8
%14 = alloca [256 x i8], align 16
%15 = alloca ptr, align 8
%16 = alloca [4 x i8], align 1
%17 = alloca [256 x i8], align 16
%18 = alloca [99 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %16, ptr align 1 @__const.main.Version, i64 4, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 @__const.main.xAlphaMask, i64 256, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %18, ptr align 16 @__const.main.filler, i64 99, i1 false)
%19 = load i32, ptr %4, align 4
%20 = icmp ne i32 %19, 2
br i1 %20, label %21, label %25
21: ; preds = %2
%22 = call i32 @printf(ptr noundef @.str)
%23 = call i32 @printf(ptr noundef @.str.1)
%24 = call i32 @printf(ptr noundef @.str.2)
store i32 2, ptr %3, align 4
br label %194
25: ; preds = %2
%26 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 1
%29 = load ptr, ptr %28, align 8
%30 = call i32 @strncpy(ptr noundef %26, ptr noundef %29, i32 noundef 127)
store i32 0, ptr %10, align 4
br label %31
31: ; preds = %45, %25
%32 = load i32, ptr %10, align 4
%33 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%34 = call i32 @strlen(ptr noundef %33)
%35 = icmp sle i32 %32, %34
br i1 %35, label %36, label %48
36: ; preds = %31
%37 = load i32, ptr %10, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 %38
%40 = load i8, ptr %39, align 1
%41 = load i32, ptr %10, align 4
%42 = mul nsw i32 2, %41
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %43
store i8 %40, ptr %44, align 1
br label %45
45: ; preds = %36
%46 = load i32, ptr %10, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %10, align 4
br label %31, !llvm.loop !6
48: ; preds = %31
%49 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%50 = call i32 @strlen(ptr noundef %49)
%51 = add nsw i32 %50, 1
store i32 %51, ptr %10, align 4
br label %52
52: ; preds = %63, %48
%53 = load i32, ptr %10, align 4
%54 = icmp slt i32 %53, 128
br i1 %54, label %55, label %66
55: ; preds = %52
%56 = call i32 (...) @rand()
%57 = and i32 %56, 255
%58 = trunc i32 %57 to i8
%59 = load i32, ptr %10, align 4
%60 = mul nsw i32 2, %59
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %61
store i8 %58, ptr %62, align 1
br label %63
63: ; preds = %55
%64 = load i32, ptr %10, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %10, align 4
br label %52, !llvm.loop !8
66: ; preds = %52
%67 = call i32 @time(ptr noundef null)
store i32 %67, ptr %9, align 4
%68 = call ptr @localtime(ptr noundef %9)
store ptr %68, ptr %8, align 8
%69 = getelementptr inbounds [4 x i8], ptr %16, i64 0, i64 0
%70 = call i32 @strlen(ptr noundef %69)
store i32 %70, ptr %11, align 4
%71 = load i32, ptr %11, align 4
%72 = trunc i32 %71 to i8
%73 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 1
store i8 %72, ptr %73, align 1
%74 = load ptr, ptr %8, align 8
%75 = getelementptr inbounds %struct.tm, ptr %74, i32 0, i32 0
%76 = load i8, ptr %75, align 1
%77 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 3
store i8 %76, ptr %77, align 1
%78 = load ptr, ptr %8, align 8
%79 = getelementptr inbounds %struct.tm, ptr %78, i32 0, i32 1
%80 = load i8, ptr %79, align 1
%81 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 5
store i8 %80, ptr %81, align 1
%82 = load ptr, ptr %8, align 8
%83 = getelementptr inbounds %struct.tm, ptr %82, i32 0, i32 2
%84 = load i8, ptr %83, align 1
%85 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 7
store i8 %84, ptr %85, align 1
%86 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 9
store i8 31, ptr %86, align 1
%87 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 11
store i8 42, ptr %87, align 1
%88 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 13
store i8 2, ptr %88, align 1
store i32 0, ptr %10, align 4
br label %89
89: ; preds = %103, %66
%90 = load i32, ptr %10, align 4
%91 = load i32, ptr %11, align 4
%92 = icmp sle i32 %90, %91
br i1 %92, label %93, label %106
93: ; preds = %89
%94 = load i32, ptr %10, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [4 x i8], ptr %16, i64 0, i64 %95
%97 = load i8, ptr %96, align 1
%98 = load i32, ptr %10, align 4
%99 = mul nsw i32 2, %98
%100 = add nsw i32 %99, 15
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %101
store i8 %97, ptr %102, align 1
br label %103
103: ; preds = %93
%104 = load i32, ptr %10, align 4
%105 = add nsw i32 %104, 1
store i32 %105, ptr %10, align 4
br label %89, !llvm.loop !9
106: ; preds = %89
store i32 0, ptr %10, align 4
br label %107
107: ; preds = %125, %106
%108 = load i32, ptr %10, align 4
%109 = getelementptr inbounds [99 x i8], ptr %18, i64 0, i64 0
%110 = call i32 @strlen(ptr noundef %109)
%111 = icmp slt i32 %108, %110
br i1 %111, label %112, label %128
112: ; preds = %107
%113 = load i32, ptr %10, align 4
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds [99 x i8], ptr %18, i64 0, i64 %114
%116 = load i8, ptr %115, align 1
%117 = load i32, ptr %10, align 4
%118 = mul nsw i32 2, %117
%119 = load i32, ptr %11, align 4
%120 = mul nsw i32 2, %119
%121 = add nsw i32 %118, %120
%122 = add nsw i32 %121, 15
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %123
store i8 %116, ptr %124, align 1
br label %125
125: ; preds = %112
%126 = load i32, ptr %10, align 4
%127 = add nsw i32 %126, 1
store i32 %127, ptr %10, align 4
br label %107, !llvm.loop !10
128: ; preds = %107
store i64 0, ptr %12, align 8
store i32 0, ptr %10, align 4
br label %129
129: ; preds = %140, %128
%130 = load i32, ptr %10, align 4
%131 = icmp slt i32 %130, 252
br i1 %131, label %132, label %143
132: ; preds = %129
%133 = load i32, ptr %10, align 4
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %134
%136 = load i8, ptr %135, align 1
%137 = sext i8 %136 to i64
%138 = load i64, ptr %12, align 8
%139 = add i64 %138, %137
store i64 %139, ptr %12, align 8
br label %140
140: ; preds = %132
%141 = load i32, ptr %10, align 4
%142 = add nsw i32 %141, 1
store i32 %142, ptr %10, align 4
br label %129, !llvm.loop !11
143: ; preds = %129
store ptr %12, ptr %15, align 8
%144 = load ptr, ptr %15, align 8
%145 = getelementptr inbounds i8, ptr %144, i64 0
%146 = load i8, ptr %145, align 1
%147 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 252
store i8 %146, ptr %147, align 4
%148 = load ptr, ptr %15, align 8
%149 = getelementptr inbounds i8, ptr %148, i64 1
%150 = load i8, ptr %149, align 1
%151 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 253
store i8 %150, ptr %151, align 1
%152 = load ptr, ptr %15, align 8
%153 = getelementptr inbounds i8, ptr %152, i64 2
%154 = load i8, ptr %153, align 1
%155 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 254
store i8 %154, ptr %155, align 2
%156 = load ptr, ptr %15, align 8
%157 = getelementptr inbounds i8, ptr %156, i64 3
%158 = load i8, ptr %157, align 1
%159 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 255
store i8 %158, ptr %159, align 1
store i32 0, ptr %10, align 4
br label %160
160: ; preds = %179, %143
%161 = load i32, ptr %10, align 4
%162 = icmp slt i32 %161, 255
br i1 %162, label %163, label %182
163: ; preds = %160
%164 = load i32, ptr %10, align 4
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %165
%167 = load i8, ptr %166, align 1
%168 = sext i8 %167 to i32
%169 = load i32, ptr %10, align 4
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds [256 x i8], ptr %17, i64 0, i64 %170
%172 = load i8, ptr %171, align 1
%173 = sext i8 %172 to i32
%174 = xor i32 %168, %173
%175 = trunc i32 %174 to i8
%176 = load i32, ptr %10, align 4
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds [256 x i8], ptr %14, i64 0, i64 %177
store i8 %175, ptr %178, align 1
br label %179
179: ; preds = %163
%180 = load i32, ptr %10, align 4
%181 = add nsw i32 %180, 1
store i32 %181, ptr %10, align 4
br label %160, !llvm.loop !12
182: ; preds = %160
%183 = load ptr, ptr @stdout, align 8
store ptr %183, ptr %13, align 8
%184 = load ptr, ptr %13, align 8
%185 = icmp ne ptr %184, null
br i1 %185, label %186, label %190
186: ; preds = %182
%187 = getelementptr inbounds [256 x i8], ptr %14, i64 0, i64 0
%188 = load ptr, ptr %13, align 8
%189 = call i32 @fwrite(ptr noundef %187, i32 noundef 1, i32 noundef 255, ptr noundef %188)
br label %193
190: ; preds = %182
%191 = load i32, ptr @stderr, align 4
%192 = call i32 @fprintf(i32 noundef %191, ptr noundef @.str.3, ptr noundef @.str.4)
store i32 1, ptr %3, align 4
br label %194
193: ; preds = %186
store i32 0, ptr %3, align 4
br label %194
194: ; preds = %193, %190, %21
%195 = load i32, ptr %3, align 4
ret i32 %195
}
; 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 @strncpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @rand(...) #2
declare i32 @time(ptr noundef) #2
declare ptr @localtime(ptr noundef) #2
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
declare i32 @fprintf(i32 noundef, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp48fm5hq3.c"
target datalayout = "e-m:e-p270: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.tm = type { i8, i8, i8 }
@__const.main.Version = private unnamed_addr constant [4 x i8] c"2.0\00", align 1
@__const.main.xAlphaMask = private unnamed_addr constant <{ [128 x i8], [128 x i8] }> <{ [128 x i8] c"\87\F6\A1|\D6:\87\E6\0E\84\F6\CA\81\BFv\12\E8=\F7j)\C3\84\B5k\C3J\8Fv\D9\8Av\A2;\98\D7\E6\F5\9C\87lI\8C}e\D2\AF\17\8A\D6I\F8z\1B#\9C|\C8\A6\19\EE(\7FhH}\D6Z\B3\8C\F7R\FE2\D9\84\A7\A5\C9\87*\8F\F7mH}\E6%\EDT\9B\C3j\A5\98d\AC\10\D9\8F\E70\A9T\E4\\\D45\A45\FF&O\87\EAe;\DEHv\1E\B8r\C5\D8^\8A$", [128 x i8] zeroinitializer }>, align 16
@__const.main.filler = private unnamed_addr constant [99 x i8] c"Well done, you have cracked the keyfile code! Please don't pass it on, I need to eat too - Sander\00", align 16
@.str = private unnamed_addr constant [47 x i8] c"Generate Keyfile for Becasso 1.5 registration\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"Usage: gen_key <name>\0A\00", align 1
@.str.2 = private unnamed_addr constant [49 x i8] c"(Quote <name>; it will probably contain spaces)\0A\00", align 1
@stdout = dso_local global ptr null, align 8
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [30 x i8] c"Couldn't open %s for writing\0A\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"Keyfile\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [256 x i8], align 16
%7 = alloca [128 x i8], align 16
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i64, align 8
%13 = alloca ptr, align 8
%14 = alloca [256 x i8], align 16
%15 = alloca ptr, align 8
%16 = alloca [4 x i8], align 1
%17 = alloca [256 x i8], align 16
%18 = alloca [99 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %16, ptr align 1 @__const.main.Version, i64 4, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 @__const.main.xAlphaMask, i64 256, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %18, ptr align 16 @__const.main.filler, i64 99, i1 false)
%19 = load i32, ptr %4, align 4
%20 = icmp ne i32 %19, 2
br i1 %20, label %21, label %25
21: ; preds = %2
%22 = call i32 @printf(ptr noundef @.str)
%23 = call i32 @printf(ptr noundef @.str.1)
%24 = call i32 @printf(ptr noundef @.str.2)
store i32 2, ptr %3, align 4
br label %203
25: ; preds = %2
%26 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 1
%29 = load ptr, ptr %28, align 8
%30 = call i32 @strncpy(ptr noundef %26, ptr noundef %29, i32 noundef 127)
store i32 0, ptr %10, align 4
%31 = load i32, ptr %10, align 4
%32 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%33 = call i32 @strlen(ptr noundef %32)
%34 = icmp sle i32 %31, %33
br i1 %34, label %.lr.ph, label %50
.lr.ph: ; preds = %25
br label %35
35: ; preds = %.lr.ph, %44
%36 = load i32, ptr %10, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 %37
%39 = load i8, ptr %38, align 1
%40 = load i32, ptr %10, align 4
%41 = mul nsw i32 2, %40
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %42
store i8 %39, ptr %43, align 1
br label %44
44: ; preds = %35
%45 = load i32, ptr %10, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %10, align 4
%47 = load i32, ptr %10, align 4
%48 = call i32 @strlen(ptr noundef %32)
%49 = icmp sle i32 %47, %48
br i1 %49, label %35, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %44
br label %50
50: ; preds = %._crit_edge, %25
%51 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%52 = call i32 @strlen(ptr noundef %51)
%53 = add nsw i32 %52, 1
store i32 %53, ptr %10, align 4
%54 = load i32, ptr %10, align 4
%55 = icmp slt i32 %54, 128
br i1 %55, label %.lr.ph2, label %69
.lr.ph2: ; preds = %50
br label %56
56: ; preds = %.lr.ph2, %64
%57 = call i32 (...) @rand()
%58 = and i32 %57, 255
%59 = trunc i32 %58 to i8
%60 = load i32, ptr %10, align 4
%61 = mul nsw i32 2, %60
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %62
store i8 %59, ptr %63, align 1
br label %64
64: ; preds = %56
%65 = load i32, ptr %10, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %10, align 4
%67 = load i32, ptr %10, align 4
%68 = icmp slt i32 %67, 128
br i1 %68, label %56, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %64
br label %69
69: ; preds = %._crit_edge3, %50
%70 = call i32 @time(ptr noundef null)
store i32 %70, ptr %9, align 4
%71 = call ptr @localtime(ptr noundef %9)
store ptr %71, ptr %8, align 8
%72 = getelementptr inbounds [4 x i8], ptr %16, i64 0, i64 0
%73 = call i32 @strlen(ptr noundef %72)
store i32 %73, ptr %11, align 4
%74 = load i32, ptr %11, align 4
%75 = trunc i32 %74 to i8
%76 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 1
store i8 %75, ptr %76, align 1
%77 = load ptr, ptr %8, align 8
%78 = getelementptr inbounds %struct.tm, ptr %77, i32 0, i32 0
%79 = load i8, ptr %78, align 1
%80 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 3
store i8 %79, ptr %80, align 1
%81 = load ptr, ptr %8, align 8
%82 = getelementptr inbounds %struct.tm, ptr %81, i32 0, i32 1
%83 = load i8, ptr %82, align 1
%84 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 5
store i8 %83, ptr %84, align 1
%85 = load ptr, ptr %8, align 8
%86 = getelementptr inbounds %struct.tm, ptr %85, i32 0, i32 2
%87 = load i8, ptr %86, align 1
%88 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 7
store i8 %87, ptr %88, align 1
%89 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 9
store i8 31, ptr %89, align 1
%90 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 11
store i8 42, ptr %90, align 1
%91 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 13
store i8 2, ptr %91, align 1
store i32 0, ptr %10, align 4
%92 = load i32, ptr %10, align 4
%93 = load i32, ptr %11, align 4
%94 = icmp sle i32 %92, %93
br i1 %94, label %.lr.ph5, label %111
.lr.ph5: ; preds = %69
br label %95
95: ; preds = %.lr.ph5, %105
%96 = load i32, ptr %10, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [4 x i8], ptr %16, i64 0, i64 %97
%99 = load i8, ptr %98, align 1
%100 = load i32, ptr %10, align 4
%101 = mul nsw i32 2, %100
%102 = add nsw i32 %101, 15
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %103
store i8 %99, ptr %104, align 1
br label %105
105: ; preds = %95
%106 = load i32, ptr %10, align 4
%107 = add nsw i32 %106, 1
store i32 %107, ptr %10, align 4
%108 = load i32, ptr %10, align 4
%109 = load i32, ptr %11, align 4
%110 = icmp sle i32 %108, %109
br i1 %110, label %95, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %105
br label %111
111: ; preds = %._crit_edge6, %69
store i32 0, ptr %10, align 4
%112 = load i32, ptr %10, align 4
%113 = getelementptr inbounds [99 x i8], ptr %18, i64 0, i64 0
%114 = call i32 @strlen(ptr noundef %113)
%115 = icmp slt i32 %112, %114
br i1 %115, label %.lr.ph8, label %135
.lr.ph8: ; preds = %111
br label %116
116: ; preds = %.lr.ph8, %129
%117 = load i32, ptr %10, align 4
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds [99 x i8], ptr %18, i64 0, i64 %118
%120 = load i8, ptr %119, align 1
%121 = load i32, ptr %10, align 4
%122 = mul nsw i32 2, %121
%123 = load i32, ptr %11, align 4
%124 = mul nsw i32 2, %123
%125 = add nsw i32 %122, %124
%126 = add nsw i32 %125, 15
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %127
store i8 %120, ptr %128, align 1
br label %129
129: ; preds = %116
%130 = load i32, ptr %10, align 4
%131 = add nsw i32 %130, 1
store i32 %131, ptr %10, align 4
%132 = load i32, ptr %10, align 4
%133 = call i32 @strlen(ptr noundef %113)
%134 = icmp slt i32 %132, %133
br i1 %134, label %116, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %129
br label %135
135: ; preds = %._crit_edge9, %111
store i64 0, ptr %12, align 8
store i32 0, ptr %10, align 4
%136 = load i32, ptr %10, align 4
%137 = icmp slt i32 %136, 252
br i1 %137, label %.lr.ph11, label %151
.lr.ph11: ; preds = %135
br label %138
138: ; preds = %.lr.ph11, %146
%139 = load i32, ptr %10, align 4
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %140
%142 = load i8, ptr %141, align 1
%143 = sext i8 %142 to i64
%144 = load i64, ptr %12, align 8
%145 = add i64 %144, %143
store i64 %145, ptr %12, align 8
br label %146
146: ; preds = %138
%147 = load i32, ptr %10, align 4
%148 = add nsw i32 %147, 1
store i32 %148, ptr %10, align 4
%149 = load i32, ptr %10, align 4
%150 = icmp slt i32 %149, 252
br i1 %150, label %138, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %146
br label %151
151: ; preds = %._crit_edge12, %135
store ptr %12, ptr %15, align 8
%152 = load ptr, ptr %15, align 8
%153 = getelementptr inbounds i8, ptr %152, i64 0
%154 = load i8, ptr %153, align 1
%155 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 252
store i8 %154, ptr %155, align 4
%156 = load ptr, ptr %15, align 8
%157 = getelementptr inbounds i8, ptr %156, i64 1
%158 = load i8, ptr %157, align 1
%159 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 253
store i8 %158, ptr %159, align 1
%160 = load ptr, ptr %15, align 8
%161 = getelementptr inbounds i8, ptr %160, i64 2
%162 = load i8, ptr %161, align 1
%163 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 254
store i8 %162, ptr %163, align 2
%164 = load ptr, ptr %15, align 8
%165 = getelementptr inbounds i8, ptr %164, i64 3
%166 = load i8, ptr %165, align 1
%167 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 255
store i8 %166, ptr %167, align 1
store i32 0, ptr %10, align 4
%168 = load i32, ptr %10, align 4
%169 = icmp slt i32 %168, 255
br i1 %169, label %.lr.ph14, label %191
.lr.ph14: ; preds = %151
br label %170
170: ; preds = %.lr.ph14, %186
%171 = load i32, ptr %10, align 4
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %172
%174 = load i8, ptr %173, align 1
%175 = sext i8 %174 to i32
%176 = load i32, ptr %10, align 4
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds [256 x i8], ptr %17, i64 0, i64 %177
%179 = load i8, ptr %178, align 1
%180 = sext i8 %179 to i32
%181 = xor i32 %175, %180
%182 = trunc i32 %181 to i8
%183 = load i32, ptr %10, align 4
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds [256 x i8], ptr %14, i64 0, i64 %184
store i8 %182, ptr %185, align 1
br label %186
186: ; preds = %170
%187 = load i32, ptr %10, align 4
%188 = add nsw i32 %187, 1
store i32 %188, ptr %10, align 4
%189 = load i32, ptr %10, align 4
%190 = icmp slt i32 %189, 255
br i1 %190, label %170, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %186
br label %191
191: ; preds = %._crit_edge15, %151
%192 = load ptr, ptr @stdout, align 8
store ptr %192, ptr %13, align 8
%193 = load ptr, ptr %13, align 8
%194 = icmp ne ptr %193, null
br i1 %194, label %195, label %199
195: ; preds = %191
%196 = getelementptr inbounds [256 x i8], ptr %14, i64 0, i64 0
%197 = load ptr, ptr %13, align 8
%198 = call i32 @fwrite(ptr noundef %196, i32 noundef 1, i32 noundef 255, ptr noundef %197)
br label %202
199: ; preds = %191
%200 = load i32, ptr @stderr, align 4
%201 = call i32 @fprintf(i32 noundef %200, ptr noundef @.str.3, ptr noundef @.str.4)
store i32 1, ptr %3, align 4
br label %203
202: ; preds = %195
store i32 0, ptr %3, align 4
br label %203
203: ; preds = %202, %199, %21
%204 = load i32, ptr %3, align 4
ret i32 %204
}
; 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 @strncpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @rand(...) #2
declare i32 @time(ptr noundef) #2
declare ptr @localtime(ptr noundef) #2
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
declare i32 @fprintf(i32 noundef, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmp8rj6y3wp.c'
source_filename = "/tmp/tmp8rj6y3wp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getshdelim(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store ptr %5, ptr %12, align 8
%15 = load ptr, ptr %7, align 8
%16 = load ptr, ptr %8, align 8
%17 = load ptr, ptr %12, align 8
%18 = load i32, ptr %9, align 4
%19 = load i32, ptr %10, align 4
%20 = load i32, ptr %11, align 4
%21 = call i32 @getshstr(ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, i32 noundef %18, i32 noundef %19, i32 noundef %20, i32 noundef 0)
ret i32 %21
}
declare i32 @getshstr(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8rj6y3wp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getshdelim(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store ptr %5, ptr %12, align 8
%15 = load ptr, ptr %7, align 8
%16 = load ptr, ptr %8, align 8
%17 = load ptr, ptr %12, align 8
%18 = load i32, ptr %9, align 4
%19 = load i32, ptr %10, align 4
%20 = load i32, ptr %11, align 4
%21 = call i32 @getshstr(ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, i32 noundef %18, i32 noundef %19, i32 noundef %20, i32 noundef 0)
ret i32 %21
}
declare i32 @getshstr(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_8xup8ml.c'
source_filename = "/tmp/tmp_8xup8ml.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"The addition of 2 and 3 is : %i \0A\00", align 1
@.str.1 = private unnamed_addr constant [37 x i8] c"The subtraction of 2 and 3 is : %i \0A\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"The division of 2 and 3 is : %f \0A\00", align 1
@.str.3 = private unnamed_addr constant [33 x i8] c"The multiply of 2 and 3 is: %i \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca double, align 8
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 @sum(i32 noundef 2, i32 noundef 3)
store i32 %6, ptr %2, align 4
%7 = call i32 @sub(i32 noundef 2, i32 noundef 3)
store i32 %7, ptr %3, align 4
%8 = call double @div(i32 noundef 2, i32 noundef 3)
store double %8, ptr %4, align 8
%9 = call i32 @multi(i32 noundef 2, i32 noundef 3)
store i32 %9, ptr %5, align 4
%10 = load i32, ptr %2, align 4
%11 = call i32 @printf(ptr noundef @.str, i32 noundef %10)
%12 = load i32, ptr %3, align 4
%13 = call i32 @printf(ptr noundef @.str.1, i32 noundef %12)
%14 = load double, ptr %4, align 8
%15 = fptosi double %14 to i32
%16 = call i32 @printf(ptr noundef @.str.2, i32 noundef %15)
%17 = load i32, ptr %5, align 4
%18 = call i32 @printf(ptr noundef @.str.3, i32 noundef %17)
ret i32 0
}
declare i32 @sum(i32 noundef, i32 noundef) #1
declare i32 @sub(i32 noundef, i32 noundef) #1
declare double @div(i32 noundef, i32 noundef) #1
declare i32 @multi(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_8xup8ml.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"The addition of 2 and 3 is : %i \0A\00", align 1
@.str.1 = private unnamed_addr constant [37 x i8] c"The subtraction of 2 and 3 is : %i \0A\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"The division of 2 and 3 is : %f \0A\00", align 1
@.str.3 = private unnamed_addr constant [33 x i8] c"The multiply of 2 and 3 is: %i \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca double, align 8
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 @sum(i32 noundef 2, i32 noundef 3)
store i32 %6, ptr %2, align 4
%7 = call i32 @sub(i32 noundef 2, i32 noundef 3)
store i32 %7, ptr %3, align 4
%8 = call double @div(i32 noundef 2, i32 noundef 3)
store double %8, ptr %4, align 8
%9 = call i32 @multi(i32 noundef 2, i32 noundef 3)
store i32 %9, ptr %5, align 4
%10 = load i32, ptr %2, align 4
%11 = call i32 @printf(ptr noundef @.str, i32 noundef %10)
%12 = load i32, ptr %3, align 4
%13 = call i32 @printf(ptr noundef @.str.1, i32 noundef %12)
%14 = load double, ptr %4, align 8
%15 = fptosi double %14 to i32
%16 = call i32 @printf(ptr noundef @.str.2, i32 noundef %15)
%17 = load i32, ptr %5, align 4
%18 = call i32 @printf(ptr noundef @.str.3, i32 noundef %17)
ret i32 0
}
declare i32 @sum(i32 noundef, i32 noundef) #1
declare i32 @sub(i32 noundef, i32 noundef) #1
declare double @div(i32 noundef, i32 noundef) #1
declare i32 @multi(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9oknk2aa.c'
source_filename = "/tmp/tmp9oknk2aa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @simple_rint(float noundef %0) #0 {
%2 = alloca float, align 4
%3 = alloca float, align 4
store float %0, ptr %2, align 4
%4 = load float, ptr %2, align 4
%5 = call i64 @simple_fabs(float noundef %4)
%6 = sitofp i64 %5 to double
%7 = fadd double %6, 5.000000e-01
%8 = fptosi double %7 to i64
%9 = call float @simple_floor(i64 noundef %8)
store float %9, ptr %3, align 4
%10 = load float, ptr %2, align 4
%11 = fpext float %10 to double
%12 = fcmp olt double %11, 0.000000e+00
br i1 %12, label %13, label %16
13: ; preds = %1
%14 = load float, ptr %3, align 4
%15 = fneg float %14
br label %18
16: ; preds = %1
%17 = load float, ptr %3, align 4
br label %18
18: ; preds = %16, %13
%19 = phi float [ %15, %13 ], [ %17, %16 ]
ret float %19
}
declare float @simple_floor(i64 noundef) #1
declare i64 @simple_fabs(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9oknk2aa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @simple_rint(float noundef %0) #0 {
%2 = alloca float, align 4
%3 = alloca float, align 4
store float %0, ptr %2, align 4
%4 = load float, ptr %2, align 4
%5 = call i64 @simple_fabs(float noundef %4)
%6 = sitofp i64 %5 to double
%7 = fadd double %6, 5.000000e-01
%8 = fptosi double %7 to i64
%9 = call float @simple_floor(i64 noundef %8)
store float %9, ptr %3, align 4
%10 = load float, ptr %2, align 4
%11 = fpext float %10 to double
%12 = fcmp olt double %11, 0.000000e+00
br i1 %12, label %13, label %16
13: ; preds = %1
%14 = load float, ptr %3, align 4
%15 = fneg float %14
br label %18
16: ; preds = %1
%17 = load float, ptr %3, align 4
br label %18
18: ; preds = %16, %13
%19 = phi float [ %15, %13 ], [ %17, %16 ]
ret float %19
}
declare float @simple_floor(i64 noundef) #1
declare i64 @simple_fabs(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprdhbkjxp.c'
source_filename = "/tmp/tmprdhbkjxp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timespec = type { i64, i64 }
@CLOCK_MONOTONIC_RAW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @packet_is_ok(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca %struct.timespec, align 8
%7 = alloca %struct.timespec, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%8 = load i64, ptr %5, align 8
%9 = icmp ult i64 %8, 16
br i1 %9, label %10, label %11
10: ; preds = %2
store i32 0, ptr %3, align 4
br label %35
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = call i32 @memcpy(ptr noundef %7, ptr noundef %12, i32 noundef 16)
%14 = load i32, ptr @CLOCK_MONOTONIC_RAW, align 4
%15 = call i32 @clock_gettime(i32 noundef %14, ptr noundef %6)
%16 = getelementptr inbounds %struct.timespec, ptr %7, i32 0, i32 0
%17 = load i64, ptr %16, align 8
%18 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 0
%19 = load i64, ptr %18, align 8
%20 = icmp slt i64 %17, %19
br i1 %20, label %33, label %21
21: ; preds = %11
%22 = getelementptr inbounds %struct.timespec, ptr %7, i32 0, i32 0
%23 = load i64, ptr %22, align 8
%24 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 0
%25 = load i64, ptr %24, align 8
%26 = icmp eq i64 %23, %25
br i1 %26, label %27, label %34
27: ; preds = %21
%28 = getelementptr inbounds %struct.timespec, ptr %7, i32 0, i32 1
%29 = load i64, ptr %28, align 8
%30 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 1
%31 = load i64, ptr %30, align 8
%32 = icmp slt i64 %29, %31
br i1 %32, label %33, label %34
33: ; preds = %27, %11
store i32 0, ptr %3, align 4
br label %35
34: ; preds = %27, %21
store i32 1, ptr %3, align 4
br label %35
35: ; preds = %34, %33, %10
%36 = load i32, ptr %3, align 4
ret i32 %36
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @clock_gettime(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/tmprdhbkjxp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timespec = type { i64, i64 }
@CLOCK_MONOTONIC_RAW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @packet_is_ok(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca %struct.timespec, align 8
%7 = alloca %struct.timespec, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%8 = load i64, ptr %5, align 8
%9 = icmp ult i64 %8, 16
br i1 %9, label %10, label %11
10: ; preds = %2
store i32 0, ptr %3, align 4
br label %35
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = call i32 @memcpy(ptr noundef %7, ptr noundef %12, i32 noundef 16)
%14 = load i32, ptr @CLOCK_MONOTONIC_RAW, align 4
%15 = call i32 @clock_gettime(i32 noundef %14, ptr noundef %6)
%16 = getelementptr inbounds %struct.timespec, ptr %7, i32 0, i32 0
%17 = load i64, ptr %16, align 8
%18 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 0
%19 = load i64, ptr %18, align 8
%20 = icmp slt i64 %17, %19
br i1 %20, label %33, label %21
21: ; preds = %11
%22 = getelementptr inbounds %struct.timespec, ptr %7, i32 0, i32 0
%23 = load i64, ptr %22, align 8
%24 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 0
%25 = load i64, ptr %24, align 8
%26 = icmp eq i64 %23, %25
br i1 %26, label %27, label %34
27: ; preds = %21
%28 = getelementptr inbounds %struct.timespec, ptr %7, i32 0, i32 1
%29 = load i64, ptr %28, align 8
%30 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 1
%31 = load i64, ptr %30, align 8
%32 = icmp slt i64 %29, %31
br i1 %32, label %33, label %34
33: ; preds = %27, %11
store i32 0, ptr %3, align 4
br label %35
34: ; preds = %27, %21
store i32 1, ptr %3, align 4
br label %35
35: ; preds = %34, %33, %10
%36 = load i32, ptr %3, align 4
ret i32 %36
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @clock_gettime(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/tmp221_nwt1.c'
source_filename = "/tmp/tmp221_nwt1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"testFrequency\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i64 (...) @testFrequency()
%7 = icmp sgt i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @Fail(ptr noundef @.str)
br label %10
10: ; preds = %8, %2
%11 = call i32 @makeTone(i32 noundef 440)
%12 = call i32 (...) @testAmplitudePct()
ret i32 0
}
declare i64 @testFrequency(...) #1
declare i32 @Fail(ptr noundef) #1
declare i32 @makeTone(i32 noundef) #1
declare i32 @testAmplitudePct(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp221_nwt1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"testFrequency\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i64 (...) @testFrequency()
%7 = icmp sgt i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @Fail(ptr noundef @.str)
br label %10
10: ; preds = %8, %2
%11 = call i32 @makeTone(i32 noundef 440)
%12 = call i32 (...) @testAmplitudePct()
ret i32 0
}
declare i64 @testFrequency(...) #1
declare i32 @Fail(ptr noundef) #1
declare i32 @makeTone(i32 noundef) #1
declare i32 @testAmplitudePct(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpf8p1vu18.c'
source_filename = "/tmp/tmpf8p1vu18.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_file_size(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca %struct.stat, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @fstat(i32 noundef %4, ptr noundef %3)
%6 = getelementptr inbounds %struct.stat, ptr %3, i32 0, i32 0
%7 = load i32, ptr %6, align 4
ret i32 %7
}
declare i32 @fstat(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/tmpf8p1vu18.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_file_size(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca %struct.stat, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @fstat(i32 noundef %4, ptr noundef %3)
%6 = getelementptr inbounds %struct.stat, ptr %3, i32 0, i32 0
%7 = load i32, ptr %6, align 4
ret i32 %7
}
declare i32 @fstat(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/tmpznobld7t.c'
source_filename = "/tmp/tmpznobld7t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"/dev/console\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @setup_io() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %2
2: ; preds = %8, %0
%3 = load i32, ptr %1, align 4
%4 = icmp slt i32 %3, 256
br i1 %4, label %5, label %11
5: ; preds = %2
%6 = load i32, ptr %1, align 4
%7 = call i32 @close(i32 noundef %6)
br label %8
8: ; preds = %5
%9 = load i32, ptr %1, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %1, align 4
br label %2, !llvm.loop !6
11: ; preds = %2
%12 = call i32 @open(ptr noundef @.str, i32 noundef 0)
%13 = call i32 @open(ptr noundef @.str, i32 noundef 0)
%14 = call i32 @open(ptr noundef @.str, i32 noundef 0)
ret void
}
declare i32 @close(i32 noundef) #1
declare i32 @open(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/tmpznobld7t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"/dev/console\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @setup_io() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = load i32, ptr %1, align 4
%3 = icmp slt i32 %2, 256
br i1 %3, label %.lr.ph, label %12
.lr.ph: ; preds = %0
br label %4
4: ; preds = %.lr.ph, %7
%5 = load i32, ptr %1, align 4
%6 = call i32 @close(i32 noundef %5)
br label %7
7: ; preds = %4
%8 = load i32, ptr %1, align 4
%9 = add nsw i32 %8, 1
store i32 %9, ptr %1, align 4
%10 = load i32, ptr %1, align 4
%11 = icmp slt i32 %10, 256
br i1 %11, label %4, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %7
br label %12
12: ; preds = %._crit_edge, %0
%13 = call i32 @open(ptr noundef @.str, i32 noundef 0)
%14 = call i32 @open(ptr noundef @.str, i32 noundef 0)
%15 = call i32 @open(ptr noundef @.str, i32 noundef 0)
ret void
}
declare i32 @close(i32 noundef) #1
declare i32 @open(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/tmpcmyzna14.c'
source_filename = "/tmp/tmpcmyzna14.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @idris_utf8_fromChar(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%8 = load i32, ptr %3, align 4
%9 = and i32 %8, 128
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %20
11: ; preds = %1
%12 = call ptr @malloc(i32 noundef 2)
store ptr %12, ptr %4, align 8
%13 = load i32, ptr %3, align 4
%14 = trunc i32 %13 to i8
%15 = load ptr, ptr %4, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 0
store i8 %14, ptr %16, align 1
%17 = load ptr, ptr %4, align 8
%18 = getelementptr inbounds i8, ptr %17, i64 1
store i8 0, ptr %18, align 1
%19 = load ptr, ptr %4, align 8
store ptr %19, ptr %2, align 8
br label %85
20: ; preds = %1
%21 = load i32, ptr %3, align 4
%22 = icmp sge i32 %21, 128
br i1 %22, label %23, label %27
23: ; preds = %20
%24 = load i32, ptr %3, align 4
%25 = icmp sle i32 %24, 2047
br i1 %25, label %26, label %27
26: ; preds = %23
store i32 2, ptr %5, align 4
store i32 192, ptr %6, align 4
br label %43
27: ; preds = %23, %20
%28 = load i32, ptr %3, align 4
%29 = icmp sge i32 %28, 2048
br i1 %29, label %30, label %34
30: ; preds = %27
%31 = load i32, ptr %3, align 4
%32 = icmp sle i32 %31, 65535
br i1 %32, label %33, label %34
33: ; preds = %30
store i32 3, ptr %5, align 4
store i32 224, ptr %6, align 4
br label %42
34: ; preds = %30, %27
%35 = load i32, ptr %3, align 4
%36 = icmp sge i32 %35, 65536
br i1 %36, label %37, label %41
37: ; preds = %34
%38 = load i32, ptr %3, align 4
%39 = icmp sle i32 %38, 1114111
br i1 %39, label %40, label %41
40: ; preds = %37
store i32 4, ptr %5, align 4
store i32 240, ptr %6, align 4
br label %41
41: ; preds = %40, %37, %34
br label %42
42: ; preds = %41, %33
br label %43
43: ; preds = %42, %26
%44 = load i32, ptr %5, align 4
%45 = add nsw i32 %44, 1
%46 = call ptr @malloc(i32 noundef %45)
store ptr %46, ptr %4, align 8
%47 = load ptr, ptr %4, align 8
%48 = load i32, ptr %5, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, ptr %47, i64 %49
store i8 0, ptr %50, align 1
br label %51
51: ; preds = %80, %43
%52 = load i32, ptr %5, align 4
%53 = icmp sgt i32 %52, 0
br i1 %53, label %54, label %83
54: ; preds = %51
%55 = load i32, ptr %3, align 4
%56 = and i32 %55, 63
store i32 %56, ptr %7, align 4
%57 = load i32, ptr %5, align 4
%58 = add nsw i32 %57, -1
store i32 %58, ptr %5, align 4
%59 = load i32, ptr %5, align 4
%60 = icmp sgt i32 %59, 0
br i1 %60, label %61, label %71
61: ; preds = %54
%62 = load i32, ptr %7, align 4
%63 = trunc i32 %62 to i8
%64 = sext i8 %63 to i32
%65 = add nsw i32 %64, 128
%66 = trunc i32 %65 to i8
%67 = load ptr, ptr %4, align 8
%68 = load i32, ptr %5, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8, ptr %67, i64 %69
store i8 %66, ptr %70, align 1
br label %80
71: ; preds = %54
%72 = load i32, ptr %7, align 4
%73 = trunc i32 %72 to i8
%74 = sext i8 %73 to i32
%75 = load i32, ptr %6, align 4
%76 = add nsw i32 %74, %75
%77 = trunc i32 %76 to i8
%78 = load ptr, ptr %4, align 8
%79 = getelementptr inbounds i8, ptr %78, i64 0
store i8 %77, ptr %79, align 1
br label %80
80: ; preds = %71, %61
%81 = load i32, ptr %3, align 4
%82 = ashr i32 %81, 6
store i32 %82, ptr %3, align 4
br label %51, !llvm.loop !6
83: ; preds = %51
%84 = load ptr, ptr %4, align 8
store ptr %84, ptr %2, align 8
br label %85
85: ; preds = %83, %11
%86 = load ptr, ptr %2, align 8
ret ptr %86
}
declare ptr @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/tmpcmyzna14.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @idris_utf8_fromChar(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%8 = load i32, ptr %3, align 4
%9 = and i32 %8, 128
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %20
11: ; preds = %1
%12 = call ptr @malloc(i32 noundef 2)
store ptr %12, ptr %4, align 8
%13 = load i32, ptr %3, align 4
%14 = trunc i32 %13 to i8
%15 = load ptr, ptr %4, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 0
store i8 %14, ptr %16, align 1
%17 = load ptr, ptr %4, align 8
%18 = getelementptr inbounds i8, ptr %17, i64 1
store i8 0, ptr %18, align 1
%19 = load ptr, ptr %4, align 8
store ptr %19, ptr %2, align 8
br label %86
20: ; preds = %1
%21 = load i32, ptr %3, align 4
%22 = icmp sge i32 %21, 128
br i1 %22, label %23, label %27
23: ; preds = %20
%24 = load i32, ptr %3, align 4
%25 = icmp sle i32 %24, 2047
br i1 %25, label %26, label %27
26: ; preds = %23
store i32 2, ptr %5, align 4
store i32 192, ptr %6, align 4
br label %43
27: ; preds = %23, %20
%28 = load i32, ptr %3, align 4
%29 = icmp sge i32 %28, 2048
br i1 %29, label %30, label %34
30: ; preds = %27
%31 = load i32, ptr %3, align 4
%32 = icmp sle i32 %31, 65535
br i1 %32, label %33, label %34
33: ; preds = %30
store i32 3, ptr %5, align 4
store i32 224, ptr %6, align 4
br label %42
34: ; preds = %30, %27
%35 = load i32, ptr %3, align 4
%36 = icmp sge i32 %35, 65536
br i1 %36, label %37, label %41
37: ; preds = %34
%38 = load i32, ptr %3, align 4
%39 = icmp sle i32 %38, 1114111
br i1 %39, label %40, label %41
40: ; preds = %37
store i32 4, ptr %5, align 4
store i32 240, ptr %6, align 4
br label %41
41: ; preds = %40, %37, %34
br label %42
42: ; preds = %41, %33
br label %43
43: ; preds = %42, %26
%44 = load i32, ptr %5, align 4
%45 = add nsw i32 %44, 1
%46 = call ptr @malloc(i32 noundef %45)
store ptr %46, ptr %4, align 8
%47 = load ptr, ptr %4, align 8
%48 = load i32, ptr %5, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, ptr %47, i64 %49
store i8 0, ptr %50, align 1
%51 = load i32, ptr %5, align 4
%52 = icmp sgt i32 %51, 0
br i1 %52, label %.lr.ph, label %84
.lr.ph: ; preds = %43
br label %53
53: ; preds = %.lr.ph, %79
%54 = load i32, ptr %3, align 4
%55 = and i32 %54, 63
store i32 %55, ptr %7, align 4
%56 = load i32, ptr %5, align 4
%57 = add nsw i32 %56, -1
store i32 %57, ptr %5, align 4
%58 = load i32, ptr %5, align 4
%59 = icmp sgt i32 %58, 0
br i1 %59, label %60, label %70
60: ; preds = %53
%61 = load i32, ptr %7, align 4
%62 = trunc i32 %61 to i8
%63 = sext i8 %62 to i32
%64 = add nsw i32 %63, 128
%65 = trunc i32 %64 to i8
%66 = load ptr, ptr %4, align 8
%67 = load i32, ptr %5, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i8, ptr %66, i64 %68
store i8 %65, ptr %69, align 1
br label %79
70: ; preds = %53
%71 = load i32, ptr %7, align 4
%72 = trunc i32 %71 to i8
%73 = sext i8 %72 to i32
%74 = load i32, ptr %6, align 4
%75 = add nsw i32 %73, %74
%76 = trunc i32 %75 to i8
%77 = load ptr, ptr %4, align 8
%78 = getelementptr inbounds i8, ptr %77, i64 0
store i8 %76, ptr %78, align 1
br label %79
79: ; preds = %70, %60
%80 = load i32, ptr %3, align 4
%81 = ashr i32 %80, 6
store i32 %81, ptr %3, align 4
%82 = load i32, ptr %5, align 4
%83 = icmp sgt i32 %82, 0
br i1 %83, label %53, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %79
br label %84
84: ; preds = %._crit_edge, %43
%85 = load ptr, ptr %4, align 8
store ptr %85, ptr %2, align 8
br label %86
86: ; preds = %84, %11
%87 = load ptr, ptr %2, align 8
ret ptr %87
}
declare ptr @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/tmpfjpahdpu.c'
source_filename = "/tmp/tmpfjpahdpu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_mem() #0 {
%1 = alloca ptr, align 8
%2 = call i64 @malloc(i32 noundef 10)
%3 = inttoptr i64 %2 to ptr
store ptr %3, ptr %1, align 8
%4 = load ptr, ptr %1, align 8
%5 = call i32 @__ESBMC_assume(ptr noundef %4)
ret void
}
declare i64 @malloc(i32 noundef) #1
declare i32 @__ESBMC_assume(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfjpahdpu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_mem() #0 {
%1 = alloca ptr, align 8
%2 = call i64 @malloc(i32 noundef 10)
%3 = inttoptr i64 %2 to ptr
store ptr %3, ptr %1, align 8
%4 = load ptr, ptr %1, align 8
%5 = call i32 @__ESBMC_assume(ptr noundef %4)
ret void
}
declare i64 @malloc(i32 noundef) #1
declare i32 @__ESBMC_assume(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxvuzxqny.c'
source_filename = "/tmp/tmpxvuzxqny.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_nl = type { i32, i32, i32, ptr, ptr, i32, i32 }
%struct.iovec = type { i32, ptr }
%struct.msghdr = type { i32, i32, i32, ptr, ptr, i32, i32 }
@AF_NETLINK = dso_local global i32 0, align 4
@SOCK_RAW = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [14 x i8] c"socket failed\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"bind failed\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %struct.sockaddr_nl, align 8
%8 = alloca %struct.sockaddr_nl, align 8
%9 = alloca ptr, align 8
%10 = alloca %struct.iovec, align 8
%11 = alloca %struct.msghdr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr null, ptr %9, align 8
%12 = load i32, ptr @AF_NETLINK, align 4
%13 = load i32, ptr @SOCK_RAW, align 4
%14 = call i32 @socket(i32 noundef %12, i32 noundef %13, i32 noundef 23)
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %2
%18 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %57
19: ; preds = %2
%20 = call i32 @memset(ptr noundef %11, i32 noundef 0, i32 noundef 40)
%21 = call i32 @memset(ptr noundef %7, i32 noundef 0, i32 noundef 40)
%22 = call i32 @memset(ptr noundef %8, i32 noundef 0, i32 noundef 40)
%23 = load i32, ptr @AF_NETLINK, align 4
%24 = getelementptr inbounds %struct.sockaddr_nl, ptr %7, i32 0, i32 6
store i32 %23, ptr %24, align 4
%25 = call i32 (...) @getpid()
%26 = getelementptr inbounds %struct.sockaddr_nl, ptr %7, i32 0, i32 5
store i32 %25, ptr %26, align 8
%27 = getelementptr inbounds %struct.sockaddr_nl, ptr %7, i32 0, i32 0
store i32 1, ptr %27, align 8
%28 = load i32, ptr %6, align 4
%29 = call i64 @bind(i32 noundef %28, ptr noundef %7, i32 noundef 40)
%30 = icmp slt i64 %29, 0
br i1 %30, label %31, label %35
31: ; preds = %19
%32 = call i32 @perror(ptr noundef @.str.1)
%33 = load i32, ptr %6, align 4
%34 = call i32 @close(i32 noundef %33)
store i32 -2, ptr %3, align 4
br label %57
35: ; preds = %19
%36 = call i32 @NLMSG_SPACE(i32 noundef 1024)
%37 = call i64 @malloc(i32 noundef %36)
%38 = inttoptr i64 %37 to ptr
store ptr %38, ptr %9, align 8
%39 = load ptr, ptr %9, align 8
%40 = call i32 @NLMSG_SPACE(i32 noundef 1024)
%41 = call i32 @memset(ptr noundef %39, i32 noundef 0, i32 noundef %40)
%42 = load ptr, ptr %9, align 8
%43 = getelementptr inbounds %struct.iovec, ptr %10, i32 0, i32 1
store ptr %42, ptr %43, align 8
%44 = call i32 @NLMSG_SPACE(i32 noundef 1024)
%45 = getelementptr inbounds %struct.iovec, ptr %10, i32 0, i32 0
store i32 %44, ptr %45, align 8
%46 = getelementptr inbounds %struct.msghdr, ptr %11, i32 0, i32 4
store ptr %8, ptr %46, align 8
%47 = getelementptr inbounds %struct.msghdr, ptr %11, i32 0, i32 1
store i32 40, ptr %47, align 4
%48 = getelementptr inbounds %struct.msghdr, ptr %11, i32 0, i32 3
store ptr %10, ptr %48, align 8
%49 = getelementptr inbounds %struct.msghdr, ptr %11, i32 0, i32 2
store i32 1, ptr %49, align 8
br label %50
50: ; preds = %35, %50
%51 = load i32, ptr %6, align 4
%52 = call i32 @recvmsg(i32 noundef %51, ptr noundef %11, i32 noundef 0)
%53 = load ptr, ptr %9, align 8
%54 = call i64 @NLMSG_DATA(ptr noundef %53)
%55 = inttoptr i64 %54 to ptr
%56 = call i32 @printf(ptr noundef @.str.2, ptr noundef %55)
br label %50
57: ; preds = %31, %17
%58 = load i32, ptr %3, align 4
ret i32 %58
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @NLMSG_SPACE(i32 noundef) #1
declare i32 @recvmsg(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i64 @NLMSG_DATA(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxvuzxqny.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_nl = type { i32, i32, i32, ptr, ptr, i32, i32 }
%struct.iovec = type { i32, ptr }
%struct.msghdr = type { i32, i32, i32, ptr, ptr, i32, i32 }
@AF_NETLINK = dso_local global i32 0, align 4
@SOCK_RAW = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [14 x i8] c"socket failed\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"bind failed\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %struct.sockaddr_nl, align 8
%8 = alloca %struct.sockaddr_nl, align 8
%9 = alloca ptr, align 8
%10 = alloca %struct.iovec, align 8
%11 = alloca %struct.msghdr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr null, ptr %9, align 8
%12 = load i32, ptr @AF_NETLINK, align 4
%13 = load i32, ptr @SOCK_RAW, align 4
%14 = call i32 @socket(i32 noundef %12, i32 noundef %13, i32 noundef 23)
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %2
%18 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %57
19: ; preds = %2
%20 = call i32 @memset(ptr noundef %11, i32 noundef 0, i32 noundef 40)
%21 = call i32 @memset(ptr noundef %7, i32 noundef 0, i32 noundef 40)
%22 = call i32 @memset(ptr noundef %8, i32 noundef 0, i32 noundef 40)
%23 = load i32, ptr @AF_NETLINK, align 4
%24 = getelementptr inbounds %struct.sockaddr_nl, ptr %7, i32 0, i32 6
store i32 %23, ptr %24, align 4
%25 = call i32 (...) @getpid()
%26 = getelementptr inbounds %struct.sockaddr_nl, ptr %7, i32 0, i32 5
store i32 %25, ptr %26, align 8
%27 = getelementptr inbounds %struct.sockaddr_nl, ptr %7, i32 0, i32 0
store i32 1, ptr %27, align 8
%28 = load i32, ptr %6, align 4
%29 = call i64 @bind(i32 noundef %28, ptr noundef %7, i32 noundef 40)
%30 = icmp slt i64 %29, 0
br i1 %30, label %31, label %35
31: ; preds = %19
%32 = call i32 @perror(ptr noundef @.str.1)
%33 = load i32, ptr %6, align 4
%34 = call i32 @close(i32 noundef %33)
store i32 -2, ptr %3, align 4
br label %57
35: ; preds = %19
%36 = call i32 @NLMSG_SPACE(i32 noundef 1024)
%37 = call i64 @malloc(i32 noundef %36)
%38 = inttoptr i64 %37 to ptr
store ptr %38, ptr %9, align 8
%39 = load ptr, ptr %9, align 8
%40 = call i32 @NLMSG_SPACE(i32 noundef 1024)
%41 = call i32 @memset(ptr noundef %39, i32 noundef 0, i32 noundef %40)
%42 = load ptr, ptr %9, align 8
%43 = getelementptr inbounds %struct.iovec, ptr %10, i32 0, i32 1
store ptr %42, ptr %43, align 8
%44 = call i32 @NLMSG_SPACE(i32 noundef 1024)
%45 = getelementptr inbounds %struct.iovec, ptr %10, i32 0, i32 0
store i32 %44, ptr %45, align 8
%46 = getelementptr inbounds %struct.msghdr, ptr %11, i32 0, i32 4
store ptr %8, ptr %46, align 8
%47 = getelementptr inbounds %struct.msghdr, ptr %11, i32 0, i32 1
store i32 40, ptr %47, align 4
%48 = getelementptr inbounds %struct.msghdr, ptr %11, i32 0, i32 3
store ptr %10, ptr %48, align 8
%49 = getelementptr inbounds %struct.msghdr, ptr %11, i32 0, i32 2
store i32 1, ptr %49, align 8
br label %50
50: ; preds = %50, %35
%51 = load i32, ptr %6, align 4
%52 = call i32 @recvmsg(i32 noundef %51, ptr noundef %11, i32 noundef 0)
%53 = load ptr, ptr %9, align 8
%54 = call i64 @NLMSG_DATA(ptr noundef %53)
%55 = inttoptr i64 %54 to ptr
%56 = call i32 @printf(ptr noundef @.str.2, ptr noundef %55)
br label %50
57: ; preds = %31, %17
%58 = load i32, ptr %3, align 4
ret i32 %58
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @NLMSG_SPACE(i32 noundef) #1
declare i32 @recvmsg(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i64 @NLMSG_DATA(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7ugpfsz2.c'
source_filename = "/tmp/tmp7ugpfsz2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\09UID Expected %s, Got %u (Will always return expected))\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"SUCCESS\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"FAILURE\00", align 1
@.str.3 = private unnamed_addr constant [57 x i8] c"\09Failed Phase 2: You may not expect failure on a uid_t.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @expect_uid(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp eq i32 %5, 0
%7 = zext i1 %6 to i64
%8 = select i1 %6, ptr @.str.1, ptr @.str.2
%9 = load i32, ptr %4, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %8, i32 noundef %9)
%11 = call i32 @fflush(ptr noundef null)
%12 = load i32, ptr %3, align 4
%13 = icmp eq i32 %12, -1
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%16 = call i32 @fflush(ptr noundef null)
br label %17
17: ; preds = %14, %2
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fflush(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7ugpfsz2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\09UID Expected %s, Got %u (Will always return expected))\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"SUCCESS\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"FAILURE\00", align 1
@.str.3 = private unnamed_addr constant [57 x i8] c"\09Failed Phase 2: You may not expect failure on a uid_t.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @expect_uid(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp eq i32 %5, 0
%7 = zext i1 %6 to i64
%8 = select i1 %6, ptr @.str.1, ptr @.str.2
%9 = load i32, ptr %4, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %8, i32 noundef %9)
%11 = call i32 @fflush(ptr noundef null)
%12 = load i32, ptr %3, align 4
%13 = icmp eq i32 %12, -1
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%16 = call i32 @fflush(ptr noundef null)
br label %17
17: ; preds = %14, %2
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fflush(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpw6v23nnx.c'
source_filename = "/tmp/tmpw6v23nnx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @VIM_IPP_SetCaptureDropFrame(i16 noundef zeroext %0) #0 {
%2 = alloca i16, align 2
store i16 %0, ptr %2, align 2
%3 = load i16, ptr %2, align 2
%4 = call i32 @VIM_HIF_SetReg16(i32 noundef 7256, i16 noundef zeroext %3)
ret void
}
declare i32 @VIM_HIF_SetReg16(i32 noundef, i16 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw6v23nnx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @VIM_IPP_SetCaptureDropFrame(i16 noundef zeroext %0) #0 {
%2 = alloca i16, align 2
store i16 %0, ptr %2, align 2
%3 = load i16, ptr %2, align 2
%4 = call i32 @VIM_HIF_SetReg16(i32 noundef 7256, i16 noundef zeroext %3)
ret void
}
declare i32 @VIM_HIF_SetReg16(i32 noundef, i16 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpums_ekaz.c'
source_filename = "/tmp/tmpums_ekaz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %3
3: ; preds = %8, %0
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 30
br i1 %5, label %6, label %11
6: ; preds = %3
%7 = call i32 @sleep(i32 noundef 1)
br label %8
8: ; preds = %6
%9 = load i32, ptr %2, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %2, align 4
br label %3, !llvm.loop !6
11: ; preds = %3
ret i32 0
}
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpums_ekaz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp slt i32 %3, 30
br i1 %4, label %.lr.ph, label %12
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %7
%6 = call i32 @sleep(i32 noundef 1)
br label %7
7: ; preds = %5
%8 = load i32, ptr %2, align 4
%9 = add nsw i32 %8, 1
store i32 %9, ptr %2, align 4
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %10, 30
br i1 %11, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %7
br label %12
12: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpe4hydk95.c'
source_filename = "/tmp/tmpe4hydk95.c"
target datalayout = "e-m:e-p270: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 [161 x i8] c"Usage: b64 [options] <string> \0A\0Ab64 recognizes these commands:\0A -e base 64 encode ,\0A -d base 64 decode \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe4hydk95.c"
target datalayout = "e-m:e-p270: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 [161 x i8] c"Usage: b64 [options] <string> \0A\0Ab64 recognizes these commands:\0A -e base 64 encode ,\0A -d base 64 decode \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfwew0p87.c'
source_filename = "/tmp/tmpfwew0p87.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EAGAIN = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfwew0p87.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EAGAIN = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv7wd48l6.c'
source_filename = "/tmp/tmpv7wd48l6.c"
target datalayout = "e-m:e-p270: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.shm_info = type { i32 }
%struct.shmid_ds = type { %struct.ipc_perm }
%struct.ipc_perm = type { i64 }
%struct.passwd = type { i64 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"Invalid user: '%s'\0A\00", align 1
@SHM_INFO = dso_local global i32 0, align 4
@SHM_STAT = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [45 x i8] c"No shared memory segments under the user %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @lock_user_shm(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca %struct.shm_info, align 4
%6 = alloca %struct.shmid_ds, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%13 = getelementptr inbounds %struct.shmid_ds, ptr %6, i32 0, i32 0
store ptr %13, ptr %7, align 8
store i32 0, ptr %9, align 4
%14 = load ptr, ptr %3, align 8
%15 = call ptr @getpwnam(ptr noundef %14)
store ptr %15, ptr %8, align 8
%16 = load ptr, ptr %8, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %23, label %18
18: ; preds = %2
%19 = load i32, ptr @stderr, align 4
%20 = load ptr, ptr %3, align 8
%21 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str, ptr noundef %20)
%22 = call i32 @exit(i32 noundef 5) #3
unreachable
23: ; preds = %2
%24 = load i32, ptr @SHM_INFO, align 4
%25 = call i32 @shmctl(i32 noundef 0, i32 noundef %24, ptr noundef %5)
store i32 %25, ptr %11, align 4
store i32 0, ptr %12, align 4
br label %26
26: ; preds = %51, %23
%27 = load i32, ptr %12, align 4
%28 = load i32, ptr %11, align 4
%29 = icmp sle i32 %27, %28
br i1 %29, label %30, label %54
30: ; preds = %26
%31 = load i32, ptr %12, align 4
%32 = load i32, ptr @SHM_STAT, align 4
%33 = call i32 @shmctl(i32 noundef %31, i32 noundef %32, ptr noundef %6)
store i32 %33, ptr %10, align 4
%34 = load i32, ptr %10, align 4
%35 = icmp slt i32 %34, 0
br i1 %35, label %44, label %36
36: ; preds = %30
%37 = load ptr, ptr %8, align 8
%38 = getelementptr inbounds %struct.passwd, ptr %37, i32 0, i32 0
%39 = load i64, ptr %38, align 8
%40 = load ptr, ptr %7, align 8
%41 = getelementptr inbounds %struct.ipc_perm, ptr %40, i32 0, i32 0
%42 = load i64, ptr %41, align 8
%43 = icmp ne i64 %39, %42
br i1 %43, label %44, label %45
44: ; preds = %36, %30
br label %51
45: ; preds = %36
%46 = load i32, ptr %10, align 4
%47 = load i32, ptr %4, align 4
%48 = call i32 @lock_cmd(i32 noundef %46, i32 noundef %47)
%49 = load i32, ptr %9, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %9, align 4
br label %51
51: ; preds = %45, %44
%52 = load i32, ptr %12, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %12, align 4
br label %26, !llvm.loop !6
54: ; preds = %26
%55 = load i32, ptr %9, align 4
%56 = icmp ne i32 %55, 0
br i1 %56, label %62, label %57
57: ; preds = %54
%58 = load i32, ptr @stderr, align 4
%59 = load ptr, ptr %3, align 8
%60 = call i32 @fprintf(i32 noundef %58, ptr noundef @.str.1, ptr noundef %59)
%61 = call i32 @exit(i32 noundef 6) #3
unreachable
62: ; preds = %54
ret void
}
declare ptr @getpwnam(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @shmctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @lock_cmd(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv7wd48l6.c"
target datalayout = "e-m:e-p270: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.shm_info = type { i32 }
%struct.shmid_ds = type { %struct.ipc_perm }
%struct.ipc_perm = type { i64 }
%struct.passwd = type { i64 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"Invalid user: '%s'\0A\00", align 1
@SHM_INFO = dso_local global i32 0, align 4
@SHM_STAT = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [45 x i8] c"No shared memory segments under the user %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @lock_user_shm(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca %struct.shm_info, align 4
%6 = alloca %struct.shmid_ds, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%13 = getelementptr inbounds %struct.shmid_ds, ptr %6, i32 0, i32 0
store ptr %13, ptr %7, align 8
store i32 0, ptr %9, align 4
%14 = load ptr, ptr %3, align 8
%15 = call ptr @getpwnam(ptr noundef %14)
store ptr %15, ptr %8, align 8
%16 = load ptr, ptr %8, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %23, label %18
18: ; preds = %2
%19 = load i32, ptr @stderr, align 4
%20 = load ptr, ptr %3, align 8
%21 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str, ptr noundef %20)
%22 = call i32 @exit(i32 noundef 5) #3
unreachable
23: ; preds = %2
%24 = load i32, ptr @SHM_INFO, align 4
%25 = call i32 @shmctl(i32 noundef 0, i32 noundef %24, ptr noundef %5)
store i32 %25, ptr %11, align 4
store i32 0, ptr %12, align 4
%26 = load i32, ptr %12, align 4
%27 = load i32, ptr %11, align 4
%28 = icmp sle i32 %26, %27
br i1 %28, label %.lr.ph, label %56
.lr.ph: ; preds = %23
br label %29
29: ; preds = %.lr.ph, %50
%30 = load i32, ptr %12, align 4
%31 = load i32, ptr @SHM_STAT, align 4
%32 = call i32 @shmctl(i32 noundef %30, i32 noundef %31, ptr noundef %6)
store i32 %32, ptr %10, align 4
%33 = load i32, ptr %10, align 4
%34 = icmp slt i32 %33, 0
br i1 %34, label %43, label %35
35: ; preds = %29
%36 = load ptr, ptr %8, align 8
%37 = getelementptr inbounds %struct.passwd, ptr %36, i32 0, i32 0
%38 = load i64, ptr %37, align 8
%39 = load ptr, ptr %7, align 8
%40 = getelementptr inbounds %struct.ipc_perm, ptr %39, i32 0, i32 0
%41 = load i64, ptr %40, align 8
%42 = icmp ne i64 %38, %41
br i1 %42, label %43, label %44
43: ; preds = %35, %29
br label %50
44: ; preds = %35
%45 = load i32, ptr %10, align 4
%46 = load i32, ptr %4, align 4
%47 = call i32 @lock_cmd(i32 noundef %45, i32 noundef %46)
%48 = load i32, ptr %9, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %9, align 4
br label %50
50: ; preds = %44, %43
%51 = load i32, ptr %12, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %12, align 4
%53 = load i32, ptr %12, align 4
%54 = load i32, ptr %11, align 4
%55 = icmp sle i32 %53, %54
br i1 %55, label %29, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %50
br label %56
56: ; preds = %._crit_edge, %23
%57 = load i32, ptr %9, align 4
%58 = icmp ne i32 %57, 0
br i1 %58, label %64, label %59
59: ; preds = %56
%60 = load i32, ptr @stderr, align 4
%61 = load ptr, ptr %3, align 8
%62 = call i32 @fprintf(i32 noundef %60, ptr noundef @.str.1, ptr noundef %61)
%63 = call i32 @exit(i32 noundef 6) #3
unreachable
64: ; preds = %56
ret void
}
declare ptr @getpwnam(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @shmctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @lock_cmd(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpknmfkgxk.c'
source_filename = "/tmp/tmpknmfkgxk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @close_fd(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp sgt i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, ptr %2, align 4
%7 = call i32 @close(i32 noundef %6)
br label %8
8: ; preds = %5, %1
ret void
}
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpknmfkgxk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @close_fd(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp sgt i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, ptr %2, align 4
%7 = call i32 @close(i32 noundef %6)
br label %8
8: ; preds = %5, %1
ret void
}
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.