llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmpd814m8s5.c'
source_filename = "/tmp/tmpd814m8s5.c"
target datalayout = "e-m:e-p270: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/tmpd814m8s5.c"
target datalayout = "e-m:e-p270: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/tmp7c5ch7km.c'
source_filename = "/tmp/tmp7c5ch7km.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Parse error: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @myprint(ptr noundef %0, ...) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
ret i32 %4
}
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/tmp7c5ch7km.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Parse error: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @myprint(ptr noundef %0, ...) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
ret i32 %4
}
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/tmp7x3k892l.c'
source_filename = "/tmp/tmp7x3k892l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @handler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @subroutine(i32 noundef %3)
ret void
}
declare i32 @subroutine(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/tmp7x3k892l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @handler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @subroutine(i32 noundef %3)
ret void
}
declare i32 @subroutine(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/tmpe8hox0s6.c'
source_filename = "/tmp/tmpe8hox0s6.c"
target datalayout = "e-m:e-p270: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/tmpe8hox0s6.c"
target datalayout = "e-m:e-p270: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/tmph5gu00_f.c'
source_filename = "/tmp/tmph5gu00_f.c"
target datalayout = "e-m:e-p270: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/tmph5gu00_f.c"
target datalayout = "e-m:e-p270: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/tmp_6rnhwr4.c'
source_filename = "/tmp/tmp_6rnhwr4.c"
target datalayout = "e-m:e-p270: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_6rnhwr4.c"
target datalayout = "e-m:e-p270: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/tmpqv9212rf.c'
source_filename = "/tmp/tmpqv9212rf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [55 x i8] c"usage: server -p <port> (not enough or too many args)\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"-p\00", align 1
@.str.2 = private unnamed_addr constant [53 x i8] c"usage: server -p <port> (first argument must be: -p\0A\00", align 1
@.str.3 = private unnamed_addr constant [59 x i8] c"usage: server -p <port> (second argument must be numeric)\0A\00", align 1
@.str.4 = private unnamed_addr constant [46 x i8] c"usage: server -p <port> (%ld must be > 1024)\0A\00", align 1
@.str.5 = private unnamed_addr constant [48 x i8] c"usage: server -p <port> (%ld must be < 10000 )\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @check_args(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
store i64 0, ptr %7, align 8
%8 = load i32, ptr %5, align 4
%9 = icmp ne i32 %8, 3
br i1 %9, label %10, label %14
10: ; preds = %3
%11 = load ptr, ptr %4, align 8
%12 = call i32 @log_msg(ptr noundef %11, ptr noundef @.str)
%13 = call i32 @exit(i32 noundef -1) #3
unreachable
14: ; preds = %3
%15 = load ptr, ptr %6, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = call i64 @strcmp(ptr noundef %17, ptr noundef @.str.1)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %24
20: ; preds = %14
%21 = load ptr, ptr %4, align 8
%22 = call i32 @log_msg(ptr noundef %21, ptr noundef @.str.2)
%23 = call i32 @exit(i32 noundef -1) #3
unreachable
24: ; preds = %14
%25 = load ptr, ptr %6, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 2
%27 = load ptr, ptr %26, align 8
%28 = call i64 @strtol(ptr noundef %27, ptr noundef null, i32 noundef 0)
store i64 %28, ptr %7, align 8
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %34
30: ; preds = %24
%31 = load ptr, ptr %4, align 8
%32 = call i32 @log_msg(ptr noundef %31, ptr noundef @.str.3)
%33 = call i32 @exit(i32 noundef -1) #3
unreachable
34: ; preds = %24
%35 = load i64, ptr %7, align 8
%36 = icmp slt i64 %35, 1025
br i1 %36, label %37, label %42
37: ; preds = %34
%38 = load ptr, ptr %4, align 8
%39 = load i64, ptr %7, align 8
%40 = call i32 @log_msg_arg1(ptr noundef %38, ptr noundef @.str.4, i64 noundef %39)
%41 = call i32 @exit(i32 noundef -1) #3
unreachable
42: ; preds = %34
%43 = load i64, ptr %7, align 8
%44 = icmp sgt i64 %43, 9999
br i1 %44, label %45, label %50
45: ; preds = %42
%46 = load ptr, ptr %4, align 8
%47 = load i64, ptr %7, align 8
%48 = call i32 @log_msg_arg1(ptr noundef %46, ptr noundef @.str.5, i64 noundef %47)
%49 = call i32 @exit(i32 noundef -1) #3
unreachable
50: ; preds = %42
%51 = load i64, ptr %7, align 8
ret i64 %51
}
declare i32 @log_msg(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @log_msg_arg1(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpqv9212rf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [55 x i8] c"usage: server -p <port> (not enough or too many args)\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"-p\00", align 1
@.str.2 = private unnamed_addr constant [53 x i8] c"usage: server -p <port> (first argument must be: -p\0A\00", align 1
@.str.3 = private unnamed_addr constant [59 x i8] c"usage: server -p <port> (second argument must be numeric)\0A\00", align 1
@.str.4 = private unnamed_addr constant [46 x i8] c"usage: server -p <port> (%ld must be > 1024)\0A\00", align 1
@.str.5 = private unnamed_addr constant [48 x i8] c"usage: server -p <port> (%ld must be < 10000 )\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @check_args(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
store i64 0, ptr %7, align 8
%8 = load i32, ptr %5, align 4
%9 = icmp ne i32 %8, 3
br i1 %9, label %10, label %14
10: ; preds = %3
%11 = load ptr, ptr %4, align 8
%12 = call i32 @log_msg(ptr noundef %11, ptr noundef @.str)
%13 = call i32 @exit(i32 noundef -1) #3
unreachable
14: ; preds = %3
%15 = load ptr, ptr %6, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = call i64 @strcmp(ptr noundef %17, ptr noundef @.str.1)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %24
20: ; preds = %14
%21 = load ptr, ptr %4, align 8
%22 = call i32 @log_msg(ptr noundef %21, ptr noundef @.str.2)
%23 = call i32 @exit(i32 noundef -1) #3
unreachable
24: ; preds = %14
%25 = load ptr, ptr %6, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 2
%27 = load ptr, ptr %26, align 8
%28 = call i64 @strtol(ptr noundef %27, ptr noundef null, i32 noundef 0)
store i64 %28, ptr %7, align 8
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %34
30: ; preds = %24
%31 = load ptr, ptr %4, align 8
%32 = call i32 @log_msg(ptr noundef %31, ptr noundef @.str.3)
%33 = call i32 @exit(i32 noundef -1) #3
unreachable
34: ; preds = %24
%35 = load i64, ptr %7, align 8
%36 = icmp slt i64 %35, 1025
br i1 %36, label %37, label %42
37: ; preds = %34
%38 = load ptr, ptr %4, align 8
%39 = load i64, ptr %7, align 8
%40 = call i32 @log_msg_arg1(ptr noundef %38, ptr noundef @.str.4, i64 noundef %39)
%41 = call i32 @exit(i32 noundef -1) #3
unreachable
42: ; preds = %34
%43 = load i64, ptr %7, align 8
%44 = icmp sgt i64 %43, 9999
br i1 %44, label %45, label %50
45: ; preds = %42
%46 = load ptr, ptr %4, align 8
%47 = load i64, ptr %7, align 8
%48 = call i32 @log_msg_arg1(ptr noundef %46, ptr noundef @.str.5, i64 noundef %47)
%49 = call i32 @exit(i32 noundef -1) #3
unreachable
50: ; preds = %42
%51 = load i64, ptr %7, align 8
ret i64 %51
}
declare i32 @log_msg(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @log_msg_arg1(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpvjv1uqiy.c'
source_filename = "/tmp/tmpvjv1uqiy.c"
target datalayout = "e-m:e-p270: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/tmpvjv1uqiy.c"
target datalayout = "e-m:e-p270: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/tmpoazhcwju.c'
source_filename = "/tmp/tmpoazhcwju.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDONLY = dso_local global i32 0, align 4
@HDIO_GETGEO = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getDriveGeometry(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
%9 = load i32, ptr @O_RDONLY, align 4
%10 = call i32 @open(ptr noundef %8, i32 noundef %9)
store i32 %10, ptr %7, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %2
store i32 -1, ptr %3, align 4
br label %22
14: ; preds = %2
%15 = load i32, ptr %7, align 4
%16 = load i32, ptr @HDIO_GETGEO, align 4
%17 = load ptr, ptr %5, align 8
%18 = call i32 @ioctl(i32 noundef %15, i32 noundef %16, ptr noundef %17)
store i32 %18, ptr %6, align 4
%19 = load i32, ptr %7, align 4
%20 = call i32 @close(i32 noundef %19)
%21 = load i32, ptr %6, align 4
store i32 %21, ptr %3, align 4
br label %22
22: ; preds = %14, %13
%23 = load i32, ptr %3, align 4
ret i32 %23
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoazhcwju.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDONLY = dso_local global i32 0, align 4
@HDIO_GETGEO = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getDriveGeometry(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
%9 = load i32, ptr @O_RDONLY, align 4
%10 = call i32 @open(ptr noundef %8, i32 noundef %9)
store i32 %10, ptr %7, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %2
store i32 -1, ptr %3, align 4
br label %22
14: ; preds = %2
%15 = load i32, ptr %7, align 4
%16 = load i32, ptr @HDIO_GETGEO, align 4
%17 = load ptr, ptr %5, align 8
%18 = call i32 @ioctl(i32 noundef %15, i32 noundef %16, ptr noundef %17)
store i32 %18, ptr %6, align 4
%19 = load i32, ptr %7, align 4
%20 = call i32 @close(i32 noundef %19)
%21 = load i32, ptr %6, align 4
store i32 %21, ptr %3, align 4
br label %22
22: ; preds = %14, %13
%23 = load i32, ptr %3, align 4
ret i32 %23
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4r7f1chm.c'
source_filename = "/tmp/tmp4r7f1chm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_ispunct.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"ispunct should be 0 for u\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_ispunct_0x75() #0 {
%1 = call i64 @ispunct(i32 noundef 117)
%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 590, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @ispunct(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/tmp4r7f1chm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_ispunct.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"ispunct should be 0 for u\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_ispunct_0x75() #0 {
%1 = call i64 @ispunct(i32 noundef 117)
%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 590, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @ispunct(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/tmpkd9udeab.c'
source_filename = "/tmp/tmpkd9udeab.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unnamed_addr constant [12 x i8] c"I am a boy.\00", align 1
@.str = private unnamed_addr constant [19 x i8] c"string a is : %s \0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"string b is :\00", align 1
@.str.2 = 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 [12 x i8], align 1
%3 = alloca [20 x i8], align 16
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.a, i64 12, i1 false)
store i32 0, ptr %4, align 4
br label %5
5: ; preds = %23, %0
%6 = getelementptr inbounds [12 x i8], ptr %2, i64 0, i64 0
%7 = load i32, ptr %4, align 4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds i8, ptr %6, i64 %8
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %26
13: ; preds = %5
%14 = getelementptr inbounds [12 x i8], ptr %2, i64 0, i64 0
%15 = load i32, ptr %4, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
%19 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 0
%20 = load i32, ptr %4, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
store i8 %18, ptr %22, align 1
br label %23
23: ; preds = %13
%24 = load i32, ptr %4, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %4, align 4
br label %5, !llvm.loop !6
26: ; preds = %5
%27 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 0
%28 = load i32, ptr %4, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
store i8 0, ptr %30, align 1
%31 = getelementptr inbounds [12 x i8], ptr %2, i64 0, i64 0
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %31)
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %4, align 4
br label %34
34: ; preds = %49, %26
%35 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 0
%36 = load i32, ptr %4, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %52
42: ; preds = %34
%43 = load i32, ptr %4, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 %44
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %47)
br label %49
49: ; preds = %42
%50 = load i32, ptr %4, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %4, align 4
br label %34, !llvm.loop !8
52: ; preds = %34
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkd9udeab.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unnamed_addr constant [12 x i8] c"I am a boy.\00", align 1
@.str = private unnamed_addr constant [19 x i8] c"string a is : %s \0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"string b is :\00", align 1
@.str.2 = 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 [12 x i8], align 1
%3 = alloca [20 x i8], align 16
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.a, i64 12, i1 false)
store i32 0, ptr %4, align 4
%5 = getelementptr inbounds [12 x i8], ptr %2, i64 0, i64 0
%6 = load i32, ptr %4, align 4
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, ptr %5, i64 %7
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 0
br i1 %11, label %.lr.ph, label %31
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %22
%13 = getelementptr inbounds [12 x i8], ptr %2, i64 0, i64 0
%14 = load i32, ptr %4, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
%18 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 0
%19 = load i32, ptr %4, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
store i8 %17, ptr %21, align 1
br label %22
22: ; preds = %12
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %4, align 4
%25 = load i32, ptr %4, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %5, i64 %26
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp ne i32 %29, 0
br i1 %30, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %31
31: ; preds = %._crit_edge, %0
%32 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 0
%33 = load i32, ptr %4, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
store i8 0, ptr %35, align 1
%36 = getelementptr inbounds [12 x i8], ptr %2, i64 0, i64 0
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %36)
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %4, align 4
%39 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 0
%40 = load i32, ptr %4, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, ptr %39, i64 %41
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = icmp ne i32 %44, 0
br i1 %45, label %.lr.ph2, label %62
.lr.ph2: ; preds = %31
br label %46
46: ; preds = %.lr.ph2, %53
%47 = load i32, ptr %4, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 %48
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %51)
br label %53
53: ; preds = %46
%54 = load i32, ptr %4, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %4, align 4
%56 = load i32, ptr %4, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8, ptr %39, i64 %57
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = icmp ne i32 %60, 0
br i1 %61, label %46, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %53
br label %62
62: ; preds = %._crit_edge3, %31
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpn22ubnrv.c'
source_filename = "/tmp/tmpn22ubnrv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @i2c_write_command(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @i2c_write_reg(i32 noundef 4, i32 noundef %3)
ret void
}
declare i32 @i2c_write_reg(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/tmpn22ubnrv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @i2c_write_command(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @i2c_write_reg(i32 noundef 4, i32 noundef %3)
ret void
}
declare i32 @i2c_write_reg(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/tmpw21wf97n.c'
source_filename = "/tmp/tmpw21wf97n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isint(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 0
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %2
store i32 0, ptr %3, align 4
br label %29
15: ; preds = %2
store ptr %7, ptr %6, align 8
%16 = load ptr, ptr %5, align 8
%17 = load ptr, ptr %6, align 8
%18 = call i64 @strtol(ptr noundef %16, ptr noundef %17, i32 noundef 10)
store i64 %18, ptr %8, align 8
%19 = load ptr, ptr %6, align 8
%20 = load ptr, ptr %19, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %15
store i32 0, ptr %3, align 4
br label %29
25: ; preds = %15
%26 = load i64, ptr %8, align 8
%27 = trunc i64 %26 to i32
%28 = load ptr, ptr %4, align 8
store i32 %27, ptr %28, align 4
store i32 -1, ptr %3, align 4
br label %29
29: ; preds = %25, %24, %14
%30 = load i32, ptr %3, align 4
ret i32 %30
}
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw21wf97n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isint(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 0
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %2
store i32 0, ptr %3, align 4
br label %29
15: ; preds = %2
store ptr %7, ptr %6, align 8
%16 = load ptr, ptr %5, align 8
%17 = load ptr, ptr %6, align 8
%18 = call i64 @strtol(ptr noundef %16, ptr noundef %17, i32 noundef 10)
store i64 %18, ptr %8, align 8
%19 = load ptr, ptr %6, align 8
%20 = load ptr, ptr %19, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %15
store i32 0, ptr %3, align 4
br label %29
25: ; preds = %15
%26 = load i64, ptr %8, align 8
%27 = trunc i64 %26 to i32
%28 = load ptr, ptr %4, align 8
store i32 %27, ptr %28, align 4
store i32 -1, ptr %3, align 4
br label %29
29: ; preds = %25, %24, %14
%30 = load i32, ptr %3, align 4
ret i32 %30
}
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpynwzf3ql.c'
source_filename = "/tmp/tmpynwzf3ql.c"
target datalayout = "e-m:e-p270: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/tmpynwzf3ql.c"
target datalayout = "e-m:e-p270: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/tmpf1qvhjd2.c'
source_filename = "/tmp/tmpf1qvhjd2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"second\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @second(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @printf(ptr noundef @.str)
%4 = load ptr, ptr %2, align 8
%5 = load i32, ptr %4, align 4
%6 = call i32 @longjmp(i32 noundef %5, i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @longjmp(i32 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 = { "frame-pointer"="all" "no-trapping-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/tmpf1qvhjd2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"second\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @second(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @printf(ptr noundef @.str)
%4 = load ptr, ptr %2, align 8
%5 = load i32, ptr %4, align 4
%6 = call i32 @longjmp(i32 noundef %5, i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @longjmp(i32 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 = { "frame-pointer"="all" "no-trapping-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/tmpgw7dez5h.c'
source_filename = "/tmp/tmpgw7dez5h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"What is your integer variable?\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [76 x i8] c"The mathematical relationship to 2 for the value entered by addition is %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [79 x i8] c"The mathematical relationship to 2 for the value entered by subtraction is %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [83 x i8] c"The mathematical relationship to 2 for the value entered by multiplication is: %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [76 x i8] c"The mathematical relationship to 2 for the value entered by division is %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [75 x i8] c"The mathematical relationship to 2 for the value entered by modulus is %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
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = add nsw i32 %5, 2
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %6)
%8 = load i32, ptr %2, align 4
%9 = sub nsw i32 %8, 2
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %9)
%11 = load i32, ptr %2, align 4
%12 = mul nsw i32 %11, 2
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %12)
%14 = load i32, ptr %2, align 4
%15 = sdiv i32 %14, 2
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %15)
%17 = load i32, ptr %2, align 4
%18 = srem i32 %17, 2
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %18)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgw7dez5h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"What is your integer variable?\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [76 x i8] c"The mathematical relationship to 2 for the value entered by addition is %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [79 x i8] c"The mathematical relationship to 2 for the value entered by subtraction is %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [83 x i8] c"The mathematical relationship to 2 for the value entered by multiplication is: %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [76 x i8] c"The mathematical relationship to 2 for the value entered by division is %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [75 x i8] c"The mathematical relationship to 2 for the value entered by modulus is %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
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = add nsw i32 %5, 2
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %6)
%8 = load i32, ptr %2, align 4
%9 = sub nsw i32 %8, 2
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %9)
%11 = load i32, ptr %2, align 4
%12 = mul nsw i32 %11, 2
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %12)
%14 = load i32, ptr %2, align 4
%15 = sdiv i32 %14, 2
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %15)
%17 = load i32, ptr %2, align 4
%18 = srem i32 %17, 2
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %18)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmph8mvmwup.c'
source_filename = "/tmp/tmph8mvmwup.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @writeFLVPreviousTagSize(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca [4 x i8], align 1
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load i64, ptr %4, align 8
%7 = lshr i64 %6, 24
%8 = and i64 %7, 255
%9 = trunc i64 %8 to i8
%10 = getelementptr inbounds [4 x i8], ptr %5, i64 0, i64 0
store i8 %9, ptr %10, align 1
%11 = load i64, ptr %4, align 8
%12 = lshr i64 %11, 16
%13 = and i64 %12, 255
%14 = trunc i64 %13 to i8
%15 = getelementptr inbounds [4 x i8], ptr %5, i64 0, i64 1
store i8 %14, ptr %15, align 1
%16 = load i64, ptr %4, align 8
%17 = lshr i64 %16, 8
%18 = and i64 %17, 255
%19 = trunc i64 %18 to i8
%20 = getelementptr inbounds [4 x i8], ptr %5, i64 0, i64 2
store i8 %19, ptr %20, align 1
%21 = load i64, ptr %4, align 8
%22 = lshr i64 %21, 0
%23 = and i64 %22, 255
%24 = trunc i64 %23 to i8
%25 = getelementptr inbounds [4 x i8], ptr %5, i64 0, i64 3
store i8 %24, ptr %25, align 1
%26 = getelementptr inbounds [4 x i8], ptr %5, i64 0, i64 0
%27 = load ptr, ptr %3, align 8
%28 = call i32 @fwrite(ptr noundef %26, i32 noundef 4, i32 noundef 1, ptr noundef %27)
ret i32 0
}
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmph8mvmwup.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @writeFLVPreviousTagSize(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca [4 x i8], align 1
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load i64, ptr %4, align 8
%7 = lshr i64 %6, 24
%8 = and i64 %7, 255
%9 = trunc i64 %8 to i8
%10 = getelementptr inbounds [4 x i8], ptr %5, i64 0, i64 0
store i8 %9, ptr %10, align 1
%11 = load i64, ptr %4, align 8
%12 = lshr i64 %11, 16
%13 = and i64 %12, 255
%14 = trunc i64 %13 to i8
%15 = getelementptr inbounds [4 x i8], ptr %5, i64 0, i64 1
store i8 %14, ptr %15, align 1
%16 = load i64, ptr %4, align 8
%17 = lshr i64 %16, 8
%18 = and i64 %17, 255
%19 = trunc i64 %18 to i8
%20 = getelementptr inbounds [4 x i8], ptr %5, i64 0, i64 2
store i8 %19, ptr %20, align 1
%21 = load i64, ptr %4, align 8
%22 = lshr i64 %21, 0
%23 = and i64 %22, 255
%24 = trunc i64 %23 to i8
%25 = getelementptr inbounds [4 x i8], ptr %5, i64 0, i64 3
store i8 %24, ptr %25, align 1
%26 = getelementptr inbounds [4 x i8], ptr %5, i64 0, i64 0
%27 = load ptr, ptr %3, align 8
%28 = call i32 @fwrite(ptr noundef %26, i32 noundef 4, i32 noundef 1, ptr noundef %27)
ret i32 0
}
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprtuhazm0.c'
source_filename = "/tmp/tmprtuhazm0.c"
target datalayout = "e-m:e-p270: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
@SEEK_SET = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprtuhazm0.c"
target datalayout = "e-m:e-p270: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
@SEEK_SET = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprioxfe0t.c'
source_filename = "/tmp/tmprioxfe0t.c"
target datalayout = "e-m:e-p270: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/tmprioxfe0t.c"
target datalayout = "e-m:e-p270: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/tmpknyebw6x.c'
source_filename = "/tmp/tmpknyebw6x.c"
target datalayout = "e-m:e-p270: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/tmpknyebw6x.c"
target datalayout = "e-m:e-p270: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/tmp5fjb_e_q.c'
source_filename = "/tmp/tmp5fjb_e_q.c"
target datalayout = "e-m:e-p270: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/tmp5fjb_e_q.c"
target datalayout = "e-m:e-p270: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/tmpoqbg0ogz.c'
source_filename = "/tmp/tmpoqbg0ogz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @double_equals(double noundef %0, double noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
%9 = load double, ptr %4, align 8
%10 = call double @llvm.fabs.f64(double %9)
store double %10, ptr %8, align 8
%11 = load double, ptr %5, align 8
%12 = call double @llvm.fabs.f64(double %11)
%13 = load double, ptr %8, align 8
%14 = fcmp ogt double %12, %13
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = load double, ptr %5, align 8
%17 = call double @llvm.fabs.f64(double %16)
store double %17, ptr %8, align 8
br label %18
18: ; preds = %15, %2
%19 = load double, ptr %8, align 8
%20 = fcmp oeq double %19, 0.000000e+00
br i1 %20, label %21, label %22
21: ; preds = %18
store i32 1, ptr %3, align 4
br label %34
22: ; preds = %18
%23 = load double, ptr %5, align 8
%24 = load double, ptr %4, align 8
%25 = fsub double %23, %24
store double %25, ptr %7, align 8
%26 = load double, ptr %7, align 8
%27 = load double, ptr %8, align 8
%28 = fdiv double %26, %27
store double %28, ptr %6, align 8
%29 = load double, ptr %6, align 8
%30 = call double @llvm.fabs.f64(double %29)
%31 = fcmp olt double %30, 1.000000e-04
br i1 %31, label %32, label %33
32: ; preds = %22
store i32 1, ptr %3, align 4
br label %34
33: ; preds = %22
store i32 0, ptr %3, align 4
br label %34
34: ; preds = %33, %32, %21
%35 = load i32, ptr %3, align 4
ret i32 %35
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(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/tmpoqbg0ogz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @double_equals(double noundef %0, double noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
%9 = load double, ptr %4, align 8
%10 = call double @llvm.fabs.f64(double %9)
store double %10, ptr %8, align 8
%11 = load double, ptr %5, align 8
%12 = call double @llvm.fabs.f64(double %11)
%13 = load double, ptr %8, align 8
%14 = fcmp ogt double %12, %13
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = load double, ptr %5, align 8
%17 = call double @llvm.fabs.f64(double %16)
store double %17, ptr %8, align 8
br label %18
18: ; preds = %15, %2
%19 = load double, ptr %8, align 8
%20 = fcmp oeq double %19, 0.000000e+00
br i1 %20, label %21, label %22
21: ; preds = %18
store i32 1, ptr %3, align 4
br label %34
22: ; preds = %18
%23 = load double, ptr %5, align 8
%24 = load double, ptr %4, align 8
%25 = fsub double %23, %24
store double %25, ptr %7, align 8
%26 = load double, ptr %7, align 8
%27 = load double, ptr %8, align 8
%28 = fdiv double %26, %27
store double %28, ptr %6, align 8
%29 = load double, ptr %6, align 8
%30 = call double @llvm.fabs.f64(double %29)
%31 = fcmp olt double %30, 1.000000e-04
br i1 %31, label %32, label %33
32: ; preds = %22
store i32 1, ptr %3, align 4
br label %34
33: ; preds = %22
store i32 0, ptr %3, align 4
br label %34
34: ; preds = %33, %32, %21
%35 = load i32, ptr %3, align 4
ret i32 %35
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(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/tmpnqzcg72p.c'
source_filename = "/tmp/tmpnqzcg72p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 double @to_seconds(ptr noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca double, align 8
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 @strcspn(ptr noundef %7, ptr noundef @.str)
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 2
br i1 %10, label %11, label %12
11: ; preds = %1
store double 0.000000e+00, ptr %2, align 8
br label %30
12: ; preds = %1
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %4, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = getelementptr inbounds i8, ptr %16, i64 -2
%18 = call double @atof(ptr noundef %17)
store double %18, ptr %5, align 8
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %4, align 4
%21 = sub nsw i32 %20, 2
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %19, i64 %22
store i8 0, ptr %23, align 1
%24 = load ptr, ptr %3, align 8
%25 = call double @atof(ptr noundef %24)
store double %25, ptr %6, align 8
%26 = load double, ptr %6, align 8
%27 = load double, ptr %5, align 8
%28 = fmul double %27, 6.000000e+01
%29 = call double @llvm.fmuladd.f64(double %26, double 3.600000e+03, double %28)
store double %29, ptr %2, align 8
br label %30
30: ; preds = %12, %11
%31 = load double, ptr %2, align 8
ret double %31
}
declare i32 @strcspn(ptr noundef, ptr noundef) #1
declare double @atof(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnqzcg72p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 double @to_seconds(ptr noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca double, align 8
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 @strcspn(ptr noundef %7, ptr noundef @.str)
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 2
br i1 %10, label %11, label %12
11: ; preds = %1
store double 0.000000e+00, ptr %2, align 8
br label %30
12: ; preds = %1
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %4, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = getelementptr inbounds i8, ptr %16, i64 -2
%18 = call double @atof(ptr noundef %17)
store double %18, ptr %5, align 8
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %4, align 4
%21 = sub nsw i32 %20, 2
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %19, i64 %22
store i8 0, ptr %23, align 1
%24 = load ptr, ptr %3, align 8
%25 = call double @atof(ptr noundef %24)
store double %25, ptr %6, align 8
%26 = load double, ptr %6, align 8
%27 = load double, ptr %5, align 8
%28 = fmul double %27, 6.000000e+01
%29 = call double @llvm.fmuladd.f64(double %26, double 3.600000e+03, double %28)
store double %29, ptr %2, align 8
br label %30
30: ; preds = %12, %11
%31 = load double, ptr %2, align 8
ret double %31
}
declare i32 @strcspn(ptr noundef, ptr noundef) #1
declare double @atof(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgh_2vk9p.c'
source_filename = "/tmp/tmpgh_2vk9p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_GETFL = dso_local global i32 0, align 4
@F_SETFL = dso_local global i32 0, align 4
@errno = 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/tmpgh_2vk9p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_GETFL = dso_local global i32 0, align 4
@F_SETFL = dso_local global i32 0, align 4
@errno = 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/tmpvk4rl5q4.c'
source_filename = "/tmp/tmpvk4rl5q4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@PATH_MAX = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [31 x i8] c"Error, is not a directory: %s\0A\00", align 1
@errno = dso_local global i64 0, align 8
@EEXIST = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mkdirp(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca %struct.stat, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%9 = load i32, ptr @PATH_MAX, align 4
%10 = zext i32 %9 to i64
%11 = call ptr @llvm.stacksave()
store ptr %11, ptr %5, align 8
%12 = alloca i8, i64 %10, align 16
store i64 %10, ptr %6, align 8
%13 = load ptr, ptr %3, align 8
%14 = sub i64 %10, 1
%15 = trunc i64 %14 to i32
%16 = call i32 @strncpy(ptr noundef %12, ptr noundef %13, i32 noundef %15)
%17 = call ptr @strrchr(ptr noundef %12, i8 noundef signext 47)
store ptr %17, ptr %7, align 8
%18 = load ptr, ptr %7, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %21, label %20
20: ; preds = %1
store i32 0, ptr %2, align 4
store i32 1, ptr %8, align 4
br label %80
21: ; preds = %1
%22 = load ptr, ptr %7, align 8
store i8 0, ptr %22, align 1
%23 = call i32 @stat(ptr noundef %12, ptr noundef %4)
%24 = icmp ne i32 %23, 0
br i1 %24, label %32, label %25
25: ; preds = %21
%26 = getelementptr inbounds %struct.stat, ptr %4, i32 0, i32 0
%27 = load i32, ptr %26, align 4
%28 = call i32 @S_ISDIR(i32 noundef %27)
%29 = icmp ne i32 %28, 0
%30 = xor i1 %29, true
%31 = zext i1 %30 to i32
store i32 %31, ptr %2, align 4
store i32 1, ptr %8, align 4
br label %80
32: ; preds = %21
%33 = load ptr, ptr %7, align 8
store i8 47, ptr %33, align 1
store ptr %12, ptr %7, align 8
%34 = load ptr, ptr %7, align 8
%35 = load i8, ptr %34, align 1
%36 = icmp ne i8 %35, 0
br i1 %36, label %38, label %37
37: ; preds = %32
store i32 0, ptr %2, align 4
store i32 1, ptr %8, align 4
br label %80
38: ; preds = %32
%39 = load ptr, ptr %7, align 8
%40 = getelementptr inbounds i8, ptr %39, i32 1
store ptr %40, ptr %7, align 8
br label %41
41: ; preds = %76, %38
%42 = load ptr, ptr %7, align 8
%43 = load i8, ptr %42, align 1
%44 = icmp ne i8 %43, 0
br i1 %44, label %45, label %79
45: ; preds = %41
%46 = load ptr, ptr %7, align 8
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %48, 47
br i1 %49, label %50, label %76
50: ; preds = %45
%51 = load ptr, ptr %7, align 8
store i8 0, ptr %51, align 1
%52 = call i32 @stat(ptr noundef %12, ptr noundef %4)
%53 = icmp ne i32 %52, 0
br i1 %53, label %63, label %54
54: ; preds = %50
%55 = getelementptr inbounds %struct.stat, ptr %4, i32 0, i32 0
%56 = load i32, ptr %55, align 4
%57 = call i32 @S_ISDIR(i32 noundef %56)
%58 = icmp ne i32 %57, 0
br i1 %58, label %62, label %59
59: ; preds = %54
%60 = load i32, ptr @stderr, align 4
%61 = call i32 @fprintf(i32 noundef %60, ptr noundef @.str, ptr noundef %12)
store i32 1, ptr %2, align 4
store i32 1, ptr %8, align 4
br label %80
62: ; preds = %54
br label %74
63: ; preds = %50
%64 = call i64 @mkdir(ptr noundef %12, i32 noundef 511)
%65 = icmp ne i64 %64, 0
br i1 %65, label %66, label %73
66: ; preds = %63
%67 = load i64, ptr @errno, align 8
%68 = load i64, ptr @EEXIST, align 8
%69 = icmp ne i64 %67, %68
br i1 %69, label %70, label %72
70: ; preds = %66
%71 = call i32 @perror(ptr noundef %12)
store i32 1, ptr %2, align 4
store i32 1, ptr %8, align 4
br label %80
72: ; preds = %66
br label %73
73: ; preds = %72, %63
br label %74
74: ; preds = %73, %62
%75 = load ptr, ptr %7, align 8
store i8 47, ptr %75, align 1
br label %76
76: ; preds = %74, %45
%77 = load ptr, ptr %7, align 8
%78 = getelementptr inbounds i8, ptr %77, i32 1
store ptr %78, ptr %7, align 8
br label %41, !llvm.loop !6
79: ; preds = %41
store i32 0, ptr %2, align 4
store i32 1, ptr %8, align 4
br label %80
80: ; preds = %79, %70, %59, %37, %25, %20
%81 = load ptr, ptr %5, align 8
call void @llvm.stackrestore(ptr %81)
%82 = load i32, ptr %2, align 4
ret i32 %82
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #2
declare ptr @strrchr(ptr noundef, i8 noundef signext) #2
declare i32 @stat(ptr noundef, ptr noundef) #2
declare i32 @S_ISDIR(i32 noundef) #2
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #2
declare i64 @mkdir(ptr noundef, i32 noundef) #2
declare i32 @perror(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpvk4rl5q4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@PATH_MAX = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [31 x i8] c"Error, is not a directory: %s\0A\00", align 1
@errno = dso_local global i64 0, align 8
@EEXIST = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mkdirp(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca %struct.stat, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%9 = load i32, ptr @PATH_MAX, align 4
%10 = zext i32 %9 to i64
%11 = call ptr @llvm.stacksave()
store ptr %11, ptr %5, align 8
%12 = alloca i8, i64 %10, align 16
store i64 %10, ptr %6, align 8
%13 = load ptr, ptr %3, align 8
%14 = sub i64 %10, 1
%15 = trunc i64 %14 to i32
%16 = call i32 @strncpy(ptr noundef %12, ptr noundef %13, i32 noundef %15)
%17 = call ptr @strrchr(ptr noundef %12, i8 noundef signext 47)
store ptr %17, ptr %7, align 8
%18 = load ptr, ptr %7, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %21, label %20
20: ; preds = %1
store i32 0, ptr %2, align 4
store i32 1, ptr %8, align 4
br label %82
21: ; preds = %1
%22 = load ptr, ptr %7, align 8
store i8 0, ptr %22, align 1
%23 = call i32 @stat(ptr noundef %12, ptr noundef %4)
%24 = icmp ne i32 %23, 0
br i1 %24, label %32, label %25
25: ; preds = %21
%26 = getelementptr inbounds %struct.stat, ptr %4, i32 0, i32 0
%27 = load i32, ptr %26, align 4
%28 = call i32 @S_ISDIR(i32 noundef %27)
%29 = icmp ne i32 %28, 0
%30 = xor i1 %29, true
%31 = zext i1 %30 to i32
store i32 %31, ptr %2, align 4
store i32 1, ptr %8, align 4
br label %82
32: ; preds = %21
%33 = load ptr, ptr %7, align 8
store i8 47, ptr %33, align 1
store ptr %12, ptr %7, align 8
%34 = load ptr, ptr %7, align 8
%35 = load i8, ptr %34, align 1
%36 = icmp ne i8 %35, 0
br i1 %36, label %38, label %37
37: ; preds = %32
store i32 0, ptr %2, align 4
store i32 1, ptr %8, align 4
br label %82
38: ; preds = %32
%39 = load ptr, ptr %7, align 8
%40 = getelementptr inbounds i8, ptr %39, i32 1
store ptr %40, ptr %7, align 8
%41 = load ptr, ptr %7, align 8
%42 = load i8, ptr %41, align 1
%43 = icmp ne i8 %42, 0
br i1 %43, label %.lr.ph, label %81
.lr.ph: ; preds = %38
br label %44
44: ; preds = %.lr.ph, %75
%45 = load ptr, ptr %7, align 8
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %47, 47
br i1 %48, label %49, label %75
49: ; preds = %44
%50 = load ptr, ptr %7, align 8
store i8 0, ptr %50, align 1
%51 = call i32 @stat(ptr noundef %12, ptr noundef %4)
%52 = icmp ne i32 %51, 0
br i1 %52, label %62, label %53
53: ; preds = %49
%54 = getelementptr inbounds %struct.stat, ptr %4, i32 0, i32 0
%55 = load i32, ptr %54, align 4
%56 = call i32 @S_ISDIR(i32 noundef %55)
%57 = icmp ne i32 %56, 0
br i1 %57, label %61, label %58
58: ; preds = %53
%59 = load i32, ptr @stderr, align 4
%60 = call i32 @fprintf(i32 noundef %59, ptr noundef @.str, ptr noundef %12)
store i32 1, ptr %2, align 4
store i32 1, ptr %8, align 4
br label %82
61: ; preds = %53
br label %73
62: ; preds = %49
%63 = call i64 @mkdir(ptr noundef %12, i32 noundef 511)
%64 = icmp ne i64 %63, 0
br i1 %64, label %65, label %72
65: ; preds = %62
%66 = load i64, ptr @errno, align 8
%67 = load i64, ptr @EEXIST, align 8
%68 = icmp ne i64 %66, %67
br i1 %68, label %69, label %71
69: ; preds = %65
%70 = call i32 @perror(ptr noundef %12)
store i32 1, ptr %2, align 4
store i32 1, ptr %8, align 4
br label %82
71: ; preds = %65
br label %72
72: ; preds = %71, %62
br label %73
73: ; preds = %72, %61
%74 = load ptr, ptr %7, align 8
store i8 47, ptr %74, align 1
br label %75
75: ; preds = %73, %44
%76 = load ptr, ptr %7, align 8
%77 = getelementptr inbounds i8, ptr %76, i32 1
store ptr %77, ptr %7, align 8
%78 = load ptr, ptr %7, align 8
%79 = load i8, ptr %78, align 1
%80 = icmp ne i8 %79, 0
br i1 %80, label %44, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %75
br label %81
81: ; preds = %._crit_edge, %38
store i32 0, ptr %2, align 4
store i32 1, ptr %8, align 4
br label %82
82: ; preds = %81, %69, %58, %37, %25, %20
%83 = load ptr, ptr %5, align 8
call void @llvm.stackrestore(ptr %83)
%84 = load i32, ptr %2, align 4
ret i32 %84
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #2
declare ptr @strrchr(ptr noundef, i8 noundef signext) #2
declare i32 @stat(ptr noundef, ptr noundef) #2
declare i32 @S_ISDIR(i32 noundef) #2
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #2
declare i64 @mkdir(ptr noundef, i32 noundef) #2
declare i32 @perror(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp0wiexbv_.c'
source_filename = "/tmp/tmp0wiexbv_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%.3f\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"245.15\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"-245.15\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"100.55\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"100\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call double @str_to_float(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str, double noundef %2)
%4 = call double @str_to_float(ptr noundef @.str.2)
%5 = call i32 @printf(ptr noundef @.str, double noundef %4)
%6 = call double @str_to_float(ptr noundef @.str.3)
%7 = fadd double %6, 2.500000e+01
%8 = call i32 @printf(ptr noundef @.str, double noundef %7)
%9 = call double @str_to_float(ptr noundef @.str.4)
%10 = fadd double %9, 2.500000e+01
%11 = call i32 @printf(ptr noundef @.str, double noundef %10)
ret i32 0
}
declare i32 @printf(ptr noundef, double noundef) #1
declare double @str_to_float(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/tmp0wiexbv_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%.3f\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"245.15\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"-245.15\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"100.55\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"100\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call double @str_to_float(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str, double noundef %2)
%4 = call double @str_to_float(ptr noundef @.str.2)
%5 = call i32 @printf(ptr noundef @.str, double noundef %4)
%6 = call double @str_to_float(ptr noundef @.str.3)
%7 = fadd double %6, 2.500000e+01
%8 = call i32 @printf(ptr noundef @.str, double noundef %7)
%9 = call double @str_to_float(ptr noundef @.str.4)
%10 = fadd double %9, 2.500000e+01
%11 = call i32 @printf(ptr noundef @.str, double noundef %10)
ret i32 0
}
declare i32 @printf(ptr noundef, double noundef) #1
declare double @str_to_float(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/tmpbxaqd631.c'
source_filename = "/tmp/tmpbxaqd631.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local 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 [6 x i8], align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %6, align 4
br label %8
8: ; preds = %11, %2
%9 = load i32, ptr %6, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %21
11: ; preds = %8
%12 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
%13 = load i32, ptr %6, align 4
%14 = call i32 @sprintf(ptr noundef %12, ptr noundef @.str, i32 noundef %13)
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = call i32 @atoi(ptr noundef %17)
%19 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
%20 = call i32 @write(i32 noundef %18, ptr noundef %19, i32 noundef 2)
br label %8, !llvm.loop !6
21: ; preds = %8
%22 = load i32, ptr %6, align 4
ret i32 %22
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbxaqd631.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local 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 [6 x i8], align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = icmp ne i32 %8, 0
br i1 %9, label %.lr.ph, label %22
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %10
%11 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
%12 = load i32, ptr %6, align 4
%13 = call i32 @sprintf(ptr noundef %11, ptr noundef @.str, i32 noundef %12)
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = call i32 @atoi(ptr noundef %16)
%18 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
%19 = call i32 @write(i32 noundef %17, ptr noundef %18, i32 noundef 2)
%20 = load i32, ptr %6, align 4
%21 = icmp ne i32 %20, 0
br i1 %21, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %22
22: ; preds = %._crit_edge, %2
%23 = load i32, ptr %6, align 4
ret i32 %23
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpvlkme6ud.c'
source_filename = "/tmp/tmpvlkme6ud.c"
target datalayout = "e-m:e-p270: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 [28 x i8] c"%s\09(GPL)\09version %s %s\09%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [66 x i8] c"lowerBound (compute lowerBound for disjunctive emerging patterns)\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"0.99\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"2012-03-09\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"Renato Vimieiro\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @showIntro() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef @.str.4)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvlkme6ud.c"
target datalayout = "e-m:e-p270: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 [28 x i8] c"%s\09(GPL)\09version %s %s\09%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [66 x i8] c"lowerBound (compute lowerBound for disjunctive emerging patterns)\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"0.99\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"2012-03-09\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"Renato Vimieiro\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @showIntro() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef @.str.4)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7v3psqf7.c'
source_filename = "/tmp/tmp7v3psqf7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca [10 x i8], align 1
store i32 0, ptr %1, align 4
store i32 0, ptr %9, align 4
store i32 1, ptr %8, align 4
br label %11
11: ; preds = %98, %0
%12 = load i32, ptr %8, align 4
%13 = icmp sle i32 %12, 3
br i1 %13, label %14, label %101
14: ; preds = %11
store i32 0, ptr %9, align 4
br label %15
15: ; preds = %14, %94
%16 = getelementptr inbounds [10 x i8], ptr %10, i64 0, i64 0
%17 = call i32 @gets(ptr noundef %16)
%18 = getelementptr inbounds [10 x i8], ptr %10, i64 0, i64 0
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 99
br i1 %21, label %22, label %23
22: ; preds = %15
br label %95
23: ; preds = %15
%24 = getelementptr inbounds [10 x i8], ptr %10, i64 0, i64 0
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 45
br i1 %27, label %28, label %58
28: ; preds = %23
%29 = getelementptr inbounds [10 x i8], ptr %10, i64 0, i64 1
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 45
br i1 %32, label %33, label %45
33: ; preds = %28
%34 = getelementptr inbounds [10 x i8], ptr %10, i64 0, i64 2
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %36, 45
br i1 %37, label %38, label %41
38: ; preds = %33
%39 = load i32, ptr %9, align 4
%40 = add nsw i32 %39, 0
store i32 %40, ptr %9, align 4
br label %44
41: ; preds = %33
%42 = load i32, ptr %9, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %9, align 4
br label %44
44: ; preds = %41, %38
br label %57
45: ; preds = %28
%46 = getelementptr inbounds [10 x i8], ptr %10, i64 0, i64 2
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %48, 45
br i1 %49, label %50, label %53
50: ; preds = %45
%51 = load i32, ptr %9, align 4
%52 = add nsw i32 %51, 2
store i32 %52, ptr %9, align 4
br label %56
53: ; preds = %45
%54 = load i32, ptr %9, align 4
%55 = add nsw i32 %54, 3
store i32 %55, ptr %9, align 4
br label %56
56: ; preds = %53, %50
br label %57
57: ; preds = %56, %44
br label %94
58: ; preds = %23
%59 = getelementptr inbounds [10 x i8], ptr %10, i64 0, i64 0
%60 = load i8, ptr %59, align 1
%61 = sext i8 %60 to i32
%62 = icmp eq i32 %61, 42
br i1 %62, label %63, label %93
63: ; preds = %58
%64 = getelementptr inbounds [10 x i8], ptr %10, i64 0, i64 1
%65 = load i8, ptr %64, align 1
%66 = sext i8 %65 to i32
%67 = icmp eq i32 %66, 45
br i1 %67, label %68, label %80
68: ; preds = %63
%69 = getelementptr inbounds [10 x i8], ptr %10, i64 0, i64 2
%70 = load i8, ptr %69, align 1
%71 = sext i8 %70 to i32
%72 = icmp eq i32 %71, 45
br i1 %72, label %73, label %76
73: ; preds = %68
%74 = load i32, ptr %9, align 4
%75 = add nsw i32 %74, 4
store i32 %75, ptr %9, align 4
br label %79
76: ; preds = %68
%77 = load i32, ptr %9, align 4
%78 = add nsw i32 %77, 5
store i32 %78, ptr %9, align 4
br label %79
79: ; preds = %76, %73
br label %92
80: ; preds = %63
%81 = getelementptr inbounds [10 x i8], ptr %10, i64 0, i64 2
%82 = load i8, ptr %81, align 1
%83 = sext i8 %82 to i32
%84 = icmp eq i32 %83, 45
br i1 %84, label %85, label %88
85: ; preds = %80
%86 = load i32, ptr %9, align 4
%87 = add nsw i32 %86, 6
store i32 %87, ptr %9, align 4
br label %91
88: ; preds = %80
%89 = load i32, ptr %9, align 4
%90 = add nsw i32 %89, 7
store i32 %90, ptr %9, align 4
br label %91
91: ; preds = %88, %85
br label %92
92: ; preds = %91, %79
br label %93
93: ; preds = %92, %58
br label %94
94: ; preds = %93, %57
br label %15
95: ; preds = %22
%96 = load i32, ptr %9, align 4
%97 = call i32 @printf(ptr noundef @.str, i32 noundef %96)
br label %98
98: ; preds = %95
%99 = load i32, ptr %8, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %8, align 4
br label %11, !llvm.loop !6
101: ; preds = %11
ret i32 0
}
declare i32 @gets(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7v3psqf7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca [10 x i8], align 1
store i32 0, ptr %1, align 4
store i32 0, ptr %9, align 4
store i32 1, ptr %8, align 4
%11 = load i32, ptr %8, align 4
%12 = icmp sle i32 %11, 3
br i1 %12, label %.lr.ph2, label %105
.lr.ph2: ; preds = %0
br label %13
13: ; preds = %.lr.ph2, %100
store i32 0, ptr %9, align 4
%14 = getelementptr inbounds [10 x i8], ptr %10, i64 0, i64 0
%15 = call i32 @gets(ptr noundef %14)
%16 = getelementptr inbounds [10 x i8], ptr %10, i64 0, i64 0
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 99
br i1 %19, label %20, label %.lr.ph
.lr.ph: ; preds = %13
br label %21
._crit_edge: ; preds = %92
br label %20
20: ; preds = %._crit_edge, %13
br label %97
21: ; preds = %.lr.ph, %92
%22 = getelementptr inbounds [10 x i8], ptr %10, i64 0, i64 0
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 45
br i1 %25, label %26, label %56
26: ; preds = %21
%27 = getelementptr inbounds [10 x i8], ptr %10, i64 0, i64 1
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 45
br i1 %30, label %31, label %43
31: ; preds = %26
%32 = getelementptr inbounds [10 x i8], ptr %10, i64 0, i64 2
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 45
br i1 %35, label %36, label %39
36: ; preds = %31
%37 = load i32, ptr %9, align 4
%38 = add nsw i32 %37, 0
store i32 %38, ptr %9, align 4
br label %42
39: ; preds = %31
%40 = load i32, ptr %9, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %9, align 4
br label %42
42: ; preds = %39, %36
br label %55
43: ; preds = %26
%44 = getelementptr inbounds [10 x i8], ptr %10, i64 0, i64 2
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 45
br i1 %47, label %48, label %51
48: ; preds = %43
%49 = load i32, ptr %9, align 4
%50 = add nsw i32 %49, 2
store i32 %50, ptr %9, align 4
br label %54
51: ; preds = %43
%52 = load i32, ptr %9, align 4
%53 = add nsw i32 %52, 3
store i32 %53, ptr %9, align 4
br label %54
54: ; preds = %51, %48
br label %55
55: ; preds = %54, %42
br label %92
56: ; preds = %21
%57 = getelementptr inbounds [10 x i8], ptr %10, i64 0, i64 0
%58 = load i8, ptr %57, align 1
%59 = sext i8 %58 to i32
%60 = icmp eq i32 %59, 42
br i1 %60, label %61, label %91
61: ; preds = %56
%62 = getelementptr inbounds [10 x i8], ptr %10, i64 0, i64 1
%63 = load i8, ptr %62, align 1
%64 = sext i8 %63 to i32
%65 = icmp eq i32 %64, 45
br i1 %65, label %66, label %78
66: ; preds = %61
%67 = getelementptr inbounds [10 x i8], ptr %10, i64 0, i64 2
%68 = load i8, ptr %67, align 1
%69 = sext i8 %68 to i32
%70 = icmp eq i32 %69, 45
br i1 %70, label %71, label %74
71: ; preds = %66
%72 = load i32, ptr %9, align 4
%73 = add nsw i32 %72, 4
store i32 %73, ptr %9, align 4
br label %77
74: ; preds = %66
%75 = load i32, ptr %9, align 4
%76 = add nsw i32 %75, 5
store i32 %76, ptr %9, align 4
br label %77
77: ; preds = %74, %71
br label %90
78: ; preds = %61
%79 = getelementptr inbounds [10 x i8], ptr %10, i64 0, i64 2
%80 = load i8, ptr %79, align 1
%81 = sext i8 %80 to i32
%82 = icmp eq i32 %81, 45
br i1 %82, label %83, label %86
83: ; preds = %78
%84 = load i32, ptr %9, align 4
%85 = add nsw i32 %84, 6
store i32 %85, ptr %9, align 4
br label %89
86: ; preds = %78
%87 = load i32, ptr %9, align 4
%88 = add nsw i32 %87, 7
store i32 %88, ptr %9, align 4
br label %89
89: ; preds = %86, %83
br label %90
90: ; preds = %89, %77
br label %91
91: ; preds = %90, %56
br label %92
92: ; preds = %91, %55
%93 = call i32 @gets(ptr noundef %14)
%94 = load i8, ptr %16, align 1
%95 = sext i8 %94 to i32
%96 = icmp eq i32 %95, 99
br i1 %96, label %._crit_edge, label %21
97: ; preds = %20
%98 = load i32, ptr %9, align 4
%99 = call i32 @printf(ptr noundef @.str, i32 noundef %98)
br label %100
100: ; preds = %97
%101 = load i32, ptr %8, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %8, align 4
%103 = load i32, ptr %8, align 4
%104 = icmp sle i32 %103, 3
br i1 %104, label %13, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %100
br label %105
105: ; preds = %._crit_edge3, %0
ret i32 0
}
declare i32 @gets(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp49lic0v_.c'
source_filename = "/tmp/tmp49lic0v_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"library: %p\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"UFT : %p\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"SPRG3 : %p\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @pthread_self()
%3 = call i32 @printf(ptr noundef @.str, i32 noundef %2)
%4 = call i32 (...) @my_pthread_self()
%5 = call i32 @printf(ptr noundef @.str.1, i32 noundef %4)
%6 = call i32 (...) @my_pthread_self_970()
%7 = call i32 @printf(ptr noundef @.str.2, i32 noundef %6)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @pthread_self(...) #1
declare i32 @my_pthread_self(...) #1
declare i32 @my_pthread_self_970(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp49lic0v_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"library: %p\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"UFT : %p\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"SPRG3 : %p\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @pthread_self()
%3 = call i32 @printf(ptr noundef @.str, i32 noundef %2)
%4 = call i32 (...) @my_pthread_self()
%5 = call i32 @printf(ptr noundef @.str.1, i32 noundef %4)
%6 = call i32 (...) @my_pthread_self_970()
%7 = call i32 @printf(ptr noundef @.str.2, i32 noundef %6)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @pthread_self(...) #1
declare i32 @my_pthread_self(...) #1
declare i32 @my_pthread_self_970(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplcmixgaf.c'
source_filename = "/tmp/tmplcmixgaf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @next_arg(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %8, label %7
7: ; preds = %1
store ptr null, ptr %2, align 8
br label %93
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = load ptr, ptr %9, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %13, label %12
12: ; preds = %8
store ptr null, ptr %2, align 8
br label %93
13: ; preds = %8
br label %14
14: ; preds = %20, %13
%15 = load ptr, ptr %3, align 8
%16 = load ptr, ptr %15, align 8
%17 = load i8, ptr %16, align 1
%18 = call i64 @isspace(i8 noundef zeroext %17)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %24
20: ; preds = %14
%21 = load ptr, ptr %3, align 8
%22 = load ptr, ptr %21, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 1
store ptr %23, ptr %21, align 8
br label %14, !llvm.loop !6
24: ; preds = %14
%25 = load ptr, ptr %3, align 8
%26 = load ptr, ptr %25, align 8
%27 = load i8, ptr %26, align 1
%28 = icmp ne i8 %27, 0
br i1 %28, label %31, label %29
29: ; preds = %24
%30 = load ptr, ptr %3, align 8
store ptr null, ptr %30, align 8
store ptr null, ptr %2, align 8
br label %93
31: ; preds = %24
%32 = load ptr, ptr %3, align 8
%33 = load ptr, ptr %32, align 8
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 34
br i1 %36, label %37, label %47
37: ; preds = %31
%38 = load ptr, ptr %3, align 8
%39 = load ptr, ptr %38, align 8
%40 = getelementptr inbounds i8, ptr %39, i32 1
store ptr %40, ptr %38, align 8
%41 = load ptr, ptr %3, align 8
%42 = load ptr, ptr %41, align 8
store ptr %42, ptr %4, align 8
%43 = load ptr, ptr %3, align 8
%44 = load ptr, ptr %43, align 8
%45 = call ptr @strchr(ptr noundef %44, i8 noundef signext 34)
%46 = load ptr, ptr %3, align 8
store ptr %45, ptr %46, align 8
br label %70
47: ; preds = %31
%48 = load ptr, ptr %3, align 8
%49 = load ptr, ptr %48, align 8
store ptr %49, ptr %4, align 8
br label %50
50: ; preds = %65, %47
%51 = load ptr, ptr %3, align 8
%52 = load ptr, ptr %51, align 8
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = icmp ne i32 %54, 0
br i1 %55, label %56, label %63
56: ; preds = %50
%57 = load ptr, ptr %3, align 8
%58 = load ptr, ptr %57, align 8
%59 = load i8, ptr %58, align 1
%60 = call i64 @isspace(i8 noundef zeroext %59)
%61 = icmp ne i64 %60, 0
%62 = xor i1 %61, true
br label %63
63: ; preds = %56, %50
%64 = phi i1 [ false, %50 ], [ %62, %56 ]
br i1 %64, label %65, label %69
65: ; preds = %63
%66 = load ptr, ptr %3, align 8
%67 = load ptr, ptr %66, align 8
%68 = getelementptr inbounds i8, ptr %67, i32 1
store ptr %68, ptr %66, align 8
br label %50, !llvm.loop !8
69: ; preds = %63
br label %70
70: ; preds = %69, %37
%71 = load ptr, ptr %3, align 8
%72 = load ptr, ptr %71, align 8
%73 = icmp ne ptr %72, null
br i1 %73, label %74, label %91
74: ; preds = %70
%75 = load ptr, ptr %3, align 8
%76 = load ptr, ptr %75, align 8
%77 = load i8, ptr %76, align 1
%78 = icmp ne i8 %77, 0
br i1 %78, label %79, label %83
79: ; preds = %74
%80 = load ptr, ptr %3, align 8
%81 = load ptr, ptr %80, align 8
%82 = getelementptr inbounds i8, ptr %81, i32 1
store ptr %82, ptr %80, align 8
store i8 0, ptr %81, align 1
br label %83
83: ; preds = %79, %74
%84 = load ptr, ptr %3, align 8
%85 = load ptr, ptr %84, align 8
%86 = load i8, ptr %85, align 1
%87 = icmp ne i8 %86, 0
br i1 %87, label %90, label %88
88: ; preds = %83
%89 = load ptr, ptr %3, align 8
store ptr null, ptr %89, align 8
br label %90
90: ; preds = %88, %83
br label %91
91: ; preds = %90, %70
%92 = load ptr, ptr %4, align 8
store ptr %92, ptr %2, align 8
br label %93
93: ; preds = %91, %29, %12, %7
%94 = load ptr, ptr %2, align 8
ret ptr %94
}
declare i64 @isspace(i8 noundef zeroext) #1
declare ptr @strchr(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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplcmixgaf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @next_arg(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %8, label %7
7: ; preds = %1
store ptr null, ptr %2, align 8
br label %97
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = load ptr, ptr %9, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %13, label %12
12: ; preds = %8
store ptr null, ptr %2, align 8
br label %97
13: ; preds = %8
%14 = load ptr, ptr %3, align 8
%15 = load ptr, ptr %14, align 8
%16 = load i8, ptr %15, align 1
%17 = call i64 @isspace(i8 noundef zeroext %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %.lr.ph, label %28
.lr.ph: ; preds = %13
br label %19
19: ; preds = %.lr.ph, %19
%20 = load ptr, ptr %3, align 8
%21 = load ptr, ptr %20, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %20, align 8
%23 = load ptr, ptr %3, align 8
%24 = load ptr, ptr %23, align 8
%25 = load i8, ptr %24, align 1
%26 = call i64 @isspace(i8 noundef zeroext %25)
%27 = icmp ne i64 %26, 0
br i1 %27, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %28
28: ; preds = %._crit_edge, %13
%29 = load ptr, ptr %3, align 8
%30 = load ptr, ptr %29, align 8
%31 = load i8, ptr %30, align 1
%32 = icmp ne i8 %31, 0
br i1 %32, label %35, label %33
33: ; preds = %28
%34 = load ptr, ptr %3, align 8
store ptr null, ptr %34, align 8
store ptr null, ptr %2, align 8
br label %97
35: ; preds = %28
%36 = load ptr, ptr %3, align 8
%37 = load ptr, ptr %36, align 8
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 34
br i1 %40, label %41, label %51
41: ; preds = %35
%42 = load ptr, ptr %3, align 8
%43 = load ptr, ptr %42, align 8
%44 = getelementptr inbounds i8, ptr %43, i32 1
store ptr %44, ptr %42, align 8
%45 = load ptr, ptr %3, align 8
%46 = load ptr, ptr %45, align 8
store ptr %46, ptr %4, align 8
%47 = load ptr, ptr %3, align 8
%48 = load ptr, ptr %47, align 8
%49 = call ptr @strchr(ptr noundef %48, i8 noundef signext 34)
%50 = load ptr, ptr %3, align 8
store ptr %49, ptr %50, align 8
br label %74
51: ; preds = %35
%52 = load ptr, ptr %3, align 8
%53 = load ptr, ptr %52, align 8
store ptr %53, ptr %4, align 8
br label %54
54: ; preds = %69, %51
%55 = load ptr, ptr %3, align 8
%56 = load ptr, ptr %55, align 8
%57 = load i8, ptr %56, align 1
%58 = sext i8 %57 to i32
%59 = icmp ne i32 %58, 0
br i1 %59, label %60, label %67
60: ; preds = %54
%61 = load ptr, ptr %3, align 8
%62 = load ptr, ptr %61, align 8
%63 = load i8, ptr %62, align 1
%64 = call i64 @isspace(i8 noundef zeroext %63)
%65 = icmp ne i64 %64, 0
%66 = xor i1 %65, true
br label %67
67: ; preds = %60, %54
%68 = phi i1 [ false, %54 ], [ %66, %60 ]
br i1 %68, label %69, label %73
69: ; preds = %67
%70 = load ptr, ptr %3, align 8
%71 = load ptr, ptr %70, align 8
%72 = getelementptr inbounds i8, ptr %71, i32 1
store ptr %72, ptr %70, align 8
br label %54, !llvm.loop !8
73: ; preds = %67
br label %74
74: ; preds = %73, %41
%75 = load ptr, ptr %3, align 8
%76 = load ptr, ptr %75, align 8
%77 = icmp ne ptr %76, null
br i1 %77, label %78, label %95
78: ; preds = %74
%79 = load ptr, ptr %3, align 8
%80 = load ptr, ptr %79, align 8
%81 = load i8, ptr %80, align 1
%82 = icmp ne i8 %81, 0
br i1 %82, label %83, label %87
83: ; preds = %78
%84 = load ptr, ptr %3, align 8
%85 = load ptr, ptr %84, align 8
%86 = getelementptr inbounds i8, ptr %85, i32 1
store ptr %86, ptr %84, align 8
store i8 0, ptr %85, align 1
br label %87
87: ; preds = %83, %78
%88 = load ptr, ptr %3, align 8
%89 = load ptr, ptr %88, align 8
%90 = load i8, ptr %89, align 1
%91 = icmp ne i8 %90, 0
br i1 %91, label %94, label %92
92: ; preds = %87
%93 = load ptr, ptr %3, align 8
store ptr null, ptr %93, align 8
br label %94
94: ; preds = %92, %87
br label %95
95: ; preds = %94, %74
%96 = load ptr, ptr %4, align 8
store ptr %96, ptr %2, align 8
br label %97
97: ; preds = %95, %33, %12, %7
%98 = load ptr, ptr %2, align 8
ret ptr %98
}
declare i64 @isspace(i8 noundef zeroext) #1
declare ptr @strchr(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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmprk2mrvrr.c'
source_filename = "/tmp/tmprk2mrvrr.c"
target datalayout = "e-m:e-p270: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/tmprk2mrvrr.c"
target datalayout = "e-m:e-p270: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/tmpti05vu06.c'
source_filename = "/tmp/tmpti05vu06.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"insertion sort\0A\00", align 1
@__const.main.sorted = private unnamed_addr constant [6 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5, i32 6], align 16
@__const.main.sortable = private unnamed_addr constant [6 x i32] [i32 5, i32 2, i32 4, i32 6, i32 1, i32 3], align 16
@.str.1 = private unnamed_addr constant [25 x i8] c"expected: %d actual: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [6 x i32], align 16
%3 = alloca [6 x i32], align 16
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.sorted, i64 24, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.sortable, i64 24, i1 false)
%7 = getelementptr inbounds [6 x i32], ptr %3, i64 0, i64 0
%8 = call ptr @insertion_sort(ptr noundef %7, i32 noundef 6)
store ptr %8, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %9
9: ; preds = %35, %0
%10 = load i32, ptr %5, align 4
%11 = icmp slt i32 %10, 6
br i1 %11, label %12, label %38
12: ; preds = %9
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [6 x i32], ptr %2, i64 0, i64 %14
%16 = load i32, ptr %15, align 4
%17 = load ptr, ptr %4, align 8
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %17, i64 %19
%21 = load i32, ptr %20, align 4
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %16, i32 noundef %21)
%23 = load i32, ptr %5, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [6 x i32], ptr %2, i64 0, i64 %24
%26 = load i32, ptr %25, align 4
%27 = load ptr, ptr %4, align 8
%28 = load i32, ptr %5, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i32, ptr %27, i64 %29
%31 = load i32, ptr %30, align 4
%32 = icmp eq i32 %26, %31
%33 = zext i1 %32 to i32
%34 = call i32 @assert(i32 noundef %33)
br label %35
35: ; preds = %12
%36 = load i32, ptr %5, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %5, align 4
br label %9, !llvm.loop !6
38: ; preds = %9
%39 = load i32, ptr %1, align 4
ret i32 %39
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare ptr @insertion_sort(ptr noundef, i32 noundef) #1
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpti05vu06.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"insertion sort\0A\00", align 1
@__const.main.sorted = private unnamed_addr constant [6 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5, i32 6], align 16
@__const.main.sortable = private unnamed_addr constant [6 x i32] [i32 5, i32 2, i32 4, i32 6, i32 1, i32 3], align 16
@.str.1 = private unnamed_addr constant [25 x i8] c"expected: %d actual: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [6 x i32], align 16
%3 = alloca [6 x i32], align 16
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.sorted, i64 24, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.sortable, i64 24, i1 false)
%7 = getelementptr inbounds [6 x i32], ptr %3, i64 0, i64 0
%8 = call ptr @insertion_sort(ptr noundef %7, i32 noundef 6)
store ptr %8, ptr %4, align 8
store i32 0, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp slt i32 %9, 6
br i1 %10, label %.lr.ph, label %39
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %34
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [6 x i32], ptr %2, i64 0, i64 %13
%15 = load i32, ptr %14, align 4
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %5, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, ptr %16, i64 %18
%20 = load i32, ptr %19, align 4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %15, i32 noundef %20)
%22 = load i32, ptr %5, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [6 x i32], ptr %2, i64 0, i64 %23
%25 = load i32, ptr %24, align 4
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr %5, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i32, ptr %26, i64 %28
%30 = load i32, ptr %29, align 4
%31 = icmp eq i32 %25, %30
%32 = zext i1 %31 to i32
%33 = call i32 @assert(i32 noundef %32)
br label %34
34: ; preds = %11
%35 = load i32, ptr %5, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %5, align 4
%37 = load i32, ptr %5, align 4
%38 = icmp slt i32 %37, 6
br i1 %38, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %34
br label %39
39: ; preds = %._crit_edge, %0
%40 = load i32, ptr %1, align 4
ret i32 %40
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare ptr @insertion_sort(ptr noundef, i32 noundef) #1
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpac7npuai.c'
source_filename = "/tmp/tmpac7npuai.c"
target datalayout = "e-m:e-p270: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.hostent = type { ptr }
@.str = private unnamed_addr constant [12 x i8] c"www.lwn.com\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"gethostbyname\00", align 1
@.str.2 = private unnamed_addr constant [37 x i8] c"1\C2\B0 metodo - Indirizzo IP 32bit: %u\0A\00", align 1
@.str.3 = private unnamed_addr constant [40 x i8] c"2\C2\B0 metodo - %d Indirizzo IP 32bit: %u\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %7, align 8
%11 = load ptr, ptr %7, align 8
%12 = call ptr @gethostbyname(ptr noundef %11)
store ptr %12, ptr %9, align 8
%13 = load ptr, ptr %9, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = call i32 @perror(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %52
17: ; preds = %2
%18 = load ptr, ptr %9, align 8
%19 = getelementptr inbounds %struct.hostent, ptr %18, i32 0, i32 0
%20 = load ptr, ptr %19, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 0
%22 = load ptr, ptr %21, align 8
%23 = load i32, ptr %22, align 4
store i32 %23, ptr %8, align 4
%24 = load i32, ptr %8, align 4
%25 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %24)
store i32 0, ptr %6, align 4
br label %26
26: ; preds = %47, %17
%27 = load ptr, ptr %9, align 8
%28 = getelementptr inbounds %struct.hostent, ptr %27, i32 0, i32 0
%29 = load ptr, ptr %28, align 8
%30 = load i32, ptr %6, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds ptr, ptr %29, i64 %31
%33 = load ptr, ptr %32, align 8
%34 = icmp ne ptr %33, null
br i1 %34, label %35, label %50
35: ; preds = %26
%36 = load ptr, ptr %9, align 8
%37 = getelementptr inbounds %struct.hostent, ptr %36, i32 0, i32 0
%38 = load ptr, ptr %37, align 8
%39 = load i32, ptr %6, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds ptr, ptr %38, i64 %40
%42 = load ptr, ptr %41, align 8
%43 = load i32, ptr %42, align 4
store i32 %43, ptr %10, align 4
%44 = load i32, ptr %6, align 4
%45 = load i32, ptr %10, align 4
%46 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.3, i32 noundef %44, i32 noundef %45)
br label %47
47: ; preds = %35
%48 = load i32, ptr %6, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %6, align 4
br label %26, !llvm.loop !6
50: ; preds = %26
%51 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %51, ptr %3, align 4
br label %52
52: ; preds = %50, %15
%53 = load i32, ptr %3, align 4
ret i32 %53
}
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpac7npuai.c"
target datalayout = "e-m:e-p270: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.hostent = type { ptr }
@.str = private unnamed_addr constant [12 x i8] c"www.lwn.com\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"gethostbyname\00", align 1
@.str.2 = private unnamed_addr constant [37 x i8] c"1\C2\B0 metodo - Indirizzo IP 32bit: %u\0A\00", align 1
@.str.3 = private unnamed_addr constant [40 x i8] c"2\C2\B0 metodo - %d Indirizzo IP 32bit: %u\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %7, align 8
%11 = load ptr, ptr %7, align 8
%12 = call ptr @gethostbyname(ptr noundef %11)
store ptr %12, ptr %9, align 8
%13 = load ptr, ptr %9, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = call i32 @perror(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %58
17: ; preds = %2
%18 = load ptr, ptr %9, align 8
%19 = getelementptr inbounds %struct.hostent, ptr %18, i32 0, i32 0
%20 = load ptr, ptr %19, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 0
%22 = load ptr, ptr %21, align 8
%23 = load i32, ptr %22, align 4
store i32 %23, ptr %8, align 4
%24 = load i32, ptr %8, align 4
%25 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %24)
store i32 0, ptr %6, align 4
%26 = load ptr, ptr %9, align 8
%27 = load ptr, ptr %26, align 8
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds ptr, ptr %27, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = icmp ne ptr %31, null
br i1 %32, label %.lr.ph, label %56
.lr.ph: ; preds = %17
br label %33
33: ; preds = %.lr.ph, %45
%34 = load ptr, ptr %9, align 8
%35 = getelementptr inbounds %struct.hostent, ptr %34, i32 0, i32 0
%36 = load ptr, ptr %35, align 8
%37 = load i32, ptr %6, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds ptr, ptr %36, i64 %38
%40 = load ptr, ptr %39, align 8
%41 = load i32, ptr %40, align 4
store i32 %41, ptr %10, align 4
%42 = load i32, ptr %6, align 4
%43 = load i32, ptr %10, align 4
%44 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.3, i32 noundef %42, i32 noundef %43)
br label %45
45: ; preds = %33
%46 = load i32, ptr %6, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %6, align 4
%48 = load ptr, ptr %9, align 8
%49 = getelementptr inbounds %struct.hostent, ptr %48, i32 0, i32 0
%50 = load ptr, ptr %49, align 8
%51 = load i32, ptr %6, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds ptr, ptr %50, i64 %52
%54 = load ptr, ptr %53, align 8
%55 = icmp ne ptr %54, null
br i1 %55, label %33, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %45
br label %56
56: ; preds = %._crit_edge, %17
%57 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %57, ptr %3, align 4
br label %58
58: ; preds = %56, %15
%59 = load i32, ptr %3, align 4
ret i32 %59
}
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpx0w3q8z_.c'
source_filename = "/tmp/tmpx0w3q8z_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @quick_trig_cos(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = fadd float 0x3FF921FB60000000, %3
%5 = call float @quick_trig_sin(float noundef %4)
ret float %5
}
declare float @quick_trig_sin(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx0w3q8z_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @quick_trig_cos(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = fadd float 0x3FF921FB60000000, %3
%5 = call float @quick_trig_sin(float noundef %4)
ret float %5
}
declare float @quick_trig_sin(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv1l5j2n5.c'
source_filename = "/tmp/tmpv1l5j2n5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ch_epoch_chk(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = shl i32 %3, 3
%5 = add nsw i32 %4, 7
%6 = call i32 @from_gps(i32 noundef %5)
ret i32 %6
}
declare i32 @from_gps(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/tmpv1l5j2n5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ch_epoch_chk(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = shl i32 %3, 3
%5 = add nsw i32 %4, 7
%6 = call i32 @from_gps(i32 noundef %5)
ret i32 %6
}
declare i32 @from_gps(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/tmp33e1dsyt.c'
source_filename = "/tmp/tmp33e1dsyt.c"
target datalayout = "e-m:e-p270: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.aufs_ibusy = type { i32 }
@EINVAL = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca %struct.aufs_ibusy, align 4
%10 = alloca [16 x i8], align 16
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 -1, ptr %6, align 4
%13 = load i64, ptr @EINVAL, align 8
store i64 %13, ptr @errno, align 8
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
store ptr %16, ptr %11, align 8
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %17, 3
br i1 %18, label %19, label %24
19: ; preds = %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 0
%22 = load ptr, ptr %21, align 8
%23 = call i32 @usage(ptr noundef %22)
br label %95
24: ; preds = %2
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
store ptr %27, ptr %11, align 8
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 1
%30 = load ptr, ptr %29, align 8
%31 = call ptr @opendir(ptr noundef %30)
store ptr %31, ptr %12, align 8
%32 = load ptr, ptr %12, align 8
%33 = icmp ne ptr %32, null
br i1 %33, label %35, label %34
34: ; preds = %24
br label %95
35: ; preds = %24
%36 = load ptr, ptr %12, align 8
%37 = call i32 @dirfd(ptr noundef %36)
store i32 %37, ptr %7, align 4
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 2
%40 = load ptr, ptr %39, align 8
store ptr %40, ptr %11, align 8
store i64 0, ptr @errno, align 8
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds ptr, ptr %41, i64 2
%43 = load ptr, ptr %42, align 8
%44 = call i32 @strtoul(ptr noundef %43, ptr noundef null, i32 noundef 0)
%45 = getelementptr inbounds %struct.aufs_ibusy, ptr %9, i32 0, i32 0
store i32 %44, ptr %45, align 4
%46 = load i64, ptr @errno, align 8
%47 = icmp ne i64 %46, 0
br i1 %47, label %48, label %49
48: ; preds = %35
br label %95
49: ; preds = %35
%50 = load i32, ptr %4, align 4
%51 = icmp sgt i32 %50, 3
br i1 %51, label %52, label %78
52: ; preds = %49
store i32 3, ptr %8, align 4
br label %53
53: ; preds = %74, %52
%54 = load i32, ptr %8, align 4
%55 = load i32, ptr %4, align 4
%56 = icmp slt i32 %54, %55
br i1 %56, label %57, label %77
57: ; preds = %53
%58 = load ptr, ptr %5, align 8
%59 = load i32, ptr %8, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds ptr, ptr %58, i64 %60
%62 = load ptr, ptr %61, align 8
store ptr %62, ptr %11, align 8
%63 = load ptr, ptr %5, align 8
%64 = load i32, ptr %8, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds ptr, ptr %63, i64 %65
%67 = load ptr, ptr %66, align 8
%68 = load i32, ptr %7, align 4
%69 = call i32 @do_ibusy(ptr noundef %67, i32 noundef %68, ptr noundef %9)
store i32 %69, ptr %6, align 4
%70 = load i32, ptr %6, align 4
%71 = icmp ne i32 %70, 0
br i1 %71, label %72, label %73
72: ; preds = %57
br label %77
73: ; preds = %57
br label %74
74: ; preds = %73
%75 = load i32, ptr %8, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %8, align 4
br label %53, !llvm.loop !6
77: ; preds = %72, %53
br label %94
78: ; preds = %49
%79 = getelementptr inbounds [16 x i8], ptr %10, i64 0, i64 0
store ptr %79, ptr %11, align 8
br label %80
80: ; preds = %92, %78
%81 = getelementptr inbounds [16 x i8], ptr %10, i64 0, i64 0
%82 = load i32, ptr @stdin, align 4
%83 = call i64 @fgets(ptr noundef %81, i32 noundef 16, i32 noundef %82)
%84 = icmp ne i64 %83, 0
br i1 %84, label %85, label %93
85: ; preds = %80
%86 = getelementptr inbounds [16 x i8], ptr %10, i64 0, i64 0
%87 = load i32, ptr %7, align 4
%88 = call i32 @do_ibusy(ptr noundef %86, i32 noundef %87, ptr noundef %9)
store i32 %88, ptr %6, align 4
%89 = load i32, ptr %6, align 4
%90 = icmp ne i32 %89, 0
br i1 %90, label %91, label %92
91: ; preds = %85
br label %93
92: ; preds = %85
br label %80, !llvm.loop !8
93: ; preds = %91, %80
br label %94
94: ; preds = %93, %77
br label %95
95: ; preds = %94, %48, %34, %19
%96 = load i32, ptr %6, align 4
%97 = icmp ne i32 %96, 0
br i1 %97, label %98, label %101
98: ; preds = %95
%99 = load ptr, ptr %11, align 8
%100 = call i32 @perror(ptr noundef %99)
br label %101
101: ; preds = %98, %95
%102 = load i32, ptr %6, align 4
ret i32 %102
}
declare i32 @usage(ptr noundef) #1
declare ptr @opendir(ptr noundef) #1
declare i32 @dirfd(ptr noundef) #1
declare i32 @strtoul(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @do_ibusy(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp33e1dsyt.c"
target datalayout = "e-m:e-p270: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.aufs_ibusy = type { i32 }
@EINVAL = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca %struct.aufs_ibusy, align 4
%10 = alloca [16 x i8], align 16
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 -1, ptr %6, align 4
%13 = load i64, ptr @EINVAL, align 8
store i64 %13, ptr @errno, align 8
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
store ptr %16, ptr %11, align 8
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %17, 3
br i1 %18, label %19, label %24
19: ; preds = %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 0
%22 = load ptr, ptr %21, align 8
%23 = call i32 @usage(ptr noundef %22)
br label %99
24: ; preds = %2
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
store ptr %27, ptr %11, align 8
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 1
%30 = load ptr, ptr %29, align 8
%31 = call ptr @opendir(ptr noundef %30)
store ptr %31, ptr %12, align 8
%32 = load ptr, ptr %12, align 8
%33 = icmp ne ptr %32, null
br i1 %33, label %35, label %34
34: ; preds = %24
br label %99
35: ; preds = %24
%36 = load ptr, ptr %12, align 8
%37 = call i32 @dirfd(ptr noundef %36)
store i32 %37, ptr %7, align 4
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 2
%40 = load ptr, ptr %39, align 8
store ptr %40, ptr %11, align 8
store i64 0, ptr @errno, align 8
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds ptr, ptr %41, i64 2
%43 = load ptr, ptr %42, align 8
%44 = call i32 @strtoul(ptr noundef %43, ptr noundef null, i32 noundef 0)
%45 = getelementptr inbounds %struct.aufs_ibusy, ptr %9, i32 0, i32 0
store i32 %44, ptr %45, align 4
%46 = load i64, ptr @errno, align 8
%47 = icmp ne i64 %46, 0
br i1 %47, label %48, label %49
48: ; preds = %35
br label %99
49: ; preds = %35
%50 = load i32, ptr %4, align 4
%51 = icmp sgt i32 %50, 3
br i1 %51, label %52, label %80
52: ; preds = %49
store i32 3, ptr %8, align 4
%53 = load i32, ptr %8, align 4
%54 = load i32, ptr %4, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %52
br label %56
56: ; preds = %.lr.ph2, %73
%57 = load ptr, ptr %5, align 8
%58 = load i32, ptr %8, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds ptr, ptr %57, i64 %59
%61 = load ptr, ptr %60, align 8
store ptr %61, ptr %11, align 8
%62 = load ptr, ptr %5, align 8
%63 = load i32, ptr %8, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds ptr, ptr %62, i64 %64
%66 = load ptr, ptr %65, align 8
%67 = load i32, ptr %7, align 4
%68 = call i32 @do_ibusy(ptr noundef %66, i32 noundef %67, ptr noundef %9)
store i32 %68, ptr %6, align 4
%69 = load i32, ptr %6, align 4
%70 = icmp ne i32 %69, 0
br i1 %70, label %71, label %72
71: ; preds = %56
br label %79
72: ; preds = %56
br label %73
73: ; preds = %72
%74 = load i32, ptr %8, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %8, align 4
%76 = load i32, ptr %8, align 4
%77 = load i32, ptr %4, align 4
%78 = icmp slt i32 %76, %77
br i1 %78, label %56, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %73
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %52
br label %79
79: ; preds = %.loopexit, %71
br label %98
80: ; preds = %49
%81 = getelementptr inbounds [16 x i8], ptr %10, i64 0, i64 0
store ptr %81, ptr %11, align 8
%82 = getelementptr inbounds [16 x i8], ptr %10, i64 0, i64 0
%83 = load i32, ptr @stdin, align 4
%84 = call i64 @fgets(ptr noundef %82, i32 noundef 16, i32 noundef %83)
%85 = icmp ne i64 %84, 0
br i1 %85, label %.lr.ph, label %.loopexit1
.lr.ph: ; preds = %80
br label %90
86: ; preds = %90
%87 = load i32, ptr @stdin, align 4
%88 = call i64 @fgets(ptr noundef %82, i32 noundef 16, i32 noundef %87)
%89 = icmp ne i64 %88, 0
br i1 %89, label %90, label %..loopexit1_crit_edge, !llvm.loop !8
90: ; preds = %.lr.ph, %86
%91 = getelementptr inbounds [16 x i8], ptr %10, i64 0, i64 0
%92 = load i32, ptr %7, align 4
%93 = call i32 @do_ibusy(ptr noundef %91, i32 noundef %92, ptr noundef %9)
store i32 %93, ptr %6, align 4
%94 = load i32, ptr %6, align 4
%95 = icmp ne i32 %94, 0
br i1 %95, label %96, label %86
96: ; preds = %90
br label %97
..loopexit1_crit_edge: ; preds = %86
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %80
br label %97
97: ; preds = %.loopexit1, %96
br label %98
98: ; preds = %97, %79
br label %99
99: ; preds = %98, %48, %34, %19
%100 = load i32, ptr %6, align 4
%101 = icmp ne i32 %100, 0
br i1 %101, label %102, label %105
102: ; preds = %99
%103 = load ptr, ptr %11, align 8
%104 = call i32 @perror(ptr noundef %103)
br label %105
105: ; preds = %102, %99
%106 = load i32, ptr %6, align 4
ret i32 %106
}
declare i32 @usage(ptr noundef) #1
declare ptr @opendir(ptr noundef) #1
declare i32 @dirfd(ptr noundef) #1
declare i32 @strtoul(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @do_ibusy(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpdodsi_hn.c'
source_filename = "/tmp/tmpdodsi_hn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @remove_unclustered(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, float noundef %5, i32 noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca ptr, align 8
%13 = alloca float, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i64, align 8
%17 = alloca i64, align 8
%18 = alloca float, align 4
store ptr %0, ptr %8, align 8
store ptr %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 float %5, ptr %13, align 4
store i32 %6, ptr %14, align 4
store i32 0, ptr %15, align 4
store i64 0, ptr %16, align 8
br label %19
19: ; preds = %81, %7
%20 = load i64, ptr %16, align 8
%21 = load i64, ptr %11, align 8
%22 = icmp slt i64 %20, %21
br i1 %22, label %23, label %84
23: ; preds = %19
%24 = load ptr, ptr %12, align 8
%25 = load i64, ptr %16, align 8
%26 = getelementptr inbounds i8, ptr %24, i64 %25
%27 = load i8, ptr %26, align 1
%28 = zext i8 %27 to i32
%29 = icmp ne i32 %28, 0
br i1 %29, label %30, label %31
30: ; preds = %23
br label %81
31: ; preds = %23
store i64 0, ptr %17, align 8
br label %32
32: ; preds = %77, %31
%33 = load i64, ptr %17, align 8
%34 = load i64, ptr %11, align 8
%35 = icmp slt i64 %33, %34
br i1 %35, label %36, label %80
36: ; preds = %32
%37 = load ptr, ptr %8, align 8
%38 = load i64, ptr %17, align 8
%39 = getelementptr inbounds float, ptr %37, i64 %38
%40 = load float, ptr %39, align 4
%41 = load ptr, ptr %9, align 8
%42 = load i64, ptr %17, align 8
%43 = getelementptr inbounds float, ptr %41, i64 %42
%44 = load float, ptr %43, align 4
%45 = load ptr, ptr %10, align 8
%46 = load i64, ptr %17, align 8
%47 = getelementptr inbounds float, ptr %45, i64 %46
%48 = load float, ptr %47, align 4
%49 = load ptr, ptr %8, align 8
%50 = load i64, ptr %16, align 8
%51 = getelementptr inbounds float, ptr %49, i64 %50
%52 = load float, ptr %51, align 4
%53 = load ptr, ptr %9, align 8
%54 = load i64, ptr %16, align 8
%55 = getelementptr inbounds float, ptr %53, i64 %54
%56 = load float, ptr %55, align 4
%57 = load ptr, ptr %10, align 8
%58 = load i64, ptr %16, align 8
%59 = getelementptr inbounds float, ptr %57, i64 %58
%60 = load float, ptr %59, align 4
%61 = call float @dist_calc(float noundef %40, float noundef %44, float noundef %48, float noundef %52, float noundef %56, float noundef %60)
store float %61, ptr %18, align 4
%62 = load i64, ptr %17, align 8
%63 = load i64, ptr %16, align 8
%64 = icmp ne i64 %62, %63
br i1 %64, label %65, label %76
65: ; preds = %36
%66 = load float, ptr %18, align 4
%67 = load float, ptr %13, align 4
%68 = fcmp olt float %66, %67
br i1 %68, label %69, label %76
69: ; preds = %65
%70 = load ptr, ptr %12, align 8
%71 = load i64, ptr %16, align 8
%72 = getelementptr inbounds i8, ptr %70, i64 %71
store i8 1, ptr %72, align 1
%73 = load ptr, ptr %12, align 8
%74 = load i64, ptr %17, align 8
%75 = getelementptr inbounds i8, ptr %73, i64 %74
store i8 1, ptr %75, align 1
br label %80
76: ; preds = %65, %36
br label %77
77: ; preds = %76
%78 = load i64, ptr %17, align 8
%79 = add nsw i64 %78, 1
store i64 %79, ptr %17, align 8
br label %32, !llvm.loop !6
80: ; preds = %69, %32
br label %81
81: ; preds = %80, %30
%82 = load i64, ptr %16, align 8
%83 = add nsw i64 %82, 1
store i64 %83, ptr %16, align 8
br label %19, !llvm.loop !8
84: ; preds = %19
%85 = load i32, ptr %15, align 4
ret i32 %85
}
declare float @dist_calc(float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdodsi_hn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @remove_unclustered(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, float noundef %5, i32 noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca ptr, align 8
%13 = alloca float, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i64, align 8
%17 = alloca i64, align 8
%18 = alloca float, align 4
store ptr %0, ptr %8, align 8
store ptr %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 float %5, ptr %13, align 4
store i32 %6, ptr %14, align 4
store i32 0, ptr %15, align 4
store i64 0, ptr %16, align 8
%19 = load i64, ptr %16, align 8
%20 = load i64, ptr %11, align 8
%21 = icmp slt i64 %19, %20
br i1 %21, label %.lr.ph1, label %88
.lr.ph1: ; preds = %7
br label %22
22: ; preds = %.lr.ph1, %82
%23 = load ptr, ptr %12, align 8
%24 = load i64, ptr %16, align 8
%25 = getelementptr inbounds i8, ptr %23, i64 %24
%26 = load i8, ptr %25, align 1
%27 = zext i8 %26 to i32
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %22
br label %82
30: ; preds = %22
store i64 0, ptr %17, align 8
%31 = load i64, ptr %17, align 8
%32 = load i64, ptr %11, align 8
%33 = icmp slt i64 %31, %32
br i1 %33, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %30
br label %34
34: ; preds = %.lr.ph, %75
%35 = load ptr, ptr %8, align 8
%36 = load i64, ptr %17, align 8
%37 = getelementptr inbounds float, ptr %35, i64 %36
%38 = load float, ptr %37, align 4
%39 = load ptr, ptr %9, align 8
%40 = load i64, ptr %17, align 8
%41 = getelementptr inbounds float, ptr %39, i64 %40
%42 = load float, ptr %41, align 4
%43 = load ptr, ptr %10, align 8
%44 = load i64, ptr %17, align 8
%45 = getelementptr inbounds float, ptr %43, i64 %44
%46 = load float, ptr %45, align 4
%47 = load ptr, ptr %8, align 8
%48 = load i64, ptr %16, align 8
%49 = getelementptr inbounds float, ptr %47, i64 %48
%50 = load float, ptr %49, align 4
%51 = load ptr, ptr %9, align 8
%52 = load i64, ptr %16, align 8
%53 = getelementptr inbounds float, ptr %51, i64 %52
%54 = load float, ptr %53, align 4
%55 = load ptr, ptr %10, align 8
%56 = load i64, ptr %16, align 8
%57 = getelementptr inbounds float, ptr %55, i64 %56
%58 = load float, ptr %57, align 4
%59 = call float @dist_calc(float noundef %38, float noundef %42, float noundef %46, float noundef %50, float noundef %54, float noundef %58)
store float %59, ptr %18, align 4
%60 = load i64, ptr %17, align 8
%61 = load i64, ptr %16, align 8
%62 = icmp ne i64 %60, %61
br i1 %62, label %63, label %74
63: ; preds = %34
%64 = load float, ptr %18, align 4
%65 = load float, ptr %13, align 4
%66 = fcmp olt float %64, %65
br i1 %66, label %67, label %74
67: ; preds = %63
%68 = load ptr, ptr %12, align 8
%69 = load i64, ptr %16, align 8
%70 = getelementptr inbounds i8, ptr %68, i64 %69
store i8 1, ptr %70, align 1
%71 = load ptr, ptr %12, align 8
%72 = load i64, ptr %17, align 8
%73 = getelementptr inbounds i8, ptr %71, i64 %72
store i8 1, ptr %73, align 1
br label %81
74: ; preds = %63, %34
br label %75
75: ; preds = %74
%76 = load i64, ptr %17, align 8
%77 = add nsw i64 %76, 1
store i64 %77, ptr %17, align 8
%78 = load i64, ptr %17, align 8
%79 = load i64, ptr %11, align 8
%80 = icmp slt i64 %78, %79
br i1 %80, label %34, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %75
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %30
br label %81
81: ; preds = %.loopexit, %67
br label %82
82: ; preds = %81, %29
%83 = load i64, ptr %16, align 8
%84 = add nsw i64 %83, 1
store i64 %84, ptr %16, align 8
%85 = load i64, ptr %16, align 8
%86 = load i64, ptr %11, align 8
%87 = icmp slt i64 %85, %86
br i1 %87, label %22, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %82
br label %88
88: ; preds = %._crit_edge, %7
%89 = load i32, ptr %15, align 4
ret i32 %89
}
declare float @dist_calc(float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp8dbfv5m2.c'
source_filename = "/tmp/tmp8dbfv5m2.c"
target datalayout = "e-m:e-p270: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/tmp8dbfv5m2.c"
target datalayout = "e-m:e-p270: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/tmpnhh19ilw.c'
source_filename = "/tmp/tmpnhh19ilw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strsepq(ptr noundef %0, ptr noundef %1, i8 noundef signext %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i8, align 1
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i8 %2, ptr %7, align 1
store ptr null, ptr %9, align 8
store i32 0, ptr %10, align 4
%14 = load ptr, ptr %5, align 8
%15 = load ptr, ptr %14, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %18
17: ; preds = %3
store ptr null, ptr %4, align 8
br label %116
18: ; preds = %3
%19 = load ptr, ptr %5, align 8
%20 = load ptr, ptr %19, align 8
store ptr %20, ptr %8, align 8
br label %21
21: ; preds = %95, %18
%22 = load ptr, ptr %8, align 8
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %98
26: ; preds = %21
%27 = load ptr, ptr %8, align 8
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
store i32 %29, ptr %11, align 4
%30 = load ptr, ptr %6, align 8
store ptr %30, ptr %12, align 8
br label %31
31: ; preds = %44, %26
%32 = load ptr, ptr %12, align 8
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %47
36: ; preds = %31
%37 = load ptr, ptr %12, align 8
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = load i32, ptr %11, align 4
%41 = icmp eq i32 %39, %40
br i1 %41, label %42, label %43
42: ; preds = %36
br label %47
43: ; preds = %36
br label %44
44: ; preds = %43
%45 = load ptr, ptr %12, align 8
%46 = getelementptr inbounds i8, ptr %45, i32 1
store ptr %46, ptr %12, align 8
br label %31, !llvm.loop !6
47: ; preds = %42, %31
%48 = load ptr, ptr %12, align 8
%49 = load i8, ptr %48, align 1
%50 = sext i8 %49 to i32
%51 = icmp ne i32 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %47
br label %60
53: ; preds = %47
%54 = load i32, ptr %11, align 4
%55 = load i8, ptr %7, align 1
%56 = sext i8 %55 to i32
%57 = icmp eq i32 %54, %56
%58 = zext i1 %57 to i64
%59 = select i1 %57, i32 1, i32 2
br label %60
60: ; preds = %53, %52
%61 = phi i32 [ 0, %52 ], [ %59, %53 ]
store i32 %61, ptr %13, align 4
%62 = load i32, ptr %10, align 4
switch i32 %62, label %87 [
i32 0, label %63
i32 1, label %73
i32 2, label %81
]
63: ; preds = %60
%64 = load i32, ptr %13, align 4
switch i32 %64, label %72 [
i32 0, label %65
i32 1, label %66
i32 2, label %70
]
65: ; preds = %63
br label %72
66: ; preds = %63
store i32 1, ptr %10, align 4
%67 = load ptr, ptr %8, align 8
%68 = getelementptr inbounds i8, ptr %67, i32 1
store ptr %68, ptr %8, align 8
store i8 0, ptr %67, align 1
%69 = load ptr, ptr %8, align 8
store ptr %69, ptr %9, align 8
br label %72
70: ; preds = %63
store i32 2, ptr %10, align 4
%71 = load ptr, ptr %8, align 8
store ptr %71, ptr %9, align 8
br label %72
72: ; preds = %63, %70, %66, %65
br label %87
73: ; preds = %60
%74 = load i32, ptr %13, align 4
switch i32 %74, label %80 [
i32 0, label %75
i32 1, label %76
i32 2, label %79
]
75: ; preds = %73
br label %80
76: ; preds = %73
store i32 0, ptr %10, align 4
%77 = load ptr, ptr %8, align 8
%78 = getelementptr inbounds i8, ptr %77, i32 1
store ptr %78, ptr %8, align 8
store i8 0, ptr %77, align 1
br label %80
79: ; preds = %73
br label %80
80: ; preds = %73, %79, %76, %75
br label %81
81: ; preds = %60, %80
%82 = load i32, ptr %13, align 4
switch i32 %82, label %86 [
i32 0, label %83
i32 1, label %84
i32 2, label %85
]
83: ; preds = %81
store i32 0, ptr %10, align 4
br label %86
84: ; preds = %81
br label %86
85: ; preds = %81
br label %86
86: ; preds = %81, %85, %84, %83
br label %87
87: ; preds = %86, %60, %72
%88 = load i32, ptr %10, align 4
%89 = icmp eq i32 %88, 0
br i1 %89, label %90, label %94
90: ; preds = %87
%91 = load ptr, ptr %9, align 8
%92 = icmp ne ptr %91, null
br i1 %92, label %93, label %94
93: ; preds = %90
br label %98
94: ; preds = %90, %87
br label %95
95: ; preds = %94
%96 = load ptr, ptr %8, align 8
%97 = getelementptr inbounds i8, ptr %96, i32 1
store ptr %97, ptr %8, align 8
br label %21, !llvm.loop !8
98: ; preds = %93, %21
%99 = load ptr, ptr %8, align 8
%100 = load i8, ptr %99, align 1
%101 = sext i8 %100 to i32
%102 = icmp eq i32 %101, 0
br i1 %102, label %103, label %105
103: ; preds = %98
%104 = load ptr, ptr %5, align 8
store ptr null, ptr %104, align 8
br label %114
105: ; preds = %98
%106 = load ptr, ptr %9, align 8
%107 = icmp ne ptr %106, null
br i1 %107, label %108, label %113
108: ; preds = %105
%109 = load ptr, ptr %8, align 8
%110 = getelementptr inbounds i8, ptr %109, i32 1
store ptr %110, ptr %8, align 8
store i8 0, ptr %109, align 1
%111 = load ptr, ptr %8, align 8
%112 = load ptr, ptr %5, align 8
store ptr %111, ptr %112, align 8
br label %113
113: ; preds = %108, %105
br label %114
114: ; preds = %113, %103
%115 = load ptr, ptr %9, align 8
store ptr %115, ptr %4, align 8
br label %116
116: ; preds = %114, %17
%117 = load ptr, ptr %4, align 8
ret ptr %117
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpnhh19ilw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strsepq(ptr noundef %0, ptr noundef %1, i8 noundef signext %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i8, align 1
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i8 %2, ptr %7, align 1
store ptr null, ptr %9, align 8
store i32 0, ptr %10, align 4
%14 = load ptr, ptr %5, align 8
%15 = load ptr, ptr %14, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %18
17: ; preds = %3
store ptr null, ptr %4, align 8
br label %122
18: ; preds = %3
%19 = load ptr, ptr %5, align 8
%20 = load ptr, ptr %19, align 8
store ptr %20, ptr %8, align 8
%21 = load ptr, ptr %8, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp ne i32 %23, 0
br i1 %24, label %.lr.ph2, label %.loopexit1
.lr.ph2: ; preds = %18
br label %25
25: ; preds = %.lr.ph2, %97
%26 = load ptr, ptr %8, align 8
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
store i32 %28, ptr %11, align 4
%29 = load ptr, ptr %6, align 8
store ptr %29, ptr %12, align 8
%30 = load ptr, ptr %12, align 8
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp ne i32 %32, 0
br i1 %33, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %25
br label %34
34: ; preds = %.lr.ph, %42
%35 = load ptr, ptr %12, align 8
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = load i32, ptr %11, align 4
%39 = icmp eq i32 %37, %38
br i1 %39, label %40, label %41
40: ; preds = %34
br label %49
41: ; preds = %34
br label %42
42: ; preds = %41
%43 = load ptr, ptr %12, align 8
%44 = getelementptr inbounds i8, ptr %43, i32 1
store ptr %44, ptr %12, align 8
%45 = load ptr, ptr %12, align 8
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = icmp ne i32 %47, 0
br i1 %48, label %34, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %42
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %25
br label %49
49: ; preds = %.loopexit, %40
%50 = load ptr, ptr %12, align 8
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %55
54: ; preds = %49
br label %62
55: ; preds = %49
%56 = load i32, ptr %11, align 4
%57 = load i8, ptr %7, align 1
%58 = sext i8 %57 to i32
%59 = icmp eq i32 %56, %58
%60 = zext i1 %59 to i64
%61 = select i1 %59, i32 1, i32 2
br label %62
62: ; preds = %55, %54
%63 = phi i32 [ 0, %54 ], [ %61, %55 ]
store i32 %63, ptr %13, align 4
%64 = load i32, ptr %10, align 4
switch i32 %64, label %89 [
i32 0, label %65
i32 1, label %75
i32 2, label %83
]
65: ; preds = %62
%66 = load i32, ptr %13, align 4
switch i32 %66, label %74 [
i32 0, label %67
i32 1, label %68
i32 2, label %72
]
67: ; preds = %65
br label %74
68: ; preds = %65
store i32 1, ptr %10, align 4
%69 = load ptr, ptr %8, align 8
%70 = getelementptr inbounds i8, ptr %69, i32 1
store ptr %70, ptr %8, align 8
store i8 0, ptr %69, align 1
%71 = load ptr, ptr %8, align 8
store ptr %71, ptr %9, align 8
br label %74
72: ; preds = %65
store i32 2, ptr %10, align 4
%73 = load ptr, ptr %8, align 8
store ptr %73, ptr %9, align 8
br label %74
74: ; preds = %72, %68, %67, %65
br label %89
75: ; preds = %62
%76 = load i32, ptr %13, align 4
switch i32 %76, label %82 [
i32 0, label %77
i32 1, label %78
i32 2, label %81
]
77: ; preds = %75
br label %82
78: ; preds = %75
store i32 0, ptr %10, align 4
%79 = load ptr, ptr %8, align 8
%80 = getelementptr inbounds i8, ptr %79, i32 1
store ptr %80, ptr %8, align 8
store i8 0, ptr %79, align 1
br label %82
81: ; preds = %75
br label %82
82: ; preds = %81, %78, %77, %75
br label %83
83: ; preds = %82, %62
%84 = load i32, ptr %13, align 4
switch i32 %84, label %88 [
i32 0, label %85
i32 1, label %86
i32 2, label %87
]
85: ; preds = %83
store i32 0, ptr %10, align 4
br label %88
86: ; preds = %83
br label %88
87: ; preds = %83
br label %88
88: ; preds = %87, %86, %85, %83
br label %89
89: ; preds = %88, %74, %62
%90 = load i32, ptr %10, align 4
%91 = icmp eq i32 %90, 0
br i1 %91, label %92, label %96
92: ; preds = %89
%93 = load ptr, ptr %9, align 8
%94 = icmp ne ptr %93, null
br i1 %94, label %95, label %96
95: ; preds = %92
br label %104
96: ; preds = %92, %89
br label %97
97: ; preds = %96
%98 = load ptr, ptr %8, align 8
%99 = getelementptr inbounds i8, ptr %98, i32 1
store ptr %99, ptr %8, align 8
%100 = load ptr, ptr %8, align 8
%101 = load i8, ptr %100, align 1
%102 = sext i8 %101 to i32
%103 = icmp ne i32 %102, 0
br i1 %103, label %25, label %..loopexit1_crit_edge, !llvm.loop !8
..loopexit1_crit_edge: ; preds = %97
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %18
br label %104
104: ; preds = %.loopexit1, %95
%105 = load ptr, ptr %8, align 8
%106 = load i8, ptr %105, align 1
%107 = sext i8 %106 to i32
%108 = icmp eq i32 %107, 0
br i1 %108, label %109, label %111
109: ; preds = %104
%110 = load ptr, ptr %5, align 8
store ptr null, ptr %110, align 8
br label %120
111: ; preds = %104
%112 = load ptr, ptr %9, align 8
%113 = icmp ne ptr %112, null
br i1 %113, label %114, label %119
114: ; preds = %111
%115 = load ptr, ptr %8, align 8
%116 = getelementptr inbounds i8, ptr %115, i32 1
store ptr %116, ptr %8, align 8
store i8 0, ptr %115, align 1
%117 = load ptr, ptr %8, align 8
%118 = load ptr, ptr %5, align 8
store ptr %117, ptr %118, align 8
br label %119
119: ; preds = %114, %111
br label %120
120: ; preds = %119, %109
%121 = load ptr, ptr %9, align 8
store ptr %121, ptr %4, align 8
br label %122
122: ; preds = %120, %17
%123 = load ptr, ptr %4, align 8
ret ptr %123
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpju_kh20z.c'
source_filename = "/tmp/tmpju_kh20z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@range_to_iarray.nbuf = internal global [256 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [4 x i8] c", \09\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"-\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @range_to_iarray(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
store i32 0, ptr %8, align 4
%12 = load ptr, ptr %6, align 8
%13 = call ptr @strtok(ptr noundef %12, ptr noundef @.str)
store ptr %13, ptr %7, align 8
br label %14
14: ; preds = %76, %3
%15 = load ptr, ptr %7, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %17, label %23
17: ; preds = %14
%18 = load ptr, ptr %7, align 8
%19 = getelementptr inbounds i8, ptr %18, i64 0
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %21, 0
br label %23
23: ; preds = %17, %14
%24 = phi i1 [ false, %14 ], [ %22, %17 ]
br i1 %24, label %25, label %78
25: ; preds = %23
%26 = load ptr, ptr %7, align 8
%27 = call i32 @in_string(ptr noundef %26, ptr noundef @.str.1)
store i32 %27, ptr %9, align 4
%28 = load i32, ptr %9, align 4
%29 = icmp sle i32 %28, 0
br i1 %29, label %30, label %43
30: ; preds = %25
%31 = load i32, ptr %8, align 4
%32 = load i32, ptr %5, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %34, label %42
34: ; preds = %30
%35 = load ptr, ptr %7, align 8
%36 = call i32 @atoi(ptr noundef %35)
%37 = load ptr, ptr %4, align 8
%38 = load i32, ptr %8, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %8, align 4
%40 = sext i32 %38 to i64
%41 = getelementptr inbounds i32, ptr %37, i64 %40
store i32 %36, ptr %41, align 4
br label %42
42: ; preds = %34, %30
br label %76
43: ; preds = %25
%44 = load ptr, ptr %7, align 8
%45 = call i32 @strcpy(ptr noundef @range_to_iarray.nbuf, ptr noundef %44)
%46 = load i32, ptr %9, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [256 x i8], ptr @range_to_iarray.nbuf, i64 0, i64 %47
store i8 0, ptr %48, align 1
%49 = call i32 @atoi(ptr noundef @range_to_iarray.nbuf)
store i32 %49, ptr %10, align 4
%50 = load i32, ptr %9, align 4
%51 = add nsw i32 %50, 1
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [256 x i8], ptr @range_to_iarray.nbuf, i64 0, i64 %52
%54 = call i32 @atoi(ptr noundef %53)
store i32 %54, ptr %11, align 4
%55 = load i32, ptr %10, align 4
store i32 %55, ptr %9, align 4
br label %56
56: ; preds = %72, %43
%57 = load i32, ptr %9, align 4
%58 = load i32, ptr %11, align 4
%59 = icmp sle i32 %57, %58
br i1 %59, label %60, label %75
60: ; preds = %56
%61 = load i32, ptr %8, align 4
%62 = load i32, ptr %5, align 4
%63 = icmp slt i32 %61, %62
br i1 %63, label %64, label %71
64: ; preds = %60
%65 = load i32, ptr %9, align 4
%66 = load ptr, ptr %4, align 8
%67 = load i32, ptr %8, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %8, align 4
%69 = sext i32 %67 to i64
%70 = getelementptr inbounds i32, ptr %66, i64 %69
store i32 %65, ptr %70, align 4
br label %71
71: ; preds = %64, %60
br label %72
72: ; preds = %71
%73 = load i32, ptr %9, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %9, align 4
br label %56, !llvm.loop !6
75: ; preds = %56
br label %76
76: ; preds = %75, %42
%77 = call ptr @strtok(ptr noundef null, ptr noundef @.str)
store ptr %77, ptr %7, align 8
br label %14, !llvm.loop !8
78: ; preds = %23
%79 = load i32, ptr %8, align 4
ret i32 %79
}
declare ptr @strtok(ptr noundef, ptr noundef) #1
declare i32 @in_string(ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpju_kh20z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@range_to_iarray.nbuf = internal global [256 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [4 x i8] c", \09\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"-\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @range_to_iarray(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
store i32 0, ptr %8, align 4
%12 = load ptr, ptr %6, align 8
%13 = call ptr @strtok(ptr noundef %12, ptr noundef @.str)
store ptr %13, ptr %7, align 8
br label %14
14: ; preds = %78, %3
%15 = load ptr, ptr %7, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %17, label %23
17: ; preds = %14
%18 = load ptr, ptr %7, align 8
%19 = getelementptr inbounds i8, ptr %18, i64 0
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %21, 0
br label %23
23: ; preds = %17, %14
%24 = phi i1 [ false, %14 ], [ %22, %17 ]
br i1 %24, label %25, label %80
25: ; preds = %23
%26 = load ptr, ptr %7, align 8
%27 = call i32 @in_string(ptr noundef %26, ptr noundef @.str.1)
store i32 %27, ptr %9, align 4
%28 = load i32, ptr %9, align 4
%29 = icmp sle i32 %28, 0
br i1 %29, label %30, label %43
30: ; preds = %25
%31 = load i32, ptr %8, align 4
%32 = load i32, ptr %5, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %34, label %42
34: ; preds = %30
%35 = load ptr, ptr %7, align 8
%36 = call i32 @atoi(ptr noundef %35)
%37 = load ptr, ptr %4, align 8
%38 = load i32, ptr %8, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %8, align 4
%40 = sext i32 %38 to i64
%41 = getelementptr inbounds i32, ptr %37, i64 %40
store i32 %36, ptr %41, align 4
br label %42
42: ; preds = %34, %30
br label %78
43: ; preds = %25
%44 = load ptr, ptr %7, align 8
%45 = call i32 @strcpy(ptr noundef @range_to_iarray.nbuf, ptr noundef %44)
%46 = load i32, ptr %9, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [256 x i8], ptr @range_to_iarray.nbuf, i64 0, i64 %47
store i8 0, ptr %48, align 1
%49 = call i32 @atoi(ptr noundef @range_to_iarray.nbuf)
store i32 %49, ptr %10, align 4
%50 = load i32, ptr %9, align 4
%51 = add nsw i32 %50, 1
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [256 x i8], ptr @range_to_iarray.nbuf, i64 0, i64 %52
%54 = call i32 @atoi(ptr noundef %53)
store i32 %54, ptr %11, align 4
%55 = load i32, ptr %10, align 4
store i32 %55, ptr %9, align 4
%56 = load i32, ptr %9, align 4
%57 = load i32, ptr %11, align 4
%58 = icmp sle i32 %56, %57
br i1 %58, label %.lr.ph, label %77
.lr.ph: ; preds = %43
br label %59
59: ; preds = %.lr.ph, %71
%60 = load i32, ptr %8, align 4
%61 = load i32, ptr %5, align 4
%62 = icmp slt i32 %60, %61
br i1 %62, label %63, label %70
63: ; preds = %59
%64 = load i32, ptr %9, align 4
%65 = load ptr, ptr %4, align 8
%66 = load i32, ptr %8, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %8, align 4
%68 = sext i32 %66 to i64
%69 = getelementptr inbounds i32, ptr %65, i64 %68
store i32 %64, ptr %69, align 4
br label %70
70: ; preds = %63, %59
br label %71
71: ; preds = %70
%72 = load i32, ptr %9, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %9, align 4
%74 = load i32, ptr %9, align 4
%75 = load i32, ptr %11, align 4
%76 = icmp sle i32 %74, %75
br i1 %76, label %59, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %71
br label %77
77: ; preds = %._crit_edge, %43
br label %78
78: ; preds = %77, %42
%79 = call ptr @strtok(ptr noundef null, ptr noundef @.str)
store ptr %79, ptr %7, align 8
br label %14, !llvm.loop !8
80: ; preds = %23
%81 = load i32, ptr %8, align 4
ret i32 %81
}
declare ptr @strtok(ptr noundef, ptr noundef) #1
declare i32 @in_string(ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpx9c4oldo.c'
source_filename = "/tmp/tmpx9c4oldo.c"
target datalayout = "e-m:e-p270: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/tmpx9c4oldo.c"
target datalayout = "e-m:e-p270: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/tmp_l06uuvw.c'
source_filename = "/tmp/tmp_l06uuvw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter amount of loan: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"Enter interest rate: \00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"Enter monthly payment: \00", align 1
@.str.4 = private unnamed_addr constant [44 x i8] c"Balance remaining after 1st payment: $%.2f\0A\00", align 1
@.str.5 = private unnamed_addr constant [44 x i8] c"Balance remaining after 2nd payment: $%.2f\0A\00", align 1
@.str.6 = private unnamed_addr constant [44 x i8] c"Balance remaining after 3rd payment: $%.2f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%11 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %4)
%12 = load float, ptr %3, align 4
%13 = fdiv float %12, 1.000000e+02
%14 = fdiv float %13, 1.200000e+01
store float %14, ptr %5, align 4
%15 = load float, ptr %2, align 4
%16 = load float, ptr %4, align 4
%17 = fsub float %15, %16
%18 = load float, ptr %2, align 4
%19 = load float, ptr %5, align 4
%20 = call float @llvm.fmuladd.f32(float %18, float %19, float %17)
store float %20, ptr %2, align 4
%21 = load float, ptr %2, align 4
%22 = fpext float %21 to double
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %22)
%24 = load float, ptr %2, align 4
%25 = load float, ptr %4, align 4
%26 = fsub float %24, %25
%27 = load float, ptr %2, align 4
%28 = load float, ptr %5, align 4
%29 = call float @llvm.fmuladd.f32(float %27, float %28, float %26)
store float %29, ptr %2, align 4
%30 = load float, ptr %2, align 4
%31 = fpext float %30 to double
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %31)
%33 = load float, ptr %2, align 4
%34 = load float, ptr %4, align 4
%35 = fsub float %33, %34
%36 = load float, ptr %2, align 4
%37 = load float, ptr %5, align 4
%38 = call float @llvm.fmuladd.f32(float %36, float %37, float %35)
store float %38, ptr %2, align 4
%39 = load float, ptr %2, align 4
%40 = fpext float %39 to double
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %40)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_l06uuvw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter amount of loan: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"Enter interest rate: \00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"Enter monthly payment: \00", align 1
@.str.4 = private unnamed_addr constant [44 x i8] c"Balance remaining after 1st payment: $%.2f\0A\00", align 1
@.str.5 = private unnamed_addr constant [44 x i8] c"Balance remaining after 2nd payment: $%.2f\0A\00", align 1
@.str.6 = private unnamed_addr constant [44 x i8] c"Balance remaining after 3rd payment: $%.2f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%11 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %4)
%12 = load float, ptr %3, align 4
%13 = fdiv float %12, 1.000000e+02
%14 = fdiv float %13, 1.200000e+01
store float %14, ptr %5, align 4
%15 = load float, ptr %2, align 4
%16 = load float, ptr %4, align 4
%17 = fsub float %15, %16
%18 = load float, ptr %2, align 4
%19 = load float, ptr %5, align 4
%20 = call float @llvm.fmuladd.f32(float %18, float %19, float %17)
store float %20, ptr %2, align 4
%21 = load float, ptr %2, align 4
%22 = fpext float %21 to double
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %22)
%24 = load float, ptr %2, align 4
%25 = load float, ptr %4, align 4
%26 = fsub float %24, %25
%27 = load float, ptr %2, align 4
%28 = load float, ptr %5, align 4
%29 = call float @llvm.fmuladd.f32(float %27, float %28, float %26)
store float %29, ptr %2, align 4
%30 = load float, ptr %2, align 4
%31 = fpext float %30 to double
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %31)
%33 = load float, ptr %2, align 4
%34 = load float, ptr %4, align 4
%35 = fsub float %33, %34
%36 = load float, ptr %2, align 4
%37 = load float, ptr %5, align 4
%38 = call float @llvm.fmuladd.f32(float %36, float %37, float %35)
store float %38, ptr %2, align 4
%39 = load float, ptr %2, align 4
%40 = fpext float %39 to double
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %40)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4kz6q5d1.c'
source_filename = "/tmp/tmp4kz6q5d1.c"
target datalayout = "e-m:e-p270: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/tmp4kz6q5d1.c"
target datalayout = "e-m:e-p270: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/tmp5f65lou7.c'
source_filename = "/tmp/tmp5f65lou7.c"
target datalayout = "e-m:e-p270: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/tmp5f65lou7.c"
target datalayout = "e-m:e-p270: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/tmpe9kyofis.c'
source_filename = "/tmp/tmpe9kyofis.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Hell\00o, World!\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"Hello, World!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca 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 ptr @.str, ptr %6, align 8
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%8 = load ptr, ptr %6, align 8
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %8)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe9kyofis.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Hell\00o, World!\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"Hello, World!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca 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 ptr @.str, ptr %6, align 8
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%8 = load ptr, ptr %6, align 8
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %8)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7uy0vobg.c'
source_filename = "/tmp/tmp7uy0vobg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDONLY = dso_local global i32 0, align 4
@PIPE_BUF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [34 x i8] c"Process %d opening FIFO O_RDONLY\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"/tmp/my_fifo\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"Pr\D0\BE\D1\81\D0\B5ss %d result %d\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [36 x i8] c"Process %d finished, %d bytes read\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 i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = load i32, ptr @O_RDONLY, align 4
store i32 %8, ptr %4, align 4
%9 = load i32, ptr @PIPE_BUF, align 4
%10 = sub 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 %7, align 4
%14 = trunc i64 %11 to i32
%15 = call i32 @memset(ptr noundef %13, i8 noundef signext 0, i32 noundef %14)
%16 = call i32 (...) @getpid()
%17 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %16)
%18 = load i32, ptr %4, align 4
%19 = call i32 @open(ptr noundef @.str.1, i32 noundef %18)
store i32 %19, ptr %2, align 4
%20 = call i32 (...) @getpid()
%21 = load i32, ptr %2, align 4
%22 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %20, i32 noundef %21)
%23 = load i32, ptr %2, align 4
%24 = icmp ne i32 %23, -1
br i1 %24, label %25, label %39
25: ; preds = %0
br label %26
26: ; preds = %33, %25
%27 = load i32, ptr %2, align 4
%28 = load i32, ptr @PIPE_BUF, align 4
%29 = call i32 @read(i32 noundef %27, ptr noundef %13, i32 noundef %28)
store i32 %29, ptr %3, align 4
%30 = load i32, ptr %3, align 4
%31 = load i32, ptr %7, align 4
%32 = add nsw i32 %31, %30
store i32 %32, ptr %7, align 4
br label %33
33: ; preds = %26
%34 = load i32, ptr %3, align 4
%35 = icmp sgt i32 %34, 0
br i1 %35, label %26, label %36, !llvm.loop !6
36: ; preds = %33
%37 = load i32, ptr %2, align 4
%38 = call i32 @close(i32 noundef %37)
br label %42
39: ; preds = %0
%40 = load i32, ptr @EXIT_FAILURE, align 4
%41 = call i32 @exit(i32 noundef %40) #4
unreachable
42: ; preds = %36
%43 = call i32 (...) @getpid()
%44 = load i32, ptr %7, align 4
%45 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.3, i32 noundef %43, i32 noundef %44)
%46 = load i32, ptr @EXIT_SUCCESS, align 4
%47 = call i32 @exit(i32 noundef %46) #4
unreachable
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #2
declare i32 @printf(ptr noundef, i32 noundef, ...) #2
declare i32 @getpid(...) #2
declare i32 @open(ptr noundef, i32 noundef) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @close(i32 noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7uy0vobg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDONLY = dso_local global i32 0, align 4
@PIPE_BUF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [34 x i8] c"Process %d opening FIFO O_RDONLY\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"/tmp/my_fifo\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"Pr\D0\BE\D1\81\D0\B5ss %d result %d\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [36 x i8] c"Process %d finished, %d bytes read\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 i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = load i32, ptr @O_RDONLY, align 4
store i32 %8, ptr %4, align 4
%9 = load i32, ptr @PIPE_BUF, align 4
%10 = sub 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 %7, align 4
%14 = trunc i64 %11 to i32
%15 = call i32 @memset(ptr noundef %13, i8 noundef signext 0, i32 noundef %14)
%16 = call i32 (...) @getpid()
%17 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %16)
%18 = load i32, ptr %4, align 4
%19 = call i32 @open(ptr noundef @.str.1, i32 noundef %18)
store i32 %19, ptr %2, align 4
%20 = call i32 (...) @getpid()
%21 = load i32, ptr %2, align 4
%22 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %20, i32 noundef %21)
%23 = load i32, ptr %2, align 4
%24 = icmp ne i32 %23, -1
br i1 %24, label %25, label %39
25: ; preds = %0
br label %26
26: ; preds = %33, %25
%27 = load i32, ptr %2, align 4
%28 = load i32, ptr @PIPE_BUF, align 4
%29 = call i32 @read(i32 noundef %27, ptr noundef %13, i32 noundef %28)
store i32 %29, ptr %3, align 4
%30 = load i32, ptr %3, align 4
%31 = load i32, ptr %7, align 4
%32 = add nsw i32 %31, %30
store i32 %32, ptr %7, align 4
br label %33
33: ; preds = %26
%34 = load i32, ptr %3, align 4
%35 = icmp sgt i32 %34, 0
br i1 %35, label %26, label %36, !llvm.loop !6
36: ; preds = %33
%37 = load i32, ptr %2, align 4
%38 = call i32 @close(i32 noundef %37)
br label %42
39: ; preds = %0
%40 = load i32, ptr @EXIT_FAILURE, align 4
%41 = call i32 @exit(i32 noundef %40) #4
unreachable
42: ; preds = %36
%43 = call i32 (...) @getpid()
%44 = load i32, ptr %7, align 4
%45 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.3, i32 noundef %43, i32 noundef %44)
%46 = load i32, ptr @EXIT_SUCCESS, align 4
%47 = call i32 @exit(i32 noundef %46) #4
unreachable
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #2
declare i32 @printf(ptr noundef, i32 noundef, ...) #2
declare i32 @getpid(...) #2
declare i32 @open(ptr noundef, i32 noundef) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @close(i32 noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpma95na79.c'
source_filename = "/tmp/tmpma95na79.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"failed to open directory\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @open_dir(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call ptr @opendir(ptr noundef %4)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %12, label %8
8: ; preds = %1
%9 = load i32, ptr @errno, align 4
%10 = load ptr, ptr %2, align 8
%11 = call i32 @err(ptr noundef @.str, i32 noundef %9, ptr noundef %10)
br label %12
12: ; preds = %8, %1
%13 = load ptr, ptr %3, align 8
ret ptr %13
}
declare ptr @opendir(ptr noundef) #1
declare i32 @err(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/tmpma95na79.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"failed to open directory\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @open_dir(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call ptr @opendir(ptr noundef %4)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %12, label %8
8: ; preds = %1
%9 = load i32, ptr @errno, align 4
%10 = load ptr, ptr %2, align 8
%11 = call i32 @err(ptr noundef @.str, i32 noundef %9, ptr noundef %10)
br label %12
12: ; preds = %8, %1
%13 = load ptr, ptr %3, align 8
ret ptr %13
}
declare ptr @opendir(ptr noundef) #1
declare i32 @err(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/tmplxul539u.c'
source_filename = "/tmp/tmplxul539u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bmgs_paste(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%13 = load ptr, ptr %10, align 8
%14 = getelementptr inbounds i32, ptr %13, i64 2
%15 = load i32, ptr %14, align 4
%16 = load ptr, ptr %10, align 8
%17 = getelementptr inbounds i32, ptr %16, i64 1
%18 = load i32, ptr %17, align 4
%19 = load ptr, ptr %10, align 8
%20 = getelementptr inbounds i32, ptr %19, i64 0
%21 = load i32, ptr %20, align 4
%22 = load ptr, ptr %9, align 8
%23 = getelementptr inbounds i32, ptr %22, i64 1
%24 = load i32, ptr %23, align 4
%25 = mul nsw i32 %21, %24
%26 = add nsw i32 %18, %25
%27 = load ptr, ptr %9, align 8
%28 = getelementptr inbounds i32, ptr %27, i64 2
%29 = load i32, ptr %28, align 4
%30 = mul nsw i32 %26, %29
%31 = add nsw i32 %15, %30
%32 = load ptr, ptr %8, align 8
%33 = sext i32 %31 to i64
%34 = getelementptr inbounds double, ptr %32, i64 %33
store ptr %34, ptr %8, align 8
store i32 0, ptr %11, align 4
br label %35
35: ; preds = %88, %5
%36 = load i32, ptr %11, align 4
%37 = load ptr, ptr %7, align 8
%38 = getelementptr inbounds i32, ptr %37, i64 0
%39 = load i32, ptr %38, align 4
%40 = icmp slt i32 %36, %39
br i1 %40, label %41, label %91
41: ; preds = %35
store i32 0, ptr %12, align 4
br label %42
42: ; preds = %70, %41
%43 = load i32, ptr %12, align 4
%44 = load ptr, ptr %7, align 8
%45 = getelementptr inbounds i32, ptr %44, i64 1
%46 = load i32, ptr %45, align 4
%47 = icmp slt i32 %43, %46
br i1 %47, label %48, label %73
48: ; preds = %42
%49 = load ptr, ptr %8, align 8
%50 = load ptr, ptr %6, align 8
%51 = load ptr, ptr %7, align 8
%52 = getelementptr inbounds i32, ptr %51, i64 2
%53 = load i32, ptr %52, align 4
%54 = sext i32 %53 to i64
%55 = mul i64 %54, 8
%56 = trunc i64 %55 to i32
%57 = call i32 @memcpy(ptr noundef %49, ptr noundef %50, i32 noundef %56)
%58 = load ptr, ptr %7, align 8
%59 = getelementptr inbounds i32, ptr %58, i64 2
%60 = load i32, ptr %59, align 4
%61 = load ptr, ptr %6, align 8
%62 = sext i32 %60 to i64
%63 = getelementptr inbounds double, ptr %61, i64 %62
store ptr %63, ptr %6, align 8
%64 = load ptr, ptr %9, align 8
%65 = getelementptr inbounds i32, ptr %64, i64 2
%66 = load i32, ptr %65, align 4
%67 = load ptr, ptr %8, align 8
%68 = sext i32 %66 to i64
%69 = getelementptr inbounds double, ptr %67, i64 %68
store ptr %69, ptr %8, align 8
br label %70
70: ; preds = %48
%71 = load i32, ptr %12, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %12, align 4
br label %42, !llvm.loop !6
73: ; preds = %42
%74 = load ptr, ptr %9, align 8
%75 = getelementptr inbounds i32, ptr %74, i64 2
%76 = load i32, ptr %75, align 4
%77 = load ptr, ptr %9, align 8
%78 = getelementptr inbounds i32, ptr %77, i64 1
%79 = load i32, ptr %78, align 4
%80 = load ptr, ptr %7, align 8
%81 = getelementptr inbounds i32, ptr %80, i64 1
%82 = load i32, ptr %81, align 4
%83 = sub nsw i32 %79, %82
%84 = mul nsw i32 %76, %83
%85 = load ptr, ptr %8, align 8
%86 = sext i32 %84 to i64
%87 = getelementptr inbounds double, ptr %85, i64 %86
store ptr %87, ptr %8, align 8
br label %88
88: ; preds = %73
%89 = load i32, ptr %11, align 4
%90 = add nsw i32 %89, 1
store i32 %90, ptr %11, align 4
br label %35, !llvm.loop !8
91: ; preds = %35
ret void
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplxul539u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bmgs_paste(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%13 = load ptr, ptr %10, align 8
%14 = getelementptr inbounds i32, ptr %13, i64 2
%15 = load i32, ptr %14, align 4
%16 = load ptr, ptr %10, align 8
%17 = getelementptr inbounds i32, ptr %16, i64 1
%18 = load i32, ptr %17, align 4
%19 = load ptr, ptr %10, align 8
%20 = getelementptr inbounds i32, ptr %19, i64 0
%21 = load i32, ptr %20, align 4
%22 = load ptr, ptr %9, align 8
%23 = getelementptr inbounds i32, ptr %22, i64 1
%24 = load i32, ptr %23, align 4
%25 = mul nsw i32 %21, %24
%26 = add nsw i32 %18, %25
%27 = load ptr, ptr %9, align 8
%28 = getelementptr inbounds i32, ptr %27, i64 2
%29 = load i32, ptr %28, align 4
%30 = mul nsw i32 %26, %29
%31 = add nsw i32 %15, %30
%32 = load ptr, ptr %8, align 8
%33 = sext i32 %31 to i64
%34 = getelementptr inbounds double, ptr %32, i64 %33
store ptr %34, ptr %8, align 8
store i32 0, ptr %11, align 4
%35 = load i32, ptr %11, align 4
%36 = load ptr, ptr %7, align 8
%37 = load i32, ptr %36, align 4
%38 = icmp slt i32 %35, %37
br i1 %38, label %.lr.ph2, label %98
.lr.ph2: ; preds = %5
br label %39
39: ; preds = %.lr.ph2, %90
store i32 0, ptr %12, align 4
%40 = load i32, ptr %12, align 4
%41 = load ptr, ptr %7, align 8
%42 = getelementptr inbounds i32, ptr %41, i64 1
%43 = load i32, ptr %42, align 4
%44 = icmp slt i32 %40, %43
br i1 %44, label %.lr.ph, label %75
.lr.ph: ; preds = %39
br label %45
45: ; preds = %.lr.ph, %67
%46 = load ptr, ptr %8, align 8
%47 = load ptr, ptr %6, align 8
%48 = load ptr, ptr %7, align 8
%49 = getelementptr inbounds i32, ptr %48, i64 2
%50 = load i32, ptr %49, align 4
%51 = sext i32 %50 to i64
%52 = mul i64 %51, 8
%53 = trunc i64 %52 to i32
%54 = call i32 @memcpy(ptr noundef %46, ptr noundef %47, i32 noundef %53)
%55 = load ptr, ptr %7, align 8
%56 = getelementptr inbounds i32, ptr %55, i64 2
%57 = load i32, ptr %56, align 4
%58 = load ptr, ptr %6, align 8
%59 = sext i32 %57 to i64
%60 = getelementptr inbounds double, ptr %58, i64 %59
store ptr %60, ptr %6, align 8
%61 = load ptr, ptr %9, align 8
%62 = getelementptr inbounds i32, ptr %61, i64 2
%63 = load i32, ptr %62, align 4
%64 = load ptr, ptr %8, align 8
%65 = sext i32 %63 to i64
%66 = getelementptr inbounds double, ptr %64, i64 %65
store ptr %66, ptr %8, align 8
br label %67
67: ; preds = %45
%68 = load i32, ptr %12, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %12, align 4
%70 = load i32, ptr %12, align 4
%71 = load ptr, ptr %7, align 8
%72 = getelementptr inbounds i32, ptr %71, i64 1
%73 = load i32, ptr %72, align 4
%74 = icmp slt i32 %70, %73
br i1 %74, label %45, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %67
br label %75
75: ; preds = %._crit_edge, %39
%76 = load ptr, ptr %9, align 8
%77 = getelementptr inbounds i32, ptr %76, i64 2
%78 = load i32, ptr %77, align 4
%79 = load ptr, ptr %9, align 8
%80 = getelementptr inbounds i32, ptr %79, i64 1
%81 = load i32, ptr %80, align 4
%82 = load ptr, ptr %7, align 8
%83 = getelementptr inbounds i32, ptr %82, i64 1
%84 = load i32, ptr %83, align 4
%85 = sub nsw i32 %81, %84
%86 = mul nsw i32 %78, %85
%87 = load ptr, ptr %8, align 8
%88 = sext i32 %86 to i64
%89 = getelementptr inbounds double, ptr %87, i64 %88
store ptr %89, ptr %8, align 8
br label %90
90: ; preds = %75
%91 = load i32, ptr %11, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %11, align 4
%93 = load i32, ptr %11, align 4
%94 = load ptr, ptr %7, align 8
%95 = getelementptr inbounds i32, ptr %94, i64 0
%96 = load i32, ptr %95, align 4
%97 = icmp slt i32 %93, %96
br i1 %97, label %39, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %90
br label %98
98: ; preds = %._crit_edge3, %5
ret void
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmptyb2rnkp.c'
source_filename = "/tmp/tmptyb2rnkp.c"
target datalayout = "e-m:e-p270: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/tmptyb2rnkp.c"
target datalayout = "e-m:e-p270: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/tmp41dtizbr.c'
source_filename = "/tmp/tmp41dtizbr.c"
target datalayout = "e-m:e-p270: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.hostent = type { i32 }
@.str = private unnamed_addr constant [10 x i8] c"localhost\00", align 1
@AF_INET = 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 %struct.hostent, align 4
%3 = alloca ptr, align 8
%4 = alloca [4096 x i8], align 16
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = load i32, ptr @AF_INET, align 4
%7 = getelementptr inbounds [4096 x i8], ptr %4, i64 0, i64 0
%8 = call i32 @gethostbyname2_r(ptr noundef @.str, i32 noundef %6, ptr noundef %2, ptr noundef %7, i32 noundef 4096, ptr noundef %3, ptr noundef %5)
%9 = load ptr, ptr %3, align 8
%10 = icmp eq ptr %9, null
%11 = zext i1 %10 to i32
ret i32 %11
}
declare i32 @gethostbyname2_r(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp41dtizbr.c"
target datalayout = "e-m:e-p270: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.hostent = type { i32 }
@.str = private unnamed_addr constant [10 x i8] c"localhost\00", align 1
@AF_INET = 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 %struct.hostent, align 4
%3 = alloca ptr, align 8
%4 = alloca [4096 x i8], align 16
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = load i32, ptr @AF_INET, align 4
%7 = getelementptr inbounds [4096 x i8], ptr %4, i64 0, i64 0
%8 = call i32 @gethostbyname2_r(ptr noundef @.str, i32 noundef %6, ptr noundef %2, ptr noundef %7, i32 noundef 4096, ptr noundef %3, ptr noundef %5)
%9 = load ptr, ptr %3, align 8
%10 = icmp eq ptr %9, null
%11 = zext i1 %10 to i32
ret i32 %11
}
declare i32 @gethostbyname2_r(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3ew37yc8.c'
source_filename = "/tmp/tmp3ew37yc8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pthread_mutex_unlock(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 @__LDMpthread_mutex_unlock(ptr noundef %3)
ret i32 %4
}
declare i32 @__LDMpthread_mutex_unlock(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/tmp3ew37yc8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pthread_mutex_unlock(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 @__LDMpthread_mutex_unlock(ptr noundef %3)
ret i32 %4
}
declare i32 @__LDMpthread_mutex_unlock(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/tmpzrz36vqu.c'
source_filename = "/tmp/tmpzrz36vqu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"/proc/loadavg\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"rbe\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"%lf %lf %lf\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getloadavg(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [3 x double], align 16
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%9 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %9, ptr %8, align 8
%10 = load ptr, ptr %8, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %13, label %12
12: ; preds = %2
store i32 -1, ptr %3, align 4
br label %41
13: ; preds = %2
%14 = load ptr, ptr %8, align 8
%15 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
%16 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
%17 = getelementptr inbounds double, ptr %16, i64 1
%18 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
%19 = getelementptr inbounds double, ptr %18, i64 2
%20 = call i32 @fscanf(ptr noundef %14, ptr noundef @.str.2, ptr noundef %15, ptr noundef %17, ptr noundef %19)
store i32 %20, ptr %6, align 4
%21 = load ptr, ptr %8, align 8
%22 = call i32 @fclose(ptr noundef %21)
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr %6, align 4
%25 = icmp sgt i32 %23, %24
br i1 %25, label %26, label %28
26: ; preds = %13
%27 = load i32, ptr %6, align 4
store i32 %27, ptr %5, align 4
br label %28
28: ; preds = %26, %13
%29 = load i32, ptr %5, align 4
%30 = icmp slt i32 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %28
store i32 -1, ptr %3, align 4
br label %41
32: ; preds = %28
%33 = load ptr, ptr %4, align 8
%34 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = mul i64 %36, 8
%38 = trunc i64 %37 to i32
%39 = call i32 @memcpy(ptr noundef %33, ptr noundef %34, i32 noundef %38)
%40 = load i32, ptr %5, align 4
store i32 %40, ptr %3, align 4
br label %41
41: ; preds = %32, %31, %12
%42 = load i32, ptr %3, align 4
ret i32 %42
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzrz36vqu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"/proc/loadavg\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"rbe\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"%lf %lf %lf\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getloadavg(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [3 x double], align 16
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%9 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %9, ptr %8, align 8
%10 = load ptr, ptr %8, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %13, label %12
12: ; preds = %2
store i32 -1, ptr %3, align 4
br label %41
13: ; preds = %2
%14 = load ptr, ptr %8, align 8
%15 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
%16 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
%17 = getelementptr inbounds double, ptr %16, i64 1
%18 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
%19 = getelementptr inbounds double, ptr %18, i64 2
%20 = call i32 @fscanf(ptr noundef %14, ptr noundef @.str.2, ptr noundef %15, ptr noundef %17, ptr noundef %19)
store i32 %20, ptr %6, align 4
%21 = load ptr, ptr %8, align 8
%22 = call i32 @fclose(ptr noundef %21)
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr %6, align 4
%25 = icmp sgt i32 %23, %24
br i1 %25, label %26, label %28
26: ; preds = %13
%27 = load i32, ptr %6, align 4
store i32 %27, ptr %5, align 4
br label %28
28: ; preds = %26, %13
%29 = load i32, ptr %5, align 4
%30 = icmp slt i32 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %28
store i32 -1, ptr %3, align 4
br label %41
32: ; preds = %28
%33 = load ptr, ptr %4, align 8
%34 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = mul i64 %36, 8
%38 = trunc i64 %37 to i32
%39 = call i32 @memcpy(ptr noundef %33, ptr noundef %34, i32 noundef %38)
%40 = load i32, ptr %5, align 4
store i32 %40, ptr %3, align 4
br label %41
41: ; preds = %32, %31, %12
%42 = load i32, ptr %3, align 4
ret i32 %42
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl9b4weu2.c'
source_filename = "/tmp/tmpl9b4weu2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"CMPGTDP.S1\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @C67_CMPGTDP(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 = load i32, ptr %4, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = call i32 @C67_asm(ptr noundef @.str, i32 noundef %7, i32 noundef %8, i32 noundef %9)
ret void
}
declare i32 @C67_asm(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl9b4weu2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"CMPGTDP.S1\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @C67_CMPGTDP(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 = load i32, ptr %4, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = call i32 @C67_asm(ptr noundef @.str, i32 noundef %7, i32 noundef %8, i32 noundef %9)
ret void
}
declare i32 @C67_asm(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp44vijld5.c'
source_filename = "/tmp/tmp44vijld5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [70 x i8] c"\0A[ENCRYPTING] Please specify the Ducking Key (do not lose this key): \00", align 1
@.str.1 = private unnamed_addr constant [66 x i8] c"\0A[REVERSING] Please specify the Ducking Key to unduck this file: \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.3 = private unnamed_addr constant [53 x i8] c"\0A[ PROCESSING ] Ducking file right here right now..\0A\00", align 1
@EOF = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.5 = private unnamed_addr constant [19 x i8] c"%d Bytes Can Fly!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Duckfile(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [64 x i8], align 16
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i8, align 1
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%15 = call i32 @time(ptr noundef null)
%16 = call i32 @srand(i32 noundef %15)
store i32 0, ptr %6, align 4
%17 = load ptr, ptr %3, align 8
%18 = call i32 @FileIsDucked(ptr noundef %17)
%19 = icmp ne i32 %18, 0
br i1 %19, label %22, label %20
20: ; preds = %2
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %6, align 4
br label %24
22: ; preds = %2
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %24
24: ; preds = %22, %20
%25 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 0
%26 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %25)
%27 = load i32, ptr %6, align 4
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %24
%30 = load ptr, ptr %4, align 8
%31 = call i32 @MarkFileAsDucked(ptr noundef %30)
br label %32
32: ; preds = %29, %24
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%34 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 0
%35 = call i32 @strlen(ptr noundef %34)
%36 = sext i32 %35 to i64
%37 = mul i64 4, %36
%38 = trunc i64 %37 to i32
%39 = call ptr @malloc(i32 noundef %38)
store ptr %39, ptr %7, align 8
%40 = load ptr, ptr %7, align 8
%41 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 0
%42 = call i32 @PopulateKeyholeArray(ptr noundef %40, ptr noundef %41)
store i32 0, ptr %8, align 4
br label %43
43: ; preds = %95, %32
%44 = load i32, ptr %9, align 4
%45 = load i32, ptr @EOF, align 4
%46 = icmp ne i32 %44, %45
br i1 %46, label %47, label %99
47: ; preds = %43
store i8 0, ptr %10, align 1
%48 = load ptr, ptr %3, align 8
%49 = call i32 @fgetc(ptr noundef %48)
store i32 %49, ptr %9, align 4
%50 = load i32, ptr %9, align 4
%51 = load i32, ptr @EOF, align 4
%52 = icmp eq i32 %50, %51
br i1 %52, label %53, label %54
53: ; preds = %47
br label %99
54: ; preds = %47
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
store i32 1, ptr %11, align 4
br label %55
55: ; preds = %92, %54
%56 = load i32, ptr %11, align 4
%57 = icmp sle i32 %56, 8
br i1 %57, label %58, label %95
58: ; preds = %55
%59 = load i32, ptr %8, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %8, align 4
%61 = load i32, ptr %11, align 4
%62 = load i32, ptr %9, align 4
%63 = call i32 @getBitFromByte(i32 noundef %61, i32 noundef %62)
store i32 %63, ptr %13, align 4
%64 = load ptr, ptr %7, align 8
%65 = load i32, ptr %12, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i32, ptr %64, i64 %66
%68 = load i32, ptr %67, align 4
store i32 %68, ptr %14, align 4
%69 = load i32, ptr %14, align 4
%70 = icmp ne i32 %69, 0
br i1 %70, label %71, label %79
71: ; preds = %58
%72 = load i8, ptr %10, align 1
%73 = load i32, ptr %13, align 4
%74 = icmp eq i32 %73, 0
%75 = zext i1 %74 to i64
%76 = select i1 %74, i32 1, i32 0
%77 = load i32, ptr %11, align 4
%78 = call zeroext i8 @FillBit(i8 noundef zeroext %72, i32 noundef %76, i32 noundef %77)
store i8 %78, ptr %10, align 1
br label %84
79: ; preds = %58
%80 = load i8, ptr %10, align 1
%81 = load i32, ptr %13, align 4
%82 = load i32, ptr %11, align 4
%83 = call zeroext i8 @FillBit(i8 noundef zeroext %80, i32 noundef %81, i32 noundef %82)
store i8 %83, ptr %10, align 1
br label %84
84: ; preds = %79, %71
%85 = load i32, ptr %11, align 4
store i32 %85, ptr %12, align 4
%86 = load i32, ptr %12, align 4
%87 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 0
%88 = call i32 @strlen(ptr noundef %87)
%89 = icmp sgt i32 %86, %88
br i1 %89, label %90, label %91
90: ; preds = %84
store i32 0, ptr %12, align 4
br label %91
91: ; preds = %90, %84
br label %92
92: ; preds = %91
%93 = load i32, ptr %11, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %11, align 4
br label %55, !llvm.loop !6
95: ; preds = %55
%96 = load i8, ptr %10, align 1
%97 = load ptr, ptr %4, align 8
%98 = call i32 @fputc(i8 noundef zeroext %96, ptr noundef %97)
br label %43, !llvm.loop !8
99: ; preds = %53, %43
%100 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%101 = load i32, ptr %8, align 4
%102 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %101)
%103 = load i32, ptr %6, align 4
ret i32 %103
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @FileIsDucked(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @MarkFileAsDucked(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @PopulateKeyholeArray(ptr noundef, ptr noundef) #1
declare i32 @fgetc(ptr noundef) #1
declare i32 @getBitFromByte(i32 noundef, i32 noundef) #1
declare zeroext i8 @FillBit(i8 noundef zeroext, i32 noundef, i32 noundef) #1
declare i32 @fputc(i8 noundef zeroext, 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/tmp44vijld5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [70 x i8] c"\0A[ENCRYPTING] Please specify the Ducking Key (do not lose this key): \00", align 1
@.str.1 = private unnamed_addr constant [66 x i8] c"\0A[REVERSING] Please specify the Ducking Key to unduck this file: \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.3 = private unnamed_addr constant [53 x i8] c"\0A[ PROCESSING ] Ducking file right here right now..\0A\00", align 1
@EOF = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.5 = private unnamed_addr constant [19 x i8] c"%d Bytes Can Fly!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Duckfile(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [64 x i8], align 16
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i8, align 1
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%15 = call i32 @time(ptr noundef null)
%16 = call i32 @srand(i32 noundef %15)
store i32 0, ptr %6, align 4
%17 = load ptr, ptr %3, align 8
%18 = call i32 @FileIsDucked(ptr noundef %17)
%19 = icmp ne i32 %18, 0
br i1 %19, label %22, label %20
20: ; preds = %2
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %6, align 4
br label %24
22: ; preds = %2
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %24
24: ; preds = %22, %20
%25 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 0
%26 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %25)
%27 = load i32, ptr %6, align 4
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %24
%30 = load ptr, ptr %4, align 8
%31 = call i32 @MarkFileAsDucked(ptr noundef %30)
br label %32
32: ; preds = %29, %24
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%34 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 0
%35 = call i32 @strlen(ptr noundef %34)
%36 = sext i32 %35 to i64
%37 = mul i64 4, %36
%38 = trunc i64 %37 to i32
%39 = call ptr @malloc(i32 noundef %38)
store ptr %39, ptr %7, align 8
%40 = load ptr, ptr %7, align 8
%41 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 0
%42 = call i32 @PopulateKeyholeArray(ptr noundef %40, ptr noundef %41)
store i32 0, ptr %8, align 4
%43 = load i32, ptr %9, align 4
%44 = load i32, ptr @EOF, align 4
%45 = icmp ne i32 %43, %44
br i1 %45, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %32
br label %46
46: ; preds = %.lr.ph2, %95
store i8 0, ptr %10, align 1
%47 = load ptr, ptr %3, align 8
%48 = call i32 @fgetc(ptr noundef %47)
store i32 %48, ptr %9, align 4
%49 = load i32, ptr %9, align 4
%50 = load i32, ptr @EOF, align 4
%51 = icmp eq i32 %49, %50
br i1 %51, label %52, label %53
52: ; preds = %46
br label %102
53: ; preds = %46
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
store i32 1, ptr %11, align 4
%54 = load i32, ptr %11, align 4
%55 = icmp sle i32 %54, 8
br i1 %55, label %.lr.ph, label %95
.lr.ph: ; preds = %53
br label %56
56: ; preds = %.lr.ph, %90
%57 = load i32, ptr %8, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %8, align 4
%59 = load i32, ptr %11, align 4
%60 = load i32, ptr %9, align 4
%61 = call i32 @getBitFromByte(i32 noundef %59, i32 noundef %60)
store i32 %61, ptr %13, align 4
%62 = load ptr, ptr %7, align 8
%63 = load i32, ptr %12, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i32, ptr %62, i64 %64
%66 = load i32, ptr %65, align 4
store i32 %66, ptr %14, align 4
%67 = load i32, ptr %14, align 4
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %77
69: ; preds = %56
%70 = load i8, ptr %10, align 1
%71 = load i32, ptr %13, align 4
%72 = icmp eq i32 %71, 0
%73 = zext i1 %72 to i64
%74 = select i1 %72, i32 1, i32 0
%75 = load i32, ptr %11, align 4
%76 = call zeroext i8 @FillBit(i8 noundef zeroext %70, i32 noundef %74, i32 noundef %75)
store i8 %76, ptr %10, align 1
br label %82
77: ; preds = %56
%78 = load i8, ptr %10, align 1
%79 = load i32, ptr %13, align 4
%80 = load i32, ptr %11, align 4
%81 = call zeroext i8 @FillBit(i8 noundef zeroext %78, i32 noundef %79, i32 noundef %80)
store i8 %81, ptr %10, align 1
br label %82
82: ; preds = %77, %69
%83 = load i32, ptr %11, align 4
store i32 %83, ptr %12, align 4
%84 = load i32, ptr %12, align 4
%85 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 0
%86 = call i32 @strlen(ptr noundef %85)
%87 = icmp sgt i32 %84, %86
br i1 %87, label %88, label %89
88: ; preds = %82
store i32 0, ptr %12, align 4
br label %89
89: ; preds = %88, %82
br label %90
90: ; preds = %89
%91 = load i32, ptr %11, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %11, align 4
%93 = load i32, ptr %11, align 4
%94 = icmp sle i32 %93, 8
br i1 %94, label %56, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %90
br label %95
95: ; preds = %._crit_edge, %53
%96 = load i8, ptr %10, align 1
%97 = load ptr, ptr %4, align 8
%98 = call i32 @fputc(i8 noundef zeroext %96, ptr noundef %97)
%99 = load i32, ptr %9, align 4
%100 = load i32, ptr @EOF, align 4
%101 = icmp ne i32 %99, %100
br i1 %101, label %46, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %95
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %32
br label %102
102: ; preds = %.loopexit, %52
%103 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%104 = load i32, ptr %8, align 4
%105 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %104)
%106 = load i32, ptr %6, align 4
ret i32 %106
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @FileIsDucked(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @MarkFileAsDucked(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @PopulateKeyholeArray(ptr noundef, ptr noundef) #1
declare i32 @fgetc(ptr noundef) #1
declare i32 @getBitFromByte(i32 noundef, i32 noundef) #1
declare zeroext i8 @FillBit(i8 noundef zeroext, i32 noundef, i32 noundef) #1
declare i32 @fputc(i8 noundef zeroext, 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/tmpbcdrq0a5.c'
source_filename = "/tmp/tmpbcdrq0a5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bookRessources(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
%15 = load ptr, ptr %7, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %30, label %17
17: ; preds = %5
%18 = load i32, ptr %8, align 4
%19 = icmp sle i32 %18, 0
br i1 %19, label %30, label %20
20: ; preds = %17
%21 = load i32, ptr %10, align 4
%22 = icmp sle i32 %21, 0
br i1 %22, label %30, label %23
23: ; preds = %20
%24 = load i32, ptr %10, align 4
%25 = load i32, ptr %8, align 4
%26 = icmp sgt i32 %24, %25
br i1 %26, label %30, label %27
27: ; preds = %23
%28 = load ptr, ptr %9, align 8
%29 = icmp eq ptr %28, null
br i1 %29, label %30, label %31
30: ; preds = %27, %23, %20, %17, %5
store i32 0, ptr %6, align 4
br label %74
31: ; preds = %27
%32 = load ptr, ptr %7, align 8
%33 = load i32, ptr %8, align 4
%34 = load i32, ptr %10, align 4
%35 = call i32 @checkRessources(ptr noundef %32, i32 noundef %33, i32 noundef %34)
store i32 %35, ptr %12, align 4
%36 = icmp ne i32 %35, 1
br i1 %36, label %37, label %39
37: ; preds = %31
%38 = load i32, ptr %12, align 4
store i32 %38, ptr %6, align 4
br label %74
39: ; preds = %31
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
br label %40
40: ; preds = %70, %39
%41 = load i32, ptr %13, align 4
%42 = load i32, ptr %8, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %44, label %48
44: ; preds = %40
%45 = load i32, ptr %14, align 4
%46 = load i32, ptr %10, align 4
%47 = icmp slt i32 %45, %46
br label %48
48: ; preds = %44, %40
%49 = phi i1 [ false, %40 ], [ %47, %44 ]
br i1 %49, label %50, label %73
50: ; preds = %48
%51 = load ptr, ptr %7, align 8
%52 = load i32, ptr %13, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i32, ptr %51, i64 %53
%55 = load i32, ptr %54, align 4
%56 = icmp eq i32 %55, -1
br i1 %56, label %57, label %69
57: ; preds = %50
%58 = load i32, ptr %11, align 4
%59 = load ptr, ptr %7, align 8
%60 = load i32, ptr %13, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i32, ptr %59, i64 %61
store i32 %58, ptr %62, align 4
%63 = load i32, ptr %13, align 4
%64 = load ptr, ptr %9, align 8
%65 = load i32, ptr %14, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %14, align 4
%67 = sext i32 %65 to i64
%68 = getelementptr inbounds i32, ptr %64, i64 %67
store i32 %63, ptr %68, align 4
br label %69
69: ; preds = %57, %50
br label %70
70: ; preds = %69
%71 = load i32, ptr %13, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %13, align 4
br label %40, !llvm.loop !6
73: ; preds = %48
store i32 1, ptr %6, align 4
br label %74
74: ; preds = %73, %37, %30
%75 = load i32, ptr %6, align 4
ret i32 %75
}
declare i32 @checkRessources(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbcdrq0a5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bookRessources(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
%15 = load ptr, ptr %7, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %30, label %17
17: ; preds = %5
%18 = load i32, ptr %8, align 4
%19 = icmp sle i32 %18, 0
br i1 %19, label %30, label %20
20: ; preds = %17
%21 = load i32, ptr %10, align 4
%22 = icmp sle i32 %21, 0
br i1 %22, label %30, label %23
23: ; preds = %20
%24 = load i32, ptr %10, align 4
%25 = load i32, ptr %8, align 4
%26 = icmp sgt i32 %24, %25
br i1 %26, label %30, label %27
27: ; preds = %23
%28 = load ptr, ptr %9, align 8
%29 = icmp eq ptr %28, null
br i1 %29, label %30, label %31
30: ; preds = %27, %23, %20, %17, %5
store i32 0, ptr %6, align 4
br label %74
31: ; preds = %27
%32 = load ptr, ptr %7, align 8
%33 = load i32, ptr %8, align 4
%34 = load i32, ptr %10, align 4
%35 = call i32 @checkRessources(ptr noundef %32, i32 noundef %33, i32 noundef %34)
store i32 %35, ptr %12, align 4
%36 = icmp ne i32 %35, 1
br i1 %36, label %37, label %39
37: ; preds = %31
%38 = load i32, ptr %12, align 4
store i32 %38, ptr %6, align 4
br label %74
39: ; preds = %31
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
br label %40
40: ; preds = %70, %39
%41 = load i32, ptr %13, align 4
%42 = load i32, ptr %8, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %44, label %48
44: ; preds = %40
%45 = load i32, ptr %14, align 4
%46 = load i32, ptr %10, align 4
%47 = icmp slt i32 %45, %46
br label %48
48: ; preds = %44, %40
%49 = phi i1 [ false, %40 ], [ %47, %44 ]
br i1 %49, label %50, label %73
50: ; preds = %48
%51 = load ptr, ptr %7, align 8
%52 = load i32, ptr %13, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i32, ptr %51, i64 %53
%55 = load i32, ptr %54, align 4
%56 = icmp eq i32 %55, -1
br i1 %56, label %57, label %69
57: ; preds = %50
%58 = load i32, ptr %11, align 4
%59 = load ptr, ptr %7, align 8
%60 = load i32, ptr %13, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i32, ptr %59, i64 %61
store i32 %58, ptr %62, align 4
%63 = load i32, ptr %13, align 4
%64 = load ptr, ptr %9, align 8
%65 = load i32, ptr %14, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %14, align 4
%67 = sext i32 %65 to i64
%68 = getelementptr inbounds i32, ptr %64, i64 %67
store i32 %63, ptr %68, align 4
br label %69
69: ; preds = %57, %50
br label %70
70: ; preds = %69
%71 = load i32, ptr %13, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %13, align 4
br label %40, !llvm.loop !6
73: ; preds = %48
store i32 1, ptr %6, align 4
br label %74
74: ; preds = %73, %37, %30
%75 = load i32, ptr %6, align 4
ret i32 %75
}
declare i32 @checkRessources(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpt38ytf4d.c'
source_filename = "/tmp/tmpt38ytf4d.c"
target datalayout = "e-m:e-p270: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/tmpt38ytf4d.c"
target datalayout = "e-m:e-p270: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/tmpktdfltlc.c'
source_filename = "/tmp/tmpktdfltlc.c"
target datalayout = "e-m:e-p270: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/tmpktdfltlc.c"
target datalayout = "e-m:e-p270: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/tmpnzfj55lj.c'
source_filename = "/tmp/tmpnzfj55lj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"bdtrcf\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @bdtrcf(i32 noundef %0, i32 noundef %1, float noundef %2) #0 {
%4 = alloca float, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store float %2, ptr %7, align 4
%11 = load float, ptr %7, align 4
store float %11, ptr %8, align 4
%12 = load float, ptr %8, align 4
%13 = fpext float %12 to double
%14 = fcmp olt double %13, 0.000000e+00
br i1 %14, label %19, label %15
15: ; preds = %3
%16 = load float, ptr %8, align 4
%17 = fpext float %16 to double
%18 = fcmp ogt double %17, 1.000000e+00
br i1 %18, label %19, label %20
19: ; preds = %15, %3
br label %29
20: ; preds = %15
%21 = load i32, ptr %5, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %20
store float 1.000000e+00, ptr %4, align 4
br label %61
24: ; preds = %20
%25 = load i32, ptr %6, align 4
%26 = load i32, ptr %5, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %31
28: ; preds = %24
br label %29
29: ; preds = %28, %19
%30 = call i32 @mtherr(ptr noundef @.str, i32 noundef 1)
store float 0.000000e+00, ptr %4, align 4
br label %61
31: ; preds = %24
%32 = load i32, ptr %5, align 4
%33 = load i32, ptr %6, align 4
%34 = icmp eq i32 %32, %33
br i1 %34, label %35, label %36
35: ; preds = %31
store float 0.000000e+00, ptr %4, align 4
br label %61
36: ; preds = %31
%37 = load i32, ptr %6, align 4
%38 = load i32, ptr %5, align 4
%39 = sub nsw i32 %37, %38
%40 = sitofp i32 %39 to float
store float %40, ptr %10, align 4
%41 = load i32, ptr %5, align 4
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %51
43: ; preds = %36
%44 = load float, ptr %8, align 4
%45 = fpext float %44 to double
%46 = fsub double 1.000000e+00, %45
%47 = load float, ptr %10, align 4
%48 = call double @powf(double noundef %46, float noundef %47)
%49 = fsub double 1.000000e+00, %48
%50 = fptrunc double %49 to float
store float %50, ptr %9, align 4
br label %59
51: ; preds = %36
%52 = load i32, ptr %5, align 4
%53 = add nsw i32 %52, 1
%54 = sitofp i32 %53 to float
store float %54, ptr %9, align 4
%55 = load float, ptr %9, align 4
%56 = load float, ptr %10, align 4
%57 = load float, ptr %8, align 4
%58 = call float @incbetf(float noundef %55, float noundef %56, float noundef %57)
store float %58, ptr %9, align 4
br label %59
59: ; preds = %51, %43
%60 = load float, ptr %9, align 4
store float %60, ptr %4, align 4
br label %61
61: ; preds = %59, %35, %29, %23
%62 = load float, ptr %4, align 4
ret float %62
}
declare i32 @mtherr(ptr noundef, i32 noundef) #1
declare double @powf(double noundef, float noundef) #1
declare float @incbetf(float noundef, float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnzfj55lj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"bdtrcf\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @bdtrcf(i32 noundef %0, i32 noundef %1, float noundef %2) #0 {
%4 = alloca float, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store float %2, ptr %7, align 4
%11 = load float, ptr %7, align 4
store float %11, ptr %8, align 4
%12 = load float, ptr %8, align 4
%13 = fpext float %12 to double
%14 = fcmp olt double %13, 0.000000e+00
br i1 %14, label %19, label %15
15: ; preds = %3
%16 = load float, ptr %8, align 4
%17 = fpext float %16 to double
%18 = fcmp ogt double %17, 1.000000e+00
br i1 %18, label %19, label %20
19: ; preds = %15, %3
br label %29
20: ; preds = %15
%21 = load i32, ptr %5, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %20
store float 1.000000e+00, ptr %4, align 4
br label %61
24: ; preds = %20
%25 = load i32, ptr %6, align 4
%26 = load i32, ptr %5, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %31
28: ; preds = %24
br label %29
29: ; preds = %28, %19
%30 = call i32 @mtherr(ptr noundef @.str, i32 noundef 1)
store float 0.000000e+00, ptr %4, align 4
br label %61
31: ; preds = %24
%32 = load i32, ptr %5, align 4
%33 = load i32, ptr %6, align 4
%34 = icmp eq i32 %32, %33
br i1 %34, label %35, label %36
35: ; preds = %31
store float 0.000000e+00, ptr %4, align 4
br label %61
36: ; preds = %31
%37 = load i32, ptr %6, align 4
%38 = load i32, ptr %5, align 4
%39 = sub nsw i32 %37, %38
%40 = sitofp i32 %39 to float
store float %40, ptr %10, align 4
%41 = load i32, ptr %5, align 4
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %51
43: ; preds = %36
%44 = load float, ptr %8, align 4
%45 = fpext float %44 to double
%46 = fsub double 1.000000e+00, %45
%47 = load float, ptr %10, align 4
%48 = call double @powf(double noundef %46, float noundef %47)
%49 = fsub double 1.000000e+00, %48
%50 = fptrunc double %49 to float
store float %50, ptr %9, align 4
br label %59
51: ; preds = %36
%52 = load i32, ptr %5, align 4
%53 = add nsw i32 %52, 1
%54 = sitofp i32 %53 to float
store float %54, ptr %9, align 4
%55 = load float, ptr %9, align 4
%56 = load float, ptr %10, align 4
%57 = load float, ptr %8, align 4
%58 = call float @incbetf(float noundef %55, float noundef %56, float noundef %57)
store float %58, ptr %9, align 4
br label %59
59: ; preds = %51, %43
%60 = load float, ptr %9, align 4
store float %60, ptr %4, align 4
br label %61
61: ; preds = %59, %35, %29, %23
%62 = load float, ptr %4, align 4
ret float %62
}
declare i32 @mtherr(ptr noundef, i32 noundef) #1
declare double @powf(double noundef, float noundef) #1
declare float @incbetf(float noundef, float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6fh3j9rh.c'
source_filename = "/tmp/tmp6fh3j9rh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ptr_ret_int16_t(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = ptrtoint ptr %6 to i64
%8 = load i32, ptr %4, align 4
%9 = sext i32 %8 to i64
%10 = add nsw i64 %7, %9
%11 = call i32 @memcpy(ptr noundef %5, i64 noundef %10, i32 noundef 4)
%12 = load i32, ptr %5, align 4
ret i32 %12
}
declare i32 @memcpy(ptr 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/tmp6fh3j9rh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ptr_ret_int16_t(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = ptrtoint ptr %6 to i64
%8 = load i32, ptr %4, align 4
%9 = sext i32 %8 to i64
%10 = add nsw i64 %7, %9
%11 = call i32 @memcpy(ptr noundef %5, i64 noundef %10, i32 noundef 4)
%12 = load i32, ptr %5, align 4
ret i32 %12
}
declare i32 @memcpy(ptr 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/tmpb0ix9nkt.c'
source_filename = "/tmp/tmpb0ix9nkt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"* * * * * * * * * * * * * * * * * * *\0A\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"* Property of This Row? *\0A\00", align 1
@.str.2 = private unnamed_addr constant [39 x i8] c"* 1. Integer *\0A\00", align 1
@.str.3 = private unnamed_addr constant [39 x i8] c"* 2. Float *\0A\00", align 1
@.str.4 = private unnamed_addr constant [39 x i8] c"* 3. Short String *\0A\00", align 1
@.str.5 = private unnamed_addr constant [39 x i8] c"* 4. Long String *\0A\00", align 1
@.str.6 = private unnamed_addr constant [26 x i8] c"Please enter your choice:\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @prop_menu() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @printf(ptr noundef @.str.1)
%4 = call i32 @printf(ptr noundef @.str.2)
%5 = call i32 @printf(ptr noundef @.str.3)
%6 = call i32 @printf(ptr noundef @.str.4)
%7 = call i32 @printf(ptr noundef @.str.5)
%8 = call i32 @printf(ptr noundef @.str)
%9 = call i32 @printf(ptr noundef @.str.6)
%10 = call i32 @scanf(ptr noundef @.str.7, ptr noundef %1)
%11 = load i32, ptr %1, align 4
%12 = trunc i32 %11 to i8
ret i8 %12
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb0ix9nkt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"* * * * * * * * * * * * * * * * * * *\0A\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"* Property of This Row? *\0A\00", align 1
@.str.2 = private unnamed_addr constant [39 x i8] c"* 1. Integer *\0A\00", align 1
@.str.3 = private unnamed_addr constant [39 x i8] c"* 2. Float *\0A\00", align 1
@.str.4 = private unnamed_addr constant [39 x i8] c"* 3. Short String *\0A\00", align 1
@.str.5 = private unnamed_addr constant [39 x i8] c"* 4. Long String *\0A\00", align 1
@.str.6 = private unnamed_addr constant [26 x i8] c"Please enter your choice:\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @prop_menu() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @printf(ptr noundef @.str.1)
%4 = call i32 @printf(ptr noundef @.str.2)
%5 = call i32 @printf(ptr noundef @.str.3)
%6 = call i32 @printf(ptr noundef @.str.4)
%7 = call i32 @printf(ptr noundef @.str.5)
%8 = call i32 @printf(ptr noundef @.str)
%9 = call i32 @printf(ptr noundef @.str.6)
%10 = call i32 @scanf(ptr noundef @.str.7, ptr noundef %1)
%11 = load i32, ptr %1, align 4
%12 = trunc i32 %11 to i8
ret i8 %12
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4bgwx7wv.c'
source_filename = "/tmp/tmp4bgwx7wv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unnamed_addr constant [3 x i32] [i32 10, i32 20, i32 30], align 4
@__const.main.b = private unnamed_addr constant [3 x i32] [i32 30, i32 10, i32 10], align 4
@.str = private unnamed_addr constant [29 x i8] c"B je podmnozina A (spravne)\0A\00", align 1
@.str.1 = private unnamed_addr constant [35 x i8] c"B nie je podmnozina A (nespravne)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [3 x i32], align 4
%3 = alloca [3 x i32], align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 @__const.main.a, i64 12, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 @__const.main.b, i64 12, i1 false)
%4 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 0
%5 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%6 = call i64 @is_subset(ptr noundef %4, i32 noundef 3, ptr noundef %5, i32 noundef 3)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 @printf(ptr noundef @.str)
br label %12
10: ; preds = %0
%11 = call i32 @printf(ptr noundef @.str.1)
br label %12
12: ; preds = %10, %8
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 i64 @is_subset(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4bgwx7wv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unnamed_addr constant [3 x i32] [i32 10, i32 20, i32 30], align 4
@__const.main.b = private unnamed_addr constant [3 x i32] [i32 30, i32 10, i32 10], align 4
@.str = private unnamed_addr constant [29 x i8] c"B je podmnozina A (spravne)\0A\00", align 1
@.str.1 = private unnamed_addr constant [35 x i8] c"B nie je podmnozina A (nespravne)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [3 x i32], align 4
%3 = alloca [3 x i32], align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 @__const.main.a, i64 12, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 @__const.main.b, i64 12, i1 false)
%4 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 0
%5 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%6 = call i64 @is_subset(ptr noundef %4, i32 noundef 3, ptr noundef %5, i32 noundef 3)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 @printf(ptr noundef @.str)
br label %12
10: ; preds = %0
%11 = call i32 @printf(ptr noundef @.str.1)
br label %12
12: ; preds = %10, %8
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 i64 @is_subset(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkwv_qggg.c'
source_filename = "/tmp/tmpkwv_qggg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"addi $sp, $sp, -8\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"sw $ra, 4($sp)\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"sw $fp, ($sp)\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"move $fp, $sp\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @impl_func_prologue_save_fp() #0 {
%1 = call i32 @out_asm(ptr noundef @.str)
%2 = call i32 @out_asm(ptr noundef @.str.1)
%3 = call i32 @out_asm(ptr noundef @.str.2)
%4 = call i32 @out_asm(ptr noundef @.str.3)
ret void
}
declare i32 @out_asm(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/tmpkwv_qggg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"addi $sp, $sp, -8\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"sw $ra, 4($sp)\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"sw $fp, ($sp)\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"move $fp, $sp\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @impl_func_prologue_save_fp() #0 {
%1 = call i32 @out_asm(ptr noundef @.str)
%2 = call i32 @out_asm(ptr noundef @.str.1)
%3 = call i32 @out_asm(ptr noundef @.str.2)
%4 = call i32 @out_asm(ptr noundef @.str.3)
ret void
}
declare i32 @out_asm(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/tmprsy_gwkl.c'
source_filename = "/tmp/tmprsy_gwkl.c"
target datalayout = "e-m:e-p270: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/tmprsy_gwkl.c"
target datalayout = "e-m:e-p270: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/tmpxqexr2rb.c'
source_filename = "/tmp/tmpxqexr2rb.c"
target datalayout = "e-m:e-p270: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.sched_param = type { i32 }
@PTHREAD_STACK_MIN = dso_local global i32 0, align 4
@PROT_READ = dso_local global i32 0, align 4
@PROT_WRITE = dso_local global i32 0, align 4
@MAP_PRIVATE = dso_local global i32 0, align 4
@MAP_ANONYMOUS = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
@.str = private unnamed_addr constant [17 x i8] c"mmap failed: %m\0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"init pthread attributes failed\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"pthread setstack failed\0A\00", align 1
@SCHED_FIFO = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [31 x i8] c"pthread setschedpolicy failed\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"pthread setschedparam failed\0A\00", align 1
@PTHREAD_EXPLICIT_SCHED = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [32 x i8] c"pthread setinheritsched failed\0A\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"create pthread failed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @start_thread(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca %struct.sched_param, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%11 = load i32, ptr @PTHREAD_STACK_MIN, align 4
%12 = load i32, ptr @PROT_READ, align 4
%13 = load i32, ptr @PROT_WRITE, align 4
%14 = or i32 %12, %13
%15 = load i32, ptr @MAP_PRIVATE, align 4
%16 = load i32, ptr @MAP_ANONYMOUS, align 4
%17 = or i32 %15, %16
%18 = call ptr @mmap(ptr noundef null, i32 noundef %11, i32 noundef %14, i32 noundef %17, i32 noundef -1, i32 noundef 0)
store ptr %18, ptr %9, align 8
%19 = load ptr, ptr %9, align 8
%20 = load ptr, ptr @MAP_FAILED, align 8
%21 = icmp eq ptr %19, %20
br i1 %21, label %22, label %25
22: ; preds = %3
%23 = call i32 @printf(ptr noundef @.str)
%24 = call i32 @exit(i32 noundef -1) #3
unreachable
25: ; preds = %3
%26 = load ptr, ptr %9, align 8
%27 = load i32, ptr @PTHREAD_STACK_MIN, align 4
%28 = call i32 @memset(ptr noundef %26, i32 noundef 0, i32 noundef %27)
%29 = call i32 @pthread_attr_init(ptr noundef %8)
store i32 %29, ptr %10, align 4
%30 = load i32, ptr %10, align 4
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %25
%33 = call i32 @printf(ptr noundef @.str.1)
%34 = call i32 @exit(i32 noundef -1) #3
unreachable
35: ; preds = %25
%36 = load ptr, ptr %9, align 8
%37 = load i32, ptr @PTHREAD_STACK_MIN, align 4
%38 = call i32 @pthread_attr_setstack(ptr noundef %8, ptr noundef %36, i32 noundef %37)
store i32 %38, ptr %10, align 4
%39 = load i32, ptr %10, align 4
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %44
41: ; preds = %35
%42 = call i32 @printf(ptr noundef @.str.2)
%43 = call i32 @exit(i32 noundef -1) #3
unreachable
44: ; preds = %35
%45 = load i32, ptr @SCHED_FIFO, align 4
%46 = call i32 @pthread_attr_setschedpolicy(ptr noundef %8, i32 noundef %45)
store i32 %46, ptr %10, align 4
%47 = load i32, ptr %10, align 4
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %52
49: ; preds = %44
%50 = call i32 @printf(ptr noundef @.str.3)
%51 = call i32 @exit(i32 noundef -1) #3
unreachable
52: ; preds = %44
%53 = load i32, ptr %4, align 4
%54 = getelementptr inbounds %struct.sched_param, ptr %7, i32 0, i32 0
store i32 %53, ptr %54, align 4
%55 = call i32 @pthread_attr_setschedparam(ptr noundef %8, ptr noundef %7)
store i32 %55, ptr %10, align 4
%56 = load i32, ptr %10, align 4
%57 = icmp ne i32 %56, 0
br i1 %57, label %58, label %61
58: ; preds = %52
%59 = call i32 @printf(ptr noundef @.str.4)
%60 = call i32 @exit(i32 noundef -1) #3
unreachable
61: ; preds = %52
%62 = load i32, ptr @PTHREAD_EXPLICIT_SCHED, align 4
%63 = call i32 @pthread_attr_setinheritsched(ptr noundef %8, i32 noundef %62)
store i32 %63, ptr %10, align 4
%64 = load i32, ptr %10, align 4
%65 = icmp ne i32 %64, 0
br i1 %65, label %66, label %69
66: ; preds = %61
%67 = call i32 @printf(ptr noundef @.str.5)
%68 = call i32 @exit(i32 noundef -1) #3
unreachable
69: ; preds = %61
%70 = load ptr, ptr %5, align 8
%71 = load ptr, ptr %6, align 8
%72 = call i32 @pthread_create(ptr noundef %70, ptr noundef %8, ptr noundef %71, ptr noundef null)
store i32 %72, ptr %10, align 4
%73 = load i32, ptr %10, align 4
%74 = icmp ne i32 %73, 0
br i1 %74, label %75, label %78
75: ; preds = %69
%76 = call i32 @printf(ptr noundef @.str.6)
%77 = call i32 @exit(i32 noundef -1) #3
unreachable
78: ; preds = %69
ret void
}
declare ptr @mmap(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @pthread_attr_init(ptr noundef) #1
declare i32 @pthread_attr_setstack(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @pthread_attr_setschedpolicy(ptr noundef, i32 noundef) #1
declare i32 @pthread_attr_setschedparam(ptr noundef, ptr noundef) #1
declare i32 @pthread_attr_setinheritsched(ptr noundef, i32 noundef) #1
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpxqexr2rb.c"
target datalayout = "e-m:e-p270: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.sched_param = type { i32 }
@PTHREAD_STACK_MIN = dso_local global i32 0, align 4
@PROT_READ = dso_local global i32 0, align 4
@PROT_WRITE = dso_local global i32 0, align 4
@MAP_PRIVATE = dso_local global i32 0, align 4
@MAP_ANONYMOUS = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
@.str = private unnamed_addr constant [17 x i8] c"mmap failed: %m\0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"init pthread attributes failed\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"pthread setstack failed\0A\00", align 1
@SCHED_FIFO = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [31 x i8] c"pthread setschedpolicy failed\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"pthread setschedparam failed\0A\00", align 1
@PTHREAD_EXPLICIT_SCHED = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [32 x i8] c"pthread setinheritsched failed\0A\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"create pthread failed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @start_thread(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca %struct.sched_param, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%11 = load i32, ptr @PTHREAD_STACK_MIN, align 4
%12 = load i32, ptr @PROT_READ, align 4
%13 = load i32, ptr @PROT_WRITE, align 4
%14 = or i32 %12, %13
%15 = load i32, ptr @MAP_PRIVATE, align 4
%16 = load i32, ptr @MAP_ANONYMOUS, align 4
%17 = or i32 %15, %16
%18 = call ptr @mmap(ptr noundef null, i32 noundef %11, i32 noundef %14, i32 noundef %17, i32 noundef -1, i32 noundef 0)
store ptr %18, ptr %9, align 8
%19 = load ptr, ptr %9, align 8
%20 = load ptr, ptr @MAP_FAILED, align 8
%21 = icmp eq ptr %19, %20
br i1 %21, label %22, label %25
22: ; preds = %3
%23 = call i32 @printf(ptr noundef @.str)
%24 = call i32 @exit(i32 noundef -1) #3
unreachable
25: ; preds = %3
%26 = load ptr, ptr %9, align 8
%27 = load i32, ptr @PTHREAD_STACK_MIN, align 4
%28 = call i32 @memset(ptr noundef %26, i32 noundef 0, i32 noundef %27)
%29 = call i32 @pthread_attr_init(ptr noundef %8)
store i32 %29, ptr %10, align 4
%30 = load i32, ptr %10, align 4
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %25
%33 = call i32 @printf(ptr noundef @.str.1)
%34 = call i32 @exit(i32 noundef -1) #3
unreachable
35: ; preds = %25
%36 = load ptr, ptr %9, align 8
%37 = load i32, ptr @PTHREAD_STACK_MIN, align 4
%38 = call i32 @pthread_attr_setstack(ptr noundef %8, ptr noundef %36, i32 noundef %37)
store i32 %38, ptr %10, align 4
%39 = load i32, ptr %10, align 4
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %44
41: ; preds = %35
%42 = call i32 @printf(ptr noundef @.str.2)
%43 = call i32 @exit(i32 noundef -1) #3
unreachable
44: ; preds = %35
%45 = load i32, ptr @SCHED_FIFO, align 4
%46 = call i32 @pthread_attr_setschedpolicy(ptr noundef %8, i32 noundef %45)
store i32 %46, ptr %10, align 4
%47 = load i32, ptr %10, align 4
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %52
49: ; preds = %44
%50 = call i32 @printf(ptr noundef @.str.3)
%51 = call i32 @exit(i32 noundef -1) #3
unreachable
52: ; preds = %44
%53 = load i32, ptr %4, align 4
%54 = getelementptr inbounds %struct.sched_param, ptr %7, i32 0, i32 0
store i32 %53, ptr %54, align 4
%55 = call i32 @pthread_attr_setschedparam(ptr noundef %8, ptr noundef %7)
store i32 %55, ptr %10, align 4
%56 = load i32, ptr %10, align 4
%57 = icmp ne i32 %56, 0
br i1 %57, label %58, label %61
58: ; preds = %52
%59 = call i32 @printf(ptr noundef @.str.4)
%60 = call i32 @exit(i32 noundef -1) #3
unreachable
61: ; preds = %52
%62 = load i32, ptr @PTHREAD_EXPLICIT_SCHED, align 4
%63 = call i32 @pthread_attr_setinheritsched(ptr noundef %8, i32 noundef %62)
store i32 %63, ptr %10, align 4
%64 = load i32, ptr %10, align 4
%65 = icmp ne i32 %64, 0
br i1 %65, label %66, label %69
66: ; preds = %61
%67 = call i32 @printf(ptr noundef @.str.5)
%68 = call i32 @exit(i32 noundef -1) #3
unreachable
69: ; preds = %61
%70 = load ptr, ptr %5, align 8
%71 = load ptr, ptr %6, align 8
%72 = call i32 @pthread_create(ptr noundef %70, ptr noundef %8, ptr noundef %71, ptr noundef null)
store i32 %72, ptr %10, align 4
%73 = load i32, ptr %10, align 4
%74 = icmp ne i32 %73, 0
br i1 %74, label %75, label %78
75: ; preds = %69
%76 = call i32 @printf(ptr noundef @.str.6)
%77 = call i32 @exit(i32 noundef -1) #3
unreachable
78: ; preds = %69
ret void
}
declare ptr @mmap(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @pthread_attr_init(ptr noundef) #1
declare i32 @pthread_attr_setstack(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @pthread_attr_setschedpolicy(ptr noundef, i32 noundef) #1
declare i32 @pthread_attr_setschedparam(ptr noundef, ptr noundef) #1
declare i32 @pthread_attr_setinheritsched(ptr noundef, i32 noundef) #1
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpsx43si7o.c'
source_filename = "/tmp/tmpsx43si7o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@stdout = dso_local global ptr null, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsx43si7o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@stdout = dso_local global ptr null, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjt13bpmq.c'
source_filename = "/tmp/tmpjt13bpmq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [43 x i8] c"ERROR: Unable opening the specified file!\0A\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [2 x i8] c"f\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.6 = private unnamed_addr constant [34 x i8] c"ERROR: Unable writing on socket!\0A\00", align 1
@.str.7 = private unnamed_addr constant [36 x i8] c"ERROR: Unable reading from socket!\0A\00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"Accept\00", align 1
@.str.9 = private unnamed_addr constant [6 x i8] c"Done!\00", align 1
@.str.10 = private unnamed_addr constant [38 x i8] c"INFO: File transferred successfully!\0A\00", align 1
@.str.11 = private unnamed_addr constant [38 x i8] c"ERROR: Unable transferring the file!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @send_File(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 [1024 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, 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
store i32 0, ptr %8, align 4
%13 = load ptr, ptr %4, align 8
%14 = call ptr @fopen(ptr noundef %13, ptr noundef @.str)
store ptr %14, ptr %9, align 8
%15 = load ptr, ptr %9, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %20, label %17
17: ; preds = %3
%18 = load i32, ptr @stderr, align 4
%19 = call i32 @fprintf(i32 noundef %18, ptr noundef @.str.1)
br label %156
20: ; preds = %3
%21 = load ptr, ptr %9, align 8
%22 = load i32, ptr @SEEK_END, align 4
%23 = call i32 @fseek(ptr noundef %21, i32 noundef 0, i32 noundef %22)
%24 = load ptr, ptr %9, align 8
%25 = call i32 @ftell(ptr noundef %24)
store i32 %25, ptr %8, align 4
%26 = load ptr, ptr %9, align 8
%27 = load i32, ptr @SEEK_SET, align 4
%28 = call i32 @fseek(ptr noundef %26, i32 noundef 0, i32 noundef %27)
%29 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%30 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %29, i32 noundef 1024, ptr noundef @.str.2)
%31 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%32 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%33 = call i32 @strlen(ptr noundef %32)
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %31, i64 %34
%36 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %35, i32 noundef 1024, ptr noundef @.str.3)
%37 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%38 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%39 = call i32 @strlen(ptr noundef %38)
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %37, i64 %40
%42 = load ptr, ptr %4, align 8
%43 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %41, i32 noundef 1024, ptr noundef @.str.4, ptr noundef %42)
%44 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%45 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%46 = call i32 @strlen(ptr noundef %45)
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, ptr %44, i64 %47
%49 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %48, i32 noundef 1024, ptr noundef @.str.3)
%50 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%51 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%52 = call i32 @strlen(ptr noundef %51)
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %50, i64 %53
%55 = load i32, ptr %8, align 4
%56 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %54, i32 noundef 1024, ptr noundef @.str.5, i32 noundef %55)
%57 = load i32, ptr %5, align 4
%58 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%59 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%60 = call i32 @strlen(ptr noundef %59)
%61 = call i64 @send(i32 noundef %57, ptr noundef %58, i32 noundef %60, i32 noundef 0)
%62 = icmp slt i64 %61, 0
br i1 %62, label %63, label %66
63: ; preds = %20
%64 = load i32, ptr @stderr, align 4
%65 = call i32 @fprintf(i32 noundef %64, ptr noundef @.str.6)
br label %156
66: ; preds = %20
%67 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%68 = call i32 @memset(ptr noundef %67, i32 noundef 0, i32 noundef 1024)
%69 = load i32, ptr %6, align 4
%70 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%71 = call i64 @recv(i32 noundef %69, ptr noundef %70, i32 noundef 1024, i32 noundef 0)
%72 = icmp sle i64 %71, 0
br i1 %72, label %73, label %76
73: ; preds = %66
%74 = load i32, ptr @stderr, align 4
%75 = call i32 @fprintf(i32 noundef %74, ptr noundef @.str.7)
br label %156
76: ; preds = %66
%77 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%78 = call i64 @strcmp(ptr noundef %77, ptr noundef @.str.8)
%79 = icmp ne i64 %78, 0
br i1 %79, label %80, label %81
80: ; preds = %76
br label %156
81: ; preds = %76
store i32 0, ptr %10, align 4
%82 = load i32, ptr %8, align 4
%83 = sdiv i32 %82, 1024
store i32 %83, ptr %11, align 4
%84 = load i32, ptr %8, align 4
%85 = srem i32 %84, 1024
store i32 %85, ptr %12, align 4
%86 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%87 = call i32 @memset(ptr noundef %86, i32 noundef 0, i32 noundef 1024)
store i32 0, ptr %10, align 4
br label %88
88: ; preds = %116, %81
%89 = load i32, ptr %10, align 4
%90 = load i32, ptr %11, align 4
%91 = icmp slt i32 %89, %90
br i1 %91, label %92, label %119
92: ; preds = %88
%93 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%94 = load ptr, ptr %9, align 8
%95 = call i32 @fread(ptr noundef %93, i32 noundef 1, i32 noundef 1024, ptr noundef %94)
%96 = load i32, ptr %5, align 4
%97 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%98 = call i64 @send(i32 noundef %96, ptr noundef %97, i32 noundef 1024, i32 noundef 0)
%99 = icmp slt i64 %98, 0
br i1 %99, label %100, label %103
100: ; preds = %92
%101 = load i32, ptr @stderr, align 4
%102 = call i32 @fprintf(i32 noundef %101, ptr noundef @.str.6)
br label %156
103: ; preds = %92
%104 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%105 = call i32 @memset(ptr noundef %104, i32 noundef 0, i32 noundef 1024)
%106 = load i32, ptr %6, align 4
%107 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%108 = call i64 @recv(i32 noundef %106, ptr noundef %107, i32 noundef 1024, i32 noundef 0)
%109 = icmp sle i64 %108, 0
br i1 %109, label %110, label %113
110: ; preds = %103
%111 = load i32, ptr @stderr, align 4
%112 = call i32 @fprintf(i32 noundef %111, ptr noundef @.str.7)
br label %156
113: ; preds = %103
%114 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%115 = call i32 @memset(ptr noundef %114, i32 noundef 0, i32 noundef 1024)
br label %116
116: ; preds = %113
%117 = load i32, ptr %10, align 4
%118 = add nsw i32 %117, 1
store i32 %118, ptr %10, align 4
br label %88, !llvm.loop !6
119: ; preds = %88
%120 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%121 = load i32, ptr %12, align 4
%122 = load ptr, ptr %9, align 8
%123 = call i32 @fread(ptr noundef %120, i32 noundef 1, i32 noundef %121, ptr noundef %122)
%124 = load i32, ptr %5, align 4
%125 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%126 = load i32, ptr %12, align 4
%127 = call i64 @send(i32 noundef %124, ptr noundef %125, i32 noundef %126, i32 noundef 0)
%128 = icmp slt i64 %127, 0
br i1 %128, label %129, label %132
129: ; preds = %119
%130 = load i32, ptr @stderr, align 4
%131 = call i32 @fprintf(i32 noundef %130, ptr noundef @.str.6)
br label %156
132: ; preds = %119
%133 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%134 = call i32 @memset(ptr noundef %133, i32 noundef 0, i32 noundef 1024)
%135 = load i32, ptr %6, align 4
%136 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%137 = call i64 @recv(i32 noundef %135, ptr noundef %136, i32 noundef 1024, i32 noundef 0)
%138 = icmp sle i64 %137, 0
br i1 %138, label %139, label %142
139: ; preds = %132
%140 = load i32, ptr @stderr, align 4
%141 = call i32 @fprintf(i32 noundef %140, ptr noundef @.str.7)
br label %156
142: ; preds = %132
%143 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%144 = call i64 @strcmp(ptr noundef %143, ptr noundef @.str.9)
%145 = icmp eq i64 %144, 0
br i1 %145, label %146, label %148
146: ; preds = %142
%147 = call i32 @printf(ptr noundef @.str.10)
br label %151
148: ; preds = %142
%149 = load i32, ptr @stderr, align 4
%150 = call i32 @fprintf(i32 noundef %149, ptr noundef @.str.11)
br label %151
151: ; preds = %148, %146
%152 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%153 = call i32 @memset(ptr noundef %152, i32 noundef 0, i32 noundef 1024)
%154 = load ptr, ptr %9, align 8
%155 = call i32 @fclose(ptr noundef %154)
br label %156
156: ; preds = %151, %139, %129, %110, %100, %80, %73, %63, %17
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @ftell(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ...) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjt13bpmq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [43 x i8] c"ERROR: Unable opening the specified file!\0A\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [2 x i8] c"f\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.6 = private unnamed_addr constant [34 x i8] c"ERROR: Unable writing on socket!\0A\00", align 1
@.str.7 = private unnamed_addr constant [36 x i8] c"ERROR: Unable reading from socket!\0A\00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"Accept\00", align 1
@.str.9 = private unnamed_addr constant [6 x i8] c"Done!\00", align 1
@.str.10 = private unnamed_addr constant [38 x i8] c"INFO: File transferred successfully!\0A\00", align 1
@.str.11 = private unnamed_addr constant [38 x i8] c"ERROR: Unable transferring the file!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @send_File(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 [1024 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, 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
store i32 0, ptr %8, align 4
%13 = load ptr, ptr %4, align 8
%14 = call ptr @fopen(ptr noundef %13, ptr noundef @.str)
store ptr %14, ptr %9, align 8
%15 = load ptr, ptr %9, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %20, label %17
17: ; preds = %3
%18 = load i32, ptr @stderr, align 4
%19 = call i32 @fprintf(i32 noundef %18, ptr noundef @.str.1)
br label %158
20: ; preds = %3
%21 = load ptr, ptr %9, align 8
%22 = load i32, ptr @SEEK_END, align 4
%23 = call i32 @fseek(ptr noundef %21, i32 noundef 0, i32 noundef %22)
%24 = load ptr, ptr %9, align 8
%25 = call i32 @ftell(ptr noundef %24)
store i32 %25, ptr %8, align 4
%26 = load ptr, ptr %9, align 8
%27 = load i32, ptr @SEEK_SET, align 4
%28 = call i32 @fseek(ptr noundef %26, i32 noundef 0, i32 noundef %27)
%29 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%30 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %29, i32 noundef 1024, ptr noundef @.str.2)
%31 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%32 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%33 = call i32 @strlen(ptr noundef %32)
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %31, i64 %34
%36 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %35, i32 noundef 1024, ptr noundef @.str.3)
%37 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%38 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%39 = call i32 @strlen(ptr noundef %38)
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %37, i64 %40
%42 = load ptr, ptr %4, align 8
%43 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %41, i32 noundef 1024, ptr noundef @.str.4, ptr noundef %42)
%44 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%45 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%46 = call i32 @strlen(ptr noundef %45)
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, ptr %44, i64 %47
%49 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %48, i32 noundef 1024, ptr noundef @.str.3)
%50 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%51 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%52 = call i32 @strlen(ptr noundef %51)
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %50, i64 %53
%55 = load i32, ptr %8, align 4
%56 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %54, i32 noundef 1024, ptr noundef @.str.5, i32 noundef %55)
%57 = load i32, ptr %5, align 4
%58 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%59 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%60 = call i32 @strlen(ptr noundef %59)
%61 = call i64 @send(i32 noundef %57, ptr noundef %58, i32 noundef %60, i32 noundef 0)
%62 = icmp slt i64 %61, 0
br i1 %62, label %63, label %66
63: ; preds = %20
%64 = load i32, ptr @stderr, align 4
%65 = call i32 @fprintf(i32 noundef %64, ptr noundef @.str.6)
br label %158
66: ; preds = %20
%67 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%68 = call i32 @memset(ptr noundef %67, i32 noundef 0, i32 noundef 1024)
%69 = load i32, ptr %6, align 4
%70 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%71 = call i64 @recv(i32 noundef %69, ptr noundef %70, i32 noundef 1024, i32 noundef 0)
%72 = icmp sle i64 %71, 0
br i1 %72, label %73, label %76
73: ; preds = %66
%74 = load i32, ptr @stderr, align 4
%75 = call i32 @fprintf(i32 noundef %74, ptr noundef @.str.7)
br label %158
76: ; preds = %66
%77 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%78 = call i64 @strcmp(ptr noundef %77, ptr noundef @.str.8)
%79 = icmp ne i64 %78, 0
br i1 %79, label %80, label %81
80: ; preds = %76
br label %158
81: ; preds = %76
store i32 0, ptr %10, align 4
%82 = load i32, ptr %8, align 4
%83 = sdiv i32 %82, 1024
store i32 %83, ptr %11, align 4
%84 = load i32, ptr %8, align 4
%85 = srem i32 %84, 1024
store i32 %85, ptr %12, align 4
%86 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%87 = call i32 @memset(ptr noundef %86, i32 noundef 0, i32 noundef 1024)
store i32 0, ptr %10, align 4
%88 = load i32, ptr %10, align 4
%89 = load i32, ptr %11, align 4
%90 = icmp slt i32 %88, %89
br i1 %90, label %.lr.ph, label %121
.lr.ph: ; preds = %81
br label %91
91: ; preds = %.lr.ph, %115
%92 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%93 = load ptr, ptr %9, align 8
%94 = call i32 @fread(ptr noundef %92, i32 noundef 1, i32 noundef 1024, ptr noundef %93)
%95 = load i32, ptr %5, align 4
%96 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%97 = call i64 @send(i32 noundef %95, ptr noundef %96, i32 noundef 1024, i32 noundef 0)
%98 = icmp slt i64 %97, 0
br i1 %98, label %99, label %102
99: ; preds = %91
%100 = load i32, ptr @stderr, align 4
%101 = call i32 @fprintf(i32 noundef %100, ptr noundef @.str.6)
br label %158
102: ; preds = %91
%103 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%104 = call i32 @memset(ptr noundef %103, i32 noundef 0, i32 noundef 1024)
%105 = load i32, ptr %6, align 4
%106 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%107 = call i64 @recv(i32 noundef %105, ptr noundef %106, i32 noundef 1024, i32 noundef 0)
%108 = icmp sle i64 %107, 0
br i1 %108, label %109, label %112
109: ; preds = %102
%110 = load i32, ptr @stderr, align 4
%111 = call i32 @fprintf(i32 noundef %110, ptr noundef @.str.7)
br label %158
112: ; preds = %102
%113 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%114 = call i32 @memset(ptr noundef %113, i32 noundef 0, i32 noundef 1024)
br label %115
115: ; preds = %112
%116 = load i32, ptr %10, align 4
%117 = add nsw i32 %116, 1
store i32 %117, ptr %10, align 4
%118 = load i32, ptr %10, align 4
%119 = load i32, ptr %11, align 4
%120 = icmp slt i32 %118, %119
br i1 %120, label %91, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %115
br label %121
121: ; preds = %._crit_edge, %81
%122 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%123 = load i32, ptr %12, align 4
%124 = load ptr, ptr %9, align 8
%125 = call i32 @fread(ptr noundef %122, i32 noundef 1, i32 noundef %123, ptr noundef %124)
%126 = load i32, ptr %5, align 4
%127 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%128 = load i32, ptr %12, align 4
%129 = call i64 @send(i32 noundef %126, ptr noundef %127, i32 noundef %128, i32 noundef 0)
%130 = icmp slt i64 %129, 0
br i1 %130, label %131, label %134
131: ; preds = %121
%132 = load i32, ptr @stderr, align 4
%133 = call i32 @fprintf(i32 noundef %132, ptr noundef @.str.6)
br label %158
134: ; preds = %121
%135 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%136 = call i32 @memset(ptr noundef %135, i32 noundef 0, i32 noundef 1024)
%137 = load i32, ptr %6, align 4
%138 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%139 = call i64 @recv(i32 noundef %137, ptr noundef %138, i32 noundef 1024, i32 noundef 0)
%140 = icmp sle i64 %139, 0
br i1 %140, label %141, label %144
141: ; preds = %134
%142 = load i32, ptr @stderr, align 4
%143 = call i32 @fprintf(i32 noundef %142, ptr noundef @.str.7)
br label %158
144: ; preds = %134
%145 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%146 = call i64 @strcmp(ptr noundef %145, ptr noundef @.str.9)
%147 = icmp eq i64 %146, 0
br i1 %147, label %148, label %150
148: ; preds = %144
%149 = call i32 @printf(ptr noundef @.str.10)
br label %153
150: ; preds = %144
%151 = load i32, ptr @stderr, align 4
%152 = call i32 @fprintf(i32 noundef %151, ptr noundef @.str.11)
br label %153
153: ; preds = %150, %148
%154 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%155 = call i32 @memset(ptr noundef %154, i32 noundef 0, i32 noundef 1024)
%156 = load ptr, ptr %9, align 8
%157 = call i32 @fclose(ptr noundef %156)
br label %158
158: ; preds = %153, %141, %131, %109, %99, %80, %73, %63, %17
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @ftell(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ...) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpzwr7y051.c'
source_filename = "/tmp/tmpzwr7y051.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @find(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
%8 = load ptr, ptr %3, align 8
%9 = call i32 @strlen(ptr noundef %8)
store i32 %9, ptr %7, align 4
store i32 0, ptr %6, align 4
br label %10
10: ; preds = %28, %2
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %7, align 4
%13 = sub nsw i32 %12, 1
%14 = icmp slt i32 %11, %13
br i1 %14, label %15, label %31
15: ; preds = %10
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %6, 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 %27
25: ; preds = %15
%26 = load i32, ptr %6, align 4
store i32 %26, ptr %5, align 4
br label %31
27: ; preds = %15
br label %28
28: ; preds = %27
%29 = load i32, ptr %6, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %6, align 4
br label %10, !llvm.loop !6
31: ; preds = %25, %10
%32 = load i32, ptr %5, align 4
%33 = trunc i32 %32 to i8
ret i8 %33
}
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/tmpzwr7y051.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @find(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
%8 = load ptr, ptr %3, align 8
%9 = call i32 @strlen(ptr noundef %8)
store i32 %9, ptr %7, align 4
store i32 0, ptr %6, align 4
%10 = load i32, ptr %6, align 4
%11 = load i32, ptr %7, align 4
%12 = sub nsw i32 %11, 1
%13 = icmp slt i32 %10, %12
br i1 %13, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %27
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %6, 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 %26
24: ; preds = %14
%25 = load i32, ptr %6, align 4
store i32 %25, ptr %5, align 4
br label %34
26: ; preds = %14
br label %27
27: ; preds = %26
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %6, align 4
%30 = load i32, ptr %6, align 4
%31 = load i32, ptr %7, align 4
%32 = sub nsw i32 %31, 1
%33 = icmp slt i32 %30, %32
br i1 %33, label %14, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %27
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %2
br label %34
34: ; preds = %.loopexit, %24
%35 = load i32, ptr %5, align 4
%36 = trunc i32 %35 to i8
ret i8 %36
}
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/tmpat9nmxfm.c'
source_filename = "/tmp/tmpat9nmxfm.c"
target datalayout = "e-m:e-p270: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/tmpat9nmxfm.c"
target datalayout = "e-m:e-p270: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/tmpo1dans7d.c'
source_filename = "/tmp/tmpo1dans7d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Dorado9211ToggleClock() #0 {
%1 = call i32 (...) @Dorado9211SetClock()
%2 = call i32 (...) @Dorado9211ClearClock()
ret void
}
declare i32 @Dorado9211SetClock(...) #1
declare i32 @Dorado9211ClearClock(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo1dans7d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Dorado9211ToggleClock() #0 {
%1 = call i32 (...) @Dorado9211SetClock()
%2 = call i32 (...) @Dorado9211ClearClock()
ret void
}
declare i32 @Dorado9211SetClock(...) #1
declare i32 @Dorado9211ClearClock(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplcjtf1wf.c'
source_filename = "/tmp/tmplcjtf1wf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @match(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca i8, align 1
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %5, align 8
%13 = load i8, ptr %11, align 1
store i8 %13, ptr %8, align 1
br label %14
14: ; preds = %52, %30, %2
%15 = load ptr, ptr %4, align 8
%16 = load i8, ptr %15, align 1
store i8 %16, ptr %6, align 1
%17 = call i64 @isspace(i8 noundef zeroext %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %14
store i32 0, ptr %3, align 4
br label %53
20: ; preds = %14
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %4, align 8
%23 = load i8, ptr %6, align 1
%24 = call signext i8 @tolower(i8 noundef zeroext %23)
store i8 %24, ptr %6, align 1
%25 = load i8, ptr %6, align 1
%26 = sext i8 %25 to i32
%27 = load i8, ptr %8, align 1
%28 = sext i8 %27 to i32
%29 = icmp ne i32 %26, %28
br i1 %29, label %30, label %31
30: ; preds = %20
br label %14
31: ; preds = %20
%32 = load ptr, ptr %5, align 8
store ptr %32, ptr %9, align 8
%33 = load ptr, ptr %4, align 8
store ptr %33, ptr %10, align 8
br label %34
34: ; preds = %51, %31
%35 = load ptr, ptr %9, align 8
%36 = getelementptr inbounds i8, ptr %35, i32 1
store ptr %36, ptr %9, align 8
%37 = load i8, ptr %35, align 1
store i8 %37, ptr %7, align 1
%38 = icmp ne i8 %37, 0
br i1 %38, label %40, label %39
39: ; preds = %34
store i32 1, ptr %3, align 4
br label %53
40: ; preds = %34
%41 = load ptr, ptr %10, align 8
%42 = getelementptr inbounds i8, ptr %41, i32 1
store ptr %42, ptr %10, align 8
%43 = load i8, ptr %41, align 1
%44 = call signext i8 @tolower(i8 noundef zeroext %43)
store i8 %44, ptr %6, align 1
%45 = load i8, ptr %6, align 1
%46 = sext i8 %45 to i32
%47 = load i8, ptr %7, align 1
%48 = sext i8 %47 to i32
%49 = icmp ne i32 %46, %48
br i1 %49, label %50, label %51
50: ; preds = %40
br label %52
51: ; preds = %40
br label %34
52: ; preds = %50
br label %14
53: ; preds = %39, %19
%54 = load i32, ptr %3, align 4
ret i32 %54
}
declare i64 @isspace(i8 noundef zeroext) #1
declare signext i8 @tolower(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplcjtf1wf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @match(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca i8, align 1
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %5, align 8
%13 = load i8, ptr %11, align 1
store i8 %13, ptr %8, align 1
%14 = load ptr, ptr %4, align 8
%15 = load i8, ptr %14, align 1
store i8 %15, ptr %6, align 1
%16 = call i64 @isspace(i8 noundef zeroext %15)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %.lr.ph3
.lr.ph3: ; preds = %2
br label %19
._crit_edge4: ; preds = %.backedge
br label %18
18: ; preds = %._crit_edge4, %2
store i32 0, ptr %3, align 4
br label %59
19: ; preds = %.lr.ph3, %.backedge
%20 = load ptr, ptr %4, align 8
%21 = getelementptr inbounds i8, ptr %20, i32 1
store ptr %21, ptr %4, align 8
%22 = load i8, ptr %6, align 1
%23 = call signext i8 @tolower(i8 noundef zeroext %22)
store i8 %23, ptr %6, align 1
%24 = load i8, ptr %6, align 1
%25 = sext i8 %24 to i32
%26 = load i8, ptr %8, align 1
%27 = sext i8 %26 to i32
%28 = icmp ne i32 %25, %27
br i1 %28, label %29, label %34
29: ; preds = %19
br label %.backedge
.backedge: ; preds = %29, %58
%30 = load ptr, ptr %4, align 8
%31 = load i8, ptr %30, align 1
store i8 %31, ptr %6, align 1
%32 = call i64 @isspace(i8 noundef zeroext %31)
%33 = icmp ne i64 %32, 0
br i1 %33, label %._crit_edge4, label %19
34: ; preds = %19
%35 = load ptr, ptr %5, align 8
store ptr %35, ptr %9, align 8
%36 = load ptr, ptr %4, align 8
store ptr %36, ptr %10, align 8
%37 = load ptr, ptr %9, align 8
%38 = getelementptr inbounds i8, ptr %37, i32 1
store ptr %38, ptr %9, align 8
%39 = load i8, ptr %37, align 1
store i8 %39, ptr %7, align 1
%40 = icmp ne i8 %39, 0
br i1 %40, label %.lr.ph, label %._crit_edge
.lr.ph: ; preds = %34
br label %47
41: ; preds = %47
%42 = load ptr, ptr %9, align 8
%43 = getelementptr inbounds i8, ptr %42, i32 1
store ptr %43, ptr %9, align 8
%44 = load i8, ptr %42, align 1
store i8 %44, ptr %7, align 1
%45 = icmp ne i8 %44, 0
br i1 %45, label %47, label %._crit_edge1
._crit_edge: ; preds = %34
br label %46
._crit_edge1: ; preds = %41
br label %46
46: ; preds = %._crit_edge1, %._crit_edge
store i32 1, ptr %3, align 4
br label %59
47: ; preds = %.lr.ph, %41
%48 = load ptr, ptr %10, align 8
%49 = getelementptr inbounds i8, ptr %48, i32 1
store ptr %49, ptr %10, align 8
%50 = load i8, ptr %48, align 1
%51 = call signext i8 @tolower(i8 noundef zeroext %50)
store i8 %51, ptr %6, align 1
%52 = load i8, ptr %6, align 1
%53 = sext i8 %52 to i32
%54 = load i8, ptr %7, align 1
%55 = sext i8 %54 to i32
%56 = icmp ne i32 %53, %55
br i1 %56, label %57, label %41
57: ; preds = %47
br label %58
58: ; preds = %57
br label %.backedge
59: ; preds = %46, %18
%60 = load i32, ptr %3, align 4
ret i32 %60
}
declare i64 @isspace(i8 noundef zeroext) #1
declare signext i8 @tolower(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpq3ze73b4.c'
source_filename = "/tmp/tmpq3ze73b4.c"
target datalayout = "e-m:e-p270: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/tmpq3ze73b4.c"
target datalayout = "e-m:e-p270: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/tmp9jq2owrj.c'
source_filename = "/tmp/tmp9jq2owrj.c"
target datalayout = "e-m:e-p270: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/tmp9jq2owrj.c"
target datalayout = "e-m:e-p270: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/tmpudhijqpx.c'
source_filename = "/tmp/tmpudhijqpx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpudhijqpx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpo6nllhrs.c'
source_filename = "/tmp/tmpo6nllhrs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@RTC_ALM_READ = dso_local global i32 0, align 4
@RTC_ALM_SET = dso_local global i32 0, align 4
@RTC_RD_TIME = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo6nllhrs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@RTC_ALM_READ = dso_local global i32 0, align 4
@RTC_ALM_SET = dso_local global i32 0, align 4
@RTC_RD_TIME = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3_zea_co.c'
source_filename = "/tmp/tmp3_zea_co.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"/var/lib/games/greedy.scores\00", align 1
@.str.1 = private unnamed_addr constant [35 x i8] c"\0AUnable to open hiscore file \22%s\22 \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"for read.\0A\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"for write.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @openScoreFile(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call ptr @fopen(ptr noundef @.str, ptr noundef %4)
store ptr %5, ptr %3, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %22
7: ; preds = %1
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str)
%9 = load ptr, ptr %2, align 8
%10 = call i64 @strcmp(ptr noundef %9, ptr noundef @.str.2)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %7
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %21
14: ; preds = %7
%15 = load ptr, ptr %2, align 8
%16 = call i64 @strcmp(ptr noundef %15, ptr noundef @.str.4)
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %20
20: ; preds = %18, %14
br label %21
21: ; preds = %20, %12
br label %22
22: ; preds = %21, %1
%23 = load ptr, ptr %3, align 8
ret ptr %23
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @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/tmp3_zea_co.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"/var/lib/games/greedy.scores\00", align 1
@.str.1 = private unnamed_addr constant [35 x i8] c"\0AUnable to open hiscore file \22%s\22 \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"for read.\0A\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"for write.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @openScoreFile(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call ptr @fopen(ptr noundef @.str, ptr noundef %4)
store ptr %5, ptr %3, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %22
7: ; preds = %1
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str)
%9 = load ptr, ptr %2, align 8
%10 = call i64 @strcmp(ptr noundef %9, ptr noundef @.str.2)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %7
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %21
14: ; preds = %7
%15 = load ptr, ptr %2, align 8
%16 = call i64 @strcmp(ptr noundef %15, ptr noundef @.str.4)
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %20
20: ; preds = %18, %14
br label %21
21: ; preds = %20, %12
br label %22
22: ; preds = %21, %1
%23 = load ptr, ptr %3, align 8
ret ptr %23
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @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/tmp5vtzi17b.c'
source_filename = "/tmp/tmp5vtzi17b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isascii.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isascii should be 0 for 0xb9\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isascii_0xb9() #0 {
%1 = call i64 @isascii(i32 noundef 185)
%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 930, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isascii(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/tmp5vtzi17b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isascii.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isascii should be 0 for 0xb9\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isascii_0xb9() #0 {
%1 = call i64 @isascii(i32 noundef 185)
%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 930, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isascii(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/tmptpg1a1op.c'
source_filename = "/tmp/tmptpg1a1op.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c" matrix not implemented \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @CmdMatrix(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = call i32 @fprintRTF(ptr noundef @.str)
%5 = call ptr (...) @getBraceParam()
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @free(ptr noundef %6)
ret void
}
declare i32 @fprintRTF(ptr noundef) #1
declare ptr @getBraceParam(...) #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/tmptpg1a1op.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c" matrix not implemented \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @CmdMatrix(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = call i32 @fprintRTF(ptr noundef @.str)
%5 = call ptr (...) @getBraceParam()
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @free(ptr noundef %6)
ret void
}
declare i32 @fprintRTF(ptr noundef) #1
declare ptr @getBraceParam(...) #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/tmpr8bmrtsq.c'
source_filename = "/tmp/tmpr8bmrtsq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Enter No. of Toys\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"Hi\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"\0A%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%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 ptr, align 8
store i32 0, ptr %1, align 4
store i32 1, ptr %3, align 4
store i32 1, ptr %5, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%12 = load i32, ptr %2, align 4
%13 = sext i32 %12 to i64
%14 = mul i64 %13, 4
%15 = trunc i64 %14 to i32
%16 = call i64 @malloc(i32 noundef %15)
%17 = inttoptr i64 %16 to ptr
store ptr %17, ptr %9, align 8
store i32 0, ptr %6, align 4
br label %18
18: ; preds = %61, %0
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %2, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %64
22: ; preds = %18
%23 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %4)
%24 = load i32, ptr %6, align 4
store i32 %24, ptr %7, align 4
br label %25
25: ; preds = %42, %22
%26 = load i32, ptr %6, align 4
%27 = icmp sgt i32 %26, 0
br i1 %27, label %28, label %43
28: ; preds = %25
%29 = load i32, ptr %4, align 4
%30 = load ptr, ptr %9, align 8
%31 = load i32, ptr %6, align 4
%32 = sub nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %30, i64 %33
%35 = load i32, ptr %34, align 4
%36 = icmp slt i32 %29, %35
br i1 %36, label %37, label %42
37: ; preds = %28
%38 = load i32, ptr %6, align 4
%39 = add nsw i32 %38, -1
store i32 %39, ptr %6, align 4
%40 = load i32, ptr %6, align 4
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %40)
br label %42
42: ; preds = %37, %28
br label %25, !llvm.loop !6
43: ; preds = %25
%44 = load ptr, ptr %9, align 8
%45 = load i32, ptr %6, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i32, ptr %44, i64 %46
%48 = load i32, ptr %47, align 4
store i32 %48, ptr %8, align 4
%49 = load i32, ptr %4, align 4
%50 = load ptr, ptr %9, align 8
%51 = load i32, ptr %6, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i32, ptr %50, i64 %52
store i32 %49, ptr %53, align 4
%54 = load i32, ptr %8, align 4
%55 = load ptr, ptr %9, align 8
%56 = load i32, ptr %7, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, ptr %55, i64 %57
store i32 %54, ptr %58, align 4
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%60 = load i32, ptr %7, align 4
store i32 %60, ptr %6, align 4
br label %61
61: ; preds = %43
%62 = load i32, ptr %6, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %6, align 4
br label %18, !llvm.loop !8
64: ; preds = %18
store i32 0, ptr %6, align 4
br label %65
65: ; preds = %76, %64
%66 = load i32, ptr %6, align 4
%67 = load i32, ptr %2, align 4
%68 = icmp slt i32 %66, %67
br i1 %68, label %69, label %79
69: ; preds = %65
%70 = load ptr, ptr %9, align 8
%71 = load i32, ptr %6, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i32, ptr %70, i64 %72
%74 = load i32, ptr %73, align 4
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %74)
br label %76
76: ; preds = %69
%77 = load i32, ptr %6, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %6, align 4
br label %65, !llvm.loop !9
79: ; preds = %65
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, 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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr8bmrtsq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Enter No. of Toys\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"Hi\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"\0A%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%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 ptr, align 8
store i32 0, ptr %1, align 4
store i32 1, ptr %3, align 4
store i32 1, ptr %5, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%12 = load i32, ptr %2, align 4
%13 = sext i32 %12 to i64
%14 = mul i64 %13, 4
%15 = trunc i64 %14 to i32
%16 = call i64 @malloc(i32 noundef %15)
%17 = inttoptr i64 %16 to ptr
store ptr %17, ptr %9, align 8
store i32 0, ptr %6, align 4
%18 = load i32, ptr %6, align 4
%19 = load i32, ptr %2, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %.lr.ph2, label %67
.lr.ph2: ; preds = %0
br label %21
21: ; preds = %.lr.ph2, %61
%22 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %4)
%23 = load i32, ptr %6, align 4
store i32 %23, ptr %7, align 4
%24 = load i32, ptr %6, align 4
%25 = icmp sgt i32 %24, 0
br i1 %25, label %.lr.ph, label %43
.lr.ph: ; preds = %21
br label %26
26: ; preds = %.lr.ph, %40
%27 = load i32, ptr %4, align 4
%28 = load ptr, ptr %9, align 8
%29 = load i32, ptr %6, align 4
%30 = sub nsw i32 %29, 1
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %28, i64 %31
%33 = load i32, ptr %32, align 4
%34 = icmp slt i32 %27, %33
br i1 %34, label %35, label %40
35: ; preds = %26
%36 = load i32, ptr %6, align 4
%37 = add nsw i32 %36, -1
store i32 %37, ptr %6, align 4
%38 = load i32, ptr %6, align 4
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %38)
br label %40
40: ; preds = %35, %26
%41 = load i32, ptr %6, align 4
%42 = icmp sgt i32 %41, 0
br i1 %42, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %40
br label %43
43: ; preds = %._crit_edge, %21
%44 = load ptr, ptr %9, align 8
%45 = load i32, ptr %6, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i32, ptr %44, i64 %46
%48 = load i32, ptr %47, align 4
store i32 %48, ptr %8, align 4
%49 = load i32, ptr %4, align 4
%50 = load ptr, ptr %9, align 8
%51 = load i32, ptr %6, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i32, ptr %50, i64 %52
store i32 %49, ptr %53, align 4
%54 = load i32, ptr %8, align 4
%55 = load ptr, ptr %9, align 8
%56 = load i32, ptr %7, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, ptr %55, i64 %57
store i32 %54, ptr %58, align 4
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%60 = load i32, ptr %7, align 4
store i32 %60, ptr %6, align 4
br label %61
61: ; preds = %43
%62 = load i32, ptr %6, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %6, align 4
%64 = load i32, ptr %6, align 4
%65 = load i32, ptr %2, align 4
%66 = icmp slt i32 %64, %65
br i1 %66, label %21, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %61
br label %67
67: ; preds = %._crit_edge3, %0
store i32 0, ptr %6, align 4
%68 = load i32, ptr %6, align 4
%69 = load i32, ptr %2, align 4
%70 = icmp slt i32 %68, %69
br i1 %70, label %.lr.ph5, label %84
.lr.ph5: ; preds = %67
br label %71
71: ; preds = %.lr.ph5, %78
%72 = load ptr, ptr %9, align 8
%73 = load i32, ptr %6, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i32, ptr %72, i64 %74
%76 = load i32, ptr %75, align 4
%77 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %76)
br label %78
78: ; preds = %71
%79 = load i32, ptr %6, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %6, align 4
%81 = load i32, ptr %6, align 4
%82 = load i32, ptr %2, align 4
%83 = icmp slt i32 %81, %82
br i1 %83, label %71, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %78
br label %84
84: ; preds = %._crit_edge6, %67
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, 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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpjlc7g8pl.c'
source_filename = "/tmp/tmpjlc7g8pl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @print_unsigned_decimal(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 1, ptr %5, align 4
store i32 1000000000, ptr %6, align 4
store i32 0, ptr %7, align 4
%9 = load i32, ptr %4, align 4
store i32 %9, ptr %8, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = load ptr, ptr %3, align 8
%14 = call i32 @print_buff_add(ptr noundef %13, i8 noundef signext 48)
br label %15
15: ; preds = %12, %2
br label %16
16: ; preds = %41, %15
%17 = load i32, ptr %6, align 4
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %49
19: ; preds = %16
%20 = load i32, ptr %8, align 4
%21 = load i32, ptr %6, align 4
%22 = udiv i32 %20, %21
store i32 %22, ptr %7, align 4
%23 = load i32, ptr %7, align 4
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %31
25: ; preds = %19
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %7, align 4
%28 = add nsw i32 48, %27
%29 = trunc i32 %28 to i8
%30 = call i32 @print_buff_add(ptr noundef %26, i8 noundef signext %29)
store i32 0, ptr %5, align 4
br label %41
31: ; preds = %19
%32 = load i32, ptr %5, align 4
%33 = icmp ne i32 %32, 0
br i1 %33, label %40, label %34
34: ; preds = %31
%35 = load ptr, ptr %3, align 8
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 48, %36
%38 = trunc i32 %37 to i8
%39 = call i32 @print_buff_add(ptr noundef %35, i8 noundef signext %38)
br label %40
40: ; preds = %34, %31
br label %41
41: ; preds = %40, %25
%42 = load i32, ptr %8, align 4
%43 = load i32, ptr %6, align 4
%44 = load i32, ptr %7, align 4
%45 = mul i32 %43, %44
%46 = sub i32 %42, %45
store i32 %46, ptr %8, align 4
%47 = load i32, ptr %6, align 4
%48 = udiv i32 %47, 10
store i32 %48, ptr %6, align 4
br label %16, !llvm.loop !6
49: ; preds = %16
ret void
}
declare i32 @print_buff_add(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/tmpjlc7g8pl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @print_unsigned_decimal(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 1, ptr %5, align 4
store i32 1000000000, ptr %6, align 4
store i32 0, ptr %7, align 4
%9 = load i32, ptr %4, align 4
store i32 %9, ptr %8, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = load ptr, ptr %3, align 8
%14 = call i32 @print_buff_add(ptr noundef %13, i8 noundef signext 48)
br label %15
15: ; preds = %12, %2
%16 = load i32, ptr %6, align 4
%17 = icmp ne i32 %16, 0
br i1 %17, label %.lr.ph, label %50
.lr.ph: ; preds = %15
br label %18
18: ; preds = %.lr.ph, %40
%19 = load i32, ptr %8, align 4
%20 = load i32, ptr %6, align 4
%21 = udiv i32 %19, %20
store i32 %21, ptr %7, align 4
%22 = load i32, ptr %7, align 4
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %30
24: ; preds = %18
%25 = load ptr, ptr %3, align 8
%26 = load i32, ptr %7, align 4
%27 = add nsw i32 48, %26
%28 = trunc i32 %27 to i8
%29 = call i32 @print_buff_add(ptr noundef %25, i8 noundef signext %28)
store i32 0, ptr %5, align 4
br label %40
30: ; preds = %18
%31 = load i32, ptr %5, align 4
%32 = icmp ne i32 %31, 0
br i1 %32, label %39, label %33
33: ; preds = %30
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %7, align 4
%36 = add nsw i32 48, %35
%37 = trunc i32 %36 to i8
%38 = call i32 @print_buff_add(ptr noundef %34, i8 noundef signext %37)
br label %39
39: ; preds = %33, %30
br label %40
40: ; preds = %39, %24
%41 = load i32, ptr %8, align 4
%42 = load i32, ptr %6, align 4
%43 = load i32, ptr %7, align 4
%44 = mul i32 %42, %43
%45 = sub i32 %41, %44
store i32 %45, ptr %8, align 4
%46 = load i32, ptr %6, align 4
%47 = udiv i32 %46, 10
store i32 %47, ptr %6, align 4
%48 = load i32, ptr %6, align 4
%49 = icmp ne i32 %48, 0
br i1 %49, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %40
br label %50
50: ; preds = %._crit_edge, %15
ret void
}
declare i32 @print_buff_add(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/tmpt5hx3u8g.c'
source_filename = "/tmp/tmpt5hx3u8g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @arrayIndex(i8 noundef signext %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i8, align 1
store i8 %0, ptr %3, align 1
%4 = load i8, ptr %3, align 1
%5 = sext i8 %4 to i32
%6 = icmp eq i32 %5, 39
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 26, ptr %2, align 4
br label %13
8: ; preds = %1
%9 = load i8, ptr %3, align 1
%10 = call signext i8 @tolower(i8 noundef signext %9)
%11 = sext i8 %10 to i32
%12 = srem i32 %11, 97
store i32 %12, ptr %2, align 4
br label %13
13: ; preds = %8, %7
%14 = load i32, ptr %2, align 4
ret i32 %14
}
declare signext i8 @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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt5hx3u8g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @arrayIndex(i8 noundef signext %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i8, align 1
store i8 %0, ptr %3, align 1
%4 = load i8, ptr %3, align 1
%5 = sext i8 %4 to i32
%6 = icmp eq i32 %5, 39
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 26, ptr %2, align 4
br label %13
8: ; preds = %1
%9 = load i8, ptr %3, align 1
%10 = call signext i8 @tolower(i8 noundef signext %9)
%11 = sext i8 %10 to i32
%12 = srem i32 %11, 97
store i32 %12, ptr %2, align 4
br label %13
13: ; preds = %8, %7
%14 = load i32, ptr %2, align 4
ret i32 %14
}
declare signext i8 @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"}
|
; ModuleID = '/tmp/tmphg_3ubo9.c'
source_filename = "/tmp/tmphg_3ubo9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"Hello world from QA bundle s!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphg_3ubo9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"Hello world from QA bundle s!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpf82axhox.c'
source_filename = "/tmp/tmpf82axhox.c"
target datalayout = "e-m:e-p270: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.ifaddrs = type { ptr, i32, ptr, ptr }
%struct.TYPE_2__ = type { i64 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [37 x i8] c"Error: could not get interface list\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"getifaddrs()\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c" [*] Interface list:\0A\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c" %s (%s\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"no addr\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c")\0A\00", align 1
@IFF_LOOPBACK = dso_local global i32 0, align 4
@AF_INET = dso_local global i64 0, align 8
@IFF_BROADCAST = dso_local global i32 0, align 4
@AF_PACKET = dso_local global i64 0, align 8
@.str.6 = private unnamed_addr constant [30 x i8] c"Error: no loopback interface\0A\00", align 1
@.str.7 = private unnamed_addr constant [31 x i8] c"Error: no address on loopback\0A\00", align 1
@.str.8 = private unnamed_addr constant [26 x i8] c"Error: no eth0 interface\0A\00", align 1
@.str.9 = private unnamed_addr constant [27 x i8] c"Error: no address on eth0\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_iff_list() #0 {
%1 = alloca ptr, align 8
%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
store ptr null, ptr %1, align 8
%9 = call i32 @getifaddrs(ptr noundef %1)
store i32 %9, ptr %2, align 4
%10 = load i32, ptr %2, align 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %17
12: ; preds = %0
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str)
%15 = call i32 @perror(ptr noundef @.str.1)
%16 = call i32 @exit(i32 noundef 1) #3
unreachable
17: ; preds = %0
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%19 = load ptr, ptr %1, align 8
store ptr %19, ptr %3, align 8
br label %20
20: ; preds = %45, %17
%21 = load ptr, ptr %3, align 8
%22 = icmp ne ptr %21, null
br i1 %22, label %23, label %49
23: ; preds = %20
%24 = load ptr, ptr %3, align 8
%25 = getelementptr inbounds %struct.ifaddrs, ptr %24, i32 0, i32 0
%26 = load ptr, ptr %25, align 8
%27 = load ptr, ptr %3, align 8
%28 = getelementptr inbounds %struct.ifaddrs, ptr %27, i32 0, i32 2
%29 = load ptr, ptr %28, align 8
%30 = icmp eq ptr %29, null
br i1 %30, label %31, label %32
31: ; preds = %23
br label %37
32: ; preds = %23
%33 = load ptr, ptr %3, align 8
%34 = getelementptr inbounds %struct.ifaddrs, ptr %33, i32 0, i32 2
%35 = load ptr, ptr %34, align 8
%36 = call ptr @ip_to_string(ptr noundef %35)
br label %37
37: ; preds = %32, %31
%38 = phi ptr [ @.str.4, %31 ], [ %36, %32 ]
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %26, ptr noundef %38)
%40 = load ptr, ptr %3, align 8
%41 = getelementptr inbounds %struct.ifaddrs, ptr %40, i32 0, i32 1
%42 = load i32, ptr %41, align 8
%43 = call i32 @print_iff_flags(i32 noundef %42)
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %45
45: ; preds = %37
%46 = load ptr, ptr %3, align 8
%47 = getelementptr inbounds %struct.ifaddrs, ptr %46, i32 0, i32 3
%48 = load ptr, ptr %47, align 8
store ptr %48, ptr %3, align 8
br label %20, !llvm.loop !6
49: ; preds = %20
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
%50 = load ptr, ptr %1, align 8
store ptr %50, ptr %8, align 8
br label %51
51: ; preds = %103, %49
%52 = load ptr, ptr %8, align 8
%53 = icmp ne ptr %52, null
br i1 %53, label %54, label %107
54: ; preds = %51
%55 = load ptr, ptr %8, align 8
%56 = getelementptr inbounds %struct.ifaddrs, ptr %55, i32 0, i32 1
%57 = load i32, ptr %56, align 8
%58 = load i32, ptr @IFF_LOOPBACK, align 4
%59 = and i32 %57, %58
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %72
61: ; preds = %54
store i32 1, ptr %4, align 4
%62 = load ptr, ptr %8, align 8
%63 = getelementptr inbounds %struct.ifaddrs, ptr %62, i32 0, i32 2
%64 = load ptr, ptr %63, align 8
%65 = getelementptr inbounds %struct.TYPE_2__, ptr %64, i32 0, i32 0
%66 = load i64, ptr %65, align 8
%67 = load i64, ptr @AF_INET, align 8
%68 = icmp eq i64 %66, %67
br i1 %68, label %69, label %71
69: ; preds = %61
%70 = load ptr, ptr %8, align 8
store ptr %70, ptr %5, align 8
br label %71
71: ; preds = %69, %61
br label %102
72: ; preds = %54
%73 = load ptr, ptr %8, align 8
%74 = getelementptr inbounds %struct.ifaddrs, ptr %73, i32 0, i32 1
%75 = load i32, ptr %74, align 8
%76 = load i32, ptr @IFF_BROADCAST, align 4
%77 = and i32 %75, %76
%78 = icmp ne i32 %77, 0
br i1 %78, label %79, label %101
79: ; preds = %72
%80 = load ptr, ptr %8, align 8
%81 = getelementptr inbounds %struct.ifaddrs, ptr %80, i32 0, i32 2
%82 = load ptr, ptr %81, align 8
%83 = getelementptr inbounds %struct.TYPE_2__, ptr %82, i32 0, i32 0
%84 = load i64, ptr %83, align 8
%85 = load i64, ptr @AF_INET, align 8
%86 = icmp eq i64 %84, %85
br i1 %86, label %87, label %89
87: ; preds = %79
%88 = load ptr, ptr %8, align 8
store ptr %88, ptr %6, align 8
br label %100
89: ; preds = %79
%90 = load ptr, ptr %8, align 8
%91 = getelementptr inbounds %struct.ifaddrs, ptr %90, i32 0, i32 2
%92 = load ptr, ptr %91, align 8
%93 = getelementptr inbounds %struct.TYPE_2__, ptr %92, i32 0, i32 0
%94 = load i64, ptr %93, align 8
%95 = load i64, ptr @AF_PACKET, align 8
%96 = icmp eq i64 %94, %95
br i1 %96, label %97, label %99
97: ; preds = %89
%98 = load ptr, ptr %8, align 8
store ptr %98, ptr %7, align 8
br label %99
99: ; preds = %97, %89
br label %100
100: ; preds = %99, %87
br label %101
101: ; preds = %100, %72
br label %102
102: ; preds = %101, %71
br label %103
103: ; preds = %102
%104 = load ptr, ptr %8, align 8
%105 = getelementptr inbounds %struct.ifaddrs, ptr %104, i32 0, i32 3
%106 = load ptr, ptr %105, align 8
store ptr %106, ptr %8, align 8
br label %51, !llvm.loop !8
107: ; preds = %51
%108 = load i32, ptr %4, align 4
%109 = icmp ne i32 %108, 0
br i1 %109, label %114, label %110
110: ; preds = %107
%111 = load i32, ptr @stderr, align 4
%112 = call i32 @fprintf(i32 noundef %111, ptr noundef @.str.6)
%113 = call i32 @exit(i32 noundef 2) #3
unreachable
114: ; preds = %107
%115 = load ptr, ptr %5, align 8
%116 = icmp eq ptr %115, null
br i1 %116, label %117, label %121
117: ; preds = %114
%118 = load i32, ptr @stderr, align 4
%119 = call i32 @fprintf(i32 noundef %118, ptr noundef @.str.7)
%120 = call i32 @exit(i32 noundef 3) #3
unreachable
121: ; preds = %114
br label %122
122: ; preds = %121
%123 = load ptr, ptr %7, align 8
%124 = icmp eq ptr %123, null
br i1 %124, label %125, label %129
125: ; preds = %122
%126 = load i32, ptr @stderr, align 4
%127 = call i32 @fprintf(i32 noundef %126, ptr noundef @.str.8)
%128 = call i32 @exit(i32 noundef 4) #3
unreachable
129: ; preds = %122
%130 = load ptr, ptr %6, align 8
%131 = icmp eq ptr %130, null
br i1 %131, label %132, label %136
132: ; preds = %129
%133 = load i32, ptr @stderr, align 4
%134 = call i32 @fprintf(i32 noundef %133, ptr noundef @.str.9)
%135 = call i32 @exit(i32 noundef 5) #3
unreachable
136: ; preds = %129
br label %137
137: ; preds = %136
%138 = load ptr, ptr %1, align 8
%139 = call i32 @freeifaddrs(ptr noundef %138)
ret void
}
declare i32 @getifaddrs(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #1
declare ptr @ip_to_string(ptr noundef) #1
declare i32 @print_iff_flags(i32 noundef) #1
declare i32 @freeifaddrs(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf82axhox.c"
target datalayout = "e-m:e-p270: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.ifaddrs = type { ptr, i32, ptr, ptr }
%struct.TYPE_2__ = type { i64 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [37 x i8] c"Error: could not get interface list\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"getifaddrs()\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c" [*] Interface list:\0A\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c" %s (%s\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"no addr\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c")\0A\00", align 1
@IFF_LOOPBACK = dso_local global i32 0, align 4
@AF_INET = dso_local global i64 0, align 8
@IFF_BROADCAST = dso_local global i32 0, align 4
@AF_PACKET = dso_local global i64 0, align 8
@.str.6 = private unnamed_addr constant [30 x i8] c"Error: no loopback interface\0A\00", align 1
@.str.7 = private unnamed_addr constant [31 x i8] c"Error: no address on loopback\0A\00", align 1
@.str.8 = private unnamed_addr constant [26 x i8] c"Error: no eth0 interface\0A\00", align 1
@.str.9 = private unnamed_addr constant [27 x i8] c"Error: no address on eth0\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_iff_list() #0 {
%1 = alloca ptr, align 8
%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
store ptr null, ptr %1, align 8
%9 = call i32 @getifaddrs(ptr noundef %1)
store i32 %9, ptr %2, align 4
%10 = load i32, ptr %2, align 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %17
12: ; preds = %0
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str)
%15 = call i32 @perror(ptr noundef @.str.1)
%16 = call i32 @exit(i32 noundef 1) #3
unreachable
17: ; preds = %0
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%19 = load ptr, ptr %1, align 8
store ptr %19, ptr %3, align 8
%20 = load ptr, ptr %3, align 8
%21 = icmp ne ptr %20, null
br i1 %21, label %.lr.ph, label %50
.lr.ph: ; preds = %17
br label %22
22: ; preds = %.lr.ph, %44
%23 = load ptr, ptr %3, align 8
%24 = getelementptr inbounds %struct.ifaddrs, ptr %23, i32 0, i32 0
%25 = load ptr, ptr %24, align 8
%26 = load ptr, ptr %3, align 8
%27 = getelementptr inbounds %struct.ifaddrs, ptr %26, i32 0, i32 2
%28 = load ptr, ptr %27, align 8
%29 = icmp eq ptr %28, null
br i1 %29, label %30, label %31
30: ; preds = %22
br label %36
31: ; preds = %22
%32 = load ptr, ptr %3, align 8
%33 = getelementptr inbounds %struct.ifaddrs, ptr %32, i32 0, i32 2
%34 = load ptr, ptr %33, align 8
%35 = call ptr @ip_to_string(ptr noundef %34)
br label %36
36: ; preds = %31, %30
%37 = phi ptr [ @.str.4, %30 ], [ %35, %31 ]
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %25, ptr noundef %37)
%39 = load ptr, ptr %3, align 8
%40 = getelementptr inbounds %struct.ifaddrs, ptr %39, i32 0, i32 1
%41 = load i32, ptr %40, align 8
%42 = call i32 @print_iff_flags(i32 noundef %41)
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %44
44: ; preds = %36
%45 = load ptr, ptr %3, align 8
%46 = getelementptr inbounds %struct.ifaddrs, ptr %45, i32 0, i32 3
%47 = load ptr, ptr %46, align 8
store ptr %47, ptr %3, align 8
%48 = load ptr, ptr %3, align 8
%49 = icmp ne ptr %48, null
br i1 %49, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %44
br label %50
50: ; preds = %._crit_edge, %17
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
%51 = load ptr, ptr %1, align 8
store ptr %51, ptr %8, align 8
%52 = load ptr, ptr %8, align 8
%53 = icmp ne ptr %52, null
br i1 %53, label %.lr.ph2, label %109
.lr.ph2: ; preds = %50
br label %54
54: ; preds = %.lr.ph2, %103
%55 = load ptr, ptr %8, align 8
%56 = getelementptr inbounds %struct.ifaddrs, ptr %55, i32 0, i32 1
%57 = load i32, ptr %56, align 8
%58 = load i32, ptr @IFF_LOOPBACK, align 4
%59 = and i32 %57, %58
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %72
61: ; preds = %54
store i32 1, ptr %4, align 4
%62 = load ptr, ptr %8, align 8
%63 = getelementptr inbounds %struct.ifaddrs, ptr %62, i32 0, i32 2
%64 = load ptr, ptr %63, align 8
%65 = getelementptr inbounds %struct.TYPE_2__, ptr %64, i32 0, i32 0
%66 = load i64, ptr %65, align 8
%67 = load i64, ptr @AF_INET, align 8
%68 = icmp eq i64 %66, %67
br i1 %68, label %69, label %71
69: ; preds = %61
%70 = load ptr, ptr %8, align 8
store ptr %70, ptr %5, align 8
br label %71
71: ; preds = %69, %61
br label %102
72: ; preds = %54
%73 = load ptr, ptr %8, align 8
%74 = getelementptr inbounds %struct.ifaddrs, ptr %73, i32 0, i32 1
%75 = load i32, ptr %74, align 8
%76 = load i32, ptr @IFF_BROADCAST, align 4
%77 = and i32 %75, %76
%78 = icmp ne i32 %77, 0
br i1 %78, label %79, label %101
79: ; preds = %72
%80 = load ptr, ptr %8, align 8
%81 = getelementptr inbounds %struct.ifaddrs, ptr %80, i32 0, i32 2
%82 = load ptr, ptr %81, align 8
%83 = getelementptr inbounds %struct.TYPE_2__, ptr %82, i32 0, i32 0
%84 = load i64, ptr %83, align 8
%85 = load i64, ptr @AF_INET, align 8
%86 = icmp eq i64 %84, %85
br i1 %86, label %87, label %89
87: ; preds = %79
%88 = load ptr, ptr %8, align 8
store ptr %88, ptr %6, align 8
br label %100
89: ; preds = %79
%90 = load ptr, ptr %8, align 8
%91 = getelementptr inbounds %struct.ifaddrs, ptr %90, i32 0, i32 2
%92 = load ptr, ptr %91, align 8
%93 = getelementptr inbounds %struct.TYPE_2__, ptr %92, i32 0, i32 0
%94 = load i64, ptr %93, align 8
%95 = load i64, ptr @AF_PACKET, align 8
%96 = icmp eq i64 %94, %95
br i1 %96, label %97, label %99
97: ; preds = %89
%98 = load ptr, ptr %8, align 8
store ptr %98, ptr %7, align 8
br label %99
99: ; preds = %97, %89
br label %100
100: ; preds = %99, %87
br label %101
101: ; preds = %100, %72
br label %102
102: ; preds = %101, %71
br label %103
103: ; preds = %102
%104 = load ptr, ptr %8, align 8
%105 = getelementptr inbounds %struct.ifaddrs, ptr %104, i32 0, i32 3
%106 = load ptr, ptr %105, align 8
store ptr %106, ptr %8, align 8
%107 = load ptr, ptr %8, align 8
%108 = icmp ne ptr %107, null
br i1 %108, label %54, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %103
br label %109
109: ; preds = %._crit_edge3, %50
%110 = load i32, ptr %4, align 4
%111 = icmp ne i32 %110, 0
br i1 %111, label %116, label %112
112: ; preds = %109
%113 = load i32, ptr @stderr, align 4
%114 = call i32 @fprintf(i32 noundef %113, ptr noundef @.str.6)
%115 = call i32 @exit(i32 noundef 2) #3
unreachable
116: ; preds = %109
%117 = load ptr, ptr %5, align 8
%118 = icmp eq ptr %117, null
br i1 %118, label %119, label %123
119: ; preds = %116
%120 = load i32, ptr @stderr, align 4
%121 = call i32 @fprintf(i32 noundef %120, ptr noundef @.str.7)
%122 = call i32 @exit(i32 noundef 3) #3
unreachable
123: ; preds = %116
br label %124
124: ; preds = %123
%125 = load ptr, ptr %7, align 8
%126 = icmp eq ptr %125, null
br i1 %126, label %127, label %131
127: ; preds = %124
%128 = load i32, ptr @stderr, align 4
%129 = call i32 @fprintf(i32 noundef %128, ptr noundef @.str.8)
%130 = call i32 @exit(i32 noundef 4) #3
unreachable
131: ; preds = %124
%132 = load ptr, ptr %6, align 8
%133 = icmp eq ptr %132, null
br i1 %133, label %134, label %138
134: ; preds = %131
%135 = load i32, ptr @stderr, align 4
%136 = call i32 @fprintf(i32 noundef %135, ptr noundef @.str.9)
%137 = call i32 @exit(i32 noundef 5) #3
unreachable
138: ; preds = %131
br label %139
139: ; preds = %138
%140 = load ptr, ptr %1, align 8
%141 = call i32 @freeifaddrs(ptr noundef %140)
ret void
}
declare i32 @getifaddrs(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #1
declare ptr @ip_to_string(ptr noundef) #1
declare i32 @print_iff_flags(i32 noundef) #1
declare i32 @freeifaddrs(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp42qoezts.c'
source_filename = "/tmp/tmp42qoezts.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vuln(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [64 x i8], align 16
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = getelementptr inbounds [64 x i8], ptr %3, i64 0, i64 0
%6 = load ptr, ptr %2, align 8
%7 = call i32 @strcpy(ptr noundef %5, ptr noundef %6)
store i32 0, ptr %4, align 4
br label %8
8: ; preds = %12, %1
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 201527
br i1 %10, label %11, label %15
11: ; preds = %8
br label %12
12: ; preds = %11
%13 = load i32, ptr %4, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %4, align 4
br label %8, !llvm.loop !6
15: ; preds = %8
ret void
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp42qoezts.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vuln(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [64 x i8], align 16
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = getelementptr inbounds [64 x i8], ptr %3, i64 0, i64 0
%6 = load ptr, ptr %2, align 8
%7 = call i32 @strcpy(ptr noundef %5, ptr noundef %6)
store i32 0, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 201527
br i1 %9, label %.lr.ph, label %16
.lr.ph: ; preds = %1
br label %10
10: ; preds = %.lr.ph, %11
br label %11
11: ; preds = %10
%12 = load i32, ptr %4, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %4, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp slt i32 %14, 201527
br i1 %15, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %16
16: ; preds = %._crit_edge, %1
ret void
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpdj9r_3if.c'
source_filename = "/tmp/tmpdj9r_3if.c"
target datalayout = "e-m:e-p270: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/tmpdj9r_3if.c"
target datalayout = "e-m:e-p270: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/tmphzw4dgbn.c'
source_filename = "/tmp/tmphzw4dgbn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wgsecef2ned_d(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [3 x double], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
%11 = call i32 @vector_subtract(i32 noundef 3, ptr noundef %8, ptr noundef %9, ptr noundef %10)
%12 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %6, align 8
%15 = call i32 @wgsecef2ned(ptr noundef %12, ptr noundef %13, ptr noundef %14)
ret void
}
declare i32 @vector_subtract(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @wgsecef2ned(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphzw4dgbn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wgsecef2ned_d(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [3 x double], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
%11 = call i32 @vector_subtract(i32 noundef 3, ptr noundef %8, ptr noundef %9, ptr noundef %10)
%12 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %6, align 8
%15 = call i32 @wgsecef2ned(ptr noundef %12, ptr noundef %13, ptr noundef %14)
ret void
}
declare i32 @vector_subtract(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @wgsecef2ned(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpudewpm8o.c'
source_filename = "/tmp/tmpudewpm8o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"lack of param, exit..\0A\00", align 1
@.str.1 = private unnamed_addr constant [38 x i8] c"Good, No kernel panic found so far...\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"/tmp/Panic-log.txt\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"Open error!\0A\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%c\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 [65536 x i8], align 16
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %11, 2
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %102
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
store ptr %18, ptr %10, align 8
%19 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 0
%20 = call i32 @memset(ptr noundef %19, i32 noundef 32, i32 noundef 65536)
%21 = load ptr, ptr %10, align 8
%22 = call i32 @dni_get_mtdoops_info(ptr noundef %21)
%23 = load ptr, ptr %10, align 8
%24 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 0
%25 = call i32 @dni_read_mtdoops_data(ptr noundef %23, ptr noundef %24, i32 noundef 65536)
store i32 %25, ptr %9, align 4
%26 = load i32, ptr %9, align 4
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %32
28: ; preds = %15
%29 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 0
%30 = call i32 @strcpy(ptr noundef %29, ptr noundef @.str.1)
%31 = call i32 @strlen(ptr noundef @.str.1)
store i32 %31, ptr %9, align 4
br label %32
32: ; preds = %28, %15
%33 = call ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.3)
store ptr %33, ptr %7, align 8
%34 = icmp eq ptr %33, null
br i1 %34, label %35, label %37
35: ; preds = %32
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 -1, ptr %3, align 4
br label %102
37: ; preds = %32
br label %38
38: ; preds = %81, %37
%39 = load i32, ptr %8, align 4
%40 = add nsw i32 %39, 0
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 %41
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 60
br i1 %45, label %46, label %73
46: ; preds = %38
%47 = load i32, ptr %8, align 4
%48 = add nsw i32 %47, 1
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 %49
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = icmp sge i32 %52, 48
br i1 %53, label %54, label %73
54: ; preds = %46
%55 = load i32, ptr %8, align 4
%56 = add nsw i32 %55, 1
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 %57
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = icmp sle i32 %60, 55
br i1 %61, label %62, label %73
62: ; preds = %54
%63 = load i32, ptr %8, align 4
%64 = add nsw i32 %63, 2
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 %65
%67 = load i8, ptr %66, align 1
%68 = sext i8 %67 to i32
%69 = icmp eq i32 %68, 62
br i1 %69, label %70, label %73
70: ; preds = %62
%71 = load i32, ptr %8, align 4
%72 = add nsw i32 %71, 3
store i32 %72, ptr %8, align 4
br label %81
73: ; preds = %62, %54, %46, %38
%74 = load i32, ptr %8, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %8, align 4
%76 = sext i32 %74 to i64
%77 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 %76
%78 = load i8, ptr %77, align 1
%79 = load ptr, ptr %7, align 8
%80 = call i32 @fputc(i8 noundef signext %78, ptr noundef %79)
br label %81
81: ; preds = %73, %70
%82 = load i32, ptr %8, align 4
%83 = load i32, ptr %9, align 4
%84 = icmp slt i32 %82, %83
br i1 %84, label %38, label %85, !llvm.loop !6
85: ; preds = %81
store i32 0, ptr %8, align 4
br label %86
86: ; preds = %96, %85
%87 = load i32, ptr %8, align 4
%88 = icmp slt i32 %87, 4096
br i1 %88, label %89, label %99
89: ; preds = %86
%90 = load i32, ptr %8, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 %91
%93 = load i8, ptr %92, align 1
%94 = sext i8 %93 to i32
%95 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %94)
br label %96
96: ; preds = %89
%97 = load i32, ptr %8, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %8, align 4
br label %86, !llvm.loop !8
99: ; preds = %86
%100 = load ptr, ptr %7, align 8
%101 = call i32 @fclose(ptr noundef %100)
store i32 0, ptr %3, align 4
br label %102
102: ; preds = %99, %35, %13
%103 = load i32, ptr %3, align 4
ret i32 %103
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @dni_get_mtdoops_info(ptr noundef) #1
declare i32 @dni_read_mtdoops_data(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fputc(i8 noundef signext, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpudewpm8o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"lack of param, exit..\0A\00", align 1
@.str.1 = private unnamed_addr constant [38 x i8] c"Good, No kernel panic found so far...\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"/tmp/Panic-log.txt\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"Open error!\0A\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%c\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 [65536 x i8], align 16
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %11, 2
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %103
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
store ptr %18, ptr %10, align 8
%19 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 0
%20 = call i32 @memset(ptr noundef %19, i32 noundef 32, i32 noundef 65536)
%21 = load ptr, ptr %10, align 8
%22 = call i32 @dni_get_mtdoops_info(ptr noundef %21)
%23 = load ptr, ptr %10, align 8
%24 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 0
%25 = call i32 @dni_read_mtdoops_data(ptr noundef %23, ptr noundef %24, i32 noundef 65536)
store i32 %25, ptr %9, align 4
%26 = load i32, ptr %9, align 4
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %32
28: ; preds = %15
%29 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 0
%30 = call i32 @strcpy(ptr noundef %29, ptr noundef @.str.1)
%31 = call i32 @strlen(ptr noundef @.str.1)
store i32 %31, ptr %9, align 4
br label %32
32: ; preds = %28, %15
%33 = call ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.3)
store ptr %33, ptr %7, align 8
%34 = icmp eq ptr %33, null
br i1 %34, label %35, label %37
35: ; preds = %32
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 -1, ptr %3, align 4
br label %103
37: ; preds = %32
br label %38
38: ; preds = %81, %37
%39 = load i32, ptr %8, align 4
%40 = add nsw i32 %39, 0
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 %41
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 60
br i1 %45, label %46, label %73
46: ; preds = %38
%47 = load i32, ptr %8, align 4
%48 = add nsw i32 %47, 1
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 %49
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = icmp sge i32 %52, 48
br i1 %53, label %54, label %73
54: ; preds = %46
%55 = load i32, ptr %8, align 4
%56 = add nsw i32 %55, 1
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 %57
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = icmp sle i32 %60, 55
br i1 %61, label %62, label %73
62: ; preds = %54
%63 = load i32, ptr %8, align 4
%64 = add nsw i32 %63, 2
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 %65
%67 = load i8, ptr %66, align 1
%68 = sext i8 %67 to i32
%69 = icmp eq i32 %68, 62
br i1 %69, label %70, label %73
70: ; preds = %62
%71 = load i32, ptr %8, align 4
%72 = add nsw i32 %71, 3
store i32 %72, ptr %8, align 4
br label %81
73: ; preds = %62, %54, %46, %38
%74 = load i32, ptr %8, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %8, align 4
%76 = sext i32 %74 to i64
%77 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 %76
%78 = load i8, ptr %77, align 1
%79 = load ptr, ptr %7, align 8
%80 = call i32 @fputc(i8 noundef signext %78, ptr noundef %79)
br label %81
81: ; preds = %73, %70
%82 = load i32, ptr %8, align 4
%83 = load i32, ptr %9, align 4
%84 = icmp slt i32 %82, %83
br i1 %84, label %38, label %85, !llvm.loop !6
85: ; preds = %81
store i32 0, ptr %8, align 4
%86 = load i32, ptr %8, align 4
%87 = icmp slt i32 %86, 4096
br i1 %87, label %.lr.ph, label %100
.lr.ph: ; preds = %85
br label %88
88: ; preds = %.lr.ph, %95
%89 = load i32, ptr %8, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [65536 x i8], ptr %6, i64 0, i64 %90
%92 = load i8, ptr %91, align 1
%93 = sext i8 %92 to i32
%94 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %93)
br label %95
95: ; preds = %88
%96 = load i32, ptr %8, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %8, align 4
%98 = load i32, ptr %8, align 4
%99 = icmp slt i32 %98, 4096
br i1 %99, label %88, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %95
br label %100
100: ; preds = %._crit_edge, %85
%101 = load ptr, ptr %7, align 8
%102 = call i32 @fclose(ptr noundef %101)
store i32 0, ptr %3, align 4
br label %103
103: ; preds = %100, %35, %13
%104 = load i32, ptr %3, align 4
ret i32 %104
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @dni_get_mtdoops_info(ptr noundef) #1
declare i32 @dni_read_mtdoops_data(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fputc(i8 noundef signext, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpick9i2sc.c'
source_filename = "/tmp/tmpick9i2sc.c"
target datalayout = "e-m:e-p270: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/tmpick9i2sc.c"
target datalayout = "e-m:e-p270: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/tmphn813lte.c'
source_filename = "/tmp/tmphn813lte.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"[%04X]: \00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%02X \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @__xdump(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [256 x i8], align 16
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %9
9: ; preds = %87, %2
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %4, align 4
%12 = sdiv i32 %11, 16
%13 = add nsw i32 %12, 1
%14 = icmp slt i32 %10, %13
br i1 %14, label %15, label %90
15: ; preds = %9
store i32 0, ptr %7, align 4
%16 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%17 = load i32, ptr %7, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i32, ptr %5, align 4
%21 = mul nsw i32 %20, 16
%22 = and i32 %21, 65535
%23 = call i64 (ptr, ptr, ...) @sprintf(ptr noundef %19, ptr noundef @.str, i32 noundef %22)
%24 = load i32, ptr %7, align 4
%25 = sext i32 %24 to i64
%26 = add nsw i64 %25, %23
%27 = trunc i64 %26 to i32
store i32 %27, ptr %7, align 4
store i32 0, ptr %6, align 4
br label %28
28: ; preds = %60, %15
%29 = load i32, ptr %6, align 4
%30 = icmp slt i32 %29, 16
br i1 %30, label %31, label %38
31: ; preds = %28
%32 = load i32, ptr %6, align 4
%33 = load i32, ptr %5, align 4
%34 = mul nsw i32 %33, 16
%35 = add nsw i32 %32, %34
%36 = load i32, ptr %4, align 4
%37 = icmp slt i32 %35, %36
br label %38
38: ; preds = %31, %28
%39 = phi i1 [ false, %28 ], [ %37, %31 ]
br i1 %39, label %40, label %63
40: ; preds = %38
%41 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%42 = load i32, ptr %7, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
%45 = load ptr, ptr %3, align 8
%46 = load i32, ptr %6, align 4
%47 = load i32, ptr %5, align 4
%48 = mul nsw i32 %47, 16
%49 = add nsw i32 %46, %48
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i8, ptr %45, i64 %50
%52 = load i8, ptr %51, align 1
%53 = sext i8 %52 to i32
%54 = and i32 %53, 255
%55 = call i64 (ptr, ptr, ...) @sprintf(ptr noundef %44, ptr noundef @.str.1, i32 noundef %54)
%56 = load i32, ptr %7, align 4
%57 = sext i32 %56 to i64
%58 = add nsw i64 %57, %55
%59 = trunc i64 %58 to i32
store i32 %59, ptr %7, align 4
br label %60
60: ; preds = %40
%61 = load i32, ptr %6, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %6, align 4
br label %28, !llvm.loop !6
63: ; preds = %38
%64 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%65 = load i32, ptr %7, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8, ptr %64, i64 %66
%68 = call i64 (ptr, ptr, ...) @sprintf(ptr noundef %67, ptr noundef @.str.2)
%69 = load i32, ptr %7, align 4
%70 = sext i32 %69 to i64
%71 = add nsw i64 %70, %68
%72 = trunc i64 %71 to i32
store i32 %72, ptr %7, align 4
%73 = load i32, ptr @stderr, align 4
%74 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%75 = call i32 @fprintf(i32 noundef %73, ptr noundef @.str.3, ptr noundef %74)
%76 = load i32, ptr %6, align 4
%77 = icmp slt i32 %76, 16
br i1 %77, label %78, label %86
78: ; preds = %63
%79 = load i32, ptr %6, align 4
%80 = load i32, ptr %5, align 4
%81 = mul nsw i32 %80, 16
%82 = add nsw i32 %79, %81
%83 = load i32, ptr %4, align 4
%84 = icmp sge i32 %82, %83
br i1 %84, label %85, label %86
85: ; preds = %78
br label %90
86: ; preds = %78, %63
br label %87
87: ; preds = %86
%88 = load i32, ptr %5, align 4
%89 = add nsw i32 %88, 1
store i32 %89, ptr %5, align 4
br label %9, !llvm.loop !8
90: ; preds = %85, %9
%91 = load i32, ptr @stderr, align 4
%92 = call i32 @fflush(i32 noundef %91)
ret void
}
declare i64 @sprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @fflush(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphn813lte.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"[%04X]: \00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%02X \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @__xdump(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [256 x i8], align 16
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %4, align 4
%11 = sdiv i32 %10, 16
%12 = add nsw i32 %11, 1
%13 = icmp slt i32 %9, %12
br i1 %13, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %86
store i32 0, ptr %7, align 4
%15 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%16 = load i32, ptr %7, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = load i32, ptr %5, align 4
%20 = mul nsw i32 %19, 16
%21 = and i32 %20, 65535
%22 = call i64 (ptr, ptr, ...) @sprintf(ptr noundef %18, ptr noundef @.str, i32 noundef %21)
%23 = load i32, ptr %7, align 4
%24 = sext i32 %23 to i64
%25 = add nsw i64 %24, %22
%26 = trunc i64 %25 to i32
store i32 %26, ptr %7, align 4
store i32 0, ptr %6, align 4
br label %27
27: ; preds = %59, %14
%28 = load i32, ptr %6, align 4
%29 = icmp slt i32 %28, 16
br i1 %29, label %30, label %37
30: ; preds = %27
%31 = load i32, ptr %6, align 4
%32 = load i32, ptr %5, align 4
%33 = mul nsw i32 %32, 16
%34 = add nsw i32 %31, %33
%35 = load i32, ptr %4, align 4
%36 = icmp slt i32 %34, %35
br label %37
37: ; preds = %30, %27
%38 = phi i1 [ false, %27 ], [ %36, %30 ]
br i1 %38, label %39, label %62
39: ; preds = %37
%40 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%41 = load i32, ptr %7, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %40, i64 %42
%44 = load ptr, ptr %3, align 8
%45 = load i32, ptr %6, align 4
%46 = load i32, ptr %5, align 4
%47 = mul nsw i32 %46, 16
%48 = add nsw i32 %45, %47
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, ptr %44, i64 %49
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = and i32 %52, 255
%54 = call i64 (ptr, ptr, ...) @sprintf(ptr noundef %43, ptr noundef @.str.1, i32 noundef %53)
%55 = load i32, ptr %7, align 4
%56 = sext i32 %55 to i64
%57 = add nsw i64 %56, %54
%58 = trunc i64 %57 to i32
store i32 %58, ptr %7, align 4
br label %59
59: ; preds = %39
%60 = load i32, ptr %6, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %6, align 4
br label %27, !llvm.loop !6
62: ; preds = %37
%63 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%64 = load i32, ptr %7, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i8, ptr %63, i64 %65
%67 = call i64 (ptr, ptr, ...) @sprintf(ptr noundef %66, ptr noundef @.str.2)
%68 = load i32, ptr %7, align 4
%69 = sext i32 %68 to i64
%70 = add nsw i64 %69, %67
%71 = trunc i64 %70 to i32
store i32 %71, ptr %7, align 4
%72 = load i32, ptr @stderr, align 4
%73 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%74 = call i32 @fprintf(i32 noundef %72, ptr noundef @.str.3, ptr noundef %73)
%75 = load i32, ptr %6, align 4
%76 = icmp slt i32 %75, 16
br i1 %76, label %77, label %85
77: ; preds = %62
%78 = load i32, ptr %6, align 4
%79 = load i32, ptr %5, align 4
%80 = mul nsw i32 %79, 16
%81 = add nsw i32 %78, %80
%82 = load i32, ptr %4, align 4
%83 = icmp sge i32 %81, %82
br i1 %83, label %84, label %85
84: ; preds = %77
br label %94
85: ; preds = %77, %62
br label %86
86: ; preds = %85
%87 = load i32, ptr %5, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %5, align 4
%89 = load i32, ptr %5, align 4
%90 = load i32, ptr %4, align 4
%91 = sdiv i32 %90, 16
%92 = add nsw i32 %91, 1
%93 = icmp slt i32 %89, %92
br i1 %93, label %14, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %86
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %2
br label %94
94: ; preds = %.loopexit, %84
%95 = load i32, ptr @stderr, align 4
%96 = call i32 @fflush(i32 noundef %95)
ret void
}
declare i64 @sprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @fflush(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpuqwfm81f.c'
source_filename = "/tmp/tmpuqwfm81f.c"
target datalayout = "e-m:e-p270: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/tmpuqwfm81f.c"
target datalayout = "e-m:e-p270: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/tmpbbu_6la9.c'
source_filename = "/tmp/tmpbbu_6la9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ArgumentPassing(float noundef %0, double noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca double, align 8
store float %0, ptr %3, align 4
store double %1, ptr %4, align 8
%5 = load float, ptr %3, align 4
%6 = call i32 @DoubleParameter(float noundef %5)
%7 = load float, ptr %3, align 4
%8 = fpext float %7 to double
%9 = call i32 @LongDoubleParameter(double noundef %8)
%10 = load double, ptr %4, align 8
%11 = call i32 @LongDoubleParameter(double noundef %10)
ret void
}
declare i32 @DoubleParameter(float noundef) #1
declare i32 @LongDoubleParameter(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/tmpbbu_6la9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ArgumentPassing(float noundef %0, double noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca double, align 8
store float %0, ptr %3, align 4
store double %1, ptr %4, align 8
%5 = load float, ptr %3, align 4
%6 = call i32 @DoubleParameter(float noundef %5)
%7 = load float, ptr %3, align 4
%8 = fpext float %7 to double
%9 = call i32 @LongDoubleParameter(double noundef %8)
%10 = load double, ptr %4, align 8
%11 = call i32 @LongDoubleParameter(double noundef %10)
ret void
}
declare i32 @DoubleParameter(float noundef) #1
declare i32 @LongDoubleParameter(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/tmpf29ssyrm.c'
source_filename = "/tmp/tmpf29ssyrm.c"
target datalayout = "e-m:e-p270: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/tmpf29ssyrm.c"
target datalayout = "e-m:e-p270: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/tmp85xr7_ne.c'
source_filename = "/tmp/tmp85xr7_ne.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @send_file(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [2014 x i8], align 16
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store ptr null, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = call ptr @fopen(ptr noundef %7, ptr noundef @.str)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %15
11: ; preds = %2
%12 = load i32, ptr %3, align 4
%13 = load ptr, ptr %4, align 8
%14 = call i32 @not_found(i32 noundef %12, ptr noundef %13)
br label %34
15: ; preds = %2
%16 = getelementptr inbounds [2014 x i8], ptr %6, i64 0, i64 0
%17 = load ptr, ptr %5, align 8
%18 = call i32 @fgets(ptr noundef %16, i32 noundef 2014, ptr noundef %17)
br label %19
19: ; preds = %24, %15
%20 = load ptr, ptr %5, align 8
%21 = call i32 @feof(ptr noundef %20)
%22 = icmp ne i32 %21, 0
%23 = xor i1 %22, true
br i1 %23, label %24, label %33
24: ; preds = %19
%25 = load i32, ptr %3, align 4
%26 = getelementptr inbounds [2014 x i8], ptr %6, i64 0, i64 0
%27 = getelementptr inbounds [2014 x i8], ptr %6, i64 0, i64 0
%28 = call i32 @strlen(ptr noundef %27)
%29 = call i32 @send(i32 noundef %25, ptr noundef %26, i32 noundef %28, i32 noundef 0)
%30 = getelementptr inbounds [2014 x i8], ptr %6, i64 0, i64 0
%31 = load ptr, ptr %5, align 8
%32 = call i32 @fgets(ptr noundef %30, i32 noundef 2014, ptr noundef %31)
br label %19, !llvm.loop !6
33: ; preds = %19
br label %34
34: ; preds = %33, %11
%35 = load ptr, ptr %5, align 8
%36 = call i32 @fclose(ptr noundef %35)
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @not_found(i32 noundef, ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @feof(ptr noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp85xr7_ne.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @send_file(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [2014 x i8], align 16
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store ptr null, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = call ptr @fopen(ptr noundef %7, ptr noundef @.str)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %15
11: ; preds = %2
%12 = load i32, ptr %3, align 4
%13 = load ptr, ptr %4, align 8
%14 = call i32 @not_found(i32 noundef %12, ptr noundef %13)
br label %37
15: ; preds = %2
%16 = getelementptr inbounds [2014 x i8], ptr %6, i64 0, i64 0
%17 = load ptr, ptr %5, align 8
%18 = call i32 @fgets(ptr noundef %16, i32 noundef 2014, ptr noundef %17)
%19 = load ptr, ptr %5, align 8
%20 = call i32 @feof(ptr noundef %19)
%21 = icmp ne i32 %20, 0
%22 = xor i1 %21, true
br i1 %22, label %.lr.ph, label %36
.lr.ph: ; preds = %15
br label %23
23: ; preds = %.lr.ph, %23
%24 = load i32, ptr %3, align 4
%25 = getelementptr inbounds [2014 x i8], ptr %6, i64 0, i64 0
%26 = getelementptr inbounds [2014 x i8], ptr %6, i64 0, i64 0
%27 = call i32 @strlen(ptr noundef %26)
%28 = call i32 @send(i32 noundef %24, ptr noundef %25, i32 noundef %27, i32 noundef 0)
%29 = getelementptr inbounds [2014 x i8], ptr %6, i64 0, i64 0
%30 = load ptr, ptr %5, align 8
%31 = call i32 @fgets(ptr noundef %29, i32 noundef 2014, ptr noundef %30)
%32 = load ptr, ptr %5, align 8
%33 = call i32 @feof(ptr noundef %32)
%34 = icmp ne i32 %33, 0
%35 = xor i1 %34, true
br i1 %35, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %36
36: ; preds = %._crit_edge, %15
br label %37
37: ; preds = %36, %11
%38 = load ptr, ptr %5, align 8
%39 = call i32 @fclose(ptr noundef %38)
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @not_found(i32 noundef, ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @feof(ptr noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp8tbu4dzq.c'
source_filename = "/tmp/tmp8tbu4dzq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stristr(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %8, align 8
br label %10
10: ; preds = %70, %2
%11 = load ptr, ptr %8, align 8
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %73
15: ; preds = %10
br label %16
16: ; preds = %32, %15
%17 = load ptr, ptr %8, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %29
21: ; preds = %16
%22 = load ptr, ptr %8, align 8
%23 = load i8, ptr %22, align 1
%24 = call i64 @toupper(i8 noundef signext %23)
%25 = load ptr, ptr %5, align 8
%26 = load i8, ptr %25, align 1
%27 = call i64 @toupper(i8 noundef signext %26)
%28 = icmp ne i64 %24, %27
br label %29
29: ; preds = %21, %16
%30 = phi i1 [ false, %16 ], [ %28, %21 ]
br i1 %30, label %31, label %35
31: ; preds = %29
br label %32
32: ; preds = %31
%33 = load ptr, ptr %8, align 8
%34 = getelementptr inbounds i8, ptr %33, i32 1
store ptr %34, ptr %8, align 8
br label %16, !llvm.loop !6
35: ; preds = %29
%36 = load ptr, ptr %8, align 8
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp eq i32 0, %38
br i1 %39, label %40, label %41
40: ; preds = %35
store i32 -1, ptr %3, align 4
br label %74
41: ; preds = %35
%42 = load ptr, ptr %5, align 8
store ptr %42, ptr %6, align 8
%43 = load ptr, ptr %8, align 8
store ptr %43, ptr %7, align 8
br label %44
44: ; preds = %68, %41
%45 = load ptr, ptr %7, align 8
%46 = load i8, ptr %45, align 1
%47 = call i64 @toupper(i8 noundef signext %46)
%48 = load ptr, ptr %6, align 8
%49 = load i8, ptr %48, align 1
%50 = call i64 @toupper(i8 noundef signext %49)
%51 = icmp eq i64 %47, %50
br i1 %51, label %52, label %69
52: ; preds = %44
%53 = load ptr, ptr %7, align 8
%54 = getelementptr inbounds i8, ptr %53, i32 1
store ptr %54, ptr %7, align 8
%55 = load ptr, ptr %6, align 8
%56 = getelementptr inbounds i8, ptr %55, i32 1
store ptr %56, ptr %6, align 8
%57 = load ptr, ptr %6, align 8
%58 = load i8, ptr %57, align 1
%59 = sext i8 %58 to i32
%60 = icmp eq i32 0, %59
br i1 %60, label %61, label %68
61: ; preds = %52
%62 = load ptr, ptr %8, align 8
%63 = load ptr, ptr %4, align 8
%64 = ptrtoint ptr %62 to i64
%65 = ptrtoint ptr %63 to i64
%66 = sub i64 %64, %65
%67 = trunc i64 %66 to i32
store i32 %67, ptr %3, align 4
br label %74
68: ; preds = %52
br label %44, !llvm.loop !8
69: ; preds = %44
br label %70
70: ; preds = %69
%71 = load ptr, ptr %8, align 8
%72 = getelementptr inbounds i8, ptr %71, i32 1
store ptr %72, ptr %8, align 8
br label %10, !llvm.loop !9
73: ; preds = %10
store i32 -1, ptr %3, align 4
br label %74
74: ; preds = %73, %61, %40
%75 = load i32, ptr %3, align 4
ret i32 %75
}
declare i64 @toupper(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8tbu4dzq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stristr(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %8, align 8
%10 = load ptr, ptr %8, align 8
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %.lr.ph2, label %82
.lr.ph2: ; preds = %2
br label %14
14: ; preds = %.lr.ph2, %75
br label %15
15: ; preds = %31, %14
%16 = load ptr, ptr %8, align 8
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %28
20: ; preds = %15
%21 = load ptr, ptr %8, align 8
%22 = load i8, ptr %21, align 1
%23 = call i64 @toupper(i8 noundef signext %22)
%24 = load ptr, ptr %5, align 8
%25 = load i8, ptr %24, align 1
%26 = call i64 @toupper(i8 noundef signext %25)
%27 = icmp ne i64 %23, %26
br label %28
28: ; preds = %20, %15
%29 = phi i1 [ false, %15 ], [ %27, %20 ]
br i1 %29, label %30, label %34
30: ; preds = %28
br label %31
31: ; preds = %30
%32 = load ptr, ptr %8, align 8
%33 = getelementptr inbounds i8, ptr %32, i32 1
store ptr %33, ptr %8, align 8
br label %15, !llvm.loop !6
34: ; preds = %28
%35 = load ptr, ptr %8, align 8
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp eq i32 0, %37
br i1 %38, label %39, label %40
39: ; preds = %34
store i32 -1, ptr %3, align 4
br label %83
40: ; preds = %34
%41 = load ptr, ptr %5, align 8
store ptr %41, ptr %6, align 8
%42 = load ptr, ptr %8, align 8
store ptr %42, ptr %7, align 8
%43 = load ptr, ptr %7, align 8
%44 = load i8, ptr %43, align 1
%45 = call i64 @toupper(i8 noundef signext %44)
%46 = load ptr, ptr %6, align 8
%47 = load i8, ptr %46, align 1
%48 = call i64 @toupper(i8 noundef signext %47)
%49 = icmp eq i64 %45, %48
br i1 %49, label %.lr.ph, label %74
.lr.ph: ; preds = %40
br label %58
50: ; preds = %58
%51 = load ptr, ptr %7, align 8
%52 = load i8, ptr %51, align 1
%53 = call i64 @toupper(i8 noundef signext %52)
%54 = load ptr, ptr %6, align 8
%55 = load i8, ptr %54, align 1
%56 = call i64 @toupper(i8 noundef signext %55)
%57 = icmp eq i64 %53, %56
br i1 %57, label %58, label %._crit_edge, !llvm.loop !8
58: ; preds = %.lr.ph, %50
%59 = load ptr, ptr %7, align 8
%60 = getelementptr inbounds i8, ptr %59, i32 1
store ptr %60, ptr %7, align 8
%61 = load ptr, ptr %6, align 8
%62 = getelementptr inbounds i8, ptr %61, i32 1
store ptr %62, ptr %6, align 8
%63 = load ptr, ptr %6, align 8
%64 = load i8, ptr %63, align 1
%65 = sext i8 %64 to i32
%66 = icmp eq i32 0, %65
br i1 %66, label %67, label %50
67: ; preds = %58
%68 = load ptr, ptr %8, align 8
%69 = load ptr, ptr %4, align 8
%70 = ptrtoint ptr %68 to i64
%71 = ptrtoint ptr %69 to i64
%72 = sub i64 %70, %71
%73 = trunc i64 %72 to i32
store i32 %73, ptr %3, align 4
br label %83
._crit_edge: ; preds = %50
br label %74
74: ; preds = %._crit_edge, %40
br label %75
75: ; preds = %74
%76 = load ptr, ptr %8, align 8
%77 = getelementptr inbounds i8, ptr %76, i32 1
store ptr %77, ptr %8, align 8
%78 = load ptr, ptr %8, align 8
%79 = load i8, ptr %78, align 1
%80 = sext i8 %79 to i32
%81 = icmp ne i32 %80, 0
br i1 %81, label %14, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %75
br label %82
82: ; preds = %._crit_edge3, %2
store i32 -1, ptr %3, align 4
br label %83
83: ; preds = %82, %67, %39
%84 = load i32, ptr %3, align 4
ret i32 %84
}
declare i64 @toupper(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpfbzw1l8x.c'
source_filename = "/tmp/tmpfbzw1l8x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FNM_PERIOD = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @octave_fnm_period_wrapper() #0 {
%1 = load i32, ptr @FNM_PERIOD, align 4
ret i32 %1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfbzw1l8x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FNM_PERIOD = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @octave_fnm_period_wrapper() #0 {
%1 = load i32, ptr @FNM_PERIOD, align 4
ret i32 %1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpea4dvmmz.c'
source_filename = "/tmp/tmpea4dvmmz.c"
target datalayout = "e-m:e-p270: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/tmpea4dvmmz.c"
target datalayout = "e-m:e-p270: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/tmprtu3knt9.c'
source_filename = "/tmp/tmprtu3knt9.c"
target datalayout = "e-m:e-p270: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/tmprtu3knt9.c"
target datalayout = "e-m:e-p270: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/tmpzhveipdk.c'
source_filename = "/tmp/tmpzhveipdk.c"
target datalayout = "e-m:e-p270: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 [1735 x i8] c"Usage: %s [-bvngfhc] [-[rw] filename] [tty_device | i2c_device]\0A\09-a bus_address\09Bus address (e.g. for I2C port)\0A\09-b rate\09\09Baud rate (default 57600)\0A\09-m mode\09\09Serial port mode (default 8e1)\0A\09-r filename\09Read flash to file (or - stdout)\0A\09-w filename\09Write flash from file (or - stdout)\0A\09-C\09\09Compute CRC of flash content\0A\09-u\09\09Disable the flash write-protection\0A\09-j\09\09Enable the flash read-protection\0A\09-k\09\09Disable the flash read-protection\0A\09-o\09\09Erase only\0A\09-e n\09\09Only erase n pages before writing the flash\0A\09-v\09\09Verify writes\0A\09-n count\09Retry failed writes up to count times (default 10)\0A\09-g address\09Start execution at specified address (0 = flash start)\0A\09-S address[:length]\09Specify start address and optionally length for\0A\09 \09read/write/erase operations\0A\09-F RX_length[:TX_length] Specify the max length of RX and TX frame\0A\09-s start_page\09Flash at specified page (0 = flash start)\0A\09-f\09\09Force binary parser\0A\09-h\09\09Show this help\0A\09-c\09\09Resume the connection (don't send initial INIT)\0A\09\09\09*Baud rate must be kept the same as the first init*\0A\09\09\09This is useful if the reset fails\0A\09-i GPIO_string\09GPIO sequence to enter/exit bootloader mode\0A\09\09\09GPIO_string=[entry_seq][:[exit_seq]]\0A\09\09\09sequence=[-]n[,sequence]\0A\09-R\09\09Reset device at exit.\0A\0AExamples:\0A\09Get device information:\0A\09\09%s /dev/ttyS0\0A\09 or:\0A\09\09%s /dev/i2c-0\0A\0A\09Write with verify and then start execution:\0A\09\09%s -w filename -v -g 0x0 /dev/ttyS0\0A\0A\09Read flash to file:\0A\09\09%s -r filename /dev/ttyS0\0A\0A\09Read 100 bytes of flash from 0x1000 to stdout:\0A\09\09%s -r - -S 0x1000:100 /dev/ttyS0\0A\0A\09Start execution:\0A\09\09%s -g 0x0 /dev/ttyS0\0A\0A\09GPIO sequence:\0A\09- entry sequence: GPIO_3=low, GPIO_2=low, GPIO_2=high\0A\09- exit sequence: GPIO_3=high, GPIO_2=low, GPIO_2=high\0A\09\09%s -i -3,-2,2:3,-2,2 /dev/ttyS0\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @show_help(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = load ptr, ptr %2, align 8
%9 = load ptr, ptr %2, align 8
%10 = load ptr, ptr %2, align 8
%11 = load ptr, ptr %2, align 8
%12 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzhveipdk.c"
target datalayout = "e-m:e-p270: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 [1735 x i8] c"Usage: %s [-bvngfhc] [-[rw] filename] [tty_device | i2c_device]\0A\09-a bus_address\09Bus address (e.g. for I2C port)\0A\09-b rate\09\09Baud rate (default 57600)\0A\09-m mode\09\09Serial port mode (default 8e1)\0A\09-r filename\09Read flash to file (or - stdout)\0A\09-w filename\09Write flash from file (or - stdout)\0A\09-C\09\09Compute CRC of flash content\0A\09-u\09\09Disable the flash write-protection\0A\09-j\09\09Enable the flash read-protection\0A\09-k\09\09Disable the flash read-protection\0A\09-o\09\09Erase only\0A\09-e n\09\09Only erase n pages before writing the flash\0A\09-v\09\09Verify writes\0A\09-n count\09Retry failed writes up to count times (default 10)\0A\09-g address\09Start execution at specified address (0 = flash start)\0A\09-S address[:length]\09Specify start address and optionally length for\0A\09 \09read/write/erase operations\0A\09-F RX_length[:TX_length] Specify the max length of RX and TX frame\0A\09-s start_page\09Flash at specified page (0 = flash start)\0A\09-f\09\09Force binary parser\0A\09-h\09\09Show this help\0A\09-c\09\09Resume the connection (don't send initial INIT)\0A\09\09\09*Baud rate must be kept the same as the first init*\0A\09\09\09This is useful if the reset fails\0A\09-i GPIO_string\09GPIO sequence to enter/exit bootloader mode\0A\09\09\09GPIO_string=[entry_seq][:[exit_seq]]\0A\09\09\09sequence=[-]n[,sequence]\0A\09-R\09\09Reset device at exit.\0A\0AExamples:\0A\09Get device information:\0A\09\09%s /dev/ttyS0\0A\09 or:\0A\09\09%s /dev/i2c-0\0A\0A\09Write with verify and then start execution:\0A\09\09%s -w filename -v -g 0x0 /dev/ttyS0\0A\0A\09Read flash to file:\0A\09\09%s -r filename /dev/ttyS0\0A\0A\09Read 100 bytes of flash from 0x1000 to stdout:\0A\09\09%s -r - -S 0x1000:100 /dev/ttyS0\0A\0A\09Start execution:\0A\09\09%s -g 0x0 /dev/ttyS0\0A\0A\09GPIO sequence:\0A\09- entry sequence: GPIO_3=low, GPIO_2=low, GPIO_2=high\0A\09- exit sequence: GPIO_3=high, GPIO_2=low, GPIO_2=high\0A\09\09%s -i -3,-2,2:3,-2,2 /dev/ttyS0\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @show_help(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = load ptr, ptr %2, align 8
%9 = load ptr, ptr %2, align 8
%10 = load ptr, ptr %2, align 8
%11 = load ptr, ptr %2, align 8
%12 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2x1ceb75.c'
source_filename = "/tmp/tmp2x1ceb75.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @twi_read_2byte(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = call i32 (...) @twi_start()
%5 = load i32, ptr %2, align 4
%6 = shl i32 %5, 1
%7 = call i32 @twi_write(i32 noundef %6)
%8 = call i32 @twi_write(i32 noundef 0)
%9 = call i32 (...) @twi_stop()
%10 = call i32 (...) @twi_start()
%11 = load i32, ptr %2, align 4
%12 = shl i32 %11, 1
%13 = or i32 %12, 1
%14 = call i32 @twi_write(i32 noundef %13)
%15 = call i32 (...) @twi_read()
store i32 %15, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = shl i32 %16, 8
%18 = call i32 (...) @twi_read()
%19 = or i32 %17, %18
store i32 %19, ptr %3, align 4
%20 = call i32 (...) @twi_stop()
%21 = load i32, ptr %3, align 4
%22 = and i32 %21, 65535
ret i32 %22
}
declare i32 @twi_start(...) #1
declare i32 @twi_write(i32 noundef) #1
declare i32 @twi_stop(...) #1
declare i32 @twi_read(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2x1ceb75.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @twi_read_2byte(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = call i32 (...) @twi_start()
%5 = load i32, ptr %2, align 4
%6 = shl i32 %5, 1
%7 = call i32 @twi_write(i32 noundef %6)
%8 = call i32 @twi_write(i32 noundef 0)
%9 = call i32 (...) @twi_stop()
%10 = call i32 (...) @twi_start()
%11 = load i32, ptr %2, align 4
%12 = shl i32 %11, 1
%13 = or i32 %12, 1
%14 = call i32 @twi_write(i32 noundef %13)
%15 = call i32 (...) @twi_read()
store i32 %15, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = shl i32 %16, 8
%18 = call i32 (...) @twi_read()
%19 = or i32 %17, %18
store i32 %19, ptr %3, align 4
%20 = call i32 (...) @twi_stop()
%21 = load i32, ptr %3, align 4
%22 = and i32 %21, 65535
ret i32 %22
}
declare i32 @twi_start(...) #1
declare i32 @twi_write(i32 noundef) #1
declare i32 @twi_stop(...) #1
declare i32 @twi_read(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp47muya8c.c'
source_filename = "/tmp/tmp47muya8c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 @scanf(ptr noundef @.str, ptr noundef %6, ptr noundef %7)
br label %9
9: ; preds = %22, %2
%10 = load i32, ptr %6, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp sle i32 %10, %11
br i1 %12, label %13, label %26
13: ; preds = %9
%14 = load i32, ptr %6, align 4
%15 = srem i32 %14, 2
%16 = icmp eq i32 %15, 0
%17 = zext i1 %16 to i32
br i1 %16, label %18, label %19
18: ; preds = %13
br label %22
19: ; preds = %13
%20 = load i32, ptr %6, align 4
%21 = call i32 @printf(ptr noundef @.str.1, i32 noundef %20)
br label %22
22: ; preds = %19, %18
%23 = phi i32 [ %17, %18 ], [ %21, %19 ]
%24 = load i32, ptr %6, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %6, align 4
br label %9, !llvm.loop !6
26: ; preds = %9
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp47muya8c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 @scanf(ptr noundef @.str, ptr noundef %6, ptr noundef %7)
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr %7, align 4
%11 = icmp sle i32 %9, %10
br i1 %11, label %.lr.ph, label %28
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %21
%13 = load i32, ptr %6, align 4
%14 = srem i32 %13, 2
%15 = icmp eq i32 %14, 0
%16 = zext i1 %15 to i32
br i1 %15, label %17, label %18
17: ; preds = %12
br label %21
18: ; preds = %12
%19 = load i32, ptr %6, align 4
%20 = call i32 @printf(ptr noundef @.str.1, i32 noundef %19)
br label %21
21: ; preds = %18, %17
%22 = phi i32 [ %16, %17 ], [ %20, %18 ]
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %6, align 4
%26 = load i32, ptr %7, align 4
%27 = icmp sle i32 %25, %26
br i1 %27, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %28
28: ; preds = %._crit_edge, %2
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
Subsets and Splits