llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmpahahfxp3.c'
source_filename = "/tmp/tmpahahfxp3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"*** %s\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"*** [Press any key to quit]\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @bail_out(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @move(i32 noundef 22, i32 noundef 0)
%4 = load ptr, ptr %2, align 8
%5 = call i32 (ptr, ...) @printw(ptr noundef @.str, ptr noundef %4)
%6 = call i32 @move(i32 noundef 23, i32 noundef 0)
%7 = call i32 (ptr, ...) @printw(ptr noundef @.str.1)
%8 = call i32 (...) @refresh()
%9 = call i32 (...) @getch()
%10 = call i32 (...) @endwin()
ret void
}
declare i32 @move(i32 noundef, i32 noundef) #1
declare i32 @printw(ptr noundef, ...) #1
declare i32 @refresh(...) #1
declare i32 @getch(...) #1
declare i32 @endwin(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpahahfxp3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"*** %s\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"*** [Press any key to quit]\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @bail_out(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @move(i32 noundef 22, i32 noundef 0)
%4 = load ptr, ptr %2, align 8
%5 = call i32 (ptr, ...) @printw(ptr noundef @.str, ptr noundef %4)
%6 = call i32 @move(i32 noundef 23, i32 noundef 0)
%7 = call i32 (ptr, ...) @printw(ptr noundef @.str.1)
%8 = call i32 (...) @refresh()
%9 = call i32 (...) @getch()
%10 = call i32 (...) @endwin()
ret void
}
declare i32 @move(i32 noundef, i32 noundef) #1
declare i32 @printw(ptr noundef, ...) #1
declare i32 @refresh(...) #1
declare i32 @getch(...) #1
declare i32 @endwin(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5pj2v06j.c'
source_filename = "/tmp/tmp5pj2v06j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @migration_upgrade(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 @run_migration(ptr noundef %3, i32 noundef 1)
ret i32 %4
}
declare i32 @run_migration(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/tmp5pj2v06j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @migration_upgrade(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 @run_migration(ptr noundef %3, i32 noundef 1)
ret i32 %4
}
declare i32 @run_migration(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/tmp9wby84q9.c'
source_filename = "/tmp/tmp9wby84q9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @glitch_init(i32 noundef %0, i64 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i64, align 8
store i32 %0, ptr %3, align 4
store i64 %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = load i64, ptr %4, align 8
%7 = call i32 @libglitch_init(i32 noundef %5, i64 noundef %6)
ret void
}
declare i32 @libglitch_init(i32 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9wby84q9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @glitch_init(i32 noundef %0, i64 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i64, align 8
store i32 %0, ptr %3, align 4
store i64 %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = load i64, ptr %4, align 8
%7 = call i32 @libglitch_init(i32 noundef %5, i64 noundef %6)
ret void
}
declare i32 @libglitch_init(i32 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2srvu9n8.c'
source_filename = "/tmp/tmp2srvu9n8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mpz8_set_add(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 @mpz8_set_int(ptr noundef %3, i32 noundef 0, i32 noundef 1, i32 noundef 1, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 1)
ret void
}
declare i32 @mpz8_set_int(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 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/tmp2srvu9n8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mpz8_set_add(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 @mpz8_set_int(ptr noundef %3, i32 noundef 0, i32 noundef 1, i32 noundef 1, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 1)
ret void
}
declare i32 @mpz8_set_int(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 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/tmptymb68p5.c'
source_filename = "/tmp/tmptymb68p5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"hello\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
%3 = call i32 (...) @nothing()
store i32 %3, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @nothing(...) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptymb68p5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"hello\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
%3 = call i32 (...) @nothing()
store i32 %3, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @nothing(...) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp36q35iiv.c'
source_filename = "/tmp/tmp36q35iiv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"w\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @initialize(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
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%9 = load i32, ptr %5, align 4
%10 = icmp ne i32 %9, 1
br i1 %10, label %11, label %12
11: ; preds = %3
store i32 -1, ptr %4, align 4
br label %23
12: ; preds = %3
%13 = load ptr, ptr %6, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = call ptr @fopen(ptr noundef %15, ptr noundef @.str)
store ptr %16, ptr %8, align 8
%17 = load ptr, ptr %8, align 8
%18 = icmp eq ptr %17, null
br i1 %18, label %19, label %20
19: ; preds = %12
store i32 -1, ptr %4, align 4
br label %23
20: ; preds = %12
%21 = load ptr, ptr %8, align 8
%22 = load ptr, ptr %7, align 8
store ptr %21, ptr %22, align 8
store i32 0, ptr %4, align 4
br label %23
23: ; preds = %20, %19, %11
%24 = load i32, ptr %4, align 4
ret i32 %24
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp36q35iiv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"w\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @initialize(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
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%9 = load i32, ptr %5, align 4
%10 = icmp ne i32 %9, 1
br i1 %10, label %11, label %12
11: ; preds = %3
store i32 -1, ptr %4, align 4
br label %23
12: ; preds = %3
%13 = load ptr, ptr %6, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = call ptr @fopen(ptr noundef %15, ptr noundef @.str)
store ptr %16, ptr %8, align 8
%17 = load ptr, ptr %8, align 8
%18 = icmp eq ptr %17, null
br i1 %18, label %19, label %20
19: ; preds = %12
store i32 -1, ptr %4, align 4
br label %23
20: ; preds = %12
%21 = load ptr, ptr %8, align 8
%22 = load ptr, ptr %7, align 8
store ptr %21, ptr %22, align 8
store i32 0, ptr %4, align 4
br label %23
23: ; preds = %20, %19, %11
%24 = load i32, ptr %4, align 4
ret i32 %24
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1ljx3uv7.c'
source_filename = "/tmp/tmp1ljx3uv7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [4 x i8] c"%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"*\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"#\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %4, align 4
store i32 1, ptr %8, align 4
store i32 0, ptr %10, align 4
%11 = call i32 @scanf(ptr noundef @.str, ptr noundef %9)
%12 = load i32, ptr %2, align 4
%13 = icmp slt i32 %12, 3
br i1 %13, label %14, label %15
14: ; preds = %0
store i32 0, ptr %8, align 4
br label %38
15: ; preds = %0
store i32 1, ptr %3, align 4
br label %16
16: ; preds = %34, %15
%17 = load i32, ptr %3, align 4
%18 = load i32, ptr %2, align 4
%19 = sub nsw i32 %18, 2
%20 = icmp sle i32 %17, %19
br i1 %20, label %21, label %37
21: ; preds = %16
%22 = load i32, ptr %8, align 4
store i32 %22, ptr %9, align 4
br label %23
23: ; preds = %26, %21
%24 = load i32, ptr %9, align 4
%25 = icmp sgt i32 %24, 0
br i1 %25, label %26, label %31
26: ; preds = %23
%27 = load i32, ptr %10, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %10, align 4
%29 = load i32, ptr %9, align 4
%30 = add nsw i32 %29, -1
store i32 %30, ptr %9, align 4
br label %23, !llvm.loop !6
31: ; preds = %23
%32 = load i32, ptr %8, align 4
%33 = add nsw i32 %32, 2
store i32 %33, ptr %8, align 4
br label %34
34: ; preds = %31
%35 = load i32, ptr %3, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %3, align 4
br label %16, !llvm.loop !8
37: ; preds = %16
br label %38
38: ; preds = %37, %14
%39 = load i32, ptr %10, align 4
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %39)
%41 = load i32, ptr %2, align 4
%42 = sub nsw i32 %41, 1
store i32 %42, ptr %6, align 4
store i32 1, ptr %3, align 4
br label %43
43: ; preds = %88, %38
%44 = load i32, ptr %3, align 4
%45 = load i32, ptr %2, align 4
%46 = icmp sle i32 %44, %45
br i1 %46, label %47, label %91
47: ; preds = %43
%48 = load i32, ptr %4, align 4
store i32 %48, ptr %5, align 4
%49 = load i32, ptr %6, align 4
store i32 %49, ptr %7, align 4
br label %50
50: ; preds = %53, %47
%51 = load i32, ptr %7, align 4
%52 = icmp sgt i32 %51, 0
br i1 %52, label %53, label %57
53: ; preds = %50
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%55 = load i32, ptr %7, align 4
%56 = add nsw i32 %55, -1
store i32 %56, ptr %7, align 4
br label %50, !llvm.loop !9
57: ; preds = %50
br label %58
58: ; preds = %79, %57
%59 = load i32, ptr %5, align 4
%60 = icmp sgt i32 %59, 0
br i1 %60, label %61, label %82
61: ; preds = %58
%62 = load i32, ptr %3, align 4
%63 = load i32, ptr %2, align 4
%64 = icmp ne i32 %62, %63
br i1 %64, label %65, label %77
65: ; preds = %61
%66 = load i32, ptr %5, align 4
%67 = load i32, ptr %4, align 4
%68 = icmp eq i32 %66, %67
br i1 %68, label %72, label %69
69: ; preds = %65
%70 = load i32, ptr %5, align 4
%71 = icmp eq i32 %70, 1
br i1 %71, label %72, label %74
72: ; preds = %69, %65
%73 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %76
74: ; preds = %69
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %76
76: ; preds = %74, %72
br label %79
77: ; preds = %61
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %79
79: ; preds = %77, %76
%80 = load i32, ptr %5, align 4
%81 = add nsw i32 %80, -1
store i32 %81, ptr %5, align 4
br label %58, !llvm.loop !10
82: ; preds = %58
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%84 = load i32, ptr %6, align 4
%85 = add nsw i32 %84, -1
store i32 %85, ptr %6, align 4
%86 = load i32, ptr %4, align 4
%87 = add nsw i32 %86, 2
store i32 %87, ptr %4, align 4
br label %88
88: ; preds = %82
%89 = load i32, ptr %3, align 4
%90 = add nsw i32 %89, 1
store i32 %90, ptr %3, align 4
br label %43, !llvm.loop !11
91: ; preds = %43
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1ljx3uv7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [4 x i8] c"%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"*\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"#\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %4, align 4
store i32 1, ptr %8, align 4
store i32 0, ptr %10, align 4
%11 = call i32 @scanf(ptr noundef @.str, ptr noundef %9)
%12 = load i32, ptr %2, align 4
%13 = icmp slt i32 %12, 3
br i1 %13, label %14, label %15
14: ; preds = %0
store i32 0, ptr %8, align 4
br label %42
15: ; preds = %0
store i32 1, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = load i32, ptr %2, align 4
%18 = sub nsw i32 %17, 2
%19 = icmp sle i32 %16, %18
br i1 %19, label %.lr.ph2, label %41
.lr.ph2: ; preds = %15
br label %20
20: ; preds = %.lr.ph2, %34
%21 = load i32, ptr %8, align 4
store i32 %21, ptr %9, align 4
%22 = load i32, ptr %9, align 4
%23 = icmp sgt i32 %22, 0
br i1 %23, label %.lr.ph, label %31
.lr.ph: ; preds = %20
br label %24
24: ; preds = %.lr.ph, %24
%25 = load i32, ptr %10, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %10, align 4
%27 = load i32, ptr %9, align 4
%28 = add nsw i32 %27, -1
store i32 %28, ptr %9, align 4
%29 = load i32, ptr %9, align 4
%30 = icmp sgt i32 %29, 0
br i1 %30, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %31
31: ; preds = %._crit_edge, %20
%32 = load i32, ptr %8, align 4
%33 = add nsw i32 %32, 2
store i32 %33, ptr %8, align 4
br label %34
34: ; preds = %31
%35 = load i32, ptr %3, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %3, align 4
%37 = load i32, ptr %3, align 4
%38 = load i32, ptr %2, align 4
%39 = sub nsw i32 %38, 2
%40 = icmp sle i32 %37, %39
br i1 %40, label %20, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %34
br label %41
41: ; preds = %._crit_edge3, %15
br label %42
42: ; preds = %41, %14
%43 = load i32, ptr %10, align 4
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %43)
%45 = load i32, ptr %2, align 4
%46 = sub nsw i32 %45, 1
store i32 %46, ptr %6, align 4
store i32 1, ptr %3, align 4
%47 = load i32, ptr %3, align 4
%48 = load i32, ptr %2, align 4
%49 = icmp sle i32 %47, %48
br i1 %49, label %.lr.ph11, label %99
.lr.ph11: ; preds = %42
br label %50
50: ; preds = %.lr.ph11, %93
%51 = load i32, ptr %4, align 4
store i32 %51, ptr %5, align 4
%52 = load i32, ptr %6, align 4
store i32 %52, ptr %7, align 4
%53 = load i32, ptr %7, align 4
%54 = icmp sgt i32 %53, 0
br i1 %54, label %.lr.ph5, label %61
.lr.ph5: ; preds = %50
br label %55
55: ; preds = %.lr.ph5, %55
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%57 = load i32, ptr %7, align 4
%58 = add nsw i32 %57, -1
store i32 %58, ptr %7, align 4
%59 = load i32, ptr %7, align 4
%60 = icmp sgt i32 %59, 0
br i1 %60, label %55, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %55
br label %61
61: ; preds = %._crit_edge6, %50
%62 = load i32, ptr %5, align 4
%63 = icmp sgt i32 %62, 0
br i1 %63, label %.lr.ph8, label %87
.lr.ph8: ; preds = %61
br label %64
64: ; preds = %.lr.ph8, %82
%65 = load i32, ptr %3, align 4
%66 = load i32, ptr %2, align 4
%67 = icmp ne i32 %65, %66
br i1 %67, label %68, label %80
68: ; preds = %64
%69 = load i32, ptr %5, align 4
%70 = load i32, ptr %4, align 4
%71 = icmp eq i32 %69, %70
br i1 %71, label %75, label %72
72: ; preds = %68
%73 = load i32, ptr %5, align 4
%74 = icmp eq i32 %73, 1
br i1 %74, label %75, label %77
75: ; preds = %72, %68
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %79
77: ; preds = %72
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %79
79: ; preds = %77, %75
br label %82
80: ; preds = %64
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %82
82: ; preds = %80, %79
%83 = load i32, ptr %5, align 4
%84 = add nsw i32 %83, -1
store i32 %84, ptr %5, align 4
%85 = load i32, ptr %5, align 4
%86 = icmp sgt i32 %85, 0
br i1 %86, label %64, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %82
br label %87
87: ; preds = %._crit_edge9, %61
%88 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%89 = load i32, ptr %6, align 4
%90 = add nsw i32 %89, -1
store i32 %90, ptr %6, align 4
%91 = load i32, ptr %4, align 4
%92 = add nsw i32 %91, 2
store i32 %92, ptr %4, align 4
br label %93
93: ; preds = %87
%94 = load i32, ptr %3, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %3, align 4
%96 = load i32, ptr %3, align 4
%97 = load i32, ptr %2, align 4
%98 = icmp sle i32 %96, %97
br i1 %98, label %50, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %93
br label %99
99: ; preds = %._crit_edge12, %42
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmpbiib0lal.c'
source_filename = "/tmp/tmpbiib0lal.c"
target datalayout = "e-m:e-p270: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/tmpbiib0lal.c"
target datalayout = "e-m:e-p270: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/tmp3xhoph4x.c'
source_filename = "/tmp/tmp3xhoph4x.c"
target datalayout = "e-m:e-p270: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/tmp3xhoph4x.c"
target datalayout = "e-m:e-p270: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/tmpzsyphnnd.c'
source_filename = "/tmp/tmpzsyphnnd.c"
target datalayout = "e-m:e-p270: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, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32 }
@INADDR_BROADCAST = dso_local global i32 0, align 4
@AF_INET = dso_local global i32 0, align 4
@isThereAMaster.hello = internal constant [25 x i8] c"hello, is there anybody?\00", align 16
@.str = private unnamed_addr constant [17 x i8] c"allowBroadcast()\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"sendto()\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"Waiting for master response\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @isThereAMaster(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca %struct.sockaddr_in, align 4
%11 = alloca [50 x i8], align 16
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
%16 = load i32, ptr @INADDR_BROADCAST, align 4
%17 = call i32 @htonl(i32 noundef %16)
%18 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 2
%19 = getelementptr inbounds %struct.TYPE_2__, ptr %18, i32 0, i32 0
store i32 %17, ptr %19, align 4
%20 = load i32, ptr @AF_INET, align 4
%21 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 1
store i32 %20, ptr %21, align 4
%22 = load i32, ptr %8, align 4
%23 = call i32 @htons(i32 noundef %22)
%24 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 0
store i32 %23, ptr %24, align 4
%25 = getelementptr inbounds [50 x i8], ptr %11, i64 0, i64 0
%26 = call i32 @memset(ptr noundef %25, i32 noundef 0, i32 noundef 50)
store i32 25, ptr %13, align 4
%27 = load i32, ptr %6, align 4
%28 = call i32 @setReciveTimeout(i32 noundef %27, i32 noundef 3, i32 noundef 0)
%29 = load i32, ptr %6, align 4
%30 = call i32 @allowBroadcast(i32 noundef %29, i32 noundef 1)
%31 = icmp eq i32 %30, -1
br i1 %31, label %32, label %34
32: ; preds = %4
%33 = call i32 @die(ptr noundef @.str)
br label %34
34: ; preds = %32, %4
store i32 12, ptr %14, align 4
%35 = load i32, ptr %6, align 4
%36 = load i32, ptr %13, align 4
%37 = load i32, ptr %14, align 4
%38 = call i32 @sendto(i32 noundef %35, ptr noundef @isThereAMaster.hello, i32 noundef %36, i32 noundef 0, ptr noundef %10, i32 noundef %37)
%39 = icmp eq i32 %38, -1
br i1 %39, label %40, label %42
40: ; preds = %34
%41 = call i32 @die(ptr noundef @.str.1)
br label %42
42: ; preds = %40, %34
%43 = load i32, ptr %6, align 4
%44 = call i32 @allowBroadcast(i32 noundef %43, i32 noundef 0)
%45 = icmp eq i32 %44, -1
br i1 %45, label %46, label %48
46: ; preds = %42
%47 = call i32 @die(ptr noundef @.str)
br label %48
48: ; preds = %46, %42
%49 = call i32 @printf(ptr noundef @.str.2)
store i32 8, ptr %15, align 4
%50 = load i32, ptr %6, align 4
%51 = getelementptr inbounds [50 x i8], ptr %11, i64 0, i64 0
%52 = call i32 @recvfrom(i32 noundef %50, ptr noundef %51, i32 noundef 50, i32 noundef 0, ptr noundef %9, ptr noundef %15)
store i32 %52, ptr %12, align 4
%53 = load i32, ptr %12, align 4
%54 = icmp sgt i32 %53, 0
br i1 %54, label %55, label %56
55: ; preds = %48
store i32 0, ptr %5, align 4
br label %57
56: ; preds = %48
store i32 -1, ptr %5, align 4
br label %57
57: ; preds = %56, %55
%58 = load i32, ptr %5, align 4
ret i32 %58
}
declare i32 @htonl(i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @setReciveTimeout(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @allowBroadcast(i32 noundef, i32 noundef) #1
declare i32 @die(ptr noundef) #1
declare i32 @sendto(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @recvfrom(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzsyphnnd.c"
target datalayout = "e-m:e-p270: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, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32 }
@INADDR_BROADCAST = dso_local global i32 0, align 4
@AF_INET = dso_local global i32 0, align 4
@isThereAMaster.hello = internal constant [25 x i8] c"hello, is there anybody?\00", align 16
@.str = private unnamed_addr constant [17 x i8] c"allowBroadcast()\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"sendto()\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"Waiting for master response\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @isThereAMaster(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca %struct.sockaddr_in, align 4
%11 = alloca [50 x i8], align 16
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
%16 = load i32, ptr @INADDR_BROADCAST, align 4
%17 = call i32 @htonl(i32 noundef %16)
%18 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 2
%19 = getelementptr inbounds %struct.TYPE_2__, ptr %18, i32 0, i32 0
store i32 %17, ptr %19, align 4
%20 = load i32, ptr @AF_INET, align 4
%21 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 1
store i32 %20, ptr %21, align 4
%22 = load i32, ptr %8, align 4
%23 = call i32 @htons(i32 noundef %22)
%24 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 0
store i32 %23, ptr %24, align 4
%25 = getelementptr inbounds [50 x i8], ptr %11, i64 0, i64 0
%26 = call i32 @memset(ptr noundef %25, i32 noundef 0, i32 noundef 50)
store i32 25, ptr %13, align 4
%27 = load i32, ptr %6, align 4
%28 = call i32 @setReciveTimeout(i32 noundef %27, i32 noundef 3, i32 noundef 0)
%29 = load i32, ptr %6, align 4
%30 = call i32 @allowBroadcast(i32 noundef %29, i32 noundef 1)
%31 = icmp eq i32 %30, -1
br i1 %31, label %32, label %34
32: ; preds = %4
%33 = call i32 @die(ptr noundef @.str)
br label %34
34: ; preds = %32, %4
store i32 12, ptr %14, align 4
%35 = load i32, ptr %6, align 4
%36 = load i32, ptr %13, align 4
%37 = load i32, ptr %14, align 4
%38 = call i32 @sendto(i32 noundef %35, ptr noundef @isThereAMaster.hello, i32 noundef %36, i32 noundef 0, ptr noundef %10, i32 noundef %37)
%39 = icmp eq i32 %38, -1
br i1 %39, label %40, label %42
40: ; preds = %34
%41 = call i32 @die(ptr noundef @.str.1)
br label %42
42: ; preds = %40, %34
%43 = load i32, ptr %6, align 4
%44 = call i32 @allowBroadcast(i32 noundef %43, i32 noundef 0)
%45 = icmp eq i32 %44, -1
br i1 %45, label %46, label %48
46: ; preds = %42
%47 = call i32 @die(ptr noundef @.str)
br label %48
48: ; preds = %46, %42
%49 = call i32 @printf(ptr noundef @.str.2)
store i32 8, ptr %15, align 4
%50 = load i32, ptr %6, align 4
%51 = getelementptr inbounds [50 x i8], ptr %11, i64 0, i64 0
%52 = call i32 @recvfrom(i32 noundef %50, ptr noundef %51, i32 noundef 50, i32 noundef 0, ptr noundef %9, ptr noundef %15)
store i32 %52, ptr %12, align 4
%53 = load i32, ptr %12, align 4
%54 = icmp sgt i32 %53, 0
br i1 %54, label %55, label %56
55: ; preds = %48
store i32 0, ptr %5, align 4
br label %57
56: ; preds = %48
store i32 -1, ptr %5, align 4
br label %57
57: ; preds = %56, %55
%58 = load i32, ptr %5, align 4
ret i32 %58
}
declare i32 @htonl(i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @setReciveTimeout(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @allowBroadcast(i32 noundef, i32 noundef) #1
declare i32 @die(ptr noundef) #1
declare i32 @sendto(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @recvfrom(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppoypsq83.c'
source_filename = "/tmp/tmppoypsq83.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_SET = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [47 x i8] c"lseek fail. Return value = %d, errno = %d, %d\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [51 x i8] c"[INFO] Total sector count except boot loader [%d]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @WriteKernelInformation(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i16, align 2
%6 = alloca i64, align 8
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr @SEEK_SET, align 4
%9 = call i64 @lseek(i32 noundef %7, i32 noundef 5, i32 noundef %8)
store i64 %9, ptr %6, align 8
%10 = load i64, ptr %6, align 8
%11 = icmp eq i64 %10, -1
br i1 %11, label %12, label %19
12: ; preds = %2
%13 = load i32, ptr @stderr, align 4
%14 = load i64, ptr %6, align 8
%15 = load i32, ptr @errno, align 4
%16 = load i32, ptr @SEEK_SET, align 4
%17 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str, i64 noundef %14, i32 noundef %15, i32 noundef %16)
%18 = call i32 @exit(i32 noundef -1) #3
unreachable
19: ; preds = %2
%20 = load i32, ptr %4, align 4
%21 = trunc i32 %20 to i16
store i16 %21, ptr %5, align 2
%22 = load i32, ptr %3, align 4
%23 = call i32 @write(i32 noundef %22, ptr noundef %5, i32 noundef 2)
%24 = load i32, ptr %4, align 4
%25 = call i32 @printf(ptr noundef @.str.1, i32 noundef %24)
ret void
}
declare i64 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i64 noundef, i32 noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @write(i32 noundef, ptr 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" }
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/tmppoypsq83.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_SET = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [47 x i8] c"lseek fail. Return value = %d, errno = %d, %d\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [51 x i8] c"[INFO] Total sector count except boot loader [%d]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @WriteKernelInformation(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i16, align 2
%6 = alloca i64, align 8
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr @SEEK_SET, align 4
%9 = call i64 @lseek(i32 noundef %7, i32 noundef 5, i32 noundef %8)
store i64 %9, ptr %6, align 8
%10 = load i64, ptr %6, align 8
%11 = icmp eq i64 %10, -1
br i1 %11, label %12, label %19
12: ; preds = %2
%13 = load i32, ptr @stderr, align 4
%14 = load i64, ptr %6, align 8
%15 = load i32, ptr @errno, align 4
%16 = load i32, ptr @SEEK_SET, align 4
%17 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str, i64 noundef %14, i32 noundef %15, i32 noundef %16)
%18 = call i32 @exit(i32 noundef -1) #3
unreachable
19: ; preds = %2
%20 = load i32, ptr %4, align 4
%21 = trunc i32 %20 to i16
store i16 %21, ptr %5, align 2
%22 = load i32, ptr %3, align 4
%23 = call i32 @write(i32 noundef %22, ptr noundef %5, i32 noundef 2)
%24 = load i32, ptr %4, align 4
%25 = call i32 @printf(ptr noundef @.str.1, i32 noundef %24)
ret void
}
declare i64 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i64 noundef, i32 noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @write(i32 noundef, ptr 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" }
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/tmppa5bcb6q.c'
source_filename = "/tmp/tmppa5bcb6q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XKeyEvent_y(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_2__, ptr %6, i32 0, i32 0
store i32 %5, ptr %7, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppa5bcb6q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XKeyEvent_y(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_2__, ptr %6, i32 0, i32 0
store i32 %5, ptr %7, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpewgvmuj5.c'
source_filename = "/tmp/tmpewgvmuj5.c"
target datalayout = "e-m:e-p270: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/tmpewgvmuj5.c"
target datalayout = "e-m:e-p270: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/tmpymx60lax.c'
source_filename = "/tmp/tmpymx60lax.c"
target datalayout = "e-m:e-p270: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.process = type { [10 x i8], i32, i32 }
%struct.scheduling = type { i32, i32 }
@.str = private unnamed_addr constant [23 x i8] c"enter no. of process: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [49 x i8] c"Enter Process Name,Arrival time and Burst Time :\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"%s%d%d\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.5 = private unnamed_addr constant [72 x i8] c"Process Name arrival_time burst_time waiting_time turn around time\0A\00", align 1
@.str.6 = private unnamed_addr constant [28 x i8] c"%c%c\09\09 %d\09\09 %d\09\09 %d\09\09 %d\09\09\0A\00", align 1
@.str.7 = private unnamed_addr constant [54 x i8] c"Average Waiting Time: %f\0AAverage Turn Around Time: %f\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 i32, align 4
%9 = alloca i32, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca i8, align 1
%13 = alloca ptr, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
store float 0.000000e+00, ptr %10, align 4
store float 0.000000e+00, ptr %11, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%17 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2)
%18 = load i32, ptr %2, align 4
%19 = zext i32 %18 to i64
%20 = call ptr @llvm.stacksave()
store ptr %20, ptr %13, align 8
%21 = alloca %struct.process, i64 %19, align 16
store i64 %19, ptr %14, align 8
%22 = load i32, ptr %2, align 4
%23 = zext i32 %22 to i64
%24 = alloca %struct.scheduling, i64 %23, align 16
store i64 %23, ptr %15, align 8
store i32 0, ptr %3, align 4
br label %25
25: ; preds = %45, %0
%26 = load i32, ptr %3, align 4
%27 = load i32, ptr %2, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %48
29: ; preds = %25
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%31 = load i32, ptr %3, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds %struct.process, ptr %21, i64 %32
%34 = getelementptr inbounds %struct.process, ptr %33, i32 0, i32 0
%35 = getelementptr inbounds [10 x i8], ptr %34, i64 0, i64 0
%36 = load i32, ptr %3, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds %struct.process, ptr %21, i64 %37
%39 = getelementptr inbounds %struct.process, ptr %38, i32 0, i32 1
%40 = load i32, ptr %3, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds %struct.process, ptr %21, i64 %41
%43 = getelementptr inbounds %struct.process, ptr %42, i32 0, i32 2
%44 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %35, ptr noundef %39, ptr noundef %43)
br label %45
45: ; preds = %29
%46 = load i32, ptr %3, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %3, align 4
br label %25, !llvm.loop !6
48: ; preds = %25
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 1, ptr %3, align 4
br label %50
50: ; preds = %141, %48
%51 = load i32, ptr %3, align 4
%52 = load i32, ptr %2, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %54, label %144
54: ; preds = %50
%55 = load i32, ptr %3, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds %struct.process, ptr %21, i64 %56
%58 = getelementptr inbounds %struct.process, ptr %57, i32 0, i32 1
%59 = load i32, ptr %58, align 4
store i32 %59, ptr %6, align 4
%60 = load i32, ptr %3, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds %struct.process, ptr %21, i64 %61
%63 = getelementptr inbounds %struct.process, ptr %62, i32 0, i32 2
%64 = load i32, ptr %63, align 4
store i32 %64, ptr %7, align 4
%65 = load i32, ptr %3, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds %struct.process, ptr %21, i64 %66
%68 = getelementptr inbounds %struct.process, ptr %67, i32 0, i32 0
%69 = getelementptr inbounds [10 x i8], ptr %68, i64 0, i64 1
%70 = load i8, ptr %69, align 1
store i8 %70, ptr %12, align 1
%71 = load i32, ptr %3, align 4
%72 = sub nsw i32 %71, 1
store i32 %72, ptr %4, align 4
br label %73
73: ; preds = %86, %54
%74 = load i32, ptr %4, align 4
%75 = icmp sge i32 %74, 0
br i1 %75, label %76, label %84
76: ; preds = %73
%77 = load i32, ptr %6, align 4
%78 = load i32, ptr %4, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds %struct.process, ptr %21, i64 %79
%81 = getelementptr inbounds %struct.process, ptr %80, i32 0, i32 1
%82 = load i32, ptr %81, align 4
%83 = icmp slt i32 %77, %82
br label %84
84: ; preds = %76, %73
%85 = phi i1 [ false, %73 ], [ %83, %76 ]
br i1 %85, label %86, label %121
86: ; preds = %84
%87 = load i32, ptr %4, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds %struct.process, ptr %21, i64 %88
%90 = getelementptr inbounds %struct.process, ptr %89, i32 0, i32 1
%91 = load i32, ptr %90, align 4
%92 = load i32, ptr %4, align 4
%93 = add nsw i32 %92, 1
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds %struct.process, ptr %21, i64 %94
%96 = getelementptr inbounds %struct.process, ptr %95, i32 0, i32 1
store i32 %91, ptr %96, align 4
%97 = load i32, ptr %4, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds %struct.process, ptr %21, i64 %98
%100 = getelementptr inbounds %struct.process, ptr %99, i32 0, i32 2
%101 = load i32, ptr %100, align 4
%102 = load i32, ptr %4, align 4
%103 = add nsw i32 %102, 1
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds %struct.process, ptr %21, i64 %104
%106 = getelementptr inbounds %struct.process, ptr %105, i32 0, i32 2
store i32 %101, ptr %106, align 4
%107 = load i32, ptr %4, align 4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds %struct.process, ptr %21, i64 %108
%110 = getelementptr inbounds %struct.process, ptr %109, i32 0, i32 0
%111 = getelementptr inbounds [10 x i8], ptr %110, i64 0, i64 1
%112 = load i8, ptr %111, align 1
%113 = load i32, ptr %4, align 4
%114 = add nsw i32 %113, 1
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds %struct.process, ptr %21, i64 %115
%117 = getelementptr inbounds %struct.process, ptr %116, i32 0, i32 0
%118 = getelementptr inbounds [10 x i8], ptr %117, i64 0, i64 1
store i8 %112, ptr %118, align 1
%119 = load i32, ptr %4, align 4
%120 = add nsw i32 %119, -1
store i32 %120, ptr %4, align 4
br label %73, !llvm.loop !8
121: ; preds = %84
%122 = load i32, ptr %6, align 4
%123 = load i32, ptr %4, align 4
%124 = add nsw i32 %123, 1
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds %struct.process, ptr %21, i64 %125
%127 = getelementptr inbounds %struct.process, ptr %126, i32 0, i32 1
store i32 %122, ptr %127, align 4
%128 = load i32, ptr %7, align 4
%129 = load i32, ptr %4, align 4
%130 = add nsw i32 %129, 1
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds %struct.process, ptr %21, i64 %131
%133 = getelementptr inbounds %struct.process, ptr %132, i32 0, i32 2
store i32 %128, ptr %133, align 4
%134 = load i8, ptr %12, align 1
%135 = load i32, ptr %4, align 4
%136 = add nsw i32 %135, 1
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds %struct.process, ptr %21, i64 %137
%139 = getelementptr inbounds %struct.process, ptr %138, i32 0, i32 0
%140 = getelementptr inbounds [10 x i8], ptr %139, i64 0, i64 1
store i8 %134, ptr %140, align 1
br label %141
141: ; preds = %121
%142 = load i32, ptr %3, align 4
%143 = add nsw i32 %142, 1
store i32 %143, ptr %3, align 4
br label %50, !llvm.loop !9
144: ; preds = %50
%145 = getelementptr inbounds %struct.process, ptr %21, i64 0
%146 = getelementptr inbounds %struct.process, ptr %145, i32 0, i32 1
%147 = load i32, ptr %146, align 4
store i32 %147, ptr %8, align 4
store i32 0, ptr %3, align 4
br label %148
148: ; preds = %202, %144
%149 = load i32, ptr %3, align 4
%150 = load i32, ptr %2, align 4
%151 = icmp slt i32 %149, %150
br i1 %151, label %152, label %205
152: ; preds = %148
%153 = load i32, ptr %8, align 4
%154 = load i32, ptr %3, align 4
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds %struct.process, ptr %21, i64 %155
%157 = getelementptr inbounds %struct.process, ptr %156, i32 0, i32 1
%158 = load i32, ptr %157, align 4
%159 = sub nsw i32 %153, %158
%160 = load i32, ptr %3, align 4
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds %struct.scheduling, ptr %24, i64 %161
%163 = getelementptr inbounds %struct.scheduling, ptr %162, i32 0, i32 0
store i32 %159, ptr %163, align 8
%164 = load i32, ptr %3, align 4
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds %struct.scheduling, ptr %24, i64 %165
%167 = getelementptr inbounds %struct.scheduling, ptr %166, i32 0, i32 0
%168 = load i32, ptr %167, align 8
%169 = load i32, ptr %3, align 4
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds %struct.process, ptr %21, i64 %170
%172 = getelementptr inbounds %struct.process, ptr %171, i32 0, i32 2
%173 = load i32, ptr %172, align 4
%174 = add nsw i32 %168, %173
%175 = load i32, ptr %3, align 4
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds %struct.scheduling, ptr %24, i64 %176
%178 = getelementptr inbounds %struct.scheduling, ptr %177, i32 0, i32 1
store i32 %174, ptr %178, align 4
%179 = load i32, ptr %8, align 4
%180 = load i32, ptr %3, align 4
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds %struct.process, ptr %21, i64 %181
%183 = getelementptr inbounds %struct.process, ptr %182, i32 0, i32 2
%184 = load i32, ptr %183, align 4
%185 = add nsw i32 %179, %184
store i32 %185, ptr %8, align 4
%186 = load float, ptr %11, align 4
%187 = load i32, ptr %3, align 4
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds %struct.scheduling, ptr %24, i64 %188
%190 = getelementptr inbounds %struct.scheduling, ptr %189, i32 0, i32 0
%191 = load i32, ptr %190, align 8
%192 = sitofp i32 %191 to float
%193 = fadd float %186, %192
store float %193, ptr %11, align 4
%194 = load float, ptr %10, align 4
%195 = load i32, ptr %3, align 4
%196 = sext i32 %195 to i64
%197 = getelementptr inbounds %struct.scheduling, ptr %24, i64 %196
%198 = getelementptr inbounds %struct.scheduling, ptr %197, i32 0, i32 1
%199 = load i32, ptr %198, align 4
%200 = sitofp i32 %199 to float
%201 = fadd float %194, %200
store float %201, ptr %10, align 4
br label %202
202: ; preds = %152
%203 = load i32, ptr %3, align 4
%204 = add nsw i32 %203, 1
store i32 %204, ptr %3, align 4
br label %148, !llvm.loop !10
205: ; preds = %148
%206 = load float, ptr %10, align 4
%207 = fpext float %206 to double
%208 = load i32, ptr %2, align 4
%209 = sitofp i32 %208 to double
%210 = fmul double %209, 1.000000e+00
%211 = fdiv double %207, %210
%212 = fptrunc double %211 to float
store float %212, ptr %10, align 4
%213 = load float, ptr %11, align 4
%214 = fpext float %213 to double
%215 = load i32, ptr %2, align 4
%216 = sitofp i32 %215 to double
%217 = fmul double %216, 1.000000e+00
%218 = fdiv double %214, %217
%219 = fptrunc double %218 to float
store float %219, ptr %11, align 4
%220 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 0, ptr %3, align 4
br label %221
221: ; preds = %261, %205
%222 = load i32, ptr %3, align 4
%223 = load i32, ptr %2, align 4
%224 = icmp slt i32 %222, %223
br i1 %224, label %225, label %264
225: ; preds = %221
%226 = load i32, ptr %3, align 4
%227 = sext i32 %226 to i64
%228 = getelementptr inbounds %struct.process, ptr %21, i64 %227
%229 = getelementptr inbounds %struct.process, ptr %228, i32 0, i32 0
%230 = getelementptr inbounds [10 x i8], ptr %229, i64 0, i64 0
%231 = load i8, ptr %230, align 4
%232 = sext i8 %231 to i32
%233 = load i32, ptr %3, align 4
%234 = sext i32 %233 to i64
%235 = getelementptr inbounds %struct.process, ptr %21, i64 %234
%236 = getelementptr inbounds %struct.process, ptr %235, i32 0, i32 0
%237 = getelementptr inbounds [10 x i8], ptr %236, i64 0, i64 1
%238 = load i8, ptr %237, align 1
%239 = sext i8 %238 to i32
%240 = load i32, ptr %3, align 4
%241 = sext i32 %240 to i64
%242 = getelementptr inbounds %struct.process, ptr %21, i64 %241
%243 = getelementptr inbounds %struct.process, ptr %242, i32 0, i32 1
%244 = load i32, ptr %243, align 4
%245 = load i32, ptr %3, align 4
%246 = sext i32 %245 to i64
%247 = getelementptr inbounds %struct.process, ptr %21, i64 %246
%248 = getelementptr inbounds %struct.process, ptr %247, i32 0, i32 2
%249 = load i32, ptr %248, align 4
%250 = load i32, ptr %3, align 4
%251 = sext i32 %250 to i64
%252 = getelementptr inbounds %struct.scheduling, ptr %24, i64 %251
%253 = getelementptr inbounds %struct.scheduling, ptr %252, i32 0, i32 0
%254 = load i32, ptr %253, align 8
%255 = load i32, ptr %3, align 4
%256 = sext i32 %255 to i64
%257 = getelementptr inbounds %struct.scheduling, ptr %24, i64 %256
%258 = getelementptr inbounds %struct.scheduling, ptr %257, i32 0, i32 1
%259 = load i32, ptr %258, align 4
%260 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %232, i32 noundef %239, i32 noundef %244, i32 noundef %249, i32 noundef %254, i32 noundef %259)
br label %261
261: ; preds = %225
%262 = load i32, ptr %3, align 4
%263 = add nsw i32 %262, 1
store i32 %263, ptr %3, align 4
br label %221, !llvm.loop !11
264: ; preds = %221
%265 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%266 = load float, ptr %11, align 4
%267 = fpext float %266 to double
%268 = load float, ptr %10, align 4
%269 = fpext float %268 to double
%270 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, double noundef %267, double noundef %269)
store i32 0, ptr %1, align 4
%271 = load ptr, ptr %13, align 8
call void @llvm.stackrestore(ptr %271)
%272 = load i32, ptr %1, align 4
ret i32 %272
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpymx60lax.c"
target datalayout = "e-m:e-p270: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.process = type { [10 x i8], i32, i32 }
%struct.scheduling = type { i32, i32 }
@.str = private unnamed_addr constant [23 x i8] c"enter no. of process: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [49 x i8] c"Enter Process Name,Arrival time and Burst Time :\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"%s%d%d\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.5 = private unnamed_addr constant [72 x i8] c"Process Name arrival_time burst_time waiting_time turn around time\0A\00", align 1
@.str.6 = private unnamed_addr constant [28 x i8] c"%c%c\09\09 %d\09\09 %d\09\09 %d\09\09 %d\09\09\0A\00", align 1
@.str.7 = private unnamed_addr constant [54 x i8] c"Average Waiting Time: %f\0AAverage Turn Around Time: %f\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 i32, align 4
%9 = alloca i32, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca i8, align 1
%13 = alloca ptr, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
store float 0.000000e+00, ptr %10, align 4
store float 0.000000e+00, ptr %11, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%17 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2)
%18 = load i32, ptr %2, align 4
%19 = zext i32 %18 to i64
%20 = call ptr @llvm.stacksave()
store ptr %20, ptr %13, align 8
%21 = alloca %struct.process, i64 %19, align 16
store i64 %19, ptr %14, align 8
%22 = load i32, ptr %2, align 4
%23 = zext i32 %22 to i64
%24 = alloca %struct.scheduling, i64 %23, align 16
store i64 %23, ptr %15, align 8
store i32 0, ptr %3, align 4
%25 = load i32, ptr %3, align 4
%26 = load i32, ptr %2, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %.lr.ph, label %50
.lr.ph: ; preds = %0
br label %28
28: ; preds = %.lr.ph, %44
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%30 = load i32, ptr %3, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds %struct.process, ptr %21, i64 %31
%33 = getelementptr inbounds %struct.process, ptr %32, i32 0, i32 0
%34 = getelementptr inbounds [10 x i8], ptr %33, i64 0, i64 0
%35 = load i32, ptr %3, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds %struct.process, ptr %21, i64 %36
%38 = getelementptr inbounds %struct.process, ptr %37, i32 0, i32 1
%39 = load i32, ptr %3, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds %struct.process, ptr %21, i64 %40
%42 = getelementptr inbounds %struct.process, ptr %41, i32 0, i32 2
%43 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %34, ptr noundef %38, ptr noundef %42)
br label %44
44: ; preds = %28
%45 = load i32, ptr %3, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %3, align 4
%47 = load i32, ptr %3, align 4
%48 = load i32, ptr %2, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %44
br label %50
50: ; preds = %._crit_edge, %0
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 1, ptr %3, align 4
%52 = load i32, ptr %3, align 4
%53 = load i32, ptr %2, align 4
%54 = icmp slt i32 %52, %53
br i1 %54, label %.lr.ph2, label %148
.lr.ph2: ; preds = %50
br label %55
55: ; preds = %.lr.ph2, %142
%56 = load i32, ptr %3, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds %struct.process, ptr %21, i64 %57
%59 = getelementptr inbounds %struct.process, ptr %58, i32 0, i32 1
%60 = load i32, ptr %59, align 4
store i32 %60, ptr %6, align 4
%61 = load i32, ptr %3, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds %struct.process, ptr %21, i64 %62
%64 = getelementptr inbounds %struct.process, ptr %63, i32 0, i32 2
%65 = load i32, ptr %64, align 4
store i32 %65, ptr %7, align 4
%66 = load i32, ptr %3, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds %struct.process, ptr %21, i64 %67
%69 = getelementptr inbounds %struct.process, ptr %68, i32 0, i32 0
%70 = getelementptr inbounds [10 x i8], ptr %69, i64 0, i64 1
%71 = load i8, ptr %70, align 1
store i8 %71, ptr %12, align 1
%72 = load i32, ptr %3, align 4
%73 = sub nsw i32 %72, 1
store i32 %73, ptr %4, align 4
br label %74
74: ; preds = %87, %55
%75 = load i32, ptr %4, align 4
%76 = icmp sge i32 %75, 0
br i1 %76, label %77, label %85
77: ; preds = %74
%78 = load i32, ptr %6, align 4
%79 = load i32, ptr %4, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds %struct.process, ptr %21, i64 %80
%82 = getelementptr inbounds %struct.process, ptr %81, i32 0, i32 1
%83 = load i32, ptr %82, align 4
%84 = icmp slt i32 %78, %83
br label %85
85: ; preds = %77, %74
%86 = phi i1 [ false, %74 ], [ %84, %77 ]
br i1 %86, label %87, label %122
87: ; preds = %85
%88 = load i32, ptr %4, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds %struct.process, ptr %21, i64 %89
%91 = getelementptr inbounds %struct.process, ptr %90, i32 0, i32 1
%92 = load i32, ptr %91, align 4
%93 = load i32, ptr %4, align 4
%94 = add nsw i32 %93, 1
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds %struct.process, ptr %21, i64 %95
%97 = getelementptr inbounds %struct.process, ptr %96, i32 0, i32 1
store i32 %92, ptr %97, align 4
%98 = load i32, ptr %4, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds %struct.process, ptr %21, i64 %99
%101 = getelementptr inbounds %struct.process, ptr %100, i32 0, i32 2
%102 = load i32, ptr %101, align 4
%103 = load i32, ptr %4, align 4
%104 = add nsw i32 %103, 1
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds %struct.process, ptr %21, i64 %105
%107 = getelementptr inbounds %struct.process, ptr %106, i32 0, i32 2
store i32 %102, ptr %107, align 4
%108 = load i32, ptr %4, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds %struct.process, ptr %21, i64 %109
%111 = getelementptr inbounds %struct.process, ptr %110, i32 0, i32 0
%112 = getelementptr inbounds [10 x i8], ptr %111, i64 0, i64 1
%113 = load i8, ptr %112, align 1
%114 = load i32, ptr %4, align 4
%115 = add nsw i32 %114, 1
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds %struct.process, ptr %21, i64 %116
%118 = getelementptr inbounds %struct.process, ptr %117, i32 0, i32 0
%119 = getelementptr inbounds [10 x i8], ptr %118, i64 0, i64 1
store i8 %113, ptr %119, align 1
%120 = load i32, ptr %4, align 4
%121 = add nsw i32 %120, -1
store i32 %121, ptr %4, align 4
br label %74, !llvm.loop !8
122: ; preds = %85
%123 = load i32, ptr %6, align 4
%124 = load i32, ptr %4, align 4
%125 = add nsw i32 %124, 1
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds %struct.process, ptr %21, i64 %126
%128 = getelementptr inbounds %struct.process, ptr %127, i32 0, i32 1
store i32 %123, ptr %128, align 4
%129 = load i32, ptr %7, align 4
%130 = load i32, ptr %4, align 4
%131 = add nsw i32 %130, 1
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds %struct.process, ptr %21, i64 %132
%134 = getelementptr inbounds %struct.process, ptr %133, i32 0, i32 2
store i32 %129, ptr %134, align 4
%135 = load i8, ptr %12, align 1
%136 = load i32, ptr %4, align 4
%137 = add nsw i32 %136, 1
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds %struct.process, ptr %21, i64 %138
%140 = getelementptr inbounds %struct.process, ptr %139, i32 0, i32 0
%141 = getelementptr inbounds [10 x i8], ptr %140, i64 0, i64 1
store i8 %135, ptr %141, align 1
br label %142
142: ; preds = %122
%143 = load i32, ptr %3, align 4
%144 = add nsw i32 %143, 1
store i32 %144, ptr %3, align 4
%145 = load i32, ptr %3, align 4
%146 = load i32, ptr %2, align 4
%147 = icmp slt i32 %145, %146
br i1 %147, label %55, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %142
br label %148
148: ; preds = %._crit_edge3, %50
%149 = getelementptr inbounds %struct.process, ptr %21, i64 0
%150 = getelementptr inbounds %struct.process, ptr %149, i32 0, i32 1
%151 = load i32, ptr %150, align 4
store i32 %151, ptr %8, align 4
store i32 0, ptr %3, align 4
%152 = load i32, ptr %3, align 4
%153 = load i32, ptr %2, align 4
%154 = icmp slt i32 %152, %153
br i1 %154, label %.lr.ph5, label %211
.lr.ph5: ; preds = %148
br label %155
155: ; preds = %.lr.ph5, %205
%156 = load i32, ptr %8, align 4
%157 = load i32, ptr %3, align 4
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds %struct.process, ptr %21, i64 %158
%160 = getelementptr inbounds %struct.process, ptr %159, i32 0, i32 1
%161 = load i32, ptr %160, align 4
%162 = sub nsw i32 %156, %161
%163 = load i32, ptr %3, align 4
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds %struct.scheduling, ptr %24, i64 %164
%166 = getelementptr inbounds %struct.scheduling, ptr %165, i32 0, i32 0
store i32 %162, ptr %166, align 8
%167 = load i32, ptr %3, align 4
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds %struct.scheduling, ptr %24, i64 %168
%170 = getelementptr inbounds %struct.scheduling, ptr %169, i32 0, i32 0
%171 = load i32, ptr %170, align 8
%172 = load i32, ptr %3, align 4
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds %struct.process, ptr %21, i64 %173
%175 = getelementptr inbounds %struct.process, ptr %174, i32 0, i32 2
%176 = load i32, ptr %175, align 4
%177 = add nsw i32 %171, %176
%178 = load i32, ptr %3, align 4
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds %struct.scheduling, ptr %24, i64 %179
%181 = getelementptr inbounds %struct.scheduling, ptr %180, i32 0, i32 1
store i32 %177, ptr %181, align 4
%182 = load i32, ptr %8, align 4
%183 = load i32, ptr %3, align 4
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds %struct.process, ptr %21, i64 %184
%186 = getelementptr inbounds %struct.process, ptr %185, i32 0, i32 2
%187 = load i32, ptr %186, align 4
%188 = add nsw i32 %182, %187
store i32 %188, ptr %8, align 4
%189 = load float, ptr %11, align 4
%190 = load i32, ptr %3, align 4
%191 = sext i32 %190 to i64
%192 = getelementptr inbounds %struct.scheduling, ptr %24, i64 %191
%193 = getelementptr inbounds %struct.scheduling, ptr %192, i32 0, i32 0
%194 = load i32, ptr %193, align 8
%195 = sitofp i32 %194 to float
%196 = fadd float %189, %195
store float %196, ptr %11, align 4
%197 = load float, ptr %10, align 4
%198 = load i32, ptr %3, align 4
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds %struct.scheduling, ptr %24, i64 %199
%201 = getelementptr inbounds %struct.scheduling, ptr %200, i32 0, i32 1
%202 = load i32, ptr %201, align 4
%203 = sitofp i32 %202 to float
%204 = fadd float %197, %203
store float %204, ptr %10, align 4
br label %205
205: ; preds = %155
%206 = load i32, ptr %3, align 4
%207 = add nsw i32 %206, 1
store i32 %207, ptr %3, align 4
%208 = load i32, ptr %3, align 4
%209 = load i32, ptr %2, align 4
%210 = icmp slt i32 %208, %209
br i1 %210, label %155, label %._crit_edge6, !llvm.loop !10
._crit_edge6: ; preds = %205
br label %211
211: ; preds = %._crit_edge6, %148
%212 = load float, ptr %10, align 4
%213 = fpext float %212 to double
%214 = load i32, ptr %2, align 4
%215 = sitofp i32 %214 to double
%216 = fmul double %215, 1.000000e+00
%217 = fdiv double %213, %216
%218 = fptrunc double %217 to float
store float %218, ptr %10, align 4
%219 = load float, ptr %11, align 4
%220 = fpext float %219 to double
%221 = load i32, ptr %2, align 4
%222 = sitofp i32 %221 to double
%223 = fmul double %222, 1.000000e+00
%224 = fdiv double %220, %223
%225 = fptrunc double %224 to float
store float %225, ptr %11, align 4
%226 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 0, ptr %3, align 4
%227 = load i32, ptr %3, align 4
%228 = load i32, ptr %2, align 4
%229 = icmp slt i32 %227, %228
br i1 %229, label %.lr.ph8, label %272
.lr.ph8: ; preds = %211
br label %230
230: ; preds = %.lr.ph8, %266
%231 = load i32, ptr %3, align 4
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds %struct.process, ptr %21, i64 %232
%234 = getelementptr inbounds %struct.process, ptr %233, i32 0, i32 0
%235 = getelementptr inbounds [10 x i8], ptr %234, i64 0, i64 0
%236 = load i8, ptr %235, align 4
%237 = sext i8 %236 to i32
%238 = load i32, ptr %3, align 4
%239 = sext i32 %238 to i64
%240 = getelementptr inbounds %struct.process, ptr %21, i64 %239
%241 = getelementptr inbounds %struct.process, ptr %240, i32 0, i32 0
%242 = getelementptr inbounds [10 x i8], ptr %241, i64 0, i64 1
%243 = load i8, ptr %242, align 1
%244 = sext i8 %243 to i32
%245 = load i32, ptr %3, align 4
%246 = sext i32 %245 to i64
%247 = getelementptr inbounds %struct.process, ptr %21, i64 %246
%248 = getelementptr inbounds %struct.process, ptr %247, i32 0, i32 1
%249 = load i32, ptr %248, align 4
%250 = load i32, ptr %3, align 4
%251 = sext i32 %250 to i64
%252 = getelementptr inbounds %struct.process, ptr %21, i64 %251
%253 = getelementptr inbounds %struct.process, ptr %252, i32 0, i32 2
%254 = load i32, ptr %253, align 4
%255 = load i32, ptr %3, align 4
%256 = sext i32 %255 to i64
%257 = getelementptr inbounds %struct.scheduling, ptr %24, i64 %256
%258 = getelementptr inbounds %struct.scheduling, ptr %257, i32 0, i32 0
%259 = load i32, ptr %258, align 8
%260 = load i32, ptr %3, align 4
%261 = sext i32 %260 to i64
%262 = getelementptr inbounds %struct.scheduling, ptr %24, i64 %261
%263 = getelementptr inbounds %struct.scheduling, ptr %262, i32 0, i32 1
%264 = load i32, ptr %263, align 4
%265 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %237, i32 noundef %244, i32 noundef %249, i32 noundef %254, i32 noundef %259, i32 noundef %264)
br label %266
266: ; preds = %230
%267 = load i32, ptr %3, align 4
%268 = add nsw i32 %267, 1
store i32 %268, ptr %3, align 4
%269 = load i32, ptr %3, align 4
%270 = load i32, ptr %2, align 4
%271 = icmp slt i32 %269, %270
br i1 %271, label %230, label %._crit_edge9, !llvm.loop !11
._crit_edge9: ; preds = %266
br label %272
272: ; preds = %._crit_edge9, %211
%273 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%274 = load float, ptr %11, align 4
%275 = fpext float %274 to double
%276 = load float, ptr %10, align 4
%277 = fpext float %276 to double
%278 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, double noundef %275, double noundef %277)
store i32 0, ptr %1, align 4
%279 = load ptr, ptr %13, align 8
call void @llvm.stackrestore(ptr %279)
%280 = load i32, ptr %1, align 4
ret i32 %280
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmptyh9bmj5.c'
source_filename = "/tmp/tmptyh9bmj5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"0 minutes\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"1 hour\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"%u hours\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"%u minutes\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"1 minute\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @rtv_sec_to_hr_mn_str(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%8 = call ptr @malloc(i32 noundef 30)
store ptr %8, ptr %4, align 8
%9 = load i32, ptr %3, align 4
%10 = icmp ult i32 %9, 60
br i1 %10, label %11, label %15
11: ; preds = %1
%12 = load ptr, ptr %4, align 8
%13 = call i32 @sprintf(ptr noundef %12, ptr noundef @.str)
%14 = load ptr, ptr %4, align 8
store ptr %14, ptr %2, align 8
br label %105
15: ; preds = %1
%16 = load i32, ptr %3, align 4
%17 = udiv i32 %16, 60
store i32 %17, ptr %6, align 4
%18 = load i32, ptr %3, align 4
%19 = urem i32 %18, 60
%20 = icmp ugt i32 %19, 30
br i1 %20, label %21, label %24
21: ; preds = %15
%22 = load i32, ptr %6, align 4
%23 = add i32 %22, 1
store i32 %23, ptr %6, align 4
br label %24
24: ; preds = %21, %15
%25 = load i32, ptr %6, align 4
%26 = udiv i32 %25, 60
store i32 %26, ptr %7, align 4
%27 = load i32, ptr %6, align 4
%28 = urem i32 %27, 60
store i32 %28, ptr %6, align 4
%29 = load ptr, ptr %4, align 8
store ptr %29, ptr %5, align 8
%30 = load i32, ptr %7, align 4
%31 = icmp eq i32 %30, 1
br i1 %31, label %32, label %38
32: ; preds = %24
%33 = load ptr, ptr %5, align 8
%34 = call i32 @sprintf(ptr noundef %33, ptr noundef @.str.1)
%35 = load ptr, ptr %5, align 8
%36 = sext i32 %34 to i64
%37 = getelementptr inbounds i8, ptr %35, i64 %36
store ptr %37, ptr %5, align 8
br label %49
38: ; preds = %24
%39 = load i32, ptr %7, align 4
%40 = icmp ugt i32 %39, 1
br i1 %40, label %41, label %48
41: ; preds = %38
%42 = load ptr, ptr %5, align 8
%43 = load i32, ptr %7, align 4
%44 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %42, i32 noundef 29, ptr noundef @.str.2, i32 noundef %43)
%45 = load ptr, ptr %5, align 8
%46 = sext i32 %44 to i64
%47 = getelementptr inbounds i8, ptr %45, i64 %46
store ptr %47, ptr %5, align 8
br label %48
48: ; preds = %41, %38
br label %49
49: ; preds = %48, %32
%50 = load ptr, ptr %5, align 8
%51 = load ptr, ptr %4, align 8
%52 = icmp ne ptr %50, %51
br i1 %52, label %53, label %69
53: ; preds = %49
%54 = load i32, ptr %6, align 4
%55 = icmp ne i32 %54, 0
br i1 %55, label %56, label %69
56: ; preds = %53
%57 = load ptr, ptr %5, align 8
%58 = load ptr, ptr %5, align 8
%59 = load ptr, ptr %4, align 8
%60 = ptrtoint ptr %58 to i64
%61 = ptrtoint ptr %59 to i64
%62 = sub i64 %60, %61
%63 = sub nsw i64 29, %62
%64 = trunc i64 %63 to i32
%65 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %57, i32 noundef %64, ptr noundef @.str.3)
%66 = load ptr, ptr %5, align 8
%67 = sext i32 %65 to i64
%68 = getelementptr inbounds i8, ptr %66, i64 %67
store ptr %68, ptr %5, align 8
br label %69
69: ; preds = %56, %53, %49
%70 = load i32, ptr %6, align 4
%71 = icmp ugt i32 %70, 1
br i1 %71, label %72, label %86
72: ; preds = %69
%73 = load ptr, ptr %5, align 8
%74 = load ptr, ptr %5, align 8
%75 = load ptr, ptr %4, align 8
%76 = ptrtoint ptr %74 to i64
%77 = ptrtoint ptr %75 to i64
%78 = sub i64 %76, %77
%79 = sub nsw i64 29, %78
%80 = trunc i64 %79 to i32
%81 = load i32, ptr %6, align 4
%82 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %73, i32 noundef %80, ptr noundef @.str.4, i32 noundef %81)
%83 = load ptr, ptr %5, align 8
%84 = sext i32 %82 to i64
%85 = getelementptr inbounds i8, ptr %83, i64 %84
store ptr %85, ptr %5, align 8
br label %103
86: ; preds = %69
%87 = load i32, ptr %6, align 4
%88 = icmp eq i32 %87, 1
br i1 %88, label %89, label %102
89: ; preds = %86
%90 = load ptr, ptr %5, align 8
%91 = load ptr, ptr %5, align 8
%92 = load ptr, ptr %4, align 8
%93 = ptrtoint ptr %91 to i64
%94 = ptrtoint ptr %92 to i64
%95 = sub i64 %93, %94
%96 = sub nsw i64 29, %95
%97 = trunc i64 %96 to i32
%98 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %90, i32 noundef %97, ptr noundef @.str.5)
%99 = load ptr, ptr %5, align 8
%100 = sext i32 %98 to i64
%101 = getelementptr inbounds i8, ptr %99, i64 %100
store ptr %101, ptr %5, align 8
br label %102
102: ; preds = %89, %86
br label %103
103: ; preds = %102, %72
%104 = load ptr, ptr %4, align 8
store ptr %104, ptr %2, align 8
br label %105
105: ; preds = %103, %11
%106 = load ptr, ptr %2, align 8
ret ptr %106
}
declare ptr @malloc(i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptyh9bmj5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"0 minutes\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"1 hour\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"%u hours\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"%u minutes\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"1 minute\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @rtv_sec_to_hr_mn_str(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%8 = call ptr @malloc(i32 noundef 30)
store ptr %8, ptr %4, align 8
%9 = load i32, ptr %3, align 4
%10 = icmp ult i32 %9, 60
br i1 %10, label %11, label %15
11: ; preds = %1
%12 = load ptr, ptr %4, align 8
%13 = call i32 @sprintf(ptr noundef %12, ptr noundef @.str)
%14 = load ptr, ptr %4, align 8
store ptr %14, ptr %2, align 8
br label %105
15: ; preds = %1
%16 = load i32, ptr %3, align 4
%17 = udiv i32 %16, 60
store i32 %17, ptr %6, align 4
%18 = load i32, ptr %3, align 4
%19 = urem i32 %18, 60
%20 = icmp ugt i32 %19, 30
br i1 %20, label %21, label %24
21: ; preds = %15
%22 = load i32, ptr %6, align 4
%23 = add i32 %22, 1
store i32 %23, ptr %6, align 4
br label %24
24: ; preds = %21, %15
%25 = load i32, ptr %6, align 4
%26 = udiv i32 %25, 60
store i32 %26, ptr %7, align 4
%27 = load i32, ptr %6, align 4
%28 = urem i32 %27, 60
store i32 %28, ptr %6, align 4
%29 = load ptr, ptr %4, align 8
store ptr %29, ptr %5, align 8
%30 = load i32, ptr %7, align 4
%31 = icmp eq i32 %30, 1
br i1 %31, label %32, label %38
32: ; preds = %24
%33 = load ptr, ptr %5, align 8
%34 = call i32 @sprintf(ptr noundef %33, ptr noundef @.str.1)
%35 = load ptr, ptr %5, align 8
%36 = sext i32 %34 to i64
%37 = getelementptr inbounds i8, ptr %35, i64 %36
store ptr %37, ptr %5, align 8
br label %49
38: ; preds = %24
%39 = load i32, ptr %7, align 4
%40 = icmp ugt i32 %39, 1
br i1 %40, label %41, label %48
41: ; preds = %38
%42 = load ptr, ptr %5, align 8
%43 = load i32, ptr %7, align 4
%44 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %42, i32 noundef 29, ptr noundef @.str.2, i32 noundef %43)
%45 = load ptr, ptr %5, align 8
%46 = sext i32 %44 to i64
%47 = getelementptr inbounds i8, ptr %45, i64 %46
store ptr %47, ptr %5, align 8
br label %48
48: ; preds = %41, %38
br label %49
49: ; preds = %48, %32
%50 = load ptr, ptr %5, align 8
%51 = load ptr, ptr %4, align 8
%52 = icmp ne ptr %50, %51
br i1 %52, label %53, label %69
53: ; preds = %49
%54 = load i32, ptr %6, align 4
%55 = icmp ne i32 %54, 0
br i1 %55, label %56, label %69
56: ; preds = %53
%57 = load ptr, ptr %5, align 8
%58 = load ptr, ptr %5, align 8
%59 = load ptr, ptr %4, align 8
%60 = ptrtoint ptr %58 to i64
%61 = ptrtoint ptr %59 to i64
%62 = sub i64 %60, %61
%63 = sub nsw i64 29, %62
%64 = trunc i64 %63 to i32
%65 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %57, i32 noundef %64, ptr noundef @.str.3)
%66 = load ptr, ptr %5, align 8
%67 = sext i32 %65 to i64
%68 = getelementptr inbounds i8, ptr %66, i64 %67
store ptr %68, ptr %5, align 8
br label %69
69: ; preds = %56, %53, %49
%70 = load i32, ptr %6, align 4
%71 = icmp ugt i32 %70, 1
br i1 %71, label %72, label %86
72: ; preds = %69
%73 = load ptr, ptr %5, align 8
%74 = load ptr, ptr %5, align 8
%75 = load ptr, ptr %4, align 8
%76 = ptrtoint ptr %74 to i64
%77 = ptrtoint ptr %75 to i64
%78 = sub i64 %76, %77
%79 = sub nsw i64 29, %78
%80 = trunc i64 %79 to i32
%81 = load i32, ptr %6, align 4
%82 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %73, i32 noundef %80, ptr noundef @.str.4, i32 noundef %81)
%83 = load ptr, ptr %5, align 8
%84 = sext i32 %82 to i64
%85 = getelementptr inbounds i8, ptr %83, i64 %84
store ptr %85, ptr %5, align 8
br label %103
86: ; preds = %69
%87 = load i32, ptr %6, align 4
%88 = icmp eq i32 %87, 1
br i1 %88, label %89, label %102
89: ; preds = %86
%90 = load ptr, ptr %5, align 8
%91 = load ptr, ptr %5, align 8
%92 = load ptr, ptr %4, align 8
%93 = ptrtoint ptr %91 to i64
%94 = ptrtoint ptr %92 to i64
%95 = sub i64 %93, %94
%96 = sub nsw i64 29, %95
%97 = trunc i64 %96 to i32
%98 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %90, i32 noundef %97, ptr noundef @.str.5)
%99 = load ptr, ptr %5, align 8
%100 = sext i32 %98 to i64
%101 = getelementptr inbounds i8, ptr %99, i64 %100
store ptr %101, ptr %5, align 8
br label %102
102: ; preds = %89, %86
br label %103
103: ; preds = %102, %72
%104 = load ptr, ptr %4, align 8
store ptr %104, ptr %2, align 8
br label %105
105: ; preds = %103, %11
%106 = load ptr, ptr %2, align 8
ret ptr %106
}
declare ptr @malloc(i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7_3mczaw.c'
source_filename = "/tmp/tmp7_3mczaw.c"
target datalayout = "e-m:e-p270: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 [40 x i8] c"\0A Original\09ASCII\09Decimal\09Parity\09T.Error\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"\0A --------\09-----\09-------\09------\09-------\0A\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"EVEN\09FALSE\0A\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"ODD\09TRUE\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [8 x i8] c"ERROR!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printHandler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %10
5: ; preds = %1
%6 = load i32, ptr @stdout, align 4
%7 = call i32 @fprintf(i32 noundef %6, ptr noundef @.str)
%8 = load i32, ptr @stdout, align 4
%9 = call i32 @fprintf(i32 noundef %8, ptr noundef @.str.1)
br label %10
10: ; preds = %5, %1
%11 = load i32, ptr %2, align 4
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %16
13: ; preds = %10
%14 = load i32, ptr @stdout, align 4
%15 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str.2)
br label %16
16: ; preds = %13, %10
%17 = load i32, ptr %2, align 4
%18 = icmp eq i32 %17, 2
br i1 %18, label %19, label %22
19: ; preds = %16
%20 = load i32, ptr @stdout, align 4
%21 = call i32 @fprintf(i32 noundef %20, ptr noundef @.str.3)
br label %22
22: ; preds = %19, %16
%23 = load i32, ptr %2, align 4
%24 = icmp eq i32 %23, 9
br i1 %24, label %25, label %28
25: ; preds = %22
%26 = load i32, ptr @stderr, align 4
%27 = call i32 @fprintf(i32 noundef %26, ptr noundef @.str.4)
br label %28
28: ; preds = %25, %22
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/tmp7_3mczaw.c"
target datalayout = "e-m:e-p270: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 [40 x i8] c"\0A Original\09ASCII\09Decimal\09Parity\09T.Error\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"\0A --------\09-----\09-------\09------\09-------\0A\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"EVEN\09FALSE\0A\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"ODD\09TRUE\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [8 x i8] c"ERROR!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printHandler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %10
5: ; preds = %1
%6 = load i32, ptr @stdout, align 4
%7 = call i32 @fprintf(i32 noundef %6, ptr noundef @.str)
%8 = load i32, ptr @stdout, align 4
%9 = call i32 @fprintf(i32 noundef %8, ptr noundef @.str.1)
br label %10
10: ; preds = %5, %1
%11 = load i32, ptr %2, align 4
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %16
13: ; preds = %10
%14 = load i32, ptr @stdout, align 4
%15 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str.2)
br label %16
16: ; preds = %13, %10
%17 = load i32, ptr %2, align 4
%18 = icmp eq i32 %17, 2
br i1 %18, label %19, label %22
19: ; preds = %16
%20 = load i32, ptr @stdout, align 4
%21 = call i32 @fprintf(i32 noundef %20, ptr noundef @.str.3)
br label %22
22: ; preds = %19, %16
%23 = load i32, ptr %2, align 4
%24 = icmp eq i32 %23, 9
br i1 %24, label %25, label %28
25: ; preds = %22
%26 = load i32, ptr @stderr, align 4
%27 = call i32 @fprintf(i32 noundef %26, ptr noundef @.str.4)
br label %28
28: ; preds = %25, %22
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/tmpo14cny8x.c'
source_filename = "/tmp/tmpo14cny8x.c"
target datalayout = "e-m:e-p270: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/tmpo14cny8x.c"
target datalayout = "e-m:e-p270: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/tmpfkjos650.c'
source_filename = "/tmp/tmpfkjos650.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PTRACE_SETREGS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ptrace_setregs(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr @PTRACE_SETREGS, align 4
%6 = load i32, ptr %3, align 4
%7 = load ptr, ptr %4, align 8
%8 = call i32 @ptrace(i32 noundef %5, i32 noundef %6, ptr noundef null, ptr noundef %7)
ret i32 %8
}
declare i32 @ptrace(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfkjos650.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PTRACE_SETREGS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ptrace_setregs(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr @PTRACE_SETREGS, align 4
%6 = load i32, ptr %3, align 4
%7 = load ptr, ptr %4, align 8
%8 = call i32 @ptrace(i32 noundef %5, i32 noundef %6, ptr noundef null, ptr noundef %7)
ret i32 %8
}
declare i32 @ptrace(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzk9n0ocm.c'
source_filename = "/tmp/tmpzk9n0ocm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [19 x i8] c"I become the guy.\0A\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"Oh, my keyboard!\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 ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %1, align 4
%11 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%12 = load i32, ptr %2, align 4
%13 = add nsw i32 %12, 1
%14 = zext i32 %13 to i64
%15 = call ptr @llvm.stacksave()
store ptr %15, ptr %6, align 8
%16 = alloca i32, i64 %14, align 16
store i64 %14, ptr %7, align 8
store i32 0, ptr %8, align 4
br label %17
17: ; preds = %25, %0
%18 = load i32, ptr %8, align 4
%19 = load i32, ptr %2, align 4
%20 = icmp sle i32 %18, %19
br i1 %20, label %21, label %28
21: ; preds = %17
%22 = load i32, ptr %8, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, ptr %16, i64 %23
store i32 0, ptr %24, align 4
br label %25
25: ; preds = %21
%26 = load i32, ptr %8, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %8, align 4
br label %17, !llvm.loop !6
28: ; preds = %17
%29 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
br label %30
30: ; preds = %34, %28
%31 = load i32, ptr %3, align 4
%32 = add nsw i32 %31, -1
store i32 %32, ptr %3, align 4
%33 = icmp ne i32 %31, 0
br i1 %33, label %34, label %39
34: ; preds = %30
%35 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
%36 = load i32, ptr %5, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %16, i64 %37
store i32 1, ptr %38, align 4
br label %30, !llvm.loop !8
39: ; preds = %30
%40 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
br label %41
41: ; preds = %45, %39
%42 = load i32, ptr %4, align 4
%43 = add nsw i32 %42, -1
store i32 %43, ptr %4, align 4
%44 = icmp ne i32 %42, 0
br i1 %44, label %45, label %50
45: ; preds = %41
%46 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
%47 = load i32, ptr %5, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i32, ptr %16, i64 %48
store i32 1, ptr %49, align 4
br label %41, !llvm.loop !9
50: ; preds = %41
store i32 0, ptr %10, align 4
store i32 1, ptr %9, align 4
br label %51
51: ; preds = %63, %50
%52 = load i32, ptr %9, align 4
%53 = load i32, ptr %2, align 4
%54 = icmp sle i32 %52, %53
br i1 %54, label %55, label %66
55: ; preds = %51
%56 = load i32, ptr %9, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, ptr %16, i64 %57
%59 = load i32, ptr %58, align 4
%60 = icmp eq i32 %59, 0
br i1 %60, label %61, label %62
61: ; preds = %55
store i32 1, ptr %10, align 4
br label %66
62: ; preds = %55
br label %63
63: ; preds = %62
%64 = load i32, ptr %9, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %9, align 4
br label %51, !llvm.loop !10
66: ; preds = %61, %51
%67 = load i32, ptr %10, align 4
%68 = icmp eq i32 %67, 0
br i1 %68, label %69, label %71
69: ; preds = %66
%70 = call i32 @printf(ptr noundef @.str.1)
br label %73
71: ; preds = %66
%72 = call i32 @printf(ptr noundef @.str.2)
br label %73
73: ; preds = %71, %69
store i32 0, ptr %1, align 4
%74 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %74)
%75 = load i32, ptr %1, align 4
ret i32 %75
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @printf(ptr noundef) #1
; 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"}
!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/tmpzk9n0ocm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [19 x i8] c"I become the guy.\0A\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"Oh, my keyboard!\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 ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %1, align 4
%11 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%12 = load i32, ptr %2, align 4
%13 = add nsw i32 %12, 1
%14 = zext i32 %13 to i64
%15 = call ptr @llvm.stacksave()
store ptr %15, ptr %6, align 8
%16 = alloca i32, i64 %14, align 16
store i64 %14, ptr %7, align 8
store i32 0, ptr %8, align 4
%17 = load i32, ptr %8, align 4
%18 = load i32, ptr %2, align 4
%19 = icmp sle i32 %17, %18
br i1 %19, label %.lr.ph, label %30
.lr.ph: ; preds = %0
br label %20
20: ; preds = %.lr.ph, %24
%21 = load i32, ptr %8, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %16, i64 %22
store i32 0, ptr %23, align 4
br label %24
24: ; preds = %20
%25 = load i32, ptr %8, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %8, align 4
%27 = load i32, ptr %8, align 4
%28 = load i32, ptr %2, align 4
%29 = icmp sle i32 %27, %28
br i1 %29, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %30
30: ; preds = %._crit_edge, %0
%31 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%32 = load i32, ptr %3, align 4
%33 = add nsw i32 %32, -1
store i32 %33, ptr %3, align 4
%34 = icmp ne i32 %32, 0
br i1 %34, label %.lr.ph2, label %43
.lr.ph2: ; preds = %30
br label %35
35: ; preds = %.lr.ph2, %35
%36 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
%37 = load i32, ptr %5, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i32, ptr %16, i64 %38
store i32 1, ptr %39, align 4
%40 = load i32, ptr %3, align 4
%41 = add nsw i32 %40, -1
store i32 %41, ptr %3, align 4
%42 = icmp ne i32 %40, 0
br i1 %42, label %35, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %35
br label %43
43: ; preds = %._crit_edge3, %30
%44 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%45 = load i32, ptr %4, align 4
%46 = add nsw i32 %45, -1
store i32 %46, ptr %4, align 4
%47 = icmp ne i32 %45, 0
br i1 %47, label %.lr.ph5, label %56
.lr.ph5: ; preds = %43
br label %48
48: ; preds = %.lr.ph5, %48
%49 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
%50 = load i32, ptr %5, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i32, ptr %16, i64 %51
store i32 1, ptr %52, align 4
%53 = load i32, ptr %4, align 4
%54 = add nsw i32 %53, -1
store i32 %54, ptr %4, align 4
%55 = icmp ne i32 %53, 0
br i1 %55, label %48, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %48
br label %56
56: ; preds = %._crit_edge6, %43
store i32 0, ptr %10, align 4
store i32 1, ptr %9, align 4
%57 = load i32, ptr %9, align 4
%58 = load i32, ptr %2, align 4
%59 = icmp sle i32 %57, %58
br i1 %59, label %.lr.ph8, label %.loopexit
.lr.ph8: ; preds = %56
br label %60
60: ; preds = %.lr.ph8, %68
%61 = load i32, ptr %9, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i32, ptr %16, i64 %62
%64 = load i32, ptr %63, align 4
%65 = icmp eq i32 %64, 0
br i1 %65, label %66, label %67
66: ; preds = %60
store i32 1, ptr %10, align 4
br label %74
67: ; preds = %60
br label %68
68: ; preds = %67
%69 = load i32, ptr %9, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %9, align 4
%71 = load i32, ptr %9, align 4
%72 = load i32, ptr %2, align 4
%73 = icmp sle i32 %71, %72
br i1 %73, label %60, label %..loopexit_crit_edge, !llvm.loop !10
..loopexit_crit_edge: ; preds = %68
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %56
br label %74
74: ; preds = %.loopexit, %66
%75 = load i32, ptr %10, align 4
%76 = icmp eq i32 %75, 0
br i1 %76, label %77, label %79
77: ; preds = %74
%78 = call i32 @printf(ptr noundef @.str.1)
br label %81
79: ; preds = %74
%80 = call i32 @printf(ptr noundef @.str.2)
br label %81
81: ; preds = %79, %77
store i32 0, ptr %1, align 4
%82 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %82)
%83 = load i32, ptr %1, align 4
ret i32 %83
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @printf(ptr noundef) #1
; 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmp34344_hg.c'
source_filename = "/tmp/tmp34344_hg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter a and b: \00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"Before change: a = %.1lf and b = %.1lf\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store i32 0, ptr %1, align 4
store double 5.500000e+00, ptr %4, align 8
store double 2.000000e+00, ptr %5, align 8
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @checkInput(ptr noundef %2, ptr noundef %3)
%8 = load double, ptr %2, align 8
%9 = load double, ptr %3, align 8
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %8, double noundef %9)
%11 = call i32 @swapIfGreater(ptr noundef %2, ptr noundef %3)
%12 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %12
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @checkInput(ptr noundef, ptr noundef) #1
declare i32 @swapIfGreater(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/tmp34344_hg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter a and b: \00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"Before change: a = %.1lf and b = %.1lf\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store i32 0, ptr %1, align 4
store double 5.500000e+00, ptr %4, align 8
store double 2.000000e+00, ptr %5, align 8
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @checkInput(ptr noundef %2, ptr noundef %3)
%8 = load double, ptr %2, align 8
%9 = load double, ptr %3, align 8
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %8, double noundef %9)
%11 = call i32 @swapIfGreater(ptr noundef %2, ptr noundef %3)
%12 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %12
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @checkInput(ptr noundef, ptr noundef) #1
declare i32 @swapIfGreater(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/tmpq56s8oq2.c'
source_filename = "/tmp/tmpq56s8oq2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getop(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
br label %6
6: ; preds = %18, %1
%7 = call i32 (...) @getch()
store i32 %7, ptr %5, align 4
%8 = trunc i32 %7 to i8
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 0
store i8 %8, ptr %10, align 1
%11 = sext i8 %8 to i32
%12 = icmp eq i32 %11, 32
br i1 %12, label %16, label %13
13: ; preds = %6
%14 = load i32, ptr %5, align 4
%15 = icmp eq i32 %14, 9
br label %16
16: ; preds = %13, %6
%17 = phi i1 [ true, %6 ], [ %15, %13 ]
br i1 %17, label %18, label %19
18: ; preds = %16
br label %6, !llvm.loop !6
19: ; preds = %16
%20 = load i32, ptr %5, align 4
%21 = icmp eq i32 %20, 45
br i1 %21, label %25, label %22
22: ; preds = %19
%23 = load i32, ptr %5, align 4
%24 = icmp eq i32 %23, 43
br i1 %24, label %25, label %47
25: ; preds = %22, %19
%26 = call i32 (...) @getch()
store i32 %26, ptr %5, align 4
%27 = trunc i32 %26 to i8
%28 = load ptr, ptr %3, align 8
%29 = getelementptr inbounds i8, ptr %28, i64 1
store i8 %27, ptr %29, align 1
%30 = load i32, ptr %5, align 4
%31 = trunc i32 %30 to i8
%32 = call i64 @isdigit(i8 noundef signext %31)
%33 = icmp ne i64 %32, 0
br i1 %33, label %34, label %37
34: ; preds = %25
%35 = load ptr, ptr %3, align 8
%36 = getelementptr inbounds i8, ptr %35, i64 2
store i8 0, ptr %36, align 1
store i32 1, ptr %4, align 4
br label %46
37: ; preds = %25
%38 = load i32, ptr %5, align 4
%39 = call i32 @ungetch(i32 noundef %38)
%40 = load ptr, ptr %3, align 8
%41 = getelementptr inbounds i8, ptr %40, i64 0
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
store i32 %43, ptr %5, align 4
%44 = load ptr, ptr %3, align 8
%45 = getelementptr inbounds i8, ptr %44, i64 1
store i8 0, ptr %45, align 1
store i32 0, ptr %4, align 4
br label %46
46: ; preds = %37, %34
br label %50
47: ; preds = %22
%48 = load ptr, ptr %3, align 8
%49 = getelementptr inbounds i8, ptr %48, i64 1
store i8 0, ptr %49, align 1
store i32 0, ptr %4, align 4
br label %50
50: ; preds = %47, %46
%51 = load i32, ptr %5, align 4
%52 = trunc i32 %51 to i8
%53 = call i64 @isdigit(i8 noundef signext %52)
%54 = icmp ne i64 %53, 0
br i1 %54, label %60, label %55
55: ; preds = %50
%56 = load i32, ptr %5, align 4
%57 = icmp ne i32 %56, 46
br i1 %57, label %58, label %60
58: ; preds = %55
%59 = load i32, ptr %5, align 4
store i32 %59, ptr %2, align 4
br label %106
60: ; preds = %55, %50
%61 = load i32, ptr %5, align 4
%62 = trunc i32 %61 to i8
%63 = call i64 @isdigit(i8 noundef signext %62)
%64 = icmp ne i64 %63, 0
br i1 %64, label %65, label %78
65: ; preds = %60
br label %66
66: ; preds = %76, %65
%67 = call i32 (...) @getch()
store i32 %67, ptr %5, align 4
%68 = trunc i32 %67 to i8
%69 = load ptr, ptr %3, align 8
%70 = load i32, ptr %4, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %4, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8, ptr %69, i64 %72
store i8 %68, ptr %73, align 1
%74 = call i64 @isdigit(i8 noundef signext %68)
%75 = icmp ne i64 %74, 0
br i1 %75, label %76, label %77
76: ; preds = %66
br label %66, !llvm.loop !8
77: ; preds = %66
br label %78
78: ; preds = %77, %60
%79 = load i32, ptr %5, align 4
%80 = icmp eq i32 %79, 46
br i1 %80, label %81, label %94
81: ; preds = %78
br label %82
82: ; preds = %92, %81
%83 = call i32 (...) @getch()
store i32 %83, ptr %5, align 4
%84 = trunc i32 %83 to i8
%85 = load ptr, ptr %3, align 8
%86 = load i32, ptr %4, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %4, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i8, ptr %85, i64 %88
store i8 %84, ptr %89, align 1
%90 = call i64 @isdigit(i8 noundef signext %84)
%91 = icmp ne i64 %90, 0
br i1 %91, label %92, label %93
92: ; preds = %82
br label %82, !llvm.loop !9
93: ; preds = %82
br label %94
94: ; preds = %93, %78
%95 = load ptr, ptr %3, align 8
%96 = load i32, ptr %4, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i8, ptr %95, i64 %97
store i8 0, ptr %98, align 1
%99 = load i32, ptr %5, align 4
%100 = load i32, ptr @EOF, align 4
%101 = icmp ne i32 %99, %100
br i1 %101, label %102, label %105
102: ; preds = %94
%103 = load i32, ptr %5, align 4
%104 = call i32 @ungetch(i32 noundef %103)
br label %105
105: ; preds = %102, %94
store i32 48, ptr %2, align 4
br label %106
106: ; preds = %105, %58
%107 = load i32, ptr %2, align 4
ret i32 %107
}
declare i32 @getch(...) #1
declare i64 @isdigit(i8 noundef signext) #1
declare i32 @ungetch(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq56s8oq2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getop(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
br label %6
6: ; preds = %16, %1
%7 = call i32 (...) @getch()
store i32 %7, ptr %5, align 4
%8 = trunc i32 %7 to i8
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 0
store i8 %8, ptr %10, align 1
%11 = sext i8 %8 to i32
%12 = icmp eq i32 %11, 32
br i1 %12, label %16, label %13
13: ; preds = %6
%14 = load i32, ptr %5, align 4
%15 = icmp eq i32 %14, 9
br label %16
16: ; preds = %13, %6
%17 = phi i1 [ true, %6 ], [ %15, %13 ]
br i1 %17, label %6, label %18, !llvm.loop !6
18: ; preds = %16
%19 = load i32, ptr %5, align 4
%20 = icmp eq i32 %19, 45
br i1 %20, label %24, label %21
21: ; preds = %18
%22 = load i32, ptr %5, align 4
%23 = icmp eq i32 %22, 43
br i1 %23, label %24, label %46
24: ; preds = %21, %18
%25 = call i32 (...) @getch()
store i32 %25, ptr %5, align 4
%26 = trunc i32 %25 to i8
%27 = load ptr, ptr %3, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 1
store i8 %26, ptr %28, align 1
%29 = load i32, ptr %5, align 4
%30 = trunc i32 %29 to i8
%31 = call i64 @isdigit(i8 noundef signext %30)
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %24
%34 = load ptr, ptr %3, align 8
%35 = getelementptr inbounds i8, ptr %34, i64 2
store i8 0, ptr %35, align 1
store i32 1, ptr %4, align 4
br label %45
36: ; preds = %24
%37 = load i32, ptr %5, align 4
%38 = call i32 @ungetch(i32 noundef %37)
%39 = load ptr, ptr %3, align 8
%40 = getelementptr inbounds i8, ptr %39, i64 0
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
store i32 %42, ptr %5, align 4
%43 = load ptr, ptr %3, align 8
%44 = getelementptr inbounds i8, ptr %43, i64 1
store i8 0, ptr %44, align 1
store i32 0, ptr %4, align 4
br label %45
45: ; preds = %36, %33
br label %49
46: ; preds = %21
%47 = load ptr, ptr %3, align 8
%48 = getelementptr inbounds i8, ptr %47, i64 1
store i8 0, ptr %48, align 1
store i32 0, ptr %4, align 4
br label %49
49: ; preds = %46, %45
%50 = load i32, ptr %5, align 4
%51 = trunc i32 %50 to i8
%52 = call i64 @isdigit(i8 noundef signext %51)
%53 = icmp ne i64 %52, 0
br i1 %53, label %59, label %54
54: ; preds = %49
%55 = load i32, ptr %5, align 4
%56 = icmp ne i32 %55, 46
br i1 %56, label %57, label %59
57: ; preds = %54
%58 = load i32, ptr %5, align 4
store i32 %58, ptr %2, align 4
br label %103
59: ; preds = %54, %49
%60 = load i32, ptr %5, align 4
%61 = trunc i32 %60 to i8
%62 = call i64 @isdigit(i8 noundef signext %61)
%63 = icmp ne i64 %62, 0
br i1 %63, label %64, label %76
64: ; preds = %59
br label %65
65: ; preds = %65, %64
%66 = call i32 (...) @getch()
store i32 %66, ptr %5, align 4
%67 = trunc i32 %66 to i8
%68 = load ptr, ptr %3, align 8
%69 = load i32, ptr %4, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %4, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i8, ptr %68, i64 %71
store i8 %67, ptr %72, align 1
%73 = call i64 @isdigit(i8 noundef signext %67)
%74 = icmp ne i64 %73, 0
br i1 %74, label %65, label %75, !llvm.loop !8
75: ; preds = %65
br label %76
76: ; preds = %75, %59
%77 = load i32, ptr %5, align 4
%78 = icmp eq i32 %77, 46
br i1 %78, label %79, label %91
79: ; preds = %76
br label %80
80: ; preds = %80, %79
%81 = call i32 (...) @getch()
store i32 %81, ptr %5, align 4
%82 = trunc i32 %81 to i8
%83 = load ptr, ptr %3, align 8
%84 = load i32, ptr %4, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %4, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i8, ptr %83, i64 %86
store i8 %82, ptr %87, align 1
%88 = call i64 @isdigit(i8 noundef signext %82)
%89 = icmp ne i64 %88, 0
br i1 %89, label %80, label %90, !llvm.loop !9
90: ; preds = %80
br label %91
91: ; preds = %90, %76
%92 = load ptr, ptr %3, align 8
%93 = load i32, ptr %4, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds i8, ptr %92, i64 %94
store i8 0, ptr %95, align 1
%96 = load i32, ptr %5, align 4
%97 = load i32, ptr @EOF, align 4
%98 = icmp ne i32 %96, %97
br i1 %98, label %99, label %102
99: ; preds = %91
%100 = load i32, ptr %5, align 4
%101 = call i32 @ungetch(i32 noundef %100)
br label %102
102: ; preds = %99, %91
store i32 48, ptr %2, align 4
br label %103
103: ; preds = %102, %57
%104 = load i32, ptr %2, align 4
ret i32 %104
}
declare i32 @getch(...) #1
declare i64 @isdigit(i8 noundef signext) #1
declare i32 @ungetch(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpxyh6w25h.c'
source_filename = "/tmp/tmpxyh6w25h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FSE_decompress_usingDTable(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, i64 noundef %5) #0 {
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca ptr, align 8
%13 = alloca i64, align 8
store ptr %0, ptr %8, align 8
store i64 %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store i64 %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store i64 %5, ptr %13, align 8
%14 = load i64, ptr %13, align 8
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %23
16: ; preds = %6
%17 = load ptr, ptr %8, align 8
%18 = load i64, ptr %9, align 8
%19 = load ptr, ptr %10, align 8
%20 = load i64, ptr %11, align 8
%21 = load ptr, ptr %12, align 8
%22 = call i64 @FSE_decompress_usingDTable_generic(ptr noundef %17, i64 noundef %18, ptr noundef %19, i64 noundef %20, ptr noundef %21, i32 noundef 1)
store i64 %22, ptr %7, align 8
br label %30
23: ; preds = %6
%24 = load ptr, ptr %8, align 8
%25 = load i64, ptr %9, align 8
%26 = load ptr, ptr %10, align 8
%27 = load i64, ptr %11, align 8
%28 = load ptr, ptr %12, align 8
%29 = call i64 @FSE_decompress_usingDTable_generic(ptr noundef %24, i64 noundef %25, ptr noundef %26, i64 noundef %27, ptr noundef %28, i32 noundef 0)
store i64 %29, ptr %7, align 8
br label %30
30: ; preds = %23, %16
%31 = load i64, ptr %7, align 8
ret i64 %31
}
declare i64 @FSE_decompress_usingDTable_generic(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxyh6w25h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FSE_decompress_usingDTable(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, i64 noundef %5) #0 {
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca ptr, align 8
%13 = alloca i64, align 8
store ptr %0, ptr %8, align 8
store i64 %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store i64 %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store i64 %5, ptr %13, align 8
%14 = load i64, ptr %13, align 8
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %23
16: ; preds = %6
%17 = load ptr, ptr %8, align 8
%18 = load i64, ptr %9, align 8
%19 = load ptr, ptr %10, align 8
%20 = load i64, ptr %11, align 8
%21 = load ptr, ptr %12, align 8
%22 = call i64 @FSE_decompress_usingDTable_generic(ptr noundef %17, i64 noundef %18, ptr noundef %19, i64 noundef %20, ptr noundef %21, i32 noundef 1)
store i64 %22, ptr %7, align 8
br label %30
23: ; preds = %6
%24 = load ptr, ptr %8, align 8
%25 = load i64, ptr %9, align 8
%26 = load ptr, ptr %10, align 8
%27 = load i64, ptr %11, align 8
%28 = load ptr, ptr %12, align 8
%29 = call i64 @FSE_decompress_usingDTable_generic(ptr noundef %24, i64 noundef %25, ptr noundef %26, i64 noundef %27, ptr noundef %28, i32 noundef 0)
store i64 %29, ptr %7, align 8
br label %30
30: ; preds = %23, %16
%31 = load i64, ptr %7, align 8
ret i64 %31
}
declare i64 @FSE_decompress_usingDTable_generic(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyenbvog0.c'
source_filename = "/tmp/tmpyenbvog0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: alwaysinline nounwind sspstrong uwtable
define weak dso_local void @__softboundmpx_spatial_store_dereference_check(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%9 = load ptr, ptr %7, align 8
%10 = load ptr, ptr %5, align 8
%11 = icmp ult ptr %9, %10
br i1 %11, label %18, label %12
12: ; preds = %4
%13 = load ptr, ptr %7, align 8
%14 = load i64, ptr %8, align 8
%15 = getelementptr inbounds i8, ptr %13, i64 %14
%16 = load ptr, ptr %6, align 8
%17 = icmp ugt ptr %15, %16
br i1 %17, label %18, label %20
18: ; preds = %12, %4
%19 = call i32 (...) @__softboundmpx_abort()
br label %20
20: ; preds = %18, %12
ret void
}
declare i32 @__softboundmpx_abort(...) #1
attributes #0 = { alwaysinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyenbvog0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: alwaysinline nounwind sspstrong uwtable
define weak dso_local void @__softboundmpx_spatial_store_dereference_check(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%9 = load ptr, ptr %7, align 8
%10 = load ptr, ptr %5, align 8
%11 = icmp ult ptr %9, %10
br i1 %11, label %18, label %12
12: ; preds = %4
%13 = load ptr, ptr %7, align 8
%14 = load i64, ptr %8, align 8
%15 = getelementptr inbounds i8, ptr %13, i64 %14
%16 = load ptr, ptr %6, align 8
%17 = icmp ugt ptr %15, %16
br i1 %17, label %18, label %20
18: ; preds = %12, %4
%19 = call i32 (...) @__softboundmpx_abort()
br label %20
20: ; preds = %18, %12
ret void
}
declare i32 @__softboundmpx_abort(...) #1
attributes #0 = { alwaysinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpglneuqyq.c'
source_filename = "/tmp/tmpglneuqyq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 20, ptr %2, align 4
br label %3
3: ; preds = %81, %0
%4 = load i32, ptr %2, align 4
%5 = srem i32 %4, 2
%6 = icmp ne i32 %5, 0
br i1 %6, label %79, label %7
7: ; preds = %3
%8 = load i32, ptr %2, align 4
%9 = srem i32 %8, 3
%10 = icmp ne i32 %9, 0
br i1 %10, label %79, label %11
11: ; preds = %7
%12 = load i32, ptr %2, align 4
%13 = srem i32 %12, 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %79, label %15
15: ; preds = %11
%16 = load i32, ptr %2, align 4
%17 = srem i32 %16, 5
%18 = icmp ne i32 %17, 0
br i1 %18, label %79, label %19
19: ; preds = %15
%20 = load i32, ptr %2, align 4
%21 = srem i32 %20, 6
%22 = icmp ne i32 %21, 0
br i1 %22, label %79, label %23
23: ; preds = %19
%24 = load i32, ptr %2, align 4
%25 = srem i32 %24, 7
%26 = icmp ne i32 %25, 0
br i1 %26, label %79, label %27
27: ; preds = %23
%28 = load i32, ptr %2, align 4
%29 = srem i32 %28, 8
%30 = icmp ne i32 %29, 0
br i1 %30, label %79, label %31
31: ; preds = %27
%32 = load i32, ptr %2, align 4
%33 = srem i32 %32, 9
%34 = icmp ne i32 %33, 0
br i1 %34, label %79, label %35
35: ; preds = %31
%36 = load i32, ptr %2, align 4
%37 = srem i32 %36, 10
%38 = icmp ne i32 %37, 0
br i1 %38, label %79, label %39
39: ; preds = %35
%40 = load i32, ptr %2, align 4
%41 = srem i32 %40, 11
%42 = icmp ne i32 %41, 0
br i1 %42, label %79, label %43
43: ; preds = %39
%44 = load i32, ptr %2, align 4
%45 = srem i32 %44, 12
%46 = icmp ne i32 %45, 0
br i1 %46, label %79, label %47
47: ; preds = %43
%48 = load i32, ptr %2, align 4
%49 = srem i32 %48, 13
%50 = icmp ne i32 %49, 0
br i1 %50, label %79, label %51
51: ; preds = %47
%52 = load i32, ptr %2, align 4
%53 = srem i32 %52, 14
%54 = icmp ne i32 %53, 0
br i1 %54, label %79, label %55
55: ; preds = %51
%56 = load i32, ptr %2, align 4
%57 = srem i32 %56, 15
%58 = icmp ne i32 %57, 0
br i1 %58, label %79, label %59
59: ; preds = %55
%60 = load i32, ptr %2, align 4
%61 = srem i32 %60, 16
%62 = icmp ne i32 %61, 0
br i1 %62, label %79, label %63
63: ; preds = %59
%64 = load i32, ptr %2, align 4
%65 = srem i32 %64, 17
%66 = icmp ne i32 %65, 0
br i1 %66, label %79, label %67
67: ; preds = %63
%68 = load i32, ptr %2, align 4
%69 = srem i32 %68, 18
%70 = icmp ne i32 %69, 0
br i1 %70, label %79, label %71
71: ; preds = %67
%72 = load i32, ptr %2, align 4
%73 = srem i32 %72, 19
%74 = icmp ne i32 %73, 0
br i1 %74, label %79, label %75
75: ; preds = %71
%76 = load i32, ptr %2, align 4
%77 = srem i32 %76, 20
%78 = icmp ne i32 %77, 0
br label %79
79: ; preds = %75, %71, %67, %63, %59, %55, %51, %47, %43, %39, %35, %31, %27, %23, %19, %15, %11, %7, %3
%80 = phi i1 [ true, %71 ], [ true, %67 ], [ true, %63 ], [ true, %59 ], [ true, %55 ], [ true, %51 ], [ true, %47 ], [ true, %43 ], [ true, %39 ], [ true, %35 ], [ true, %31 ], [ true, %27 ], [ true, %23 ], [ true, %19 ], [ true, %15 ], [ true, %11 ], [ true, %7 ], [ true, %3 ], [ %78, %75 ]
br i1 %80, label %81, label %84
81: ; preds = %79
%82 = load i32, ptr %2, align 4
%83 = add nsw i32 %82, 20
store i32 %83, ptr %2, align 4
br label %3, !llvm.loop !6
84: ; preds = %79
%85 = load i32, ptr %2, align 4
%86 = call i32 @printf(ptr noundef @.str, i32 noundef %85)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpglneuqyq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 20, ptr %2, align 4
br label %3
3: ; preds = %81, %0
%4 = load i32, ptr %2, align 4
%5 = srem i32 %4, 2
%6 = icmp ne i32 %5, 0
br i1 %6, label %79, label %7
7: ; preds = %3
%8 = load i32, ptr %2, align 4
%9 = srem i32 %8, 3
%10 = icmp ne i32 %9, 0
br i1 %10, label %79, label %11
11: ; preds = %7
%12 = load i32, ptr %2, align 4
%13 = srem i32 %12, 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %79, label %15
15: ; preds = %11
%16 = load i32, ptr %2, align 4
%17 = srem i32 %16, 5
%18 = icmp ne i32 %17, 0
br i1 %18, label %79, label %19
19: ; preds = %15
%20 = load i32, ptr %2, align 4
%21 = srem i32 %20, 6
%22 = icmp ne i32 %21, 0
br i1 %22, label %79, label %23
23: ; preds = %19
%24 = load i32, ptr %2, align 4
%25 = srem i32 %24, 7
%26 = icmp ne i32 %25, 0
br i1 %26, label %79, label %27
27: ; preds = %23
%28 = load i32, ptr %2, align 4
%29 = srem i32 %28, 8
%30 = icmp ne i32 %29, 0
br i1 %30, label %79, label %31
31: ; preds = %27
%32 = load i32, ptr %2, align 4
%33 = srem i32 %32, 9
%34 = icmp ne i32 %33, 0
br i1 %34, label %79, label %35
35: ; preds = %31
%36 = load i32, ptr %2, align 4
%37 = srem i32 %36, 10
%38 = icmp ne i32 %37, 0
br i1 %38, label %79, label %39
39: ; preds = %35
%40 = load i32, ptr %2, align 4
%41 = srem i32 %40, 11
%42 = icmp ne i32 %41, 0
br i1 %42, label %79, label %43
43: ; preds = %39
%44 = load i32, ptr %2, align 4
%45 = srem i32 %44, 12
%46 = icmp ne i32 %45, 0
br i1 %46, label %79, label %47
47: ; preds = %43
%48 = load i32, ptr %2, align 4
%49 = srem i32 %48, 13
%50 = icmp ne i32 %49, 0
br i1 %50, label %79, label %51
51: ; preds = %47
%52 = load i32, ptr %2, align 4
%53 = srem i32 %52, 14
%54 = icmp ne i32 %53, 0
br i1 %54, label %79, label %55
55: ; preds = %51
%56 = load i32, ptr %2, align 4
%57 = srem i32 %56, 15
%58 = icmp ne i32 %57, 0
br i1 %58, label %79, label %59
59: ; preds = %55
%60 = load i32, ptr %2, align 4
%61 = srem i32 %60, 16
%62 = icmp ne i32 %61, 0
br i1 %62, label %79, label %63
63: ; preds = %59
%64 = load i32, ptr %2, align 4
%65 = srem i32 %64, 17
%66 = icmp ne i32 %65, 0
br i1 %66, label %79, label %67
67: ; preds = %63
%68 = load i32, ptr %2, align 4
%69 = srem i32 %68, 18
%70 = icmp ne i32 %69, 0
br i1 %70, label %79, label %71
71: ; preds = %67
%72 = load i32, ptr %2, align 4
%73 = srem i32 %72, 19
%74 = icmp ne i32 %73, 0
br i1 %74, label %79, label %75
75: ; preds = %71
%76 = load i32, ptr %2, align 4
%77 = srem i32 %76, 20
%78 = icmp ne i32 %77, 0
br label %79
79: ; preds = %75, %71, %67, %63, %59, %55, %51, %47, %43, %39, %35, %31, %27, %23, %19, %15, %11, %7, %3
%80 = phi i1 [ true, %71 ], [ true, %67 ], [ true, %63 ], [ true, %59 ], [ true, %55 ], [ true, %51 ], [ true, %47 ], [ true, %43 ], [ true, %39 ], [ true, %35 ], [ true, %31 ], [ true, %27 ], [ true, %23 ], [ true, %19 ], [ true, %15 ], [ true, %11 ], [ true, %7 ], [ true, %3 ], [ %78, %75 ]
br i1 %80, label %81, label %84
81: ; preds = %79
%82 = load i32, ptr %2, align 4
%83 = add nsw i32 %82, 20
store i32 %83, ptr %2, align 4
br label %3, !llvm.loop !6
84: ; preds = %79
%85 = load i32, ptr %2, align 4
%86 = call i32 @printf(ptr noundef @.str, i32 noundef %85)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmphny47emg.c'
source_filename = "/tmp/tmphny47emg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c",\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"[%d] token=%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @convert_string_to_hex_array(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i8, align 1
%9 = alloca i8, align 1
%10 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%11 = load ptr, ptr %3, align 8
store ptr %11, ptr %6, align 8
store i32 0, ptr %7, align 4
%12 = load ptr, ptr %6, align 8
%13 = call ptr @rstrtok(ptr noundef %12, ptr noundef @.str)
store ptr %13, ptr %5, align 8
%14 = load ptr, ptr %5, align 8
%15 = icmp eq ptr null, %14
br i1 %15, label %16, label %17
16: ; preds = %2
br label %140
17: ; preds = %2
%18 = load i32, ptr %7, align 4
%19 = load ptr, ptr %5, align 8
%20 = call i32 @printf(ptr noundef @.str.1, i32 noundef %18, ptr noundef %19)
store i32 0, ptr %10, align 4
br label %21
21: ; preds = %137, %17
%22 = load i32, ptr %10, align 4
%23 = load ptr, ptr %5, align 8
%24 = call i32 @strlen(ptr noundef %23)
%25 = icmp slt i32 %22, %24
br i1 %25, label %26, label %140
26: ; preds = %21
%27 = load ptr, ptr %5, align 8
%28 = load i32, ptr %10, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = load i8, ptr %30, align 1
store i8 %31, ptr %8, align 1
%32 = load i8, ptr %8, align 1
%33 = zext i8 %32 to i32
%34 = icmp sge i32 %33, 65
br i1 %34, label %35, label %45
35: ; preds = %26
%36 = load i8, ptr %8, align 1
%37 = zext i8 %36 to i32
%38 = icmp sle i32 %37, 70
br i1 %38, label %39, label %45
39: ; preds = %35
%40 = load i8, ptr %8, align 1
%41 = zext i8 %40 to i32
%42 = sub nsw i32 %41, 65
%43 = add nsw i32 %42, 10
%44 = trunc i32 %43 to i8
store i8 %44, ptr %8, align 1
br label %74
45: ; preds = %35, %26
%46 = load i8, ptr %8, align 1
%47 = zext i8 %46 to i32
%48 = icmp sge i32 %47, 48
br i1 %48, label %49, label %58
49: ; preds = %45
%50 = load i8, ptr %8, align 1
%51 = zext i8 %50 to i32
%52 = icmp sle i32 %51, 57
br i1 %52, label %53, label %58
53: ; preds = %49
%54 = load i8, ptr %8, align 1
%55 = zext i8 %54 to i32
%56 = sub nsw i32 %55, 48
%57 = trunc i32 %56 to i8
store i8 %57, ptr %8, align 1
br label %73
58: ; preds = %49, %45
%59 = load i8, ptr %8, align 1
%60 = zext i8 %59 to i32
%61 = icmp sge i32 %60, 97
br i1 %61, label %62, label %72
62: ; preds = %58
%63 = load i8, ptr %8, align 1
%64 = zext i8 %63 to i32
%65 = icmp sle i32 %64, 102
br i1 %65, label %66, label %72
66: ; preds = %62
%67 = load i8, ptr %8, align 1
%68 = zext i8 %67 to i32
%69 = sub nsw i32 %68, 97
%70 = add nsw i32 %69, 10
%71 = trunc i32 %70 to i8
store i8 %71, ptr %8, align 1
br label %72
72: ; preds = %66, %62, %58
br label %73
73: ; preds = %72, %53
br label %74
74: ; preds = %73, %39
%75 = load i32, ptr %10, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %10, align 4
%77 = load ptr, ptr %5, align 8
%78 = load i32, ptr %10, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i8, ptr %77, i64 %79
%81 = load i8, ptr %80, align 1
store i8 %81, ptr %9, align 1
%82 = load i8, ptr %9, align 1
%83 = zext i8 %82 to i32
%84 = icmp sge i32 %83, 65
br i1 %84, label %85, label %95
85: ; preds = %74
%86 = load i8, ptr %9, align 1
%87 = zext i8 %86 to i32
%88 = icmp sle i32 %87, 70
br i1 %88, label %89, label %95
89: ; preds = %85
%90 = load i8, ptr %9, align 1
%91 = zext i8 %90 to i32
%92 = sub nsw i32 %91, 65
%93 = add nsw i32 %92, 10
%94 = trunc i32 %93 to i8
store i8 %94, ptr %9, align 1
br label %124
95: ; preds = %85, %74
%96 = load i8, ptr %9, align 1
%97 = zext i8 %96 to i32
%98 = icmp sge i32 %97, 48
br i1 %98, label %99, label %108
99: ; preds = %95
%100 = load i8, ptr %9, align 1
%101 = zext i8 %100 to i32
%102 = icmp sle i32 %101, 57
br i1 %102, label %103, label %108
103: ; preds = %99
%104 = load i8, ptr %9, align 1
%105 = zext i8 %104 to i32
%106 = sub nsw i32 %105, 48
%107 = trunc i32 %106 to i8
store i8 %107, ptr %9, align 1
br label %123
108: ; preds = %99, %95
%109 = load i8, ptr %9, align 1
%110 = zext i8 %109 to i32
%111 = icmp sge i32 %110, 97
br i1 %111, label %112, label %122
112: ; preds = %108
%113 = load i8, ptr %9, align 1
%114 = zext i8 %113 to i32
%115 = icmp sle i32 %114, 102
br i1 %115, label %116, label %122
116: ; preds = %112
%117 = load i8, ptr %9, align 1
%118 = zext i8 %117 to i32
%119 = sub nsw i32 %118, 97
%120 = add nsw i32 %119, 10
%121 = trunc i32 %120 to i8
store i8 %121, ptr %9, align 1
br label %122
122: ; preds = %116, %112, %108
br label %123
123: ; preds = %122, %103
br label %124
124: ; preds = %123, %89
%125 = load i8, ptr %8, align 1
%126 = zext i8 %125 to i32
%127 = shl i32 %126, 4
%128 = load i8, ptr %9, align 1
%129 = zext i8 %128 to i32
%130 = or i32 %127, %129
%131 = trunc i32 %130 to i8
%132 = load ptr, ptr %4, align 8
%133 = load i32, ptr %7, align 4
%134 = add nsw i32 %133, 1
store i32 %134, ptr %7, align 4
%135 = sext i32 %133 to i64
%136 = getelementptr inbounds i8, ptr %132, i64 %135
store i8 %131, ptr %136, align 1
br label %137
137: ; preds = %124
%138 = load i32, ptr %10, align 4
%139 = add nsw i32 %138, 1
store i32 %139, ptr %10, align 4
br label %21, !llvm.loop !6
140: ; preds = %16, %21
ret void
}
declare ptr @rstrtok(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphny47emg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c",\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"[%d] token=%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @convert_string_to_hex_array(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i8, align 1
%9 = alloca i8, align 1
%10 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%11 = load ptr, ptr %3, align 8
store ptr %11, ptr %6, align 8
store i32 0, ptr %7, align 4
%12 = load ptr, ptr %6, align 8
%13 = call ptr @rstrtok(ptr noundef %12, ptr noundef @.str)
store ptr %13, ptr %5, align 8
%14 = load ptr, ptr %5, align 8
%15 = icmp eq ptr null, %14
br i1 %15, label %16, label %17
16: ; preds = %2
br label %143
17: ; preds = %2
%18 = load i32, ptr %7, align 4
%19 = load ptr, ptr %5, align 8
%20 = call i32 @printf(ptr noundef @.str.1, i32 noundef %18, ptr noundef %19)
store i32 0, ptr %10, align 4
%21 = load i32, ptr %10, align 4
%22 = load ptr, ptr %5, align 8
%23 = call i32 @strlen(ptr noundef %22)
%24 = icmp slt i32 %21, %23
br i1 %24, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %17
br label %25
25: ; preds = %.lr.ph, %136
%26 = load ptr, ptr %5, align 8
%27 = load i32, ptr %10, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
%30 = load i8, ptr %29, align 1
store i8 %30, ptr %8, align 1
%31 = load i8, ptr %8, align 1
%32 = zext i8 %31 to i32
%33 = icmp sge i32 %32, 65
br i1 %33, label %34, label %44
34: ; preds = %25
%35 = load i8, ptr %8, align 1
%36 = zext i8 %35 to i32
%37 = icmp sle i32 %36, 70
br i1 %37, label %38, label %44
38: ; preds = %34
%39 = load i8, ptr %8, align 1
%40 = zext i8 %39 to i32
%41 = sub nsw i32 %40, 65
%42 = add nsw i32 %41, 10
%43 = trunc i32 %42 to i8
store i8 %43, ptr %8, align 1
br label %73
44: ; preds = %34, %25
%45 = load i8, ptr %8, align 1
%46 = zext i8 %45 to i32
%47 = icmp sge i32 %46, 48
br i1 %47, label %48, label %57
48: ; preds = %44
%49 = load i8, ptr %8, align 1
%50 = zext i8 %49 to i32
%51 = icmp sle i32 %50, 57
br i1 %51, label %52, label %57
52: ; preds = %48
%53 = load i8, ptr %8, align 1
%54 = zext i8 %53 to i32
%55 = sub nsw i32 %54, 48
%56 = trunc i32 %55 to i8
store i8 %56, ptr %8, align 1
br label %72
57: ; preds = %48, %44
%58 = load i8, ptr %8, align 1
%59 = zext i8 %58 to i32
%60 = icmp sge i32 %59, 97
br i1 %60, label %61, label %71
61: ; preds = %57
%62 = load i8, ptr %8, align 1
%63 = zext i8 %62 to i32
%64 = icmp sle i32 %63, 102
br i1 %64, label %65, label %71
65: ; preds = %61
%66 = load i8, ptr %8, align 1
%67 = zext i8 %66 to i32
%68 = sub nsw i32 %67, 97
%69 = add nsw i32 %68, 10
%70 = trunc i32 %69 to i8
store i8 %70, ptr %8, align 1
br label %71
71: ; preds = %65, %61, %57
br label %72
72: ; preds = %71, %52
br label %73
73: ; preds = %72, %38
%74 = load i32, ptr %10, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %10, align 4
%76 = load ptr, ptr %5, align 8
%77 = load i32, ptr %10, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i8, ptr %76, i64 %78
%80 = load i8, ptr %79, align 1
store i8 %80, ptr %9, align 1
%81 = load i8, ptr %9, align 1
%82 = zext i8 %81 to i32
%83 = icmp sge i32 %82, 65
br i1 %83, label %84, label %94
84: ; preds = %73
%85 = load i8, ptr %9, align 1
%86 = zext i8 %85 to i32
%87 = icmp sle i32 %86, 70
br i1 %87, label %88, label %94
88: ; preds = %84
%89 = load i8, ptr %9, align 1
%90 = zext i8 %89 to i32
%91 = sub nsw i32 %90, 65
%92 = add nsw i32 %91, 10
%93 = trunc i32 %92 to i8
store i8 %93, ptr %9, align 1
br label %123
94: ; preds = %84, %73
%95 = load i8, ptr %9, align 1
%96 = zext i8 %95 to i32
%97 = icmp sge i32 %96, 48
br i1 %97, label %98, label %107
98: ; preds = %94
%99 = load i8, ptr %9, align 1
%100 = zext i8 %99 to i32
%101 = icmp sle i32 %100, 57
br i1 %101, label %102, label %107
102: ; preds = %98
%103 = load i8, ptr %9, align 1
%104 = zext i8 %103 to i32
%105 = sub nsw i32 %104, 48
%106 = trunc i32 %105 to i8
store i8 %106, ptr %9, align 1
br label %122
107: ; preds = %98, %94
%108 = load i8, ptr %9, align 1
%109 = zext i8 %108 to i32
%110 = icmp sge i32 %109, 97
br i1 %110, label %111, label %121
111: ; preds = %107
%112 = load i8, ptr %9, align 1
%113 = zext i8 %112 to i32
%114 = icmp sle i32 %113, 102
br i1 %114, label %115, label %121
115: ; preds = %111
%116 = load i8, ptr %9, align 1
%117 = zext i8 %116 to i32
%118 = sub nsw i32 %117, 97
%119 = add nsw i32 %118, 10
%120 = trunc i32 %119 to i8
store i8 %120, ptr %9, align 1
br label %121
121: ; preds = %115, %111, %107
br label %122
122: ; preds = %121, %102
br label %123
123: ; preds = %122, %88
%124 = load i8, ptr %8, align 1
%125 = zext i8 %124 to i32
%126 = shl i32 %125, 4
%127 = load i8, ptr %9, align 1
%128 = zext i8 %127 to i32
%129 = or i32 %126, %128
%130 = trunc i32 %129 to i8
%131 = load ptr, ptr %4, align 8
%132 = load i32, ptr %7, align 4
%133 = add nsw i32 %132, 1
store i32 %133, ptr %7, align 4
%134 = sext i32 %132 to i64
%135 = getelementptr inbounds i8, ptr %131, i64 %134
store i8 %130, ptr %135, align 1
br label %136
136: ; preds = %123
%137 = load i32, ptr %10, align 4
%138 = add nsw i32 %137, 1
store i32 %138, ptr %10, align 4
%139 = load i32, ptr %10, align 4
%140 = load ptr, ptr %5, align 8
%141 = call i32 @strlen(ptr noundef %140)
%142 = icmp slt i32 %139, %141
br i1 %142, label %25, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %136
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %17
br label %143
143: ; preds = %.loopexit, %16
ret void
}
declare ptr @rstrtok(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpuoc3z5zb.c'
source_filename = "/tmp/tmpuoc3z5zb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [52 x i8] c"/sys/devices/virtual/block/loop%s/loop/backing_file\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c" (deleted)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_loop_file_deleted(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
store ptr null, ptr %5, align 8
store ptr null, ptr %6, align 8
store ptr null, ptr %7, align 8
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 9
store ptr %12, ptr %8, align 8
%13 = load ptr, ptr %8, align 8
%14 = call i32 @asprintf(ptr noundef %6, ptr noundef @.str, ptr noundef %13)
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %17
16: ; preds = %1
store i32 0, ptr %2, align 4
br label %52
17: ; preds = %1
%18 = load ptr, ptr %6, align 8
%19 = call ptr @fopen(ptr noundef %18, ptr noundef @.str.1)
store ptr %19, ptr %5, align 8
%20 = load ptr, ptr %5, align 8
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %23
22: ; preds = %17
br label %40
23: ; preds = %17
store i64 0, ptr %9, align 8
%24 = load ptr, ptr %5, align 8
%25 = call i32 @getline(ptr noundef %7, ptr noundef %9, ptr noundef %24)
store i32 %25, ptr %10, align 4
%26 = load i32, ptr %10, align 4
%27 = sext i32 %26 to i64
%28 = icmp ule i64 %27, 11
br i1 %28, label %29, label %30
29: ; preds = %23
br label %40
30: ; preds = %23
%31 = load ptr, ptr %7, align 8
%32 = load i32, ptr %10, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, i64 %33
%35 = getelementptr inbounds i8, ptr %34, i64 -11
%36 = call i32 @strcmp(ptr noundef @.str.2, ptr noundef %35)
%37 = icmp ne i32 %36, 0
%38 = xor i1 %37, true
%39 = zext i1 %38 to i32
store i32 %39, ptr %4, align 4
br label %40
40: ; preds = %30, %29, %22
%41 = load ptr, ptr %5, align 8
%42 = icmp ne ptr %41, null
br i1 %42, label %43, label %46
43: ; preds = %40
%44 = load ptr, ptr %5, align 8
%45 = call i32 @fclose(ptr noundef %44)
br label %46
46: ; preds = %43, %40
%47 = load ptr, ptr %7, align 8
%48 = call i32 @free(ptr noundef %47)
%49 = load ptr, ptr %6, align 8
%50 = call i32 @free(ptr noundef %49)
%51 = load i32, ptr %4, align 4
store i32 %51, ptr %2, align 4
br label %52
52: ; preds = %46, %16
%53 = load i32, ptr %2, align 4
ret i32 %53
}
declare i32 @asprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @getline(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuoc3z5zb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [52 x i8] c"/sys/devices/virtual/block/loop%s/loop/backing_file\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c" (deleted)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_loop_file_deleted(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
store ptr null, ptr %5, align 8
store ptr null, ptr %6, align 8
store ptr null, ptr %7, align 8
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 9
store ptr %12, ptr %8, align 8
%13 = load ptr, ptr %8, align 8
%14 = call i32 @asprintf(ptr noundef %6, ptr noundef @.str, ptr noundef %13)
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %17
16: ; preds = %1
store i32 0, ptr %2, align 4
br label %52
17: ; preds = %1
%18 = load ptr, ptr %6, align 8
%19 = call ptr @fopen(ptr noundef %18, ptr noundef @.str.1)
store ptr %19, ptr %5, align 8
%20 = load ptr, ptr %5, align 8
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %23
22: ; preds = %17
br label %40
23: ; preds = %17
store i64 0, ptr %9, align 8
%24 = load ptr, ptr %5, align 8
%25 = call i32 @getline(ptr noundef %7, ptr noundef %9, ptr noundef %24)
store i32 %25, ptr %10, align 4
%26 = load i32, ptr %10, align 4
%27 = sext i32 %26 to i64
%28 = icmp ule i64 %27, 11
br i1 %28, label %29, label %30
29: ; preds = %23
br label %40
30: ; preds = %23
%31 = load ptr, ptr %7, align 8
%32 = load i32, ptr %10, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, i64 %33
%35 = getelementptr inbounds i8, ptr %34, i64 -11
%36 = call i32 @strcmp(ptr noundef @.str.2, ptr noundef %35)
%37 = icmp ne i32 %36, 0
%38 = xor i1 %37, true
%39 = zext i1 %38 to i32
store i32 %39, ptr %4, align 4
br label %40
40: ; preds = %30, %29, %22
%41 = load ptr, ptr %5, align 8
%42 = icmp ne ptr %41, null
br i1 %42, label %43, label %46
43: ; preds = %40
%44 = load ptr, ptr %5, align 8
%45 = call i32 @fclose(ptr noundef %44)
br label %46
46: ; preds = %43, %40
%47 = load ptr, ptr %7, align 8
%48 = call i32 @free(ptr noundef %47)
%49 = load ptr, ptr %6, align 8
%50 = call i32 @free(ptr noundef %49)
%51 = load i32, ptr %4, align 4
store i32 %51, ptr %2, align 4
br label %52
52: ; preds = %46, %16
%53 = load i32, ptr %2, align 4
ret i32 %53
}
declare i32 @asprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @getline(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @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"}
|
; ModuleID = '/tmp/tmpdnlgmgs2.c'
source_filename = "/tmp/tmpdnlgmgs2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strrepchar(ptr noundef %0, i8 noundef signext %1, i8 noundef signext %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca i8, align 1
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
store i8 %2, ptr %6, align 1
%7 = load ptr, ptr %4, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %15, label %9
9: ; preds = %3
%10 = load i8, ptr %5, align 1
%11 = sext i8 %10 to i32
%12 = load i8, ptr %6, align 1
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %11, %13
br i1 %14, label %15, label %16
15: ; preds = %9, %3
br label %34
16: ; preds = %9
br label %17
17: ; preds = %31, %16
%18 = load ptr, ptr %4, align 8
%19 = load i8, ptr %18, align 1
%20 = icmp ne i8 %19, 0
br i1 %20, label %21, label %34
21: ; preds = %17
%22 = load ptr, ptr %4, align 8
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = load i8, ptr %5, align 1
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %24, %26
br i1 %27, label %28, label %31
28: ; preds = %21
%29 = load i8, ptr %6, align 1
%30 = load ptr, ptr %4, align 8
store i8 %29, ptr %30, align 1
br label %31
31: ; preds = %28, %21
%32 = load ptr, ptr %4, align 8
%33 = getelementptr inbounds i8, ptr %32, i32 1
store ptr %33, ptr %4, align 8
br label %17, !llvm.loop !6
34: ; preds = %15, %17
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdnlgmgs2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strrepchar(ptr noundef %0, i8 noundef signext %1, i8 noundef signext %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca i8, align 1
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
store i8 %2, ptr %6, align 1
%7 = load ptr, ptr %4, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %15, label %9
9: ; preds = %3
%10 = load i8, ptr %5, align 1
%11 = sext i8 %10 to i32
%12 = load i8, ptr %6, align 1
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %11, %13
br i1 %14, label %15, label %16
15: ; preds = %9, %3
br label %36
16: ; preds = %9
%17 = load ptr, ptr %4, align 8
%18 = load i8, ptr %17, align 1
%19 = icmp ne i8 %18, 0
br i1 %19, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %16
br label %20
20: ; preds = %.lr.ph, %30
%21 = load ptr, ptr %4, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = load i8, ptr %5, align 1
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %23, %25
br i1 %26, label %27, label %30
27: ; preds = %20
%28 = load i8, ptr %6, align 1
%29 = load ptr, ptr %4, align 8
store i8 %28, ptr %29, align 1
br label %30
30: ; preds = %27, %20
%31 = load ptr, ptr %4, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 1
store ptr %32, ptr %4, align 8
%33 = load ptr, ptr %4, align 8
%34 = load i8, ptr %33, align 1
%35 = icmp ne i8 %34, 0
br i1 %35, label %20, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %30
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %16
br label %36
36: ; preds = %.loopexit, %15
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpg_nxknot.c'
source_filename = "/tmp/tmpg_nxknot.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @test_floats()
ret i32 0
}
declare i32 @test_floats(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg_nxknot.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @test_floats()
ret i32 0
}
declare i32 @test_floats(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp21kbgd2l.c'
source_filename = "/tmp/tmp21kbgd2l.c"
target datalayout = "e-m:e-p270: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 [380 x i8] c"Usage: generic_buffer [options]...\0ACapture, convert and output data from IIO device buffer\0A -c <n> Do n conversions\0A -e Disable wait for event (new data)\0A -g Use trigger-less mode\0A -l <n> Set buffer length to n samples\0A -n <name> Set device name (mandatory)\0A -t <name> Set trigger name\0A -w <n> Set delay between reads in us (event-less mode)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_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/tmp21kbgd2l.c"
target datalayout = "e-m:e-p270: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 [380 x i8] c"Usage: generic_buffer [options]...\0ACapture, convert and output data from IIO device buffer\0A -c <n> Do n conversions\0A -e Disable wait for event (new data)\0A -g Use trigger-less mode\0A -l <n> Set buffer length to n samples\0A -n <name> Set device name (mandatory)\0A -t <name> Set trigger name\0A -w <n> Set delay between reads in us (event-less mode)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_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/tmpbjbfj69x.c'
source_filename = "/tmp/tmpbjbfj69x.c"
target datalayout = "e-m:e-p270: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/tmpbjbfj69x.c"
target datalayout = "e-m:e-p270: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/tmpwc17kec7.c'
source_filename = "/tmp/tmpwc17kec7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PlayerPreThink() #0 {
%1 = call i32 (...) @Input_Handle()
%2 = call i32 (...) @BaseGun_ShotMultiplierUpdate()
ret void
}
declare i32 @Input_Handle(...) #1
declare i32 @BaseGun_ShotMultiplierUpdate(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwc17kec7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PlayerPreThink() #0 {
%1 = call i32 (...) @Input_Handle()
%2 = call i32 (...) @BaseGun_ShotMultiplierUpdate()
ret void
}
declare i32 @Input_Handle(...) #1
declare i32 @BaseGun_ShotMultiplierUpdate(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp77pammj3.c'
source_filename = "/tmp/tmp77pammj3.c"
target datalayout = "e-m:e-p270: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/tmp77pammj3.c"
target datalayout = "e-m:e-p270: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/tmppf7nkem5.c'
source_filename = "/tmp/tmppf7nkem5.c"
target datalayout = "e-m:e-p270: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/tmppf7nkem5.c"
target datalayout = "e-m:e-p270: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/tmpaksa7l3q.c'
source_filename = "/tmp/tmpaksa7l3q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SYS_lseek = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fseek(ptr noundef %0, i64 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr @SYS_lseek, align 4
%8 = load ptr, ptr %4, align 8
%9 = ptrtoint ptr %8 to i64
%10 = load i64, ptr %5, align 8
%11 = load i32, ptr %6, align 4
%12 = call i32 @syscall_3(i32 noundef %7, i64 noundef %9, i64 noundef %10, i32 noundef %11)
ret i32 0
}
declare i32 @syscall_3(i32 noundef, i64 noundef, i64 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaksa7l3q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SYS_lseek = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fseek(ptr noundef %0, i64 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr @SYS_lseek, align 4
%8 = load ptr, ptr %4, align 8
%9 = ptrtoint ptr %8 to i64
%10 = load i64, ptr %5, align 8
%11 = load i32, ptr %6, align 4
%12 = call i32 @syscall_3(i32 noundef %7, i64 noundef %9, i64 noundef %10, i32 noundef %11)
ret i32 0
}
declare i32 @syscall_3(i32 noundef, i64 noundef, i64 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp94pyra4k.c'
source_filename = "/tmp/tmp94pyra4k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ClampChar(i32 noundef %0) #0 {
%2 = alloca i8, align 1
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp slt i32 %4, -128
br i1 %5, label %6, label %7
6: ; preds = %1
store i8 -128, ptr %2, align 1
br label %14
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = icmp sgt i32 %8, 127
br i1 %9, label %10, label %11
10: ; preds = %7
store i8 127, ptr %2, align 1
br label %14
11: ; preds = %7
%12 = load i32, ptr %3, align 4
%13 = trunc i32 %12 to i8
store i8 %13, ptr %2, align 1
br label %14
14: ; preds = %11, %10, %6
%15 = load i8, ptr %2, align 1
ret i8 %15
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp94pyra4k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ClampChar(i32 noundef %0) #0 {
%2 = alloca i8, align 1
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp slt i32 %4, -128
br i1 %5, label %6, label %7
6: ; preds = %1
store i8 -128, ptr %2, align 1
br label %14
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = icmp sgt i32 %8, 127
br i1 %9, label %10, label %11
10: ; preds = %7
store i8 127, ptr %2, align 1
br label %14
11: ; preds = %7
%12 = load i32, ptr %3, align 4
%13 = trunc i32 %12 to i8
store i8 %13, ptr %2, align 1
br label %14
14: ; preds = %11, %10, %6
%15 = load i8, ptr %2, align 1
ret i8 %15
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpw17bt4sa.c'
source_filename = "/tmp/tmpw17bt4sa.c"
target datalayout = "e-m:e-p270: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.s = private unnamed_addr constant [9 x i8] c"Hardware\00", align 1
@.str = private unnamed_addr constant [7 x i8] c"c: %c\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"&c: %p\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"p: %p\0A\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"*p: %c\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"s: %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"s[0]: %c\0A\00", align 1
@.str.6 = private unnamed_addr constant [10 x i8] c"s[1]: %c\0A\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"&s[0]: %p\0A\00", align 1
@.str.8 = private unnamed_addr constant [8 x i8] c"*s: %c\0A\00", align 1
@.str.9 = private unnamed_addr constant [13 x i8] c"*(s+1): %c\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i8, align 1
%2 = alloca ptr, align 8
%3 = alloca [9 x i8], align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.s, i64 9, i1 false)
store i8 65, ptr %1, align 1
store ptr %1, ptr %2, align 8
%4 = load i8, ptr %1, align 1
%5 = sext i8 %4 to i32
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %5)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %1)
%8 = load ptr, ptr %2, align 8
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %8)
%10 = load ptr, ptr %2, align 8
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %12)
%14 = load ptr, ptr %2, align 8
store i8 66, ptr %14, align 1
%15 = load i8, ptr %1, align 1
%16 = sext i8 %15 to i32
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %16)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %1)
%19 = load ptr, ptr %2, align 8
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %19)
%21 = load ptr, ptr %2, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %23)
%25 = getelementptr inbounds [9 x i8], ptr %3, i64 0, i64 0
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %25)
%27 = getelementptr inbounds [9 x i8], ptr %3, i64 0, i64 0
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %29)
%31 = getelementptr inbounds [9 x i8], ptr %3, i64 0, i64 1
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %33)
%35 = getelementptr inbounds [9 x i8], ptr %3, i64 0, i64 0
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %35)
%37 = getelementptr inbounds [9 x i8], ptr %3, i64 0, i64 0
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %39)
%41 = getelementptr inbounds [9 x i8], ptr %3, i64 0, i64 0
%42 = getelementptr inbounds i8, ptr %41, i64 1
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %44)
%46 = getelementptr inbounds [9 x i8], ptr %3, i64 0, i64 0
%47 = getelementptr inbounds i8, ptr %46, i64 3
store i8 68, ptr %47, align 1
%48 = getelementptr inbounds [9 x i8], ptr %3, i64 0, i64 0
%49 = getelementptr inbounds i8, ptr %48, i64 4
store i8 87, ptr %49, align 1
%50 = getelementptr inbounds [9 x i8], ptr %3, i64 0, i64 0
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %50)
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/tmpw17bt4sa.c"
target datalayout = "e-m:e-p270: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.s = private unnamed_addr constant [9 x i8] c"Hardware\00", align 1
@.str = private unnamed_addr constant [7 x i8] c"c: %c\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"&c: %p\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"p: %p\0A\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"*p: %c\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"s: %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"s[0]: %c\0A\00", align 1
@.str.6 = private unnamed_addr constant [10 x i8] c"s[1]: %c\0A\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"&s[0]: %p\0A\00", align 1
@.str.8 = private unnamed_addr constant [8 x i8] c"*s: %c\0A\00", align 1
@.str.9 = private unnamed_addr constant [13 x i8] c"*(s+1): %c\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i8, align 1
%2 = alloca ptr, align 8
%3 = alloca [9 x i8], align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.s, i64 9, i1 false)
store i8 65, ptr %1, align 1
store ptr %1, ptr %2, align 8
%4 = load i8, ptr %1, align 1
%5 = sext i8 %4 to i32
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %5)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %1)
%8 = load ptr, ptr %2, align 8
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %8)
%10 = load ptr, ptr %2, align 8
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %12)
%14 = load ptr, ptr %2, align 8
store i8 66, ptr %14, align 1
%15 = load i8, ptr %1, align 1
%16 = sext i8 %15 to i32
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %16)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %1)
%19 = load ptr, ptr %2, align 8
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %19)
%21 = load ptr, ptr %2, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %23)
%25 = getelementptr inbounds [9 x i8], ptr %3, i64 0, i64 0
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %25)
%27 = getelementptr inbounds [9 x i8], ptr %3, i64 0, i64 0
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %29)
%31 = getelementptr inbounds [9 x i8], ptr %3, i64 0, i64 1
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %33)
%35 = getelementptr inbounds [9 x i8], ptr %3, i64 0, i64 0
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %35)
%37 = getelementptr inbounds [9 x i8], ptr %3, i64 0, i64 0
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %39)
%41 = getelementptr inbounds [9 x i8], ptr %3, i64 0, i64 0
%42 = getelementptr inbounds i8, ptr %41, i64 1
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %44)
%46 = getelementptr inbounds [9 x i8], ptr %3, i64 0, i64 0
%47 = getelementptr inbounds i8, ptr %46, i64 3
store i8 68, ptr %47, align 1
%48 = getelementptr inbounds [9 x i8], ptr %3, i64 0, i64 0
%49 = getelementptr inbounds i8, ptr %48, i64 4
store i8 87, ptr %49, align 1
%50 = getelementptr inbounds [9 x i8], ptr %3, i64 0, i64 0
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %50)
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/tmpks63cnud.c'
source_filename = "/tmp/tmpks63cnud.c"
target datalayout = "e-m:e-p270: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/tmpks63cnud.c"
target datalayout = "e-m:e-p270: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/tmpb3973prt.c'
source_filename = "/tmp/tmpb3973prt.c"
target datalayout = "e-m:e-p270: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/tmpb3973prt.c"
target datalayout = "e-m:e-p270: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/tmp6jeyxpx7.c'
source_filename = "/tmp/tmp6jeyxpx7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PROT_READ = dso_local global i32 0, align 4
@PROT_WRITE = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @pmem_map_msync(i32 noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i64 %1, ptr %5, align 8
%7 = load i64, ptr %5, align 8
%8 = load i32, ptr @PROT_READ, align 4
%9 = load i32, ptr @PROT_WRITE, align 4
%10 = or i32 %8, %9
%11 = load i32, ptr @MAP_SHARED, align 4
%12 = load i32, ptr %4, align 4
%13 = call ptr @mmap(ptr noundef null, i64 noundef %7, i32 noundef %10, i32 noundef %11, i32 noundef %12, i32 noundef 0)
store ptr %13, ptr %6, align 8
%14 = load ptr, ptr @MAP_FAILED, align 8
%15 = icmp eq ptr %13, %14
br i1 %15, label %16, label %17
16: ; preds = %2
store ptr null, ptr %3, align 8
br label %19
17: ; preds = %2
%18 = load ptr, ptr %6, align 8
store ptr %18, ptr %3, align 8
br label %19
19: ; preds = %17, %16
%20 = load ptr, ptr %3, align 8
ret ptr %20
}
declare ptr @mmap(ptr noundef, i64 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/tmp6jeyxpx7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PROT_READ = dso_local global i32 0, align 4
@PROT_WRITE = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @pmem_map_msync(i32 noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i64 %1, ptr %5, align 8
%7 = load i64, ptr %5, align 8
%8 = load i32, ptr @PROT_READ, align 4
%9 = load i32, ptr @PROT_WRITE, align 4
%10 = or i32 %8, %9
%11 = load i32, ptr @MAP_SHARED, align 4
%12 = load i32, ptr %4, align 4
%13 = call ptr @mmap(ptr noundef null, i64 noundef %7, i32 noundef %10, i32 noundef %11, i32 noundef %12, i32 noundef 0)
store ptr %13, ptr %6, align 8
%14 = load ptr, ptr @MAP_FAILED, align 8
%15 = icmp eq ptr %13, %14
br i1 %15, label %16, label %17
16: ; preds = %2
store ptr null, ptr %3, align 8
br label %19
17: ; preds = %2
%18 = load ptr, ptr %6, align 8
store ptr %18, ptr %3, align 8
br label %19
19: ; preds = %17, %16
%20 = load ptr, ptr %3, align 8
ret ptr %20
}
declare ptr @mmap(ptr noundef, i64 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/tmp4fo1ha9r.c'
source_filename = "/tmp/tmp4fo1ha9r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"\0AINT 0D :\0A General Protected Exception.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @inthandler0d(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load i32, ptr inttoptr (i64 4076 to ptr), align 4
%5 = sext i32 %4 to i64
%6 = inttoptr i64 %5 to ptr
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 @cons_putstr0(ptr noundef %7, ptr noundef @.str)
ret i32 1
}
declare i32 @cons_putstr0(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/tmp4fo1ha9r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"\0AINT 0D :\0A General Protected Exception.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @inthandler0d(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load i32, ptr inttoptr (i64 4076 to ptr), align 4
%5 = sext i32 %4 to i64
%6 = inttoptr i64 %5 to ptr
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 @cons_putstr0(ptr noundef %7, ptr noundef @.str)
ret i32 1
}
declare i32 @cons_putstr0(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/tmp6lnhnaj5.c'
source_filename = "/tmp/tmp6lnhnaj5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @igraph_error_handler_ignore(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = call i32 (...) @IGRAPH_FINALLY_FREE()
ret void
}
declare i32 @IGRAPH_FINALLY_FREE(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6lnhnaj5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @igraph_error_handler_ignore(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = call i32 (...) @IGRAPH_FINALLY_FREE()
ret void
}
declare i32 @IGRAPH_FINALLY_FREE(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0m190wx9.c'
source_filename = "/tmp/tmp0m190wx9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mystrcasecmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
br label %6
6: ; preds = %21, %2
%7 = load ptr, ptr %4, align 8
%8 = load i8, ptr %7, align 1
%9 = call i32 @tolower(i8 noundef signext %8)
%10 = load ptr, ptr %5, align 8
%11 = load i8, ptr %10, align 1
%12 = call i32 @tolower(i8 noundef signext %11)
%13 = icmp eq i32 %9, %12
br i1 %13, label %14, label %26
14: ; preds = %6
%15 = load ptr, ptr %4, align 8
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %14
store i32 0, ptr %3, align 4
br label %34
20: ; preds = %14
br label %21
21: ; preds = %20
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 1
store ptr %23, ptr %4, align 8
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %5, align 8
br label %6, !llvm.loop !6
26: ; preds = %6
%27 = load ptr, ptr %4, align 8
%28 = load i8, ptr %27, align 1
%29 = call i32 @tolower(i8 noundef signext %28)
%30 = load ptr, ptr %5, align 8
%31 = load i8, ptr %30, align 1
%32 = call i32 @tolower(i8 noundef signext %31)
%33 = sub nsw i32 %29, %32
store i32 %33, ptr %3, align 4
br label %34
34: ; preds = %26, %19
%35 = load i32, ptr %3, align 4
ret i32 %35
}
declare i32 @tolower(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0m190wx9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mystrcasecmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = load i8, ptr %6, align 1
%8 = call i32 @tolower(i8 noundef signext %7)
%9 = load ptr, ptr %5, align 8
%10 = load i8, ptr %9, align 1
%11 = call i32 @tolower(i8 noundef signext %10)
%12 = icmp eq i32 %8, %11
br i1 %12, label %.lr.ph, label %32
.lr.ph: ; preds = %2
br label %13
13: ; preds = %.lr.ph, %20
%14 = load ptr, ptr %4, align 8
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %13
store i32 0, ptr %3, align 4
br label %40
19: ; preds = %13
br label %20
20: ; preds = %19
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %4, align 8
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds i8, ptr %23, i32 1
store ptr %24, ptr %5, align 8
%25 = load ptr, ptr %4, align 8
%26 = load i8, ptr %25, align 1
%27 = call i32 @tolower(i8 noundef signext %26)
%28 = load ptr, ptr %5, align 8
%29 = load i8, ptr %28, align 1
%30 = call i32 @tolower(i8 noundef signext %29)
%31 = icmp eq i32 %27, %30
br i1 %31, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %32
32: ; preds = %._crit_edge, %2
%33 = load ptr, ptr %4, align 8
%34 = load i8, ptr %33, align 1
%35 = call i32 @tolower(i8 noundef signext %34)
%36 = load ptr, ptr %5, align 8
%37 = load i8, ptr %36, align 1
%38 = call i32 @tolower(i8 noundef signext %37)
%39 = sub nsw i32 %35, %38
store i32 %39, ptr %3, align 4
br label %40
40: ; preds = %32, %18
%41 = load i32, ptr %3, align 4
ret i32 %41
}
declare i32 @tolower(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_y1qhuu9.c'
source_filename = "/tmp/tmp_y1qhuu9.c"
target datalayout = "e-m:e-p270: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_y1qhuu9.c"
target datalayout = "e-m:e-p270: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/tmp0ddp0wz2.c'
source_filename = "/tmp/tmp0ddp0wz2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fd_nrf8001_dispatch_set_tx_power_response(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %3
%10 = load i32, ptr %4, align 4
%11 = call i32 @fd_nrf8001_set_tx_power_error(i32 noundef %10)
br label %14
12: ; preds = %3
%13 = call i32 (...) @fd_nrf8001_set_tx_power_success()
br label %14
14: ; preds = %12, %9
ret void
}
declare i32 @fd_nrf8001_set_tx_power_error(i32 noundef) #1
declare i32 @fd_nrf8001_set_tx_power_success(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0ddp0wz2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fd_nrf8001_dispatch_set_tx_power_response(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %3
%10 = load i32, ptr %4, align 4
%11 = call i32 @fd_nrf8001_set_tx_power_error(i32 noundef %10)
br label %14
12: ; preds = %3
%13 = call i32 (...) @fd_nrf8001_set_tx_power_success()
br label %14
14: ; preds = %12, %9
ret void
}
declare i32 @fd_nrf8001_set_tx_power_error(i32 noundef) #1
declare i32 @fd_nrf8001_set_tx_power_success(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfp3wszqz.c'
source_filename = "/tmp/tmpfp3wszqz.c"
target datalayout = "e-m:e-p270: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/tmpfp3wszqz.c"
target datalayout = "e-m:e-p270: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/tmpxtivhj2c.c'
source_filename = "/tmp/tmpxtivhj2c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [74 x i8] c"\0A\0A\1B[0;36mHello and welcome to the Hangman !!!\0A\0APlease enter your choice\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"1. Play\0A\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"2. See the gameboard\0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"3. Quit\0A\0AI wanna do : \00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @menu() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @printf(ptr noundef @.str.1)
%4 = call i32 @printf(ptr noundef @.str.2)
%5 = call i32 @printf(ptr noundef @.str.3)
%6 = call i32 @scanf(ptr noundef @.str.4, ptr noundef %1)
%7 = load i32, ptr %1, align 4
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %10
9: ; preds = %0
ret i32 0
10: ; preds = %0
%11 = load i32, ptr %1, align 4
%12 = icmp eq i32 %11, 2
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = call i32 @exit(i32 noundef 0) #3
unreachable
15: ; preds = %10
%16 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxtivhj2c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [74 x i8] c"\0A\0A\1B[0;36mHello and welcome to the Hangman !!!\0A\0APlease enter your choice\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"1. Play\0A\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"2. See the gameboard\0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"3. Quit\0A\0AI wanna do : \00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @menu() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @printf(ptr noundef @.str.1)
%4 = call i32 @printf(ptr noundef @.str.2)
%5 = call i32 @printf(ptr noundef @.str.3)
%6 = call i32 @scanf(ptr noundef @.str.4, ptr noundef %1)
%7 = load i32, ptr %1, align 4
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %10
9: ; preds = %0
ret i32 0
10: ; preds = %0
%11 = load i32, ptr %1, align 4
%12 = icmp eq i32 %11, 2
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = call i32 @exit(i32 noundef 0) #3
unreachable
15: ; preds = %10
%16 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpguae_n1x.c'
source_filename = "/tmp/tmpguae_n1x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"23 in hexa %#perrorX.\0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"Enter 4 numbers to be scanned:\0A\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"4nre.txt\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"heroare\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 23)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%5 = call ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.3)
store ptr %5, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 @perror(ptr noundef @.str.4)
br label %10
10: ; preds = %8, %0
%11 = load ptr, ptr %2, align 8
%12 = call i32 @function(ptr noundef %11)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @function(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/tmpguae_n1x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"23 in hexa %#perrorX.\0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"Enter 4 numbers to be scanned:\0A\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"4nre.txt\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"heroare\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 23)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%5 = call ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.3)
store ptr %5, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 @perror(ptr noundef @.str.4)
br label %10
10: ; preds = %8, %0
%11 = load ptr, ptr %2, align 8
%12 = call i32 @function(ptr noundef %11)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @function(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/tmpsldhdrai.c'
source_filename = "/tmp/tmpsldhdrai.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @coverage6(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %5
5: ; preds = %11, %1
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 3
br i1 %7, label %8, label %14
8: ; preds = %5
%9 = load ptr, ptr %2, align 8
%10 = call i32 @function_which_gives_up(ptr noundef %9)
br label %11
11: ; preds = %8
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %3, align 4
br label %5, !llvm.loop !6
14: ; preds = %5
%15 = call i64 @malloc(i32 noundef 12)
%16 = inttoptr i64 %15 to ptr
store ptr %16, ptr %4, align 8
ret void
}
declare i32 @function_which_gives_up(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsldhdrai.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @coverage6(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, 3
br i1 %6, label %.lr.ph, label %15
.lr.ph: ; preds = %1
br label %7
7: ; preds = %.lr.ph, %10
%8 = load ptr, ptr %2, align 8
%9 = call i32 @function_which_gives_up(ptr noundef %8)
br label %10
10: ; preds = %7
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %3, align 4
%13 = load i32, ptr %3, align 4
%14 = icmp slt i32 %13, 3
br i1 %14, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %15
15: ; preds = %._crit_edge, %1
%16 = call i64 @malloc(i32 noundef 12)
%17 = inttoptr i64 %16 to ptr
store ptr %17, ptr %4, align 8
ret void
}
declare i32 @function_which_gives_up(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp96lirb_n.c'
source_filename = "/tmp/tmp96lirb_n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@.str = private unnamed_addr constant [11 x i8] c"recv_data\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"Start %s\0A\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [21 x i8] c"Error receiving data\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"Done %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @recv_data(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [1024 x i8], align 16
%10 = alloca %struct.sockaddr_in, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 1024, i1 false)
%14 = load ptr, ptr %4, align 8
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %14)
%16 = load i32, ptr @AF_INET, align 4
%17 = load i32, ptr @SOCK_STREAM, align 4
%18 = call i32 @socket(i32 noundef %16, i32 noundef %17, i32 noundef 0)
store i32 %18, ptr %7, align 4
%19 = load i32, ptr @AF_INET, align 4
%20 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 2
store i32 %19, ptr %20, align 4
%21 = load ptr, ptr %4, align 8
%22 = call i32 @inet_addr(ptr noundef %21)
%23 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 1
%24 = getelementptr inbounds %struct.TYPE_2__, ptr %23, i32 0, i32 0
store i32 %22, ptr %24, align 4
%25 = load i32, ptr %5, align 4
%26 = call i32 @htons(i32 noundef %25)
%27 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 0
store i32 %26, ptr %27, align 4
store i32 12, ptr %11, align 4
%28 = load i32, ptr %7, align 4
%29 = load i32, ptr %11, align 4
%30 = call i32 @connect(i32 noundef %28, ptr noundef %10, i32 noundef %29)
store i32 0, ptr %12, align 4
br label %31
31: ; preds = %45, %3
%32 = load i32, ptr %12, align 4
%33 = load i32, ptr %6, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %48
35: ; preds = %31
%36 = load i32, ptr %7, align 4
%37 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%38 = call i32 @recvfrom(i32 noundef %36, ptr noundef %37, i32 noundef 1024, i32 noundef 0, ptr noundef %10, ptr noundef %11)
store i32 %38, ptr %8, align 4
%39 = load i32, ptr %8, align 4
%40 = icmp slt i32 %39, 0
br i1 %40, label %41, label %44
41: ; preds = %35
%42 = call i32 @perror(ptr noundef @.str.2)
%43 = call i32 @exit(i32 noundef -1) #4
unreachable
44: ; preds = %35
br label %45
45: ; preds = %44
%46 = load i32, ptr %12, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %12, align 4
br label %31, !llvm.loop !6
48: ; preds = %31
%49 = load ptr, ptr %4, align 8
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %49)
%51 = load i32, ptr %7, align 4
%52 = call i32 @close(i32 noundef %51)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @recvfrom(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
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" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp96lirb_n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@.str = private unnamed_addr constant [11 x i8] c"recv_data\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"Start %s\0A\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [21 x i8] c"Error receiving data\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"Done %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @recv_data(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [1024 x i8], align 16
%10 = alloca %struct.sockaddr_in, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 1024, i1 false)
%14 = load ptr, ptr %4, align 8
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %14)
%16 = load i32, ptr @AF_INET, align 4
%17 = load i32, ptr @SOCK_STREAM, align 4
%18 = call i32 @socket(i32 noundef %16, i32 noundef %17, i32 noundef 0)
store i32 %18, ptr %7, align 4
%19 = load i32, ptr @AF_INET, align 4
%20 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 2
store i32 %19, ptr %20, align 4
%21 = load ptr, ptr %4, align 8
%22 = call i32 @inet_addr(ptr noundef %21)
%23 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 1
%24 = getelementptr inbounds %struct.TYPE_2__, ptr %23, i32 0, i32 0
store i32 %22, ptr %24, align 4
%25 = load i32, ptr %5, align 4
%26 = call i32 @htons(i32 noundef %25)
%27 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 0
store i32 %26, ptr %27, align 4
store i32 12, ptr %11, align 4
%28 = load i32, ptr %7, align 4
%29 = load i32, ptr %11, align 4
%30 = call i32 @connect(i32 noundef %28, ptr noundef %10, i32 noundef %29)
store i32 0, ptr %12, align 4
%31 = load i32, ptr %12, align 4
%32 = load i32, ptr %6, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %.lr.ph, label %50
.lr.ph: ; preds = %3
br label %34
34: ; preds = %.lr.ph, %44
%35 = load i32, ptr %7, align 4
%36 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%37 = call i32 @recvfrom(i32 noundef %35, ptr noundef %36, i32 noundef 1024, i32 noundef 0, ptr noundef %10, ptr noundef %11)
store i32 %37, ptr %8, align 4
%38 = load i32, ptr %8, align 4
%39 = icmp slt i32 %38, 0
br i1 %39, label %40, label %43
40: ; preds = %34
%41 = call i32 @perror(ptr noundef @.str.2)
%42 = call i32 @exit(i32 noundef -1) #4
unreachable
43: ; preds = %34
br label %44
44: ; preds = %43
%45 = load i32, ptr %12, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %12, align 4
%47 = load i32, ptr %12, align 4
%48 = load i32, ptr %6, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %34, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %44
br label %50
50: ; preds = %._crit_edge, %3
%51 = load ptr, ptr %4, align 8
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %51)
%53 = load i32, ptr %7, align 4
%54 = call i32 @close(i32 noundef %53)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @recvfrom(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
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" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp0ado8kle.c'
source_filename = "/tmp/tmp0ado8kle.c"
target datalayout = "e-m:e-p270: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/tmp0ado8kle.c"
target datalayout = "e-m:e-p270: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/tmpudrwp805.c'
source_filename = "/tmp/tmpudrwp805.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @upstring(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %32, %1
%7 = load i32, ptr %5, align 4
%8 = load ptr, ptr %3, align 8
%9 = call i32 @strlen(ptr noundef %8)
%10 = icmp slt i32 %7, %9
br i1 %10, label %11, label %35
11: ; preds = %6
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = call i64 @islower(i8 noundef signext %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %11
store i32 0, ptr %2, align 4
br label %40
20: ; preds = %11
%21 = load ptr, ptr %3, align 8
%22 = load i32, ptr %5, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
%25 = load i8, ptr %24, align 1
%26 = call i64 @isupper(i8 noundef signext %25)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %20
%29 = load i32, ptr %4, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %4, align 4
br label %31
31: ; preds = %28, %20
br label %32
32: ; preds = %31
%33 = load i32, ptr %5, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %5, align 4
br label %6, !llvm.loop !6
35: ; preds = %6
%36 = load i32, ptr %4, align 4
%37 = icmp sgt i32 %36, 0
br i1 %37, label %38, label %39
38: ; preds = %35
store i32 1, ptr %2, align 4
br label %40
39: ; preds = %35
store i32 0, ptr %2, align 4
br label %40
40: ; preds = %39, %38, %19
%41 = load i32, ptr %2, align 4
ret i32 %41
}
declare i32 @strlen(ptr noundef) #1
declare i64 @islower(i8 noundef signext) #1
declare i64 @isupper(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpudrwp805.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @upstring(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load ptr, ptr %3, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = icmp slt i32 %6, %8
br i1 %9, label %.lr.ph, label %38
.lr.ph: ; preds = %1
br label %10
10: ; preds = %.lr.ph, %31
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = load i8, ptr %14, align 1
%16 = call i64 @islower(i8 noundef signext %15)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %10
store i32 0, ptr %2, align 4
br label %43
19: ; preds = %10
%20 = load ptr, ptr %3, align 8
%21 = load i32, ptr %5, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load i8, ptr %23, align 1
%25 = call i64 @isupper(i8 noundef signext %24)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %19
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %4, align 4
br label %30
30: ; preds = %27, %19
br label %31
31: ; preds = %30
%32 = load i32, ptr %5, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %5, align 4
%34 = load i32, ptr %5, align 4
%35 = load ptr, ptr %3, align 8
%36 = call i32 @strlen(ptr noundef %35)
%37 = icmp slt i32 %34, %36
br i1 %37, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %38
38: ; preds = %._crit_edge, %1
%39 = load i32, ptr %4, align 4
%40 = icmp sgt i32 %39, 0
br i1 %40, label %41, label %42
41: ; preds = %38
store i32 1, ptr %2, align 4
br label %43
42: ; preds = %38
store i32 0, ptr %2, align 4
br label %43
43: ; preds = %42, %41, %18
%44 = load i32, ptr %2, align 4
ret i32 %44
}
declare i32 @strlen(ptr noundef) #1
declare i64 @islower(i8 noundef signext) #1
declare i64 @isupper(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpi_ywryk5.c'
source_filename = "/tmp/tmpi_ywryk5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"STATUS-------------------\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"PLOIDY & NO. ALLELES:\09%d, %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"CURRENT MODEL POSITION:\09\09%d\0A\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"CURRENT ALLELE POSITION:\09%d\0A\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"GENOTYPE MODEL:\09\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"\09~~~\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fill_genotype_model(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store i32 %2, ptr %10, align 4
store i32 %3, ptr %11, align 4
store i32 %4, ptr %12, align 4
store i32 %5, ptr %13, align 4
store i32 %6, ptr %14, align 4
%17 = load i32, ptr %14, align 4
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %28
19: ; preds = %7
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%21 = load i32, ptr %10, align 4
%22 = load i32, ptr %11, align 4
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %21, i32 noundef %22)
%24 = load i32, ptr %12, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %24)
%26 = load i32, ptr %13, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %26)
br label %28
28: ; preds = %19, %7
%29 = load ptr, ptr %8, align 8
%30 = load i32, ptr %13, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i8, ptr %32, align 1
%34 = load ptr, ptr %9, align 8
%35 = load i32, ptr %12, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
store i8 %33, ptr %37, align 1
%38 = load i32, ptr %13, align 4
store i32 %38, ptr %15, align 4
br label %39
39: ; preds = %84, %28
%40 = load i32, ptr %15, align 4
%41 = load i32, ptr %11, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %43, label %87
43: ; preds = %39
%44 = load i32, ptr %12, align 4
%45 = load i32, ptr %10, align 4
%46 = sub nsw i32 %45, 1
%47 = icmp slt i32 %44, %46
br i1 %47, label %48, label %63
48: ; preds = %43
%49 = load ptr, ptr %8, align 8
%50 = load ptr, ptr %9, align 8
%51 = load i32, ptr %10, align 4
%52 = load i32, ptr %11, align 4
%53 = load i32, ptr %12, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %12, align 4
%55 = load i32, ptr %15, align 4
%56 = load i32, ptr %14, align 4
call void @fill_genotype_model(ptr noundef %49, ptr noundef %50, i32 noundef %51, i32 noundef %52, i32 noundef %54, i32 noundef %55, i32 noundef %56)
%57 = load i32, ptr %12, align 4
%58 = load i32, ptr %10, align 4
%59 = sub nsw i32 %58, 1
%60 = icmp eq i32 %57, %59
br i1 %60, label %61, label %62
61: ; preds = %48
br label %88
62: ; preds = %48
br label %76
63: ; preds = %43
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%65 = load ptr, ptr %9, align 8
%66 = call i32 @puts(ptr noundef %65)
%67 = load i32, ptr %10, align 4
%68 = icmp eq i32 %67, 1
br i1 %68, label %74, label %69
69: ; preds = %63
%70 = load i32, ptr %15, align 4
%71 = load i32, ptr %11, align 4
%72 = sub nsw i32 %71, 1
%73 = icmp eq i32 %70, %72
br i1 %73, label %74, label %75
74: ; preds = %69, %63
br label %88
75: ; preds = %69
br label %76
76: ; preds = %75, %62
%77 = load i32, ptr %12, align 4
%78 = add nsw i32 %77, -1
store i32 %78, ptr %12, align 4
%79 = load i32, ptr %14, align 4
%80 = icmp ne i32 %79, 0
br i1 %80, label %81, label %83
81: ; preds = %76
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %83
83: ; preds = %81, %76
br label %84
84: ; preds = %83
%85 = load i32, ptr %15, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %15, align 4
br label %39, !llvm.loop !6
87: ; preds = %39
br label %88
88: ; preds = %87, %74, %61
ret void
}
declare i32 @printf(ptr noundef, ...) #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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi_ywryk5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"STATUS-------------------\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"PLOIDY & NO. ALLELES:\09%d, %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"CURRENT MODEL POSITION:\09\09%d\0A\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"CURRENT ALLELE POSITION:\09%d\0A\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"GENOTYPE MODEL:\09\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"\09~~~\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fill_genotype_model(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store i32 %2, ptr %10, align 4
store i32 %3, ptr %11, align 4
store i32 %4, ptr %12, align 4
store i32 %5, ptr %13, align 4
store i32 %6, ptr %14, align 4
%17 = load i32, ptr %14, align 4
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %28
19: ; preds = %7
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%21 = load i32, ptr %10, align 4
%22 = load i32, ptr %11, align 4
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %21, i32 noundef %22)
%24 = load i32, ptr %12, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %24)
%26 = load i32, ptr %13, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %26)
br label %28
28: ; preds = %19, %7
%29 = load ptr, ptr %8, align 8
%30 = load i32, ptr %13, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i8, ptr %32, align 1
%34 = load ptr, ptr %9, align 8
%35 = load i32, ptr %12, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
store i8 %33, ptr %37, align 1
%38 = load i32, ptr %13, align 4
store i32 %38, ptr %15, align 4
%39 = load i32, ptr %15, align 4
%40 = load i32, ptr %11, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %.lr.ph, label %89
.lr.ph: ; preds = %28
br label %42
42: ; preds = %.lr.ph, %83
%43 = load i32, ptr %12, align 4
%44 = load i32, ptr %10, align 4
%45 = sub nsw i32 %44, 1
%46 = icmp slt i32 %43, %45
br i1 %46, label %47, label %62
47: ; preds = %42
%48 = load ptr, ptr %8, align 8
%49 = load ptr, ptr %9, align 8
%50 = load i32, ptr %10, align 4
%51 = load i32, ptr %11, align 4
%52 = load i32, ptr %12, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %12, align 4
%54 = load i32, ptr %15, align 4
%55 = load i32, ptr %14, align 4
call void @fill_genotype_model(ptr noundef %48, ptr noundef %49, i32 noundef %50, i32 noundef %51, i32 noundef %53, i32 noundef %54, i32 noundef %55)
%56 = load i32, ptr %12, align 4
%57 = load i32, ptr %10, align 4
%58 = sub nsw i32 %57, 1
%59 = icmp eq i32 %56, %58
br i1 %59, label %60, label %61
60: ; preds = %47
br label %90
61: ; preds = %47
br label %75
62: ; preds = %42
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%64 = load ptr, ptr %9, align 8
%65 = call i32 @puts(ptr noundef %64)
%66 = load i32, ptr %10, align 4
%67 = icmp eq i32 %66, 1
br i1 %67, label %73, label %68
68: ; preds = %62
%69 = load i32, ptr %15, align 4
%70 = load i32, ptr %11, align 4
%71 = sub nsw i32 %70, 1
%72 = icmp eq i32 %69, %71
br i1 %72, label %73, label %74
73: ; preds = %68, %62
br label %90
74: ; preds = %68
br label %75
75: ; preds = %74, %61
%76 = load i32, ptr %12, align 4
%77 = add nsw i32 %76, -1
store i32 %77, ptr %12, align 4
%78 = load i32, ptr %14, align 4
%79 = icmp ne i32 %78, 0
br i1 %79, label %80, label %82
80: ; preds = %75
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %82
82: ; preds = %80, %75
br label %83
83: ; preds = %82
%84 = load i32, ptr %15, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %15, align 4
%86 = load i32, ptr %15, align 4
%87 = load i32, ptr %11, align 4
%88 = icmp slt i32 %86, %87
br i1 %88, label %42, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %83
br label %89
89: ; preds = %._crit_edge, %28
br label %90
90: ; preds = %89, %73, %60
ret void
}
declare i32 @printf(ptr noundef, ...) #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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp7hb7xpfc.c'
source_filename = "/tmp/tmp7hb7xpfc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i32 @pthread_spin_init(ptr noundef %6, i32 noundef 0)
%8 = call i32 @pthread_spin_lock(ptr noundef %6)
%9 = call i32 @pthread_spin_unlock(ptr noundef %6)
%10 = call i32 @pthread_spin_destroy(ptr noundef %6)
ret i32 0
}
declare i32 @pthread_spin_init(ptr noundef, i32 noundef) #1
declare i32 @pthread_spin_lock(ptr noundef) #1
declare i32 @pthread_spin_unlock(ptr noundef) #1
declare i32 @pthread_spin_destroy(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7hb7xpfc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i32 @pthread_spin_init(ptr noundef %6, i32 noundef 0)
%8 = call i32 @pthread_spin_lock(ptr noundef %6)
%9 = call i32 @pthread_spin_unlock(ptr noundef %6)
%10 = call i32 @pthread_spin_destroy(ptr noundef %6)
ret i32 0
}
declare i32 @pthread_spin_init(ptr noundef, i32 noundef) #1
declare i32 @pthread_spin_lock(ptr noundef) #1
declare i32 @pthread_spin_unlock(ptr noundef) #1
declare i32 @pthread_spin_destroy(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpupgup38i.c'
source_filename = "/tmp/tmpupgup38i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c" \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%.2X\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_block_hex(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
store ptr %7, ptr %5, align 8
store i32 0, ptr %3, align 4
br label %8
8: ; preds = %35, %1
%9 = load i32, ptr %3, align 4
%10 = icmp slt i32 %9, 8
br i1 %10, label %11, label %38
11: ; preds = %8
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %4, align 4
br label %13
13: ; preds = %30, %11
%14 = load i32, ptr %4, align 4
%15 = icmp slt i32 %14, 19
br i1 %15, label %16, label %33
16: ; preds = %13
%17 = load i32, ptr %4, align 4
%18 = srem i32 %17, 5
%19 = icmp eq i32 %18, 4
br i1 %19, label %20, label %22
20: ; preds = %16
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %29
22: ; preds = %16
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %23, align 4
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %6, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %25)
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds i32, ptr %27, i32 1
store ptr %28, ptr %5, align 8
br label %29
29: ; preds = %22, %20
br label %30
30: ; preds = %29
%31 = load i32, ptr %4, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %4, align 4
br label %13, !llvm.loop !6
33: ; preds = %13
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %35
35: ; preds = %33
%36 = load i32, ptr %3, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %3, align 4
br label %8, !llvm.loop !8
38: ; preds = %8
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpupgup38i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c" \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%.2X\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_block_hex(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
store ptr %7, ptr %5, align 8
store i32 0, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 8
br i1 %9, label %.lr.ph2, label %40
.lr.ph2: ; preds = %1
br label %10
10: ; preds = %.lr.ph2, %35
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %4, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %12, 19
br i1 %13, label %.lr.ph, label %33
.lr.ph: ; preds = %10
br label %14
14: ; preds = %.lr.ph, %28
%15 = load i32, ptr %4, align 4
%16 = srem i32 %15, 5
%17 = icmp eq i32 %16, 4
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %27
20: ; preds = %14
%21 = load ptr, ptr %5, align 8
%22 = load i32, ptr %21, align 4
store i32 %22, ptr %6, align 4
%23 = load i32, ptr %6, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %23)
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds i32, ptr %25, i32 1
store ptr %26, ptr %5, align 8
br label %27
27: ; preds = %20, %18
br label %28
28: ; preds = %27
%29 = load i32, ptr %4, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %4, align 4
%31 = load i32, ptr %4, align 4
%32 = icmp slt i32 %31, 19
br i1 %32, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %33
33: ; preds = %._crit_edge, %10
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %35
35: ; preds = %33
%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 = icmp slt i32 %38, 8
br i1 %39, label %10, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %35
br label %40
40: ; preds = %._crit_edge3, %1
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp0eb0z7of.c'
source_filename = "/tmp/tmp0eb0z7of.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@NAN = dso_local global float 0.000000e+00, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
store i32 0, ptr %1, align 4
%3 = load float, ptr @NAN, align 4
store float %3, ptr %2, align 4
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0eb0z7of.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@NAN = dso_local global float 0.000000e+00, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
store i32 0, ptr %1, align 4
%3 = load float, ptr @NAN, align 4
store float %3, ptr %2, align 4
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0c1jkfck.c'
source_filename = "/tmp/tmp0c1jkfck.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @genrand_seed(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = call i32 @init_genrand(i64 noundef %3)
ret void
}
declare i32 @init_genrand(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0c1jkfck.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @genrand_seed(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = call i32 @init_genrand(i64 noundef %3)
ret void
}
declare i32 @init_genrand(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp51sbrohw.c'
source_filename = "/tmp/tmp51sbrohw.c"
target datalayout = "e-m:e-p270: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/tmp51sbrohw.c"
target datalayout = "e-m:e-p270: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/tmpl5qnexzn.c'
source_filename = "/tmp/tmpl5qnexzn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @revstr(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @strlen(ptr noundef %7)
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = add nsw i32 %9, 1
%11 = zext i32 %10 to i64
%12 = call ptr @llvm.stacksave()
store ptr %12, ptr %5, align 8
%13 = alloca i8, i64 %11, align 16
store i64 %11, ptr %6, align 8
store i32 0, ptr %3, align 4
br label %14
14: ; preds = %30, %1
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %33
18: ; preds = %14
%19 = load ptr, ptr %2, align 8
%20 = load i32, ptr %4, align 4
%21 = load i32, ptr %3, align 4
%22 = sub nsw i32 %20, %21
%23 = sub nsw i32 %22, 1
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %19, i64 %24
%26 = load i8, ptr %25, align 1
%27 = load i32, ptr %3, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %13, i64 %28
store i8 %26, ptr %29, align 1
br label %30
30: ; preds = %18
%31 = load i32, ptr %3, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %3, align 4
br label %14, !llvm.loop !6
33: ; preds = %14
%34 = load i32, ptr %3, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %13, i64 %35
store i8 0, ptr %36, align 1
%37 = load ptr, ptr %2, align 8
%38 = call i32 @strcpy(ptr noundef %37, ptr noundef %13)
%39 = load ptr, ptr %5, align 8
call void @llvm.stackrestore(ptr %39)
ret void
}
declare i32 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @strcpy(ptr noundef, ptr noundef) #1
; 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl5qnexzn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @revstr(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @strlen(ptr noundef %7)
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = add nsw i32 %9, 1
%11 = zext i32 %10 to i64
%12 = call ptr @llvm.stacksave()
store ptr %12, ptr %5, align 8
%13 = alloca i8, i64 %11, align 16
store i64 %11, ptr %6, align 8
store i32 0, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph, label %35
.lr.ph: ; preds = %1
br label %17
17: ; preds = %.lr.ph, %29
%18 = load ptr, ptr %2, align 8
%19 = load i32, ptr %4, align 4
%20 = load i32, ptr %3, align 4
%21 = sub nsw i32 %19, %20
%22 = sub nsw i32 %21, 1
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %18, i64 %23
%25 = load i8, ptr %24, align 1
%26 = load i32, ptr %3, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %13, i64 %27
store i8 %25, ptr %28, align 1
br label %29
29: ; preds = %17
%30 = load i32, ptr %3, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %3, align 4
%32 = load i32, ptr %3, align 4
%33 = load i32, ptr %4, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %35
35: ; preds = %._crit_edge, %1
%36 = load i32, ptr %3, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %13, i64 %37
store i8 0, ptr %38, align 1
%39 = load ptr, ptr %2, align 8
%40 = call i32 @strcpy(ptr noundef %39, ptr noundef %13)
%41 = load ptr, ptr %5, align 8
call void @llvm.stackrestore(ptr %41)
ret void
}
declare i32 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @strcpy(ptr noundef, ptr noundef) #1
; 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpcycb302v.c'
source_filename = "/tmp/tmpcycb302v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c" \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pr_depth(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %10, %1
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %5, %6
br i1 %7, label %8, label %13
8: ; preds = %4
%9 = call i32 @printf(ptr noundef @.str)
br label %10
10: ; preds = %8
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %3, align 4
br label %4, !llvm.loop !6
13: ; preds = %4
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcycb302v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c" \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pr_depth(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %4, %5
br i1 %6, label %.lr.ph, label %15
.lr.ph: ; preds = %1
br label %7
7: ; preds = %.lr.ph, %9
%8 = call i32 @printf(ptr noundef @.str)
br label %9
9: ; preds = %7
%10 = load i32, ptr %3, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %3, align 4
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %2, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %15
15: ; preds = %._crit_edge, %1
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpgw9jwdub.c'
source_filename = "/tmp/tmpgw9jwdub.c"
target datalayout = "e-m:e-p270: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/tmpgw9jwdub.c"
target datalayout = "e-m:e-p270: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/tmp8djn3gn6.c'
source_filename = "/tmp/tmp8djn3gn6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i8], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
store i32 0, ptr %3, align 4
br label %6
6: ; preds = %59, %0
%7 = load i32, ptr %3, align 4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %8
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %62
13: ; preds = %6
%14 = load i32, ptr %3, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %15
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = load i32, ptr %3, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = add nsw i32 %18, %23
%25 = sub nsw i32 %24, 96
%26 = icmp sle i32 %25, 122
br i1 %26, label %27, label %42
27: ; preds = %13
%28 = load i32, ptr %3, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %29
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = load i32, ptr %3, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = add nsw i32 %32, %37
%39 = sub nsw i32 %38, 96
%40 = trunc i32 %39 to i8
%41 = call i32 @printf(ptr noundef @.str.1, i8 noundef signext %40)
br label %58
42: ; preds = %13
%43 = load i32, ptr %3, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %44
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = load i32, ptr %3, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %49
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = add nsw i32 %47, %52
%54 = sub nsw i32 %53, 96
%55 = sub nsw i32 %54, 26
%56 = trunc i32 %55 to i8
%57 = call i32 @printf(ptr noundef @.str.1, i8 noundef signext %56)
br label %58
58: ; preds = %42, %27
br label %59
59: ; preds = %58
%60 = load i32, ptr %3, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %3, align 4
br label %6, !llvm.loop !6
62: ; preds = %6
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8djn3gn6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i8], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
store i32 0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds [100 x i8], ptr %2, i64 0, 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 %.lr.ph, label %67
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %58
%13 = load i32, ptr %3, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = load i32, ptr %3, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = add nsw i32 %17, %22
%24 = sub nsw i32 %23, 96
%25 = icmp sle i32 %24, 122
br i1 %25, label %26, label %41
26: ; preds = %12
%27 = load i32, ptr %3, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = load i32, ptr %3, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %33
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = add nsw i32 %31, %36
%38 = sub nsw i32 %37, 96
%39 = trunc i32 %38 to i8
%40 = call i32 @printf(ptr noundef @.str.1, i8 noundef signext %39)
br label %57
41: ; preds = %12
%42 = load i32, ptr %3, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %43
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = load i32, ptr %3, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %48
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = add nsw i32 %46, %51
%53 = sub nsw i32 %52, 96
%54 = sub nsw i32 %53, 26
%55 = trunc i32 %54 to i8
%56 = call i32 @printf(ptr noundef @.str.1, i8 noundef signext %55)
br label %57
57: ; preds = %41, %26
br label %58
58: ; preds = %57
%59 = load i32, ptr %3, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %3, align 4
%61 = load i32, ptr %3, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %62
%64 = load i8, ptr %63, align 1
%65 = sext i8 %64 to i32
%66 = icmp ne i32 %65, 0
br i1 %66, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %58
br label %67
67: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpe81muvju.c'
source_filename = "/tmp/tmpe81muvju.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FLT_MAX = dso_local global float 0.000000e+00, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @convertTemp(i8 noundef signext %0, i8 noundef signext %1, float noundef %2) #0 {
%4 = alloca float, align 4
%5 = alloca i8, align 1
%6 = alloca i8, align 1
%7 = alloca float, align 4
%8 = alloca float, align 4
store i8 %0, ptr %5, align 1
store i8 %1, ptr %6, align 1
store float %2, ptr %7, align 4
%9 = load float, ptr @FLT_MAX, align 4
store float %9, ptr %8, align 4
%10 = load i8, ptr %5, align 1
%11 = sext i8 %10 to i32
switch i32 %11, label %38 [
i32 67, label %12
i32 68, label %14
i32 70, label %21
i32 75, label %27
i32 82, label %32
]
12: ; preds = %3
%13 = load float, ptr %7, align 4
store float %13, ptr %8, align 4
br label %40
14: ; preds = %3
%15 = load float, ptr %7, align 4
%16 = fpext float %15 to double
%17 = fmul double %16, 2.000000e+00
%18 = fdiv double %17, 3.000000e+00
%19 = fsub double 1.000000e+02, %18
%20 = fptrunc double %19 to float
store float %20, ptr %8, align 4
br label %40
21: ; preds = %3
%22 = load float, ptr %7, align 4
%23 = fpext float %22 to double
%24 = fsub double %23, 3.200000e+01
%25 = fdiv double %24, 1.800000e+00
%26 = fptrunc double %25 to float
store float %26, ptr %8, align 4
br label %40
27: ; preds = %3
%28 = load float, ptr %7, align 4
%29 = fpext float %28 to double
%30 = fsub double %29, 2.731500e+02
%31 = fptrunc double %30 to float
store float %31, ptr %8, align 4
br label %40
32: ; preds = %3
%33 = load float, ptr %7, align 4
%34 = fpext float %33 to double
%35 = fdiv double %34, 1.800000e+00
%36 = fsub double %35, 2.731500e+02
%37 = fptrunc double %36 to float
store float %37, ptr %8, align 4
br label %40
38: ; preds = %3
%39 = load float, ptr @FLT_MAX, align 4
store float %39, ptr %4, align 4
br label %70
40: ; preds = %32, %27, %21, %14, %12
%41 = load i8, ptr %6, align 1
%42 = sext i8 %41 to i32
switch i32 %42, label %66 [
i32 67, label %43
i32 68, label %44
i32 70, label %50
i32 75, label %55
i32 82, label %60
]
43: ; preds = %40
br label %68
44: ; preds = %40
%45 = load float, ptr %8, align 4
%46 = fsub float 1.000000e+02, %45
%47 = fpext float %46 to double
%48 = fmul double %47, 1.500000e+00
%49 = fptrunc double %48 to float
store float %49, ptr %8, align 4
br label %68
50: ; preds = %40
%51 = load float, ptr %8, align 4
%52 = fpext float %51 to double
%53 = call double @llvm.fmuladd.f64(double %52, double 1.800000e+00, double 3.200000e+01)
%54 = fptrunc double %53 to float
store float %54, ptr %8, align 4
br label %68
55: ; preds = %40
%56 = load float, ptr %8, align 4
%57 = fpext float %56 to double
%58 = fadd double %57, 2.731500e+02
%59 = fptrunc double %58 to float
store float %59, ptr %8, align 4
br label %68
60: ; preds = %40
%61 = load float, ptr %8, align 4
%62 = fpext float %61 to double
%63 = fadd double %62, 2.731500e+02
%64 = fmul double %63, 1.800000e+00
%65 = fptrunc double %64 to float
store float %65, ptr %8, align 4
br label %68
66: ; preds = %40
%67 = load float, ptr @FLT_MAX, align 4
store float %67, ptr %4, align 4
br label %70
68: ; preds = %60, %55, %50, %44, %43
%69 = load float, ptr %8, align 4
store float %69, ptr %4, align 4
br label %70
70: ; preds = %68, %66, %38
%71 = load float, ptr %4, align 4
ret float %71
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe81muvju.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FLT_MAX = dso_local global float 0.000000e+00, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @convertTemp(i8 noundef signext %0, i8 noundef signext %1, float noundef %2) #0 {
%4 = alloca float, align 4
%5 = alloca i8, align 1
%6 = alloca i8, align 1
%7 = alloca float, align 4
%8 = alloca float, align 4
store i8 %0, ptr %5, align 1
store i8 %1, ptr %6, align 1
store float %2, ptr %7, align 4
%9 = load float, ptr @FLT_MAX, align 4
store float %9, ptr %8, align 4
%10 = load i8, ptr %5, align 1
%11 = sext i8 %10 to i32
switch i32 %11, label %38 [
i32 67, label %12
i32 68, label %14
i32 70, label %21
i32 75, label %27
i32 82, label %32
]
12: ; preds = %3
%13 = load float, ptr %7, align 4
store float %13, ptr %8, align 4
br label %40
14: ; preds = %3
%15 = load float, ptr %7, align 4
%16 = fpext float %15 to double
%17 = fmul double %16, 2.000000e+00
%18 = fdiv double %17, 3.000000e+00
%19 = fsub double 1.000000e+02, %18
%20 = fptrunc double %19 to float
store float %20, ptr %8, align 4
br label %40
21: ; preds = %3
%22 = load float, ptr %7, align 4
%23 = fpext float %22 to double
%24 = fsub double %23, 3.200000e+01
%25 = fdiv double %24, 1.800000e+00
%26 = fptrunc double %25 to float
store float %26, ptr %8, align 4
br label %40
27: ; preds = %3
%28 = load float, ptr %7, align 4
%29 = fpext float %28 to double
%30 = fsub double %29, 2.731500e+02
%31 = fptrunc double %30 to float
store float %31, ptr %8, align 4
br label %40
32: ; preds = %3
%33 = load float, ptr %7, align 4
%34 = fpext float %33 to double
%35 = fdiv double %34, 1.800000e+00
%36 = fsub double %35, 2.731500e+02
%37 = fptrunc double %36 to float
store float %37, ptr %8, align 4
br label %40
38: ; preds = %3
%39 = load float, ptr @FLT_MAX, align 4
store float %39, ptr %4, align 4
br label %70
40: ; preds = %32, %27, %21, %14, %12
%41 = load i8, ptr %6, align 1
%42 = sext i8 %41 to i32
switch i32 %42, label %66 [
i32 67, label %43
i32 68, label %44
i32 70, label %50
i32 75, label %55
i32 82, label %60
]
43: ; preds = %40
br label %68
44: ; preds = %40
%45 = load float, ptr %8, align 4
%46 = fsub float 1.000000e+02, %45
%47 = fpext float %46 to double
%48 = fmul double %47, 1.500000e+00
%49 = fptrunc double %48 to float
store float %49, ptr %8, align 4
br label %68
50: ; preds = %40
%51 = load float, ptr %8, align 4
%52 = fpext float %51 to double
%53 = call double @llvm.fmuladd.f64(double %52, double 1.800000e+00, double 3.200000e+01)
%54 = fptrunc double %53 to float
store float %54, ptr %8, align 4
br label %68
55: ; preds = %40
%56 = load float, ptr %8, align 4
%57 = fpext float %56 to double
%58 = fadd double %57, 2.731500e+02
%59 = fptrunc double %58 to float
store float %59, ptr %8, align 4
br label %68
60: ; preds = %40
%61 = load float, ptr %8, align 4
%62 = fpext float %61 to double
%63 = fadd double %62, 2.731500e+02
%64 = fmul double %63, 1.800000e+00
%65 = fptrunc double %64 to float
store float %65, ptr %8, align 4
br label %68
66: ; preds = %40
%67 = load float, ptr @FLT_MAX, align 4
store float %67, ptr %4, align 4
br label %70
68: ; preds = %60, %55, %50, %44, %43
%69 = load float, ptr %8, align 4
store float %69, ptr %4, align 4
br label %70
70: ; preds = %68, %66, %38
%71 = load float, ptr %4, align 4
ret float %71
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2xhgn05n.c'
source_filename = "/tmp/tmp2xhgn05n.c"
target datalayout = "e-m:e-p270: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/tmp2xhgn05n.c"
target datalayout = "e-m:e-p270: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/tmp7e9tq4bw.c'
source_filename = "/tmp/tmp7e9tq4bw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [54 x i8] c"/sys/devices/virtual/backlight/acpi_video0/brightness\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"r+\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"Error: \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"Current level: %c\0A\00", align 1
@.str.5 = private unnamed_addr constant [19 x i8] c"Enter level (0-5):\00", align 1
@.str.6 = private unnamed_addr constant [32 x i8] c"Level must be between 0 and 5!\0A\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [4 x i8] c"%c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
store i32 0, ptr %1, align 4
%4 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp ule ptr %5, null
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @perror(ptr noundef @.str.2)
store i32 0, ptr %1, align 4
br label %35
9: ; preds = %0
%10 = load ptr, ptr %2, align 8
%11 = call i32 @fscanf(ptr noundef %10, ptr noundef @.str.3, ptr noundef %3)
%12 = load i8, ptr %3, align 1
%13 = sext i8 %12 to i32
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %13)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%16 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %3)
%17 = load i8, ptr %3, align 1
%18 = sext i8 %17 to i32
%19 = icmp slt i32 %18, 48
br i1 %19, label %24, label %20
20: ; preds = %9
%21 = load i8, ptr %3, align 1
%22 = sext i8 %21 to i32
%23 = icmp sgt i32 %22, 53
br i1 %23, label %24, label %26
24: ; preds = %20, %9
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store i32 0, ptr %1, align 4
br label %35
26: ; preds = %20
%27 = load ptr, ptr %2, align 8
%28 = load i32, ptr @SEEK_SET, align 4
%29 = call i32 @fseek(ptr noundef %27, i32 noundef 0, i32 noundef %28)
%30 = load ptr, ptr %2, align 8
%31 = load i8, ptr %3, align 1
%32 = call i32 @fprintf(ptr noundef %30, ptr noundef @.str.7, i8 noundef signext %31)
%33 = load ptr, ptr %2, align 8
%34 = call i32 @fclose(ptr noundef %33)
store i32 0, ptr %1, align 4
br label %35
35: ; preds = %26, %24, %7
%36 = load i32, ptr %1, align 4
ret i32 %36
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i8 noundef signext) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7e9tq4bw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [54 x i8] c"/sys/devices/virtual/backlight/acpi_video0/brightness\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"r+\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"Error: \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"Current level: %c\0A\00", align 1
@.str.5 = private unnamed_addr constant [19 x i8] c"Enter level (0-5):\00", align 1
@.str.6 = private unnamed_addr constant [32 x i8] c"Level must be between 0 and 5!\0A\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [4 x i8] c"%c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
store i32 0, ptr %1, align 4
%4 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp ule ptr %5, null
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @perror(ptr noundef @.str.2)
store i32 0, ptr %1, align 4
br label %35
9: ; preds = %0
%10 = load ptr, ptr %2, align 8
%11 = call i32 @fscanf(ptr noundef %10, ptr noundef @.str.3, ptr noundef %3)
%12 = load i8, ptr %3, align 1
%13 = sext i8 %12 to i32
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %13)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%16 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %3)
%17 = load i8, ptr %3, align 1
%18 = sext i8 %17 to i32
%19 = icmp slt i32 %18, 48
br i1 %19, label %24, label %20
20: ; preds = %9
%21 = load i8, ptr %3, align 1
%22 = sext i8 %21 to i32
%23 = icmp sgt i32 %22, 53
br i1 %23, label %24, label %26
24: ; preds = %20, %9
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store i32 0, ptr %1, align 4
br label %35
26: ; preds = %20
%27 = load ptr, ptr %2, align 8
%28 = load i32, ptr @SEEK_SET, align 4
%29 = call i32 @fseek(ptr noundef %27, i32 noundef 0, i32 noundef %28)
%30 = load ptr, ptr %2, align 8
%31 = load i8, ptr %3, align 1
%32 = call i32 @fprintf(ptr noundef %30, ptr noundef @.str.7, i8 noundef signext %31)
%33 = load ptr, ptr %2, align 8
%34 = call i32 @fclose(ptr noundef %33)
store i32 0, ptr %1, align 4
br label %35
35: ; preds = %26, %24, %7
%36 = load i32, ptr %1, align 4
ret i32 %36
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i8 noundef signext) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_wapt0o4.c'
source_filename = "/tmp/tmp_wapt0o4.c"
target datalayout = "e-m:e-p270: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_wapt0o4.c"
target datalayout = "e-m:e-p270: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/tmpl3hlmtxm.c'
source_filename = "/tmp/tmpl3hlmtxm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [1000 x i8], align 16
store i32 0, ptr %1, align 4
br label %3
3: ; preds = %7, %0
%4 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%5 = call i64 @getLine2(ptr noundef %4)
%6 = icmp sgt i64 %5, 0
br i1 %6, label %7, label %12
7: ; preds = %3
%8 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%9 = call i32 @reverse(ptr noundef %8)
%10 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%11 = call i32 @printf(ptr noundef @.str, ptr noundef %10)
br label %3, !llvm.loop !6
12: ; preds = %3
ret i32 0
}
declare i64 @getLine2(ptr noundef) #1
declare i32 @reverse(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl3hlmtxm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [1000 x i8], align 16
store i32 0, ptr %1, align 4
%3 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%4 = call i64 @getLine2(ptr noundef %3)
%5 = icmp sgt i64 %4, 0
br i1 %5, label %.lr.ph, label %13
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %6
%7 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%8 = call i32 @reverse(ptr noundef %7)
%9 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%10 = call i32 @printf(ptr noundef @.str, ptr noundef %9)
%11 = call i64 @getLine2(ptr noundef %3)
%12 = icmp sgt i64 %11, 0
br i1 %12, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %6
br label %13
13: ; preds = %._crit_edge, %0
ret i32 0
}
declare i64 @getLine2(ptr noundef) #1
declare i32 @reverse(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp1on6npy0.c'
source_filename = "/tmp/tmp1on6npy0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ERROR: memory allocation (malloc) failed in call_dsytri\0A\00", align 1
@stderr = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @call_dsytri(i8 noundef signext %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i8, align 1
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
store i8 %0, ptr %7, align 1
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
store i32 0, ptr %12, align 4
store ptr null, ptr %13, align 8
%14 = load i32, ptr %8, align 4
%15 = sext i32 %14 to i64
%16 = mul i64 8, %15
%17 = trunc i64 %16 to i32
%18 = call i64 @malloc(i32 noundef %17)
%19 = inttoptr i64 %18 to ptr
store ptr %19, ptr %13, align 8
%20 = load ptr, ptr %13, align 8
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %25
22: ; preds = %5
%23 = load i32, ptr @stderr, align 4
%24 = call i32 @fputs(ptr noundef @.str, i32 noundef %23)
store i32 -999, ptr %6, align 4
br label %33
25: ; preds = %5
%26 = load ptr, ptr %9, align 8
%27 = load ptr, ptr %11, align 8
%28 = load ptr, ptr %13, align 8
%29 = call i32 @dsytri_(ptr noundef %7, ptr noundef %8, ptr noundef %26, ptr noundef %10, ptr noundef %27, ptr noundef %28, ptr noundef %12)
%30 = load ptr, ptr %13, align 8
%31 = call i32 @free(ptr noundef %30)
%32 = load i32, ptr %12, align 4
store i32 %32, ptr %6, align 4
br label %33
33: ; preds = %25, %22
%34 = load i32, ptr %6, align 4
ret i32 %34
}
declare i64 @malloc(i32 noundef) #1
declare i32 @fputs(ptr noundef, i32 noundef) #1
declare i32 @dsytri_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1on6npy0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ERROR: memory allocation (malloc) failed in call_dsytri\0A\00", align 1
@stderr = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @call_dsytri(i8 noundef signext %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i8, align 1
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
store i8 %0, ptr %7, align 1
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
store i32 0, ptr %12, align 4
store ptr null, ptr %13, align 8
%14 = load i32, ptr %8, align 4
%15 = sext i32 %14 to i64
%16 = mul i64 8, %15
%17 = trunc i64 %16 to i32
%18 = call i64 @malloc(i32 noundef %17)
%19 = inttoptr i64 %18 to ptr
store ptr %19, ptr %13, align 8
%20 = load ptr, ptr %13, align 8
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %25
22: ; preds = %5
%23 = load i32, ptr @stderr, align 4
%24 = call i32 @fputs(ptr noundef @.str, i32 noundef %23)
store i32 -999, ptr %6, align 4
br label %33
25: ; preds = %5
%26 = load ptr, ptr %9, align 8
%27 = load ptr, ptr %11, align 8
%28 = load ptr, ptr %13, align 8
%29 = call i32 @dsytri_(ptr noundef %7, ptr noundef %8, ptr noundef %26, ptr noundef %10, ptr noundef %27, ptr noundef %28, ptr noundef %12)
%30 = load ptr, ptr %13, align 8
%31 = call i32 @free(ptr noundef %30)
%32 = load i32, ptr %12, align 4
store i32 %32, ptr %6, align 4
br label %33
33: ; preds = %25, %22
%34 = load i32, ptr %6, align 4
ret i32 %34
}
declare i64 @malloc(i32 noundef) #1
declare i32 @fputs(ptr noundef, i32 noundef) #1
declare i32 @dsytri_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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"}
|
; ModuleID = '/tmp/tmp16hueb2j.c'
source_filename = "/tmp/tmp16hueb2j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rtrim2(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 @strlen(ptr noundef %4)
%6 = sub nsw i32 %5, 1
store i32 %6, ptr %3, align 4
br label %7
7: ; preds = %20, %1
%8 = load i32, ptr %3, align 4
%9 = icmp sge i32 %8, 0
br i1 %9, label %10, label %18
10: ; preds = %7
%11 = load ptr, ptr %2, align 8
%12 = load i32, ptr %3, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = load i8, ptr %14, align 1
%16 = call i64 @isspace(i8 noundef signext %15)
%17 = icmp ne i64 %16, 0
br label %18
18: ; preds = %10, %7
%19 = phi i1 [ false, %7 ], [ %17, %10 ]
br i1 %19, label %20, label %23
20: ; preds = %18
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, -1
store i32 %22, ptr %3, align 4
br label %7, !llvm.loop !6
23: ; preds = %18
%24 = load ptr, ptr %2, align 8
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %24, i64 %27
store i8 0, ptr %28, align 1
%29 = load ptr, ptr %2, align 8
ret ptr %29
}
declare i32 @strlen(ptr noundef) #1
declare i64 @isspace(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp16hueb2j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rtrim2(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 @strlen(ptr noundef %4)
%6 = sub nsw i32 %5, 1
store i32 %6, ptr %3, align 4
br label %7
7: ; preds = %20, %1
%8 = load i32, ptr %3, align 4
%9 = icmp sge i32 %8, 0
br i1 %9, label %10, label %18
10: ; preds = %7
%11 = load ptr, ptr %2, align 8
%12 = load i32, ptr %3, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = load i8, ptr %14, align 1
%16 = call i64 @isspace(i8 noundef signext %15)
%17 = icmp ne i64 %16, 0
br label %18
18: ; preds = %10, %7
%19 = phi i1 [ false, %7 ], [ %17, %10 ]
br i1 %19, label %20, label %23
20: ; preds = %18
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, -1
store i32 %22, ptr %3, align 4
br label %7, !llvm.loop !6
23: ; preds = %18
%24 = load ptr, ptr %2, align 8
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %24, i64 %27
store i8 0, ptr %28, align 1
%29 = load ptr, ptr %2, align 8
ret ptr %29
}
declare i32 @strlen(ptr noundef) #1
declare i64 @isspace(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpyuz68dyc.c'
source_filename = "/tmp/tmpyuz68dyc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"f2\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @f2() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyuz68dyc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"f2\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @f2() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvpyfcmhi.c'
source_filename = "/tmp/tmpvpyfcmhi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_option(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call ptr @getoptdata(ptr noundef %5, i32 noundef 0, ptr noundef %6)
ret ptr %7
}
declare ptr @getoptdata(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvpyfcmhi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_option(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call ptr @getoptdata(ptr noundef %5, i32 noundef 0, ptr noundef %6)
ret ptr %7
}
declare ptr @getoptdata(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpath59z8s.c'
source_filename = "/tmp/tmpath59z8s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"file_finished: peer_id %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @file_finished(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = call ptr @PICA_id_to_base64(ptr noundef %5, ptr noundef null)
%7 = call i32 @printf(ptr noundef @.str, ptr noundef %6)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @PICA_id_to_base64(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/tmpath59z8s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"file_finished: peer_id %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @file_finished(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = call ptr @PICA_id_to_base64(ptr noundef %5, ptr noundef null)
%7 = call i32 @printf(ptr noundef @.str, ptr noundef %6)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @PICA_id_to_base64(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/tmpkgf2xh71.c'
source_filename = "/tmp/tmpkgf2xh71.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gcspy_arrayOutputWriteInt(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = ashr i32 %6, 24
%8 = call i32 @gcspy_arrayOutputBaseWrite(ptr noundef %5, i32 noundef %7)
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 1
%11 = load i32, ptr %4, align 4
%12 = ashr i32 %11, 16
%13 = and i32 %12, 255
%14 = call i32 @gcspy_arrayOutputBaseWrite(ptr noundef %10, i32 noundef %13)
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 2
%17 = load i32, ptr %4, align 4
%18 = ashr i32 %17, 8
%19 = and i32 %18, 255
%20 = call i32 @gcspy_arrayOutputBaseWrite(ptr noundef %16, i32 noundef %19)
%21 = load ptr, ptr %3, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 3
%23 = load i32, ptr %4, align 4
%24 = and i32 %23, 255
%25 = call i32 @gcspy_arrayOutputBaseWrite(ptr noundef %22, i32 noundef %24)
ret void
}
declare i32 @gcspy_arrayOutputBaseWrite(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/tmpkgf2xh71.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gcspy_arrayOutputWriteInt(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = ashr i32 %6, 24
%8 = call i32 @gcspy_arrayOutputBaseWrite(ptr noundef %5, i32 noundef %7)
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 1
%11 = load i32, ptr %4, align 4
%12 = ashr i32 %11, 16
%13 = and i32 %12, 255
%14 = call i32 @gcspy_arrayOutputBaseWrite(ptr noundef %10, i32 noundef %13)
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 2
%17 = load i32, ptr %4, align 4
%18 = ashr i32 %17, 8
%19 = and i32 %18, 255
%20 = call i32 @gcspy_arrayOutputBaseWrite(ptr noundef %16, i32 noundef %19)
%21 = load ptr, ptr %3, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 3
%23 = load i32, ptr %4, align 4
%24 = and i32 %23, 255
%25 = call i32 @gcspy_arrayOutputBaseWrite(ptr noundef %22, i32 noundef %24)
ret void
}
declare i32 @gcspy_arrayOutputBaseWrite(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/tmp6052y4gz.c'
source_filename = "/tmp/tmp6052y4gz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"m\00", align 1
@optind = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [5 x i8] c"0x%x\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 i32, align 4
%11 = 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 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 0
%14 = load ptr, ptr %13, align 8
store ptr %14, ptr %11, align 8
br label %15
15: ; preds = %24, %2
%16 = load i32, ptr %4, align 4
%17 = load ptr, ptr %5, align 8
%18 = call i32 @getopt(i32 noundef %16, ptr noundef %17, ptr noundef @.str)
store i32 %18, ptr %10, align 4
%19 = icmp ne i32 %18, -1
br i1 %19, label %20, label %25
20: ; preds = %15
%21 = load i32, ptr %10, align 4
switch i32 %21, label %23 [
i32 109, label %22
]
22: ; preds = %20
store i32 1, ptr %6, align 4
br label %24
23: ; preds = %20
br label %24
24: ; preds = %23, %22
br label %15, !llvm.loop !6
25: ; preds = %15
%26 = load i64, ptr @optind, align 8
%27 = load i32, ptr %4, align 4
%28 = sext i32 %27 to i64
%29 = sub nsw i64 %28, %26
%30 = trunc i64 %29 to i32
store i32 %30, ptr %4, align 4
%31 = load i64, ptr @optind, align 8
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 %31
store ptr %33, ptr %5, align 8
%34 = load i32, ptr %4, align 4
%35 = icmp slt i32 %34, 2
br i1 %35, label %36, label %39
36: ; preds = %25
%37 = load ptr, ptr %11, align 8
%38 = call i32 @usage(ptr noundef %37)
store i32 1, ptr %3, align 4
br label %71
39: ; preds = %25
%40 = load ptr, ptr %5, align 8
%41 = getelementptr inbounds ptr, ptr %40, i64 0
%42 = load ptr, ptr %41, align 8
%43 = call i32 @sscanf(ptr noundef %42, ptr noundef @.str.1, ptr noundef %8)
%44 = load ptr, ptr %5, align 8
%45 = getelementptr inbounds ptr, ptr %44, i64 1
%46 = load ptr, ptr %45, align 8
%47 = call i32 @sscanf(ptr noundef %46, ptr noundef @.str.1, ptr noundef %9)
%48 = load i32, ptr %6, align 4
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %53
50: ; preds = %39
%51 = call i32 (...) @intel_get_pci_device()
%52 = call i32 @intel_register_access_init(i32 noundef %51, i32 noundef 0)
br label %58
53: ; preds = %39
%54 = call i64 @iopl(i32 noundef 3)
%55 = icmp eq i64 %54, 0
%56 = zext i1 %55 to i32
%57 = call i32 @assert(i32 noundef %56)
br label %58
58: ; preds = %53, %50
%59 = load i32, ptr %8, align 4
%60 = load i32, ptr %9, align 4
%61 = load i32, ptr %6, align 4
%62 = call i32 @write_reg(i32 noundef %59, i32 noundef %60, i32 noundef %61)
%63 = load i32, ptr %6, align 4
%64 = icmp ne i32 %63, 0
br i1 %64, label %65, label %67
65: ; preds = %58
%66 = call i32 (...) @intel_register_access_fini()
br label %69
67: ; preds = %58
%68 = call i64 @iopl(i32 noundef 0)
br label %69
69: ; preds = %67, %65
%70 = load i32, ptr %7, align 4
store i32 %70, ptr %3, align 4
br label %71
71: ; preds = %69, %36
%72 = load i32, ptr %3, align 4
ret i32 %72
}
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @usage(ptr noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @intel_register_access_init(i32 noundef, i32 noundef) #1
declare i32 @intel_get_pci_device(...) #1
declare i32 @assert(i32 noundef) #1
declare i64 @iopl(i32 noundef) #1
declare i32 @write_reg(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @intel_register_access_fini(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp6052y4gz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"m\00", align 1
@optind = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [5 x i8] c"0x%x\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 i32, align 4
%11 = 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 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 0
%14 = load ptr, ptr %13, align 8
store ptr %14, ptr %11, align 8
%15 = load i32, ptr %4, align 4
%16 = load ptr, ptr %5, align 8
%17 = call i32 @getopt(i32 noundef %15, ptr noundef %16, ptr noundef @.str)
store i32 %17, ptr %10, align 4
%18 = icmp ne i32 %17, -1
br i1 %18, label %.lr.ph, label %28
.lr.ph: ; preds = %2
br label %19
19: ; preds = %.lr.ph, %23
%20 = load i32, ptr %10, align 4
switch i32 %20, label %22 [
i32 109, label %21
]
21: ; preds = %19
store i32 1, ptr %6, align 4
br label %23
22: ; preds = %19
br label %23
23: ; preds = %22, %21
%24 = load i32, ptr %4, align 4
%25 = load ptr, ptr %5, align 8
%26 = call i32 @getopt(i32 noundef %24, ptr noundef %25, ptr noundef @.str)
store i32 %26, ptr %10, align 4
%27 = icmp ne i32 %26, -1
br i1 %27, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %28
28: ; preds = %._crit_edge, %2
%29 = load i64, ptr @optind, align 8
%30 = load i32, ptr %4, align 4
%31 = sext i32 %30 to i64
%32 = sub nsw i64 %31, %29
%33 = trunc i64 %32 to i32
store i32 %33, ptr %4, align 4
%34 = load i64, ptr @optind, align 8
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds ptr, ptr %35, i64 %34
store ptr %36, ptr %5, align 8
%37 = load i32, ptr %4, align 4
%38 = icmp slt i32 %37, 2
br i1 %38, label %39, label %42
39: ; preds = %28
%40 = load ptr, ptr %11, align 8
%41 = call i32 @usage(ptr noundef %40)
store i32 1, ptr %3, align 4
br label %74
42: ; preds = %28
%43 = load ptr, ptr %5, align 8
%44 = getelementptr inbounds ptr, ptr %43, i64 0
%45 = load ptr, ptr %44, align 8
%46 = call i32 @sscanf(ptr noundef %45, ptr noundef @.str.1, ptr noundef %8)
%47 = load ptr, ptr %5, align 8
%48 = getelementptr inbounds ptr, ptr %47, i64 1
%49 = load ptr, ptr %48, align 8
%50 = call i32 @sscanf(ptr noundef %49, ptr noundef @.str.1, ptr noundef %9)
%51 = load i32, ptr %6, align 4
%52 = icmp ne i32 %51, 0
br i1 %52, label %53, label %56
53: ; preds = %42
%54 = call i32 (...) @intel_get_pci_device()
%55 = call i32 @intel_register_access_init(i32 noundef %54, i32 noundef 0)
br label %61
56: ; preds = %42
%57 = call i64 @iopl(i32 noundef 3)
%58 = icmp eq i64 %57, 0
%59 = zext i1 %58 to i32
%60 = call i32 @assert(i32 noundef %59)
br label %61
61: ; preds = %56, %53
%62 = load i32, ptr %8, align 4
%63 = load i32, ptr %9, align 4
%64 = load i32, ptr %6, align 4
%65 = call i32 @write_reg(i32 noundef %62, i32 noundef %63, i32 noundef %64)
%66 = load i32, ptr %6, align 4
%67 = icmp ne i32 %66, 0
br i1 %67, label %68, label %70
68: ; preds = %61
%69 = call i32 (...) @intel_register_access_fini()
br label %72
70: ; preds = %61
%71 = call i64 @iopl(i32 noundef 0)
br label %72
72: ; preds = %70, %68
%73 = load i32, ptr %7, align 4
store i32 %73, ptr %3, align 4
br label %74
74: ; preds = %72, %39
%75 = load i32, ptr %3, align 4
ret i32 %75
}
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @usage(ptr noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @intel_register_access_init(i32 noundef, i32 noundef) #1
declare i32 @intel_get_pci_device(...) #1
declare i32 @assert(i32 noundef) #1
declare i64 @iopl(i32 noundef) #1
declare i32 @write_reg(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @intel_register_access_fini(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp561_ugfc.c'
source_filename = "/tmp/tmp561_ugfc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @xar_from_base64(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = sdiv i32 %8, 4
%10 = add nsw i32 %9, 1
%11 = mul nsw i32 3, %10
%12 = call ptr @malloc(i32 noundef %11)
store ptr %12, ptr %7, align 8
%13 = load ptr, ptr %7, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %16, label %15
15: ; preds = %2
store ptr null, ptr %3, align 8
br label %28
16: ; preds = %2
%17 = load ptr, ptr %4, align 8
%18 = load ptr, ptr %7, align 8
%19 = load i32, ptr %5, align 4
%20 = call i32 @raw_base64_decode(ptr noundef %17, ptr noundef %18, i32 noundef %19)
store i32 %20, ptr %6, align 4
%21 = load i32, ptr %6, align 4
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %16
%24 = load ptr, ptr %7, align 8
%25 = call i32 @free(ptr noundef %24)
store ptr null, ptr %3, align 8
br label %28
26: ; preds = %16
%27 = load ptr, ptr %7, align 8
store ptr %27, ptr %3, align 8
br label %28
28: ; preds = %26, %23, %15
%29 = load ptr, ptr %3, align 8
ret ptr %29
}
declare ptr @malloc(i32 noundef) #1
declare i32 @raw_base64_decode(ptr noundef, ptr noundef, i32 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp561_ugfc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @xar_from_base64(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = sdiv i32 %8, 4
%10 = add nsw i32 %9, 1
%11 = mul nsw i32 3, %10
%12 = call ptr @malloc(i32 noundef %11)
store ptr %12, ptr %7, align 8
%13 = load ptr, ptr %7, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %16, label %15
15: ; preds = %2
store ptr null, ptr %3, align 8
br label %28
16: ; preds = %2
%17 = load ptr, ptr %4, align 8
%18 = load ptr, ptr %7, align 8
%19 = load i32, ptr %5, align 4
%20 = call i32 @raw_base64_decode(ptr noundef %17, ptr noundef %18, i32 noundef %19)
store i32 %20, ptr %6, align 4
%21 = load i32, ptr %6, align 4
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %16
%24 = load ptr, ptr %7, align 8
%25 = call i32 @free(ptr noundef %24)
store ptr null, ptr %3, align 8
br label %28
26: ; preds = %16
%27 = load ptr, ptr %7, align 8
store ptr %27, ptr %3, align 8
br label %28
28: ; preds = %26, %23, %15
%29 = load ptr, ptr %3, align 8
ret ptr %29
}
declare ptr @malloc(i32 noundef) #1
declare i32 @raw_base64_decode(ptr noundef, ptr noundef, i32 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"}
|
; ModuleID = '/tmp/tmp6yrj767p.c'
source_filename = "/tmp/tmp6yrj767p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @file_extract_path(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
store i32 %7, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %33
10: ; preds = %2
br label %11
11: ; preds = %31, %10
%12 = load i32, ptr %5, align 4
%13 = add nsw i32 %12, -1
store i32 %13, ptr %5, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %32
15: ; preds = %11
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %5, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = load i8, ptr %4, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %21, %23
br i1 %24, label %25, label %31
25: ; preds = %15
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %5, align 4
%28 = add nsw i32 %27, 1
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %26, i64 %29
store i8 0, ptr %30, align 1
br label %31
31: ; preds = %25, %15
br label %11, !llvm.loop !6
32: ; preds = %11
br label %33
33: ; preds = %32, %2
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6yrj767p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @file_extract_path(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
store i32 %7, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %35
10: ; preds = %2
%11 = load i32, ptr %5, align 4
%12 = add nsw i32 %11, -1
store i32 %12, ptr %5, align 4
%13 = icmp ne i32 %12, 0
br i1 %13, label %.lr.ph, label %34
.lr.ph: ; preds = %10
br label %14
14: ; preds = %.lr.ph, %30
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = load i8, ptr %4, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %20, %22
br i1 %23, label %24, label %30
24: ; preds = %14
%25 = load ptr, ptr %3, align 8
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, 1
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %25, i64 %28
store i8 0, ptr %29, align 1
br label %30
30: ; preds = %24, %14
%31 = load i32, ptr %5, align 4
%32 = add nsw i32 %31, -1
store i32 %32, ptr %5, align 4
%33 = icmp ne i32 %32, 0
br i1 %33, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %34
34: ; preds = %._crit_edge, %10
br label %35
35: ; preds = %34, %2
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpcmk1s1bk.c'
source_filename = "/tmp/tmpcmk1s1bk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%union.bpf_attr = type { i32 }
%struct.rlimit = type { i32, i32 }
@BPF_MAP_CREATE = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@EPERM = dso_local global i64 0, align 8
@RLIMIT_MEMLOCK = dso_local global i32 0, align 4
@RLIM_INFINITY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bpf_create_map(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%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 %union.bpf_attr, align 4
%12 = alloca i32, align 4
%13 = alloca %struct.rlimit, align 4
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%14 = call i32 @memset(ptr noundef %11, i32 noundef 0, i32 noundef 4)
%15 = load i32, ptr %6, align 4
store i32 %15, ptr %11, align 4
%16 = load i32, ptr %7, align 4
store i32 %16, ptr %11, align 4
%17 = load i32, ptr %8, align 4
store i32 %17, ptr %11, align 4
%18 = load i32, ptr %9, align 4
store i32 %18, ptr %11, align 4
%19 = load i32, ptr %10, align 4
store i32 %19, ptr %11, align 4
%20 = load i32, ptr @BPF_MAP_CREATE, align 4
%21 = call i32 @syscall(i32 noundef 321, i32 noundef %20, ptr noundef %11, i32 noundef 4)
store i32 %21, ptr %12, align 4
%22 = load i32, ptr %12, align 4
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %46
24: ; preds = %5
%25 = load i64, ptr @errno, align 8
%26 = load i64, ptr @EPERM, align 8
%27 = icmp eq i64 %25, %26
br i1 %27, label %28, label %46
28: ; preds = %24
call void @llvm.memset.p0.i64(ptr align 4 %13, i8 0, i64 8, i1 false)
%29 = load i32, ptr @RLIMIT_MEMLOCK, align 4
%30 = call i64 @getrlimit(i32 noundef %29, ptr noundef %13)
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %45
32: ; preds = %28
%33 = load i32, ptr @RLIM_INFINITY, align 4
%34 = getelementptr inbounds %struct.rlimit, ptr %13, i32 0, i32 0
store i32 %33, ptr %34, align 4
%35 = getelementptr inbounds %struct.rlimit, ptr %13, i32 0, i32 0
%36 = load i32, ptr %35, align 4
%37 = getelementptr inbounds %struct.rlimit, ptr %13, i32 0, i32 1
store i32 %36, ptr %37, align 4
%38 = load i32, ptr @RLIMIT_MEMLOCK, align 4
%39 = call i64 @setrlimit(i32 noundef %38, ptr noundef %13)
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %44
41: ; preds = %32
%42 = load i32, ptr @BPF_MAP_CREATE, align 4
%43 = call i32 @syscall(i32 noundef 321, i32 noundef %42, ptr noundef %11, i32 noundef 4)
store i32 %43, ptr %12, align 4
br label %44
44: ; preds = %41, %32
br label %45
45: ; preds = %44, %28
br label %46
46: ; preds = %45, %24, %5
%47 = load i32, ptr %12, align 4
ret i32 %47
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @syscall(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i64 @getrlimit(i32 noundef, ptr noundef) #1
declare i64 @setrlimit(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcmk1s1bk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%union.bpf_attr = type { i32 }
%struct.rlimit = type { i32, i32 }
@BPF_MAP_CREATE = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@EPERM = dso_local global i64 0, align 8
@RLIMIT_MEMLOCK = dso_local global i32 0, align 4
@RLIM_INFINITY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bpf_create_map(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%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 %union.bpf_attr, align 4
%12 = alloca i32, align 4
%13 = alloca %struct.rlimit, align 4
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%14 = call i32 @memset(ptr noundef %11, i32 noundef 0, i32 noundef 4)
%15 = load i32, ptr %6, align 4
store i32 %15, ptr %11, align 4
%16 = load i32, ptr %7, align 4
store i32 %16, ptr %11, align 4
%17 = load i32, ptr %8, align 4
store i32 %17, ptr %11, align 4
%18 = load i32, ptr %9, align 4
store i32 %18, ptr %11, align 4
%19 = load i32, ptr %10, align 4
store i32 %19, ptr %11, align 4
%20 = load i32, ptr @BPF_MAP_CREATE, align 4
%21 = call i32 @syscall(i32 noundef 321, i32 noundef %20, ptr noundef %11, i32 noundef 4)
store i32 %21, ptr %12, align 4
%22 = load i32, ptr %12, align 4
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %46
24: ; preds = %5
%25 = load i64, ptr @errno, align 8
%26 = load i64, ptr @EPERM, align 8
%27 = icmp eq i64 %25, %26
br i1 %27, label %28, label %46
28: ; preds = %24
call void @llvm.memset.p0.i64(ptr align 4 %13, i8 0, i64 8, i1 false)
%29 = load i32, ptr @RLIMIT_MEMLOCK, align 4
%30 = call i64 @getrlimit(i32 noundef %29, ptr noundef %13)
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %45
32: ; preds = %28
%33 = load i32, ptr @RLIM_INFINITY, align 4
%34 = getelementptr inbounds %struct.rlimit, ptr %13, i32 0, i32 0
store i32 %33, ptr %34, align 4
%35 = getelementptr inbounds %struct.rlimit, ptr %13, i32 0, i32 0
%36 = load i32, ptr %35, align 4
%37 = getelementptr inbounds %struct.rlimit, ptr %13, i32 0, i32 1
store i32 %36, ptr %37, align 4
%38 = load i32, ptr @RLIMIT_MEMLOCK, align 4
%39 = call i64 @setrlimit(i32 noundef %38, ptr noundef %13)
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %44
41: ; preds = %32
%42 = load i32, ptr @BPF_MAP_CREATE, align 4
%43 = call i32 @syscall(i32 noundef 321, i32 noundef %42, ptr noundef %11, i32 noundef 4)
store i32 %43, ptr %12, align 4
br label %44
44: ; preds = %41, %32
br label %45
45: ; preds = %44, %28
br label %46
46: ; preds = %45, %24, %5
%47 = load i32, ptr %12, align 4
ret i32 %47
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @syscall(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i64 @getrlimit(i32 noundef, ptr noundef) #1
declare i64 @setrlimit(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbarbg11s.c'
source_filename = "/tmp/tmpbarbg11s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @unsunder(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp ne ptr %5, null
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 noundef %7)
br label %9
9: ; preds = %20, %2
%10 = load i64, ptr %4, align 8
%11 = icmp ugt i64 %10, 0
br i1 %11, label %12, label %25
12: ; preds = %9
%13 = load ptr, ptr %3, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %12
%18 = load ptr, ptr %3, align 8
store i8 10, ptr %18, align 1
br label %19
19: ; preds = %17, %12
br label %20
20: ; preds = %19
%21 = load i64, ptr %4, align 8
%22 = add i64 %21, -1
store i64 %22, ptr %4, align 8
%23 = load ptr, ptr %3, align 8
%24 = getelementptr inbounds i8, ptr %23, i32 1
store ptr %24, ptr %3, align 8
br label %9, !llvm.loop !6
25: ; preds = %9
ret void
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbarbg11s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @unsunder(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp ne ptr %5, null
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 noundef %7)
%9 = load i64, ptr %4, align 8
%10 = icmp ugt i64 %9, 0
br i1 %10, label %.lr.ph, label %26
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %19
%12 = load ptr, ptr %3, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %11
%17 = load ptr, ptr %3, align 8
store i8 10, ptr %17, align 1
br label %18
18: ; preds = %16, %11
br label %19
19: ; preds = %18
%20 = load i64, ptr %4, align 8
%21 = add i64 %20, -1
store i64 %21, ptr %4, align 8
%22 = load ptr, ptr %3, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 1
store ptr %23, ptr %3, align 8
%24 = load i64, ptr %4, align 8
%25 = icmp ugt i64 %24, 0
br i1 %25, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %26
26: ; preds = %._crit_edge, %2
ret void
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpo_78ybbg.c'
source_filename = "/tmp/tmpo_78ybbg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca [78 x i8], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%6 = getelementptr inbounds [78 x i8], ptr %1, i64 0, i64 0
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = call i32 @convert(ptr noundef %6, i32 noundef %7, i32 noundef %8)
%10 = getelementptr inbounds [78 x i8], ptr %1, i64 0, i64 0
%11 = call i32 @printf(ptr noundef @.str.1, ptr noundef %10)
ret void
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @convert(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo_78ybbg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca [78 x i8], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%6 = getelementptr inbounds [78 x i8], ptr %1, i64 0, i64 0
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = call i32 @convert(ptr noundef %6, i32 noundef %7, i32 noundef %8)
%10 = getelementptr inbounds [78 x i8], ptr %1, i64 0, i64 0
%11 = call i32 @printf(ptr noundef @.str.1, ptr noundef %10)
ret void
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @convert(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpga8d8z4a.c'
source_filename = "/tmp/tmpga8d8z4a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"read\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"write\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 i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 3
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = call i32 @print_usage(ptr noundef %10)
store i32 -1, ptr %3, align 4
br label %45
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 2
%15 = load ptr, ptr %14, align 8
%16 = call i64 @strtol(ptr noundef %15, ptr noundef null, i32 noundef 10)
store i64 %16, ptr %6, align 8
%17 = load i64, ptr %6, align 8
%18 = icmp sle i64 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %12
%20 = load ptr, ptr %5, align 8
%21 = call i32 @print_usage(ptr noundef %20)
store i32 -1, ptr %3, align 4
br label %45
22: ; preds = %12
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 1
%25 = load ptr, ptr %24, align 8
%26 = call i64 @strcmp(ptr noundef %25, ptr noundef @.str)
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %22
%29 = load i64, ptr %6, align 8
%30 = call i32 @verify_data(i64 noundef %29)
store i32 %30, ptr %3, align 4
br label %45
31: ; preds = %22
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 1
%34 = load ptr, ptr %33, align 8
%35 = call i64 @strcmp(ptr noundef %34, ptr noundef @.str.1)
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %31
%38 = load i64, ptr %6, align 8
%39 = call i32 @generate_data(i64 noundef %38)
store i32 %39, ptr %3, align 4
br label %45
40: ; preds = %31
%41 = load ptr, ptr %5, align 8
%42 = call i32 @print_usage(ptr noundef %41)
br label %43
43: ; preds = %40
br label %44
44: ; preds = %43
store i32 -1, ptr %3, align 4
br label %45
45: ; preds = %44, %37, %28, %19, %9
%46 = load i32, ptr %3, align 4
ret i32 %46
}
declare i32 @print_usage(ptr noundef) #1
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @verify_data(i64 noundef) #1
declare i32 @generate_data(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpga8d8z4a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"read\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"write\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 i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 3
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = call i32 @print_usage(ptr noundef %10)
store i32 -1, ptr %3, align 4
br label %45
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 2
%15 = load ptr, ptr %14, align 8
%16 = call i64 @strtol(ptr noundef %15, ptr noundef null, i32 noundef 10)
store i64 %16, ptr %6, align 8
%17 = load i64, ptr %6, align 8
%18 = icmp sle i64 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %12
%20 = load ptr, ptr %5, align 8
%21 = call i32 @print_usage(ptr noundef %20)
store i32 -1, ptr %3, align 4
br label %45
22: ; preds = %12
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 1
%25 = load ptr, ptr %24, align 8
%26 = call i64 @strcmp(ptr noundef %25, ptr noundef @.str)
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %22
%29 = load i64, ptr %6, align 8
%30 = call i32 @verify_data(i64 noundef %29)
store i32 %30, ptr %3, align 4
br label %45
31: ; preds = %22
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 1
%34 = load ptr, ptr %33, align 8
%35 = call i64 @strcmp(ptr noundef %34, ptr noundef @.str.1)
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %31
%38 = load i64, ptr %6, align 8
%39 = call i32 @generate_data(i64 noundef %38)
store i32 %39, ptr %3, align 4
br label %45
40: ; preds = %31
%41 = load ptr, ptr %5, align 8
%42 = call i32 @print_usage(ptr noundef %41)
br label %43
43: ; preds = %40
br label %44
44: ; preds = %43
store i32 -1, ptr %3, align 4
br label %45
45: ; preds = %44, %37, %28, %19, %9
%46 = load i32, ptr %3, align 4
ret i32 %46
}
declare i32 @print_usage(ptr noundef) #1
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @verify_data(i64 noundef) #1
declare i32 @generate_data(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdfqyaudz.c'
source_filename = "/tmp/tmpdfqyaudz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ft_strdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 -1, ptr %5, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 @ft_strlen(ptr noundef %7)
%9 = add nsw i32 %8, 1
%10 = sext i32 %9 to i64
store i64 %10, ptr %4, align 8
%11 = load i64, ptr %4, align 8
%12 = call ptr @ft_strnew(i64 noundef %11)
store ptr %12, ptr %6, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %15
14: ; preds = %1
store ptr null, ptr %2, align 8
br label %31
15: ; preds = %1
br label %16
16: ; preds = %21, %15
%17 = load i64, ptr %5, align 8
%18 = add i64 %17, 1
store i64 %18, ptr %5, align 8
%19 = load i64, ptr %4, align 8
%20 = icmp ult i64 %18, %19
br i1 %20, label %21, label %29
21: ; preds = %16
%22 = load ptr, ptr %3, align 8
%23 = load i64, ptr %5, align 8
%24 = getelementptr inbounds i8, ptr %22, i64 %23
%25 = load i8, ptr %24, align 1
%26 = load ptr, ptr %6, align 8
%27 = load i64, ptr %5, align 8
%28 = getelementptr inbounds i8, ptr %26, i64 %27
store i8 %25, ptr %28, align 1
br label %16, !llvm.loop !6
29: ; preds = %16
%30 = load ptr, ptr %6, align 8
store ptr %30, ptr %2, align 8
br label %31
31: ; preds = %29, %14
%32 = load ptr, ptr %2, align 8
ret ptr %32
}
declare i32 @ft_strlen(ptr noundef) #1
declare ptr @ft_strnew(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/tmpdfqyaudz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ft_strdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 -1, ptr %5, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 @ft_strlen(ptr noundef %7)
%9 = add nsw i32 %8, 1
%10 = sext i32 %9 to i64
store i64 %10, ptr %4, align 8
%11 = load i64, ptr %4, align 8
%12 = call ptr @ft_strnew(i64 noundef %11)
store ptr %12, ptr %6, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %15
14: ; preds = %1
store ptr null, ptr %2, align 8
br label %34
15: ; preds = %1
%16 = load i64, ptr %5, align 8
%17 = add i64 %16, 1
store i64 %17, ptr %5, align 8
%18 = load i64, ptr %4, align 8
%19 = icmp ult i64 %17, %18
br i1 %19, label %.lr.ph, label %32
.lr.ph: ; preds = %15
br label %20
20: ; preds = %.lr.ph, %20
%21 = load ptr, ptr %3, align 8
%22 = load i64, ptr %5, align 8
%23 = getelementptr inbounds i8, ptr %21, i64 %22
%24 = load i8, ptr %23, align 1
%25 = load ptr, ptr %6, align 8
%26 = load i64, ptr %5, align 8
%27 = getelementptr inbounds i8, ptr %25, i64 %26
store i8 %24, ptr %27, align 1
%28 = load i64, ptr %5, align 8
%29 = add i64 %28, 1
store i64 %29, ptr %5, align 8
%30 = load i64, ptr %4, align 8
%31 = icmp ult i64 %29, %30
br i1 %31, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %32
32: ; preds = %._crit_edge, %15
%33 = load ptr, ptr %6, align 8
store ptr %33, ptr %2, align 8
br label %34
34: ; preds = %32, %14
%35 = load ptr, ptr %2, align 8
ret ptr %35
}
declare i32 @ft_strlen(ptr noundef) #1
declare ptr @ft_strnew(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/tmpla4wuevp.c'
source_filename = "/tmp/tmpla4wuevp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [2 x i8] c"*\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
store i32 0, ptr %4, align 4
br label %6
6: ; preds = %21, %0
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %25
10: ; preds = %6
store i32 0, ptr %3, align 4
br label %11
11: ; preds = %16, %10
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp sle i32 %12, %13
br i1 %14, label %15, label %20
15: ; preds = %11
br label %16
16: ; preds = %15
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %3, align 4
%19 = call i32 @printf(ptr noundef @.str.1)
br label %11, !llvm.loop !6
20: ; preds = %11
br label %21
21: ; preds = %20
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %4, align 4
%24 = call i32 @printf(ptr noundef @.str.2)
br label %6, !llvm.loop !8
25: ; preds = %6
%26 = load i32, ptr %1, align 4
ret i32 %26
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpla4wuevp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [2 x i8] c"*\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
store i32 0, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = load i32, ptr %2, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph2, label %29
.lr.ph2: ; preds = %0
br label %9
9: ; preds = %.lr.ph2, %22
store i32 0, ptr %3, align 4
%10 = load i32, ptr %3, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp sle i32 %10, %11
br i1 %12, label %.lr.ph, label %21
.lr.ph: ; preds = %9
br label %13
13: ; preds = %.lr.ph, %14
br label %14
14: ; preds = %13
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %3, align 4
%17 = call i32 @printf(ptr noundef @.str.1)
%18 = load i32, ptr %3, align 4
%19 = load i32, ptr %4, align 4
%20 = icmp sle i32 %18, %19
br i1 %20, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %21
21: ; preds = %._crit_edge, %9
br label %22
22: ; preds = %21
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %4, align 4
%25 = call i32 @printf(ptr noundef @.str.2)
%26 = load i32, ptr %4, align 4
%27 = load i32, ptr %2, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %9, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %22
br label %29
29: ; preds = %._crit_edge3, %0
%30 = load i32, ptr %1, align 4
ret i32 %30
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpvdqfmt3i.c'
source_filename = "/tmp/tmpvdqfmt3i.c"
target datalayout = "e-m:e-p270: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/tmpvdqfmt3i.c"
target datalayout = "e-m:e-p270: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/tmp62twtbc3.c'
source_filename = "/tmp/tmp62twtbc3.c"
target datalayout = "e-m:e-p270: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.str = private unnamed_addr constant [203 x i8] c"C is a general-purpose, imperative computer programming language, supporting structured programming, lexical variable scope and recursion, while a static type system prevents many unintended operations.\00", align 16
@stdin = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i8], align 16
%3 = alloca [4 x i8], align 1
%4 = alloca [203 x i8], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.main.str, i64 203, i1 false)
store i32 0, ptr %5, align 4
%7 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%8 = load i32, ptr @stdin, align 4
%9 = call ptr @fgets(ptr noundef %7, i32 noundef 100, i32 noundef %8)
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %14
11: ; preds = %0
%12 = load i32, ptr @EXIT_FAILURE, align 4
%13 = call i32 @exit(i32 noundef %12) #4
unreachable
14: ; preds = %0
%15 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%16 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%17 = call i32 @sscanf(ptr noundef %15, ptr noundef @.str, ptr noundef %16)
%18 = icmp ne i32 %17, 1
br i1 %18, label %19, label %22
19: ; preds = %14
%20 = load i32, ptr @EXIT_FAILURE, align 4
%21 = call i32 @exit(i32 noundef %20) #4
unreachable
22: ; preds = %14
store i32 0, ptr %6, align 4
br label %23
23: ; preds = %68, %22
%24 = load i32, ptr %6, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [203 x i8], ptr %4, i64 0, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp ne i32 %28, 0
br i1 %29, label %30, label %71
30: ; preds = %23
%31 = load i32, ptr %6, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [203 x i8], ptr %4, i64 0, i64 %32
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %35, %38
br i1 %39, label %40, label %67
40: ; preds = %30
%41 = load i32, ptr %6, align 4
%42 = add nsw i32 %41, 1
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [203 x i8], ptr %4, i64 0, i64 %43
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 1
%48 = load i8, ptr %47, align 1
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %46, %49
br i1 %50, label %51, label %66
51: ; preds = %40
%52 = load i32, ptr %6, align 4
%53 = add nsw i32 %52, 2
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [203 x i8], ptr %4, i64 0, i64 %54
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 2
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = icmp eq i32 %57, %60
br i1 %61, label %62, label %65
62: ; preds = %51
%63 = load i32, ptr %5, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %5, align 4
br label %65
65: ; preds = %62, %51
br label %66
66: ; preds = %65, %40
br label %67
67: ; preds = %66, %30
br label %68
68: ; preds = %67
%69 = load i32, ptr %6, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %6, align 4
br label %23, !llvm.loop !6
71: ; preds = %23
%72 = load i32, ptr %5, align 4
%73 = call i32 @printf(ptr noundef @.str.1, i32 noundef %72)
%74 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %74
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp62twtbc3.c"
target datalayout = "e-m:e-p270: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.str = private unnamed_addr constant [203 x i8] c"C is a general-purpose, imperative computer programming language, supporting structured programming, lexical variable scope and recursion, while a static type system prevents many unintended operations.\00", align 16
@stdin = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i8], align 16
%3 = alloca [4 x i8], align 1
%4 = alloca [203 x i8], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.main.str, i64 203, i1 false)
store i32 0, ptr %5, align 4
%7 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%8 = load i32, ptr @stdin, align 4
%9 = call ptr @fgets(ptr noundef %7, i32 noundef 100, i32 noundef %8)
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %14
11: ; preds = %0
%12 = load i32, ptr @EXIT_FAILURE, align 4
%13 = call i32 @exit(i32 noundef %12) #4
unreachable
14: ; preds = %0
%15 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%16 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%17 = call i32 @sscanf(ptr noundef %15, ptr noundef @.str, ptr noundef %16)
%18 = icmp ne i32 %17, 1
br i1 %18, label %19, label %22
19: ; preds = %14
%20 = load i32, ptr @EXIT_FAILURE, align 4
%21 = call i32 @exit(i32 noundef %20) #4
unreachable
22: ; preds = %14
store i32 0, ptr %6, align 4
%23 = load i32, ptr %6, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [203 x i8], ptr %4, i64 0, i64 %24
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = icmp ne i32 %27, 0
br i1 %28, label %.lr.ph, label %76
.lr.ph: ; preds = %22
br label %29
29: ; preds = %.lr.ph, %67
%30 = load i32, ptr %6, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [203 x i8], ptr %4, i64 0, i64 %31
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %34, %37
br i1 %38, label %39, label %66
39: ; preds = %29
%40 = load i32, ptr %6, align 4
%41 = add nsw i32 %40, 1
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [203 x i8], ptr %4, i64 0, i64 %42
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 1
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %45, %48
br i1 %49, label %50, label %65
50: ; preds = %39
%51 = load i32, ptr %6, align 4
%52 = add nsw i32 %51, 2
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [203 x i8], ptr %4, i64 0, i64 %53
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 2
%58 = load i8, ptr %57, align 1
%59 = sext i8 %58 to i32
%60 = icmp eq i32 %56, %59
br i1 %60, label %61, label %64
61: ; preds = %50
%62 = load i32, ptr %5, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %5, align 4
br label %64
64: ; preds = %61, %50
br label %65
65: ; preds = %64, %39
br label %66
66: ; preds = %65, %29
br label %67
67: ; preds = %66
%68 = load i32, ptr %6, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %6, align 4
%70 = load i32, ptr %6, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [203 x i8], ptr %4, i64 0, i64 %71
%73 = load i8, ptr %72, align 1
%74 = sext i8 %73 to i32
%75 = icmp ne i32 %74, 0
br i1 %75, label %29, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %67
br label %76
76: ; preds = %._crit_edge, %22
%77 = load i32, ptr %5, align 4
%78 = call i32 @printf(ptr noundef @.str.1, i32 noundef %77)
%79 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %79
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpdo4tzx_0.c'
source_filename = "/tmp/tmpdo4tzx_0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"Database\00", align 1
@S_IRWXU = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"Database/database.txt\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c" %[^\0A]s\00", align 1
@EOF = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @database_number() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca [128 x i8], align 16
%5 = load i32, ptr @S_IRWXU, align 4
%6 = call i32 @mkdir(ptr noundef @.str, i32 noundef %5)
%7 = call ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.2)
store ptr %7, ptr %2, align 8
%8 = load ptr, ptr %2, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %14
10: ; preds = %0
%11 = call ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.3)
store ptr %11, ptr %2, align 8
%12 = load ptr, ptr %2, align 8
%13 = call i32 @fclose(ptr noundef %12)
store i32 0, ptr %1, align 4
br label %27
14: ; preds = %0
%15 = call ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.2)
store ptr %15, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %16
16: ; preds = %22, %14
%17 = load ptr, ptr %2, align 8
%18 = getelementptr inbounds [128 x i8], ptr %4, i64 0, i64 0
%19 = call i64 @fscanf(ptr noundef %17, ptr noundef @.str.4, ptr noundef %18)
%20 = load i64, ptr @EOF, align 8
%21 = icmp ne i64 %19, %20
br i1 %21, label %22, label %25
22: ; preds = %16
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %3, align 4
br label %16, !llvm.loop !6
25: ; preds = %16
%26 = load i32, ptr %3, align 4
store i32 %26, ptr %1, align 4
br label %27
27: ; preds = %25, %10
%28 = load i32, ptr %1, align 4
ret i32 %28
}
declare i32 @mkdir(ptr noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i64 @fscanf(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/tmpdo4tzx_0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"Database\00", align 1
@S_IRWXU = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"Database/database.txt\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c" %[^\0A]s\00", align 1
@EOF = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @database_number() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca [128 x i8], align 16
%5 = load i32, ptr @S_IRWXU, align 4
%6 = call i32 @mkdir(ptr noundef @.str, i32 noundef %5)
%7 = call ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.2)
store ptr %7, ptr %2, align 8
%8 = load ptr, ptr %2, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %14
10: ; preds = %0
%11 = call ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.3)
store ptr %11, ptr %2, align 8
%12 = load ptr, ptr %2, align 8
%13 = call i32 @fclose(ptr noundef %12)
store i32 0, ptr %1, align 4
br label %30
14: ; preds = %0
%15 = call ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.2)
store ptr %15, ptr %2, align 8
store i32 0, ptr %3, align 4
%16 = load ptr, ptr %2, align 8
%17 = getelementptr inbounds [128 x i8], ptr %4, i64 0, i64 0
%18 = call i64 @fscanf(ptr noundef %16, ptr noundef @.str.4, ptr noundef %17)
%19 = load i64, ptr @EOF, align 8
%20 = icmp ne i64 %18, %19
br i1 %20, label %.lr.ph, label %28
.lr.ph: ; preds = %14
br label %21
21: ; preds = %.lr.ph, %21
%22 = load i32, ptr %3, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %3, align 4
%24 = load ptr, ptr %2, align 8
%25 = call i64 @fscanf(ptr noundef %24, ptr noundef @.str.4, ptr noundef %17)
%26 = load i64, ptr @EOF, align 8
%27 = icmp ne i64 %25, %26
br i1 %27, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %28
28: ; preds = %._crit_edge, %14
%29 = load i32, ptr %3, align 4
store i32 %29, ptr %1, align 4
br label %30
30: ; preds = %28, %10
%31 = load i32, ptr %1, align 4
ret i32 %31
}
declare i32 @mkdir(ptr noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i64 @fscanf(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/tmp8qntffmo.c'
source_filename = "/tmp/tmp8qntffmo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"Call function lerp: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @lerp(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = call i32 @printf(ptr noundef @.str)
%8 = load i32, ptr %6, align 4
%9 = sub nsw i32 1, %8
%10 = load i32, ptr %4, align 4
%11 = mul nsw i32 %9, %10
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %5, align 4
%14 = mul nsw i32 %12, %13
%15 = add nsw i32 %11, %14
ret i32 %15
}
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/tmp8qntffmo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"Call function lerp: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @lerp(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = call i32 @printf(ptr noundef @.str)
%8 = load i32, ptr %6, align 4
%9 = sub nsw i32 1, %8
%10 = load i32, ptr %4, align 4
%11 = mul nsw i32 %9, %10
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %5, align 4
%14 = mul nsw i32 %12, %13
%15 = add nsw i32 %11, %14
ret i32 %15
}
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/tmp345y0d7_.c'
source_filename = "/tmp/tmp345y0d7_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@NSS_STATUS_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_nss_inject_sethostent(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr @NSS_STATUS_SUCCESS, align 4
ret i32 %3
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp345y0d7_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@NSS_STATUS_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_nss_inject_sethostent(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr @NSS_STATUS_SUCCESS, align 4
ret i32 %3
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpm0yyqpqd.c'
source_filename = "/tmp/tmpm0yyqpqd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i8 @USBModeGet(i8 noundef zeroext %0) #0 {
%2 = alloca i8, align 1
store volatile i8 %0, ptr %2, align 1
%3 = load volatile i8, ptr %2, align 1
%4 = zext i8 %3 to i32
%5 = add nsw i32 %4, 96
%6 = sext i32 %5 to i64
%7 = inttoptr i64 %6 to ptr
%8 = load volatile i8, ptr %7, align 1
%9 = zext i8 %8 to i32
%10 = and i32 %9, 157
%11 = trunc i32 %10 to i8
ret i8 %11
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm0yyqpqd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i8 @USBModeGet(i8 noundef zeroext %0) #0 {
%2 = alloca i8, align 1
store volatile i8 %0, ptr %2, align 1
%3 = load volatile i8, ptr %2, align 1
%4 = zext i8 %3 to i32
%5 = add nsw i32 %4, 96
%6 = sext i32 %5 to i64
%7 = inttoptr i64 %6 to ptr
%8 = load volatile i8, ptr %7, align 1
%9 = zext i8 %8 to i32
%10 = and i32 %9, 157
%11 = trunc i32 %10 to i8
ret i8 %11
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6o6lga15.c'
source_filename = "/tmp/tmp6o6lga15.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalpha.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isalpha should be 0 for 0x8c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalpha_0x8c() #0 {
%1 = call i64 @isalpha(i32 noundef 140)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 705, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalpha(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/tmp6o6lga15.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalpha.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isalpha should be 0 for 0x8c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalpha_0x8c() #0 {
%1 = call i64 @isalpha(i32 noundef 140)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 705, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalpha(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/tmpa0g5rm4r.c'
source_filename = "/tmp/tmpa0g5rm4r.c"
target datalayout = "e-m:e-p270: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 [32 x i8] c"lsh: expected argument to \22cd\22\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"lsh\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @lsh_cd(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds ptr, ptr %3, i64 1
%5 = load ptr, ptr %4, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i32, ptr @stderr, align 4
%9 = call i32 @fprintf(i32 noundef %8, ptr noundef @.str)
br label %19
10: ; preds = %1
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 1
%13 = load ptr, ptr %12, align 8
%14 = call i64 @chdir(ptr noundef %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %10
%17 = call i32 @perror(ptr noundef @.str.1)
br label %18
18: ; preds = %16, %10
br label %19
19: ; preds = %18, %7
ret i32 1
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i64 @chdir(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa0g5rm4r.c"
target datalayout = "e-m:e-p270: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 [32 x i8] c"lsh: expected argument to \22cd\22\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"lsh\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @lsh_cd(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds ptr, ptr %3, i64 1
%5 = load ptr, ptr %4, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i32, ptr @stderr, align 4
%9 = call i32 @fprintf(i32 noundef %8, ptr noundef @.str)
br label %19
10: ; preds = %1
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 1
%13 = load ptr, ptr %12, align 8
%14 = call i64 @chdir(ptr noundef %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %10
%17 = call i32 @perror(ptr noundef @.str.1)
br label %18
18: ; preds = %16, %10
br label %19
19: ; preds = %18, %7
ret i32 1
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i64 @chdir(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpa0uig8al.c'
source_filename = "/tmp/tmpa0uig8al.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @surface_refine_setup_cf(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call i32 @libaft_internal_surfmeshrefiner_ss_setup(double noundef %3)
ret i32 %4
}
declare i32 @libaft_internal_surfmeshrefiner_ss_setup(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa0uig8al.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @surface_refine_setup_cf(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call i32 @libaft_internal_surfmeshrefiner_ss_setup(double noundef %3)
ret i32 %4
}
declare i32 @libaft_internal_surfmeshrefiner_ss_setup(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyrqzvrdi.c'
source_filename = "/tmp/tmpyrqzvrdi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @delay(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = mul nsw i32 %3, 1000
%5 = call i32 @usleep(i32 noundef %4)
ret i32 %5
}
declare i32 @usleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyrqzvrdi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @delay(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = mul nsw i32 %3, 1000
%5 = call i32 @usleep(i32 noundef %4)
ret i32 %5
}
declare i32 @usleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnty01q8v.c'
source_filename = "/tmp/tmpnty01q8v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"NICK \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @log_nickname(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
%13 = load ptr, ptr %6, align 8
%14 = call ptr @strstr(ptr noundef %13, ptr noundef @.str)
store ptr %14, ptr %10, align 8
%15 = load ptr, ptr %10, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %17, label %66
17: ; preds = %4
%18 = load ptr, ptr %8, align 8
%19 = load ptr, ptr %10, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 5
%21 = load i64, ptr %7, align 8
%22 = load ptr, ptr %10, align 8
%23 = load ptr, ptr %6, align 8
%24 = ptrtoint ptr %22 to i64
%25 = ptrtoint ptr %23 to i64
%26 = sub i64 %24, %25
%27 = sub i64 %21, %26
%28 = sub i64 %27, 5
%29 = call i32 @memcpy(ptr noundef %18, ptr noundef %20, i64 noundef %28)
%30 = load i64, ptr %7, align 8
%31 = load ptr, ptr %10, align 8
%32 = load ptr, ptr %6, align 8
%33 = ptrtoint ptr %31 to i64
%34 = ptrtoint ptr %32 to i64
%35 = sub i64 %33, %34
%36 = sub i64 %30, %35
store i64 %36, ptr %12, align 8
store i64 0, ptr %11, align 8
br label %37
37: ; preds = %62, %17
%38 = load i64, ptr %11, align 8
%39 = load i64, ptr %12, align 8
%40 = icmp ult i64 %38, %39
br i1 %40, label %41, label %65
41: ; preds = %37
%42 = load ptr, ptr %8, align 8
%43 = load i64, ptr %11, align 8
%44 = getelementptr inbounds i8, ptr %42, i64 %43
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 13
br i1 %47, label %55, label %48
48: ; preds = %41
%49 = load ptr, ptr %8, align 8
%50 = load i64, ptr %11, align 8
%51 = getelementptr inbounds i8, ptr %49, i64 %50
%52 = load i8, ptr %51, align 1
%53 = sext i8 %52 to i32
%54 = icmp eq i32 %53, 10
br i1 %54, label %55, label %61
55: ; preds = %48, %41
%56 = load ptr, ptr %8, align 8
%57 = load i64, ptr %11, align 8
%58 = getelementptr inbounds i8, ptr %56, i64 %57
store i8 0, ptr %58, align 1
%59 = load ptr, ptr %8, align 8
%60 = call i64 @strlen(ptr noundef %59)
store i64 %60, ptr %5, align 8
br label %67
61: ; preds = %48
br label %62
62: ; preds = %61
%63 = load i64, ptr %11, align 8
%64 = add i64 %63, 1
store i64 %64, ptr %11, align 8
br label %37, !llvm.loop !6
65: ; preds = %37
br label %66
66: ; preds = %65, %4
store i64 0, ptr %5, align 8
br label %67
67: ; preds = %66, %55
%68 = load i64, ptr %5, align 8
ret i64 %68
}
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpnty01q8v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"NICK \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @log_nickname(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
%13 = load ptr, ptr %6, align 8
%14 = call ptr @strstr(ptr noundef %13, ptr noundef @.str)
store ptr %14, ptr %10, align 8
%15 = load ptr, ptr %10, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %17, label %68
17: ; preds = %4
%18 = load ptr, ptr %8, align 8
%19 = load ptr, ptr %10, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 5
%21 = load i64, ptr %7, align 8
%22 = load ptr, ptr %10, align 8
%23 = load ptr, ptr %6, align 8
%24 = ptrtoint ptr %22 to i64
%25 = ptrtoint ptr %23 to i64
%26 = sub i64 %24, %25
%27 = sub i64 %21, %26
%28 = sub i64 %27, 5
%29 = call i32 @memcpy(ptr noundef %18, ptr noundef %20, i64 noundef %28)
%30 = load i64, ptr %7, align 8
%31 = load ptr, ptr %10, align 8
%32 = load ptr, ptr %6, align 8
%33 = ptrtoint ptr %31 to i64
%34 = ptrtoint ptr %32 to i64
%35 = sub i64 %33, %34
%36 = sub i64 %30, %35
store i64 %36, ptr %12, align 8
store i64 0, ptr %11, align 8
%37 = load i64, ptr %11, align 8
%38 = load i64, ptr %12, align 8
%39 = icmp ult i64 %37, %38
br i1 %39, label %.lr.ph, label %67
.lr.ph: ; preds = %17
br label %40
40: ; preds = %.lr.ph, %61
%41 = load ptr, ptr %8, align 8
%42 = load i64, ptr %11, align 8
%43 = getelementptr inbounds i8, ptr %41, i64 %42
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %45, 13
br i1 %46, label %54, label %47
47: ; preds = %40
%48 = load ptr, ptr %8, align 8
%49 = load i64, ptr %11, align 8
%50 = getelementptr inbounds i8, ptr %48, i64 %49
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = icmp eq i32 %52, 10
br i1 %53, label %54, label %60
54: ; preds = %47, %40
%55 = load ptr, ptr %8, align 8
%56 = load i64, ptr %11, align 8
%57 = getelementptr inbounds i8, ptr %55, i64 %56
store i8 0, ptr %57, align 1
%58 = load ptr, ptr %8, align 8
%59 = call i64 @strlen(ptr noundef %58)
store i64 %59, ptr %5, align 8
br label %69
60: ; preds = %47
br label %61
61: ; preds = %60
%62 = load i64, ptr %11, align 8
%63 = add i64 %62, 1
store i64 %63, ptr %11, align 8
%64 = load i64, ptr %11, align 8
%65 = load i64, ptr %12, align 8
%66 = icmp ult i64 %64, %65
br i1 %66, label %40, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %61
br label %67
67: ; preds = %._crit_edge, %17
br label %68
68: ; preds = %67, %4
store i64 0, ptr %5, align 8
br label %69
69: ; preds = %68, %54
%70 = load i64, ptr %5, align 8
ret i64 %70
}
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp94se_9f6.c'
source_filename = "/tmp/tmp94se_9f6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"?%di\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mc_printer_assign(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp ne i32 %3, 0
%5 = zext i1 %4 to i64
%6 = select i1 %4, i32 18, i32 19
%7 = call i32 @do_csi(ptr noundef @.str, i32 noundef %6)
ret void
}
declare i32 @do_csi(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/tmp94se_9f6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"?%di\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mc_printer_assign(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp ne i32 %3, 0
%5 = zext i1 %4 to i64
%6 = select i1 %4, i32 18, i32 19
%7 = call i32 @do_csi(ptr noundef @.str, i32 noundef %6)
ret void
}
declare i32 @do_csi(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/tmpggdt8fps.c'
source_filename = "/tmp/tmpggdt8fps.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define weak dso_local void @usr_mlme_set_conf(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
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %4, align 4
store i32 %6, ptr %4, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpggdt8fps.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define weak dso_local void @usr_mlme_set_conf(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
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %4, align 4
store i32 %6, ptr %4, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkzthxix2.c'
source_filename = "/tmp/tmpkzthxix2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sort_utils_string_cmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
store ptr %7, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %9, align 8
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %11, align 8
%13 = call i32 @strcmp(ptr noundef %10, ptr noundef %12)
ret i32 %13
}
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/tmpkzthxix2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sort_utils_string_cmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
store ptr %7, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %9, align 8
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %11, align 8
%13 = call i32 @strcmp(ptr noundef %10, ptr noundef %12)
ret i32 %13
}
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/tmpm91u5zdl.c'
source_filename = "/tmp/tmpm91u5zdl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"enter an exitValue: \00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"enter kernel to die with exitValue=%d\0A\00", align 1
; Function Attrs: noinline noreturn nounwind sspstrong uwtable
define dso_local i32 @exit() #0 {
%1 = alloca i32, align 4
%2 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%3 = call i32 (...) @geti()
store i32 %3, ptr %1, align 4
%4 = load i32, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %4)
%6 = load i32, ptr %1, align 4
%7 = call i32 @syscall(i32 noundef 6, i32 noundef %6, i32 noundef 0)
unreachable
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @geti(...) #1
declare i32 @syscall(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline noreturn nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm91u5zdl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"enter an exitValue: \00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"enter kernel to die with exitValue=%d\0A\00", align 1
; Function Attrs: noinline noreturn nounwind sspstrong uwtable
define dso_local i32 @exit() #0 {
%1 = alloca i32, align 4
%2 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%3 = call i32 (...) @geti()
store i32 %3, ptr %1, align 4
%4 = load i32, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %4)
%6 = load i32, ptr %1, align 4
%7 = call i32 @syscall(i32 noundef 6, i32 noundef %6, i32 noundef 0)
unreachable
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @geti(...) #1
declare i32 @syscall(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline noreturn nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcxb5osvm.c'
source_filename = "/tmp/tmpcxb5osvm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @printbuf(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %38, %2
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %41
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp sge i32 %16, 32
br i1 %17, label %18, label %33
18: ; preds = %10
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %5, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp sle i32 %24, 254
br i1 %25, label %26, label %33
26: ; preds = %18
%27 = load ptr, ptr %3, align 8
%28 = load i32, ptr %5, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
br label %34
33: ; preds = %18, %10
br label %34
34: ; preds = %33, %26
%35 = phi i32 [ %32, %26 ], [ 46, %33 ]
%36 = trunc i32 %35 to i8
%37 = call i32 @putchar(i8 noundef signext %36)
br label %38
38: ; preds = %34
%39 = load i32, ptr %5, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %5, align 4
br label %6, !llvm.loop !6
41: ; preds = %6
ret void
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcxb5osvm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @printbuf(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %43
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %37
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp sge i32 %15, 32
br i1 %16, label %17, label %32
17: ; preds = %9
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %5, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp sle i32 %23, 254
br i1 %24, label %25, label %32
25: ; preds = %17
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %5, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
br label %33
32: ; preds = %17, %9
br label %33
33: ; preds = %32, %25
%34 = phi i32 [ %31, %25 ], [ 46, %32 ]
%35 = trunc i32 %34 to i8
%36 = call i32 @putchar(i8 noundef signext %35)
br label %37
37: ; preds = %33
%38 = load i32, ptr %5, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %5, align 4
%40 = load i32, ptr %5, align 4
%41 = load i32, ptr %4, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %43
43: ; preds = %._crit_edge, %2
ret void
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp8yb0y3xc.c'
source_filename = "/tmp/tmp8yb0y3xc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"'next repeat' must appear within a repeat\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Error_NextRepeatOutOfContext(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = call i32 @_Error(i64 noundef %3, ptr noundef @.str)
ret void
}
declare i32 @_Error(i64 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/tmp8yb0y3xc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"'next repeat' must appear within a repeat\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Error_NextRepeatOutOfContext(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = call i32 @_Error(i64 noundef %3, ptr noundef @.str)
ret void
}
declare i32 @_Error(i64 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/tmpbqy9n8ze.c'
source_filename = "/tmp/tmpbqy9n8ze.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @entropy(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store double 0.000000e+00, ptr %5, align 8
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %55, %2
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %58
11: ; preds = %7
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %6, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds double, ptr %12, i64 %14
%16 = load double, ptr %15, align 8
%17 = fcmp ogt double %16, 0.000000e+00
br i1 %17, label %18, label %54
18: ; preds = %11
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %6, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds double, ptr %19, i64 %21
%23 = load double, ptr %22, align 8
%24 = fcmp olt double %23, 1.000000e+00
br i1 %24, label %25, label %54
25: ; preds = %18
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %6, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds double, ptr %26, i64 %28
%30 = load double, ptr %29, align 8
%31 = load ptr, ptr %3, align 8
%32 = load i32, ptr %6, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds double, ptr %31, i64 %33
%35 = load double, ptr %34, align 8
%36 = call double @log(double noundef %35) #3
%37 = load ptr, ptr %3, align 8
%38 = load i32, ptr %6, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds double, ptr %37, i64 %39
%41 = load double, ptr %40, align 8
%42 = fsub double 1.000000e+00, %41
%43 = load ptr, ptr %3, align 8
%44 = load i32, ptr %6, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds double, ptr %43, i64 %45
%47 = load double, ptr %46, align 8
%48 = fsub double 1.000000e+00, %47
%49 = call double @log(double noundef %48) #3
%50 = fmul double %42, %49
%51 = call double @llvm.fmuladd.f64(double %30, double %36, double %50)
%52 = load double, ptr %5, align 8
%53 = fsub double %52, %51
store double %53, ptr %5, align 8
br label %54
54: ; preds = %25, %18, %11
br label %55
55: ; preds = %54
%56 = load i32, ptr %6, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %6, align 4
br label %7, !llvm.loop !6
58: ; preds = %7
%59 = load double, ptr %5, align 8
%60 = call double @log(double noundef 2.000000e+00) #3
%61 = fdiv double %59, %60
ret double %61
}
; Function Attrs: nounwind
declare double @log(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbqy9n8ze.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @entropy(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store double 0.000000e+00, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load i32, ptr %6, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph, label %60
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %54
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %6, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds double, ptr %11, i64 %13
%15 = load double, ptr %14, align 8
%16 = fcmp ogt double %15, 0.000000e+00
br i1 %16, label %17, label %53
17: ; preds = %10
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %6, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds double, ptr %18, i64 %20
%22 = load double, ptr %21, align 8
%23 = fcmp olt double %22, 1.000000e+00
br i1 %23, label %24, label %53
24: ; preds = %17
%25 = load ptr, ptr %3, align 8
%26 = load i32, ptr %6, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds double, ptr %25, i64 %27
%29 = load double, ptr %28, align 8
%30 = load ptr, ptr %3, align 8
%31 = load i32, ptr %6, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds double, ptr %30, i64 %32
%34 = load double, ptr %33, align 8
%35 = call double @log(double noundef %34) #3
%36 = load ptr, ptr %3, align 8
%37 = load i32, ptr %6, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds double, ptr %36, i64 %38
%40 = load double, ptr %39, align 8
%41 = fsub double 1.000000e+00, %40
%42 = load ptr, ptr %3, align 8
%43 = load i32, ptr %6, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds double, ptr %42, i64 %44
%46 = load double, ptr %45, align 8
%47 = fsub double 1.000000e+00, %46
%48 = call double @log(double noundef %47) #3
%49 = fmul double %41, %48
%50 = call double @llvm.fmuladd.f64(double %29, double %35, double %49)
%51 = load double, ptr %5, align 8
%52 = fsub double %51, %50
store double %52, ptr %5, align 8
br label %53
53: ; preds = %24, %17, %10
br label %54
54: ; preds = %53
%55 = load i32, ptr %6, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %6, align 4
%57 = load i32, ptr %6, align 4
%58 = load i32, ptr %4, align 4
%59 = icmp slt i32 %57, %58
br i1 %59, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %54
br label %60
60: ; preds = %._crit_edge, %2
%61 = load double, ptr %5, align 8
%62 = call double @log(double noundef 2.000000e+00) #3
%63 = fdiv double %61, %62
ret double %63
}
; Function Attrs: nounwind
declare double @log(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmptmvam3c9.c'
source_filename = "/tmp/tmptmvam3c9.c"
target datalayout = "e-m:e-p270: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/tmptmvam3c9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.