llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmp55ddngq6.c'
source_filename = "/tmp/tmp55ddngq6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EACCES = dso_local global i32 0, align 4
@EAFNOSUPPORT = dso_local global i32 0, align 4
@IPPROTO_TCP = dso_local global i32 0, align 4
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_REUSEADDR = 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/tmp55ddngq6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EACCES = dso_local global i32 0, align 4
@EAFNOSUPPORT = dso_local global i32 0, align 4
@IPPROTO_TCP = dso_local global i32 0, align 4
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_REUSEADDR = 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/tmp0xmsi__0.c'
source_filename = "/tmp/tmp0xmsi__0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"Hello Geek!\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 @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/tmp0xmsi__0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"Hello Geek!\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 @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/tmpjr8hdwxd.c'
source_filename = "/tmp/tmpjr8hdwxd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
store i32 0, ptr %1, align 4
%3 = load i32, ptr @stdin, align 4
%4 = call i32 @fclose(i32 noundef %3)
%5 = load i32, ptr @stdin, align 4
%6 = call ptr @fgetln(i32 noundef %5, ptr noundef %2)
%7 = icmp ne ptr null, %6
%8 = zext i1 %7 to i32
ret i32 %8
}
declare i32 @fclose(i32 noundef) #1
declare ptr @fgetln(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/tmpjr8hdwxd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
store i32 0, ptr %1, align 4
%3 = load i32, ptr @stdin, align 4
%4 = call i32 @fclose(i32 noundef %3)
%5 = load i32, ptr @stdin, align 4
%6 = call ptr @fgetln(i32 noundef %5, ptr noundef %2)
%7 = icmp ne ptr null, %6
%8 = zext i1 %7 to i32
ret i32 %8
}
declare i32 @fclose(i32 noundef) #1
declare ptr @fgetln(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/tmp0xwhqlli.c'
source_filename = "/tmp/tmp0xwhqlli.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sys_dup() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = call i64 @argfd(i32 noundef 0, i32 noundef 0, ptr noundef %2)
%5 = icmp slt i64 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %0
store i32 -1, ptr %1, align 4
br label %16
7: ; preds = %0
%8 = load ptr, ptr %2, align 8
%9 = call i32 @fdalloc(ptr noundef %8)
store i32 %9, ptr %3, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %7
store i32 -1, ptr %1, align 4
br label %16
12: ; preds = %7
%13 = load ptr, ptr %2, align 8
%14 = call i32 @filedup(ptr noundef %13)
%15 = load i32, ptr %3, align 4
store i32 %15, ptr %1, align 4
br label %16
16: ; preds = %12, %11, %6
%17 = load i32, ptr %1, align 4
ret i32 %17
}
declare i64 @argfd(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fdalloc(ptr noundef) #1
declare i32 @filedup(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0xwhqlli.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sys_dup() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = call i64 @argfd(i32 noundef 0, i32 noundef 0, ptr noundef %2)
%5 = icmp slt i64 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %0
store i32 -1, ptr %1, align 4
br label %16
7: ; preds = %0
%8 = load ptr, ptr %2, align 8
%9 = call i32 @fdalloc(ptr noundef %8)
store i32 %9, ptr %3, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %7
store i32 -1, ptr %1, align 4
br label %16
12: ; preds = %7
%13 = load ptr, ptr %2, align 8
%14 = call i32 @filedup(ptr noundef %13)
%15 = load i32, ptr %3, align 4
store i32 %15, ptr %1, align 4
br label %16
16: ; preds = %12, %11, %6
%17 = load i32, ptr %1, align 4
ret i32 %17
}
declare i64 @argfd(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fdalloc(ptr noundef) #1
declare i32 @filedup(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbk49_3ec.c'
source_filename = "/tmp/tmpbk49_3ec.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @check_BIO(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = call i64 @check_AA(i32 noundef %4)
%6 = icmp ne i64 %5, 0
br i1 %6, label %11, label %7
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = call i64 @check_NA(i32 noundef %8)
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %7, %1
store i32 1, ptr %2, align 4
br label %13
12: ; preds = %7
store i32 0, ptr %2, align 4
br label %13
13: ; preds = %12, %11
%14 = load i32, ptr %2, align 4
ret i32 %14
}
declare i64 @check_AA(i32 noundef) #1
declare i64 @check_NA(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/tmpbk49_3ec.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @check_BIO(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = call i64 @check_AA(i32 noundef %4)
%6 = icmp ne i64 %5, 0
br i1 %6, label %11, label %7
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = call i64 @check_NA(i32 noundef %8)
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %7, %1
store i32 1, ptr %2, align 4
br label %13
12: ; preds = %7
store i32 0, ptr %2, align 4
br label %13
13: ; preds = %12, %11
%14 = load i32, ptr %2, align 4
ret i32 %14
}
declare i64 @check_AA(i32 noundef) #1
declare i64 @check_NA(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/tmp1fjd72h5.c'
source_filename = "/tmp/tmp1fjd72h5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @regular_row_pos(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = call i32 @pos_in_row(i32 noundef %7, ptr noundef %8)
store i32 %9, ptr %6, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp eq i32 %10, -1
br i1 %11, label %15, label %12
12: ; preds = %2
%13 = load i32, ptr %6, align 4
%14 = icmp eq i32 %13, 8
br i1 %14, label %15, label %16
15: ; preds = %12, %2
store i32 -1, ptr %3, align 4
br label %24
16: ; preds = %12
%17 = load i32, ptr %6, align 4
%18 = icmp sgt i32 %17, 8
br i1 %18, label %19, label %22
19: ; preds = %16
%20 = load i32, ptr %6, align 4
%21 = add nsw i32 %20, -1
store i32 %21, ptr %6, align 4
br label %22
22: ; preds = %19, %16
%23 = load i32, ptr %6, align 4
store i32 %23, ptr %3, align 4
br label %24
24: ; preds = %22, %15
%25 = load i32, ptr %3, align 4
ret i32 %25
}
declare i32 @pos_in_row(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/tmp1fjd72h5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @regular_row_pos(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = call i32 @pos_in_row(i32 noundef %7, ptr noundef %8)
store i32 %9, ptr %6, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp eq i32 %10, -1
br i1 %11, label %15, label %12
12: ; preds = %2
%13 = load i32, ptr %6, align 4
%14 = icmp eq i32 %13, 8
br i1 %14, label %15, label %16
15: ; preds = %12, %2
store i32 -1, ptr %3, align 4
br label %24
16: ; preds = %12
%17 = load i32, ptr %6, align 4
%18 = icmp sgt i32 %17, 8
br i1 %18, label %19, label %22
19: ; preds = %16
%20 = load i32, ptr %6, align 4
%21 = add nsw i32 %20, -1
store i32 %21, ptr %6, align 4
br label %22
22: ; preds = %19, %16
%23 = load i32, ptr %6, align 4
store i32 %23, ptr %3, align 4
br label %24
24: ; preds = %22, %15
%25 = load i32, ptr %3, align 4
ret i32 %25
}
declare i32 @pos_in_row(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/tmpd6daeot8.c'
source_filename = "/tmp/tmpd6daeot8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"I now 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
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
store i32 2, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @increment(i32 noundef %4)
%6 = call i32 @printf(ptr noundef @.str, i32 noundef %5)
%7 = load i32, ptr %3, align 4
%8 = call i32 @increment(i32 noundef %7)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @increment(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/tmpd6daeot8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"I now 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
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
store i32 2, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @increment(i32 noundef %4)
%6 = call i32 @printf(ptr noundef @.str, i32 noundef %5)
%7 = load i32, ptr %3, align 4
%8 = call i32 @increment(i32 noundef %7)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @increment(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/tmpiyr8if4p.c'
source_filename = "/tmp/tmpiyr8if4p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @encode_signed32(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = and i32 %5, -16777216
%7 = lshr i32 %6, 24
%8 = zext i32 %7 to i64
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds i64, ptr %9, i64 0
store i64 %8, ptr %10, align 8
%11 = load i32, ptr %4, align 4
%12 = and i32 %11, 16711680
%13 = ashr i32 %12, 16
%14 = sext i32 %13 to i64
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds i64, ptr %15, i64 1
store i64 %14, ptr %16, align 8
%17 = load i32, ptr %4, align 4
%18 = and i32 %17, 65280
%19 = ashr i32 %18, 8
%20 = sext i32 %19 to i64
%21 = load ptr, ptr %3, align 8
%22 = getelementptr inbounds i64, ptr %21, i64 2
store i64 %20, ptr %22, align 8
%23 = load i32, ptr %4, align 4
%24 = and i32 %23, 255
%25 = sext i32 %24 to i64
%26 = load ptr, ptr %3, align 8
%27 = getelementptr inbounds i64, ptr %26, i64 3
store i64 %25, ptr %27, align 8
ret i32 4
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiyr8if4p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @encode_signed32(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = and i32 %5, -16777216
%7 = lshr i32 %6, 24
%8 = zext i32 %7 to i64
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds i64, ptr %9, i64 0
store i64 %8, ptr %10, align 8
%11 = load i32, ptr %4, align 4
%12 = and i32 %11, 16711680
%13 = ashr i32 %12, 16
%14 = sext i32 %13 to i64
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds i64, ptr %15, i64 1
store i64 %14, ptr %16, align 8
%17 = load i32, ptr %4, align 4
%18 = and i32 %17, 65280
%19 = ashr i32 %18, 8
%20 = sext i32 %19 to i64
%21 = load ptr, ptr %3, align 8
%22 = getelementptr inbounds i64, ptr %21, i64 2
store i64 %20, ptr %22, align 8
%23 = load i32, ptr %4, align 4
%24 = and i32 %23, 255
%25 = sext i32 %24 to i64
%26 = load ptr, ptr %3, align 8
%27 = getelementptr inbounds i64, ptr %26, i64 3
store i64 %25, ptr %27, align 8
ret i32 4
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7m37fw9e.c'
source_filename = "/tmp/tmp7m37fw9e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Big malloc %u!\0A\00", align 1
@.str.1 = private unnamed_addr constant [33 x i8] c"Out of Memory! @ malloc size %u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @xmalloc(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = icmp ugt i64 %4, 10485760
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i64, ptr %2, align 8
%8 = call i32 @printf(ptr noundef @.str, i64 noundef %7)
br label %9
9: ; preds = %6, %1
%10 = load i64, ptr %2, align 8
%11 = call ptr @malloc(i64 noundef %10) #4
store ptr %11, ptr %3, align 8
%12 = load ptr, ptr %3, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %18
14: ; preds = %9
%15 = load i64, ptr %2, align 8
%16 = call i32 @printf(ptr noundef @.str.1, i64 noundef %15)
%17 = call i32 @exit(i32 noundef 1) #5
unreachable
18: ; preds = %9
%19 = load ptr, ptr %3, align 8
ret ptr %19
}
declare i32 @printf(ptr noundef, i64 noundef) #1
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 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 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { allocsize(0) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { allocsize(0) }
attributes #5 = { 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/tmp7m37fw9e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Big malloc %u!\0A\00", align 1
@.str.1 = private unnamed_addr constant [33 x i8] c"Out of Memory! @ malloc size %u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @xmalloc(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = icmp ugt i64 %4, 10485760
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i64, ptr %2, align 8
%8 = call i32 @printf(ptr noundef @.str, i64 noundef %7)
br label %9
9: ; preds = %6, %1
%10 = load i64, ptr %2, align 8
%11 = call ptr @malloc(i64 noundef %10) #4
store ptr %11, ptr %3, align 8
%12 = load ptr, ptr %3, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %18
14: ; preds = %9
%15 = load i64, ptr %2, align 8
%16 = call i32 @printf(ptr noundef @.str.1, i64 noundef %15)
%17 = call i32 @exit(i32 noundef 1) #5
unreachable
18: ; preds = %9
%19 = load ptr, ptr %3, align 8
ret ptr %19
}
declare i32 @printf(ptr noundef, i64 noundef) #1
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 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 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { allocsize(0) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { allocsize(0) }
attributes #5 = { 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/tmpg78jjmr5.c'
source_filename = "/tmp/tmpg78jjmr5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test_nowarn_float(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = call ptr @alloc_float(i32 noundef %5)
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 @dealloc_float(ptr noundef %7)
%9 = load i32, ptr %2, align 4
%10 = call ptr @alloc_float(i32 noundef %9)
store ptr %10, ptr %4, align 8
%11 = load ptr, ptr %4, align 8
%12 = getelementptr inbounds float, ptr %11, i64 2
%13 = call i32 @dealloc_float(ptr noundef %12)
ret void
}
declare ptr @alloc_float(i32 noundef) #1
declare i32 @dealloc_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/tmpg78jjmr5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test_nowarn_float(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = call ptr @alloc_float(i32 noundef %5)
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 @dealloc_float(ptr noundef %7)
%9 = load i32, ptr %2, align 4
%10 = call ptr @alloc_float(i32 noundef %9)
store ptr %10, ptr %4, align 8
%11 = load ptr, ptr %4, align 8
%12 = getelementptr inbounds float, ptr %11, i64 2
%13 = call i32 @dealloc_float(ptr noundef %12)
ret void
}
declare ptr @alloc_float(i32 noundef) #1
declare i32 @dealloc_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/tmpuebai66t.c'
source_filename = "/tmp/tmpuebai66t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @VIM_DISP_EnableDecodeSpecial(i8 noundef zeroext %0) #0 {
%2 = alloca i8, align 1
%3 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%4 = call zeroext i8 @VIM_HIF_GetReg8(i32 noundef 10473)
store i8 %4, ptr %3, align 1
%5 = load i8, ptr %3, align 1
%6 = zext i8 %5 to i32
%7 = and i32 %6, 31
%8 = trunc i32 %7 to i8
store i8 %8, ptr %3, align 1
%9 = load i8, ptr %2, align 1
%10 = zext i8 %9 to i32
%11 = and i32 %10, 1
%12 = shl i32 %11, 5
%13 = load i8, ptr %3, align 1
%14 = zext i8 %13 to i32
%15 = or i32 %14, %12
%16 = trunc i32 %15 to i8
store i8 %16, ptr %3, align 1
%17 = load i8, ptr %3, align 1
%18 = call i32 @VIM_HIF_SetReg8(i32 noundef 10473, i8 noundef zeroext %17)
ret void
}
declare zeroext i8 @VIM_HIF_GetReg8(i32 noundef) #1
declare i32 @VIM_HIF_SetReg8(i32 noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuebai66t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @VIM_DISP_EnableDecodeSpecial(i8 noundef zeroext %0) #0 {
%2 = alloca i8, align 1
%3 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%4 = call zeroext i8 @VIM_HIF_GetReg8(i32 noundef 10473)
store i8 %4, ptr %3, align 1
%5 = load i8, ptr %3, align 1
%6 = zext i8 %5 to i32
%7 = and i32 %6, 31
%8 = trunc i32 %7 to i8
store i8 %8, ptr %3, align 1
%9 = load i8, ptr %2, align 1
%10 = zext i8 %9 to i32
%11 = and i32 %10, 1
%12 = shl i32 %11, 5
%13 = load i8, ptr %3, align 1
%14 = zext i8 %13 to i32
%15 = or i32 %14, %12
%16 = trunc i32 %15 to i8
store i8 %16, ptr %3, align 1
%17 = load i8, ptr %3, align 1
%18 = call i32 @VIM_HIF_SetReg8(i32 noundef 10473, i8 noundef zeroext %17)
ret void
}
declare zeroext i8 @VIM_HIF_GetReg8(i32 noundef) #1
declare i32 @VIM_HIF_SetReg8(i32 noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2396gkue.c'
source_filename = "/tmp/tmp2396gkue.c"
target datalayout = "e-m:e-p270: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/tmp2396gkue.c"
target datalayout = "e-m:e-p270: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/tmp15d5po94.c'
source_filename = "/tmp/tmp15d5po94.c"
target datalayout = "e-m:e-p270: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/tmp15d5po94.c"
target datalayout = "e-m:e-p270: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/tmpjdb9zc7j.c'
source_filename = "/tmp/tmpjdb9zc7j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"start: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @on_start(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = call i32 @printf(ptr noundef @.str, i32 noundef %5)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjdb9zc7j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"start: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @on_start(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = call i32 @printf(ptr noundef @.str, i32 noundef %5)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmph6192hc9.c'
source_filename = "/tmp/tmph6192hc9.c"
target datalayout = "e-m:e-p270: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/tmph6192hc9.c"
target datalayout = "e-m:e-p270: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/tmpm1o4pfm2.c'
source_filename = "/tmp/tmpm1o4pfm2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"here's your lame string: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @small_str(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 void
}
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/tmpm1o4pfm2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"here's your lame string: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @small_str(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 void
}
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/tmp5jw7ns_z.c'
source_filename = "/tmp/tmp5jw7ns_z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @seteuid(i64 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i64, align 8
%4 = alloca i32, align 4
store i64 %0, ptr %3, align 8
%5 = load i64, ptr %3, align 8
%6 = icmp eq i64 %5, -1
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = load i32, ptr @EINVAL, align 4
store i32 %8, ptr @errno, align 4
store i32 -1, ptr %2, align 4
br label %12
9: ; preds = %1
%10 = load i64, ptr %3, align 8
%11 = call i32 @setresuid(i32 noundef -1, i64 noundef %10, i32 noundef -1)
store i32 %11, ptr %2, align 4
br label %12
12: ; preds = %9, %7
%13 = load i32, ptr %2, align 4
ret i32 %13
}
declare i32 @setresuid(i32 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/tmp5jw7ns_z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @seteuid(i64 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i64, align 8
%4 = alloca i32, align 4
store i64 %0, ptr %3, align 8
%5 = load i64, ptr %3, align 8
%6 = icmp eq i64 %5, -1
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = load i32, ptr @EINVAL, align 4
store i32 %8, ptr @errno, align 4
store i32 -1, ptr %2, align 4
br label %12
9: ; preds = %1
%10 = load i64, ptr %3, align 8
%11 = call i32 @setresuid(i32 noundef -1, i64 noundef %10, i32 noundef -1)
store i32 %11, ptr %2, align 4
br label %12
12: ; preds = %9, %7
%13 = load i32, ptr %2, align 4
ret i32 %13
}
declare i32 @setresuid(i32 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/tmpr06b7cy5.c'
source_filename = "/tmp/tmpr06b7cy5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PATH_MAX = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"Usage: pwdx pid...\0A\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"^((/proc/+)?[1-9][0-9]*|-V|--version)$\00", align 1
@REG_EXTENDED = dso_local global i32 0, align 4
@REG_NOSUB = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [30 x i8] c"pwdx: invalid process id: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"-V\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"--version\00", align 1
@.str.5 = private unnamed_addr constant [13 x i8] c"/proc/%s/cwd\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"%s/cwd\00", align 1
@errno = dso_local global i64 0, align 8
@ENOENT = dso_local global i64 0, align 8
@ESRCH = dso_local global i64 0, align 8
@.str.7 = private unnamed_addr constant [8 x i8] c"%s: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = 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
%12 = load i32, ptr @PATH_MAX, align 4
%13 = add nsw i32 %12, 1
%14 = zext i32 %13 to i64
%15 = call ptr @llvm.stacksave()
store ptr %15, ptr %6, align 8
%16 = alloca i8, i64 %14, align 16
store i64 %14, ptr %7, align 8
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %17, 2
br i1 %18, label %19, label %21
19: ; preds = %2
%20 = call i32 @die(ptr noundef @.str)
br label %21
21: ; preds = %19, %2
%22 = load i32, ptr @REG_EXTENDED, align 4
%23 = load i32, ptr @REG_NOSUB, align 4
%24 = or i32 %22, %23
%25 = call i32 @regcomp(ptr noundef %8, ptr noundef @.str.1, i32 noundef %24)
store i32 1, ptr %9, align 4
br label %26
26: ; preds = %66, %21
%27 = load i32, ptr %9, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %30, label %69
30: ; preds = %26
%31 = load ptr, ptr %5, align 8
%32 = load i32, ptr %9, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds ptr, ptr %31, i64 %33
%35 = load ptr, ptr %34, align 8
%36 = call i64 @regexec(ptr noundef %8, ptr noundef %35, i32 noundef 0, ptr noundef null, i32 noundef 0)
%37 = icmp ne i64 %36, 0
br i1 %37, label %38, label %47
38: ; preds = %30
%39 = trunc i64 %14 to i32
%40 = load ptr, ptr %5, align 8
%41 = load i32, ptr %9, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds ptr, ptr %40, i64 %42
%44 = load ptr, ptr %43, align 8
%45 = call i32 @snprintf(ptr noundef %16, i32 noundef %39, ptr noundef @.str.2, ptr noundef %44)
%46 = call i32 @die(ptr noundef %16)
br label %47
47: ; preds = %38, %30
%48 = load ptr, ptr %5, align 8
%49 = load i32, ptr %9, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds ptr, ptr %48, i64 %50
%52 = load ptr, ptr %51, align 8
%53 = call i32 @strcmp(ptr noundef @.str.3, ptr noundef %52)
%54 = icmp ne i32 %53, 0
br i1 %54, label %55, label %63
55: ; preds = %47
%56 = load ptr, ptr %5, align 8
%57 = load i32, ptr %9, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds ptr, ptr %56, i64 %58
%60 = load ptr, ptr %59, align 8
%61 = call i32 @strcmp(ptr noundef @.str.4, ptr noundef %60)
%62 = icmp ne i32 %61, 0
br i1 %62, label %65, label %63
63: ; preds = %55, %47
%64 = call i32 (...) @version()
br label %65
65: ; preds = %63, %55
br label %66
66: ; preds = %65
%67 = load i32, ptr %9, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %9, align 4
br label %26, !llvm.loop !6
69: ; preds = %26
%70 = call i32 @regfree(ptr noundef %8)
store i32 1, ptr %9, align 4
br label %71
71: ; preds = %128, %69
%72 = load i32, ptr %9, align 4
%73 = load i32, ptr %4, align 4
%74 = icmp slt i32 %72, %73
br i1 %74, label %75, label %131
75: ; preds = %71
store ptr %16, ptr %10, align 8
%76 = load ptr, ptr %5, align 8
%77 = load i32, ptr %9, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds ptr, ptr %76, i64 %78
%80 = load ptr, ptr %79, align 8
%81 = getelementptr inbounds i8, ptr %80, i64 0
%82 = load i8, ptr %81, align 1
%83 = sext i8 %82 to i32
%84 = icmp ne i32 %83, 47
br i1 %84, label %85, label %93
85: ; preds = %75
%86 = trunc i64 %14 to i32
%87 = load ptr, ptr %5, align 8
%88 = load i32, ptr %9, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds ptr, ptr %87, i64 %89
%91 = load ptr, ptr %90, align 8
%92 = call i32 @snprintf(ptr noundef %16, i32 noundef %86, ptr noundef @.str.5, ptr noundef %91)
br label %101
93: ; preds = %75
%94 = trunc i64 %14 to i32
%95 = load ptr, ptr %5, align 8
%96 = load i32, ptr %9, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds ptr, ptr %95, i64 %97
%99 = load ptr, ptr %98, align 8
%100 = call i32 @snprintf(ptr noundef %16, i32 noundef %94, ptr noundef @.str.6, ptr noundef %99)
br label %101
101: ; preds = %93, %85
%102 = load i32, ptr @PATH_MAX, align 4
%103 = call i32 @readlink(ptr noundef %16, ptr noundef %16, i32 noundef %102)
store i32 %103, ptr %11, align 4
%104 = icmp slt i32 %103, 0
br i1 %104, label %105, label %116
105: ; preds = %101
%106 = load i64, ptr @errno, align 8
%107 = load i64, ptr @ENOENT, align 8
%108 = icmp eq i64 %106, %107
br i1 %108, label %109, label %111
109: ; preds = %105
%110 = load i64, ptr @ESRCH, align 8
br label %113
111: ; preds = %105
%112 = load i64, ptr @errno, align 8
br label %113
113: ; preds = %111, %109
%114 = phi i64 [ %110, %109 ], [ %112, %111 ]
%115 = call ptr @strerror(i64 noundef %114)
store ptr %115, ptr %10, align 8
br label %120
116: ; preds = %101
%117 = load i32, ptr %11, align 4
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds i8, ptr %16, i64 %118
store i8 0, ptr %119, align 1
br label %120
120: ; preds = %116, %113
%121 = load ptr, ptr %5, align 8
%122 = load i32, ptr %9, align 4
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds ptr, ptr %121, i64 %123
%125 = load ptr, ptr %124, align 8
%126 = load ptr, ptr %10, align 8
%127 = call i32 @printf(ptr noundef @.str.7, ptr noundef %125, ptr noundef %126)
br label %128
128: ; preds = %120
%129 = load i32, ptr %9, align 4
%130 = add nsw i32 %129, 1
store i32 %130, ptr %9, align 4
br label %71, !llvm.loop !8
131: ; preds = %71
store i32 0, ptr %3, align 4
%132 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %132)
%133 = load i32, ptr %3, align 4
ret i32 %133
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @die(ptr noundef) #2
declare i32 @regcomp(ptr noundef, ptr noundef, i32 noundef) #2
declare i64 @regexec(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @strcmp(ptr noundef, ptr noundef) #2
declare i32 @version(...) #2
declare i32 @regfree(ptr noundef) #2
declare i32 @readlink(ptr noundef, ptr noundef, i32 noundef) #2
declare ptr @strerror(i64 noundef) #2
declare i32 @printf(ptr noundef, ptr noundef, 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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr06b7cy5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PATH_MAX = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"Usage: pwdx pid...\0A\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"^((/proc/+)?[1-9][0-9]*|-V|--version)$\00", align 1
@REG_EXTENDED = dso_local global i32 0, align 4
@REG_NOSUB = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [30 x i8] c"pwdx: invalid process id: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"-V\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"--version\00", align 1
@.str.5 = private unnamed_addr constant [13 x i8] c"/proc/%s/cwd\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"%s/cwd\00", align 1
@errno = dso_local global i64 0, align 8
@ENOENT = dso_local global i64 0, align 8
@ESRCH = dso_local global i64 0, align 8
@.str.7 = private unnamed_addr constant [8 x i8] c"%s: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = 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
%12 = load i32, ptr @PATH_MAX, align 4
%13 = add nsw i32 %12, 1
%14 = zext i32 %13 to i64
%15 = call ptr @llvm.stacksave()
store ptr %15, ptr %6, align 8
%16 = alloca i8, i64 %14, align 16
store i64 %14, ptr %7, align 8
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %17, 2
br i1 %18, label %19, label %21
19: ; preds = %2
%20 = call i32 @die(ptr noundef @.str)
br label %21
21: ; preds = %19, %2
%22 = load i32, ptr @REG_EXTENDED, align 4
%23 = load i32, ptr @REG_NOSUB, align 4
%24 = or i32 %22, %23
%25 = call i32 @regcomp(ptr noundef %8, ptr noundef @.str.1, i32 noundef %24)
store i32 1, ptr %9, align 4
%26 = load i32, ptr %9, align 4
%27 = load i32, ptr %4, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %.lr.ph, label %71
.lr.ph: ; preds = %21
br label %29
29: ; preds = %.lr.ph, %65
%30 = load ptr, ptr %5, align 8
%31 = load i32, ptr %9, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds ptr, ptr %30, i64 %32
%34 = load ptr, ptr %33, align 8
%35 = call i64 @regexec(ptr noundef %8, ptr noundef %34, i32 noundef 0, ptr noundef null, i32 noundef 0)
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %46
37: ; preds = %29
%38 = trunc i64 %14 to i32
%39 = load ptr, ptr %5, align 8
%40 = load i32, ptr %9, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds ptr, ptr %39, i64 %41
%43 = load ptr, ptr %42, align 8
%44 = call i32 @snprintf(ptr noundef %16, i32 noundef %38, ptr noundef @.str.2, ptr noundef %43)
%45 = call i32 @die(ptr noundef %16)
br label %46
46: ; preds = %37, %29
%47 = load ptr, ptr %5, align 8
%48 = load i32, ptr %9, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds ptr, ptr %47, i64 %49
%51 = load ptr, ptr %50, align 8
%52 = call i32 @strcmp(ptr noundef @.str.3, ptr noundef %51)
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %62
54: ; preds = %46
%55 = load ptr, ptr %5, align 8
%56 = load i32, ptr %9, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds ptr, ptr %55, i64 %57
%59 = load ptr, ptr %58, align 8
%60 = call i32 @strcmp(ptr noundef @.str.4, ptr noundef %59)
%61 = icmp ne i32 %60, 0
br i1 %61, label %64, label %62
62: ; preds = %54, %46
%63 = call i32 (...) @version()
br label %64
64: ; preds = %62, %54
br label %65
65: ; preds = %64
%66 = load i32, ptr %9, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %9, align 4
%68 = load i32, ptr %9, align 4
%69 = load i32, ptr %4, align 4
%70 = icmp slt i32 %68, %69
br i1 %70, label %29, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %65
br label %71
71: ; preds = %._crit_edge, %21
%72 = call i32 @regfree(ptr noundef %8)
store i32 1, ptr %9, align 4
%73 = load i32, ptr %9, align 4
%74 = load i32, ptr %4, align 4
%75 = icmp slt i32 %73, %74
br i1 %75, label %.lr.ph2, label %135
.lr.ph2: ; preds = %71
br label %76
76: ; preds = %.lr.ph2, %129
store ptr %16, ptr %10, align 8
%77 = load ptr, ptr %5, align 8
%78 = load i32, ptr %9, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds ptr, ptr %77, i64 %79
%81 = load ptr, ptr %80, align 8
%82 = getelementptr inbounds i8, ptr %81, i64 0
%83 = load i8, ptr %82, align 1
%84 = sext i8 %83 to i32
%85 = icmp ne i32 %84, 47
br i1 %85, label %86, label %94
86: ; preds = %76
%87 = trunc i64 %14 to i32
%88 = load ptr, ptr %5, align 8
%89 = load i32, ptr %9, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds ptr, ptr %88, i64 %90
%92 = load ptr, ptr %91, align 8
%93 = call i32 @snprintf(ptr noundef %16, i32 noundef %87, ptr noundef @.str.5, ptr noundef %92)
br label %102
94: ; preds = %76
%95 = trunc i64 %14 to i32
%96 = load ptr, ptr %5, align 8
%97 = load i32, ptr %9, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds ptr, ptr %96, i64 %98
%100 = load ptr, ptr %99, align 8
%101 = call i32 @snprintf(ptr noundef %16, i32 noundef %95, ptr noundef @.str.6, ptr noundef %100)
br label %102
102: ; preds = %94, %86
%103 = load i32, ptr @PATH_MAX, align 4
%104 = call i32 @readlink(ptr noundef %16, ptr noundef %16, i32 noundef %103)
store i32 %104, ptr %11, align 4
%105 = icmp slt i32 %104, 0
br i1 %105, label %106, label %117
106: ; preds = %102
%107 = load i64, ptr @errno, align 8
%108 = load i64, ptr @ENOENT, align 8
%109 = icmp eq i64 %107, %108
br i1 %109, label %110, label %112
110: ; preds = %106
%111 = load i64, ptr @ESRCH, align 8
br label %114
112: ; preds = %106
%113 = load i64, ptr @errno, align 8
br label %114
114: ; preds = %112, %110
%115 = phi i64 [ %111, %110 ], [ %113, %112 ]
%116 = call ptr @strerror(i64 noundef %115)
store ptr %116, ptr %10, align 8
br label %121
117: ; preds = %102
%118 = load i32, ptr %11, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i8, ptr %16, i64 %119
store i8 0, ptr %120, align 1
br label %121
121: ; preds = %117, %114
%122 = load ptr, ptr %5, align 8
%123 = load i32, ptr %9, align 4
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds ptr, ptr %122, i64 %124
%126 = load ptr, ptr %125, align 8
%127 = load ptr, ptr %10, align 8
%128 = call i32 @printf(ptr noundef @.str.7, ptr noundef %126, ptr noundef %127)
br label %129
129: ; preds = %121
%130 = load i32, ptr %9, align 4
%131 = add nsw i32 %130, 1
store i32 %131, ptr %9, align 4
%132 = load i32, ptr %9, align 4
%133 = load i32, ptr %4, align 4
%134 = icmp slt i32 %132, %133
br i1 %134, label %76, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %129
br label %135
135: ; preds = %._crit_edge3, %71
store i32 0, ptr %3, align 4
%136 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %136)
%137 = load i32, ptr %3, align 4
ret i32 %137
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @die(ptr noundef) #2
declare i32 @regcomp(ptr noundef, ptr noundef, i32 noundef) #2
declare i64 @regexec(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @strcmp(ptr noundef, ptr noundef) #2
declare i32 @version(...) #2
declare i32 @regfree(ptr noundef) #2
declare i32 @readlink(ptr noundef, ptr noundef, i32 noundef) #2
declare ptr @strerror(i64 noundef) #2
declare i32 @printf(ptr noundef, ptr noundef, 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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpo_4f401m.c'
source_filename = "/tmp/tmpo_4f401m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"##[sjin] sizeof(int):\09%d \0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"##[sjin] sizeof(d):\09%d \0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"##[sjin] sizeof d:\09%d \0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"##[sjin] sizeof(p):\09%d \0A\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c"##[sjin] sizeof(*p):\09%d \0A\00", align 1
@.str.5 = private unnamed_addr constant [25 x i8] c"##[sjin] sizeof(a):\09%d \0A\00", align 1
@.str.6 = private unnamed_addr constant [28 x i8] c"##[sjin] sizeof(a[0]):\09%d \0A\00", align 1
@.str.7 = private unnamed_addr constant [26 x i8] c"##[sjin] sizeof(&a):\09%d \0A\00", align 1
@.str.8 = private unnamed_addr constant [29 x i8] c"##[sjin] sizeof(&a[0]):\09%d \0A\00", align 1
@.str.9 = private unnamed_addr constant [25 x i8] c"##[sjin] sizeof(b):\09%d \0A\00", align 1
@.str.10 = private unnamed_addr constant [26 x i8] c"##[sjin] sizeof(*b):\09%d \0A\00", align 1
@.str.11 = private unnamed_addr constant [27 x i8] c"##[sjin] sizeof(**b):\09%d \0A\00", align 1
@.str.12 = private unnamed_addr constant [28 x i8] c"##[sjin] sizeof(***b):\09%d \0A\00", align 1
@.str.13 = private unnamed_addr constant [29 x i8] c"##[sjin] sizeof(****b):\09%d \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca ptr, align 8
%2 = alloca [100 x i8], align 16
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr null, ptr %1, align 8
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 100, i1 false)
store i32 0, ptr %4, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef 4)
%6 = call i32 @printf(ptr noundef @.str.1, i32 noundef 4)
%7 = call i32 @printf(ptr noundef @.str.2, i32 noundef 4)
%8 = call i32 @printf(ptr noundef @.str.3, i32 noundef 8)
%9 = call i32 @printf(ptr noundef @.str.4, i32 noundef 8)
%10 = call i32 @printf(ptr noundef @.str.5, i32 noundef 100)
%11 = call i32 @printf(ptr noundef @.str.6, i32 noundef 1)
%12 = call i32 @printf(ptr noundef @.str.7, i32 noundef 8)
%13 = call i32 @printf(ptr noundef @.str.8, i32 noundef 8)
%14 = call i32 @printf(ptr noundef @.str.9, i32 noundef 8)
%15 = call i32 @printf(ptr noundef @.str.10, i32 noundef 144)
%16 = call i32 @printf(ptr noundef @.str.11, i32 noundef 48)
%17 = call i32 @printf(ptr noundef @.str.12, i32 noundef 8)
%18 = call i32 @printf(ptr noundef @.str.13, i32 noundef 8)
%19 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%20 = call i32 @fun(ptr noundef %19)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, i32 noundef) #2
declare i32 @fun(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: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo_4f401m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"##[sjin] sizeof(int):\09%d \0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"##[sjin] sizeof(d):\09%d \0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"##[sjin] sizeof d:\09%d \0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"##[sjin] sizeof(p):\09%d \0A\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c"##[sjin] sizeof(*p):\09%d \0A\00", align 1
@.str.5 = private unnamed_addr constant [25 x i8] c"##[sjin] sizeof(a):\09%d \0A\00", align 1
@.str.6 = private unnamed_addr constant [28 x i8] c"##[sjin] sizeof(a[0]):\09%d \0A\00", align 1
@.str.7 = private unnamed_addr constant [26 x i8] c"##[sjin] sizeof(&a):\09%d \0A\00", align 1
@.str.8 = private unnamed_addr constant [29 x i8] c"##[sjin] sizeof(&a[0]):\09%d \0A\00", align 1
@.str.9 = private unnamed_addr constant [25 x i8] c"##[sjin] sizeof(b):\09%d \0A\00", align 1
@.str.10 = private unnamed_addr constant [26 x i8] c"##[sjin] sizeof(*b):\09%d \0A\00", align 1
@.str.11 = private unnamed_addr constant [27 x i8] c"##[sjin] sizeof(**b):\09%d \0A\00", align 1
@.str.12 = private unnamed_addr constant [28 x i8] c"##[sjin] sizeof(***b):\09%d \0A\00", align 1
@.str.13 = private unnamed_addr constant [29 x i8] c"##[sjin] sizeof(****b):\09%d \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca ptr, align 8
%2 = alloca [100 x i8], align 16
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr null, ptr %1, align 8
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 100, i1 false)
store i32 0, ptr %4, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef 4)
%6 = call i32 @printf(ptr noundef @.str.1, i32 noundef 4)
%7 = call i32 @printf(ptr noundef @.str.2, i32 noundef 4)
%8 = call i32 @printf(ptr noundef @.str.3, i32 noundef 8)
%9 = call i32 @printf(ptr noundef @.str.4, i32 noundef 8)
%10 = call i32 @printf(ptr noundef @.str.5, i32 noundef 100)
%11 = call i32 @printf(ptr noundef @.str.6, i32 noundef 1)
%12 = call i32 @printf(ptr noundef @.str.7, i32 noundef 8)
%13 = call i32 @printf(ptr noundef @.str.8, i32 noundef 8)
%14 = call i32 @printf(ptr noundef @.str.9, i32 noundef 8)
%15 = call i32 @printf(ptr noundef @.str.10, i32 noundef 144)
%16 = call i32 @printf(ptr noundef @.str.11, i32 noundef 48)
%17 = call i32 @printf(ptr noundef @.str.12, i32 noundef 8)
%18 = call i32 @printf(ptr noundef @.str.13, i32 noundef 8)
%19 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%20 = call i32 @fun(ptr noundef %19)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, i32 noundef) #2
declare i32 @fun(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: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpofs4as77.c'
source_filename = "/tmp/tmpofs4as77.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ASCII-8BIT\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"Big5\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"CP949\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"Emacs-Mule\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"EUC-JP\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"EUC-KR\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"EUC-TW\00", align 1
@.str.7 = private unnamed_addr constant [8 x i8] c"GB18030\00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"GBK\00", align 1
@.str.9 = private unnamed_addr constant [11 x i8] c"ISO-8859-1\00", align 1
@.str.10 = private unnamed_addr constant [11 x i8] c"ISO-8859-2\00", align 1
@.str.11 = private unnamed_addr constant [11 x i8] c"ISO-8859-3\00", align 1
@.str.12 = private unnamed_addr constant [11 x i8] c"ISO-8859-4\00", align 1
@.str.13 = private unnamed_addr constant [11 x i8] c"ISO-8859-5\00", align 1
@.str.14 = private unnamed_addr constant [11 x i8] c"ISO-8859-6\00", align 1
@.str.15 = private unnamed_addr constant [11 x i8] c"ISO-8859-7\00", align 1
@.str.16 = private unnamed_addr constant [11 x i8] c"ISO-8859-8\00", align 1
@.str.17 = private unnamed_addr constant [11 x i8] c"ISO-8859-9\00", align 1
@.str.18 = private unnamed_addr constant [12 x i8] c"ISO-8859-10\00", align 1
@.str.19 = private unnamed_addr constant [12 x i8] c"ISO-8859-11\00", align 1
@.str.20 = private unnamed_addr constant [12 x i8] c"ISO-8859-13\00", align 1
@.str.21 = private unnamed_addr constant [12 x i8] c"ISO-8859-14\00", align 1
@.str.22 = private unnamed_addr constant [12 x i8] c"ISO-8859-15\00", align 1
@.str.23 = private unnamed_addr constant [12 x i8] c"ISO-8859-16\00", align 1
@.str.24 = private unnamed_addr constant [7 x i8] c"KOI8-R\00", align 1
@.str.25 = private unnamed_addr constant [7 x i8] c"KOI8-U\00", align 1
@.str.26 = private unnamed_addr constant [10 x i8] c"Shift_JIS\00", align 1
@.str.27 = private unnamed_addr constant [9 x i8] c"US-ASCII\00", align 1
@.str.28 = private unnamed_addr constant [6 x i8] c"UTF-8\00", align 1
@.str.29 = private unnamed_addr constant [9 x i8] c"UTF-16BE\00", align 1
@.str.30 = private unnamed_addr constant [9 x i8] c"UTF-16LE\00", align 1
@.str.31 = private unnamed_addr constant [9 x i8] c"UTF-32BE\00", align 1
@.str.32 = private unnamed_addr constant [9 x i8] c"UTF-32LE\00", align 1
@.str.33 = private unnamed_addr constant [13 x i8] c"Windows-1251\00", align 1
@.str.34 = private unnamed_addr constant [7 x i8] c"BINARY\00", align 1
@.str.35 = private unnamed_addr constant [7 x i8] c"IBM437\00", align 1
@.str.36 = private unnamed_addr constant [6 x i8] c"CP437\00", align 1
@.str.37 = private unnamed_addr constant [7 x i8] c"IBM737\00", align 1
@.str.38 = private unnamed_addr constant [6 x i8] c"CP737\00", align 1
@.str.39 = private unnamed_addr constant [7 x i8] c"IBM775\00", align 1
@.str.40 = private unnamed_addr constant [6 x i8] c"CP775\00", align 1
@.str.41 = private unnamed_addr constant [6 x i8] c"CP850\00", align 1
@.str.42 = private unnamed_addr constant [7 x i8] c"IBM850\00", align 1
@.str.43 = private unnamed_addr constant [7 x i8] c"IBM852\00", align 1
@.str.44 = private unnamed_addr constant [6 x i8] c"CP852\00", align 1
@.str.45 = private unnamed_addr constant [7 x i8] c"IBM855\00", align 1
@.str.46 = private unnamed_addr constant [6 x i8] c"CP855\00", align 1
@.str.47 = private unnamed_addr constant [7 x i8] c"IBM857\00", align 1
@.str.48 = private unnamed_addr constant [6 x i8] c"CP857\00", align 1
@.str.49 = private unnamed_addr constant [7 x i8] c"IBM860\00", align 1
@.str.50 = private unnamed_addr constant [6 x i8] c"CP860\00", align 1
@.str.51 = private unnamed_addr constant [7 x i8] c"IBM861\00", align 1
@.str.52 = private unnamed_addr constant [6 x i8] c"CP861\00", align 1
@.str.53 = private unnamed_addr constant [7 x i8] c"IBM862\00", align 1
@.str.54 = private unnamed_addr constant [6 x i8] c"CP862\00", align 1
@.str.55 = private unnamed_addr constant [7 x i8] c"IBM863\00", align 1
@.str.56 = private unnamed_addr constant [6 x i8] c"CP863\00", align 1
@.str.57 = private unnamed_addr constant [7 x i8] c"IBM864\00", align 1
@.str.58 = private unnamed_addr constant [6 x i8] c"CP864\00", align 1
@.str.59 = private unnamed_addr constant [7 x i8] c"IBM865\00", align 1
@.str.60 = private unnamed_addr constant [6 x i8] c"CP865\00", align 1
@.str.61 = private unnamed_addr constant [7 x i8] c"IBM866\00", align 1
@.str.62 = private unnamed_addr constant [6 x i8] c"CP866\00", align 1
@.str.63 = private unnamed_addr constant [7 x i8] c"IBM869\00", align 1
@.str.64 = private unnamed_addr constant [6 x i8] c"CP869\00", align 1
@.str.65 = private unnamed_addr constant [13 x i8] c"Windows-1258\00", align 1
@.str.66 = private unnamed_addr constant [7 x i8] c"CP1258\00", align 1
@.str.67 = private unnamed_addr constant [7 x i8] c"GB1988\00", align 1
@.str.68 = private unnamed_addr constant [12 x i8] c"macCentEuro\00", align 1
@.str.69 = private unnamed_addr constant [12 x i8] c"macCroatian\00", align 1
@.str.70 = private unnamed_addr constant [12 x i8] c"macCyrillic\00", align 1
@.str.71 = private unnamed_addr constant [9 x i8] c"macGreek\00", align 1
@.str.72 = private unnamed_addr constant [11 x i8] c"macIceland\00", align 1
@.str.73 = private unnamed_addr constant [9 x i8] c"macRoman\00", align 1
@.str.74 = private unnamed_addr constant [11 x i8] c"macRomania\00", align 1
@.str.75 = private unnamed_addr constant [8 x i8] c"macThai\00", align 1
@.str.76 = private unnamed_addr constant [11 x i8] c"macTurkish\00", align 1
@.str.77 = private unnamed_addr constant [11 x i8] c"macUkraine\00", align 1
@.str.78 = private unnamed_addr constant [6 x i8] c"CP950\00", align 1
@.str.79 = private unnamed_addr constant [5 x i8] c"BIG5\00", align 1
@.str.80 = private unnamed_addr constant [22 x i8] c"stateless-ISO-2022-JP\00", align 1
@.str.81 = private unnamed_addr constant [6 x i8] c"eucJP\00", align 1
@.str.82 = private unnamed_addr constant [9 x i8] c"eucJP-ms\00", align 1
@.str.83 = private unnamed_addr constant [10 x i8] c"euc-jp-ms\00", align 1
@.str.84 = private unnamed_addr constant [8 x i8] c"CP51932\00", align 1
@.str.85 = private unnamed_addr constant [6 x i8] c"eucKR\00", align 1
@.str.86 = private unnamed_addr constant [6 x i8] c"eucTW\00", align 1
@.str.87 = private unnamed_addr constant [7 x i8] c"EUC-CN\00", align 1
@.str.88 = private unnamed_addr constant [7 x i8] c"GB2312\00", align 1
@.str.89 = private unnamed_addr constant [6 x i8] c"eucCN\00", align 1
@.str.90 = private unnamed_addr constant [8 x i8] c"GB12345\00", align 1
@.str.91 = private unnamed_addr constant [6 x i8] c"CP936\00", align 1
@.str.92 = private unnamed_addr constant [12 x i8] c"ISO-2022-JP\00", align 1
@.str.93 = private unnamed_addr constant [11 x i8] c"ISO2022-JP\00", align 1
@.str.94 = private unnamed_addr constant [14 x i8] c"ISO-2022-JP-2\00", align 1
@.str.95 = private unnamed_addr constant [12 x i8] c"ISO2022-JP2\00", align 1
@.str.96 = private unnamed_addr constant [10 x i8] c"ISO8859-1\00", align 1
@.str.97 = private unnamed_addr constant [13 x i8] c"Windows-1252\00", align 1
@.str.98 = private unnamed_addr constant [7 x i8] c"CP1252\00", align 1
@.str.99 = private unnamed_addr constant [10 x i8] c"ISO8859-2\00", align 1
@.str.100 = private unnamed_addr constant [13 x i8] c"Windows-1250\00", align 1
@.str.101 = private unnamed_addr constant [7 x i8] c"CP1250\00", align 1
@.str.102 = private unnamed_addr constant [10 x i8] c"ISO8859-3\00", align 1
@.str.103 = private unnamed_addr constant [10 x i8] c"ISO8859-4\00", align 1
@.str.104 = private unnamed_addr constant [10 x i8] c"ISO8859-5\00", align 1
@.str.105 = private unnamed_addr constant [10 x i8] c"ISO8859-6\00", align 1
@.str.106 = private unnamed_addr constant [13 x i8] c"Windows-1256\00", align 1
@.str.107 = private unnamed_addr constant [7 x i8] c"CP1256\00", align 1
@.str.108 = private unnamed_addr constant [10 x i8] c"ISO8859-7\00", align 1
@.str.109 = private unnamed_addr constant [13 x i8] c"Windows-1253\00", align 1
@.str.110 = private unnamed_addr constant [7 x i8] c"CP1253\00", align 1
@.str.111 = private unnamed_addr constant [10 x i8] c"ISO8859-8\00", align 1
@.str.112 = private unnamed_addr constant [13 x i8] c"Windows-1255\00", align 1
@.str.113 = private unnamed_addr constant [7 x i8] c"CP1255\00", align 1
@.str.114 = private unnamed_addr constant [10 x i8] c"ISO8859-9\00", align 1
@.str.115 = private unnamed_addr constant [13 x i8] c"Windows-1254\00", align 1
@.str.116 = private unnamed_addr constant [7 x i8] c"CP1254\00", align 1
@.str.117 = private unnamed_addr constant [11 x i8] c"ISO8859-10\00", align 1
@.str.118 = private unnamed_addr constant [11 x i8] c"ISO8859-11\00", align 1
@.str.119 = private unnamed_addr constant [8 x i8] c"TIS-620\00", align 1
@.str.120 = private unnamed_addr constant [12 x i8] c"Windows-874\00", align 1
@.str.121 = private unnamed_addr constant [6 x i8] c"CP874\00", align 1
@.str.122 = private unnamed_addr constant [11 x i8] c"ISO8859-13\00", align 1
@.str.123 = private unnamed_addr constant [13 x i8] c"Windows-1257\00", align 1
@.str.124 = private unnamed_addr constant [7 x i8] c"CP1257\00", align 1
@.str.125 = private unnamed_addr constant [11 x i8] c"ISO8859-14\00", align 1
@.str.126 = private unnamed_addr constant [11 x i8] c"ISO8859-15\00", align 1
@.str.127 = private unnamed_addr constant [11 x i8] c"ISO8859-16\00", align 1
@.str.128 = private unnamed_addr constant [6 x i8] c"CP878\00", align 1
@.str.129 = private unnamed_addr constant [5 x i8] c"SJIS\00", align 1
@.str.130 = private unnamed_addr constant [12 x i8] c"Windows-31J\00", align 1
@.str.131 = private unnamed_addr constant [6 x i8] c"CP932\00", align 1
@.str.132 = private unnamed_addr constant [13 x i8] c"csWindows31J\00", align 1
@.str.133 = private unnamed_addr constant [12 x i8] c"MacJapanese\00", align 1
@.str.134 = private unnamed_addr constant [9 x i8] c"MacJapan\00", align 1
@.str.135 = private unnamed_addr constant [6 x i8] c"ASCII\00", align 1
@.str.136 = private unnamed_addr constant [15 x i8] c"ANSI_X3.4-1968\00", align 1
@.str.137 = private unnamed_addr constant [4 x i8] c"646\00", align 1
@.str.138 = private unnamed_addr constant [6 x i8] c"UTF-7\00", align 1
@.str.139 = private unnamed_addr constant [8 x i8] c"CP65000\00", align 1
@.str.140 = private unnamed_addr constant [8 x i8] c"CP65001\00", align 1
@.str.141 = private unnamed_addr constant [9 x i8] c"UTF8-MAC\00", align 1
@.str.142 = private unnamed_addr constant [10 x i8] c"UTF-8-MAC\00", align 1
@.str.143 = private unnamed_addr constant [8 x i8] c"UCS-2BE\00", align 1
@.str.144 = private unnamed_addr constant [8 x i8] c"UCS-4BE\00", align 1
@.str.145 = private unnamed_addr constant [8 x i8] c"UCS-4LE\00", align 1
@.str.146 = private unnamed_addr constant [7 x i8] c"CP1251\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Init_encdb() #0 {
%1 = call i32 @rb_encdb_declare(ptr noundef @.str)
%2 = call i32 @rb_encdb_declare(ptr noundef @.str.1)
%3 = call i32 @rb_encdb_declare(ptr noundef @.str.2)
%4 = call i32 @rb_encdb_declare(ptr noundef @.str.3)
%5 = call i32 @rb_encdb_declare(ptr noundef @.str.4)
%6 = call i32 @rb_encdb_declare(ptr noundef @.str.5)
%7 = call i32 @rb_encdb_declare(ptr noundef @.str.6)
%8 = call i32 @rb_encdb_declare(ptr noundef @.str.7)
%9 = call i32 @rb_encdb_declare(ptr noundef @.str.8)
%10 = call i32 @rb_encdb_declare(ptr noundef @.str.9)
%11 = call i32 @rb_encdb_declare(ptr noundef @.str.10)
%12 = call i32 @rb_encdb_declare(ptr noundef @.str.11)
%13 = call i32 @rb_encdb_declare(ptr noundef @.str.12)
%14 = call i32 @rb_encdb_declare(ptr noundef @.str.13)
%15 = call i32 @rb_encdb_declare(ptr noundef @.str.14)
%16 = call i32 @rb_encdb_declare(ptr noundef @.str.15)
%17 = call i32 @rb_encdb_declare(ptr noundef @.str.16)
%18 = call i32 @rb_encdb_declare(ptr noundef @.str.17)
%19 = call i32 @rb_encdb_declare(ptr noundef @.str.18)
%20 = call i32 @rb_encdb_declare(ptr noundef @.str.19)
%21 = call i32 @rb_encdb_declare(ptr noundef @.str.20)
%22 = call i32 @rb_encdb_declare(ptr noundef @.str.21)
%23 = call i32 @rb_encdb_declare(ptr noundef @.str.22)
%24 = call i32 @rb_encdb_declare(ptr noundef @.str.23)
%25 = call i32 @rb_encdb_declare(ptr noundef @.str.24)
%26 = call i32 @rb_encdb_declare(ptr noundef @.str.25)
%27 = call i32 @rb_encdb_declare(ptr noundef @.str.26)
%28 = call i32 @rb_encdb_declare(ptr noundef @.str.27)
%29 = call i32 @rb_encdb_declare(ptr noundef @.str.28)
%30 = call i32 @rb_encdb_declare(ptr noundef @.str.29)
%31 = call i32 @rb_encdb_declare(ptr noundef @.str.30)
%32 = call i32 @rb_encdb_declare(ptr noundef @.str.31)
%33 = call i32 @rb_encdb_declare(ptr noundef @.str.32)
%34 = call i32 @rb_encdb_declare(ptr noundef @.str.33)
%35 = call i32 @rb_encdb_alias(ptr noundef @.str.34, ptr noundef @.str)
%36 = call i32 @rb_encdb_replicate(ptr noundef @.str.35, ptr noundef @.str)
%37 = call i32 @rb_encdb_alias(ptr noundef @.str.36, ptr noundef @.str.35)
%38 = call i32 @rb_encdb_replicate(ptr noundef @.str.37, ptr noundef @.str)
%39 = call i32 @rb_encdb_alias(ptr noundef @.str.38, ptr noundef @.str.37)
%40 = call i32 @rb_encdb_replicate(ptr noundef @.str.39, ptr noundef @.str)
%41 = call i32 @rb_encdb_alias(ptr noundef @.str.40, ptr noundef @.str.39)
%42 = call i32 @rb_encdb_replicate(ptr noundef @.str.41, ptr noundef @.str)
%43 = call i32 @rb_encdb_alias(ptr noundef @.str.42, ptr noundef @.str.41)
%44 = call i32 @rb_encdb_replicate(ptr noundef @.str.43, ptr noundef @.str)
%45 = call i32 @rb_encdb_replicate(ptr noundef @.str.44, ptr noundef @.str.43)
%46 = call i32 @rb_encdb_replicate(ptr noundef @.str.45, ptr noundef @.str)
%47 = call i32 @rb_encdb_replicate(ptr noundef @.str.46, ptr noundef @.str.45)
%48 = call i32 @rb_encdb_replicate(ptr noundef @.str.47, ptr noundef @.str)
%49 = call i32 @rb_encdb_alias(ptr noundef @.str.48, ptr noundef @.str.47)
%50 = call i32 @rb_encdb_replicate(ptr noundef @.str.49, ptr noundef @.str)
%51 = call i32 @rb_encdb_alias(ptr noundef @.str.50, ptr noundef @.str.49)
%52 = call i32 @rb_encdb_replicate(ptr noundef @.str.51, ptr noundef @.str)
%53 = call i32 @rb_encdb_alias(ptr noundef @.str.52, ptr noundef @.str.51)
%54 = call i32 @rb_encdb_replicate(ptr noundef @.str.53, ptr noundef @.str)
%55 = call i32 @rb_encdb_alias(ptr noundef @.str.54, ptr noundef @.str.53)
%56 = call i32 @rb_encdb_replicate(ptr noundef @.str.55, ptr noundef @.str)
%57 = call i32 @rb_encdb_alias(ptr noundef @.str.56, ptr noundef @.str.55)
%58 = call i32 @rb_encdb_replicate(ptr noundef @.str.57, ptr noundef @.str)
%59 = call i32 @rb_encdb_alias(ptr noundef @.str.58, ptr noundef @.str.57)
%60 = call i32 @rb_encdb_replicate(ptr noundef @.str.59, ptr noundef @.str)
%61 = call i32 @rb_encdb_alias(ptr noundef @.str.60, ptr noundef @.str.59)
%62 = call i32 @rb_encdb_replicate(ptr noundef @.str.61, ptr noundef @.str)
%63 = call i32 @rb_encdb_alias(ptr noundef @.str.62, ptr noundef @.str.61)
%64 = call i32 @rb_encdb_replicate(ptr noundef @.str.63, ptr noundef @.str)
%65 = call i32 @rb_encdb_alias(ptr noundef @.str.64, ptr noundef @.str.63)
%66 = call i32 @rb_encdb_replicate(ptr noundef @.str.65, ptr noundef @.str)
%67 = call i32 @rb_encdb_alias(ptr noundef @.str.66, ptr noundef @.str.65)
%68 = call i32 @rb_encdb_replicate(ptr noundef @.str.67, ptr noundef @.str)
%69 = call i32 @rb_encdb_replicate(ptr noundef @.str.68, ptr noundef @.str)
%70 = call i32 @rb_encdb_replicate(ptr noundef @.str.69, ptr noundef @.str)
%71 = call i32 @rb_encdb_replicate(ptr noundef @.str.70, ptr noundef @.str)
%72 = call i32 @rb_encdb_replicate(ptr noundef @.str.71, ptr noundef @.str)
%73 = call i32 @rb_encdb_replicate(ptr noundef @.str.72, ptr noundef @.str)
%74 = call i32 @rb_encdb_replicate(ptr noundef @.str.73, ptr noundef @.str)
%75 = call i32 @rb_encdb_replicate(ptr noundef @.str.74, ptr noundef @.str)
%76 = call i32 @rb_encdb_replicate(ptr noundef @.str.75, ptr noundef @.str)
%77 = call i32 @rb_encdb_replicate(ptr noundef @.str.76, ptr noundef @.str)
%78 = call i32 @rb_encdb_replicate(ptr noundef @.str.77, ptr noundef @.str)
%79 = call i32 @rb_encdb_alias(ptr noundef @.str.78, ptr noundef @.str.79)
%80 = call i32 @rb_encdb_replicate(ptr noundef @.str.80, ptr noundef @.str.3)
%81 = call i32 @rb_encdb_alias(ptr noundef @.str.81, ptr noundef @.str.4)
%82 = call i32 @rb_encdb_replicate(ptr noundef @.str.82, ptr noundef @.str.4)
%83 = call i32 @rb_encdb_alias(ptr noundef @.str.83, ptr noundef @.str.82)
%84 = call i32 @rb_encdb_replicate(ptr noundef @.str.84, ptr noundef @.str.4)
%85 = call i32 @rb_encdb_alias(ptr noundef @.str.85, ptr noundef @.str.5)
%86 = call i32 @rb_encdb_alias(ptr noundef @.str.86, ptr noundef @.str.6)
%87 = call i32 @rb_encdb_alias(ptr noundef @.str.87, ptr noundef @.str.88)
%88 = call i32 @rb_encdb_alias(ptr noundef @.str.89, ptr noundef @.str.88)
%89 = call i32 @rb_encdb_replicate(ptr noundef @.str.90, ptr noundef @.str.88)
%90 = call i32 @rb_encdb_alias(ptr noundef @.str.91, ptr noundef @.str.8)
%91 = call i32 @rb_encdb_dummy(ptr noundef @.str.92)
%92 = call i32 @rb_encdb_alias(ptr noundef @.str.93, ptr noundef @.str.92)
%93 = call i32 @rb_encdb_replicate(ptr noundef @.str.94, ptr noundef @.str.92)
%94 = call i32 @rb_encdb_alias(ptr noundef @.str.95, ptr noundef @.str.94)
%95 = call i32 @rb_encdb_alias(ptr noundef @.str.96, ptr noundef @.str.9)
%96 = call i32 @rb_encdb_replicate(ptr noundef @.str.97, ptr noundef @.str.9)
%97 = call i32 @rb_encdb_alias(ptr noundef @.str.98, ptr noundef @.str.97)
%98 = call i32 @rb_encdb_alias(ptr noundef @.str.99, ptr noundef @.str.10)
%99 = call i32 @rb_encdb_replicate(ptr noundef @.str.100, ptr noundef @.str.10)
%100 = call i32 @rb_encdb_alias(ptr noundef @.str.101, ptr noundef @.str.100)
%101 = call i32 @rb_encdb_alias(ptr noundef @.str.102, ptr noundef @.str.11)
%102 = call i32 @rb_encdb_alias(ptr noundef @.str.103, ptr noundef @.str.12)
%103 = call i32 @rb_encdb_alias(ptr noundef @.str.104, ptr noundef @.str.13)
%104 = call i32 @rb_encdb_alias(ptr noundef @.str.105, ptr noundef @.str.14)
%105 = call i32 @rb_encdb_replicate(ptr noundef @.str.106, ptr noundef @.str.14)
%106 = call i32 @rb_encdb_alias(ptr noundef @.str.107, ptr noundef @.str.106)
%107 = call i32 @rb_encdb_alias(ptr noundef @.str.108, ptr noundef @.str.15)
%108 = call i32 @rb_encdb_replicate(ptr noundef @.str.109, ptr noundef @.str.15)
%109 = call i32 @rb_encdb_alias(ptr noundef @.str.110, ptr noundef @.str.109)
%110 = call i32 @rb_encdb_alias(ptr noundef @.str.111, ptr noundef @.str.16)
%111 = call i32 @rb_encdb_replicate(ptr noundef @.str.112, ptr noundef @.str.16)
%112 = call i32 @rb_encdb_alias(ptr noundef @.str.113, ptr noundef @.str.112)
%113 = call i32 @rb_encdb_alias(ptr noundef @.str.114, ptr noundef @.str.17)
%114 = call i32 @rb_encdb_replicate(ptr noundef @.str.115, ptr noundef @.str.17)
%115 = call i32 @rb_encdb_alias(ptr noundef @.str.116, ptr noundef @.str.115)
%116 = call i32 @rb_encdb_alias(ptr noundef @.str.117, ptr noundef @.str.18)
%117 = call i32 @rb_encdb_alias(ptr noundef @.str.118, ptr noundef @.str.19)
%118 = call i32 @rb_encdb_replicate(ptr noundef @.str.119, ptr noundef @.str.19)
%119 = call i32 @rb_encdb_replicate(ptr noundef @.str.120, ptr noundef @.str.19)
%120 = call i32 @rb_encdb_alias(ptr noundef @.str.121, ptr noundef @.str.120)
%121 = call i32 @rb_encdb_alias(ptr noundef @.str.122, ptr noundef @.str.20)
%122 = call i32 @rb_encdb_replicate(ptr noundef @.str.123, ptr noundef @.str.20)
%123 = call i32 @rb_encdb_alias(ptr noundef @.str.124, ptr noundef @.str.123)
%124 = call i32 @rb_encdb_alias(ptr noundef @.str.125, ptr noundef @.str.21)
%125 = call i32 @rb_encdb_alias(ptr noundef @.str.126, ptr noundef @.str.22)
%126 = call i32 @rb_encdb_alias(ptr noundef @.str.127, ptr noundef @.str.23)
%127 = call i32 @rb_encdb_alias(ptr noundef @.str.128, ptr noundef @.str.24)
%128 = call i32 @rb_encdb_alias(ptr noundef @.str.129, ptr noundef @.str.26)
%129 = call i32 @rb_encdb_replicate(ptr noundef @.str.130, ptr noundef @.str.26)
%130 = call i32 @rb_encdb_alias(ptr noundef @.str.131, ptr noundef @.str.130)
%131 = call i32 @rb_encdb_alias(ptr noundef @.str.132, ptr noundef @.str.130)
%132 = call i32 @rb_encdb_replicate(ptr noundef @.str.133, ptr noundef @.str.26)
%133 = call i32 @rb_encdb_alias(ptr noundef @.str.134, ptr noundef @.str.133)
%134 = call i32 @rb_encdb_alias(ptr noundef @.str.135, ptr noundef @.str.27)
%135 = call i32 @rb_encdb_alias(ptr noundef @.str.136, ptr noundef @.str.27)
%136 = call i32 @rb_encdb_alias(ptr noundef @.str.137, ptr noundef @.str.27)
%137 = call i32 @rb_encdb_dummy(ptr noundef @.str.138)
%138 = call i32 @rb_encdb_alias(ptr noundef @.str.139, ptr noundef @.str.138)
%139 = call i32 @rb_encdb_alias(ptr noundef @.str.140, ptr noundef @.str.28)
%140 = call i32 @rb_encdb_replicate(ptr noundef @.str.141, ptr noundef @.str.28)
%141 = call i32 @rb_encdb_alias(ptr noundef @.str.142, ptr noundef @.str.141)
%142 = call i32 @rb_encdb_alias(ptr noundef @.str.143, ptr noundef @.str.29)
%143 = call i32 @rb_encdb_alias(ptr noundef @.str.144, ptr noundef @.str.31)
%144 = call i32 @rb_encdb_alias(ptr noundef @.str.145, ptr noundef @.str.32)
%145 = call i32 @rb_encdb_alias(ptr noundef @.str.146, ptr noundef @.str.33)
ret void
}
declare i32 @rb_encdb_declare(ptr noundef) #1
declare i32 @rb_encdb_alias(ptr noundef, ptr noundef) #1
declare i32 @rb_encdb_replicate(ptr noundef, ptr noundef) #1
declare i32 @rb_encdb_dummy(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpofs4as77.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ASCII-8BIT\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"Big5\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"CP949\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"Emacs-Mule\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"EUC-JP\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"EUC-KR\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"EUC-TW\00", align 1
@.str.7 = private unnamed_addr constant [8 x i8] c"GB18030\00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"GBK\00", align 1
@.str.9 = private unnamed_addr constant [11 x i8] c"ISO-8859-1\00", align 1
@.str.10 = private unnamed_addr constant [11 x i8] c"ISO-8859-2\00", align 1
@.str.11 = private unnamed_addr constant [11 x i8] c"ISO-8859-3\00", align 1
@.str.12 = private unnamed_addr constant [11 x i8] c"ISO-8859-4\00", align 1
@.str.13 = private unnamed_addr constant [11 x i8] c"ISO-8859-5\00", align 1
@.str.14 = private unnamed_addr constant [11 x i8] c"ISO-8859-6\00", align 1
@.str.15 = private unnamed_addr constant [11 x i8] c"ISO-8859-7\00", align 1
@.str.16 = private unnamed_addr constant [11 x i8] c"ISO-8859-8\00", align 1
@.str.17 = private unnamed_addr constant [11 x i8] c"ISO-8859-9\00", align 1
@.str.18 = private unnamed_addr constant [12 x i8] c"ISO-8859-10\00", align 1
@.str.19 = private unnamed_addr constant [12 x i8] c"ISO-8859-11\00", align 1
@.str.20 = private unnamed_addr constant [12 x i8] c"ISO-8859-13\00", align 1
@.str.21 = private unnamed_addr constant [12 x i8] c"ISO-8859-14\00", align 1
@.str.22 = private unnamed_addr constant [12 x i8] c"ISO-8859-15\00", align 1
@.str.23 = private unnamed_addr constant [12 x i8] c"ISO-8859-16\00", align 1
@.str.24 = private unnamed_addr constant [7 x i8] c"KOI8-R\00", align 1
@.str.25 = private unnamed_addr constant [7 x i8] c"KOI8-U\00", align 1
@.str.26 = private unnamed_addr constant [10 x i8] c"Shift_JIS\00", align 1
@.str.27 = private unnamed_addr constant [9 x i8] c"US-ASCII\00", align 1
@.str.28 = private unnamed_addr constant [6 x i8] c"UTF-8\00", align 1
@.str.29 = private unnamed_addr constant [9 x i8] c"UTF-16BE\00", align 1
@.str.30 = private unnamed_addr constant [9 x i8] c"UTF-16LE\00", align 1
@.str.31 = private unnamed_addr constant [9 x i8] c"UTF-32BE\00", align 1
@.str.32 = private unnamed_addr constant [9 x i8] c"UTF-32LE\00", align 1
@.str.33 = private unnamed_addr constant [13 x i8] c"Windows-1251\00", align 1
@.str.34 = private unnamed_addr constant [7 x i8] c"BINARY\00", align 1
@.str.35 = private unnamed_addr constant [7 x i8] c"IBM437\00", align 1
@.str.36 = private unnamed_addr constant [6 x i8] c"CP437\00", align 1
@.str.37 = private unnamed_addr constant [7 x i8] c"IBM737\00", align 1
@.str.38 = private unnamed_addr constant [6 x i8] c"CP737\00", align 1
@.str.39 = private unnamed_addr constant [7 x i8] c"IBM775\00", align 1
@.str.40 = private unnamed_addr constant [6 x i8] c"CP775\00", align 1
@.str.41 = private unnamed_addr constant [6 x i8] c"CP850\00", align 1
@.str.42 = private unnamed_addr constant [7 x i8] c"IBM850\00", align 1
@.str.43 = private unnamed_addr constant [7 x i8] c"IBM852\00", align 1
@.str.44 = private unnamed_addr constant [6 x i8] c"CP852\00", align 1
@.str.45 = private unnamed_addr constant [7 x i8] c"IBM855\00", align 1
@.str.46 = private unnamed_addr constant [6 x i8] c"CP855\00", align 1
@.str.47 = private unnamed_addr constant [7 x i8] c"IBM857\00", align 1
@.str.48 = private unnamed_addr constant [6 x i8] c"CP857\00", align 1
@.str.49 = private unnamed_addr constant [7 x i8] c"IBM860\00", align 1
@.str.50 = private unnamed_addr constant [6 x i8] c"CP860\00", align 1
@.str.51 = private unnamed_addr constant [7 x i8] c"IBM861\00", align 1
@.str.52 = private unnamed_addr constant [6 x i8] c"CP861\00", align 1
@.str.53 = private unnamed_addr constant [7 x i8] c"IBM862\00", align 1
@.str.54 = private unnamed_addr constant [6 x i8] c"CP862\00", align 1
@.str.55 = private unnamed_addr constant [7 x i8] c"IBM863\00", align 1
@.str.56 = private unnamed_addr constant [6 x i8] c"CP863\00", align 1
@.str.57 = private unnamed_addr constant [7 x i8] c"IBM864\00", align 1
@.str.58 = private unnamed_addr constant [6 x i8] c"CP864\00", align 1
@.str.59 = private unnamed_addr constant [7 x i8] c"IBM865\00", align 1
@.str.60 = private unnamed_addr constant [6 x i8] c"CP865\00", align 1
@.str.61 = private unnamed_addr constant [7 x i8] c"IBM866\00", align 1
@.str.62 = private unnamed_addr constant [6 x i8] c"CP866\00", align 1
@.str.63 = private unnamed_addr constant [7 x i8] c"IBM869\00", align 1
@.str.64 = private unnamed_addr constant [6 x i8] c"CP869\00", align 1
@.str.65 = private unnamed_addr constant [13 x i8] c"Windows-1258\00", align 1
@.str.66 = private unnamed_addr constant [7 x i8] c"CP1258\00", align 1
@.str.67 = private unnamed_addr constant [7 x i8] c"GB1988\00", align 1
@.str.68 = private unnamed_addr constant [12 x i8] c"macCentEuro\00", align 1
@.str.69 = private unnamed_addr constant [12 x i8] c"macCroatian\00", align 1
@.str.70 = private unnamed_addr constant [12 x i8] c"macCyrillic\00", align 1
@.str.71 = private unnamed_addr constant [9 x i8] c"macGreek\00", align 1
@.str.72 = private unnamed_addr constant [11 x i8] c"macIceland\00", align 1
@.str.73 = private unnamed_addr constant [9 x i8] c"macRoman\00", align 1
@.str.74 = private unnamed_addr constant [11 x i8] c"macRomania\00", align 1
@.str.75 = private unnamed_addr constant [8 x i8] c"macThai\00", align 1
@.str.76 = private unnamed_addr constant [11 x i8] c"macTurkish\00", align 1
@.str.77 = private unnamed_addr constant [11 x i8] c"macUkraine\00", align 1
@.str.78 = private unnamed_addr constant [6 x i8] c"CP950\00", align 1
@.str.79 = private unnamed_addr constant [5 x i8] c"BIG5\00", align 1
@.str.80 = private unnamed_addr constant [22 x i8] c"stateless-ISO-2022-JP\00", align 1
@.str.81 = private unnamed_addr constant [6 x i8] c"eucJP\00", align 1
@.str.82 = private unnamed_addr constant [9 x i8] c"eucJP-ms\00", align 1
@.str.83 = private unnamed_addr constant [10 x i8] c"euc-jp-ms\00", align 1
@.str.84 = private unnamed_addr constant [8 x i8] c"CP51932\00", align 1
@.str.85 = private unnamed_addr constant [6 x i8] c"eucKR\00", align 1
@.str.86 = private unnamed_addr constant [6 x i8] c"eucTW\00", align 1
@.str.87 = private unnamed_addr constant [7 x i8] c"EUC-CN\00", align 1
@.str.88 = private unnamed_addr constant [7 x i8] c"GB2312\00", align 1
@.str.89 = private unnamed_addr constant [6 x i8] c"eucCN\00", align 1
@.str.90 = private unnamed_addr constant [8 x i8] c"GB12345\00", align 1
@.str.91 = private unnamed_addr constant [6 x i8] c"CP936\00", align 1
@.str.92 = private unnamed_addr constant [12 x i8] c"ISO-2022-JP\00", align 1
@.str.93 = private unnamed_addr constant [11 x i8] c"ISO2022-JP\00", align 1
@.str.94 = private unnamed_addr constant [14 x i8] c"ISO-2022-JP-2\00", align 1
@.str.95 = private unnamed_addr constant [12 x i8] c"ISO2022-JP2\00", align 1
@.str.96 = private unnamed_addr constant [10 x i8] c"ISO8859-1\00", align 1
@.str.97 = private unnamed_addr constant [13 x i8] c"Windows-1252\00", align 1
@.str.98 = private unnamed_addr constant [7 x i8] c"CP1252\00", align 1
@.str.99 = private unnamed_addr constant [10 x i8] c"ISO8859-2\00", align 1
@.str.100 = private unnamed_addr constant [13 x i8] c"Windows-1250\00", align 1
@.str.101 = private unnamed_addr constant [7 x i8] c"CP1250\00", align 1
@.str.102 = private unnamed_addr constant [10 x i8] c"ISO8859-3\00", align 1
@.str.103 = private unnamed_addr constant [10 x i8] c"ISO8859-4\00", align 1
@.str.104 = private unnamed_addr constant [10 x i8] c"ISO8859-5\00", align 1
@.str.105 = private unnamed_addr constant [10 x i8] c"ISO8859-6\00", align 1
@.str.106 = private unnamed_addr constant [13 x i8] c"Windows-1256\00", align 1
@.str.107 = private unnamed_addr constant [7 x i8] c"CP1256\00", align 1
@.str.108 = private unnamed_addr constant [10 x i8] c"ISO8859-7\00", align 1
@.str.109 = private unnamed_addr constant [13 x i8] c"Windows-1253\00", align 1
@.str.110 = private unnamed_addr constant [7 x i8] c"CP1253\00", align 1
@.str.111 = private unnamed_addr constant [10 x i8] c"ISO8859-8\00", align 1
@.str.112 = private unnamed_addr constant [13 x i8] c"Windows-1255\00", align 1
@.str.113 = private unnamed_addr constant [7 x i8] c"CP1255\00", align 1
@.str.114 = private unnamed_addr constant [10 x i8] c"ISO8859-9\00", align 1
@.str.115 = private unnamed_addr constant [13 x i8] c"Windows-1254\00", align 1
@.str.116 = private unnamed_addr constant [7 x i8] c"CP1254\00", align 1
@.str.117 = private unnamed_addr constant [11 x i8] c"ISO8859-10\00", align 1
@.str.118 = private unnamed_addr constant [11 x i8] c"ISO8859-11\00", align 1
@.str.119 = private unnamed_addr constant [8 x i8] c"TIS-620\00", align 1
@.str.120 = private unnamed_addr constant [12 x i8] c"Windows-874\00", align 1
@.str.121 = private unnamed_addr constant [6 x i8] c"CP874\00", align 1
@.str.122 = private unnamed_addr constant [11 x i8] c"ISO8859-13\00", align 1
@.str.123 = private unnamed_addr constant [13 x i8] c"Windows-1257\00", align 1
@.str.124 = private unnamed_addr constant [7 x i8] c"CP1257\00", align 1
@.str.125 = private unnamed_addr constant [11 x i8] c"ISO8859-14\00", align 1
@.str.126 = private unnamed_addr constant [11 x i8] c"ISO8859-15\00", align 1
@.str.127 = private unnamed_addr constant [11 x i8] c"ISO8859-16\00", align 1
@.str.128 = private unnamed_addr constant [6 x i8] c"CP878\00", align 1
@.str.129 = private unnamed_addr constant [5 x i8] c"SJIS\00", align 1
@.str.130 = private unnamed_addr constant [12 x i8] c"Windows-31J\00", align 1
@.str.131 = private unnamed_addr constant [6 x i8] c"CP932\00", align 1
@.str.132 = private unnamed_addr constant [13 x i8] c"csWindows31J\00", align 1
@.str.133 = private unnamed_addr constant [12 x i8] c"MacJapanese\00", align 1
@.str.134 = private unnamed_addr constant [9 x i8] c"MacJapan\00", align 1
@.str.135 = private unnamed_addr constant [6 x i8] c"ASCII\00", align 1
@.str.136 = private unnamed_addr constant [15 x i8] c"ANSI_X3.4-1968\00", align 1
@.str.137 = private unnamed_addr constant [4 x i8] c"646\00", align 1
@.str.138 = private unnamed_addr constant [6 x i8] c"UTF-7\00", align 1
@.str.139 = private unnamed_addr constant [8 x i8] c"CP65000\00", align 1
@.str.140 = private unnamed_addr constant [8 x i8] c"CP65001\00", align 1
@.str.141 = private unnamed_addr constant [9 x i8] c"UTF8-MAC\00", align 1
@.str.142 = private unnamed_addr constant [10 x i8] c"UTF-8-MAC\00", align 1
@.str.143 = private unnamed_addr constant [8 x i8] c"UCS-2BE\00", align 1
@.str.144 = private unnamed_addr constant [8 x i8] c"UCS-4BE\00", align 1
@.str.145 = private unnamed_addr constant [8 x i8] c"UCS-4LE\00", align 1
@.str.146 = private unnamed_addr constant [7 x i8] c"CP1251\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Init_encdb() #0 {
%1 = call i32 @rb_encdb_declare(ptr noundef @.str)
%2 = call i32 @rb_encdb_declare(ptr noundef @.str.1)
%3 = call i32 @rb_encdb_declare(ptr noundef @.str.2)
%4 = call i32 @rb_encdb_declare(ptr noundef @.str.3)
%5 = call i32 @rb_encdb_declare(ptr noundef @.str.4)
%6 = call i32 @rb_encdb_declare(ptr noundef @.str.5)
%7 = call i32 @rb_encdb_declare(ptr noundef @.str.6)
%8 = call i32 @rb_encdb_declare(ptr noundef @.str.7)
%9 = call i32 @rb_encdb_declare(ptr noundef @.str.8)
%10 = call i32 @rb_encdb_declare(ptr noundef @.str.9)
%11 = call i32 @rb_encdb_declare(ptr noundef @.str.10)
%12 = call i32 @rb_encdb_declare(ptr noundef @.str.11)
%13 = call i32 @rb_encdb_declare(ptr noundef @.str.12)
%14 = call i32 @rb_encdb_declare(ptr noundef @.str.13)
%15 = call i32 @rb_encdb_declare(ptr noundef @.str.14)
%16 = call i32 @rb_encdb_declare(ptr noundef @.str.15)
%17 = call i32 @rb_encdb_declare(ptr noundef @.str.16)
%18 = call i32 @rb_encdb_declare(ptr noundef @.str.17)
%19 = call i32 @rb_encdb_declare(ptr noundef @.str.18)
%20 = call i32 @rb_encdb_declare(ptr noundef @.str.19)
%21 = call i32 @rb_encdb_declare(ptr noundef @.str.20)
%22 = call i32 @rb_encdb_declare(ptr noundef @.str.21)
%23 = call i32 @rb_encdb_declare(ptr noundef @.str.22)
%24 = call i32 @rb_encdb_declare(ptr noundef @.str.23)
%25 = call i32 @rb_encdb_declare(ptr noundef @.str.24)
%26 = call i32 @rb_encdb_declare(ptr noundef @.str.25)
%27 = call i32 @rb_encdb_declare(ptr noundef @.str.26)
%28 = call i32 @rb_encdb_declare(ptr noundef @.str.27)
%29 = call i32 @rb_encdb_declare(ptr noundef @.str.28)
%30 = call i32 @rb_encdb_declare(ptr noundef @.str.29)
%31 = call i32 @rb_encdb_declare(ptr noundef @.str.30)
%32 = call i32 @rb_encdb_declare(ptr noundef @.str.31)
%33 = call i32 @rb_encdb_declare(ptr noundef @.str.32)
%34 = call i32 @rb_encdb_declare(ptr noundef @.str.33)
%35 = call i32 @rb_encdb_alias(ptr noundef @.str.34, ptr noundef @.str)
%36 = call i32 @rb_encdb_replicate(ptr noundef @.str.35, ptr noundef @.str)
%37 = call i32 @rb_encdb_alias(ptr noundef @.str.36, ptr noundef @.str.35)
%38 = call i32 @rb_encdb_replicate(ptr noundef @.str.37, ptr noundef @.str)
%39 = call i32 @rb_encdb_alias(ptr noundef @.str.38, ptr noundef @.str.37)
%40 = call i32 @rb_encdb_replicate(ptr noundef @.str.39, ptr noundef @.str)
%41 = call i32 @rb_encdb_alias(ptr noundef @.str.40, ptr noundef @.str.39)
%42 = call i32 @rb_encdb_replicate(ptr noundef @.str.41, ptr noundef @.str)
%43 = call i32 @rb_encdb_alias(ptr noundef @.str.42, ptr noundef @.str.41)
%44 = call i32 @rb_encdb_replicate(ptr noundef @.str.43, ptr noundef @.str)
%45 = call i32 @rb_encdb_replicate(ptr noundef @.str.44, ptr noundef @.str.43)
%46 = call i32 @rb_encdb_replicate(ptr noundef @.str.45, ptr noundef @.str)
%47 = call i32 @rb_encdb_replicate(ptr noundef @.str.46, ptr noundef @.str.45)
%48 = call i32 @rb_encdb_replicate(ptr noundef @.str.47, ptr noundef @.str)
%49 = call i32 @rb_encdb_alias(ptr noundef @.str.48, ptr noundef @.str.47)
%50 = call i32 @rb_encdb_replicate(ptr noundef @.str.49, ptr noundef @.str)
%51 = call i32 @rb_encdb_alias(ptr noundef @.str.50, ptr noundef @.str.49)
%52 = call i32 @rb_encdb_replicate(ptr noundef @.str.51, ptr noundef @.str)
%53 = call i32 @rb_encdb_alias(ptr noundef @.str.52, ptr noundef @.str.51)
%54 = call i32 @rb_encdb_replicate(ptr noundef @.str.53, ptr noundef @.str)
%55 = call i32 @rb_encdb_alias(ptr noundef @.str.54, ptr noundef @.str.53)
%56 = call i32 @rb_encdb_replicate(ptr noundef @.str.55, ptr noundef @.str)
%57 = call i32 @rb_encdb_alias(ptr noundef @.str.56, ptr noundef @.str.55)
%58 = call i32 @rb_encdb_replicate(ptr noundef @.str.57, ptr noundef @.str)
%59 = call i32 @rb_encdb_alias(ptr noundef @.str.58, ptr noundef @.str.57)
%60 = call i32 @rb_encdb_replicate(ptr noundef @.str.59, ptr noundef @.str)
%61 = call i32 @rb_encdb_alias(ptr noundef @.str.60, ptr noundef @.str.59)
%62 = call i32 @rb_encdb_replicate(ptr noundef @.str.61, ptr noundef @.str)
%63 = call i32 @rb_encdb_alias(ptr noundef @.str.62, ptr noundef @.str.61)
%64 = call i32 @rb_encdb_replicate(ptr noundef @.str.63, ptr noundef @.str)
%65 = call i32 @rb_encdb_alias(ptr noundef @.str.64, ptr noundef @.str.63)
%66 = call i32 @rb_encdb_replicate(ptr noundef @.str.65, ptr noundef @.str)
%67 = call i32 @rb_encdb_alias(ptr noundef @.str.66, ptr noundef @.str.65)
%68 = call i32 @rb_encdb_replicate(ptr noundef @.str.67, ptr noundef @.str)
%69 = call i32 @rb_encdb_replicate(ptr noundef @.str.68, ptr noundef @.str)
%70 = call i32 @rb_encdb_replicate(ptr noundef @.str.69, ptr noundef @.str)
%71 = call i32 @rb_encdb_replicate(ptr noundef @.str.70, ptr noundef @.str)
%72 = call i32 @rb_encdb_replicate(ptr noundef @.str.71, ptr noundef @.str)
%73 = call i32 @rb_encdb_replicate(ptr noundef @.str.72, ptr noundef @.str)
%74 = call i32 @rb_encdb_replicate(ptr noundef @.str.73, ptr noundef @.str)
%75 = call i32 @rb_encdb_replicate(ptr noundef @.str.74, ptr noundef @.str)
%76 = call i32 @rb_encdb_replicate(ptr noundef @.str.75, ptr noundef @.str)
%77 = call i32 @rb_encdb_replicate(ptr noundef @.str.76, ptr noundef @.str)
%78 = call i32 @rb_encdb_replicate(ptr noundef @.str.77, ptr noundef @.str)
%79 = call i32 @rb_encdb_alias(ptr noundef @.str.78, ptr noundef @.str.79)
%80 = call i32 @rb_encdb_replicate(ptr noundef @.str.80, ptr noundef @.str.3)
%81 = call i32 @rb_encdb_alias(ptr noundef @.str.81, ptr noundef @.str.4)
%82 = call i32 @rb_encdb_replicate(ptr noundef @.str.82, ptr noundef @.str.4)
%83 = call i32 @rb_encdb_alias(ptr noundef @.str.83, ptr noundef @.str.82)
%84 = call i32 @rb_encdb_replicate(ptr noundef @.str.84, ptr noundef @.str.4)
%85 = call i32 @rb_encdb_alias(ptr noundef @.str.85, ptr noundef @.str.5)
%86 = call i32 @rb_encdb_alias(ptr noundef @.str.86, ptr noundef @.str.6)
%87 = call i32 @rb_encdb_alias(ptr noundef @.str.87, ptr noundef @.str.88)
%88 = call i32 @rb_encdb_alias(ptr noundef @.str.89, ptr noundef @.str.88)
%89 = call i32 @rb_encdb_replicate(ptr noundef @.str.90, ptr noundef @.str.88)
%90 = call i32 @rb_encdb_alias(ptr noundef @.str.91, ptr noundef @.str.8)
%91 = call i32 @rb_encdb_dummy(ptr noundef @.str.92)
%92 = call i32 @rb_encdb_alias(ptr noundef @.str.93, ptr noundef @.str.92)
%93 = call i32 @rb_encdb_replicate(ptr noundef @.str.94, ptr noundef @.str.92)
%94 = call i32 @rb_encdb_alias(ptr noundef @.str.95, ptr noundef @.str.94)
%95 = call i32 @rb_encdb_alias(ptr noundef @.str.96, ptr noundef @.str.9)
%96 = call i32 @rb_encdb_replicate(ptr noundef @.str.97, ptr noundef @.str.9)
%97 = call i32 @rb_encdb_alias(ptr noundef @.str.98, ptr noundef @.str.97)
%98 = call i32 @rb_encdb_alias(ptr noundef @.str.99, ptr noundef @.str.10)
%99 = call i32 @rb_encdb_replicate(ptr noundef @.str.100, ptr noundef @.str.10)
%100 = call i32 @rb_encdb_alias(ptr noundef @.str.101, ptr noundef @.str.100)
%101 = call i32 @rb_encdb_alias(ptr noundef @.str.102, ptr noundef @.str.11)
%102 = call i32 @rb_encdb_alias(ptr noundef @.str.103, ptr noundef @.str.12)
%103 = call i32 @rb_encdb_alias(ptr noundef @.str.104, ptr noundef @.str.13)
%104 = call i32 @rb_encdb_alias(ptr noundef @.str.105, ptr noundef @.str.14)
%105 = call i32 @rb_encdb_replicate(ptr noundef @.str.106, ptr noundef @.str.14)
%106 = call i32 @rb_encdb_alias(ptr noundef @.str.107, ptr noundef @.str.106)
%107 = call i32 @rb_encdb_alias(ptr noundef @.str.108, ptr noundef @.str.15)
%108 = call i32 @rb_encdb_replicate(ptr noundef @.str.109, ptr noundef @.str.15)
%109 = call i32 @rb_encdb_alias(ptr noundef @.str.110, ptr noundef @.str.109)
%110 = call i32 @rb_encdb_alias(ptr noundef @.str.111, ptr noundef @.str.16)
%111 = call i32 @rb_encdb_replicate(ptr noundef @.str.112, ptr noundef @.str.16)
%112 = call i32 @rb_encdb_alias(ptr noundef @.str.113, ptr noundef @.str.112)
%113 = call i32 @rb_encdb_alias(ptr noundef @.str.114, ptr noundef @.str.17)
%114 = call i32 @rb_encdb_replicate(ptr noundef @.str.115, ptr noundef @.str.17)
%115 = call i32 @rb_encdb_alias(ptr noundef @.str.116, ptr noundef @.str.115)
%116 = call i32 @rb_encdb_alias(ptr noundef @.str.117, ptr noundef @.str.18)
%117 = call i32 @rb_encdb_alias(ptr noundef @.str.118, ptr noundef @.str.19)
%118 = call i32 @rb_encdb_replicate(ptr noundef @.str.119, ptr noundef @.str.19)
%119 = call i32 @rb_encdb_replicate(ptr noundef @.str.120, ptr noundef @.str.19)
%120 = call i32 @rb_encdb_alias(ptr noundef @.str.121, ptr noundef @.str.120)
%121 = call i32 @rb_encdb_alias(ptr noundef @.str.122, ptr noundef @.str.20)
%122 = call i32 @rb_encdb_replicate(ptr noundef @.str.123, ptr noundef @.str.20)
%123 = call i32 @rb_encdb_alias(ptr noundef @.str.124, ptr noundef @.str.123)
%124 = call i32 @rb_encdb_alias(ptr noundef @.str.125, ptr noundef @.str.21)
%125 = call i32 @rb_encdb_alias(ptr noundef @.str.126, ptr noundef @.str.22)
%126 = call i32 @rb_encdb_alias(ptr noundef @.str.127, ptr noundef @.str.23)
%127 = call i32 @rb_encdb_alias(ptr noundef @.str.128, ptr noundef @.str.24)
%128 = call i32 @rb_encdb_alias(ptr noundef @.str.129, ptr noundef @.str.26)
%129 = call i32 @rb_encdb_replicate(ptr noundef @.str.130, ptr noundef @.str.26)
%130 = call i32 @rb_encdb_alias(ptr noundef @.str.131, ptr noundef @.str.130)
%131 = call i32 @rb_encdb_alias(ptr noundef @.str.132, ptr noundef @.str.130)
%132 = call i32 @rb_encdb_replicate(ptr noundef @.str.133, ptr noundef @.str.26)
%133 = call i32 @rb_encdb_alias(ptr noundef @.str.134, ptr noundef @.str.133)
%134 = call i32 @rb_encdb_alias(ptr noundef @.str.135, ptr noundef @.str.27)
%135 = call i32 @rb_encdb_alias(ptr noundef @.str.136, ptr noundef @.str.27)
%136 = call i32 @rb_encdb_alias(ptr noundef @.str.137, ptr noundef @.str.27)
%137 = call i32 @rb_encdb_dummy(ptr noundef @.str.138)
%138 = call i32 @rb_encdb_alias(ptr noundef @.str.139, ptr noundef @.str.138)
%139 = call i32 @rb_encdb_alias(ptr noundef @.str.140, ptr noundef @.str.28)
%140 = call i32 @rb_encdb_replicate(ptr noundef @.str.141, ptr noundef @.str.28)
%141 = call i32 @rb_encdb_alias(ptr noundef @.str.142, ptr noundef @.str.141)
%142 = call i32 @rb_encdb_alias(ptr noundef @.str.143, ptr noundef @.str.29)
%143 = call i32 @rb_encdb_alias(ptr noundef @.str.144, ptr noundef @.str.31)
%144 = call i32 @rb_encdb_alias(ptr noundef @.str.145, ptr noundef @.str.32)
%145 = call i32 @rb_encdb_alias(ptr noundef @.str.146, ptr noundef @.str.33)
ret void
}
declare i32 @rb_encdb_declare(ptr noundef) #1
declare i32 @rb_encdb_alias(ptr noundef, ptr noundef) #1
declare i32 @rb_encdb_replicate(ptr noundef, ptr noundef) #1
declare i32 @rb_encdb_dummy(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuxhxipzo.c'
source_filename = "/tmp/tmpuxhxipzo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @do0x30() #0 {
%1 = call i32 (...) @_I8080_()
ret void
}
declare i32 @_I8080_(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuxhxipzo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @do0x30() #0 {
%1 = call i32 (...) @_I8080_()
ret void
}
declare i32 @_I8080_(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppvpkl241.c'
source_filename = "/tmp/tmppvpkl241.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"012345 789\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_oct() #0 {
%1 = call i32 @__emit_string_literal_range(ptr noundef @.str, i32 noundef 4, i32 noundef 3, i32 noundef 7)
ret void
}
declare i32 @__emit_string_literal_range(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/tmppvpkl241.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"012345 789\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_oct() #0 {
%1 = call i32 @__emit_string_literal_range(ptr noundef @.str, i32 noundef 4, i32 noundef 3, i32 noundef 7)
ret void
}
declare i32 @__emit_string_literal_range(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/tmp3t0ehvnc.c'
source_filename = "/tmp/tmp3t0ehvnc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %3
3: ; preds = %6, %0
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 5
br i1 %5, label %6, label %8
6: ; preds = %3
%7 = call i32 @usleep(i32 noundef 3000)
br label %3, !llvm.loop !6
8: ; preds = %3
ret i32 0
}
declare i32 @usleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3t0ehvnc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp slt i32 %3, 5
br i1 %4, label %.lr.ph, label %9
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %5
%6 = call i32 @usleep(i32 noundef 3000)
%7 = load i32, ptr %2, align 4
%8 = icmp slt i32 %7, 5
br i1 %8, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %5
br label %9
9: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @usleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpww7bp5o6.c'
source_filename = "/tmp/tmpww7bp5o6.c"
target datalayout = "e-m:e-p270: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/tmpww7bp5o6.c"
target datalayout = "e-m:e-p270: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/tmp5rcfg142.c'
source_filename = "/tmp/tmp5rcfg142.c"
target datalayout = "e-m:e-p270: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/tmp5rcfg142.c"
target datalayout = "e-m:e-p270: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/tmpbjpkfqsu.c'
source_filename = "/tmp/tmpbjpkfqsu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @type_def_cell_destruct_val(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = call i32 @assert(i32 noundef 0)
ret void
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbjpkfqsu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @type_def_cell_destruct_val(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = call i32 @assert(i32 noundef 0)
ret void
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp78_vtzip.c'
source_filename = "/tmp/tmp78_vtzip.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Input an integer:\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [45 x i8] c"The binary form of number %d has %d digits.\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 = load i32, ptr %2, align 4
%7 = call i32 @countBinary(i32 noundef %6)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %5, i32 noundef %7)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @countBinary(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/tmp78_vtzip.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Input an integer:\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [45 x i8] c"The binary form of number %d has %d digits.\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 = load i32, ptr %2, align 4
%7 = call i32 @countBinary(i32 noundef %6)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %5, i32 noundef %7)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @countBinary(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/tmp7eq8ancc.c'
source_filename = "/tmp/tmp7eq8ancc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cbor_write_nint(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
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = call ptr @cbor_write_type_size(ptr noundef %7, i32 noundef %8, i32 noundef 1, i32 noundef %9)
ret ptr %10
}
declare ptr @cbor_write_type_size(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/tmp7eq8ancc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cbor_write_nint(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
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = call ptr @cbor_write_type_size(ptr noundef %7, i32 noundef %8, i32 noundef 1, i32 noundef %9)
ret ptr %10
}
declare ptr @cbor_write_type_size(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/tmpvztwyeng.c'
source_filename = "/tmp/tmpvztwyeng.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"pipe creation\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"fork\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"write\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [5 x i8] c"read\00", align 1
@.str.5 = private unnamed_addr constant [67 x i8] c"The 1st child is displaying character to stdout from the pipeline\0A\00", align 1
@STDOUT_FILENO = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.7 = private unnamed_addr constant [25 x i8] c"Child created. pid = %d\0A\00", align 1
@errno = dso_local global i64 0, align 8
@ECHILD = dso_local global i64 0, align 8
@.str.8 = private unnamed_addr constant [37 x i8] c"All child processes have terminated\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [4 x [2 x i32]], align 16
%6 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i32 -1, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %4, align 4
br label %7
7: ; preds = %22, %0
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 4
br i1 %9, label %10, label %25
10: ; preds = %7
%11 = load i32, ptr %4, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 %12
%14 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
%15 = call i32 @pipe(ptr noundef %14)
%16 = icmp eq i32 %15, -1
br i1 %16, label %17, label %21
17: ; preds = %10
%18 = call i32 @perror(ptr noundef @.str)
%19 = load i32, ptr @EXIT_FAILURE, align 4
%20 = call i32 @exit(i32 noundef %19) #3
unreachable
21: ; preds = %10
br label %22
22: ; preds = %21
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %4, align 4
br label %7, !llvm.loop !6
25: ; preds = %7
store i32 0, ptr %4, align 4
br label %26
26: ; preds = %329, %25
%27 = load i32, ptr %4, align 4
%28 = icmp slt i32 %27, 5
br i1 %28, label %29, label %332
29: ; preds = %26
%30 = call i64 (...) @fork()
store i64 %30, ptr %2, align 8
%31 = load i64, ptr %2, align 8
%32 = icmp slt i64 %31, 0
br i1 %32, label %33, label %37
33: ; preds = %29
%34 = call i32 @perror(ptr noundef @.str.1)
%35 = load i32, ptr @EXIT_FAILURE, align 4
%36 = call i32 @exit(i32 noundef %35) #3
unreachable
37: ; preds = %29
%38 = load i64, ptr %2, align 8
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %325
40: ; preds = %37
%41 = load i32, ptr %4, align 4
%42 = icmp eq i32 %41, 4
br i1 %42, label %43, label %84
43: ; preds = %40
store i32 0, ptr %4, align 4
br label %44
44: ; preds = %60, %43
%45 = load i32, ptr %4, align 4
%46 = icmp slt i32 %45, 3
br i1 %46, label %47, label %63
47: ; preds = %44
%48 = load i32, ptr %4, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 %49
%51 = getelementptr inbounds [2 x i32], ptr %50, i64 0, i64 0
%52 = load i32, ptr %51, align 8
%53 = call i32 @close(i32 noundef %52)
%54 = load i32, ptr %4, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 %55
%57 = getelementptr inbounds [2 x i32], ptr %56, i64 0, i64 1
%58 = load i32, ptr %57, align 4
%59 = call i32 @close(i32 noundef %58)
br label %60
60: ; preds = %47
%61 = load i32, ptr %4, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %4, align 4
br label %44, !llvm.loop !8
63: ; preds = %44
%64 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 3
%65 = getelementptr inbounds [2 x i32], ptr %64, i64 0, i64 0
%66 = load i32, ptr %65, align 8
%67 = call i32 @close(i32 noundef %66)
%68 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 3
%69 = getelementptr inbounds [2 x i32], ptr %68, i64 0, i64 1
%70 = load i32, ptr %69, align 4
%71 = call i32 @write(i32 noundef %70, ptr noundef @.str.2, i32 noundef 1)
%72 = icmp eq i32 %71, -1
br i1 %72, label %73, label %77
73: ; preds = %63
%74 = call i32 @perror(ptr noundef @.str.3)
%75 = load i32, ptr @EXIT_FAILURE, align 4
%76 = call i32 @exit(i32 noundef %75) #3
unreachable
77: ; preds = %63
%78 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 3
%79 = getelementptr inbounds [2 x i32], ptr %78, i64 0, i64 1
%80 = load i32, ptr %79, align 4
%81 = call i32 @close(i32 noundef %80)
%82 = load i32, ptr @EXIT_SUCCESS, align 4
%83 = call i32 @exit(i32 noundef %82) #3
unreachable
84: ; preds = %40
%85 = load i32, ptr %4, align 4
%86 = icmp eq i32 %85, 3
br i1 %86, label %87, label %149
87: ; preds = %84
store i32 0, ptr %4, align 4
br label %88
88: ; preds = %104, %87
%89 = load i32, ptr %4, align 4
%90 = icmp slt i32 %89, 2
br i1 %90, label %91, label %107
91: ; preds = %88
%92 = load i32, ptr %4, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 %93
%95 = getelementptr inbounds [2 x i32], ptr %94, i64 0, i64 0
%96 = load i32, ptr %95, align 8
%97 = call i32 @close(i32 noundef %96)
%98 = load i32, ptr %4, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 %99
%101 = getelementptr inbounds [2 x i32], ptr %100, i64 0, i64 1
%102 = load i32, ptr %101, align 4
%103 = call i32 @close(i32 noundef %102)
br label %104
104: ; preds = %91
%105 = load i32, ptr %4, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr %4, align 4
br label %88, !llvm.loop !9
107: ; preds = %88
%108 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 2
%109 = getelementptr inbounds [2 x i32], ptr %108, i64 0, i64 0
%110 = load i32, ptr %109, align 16
%111 = call i32 @close(i32 noundef %110)
%112 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 3
%113 = getelementptr inbounds [2 x i32], ptr %112, i64 0, i64 1
%114 = load i32, ptr %113, align 4
%115 = call i32 @close(i32 noundef %114)
br label %116
116: ; preds = %129, %107
%117 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 3
%118 = getelementptr inbounds [2 x i32], ptr %117, i64 0, i64 0
%119 = load i32, ptr %118, align 8
%120 = call i32 @read(i32 noundef %119, ptr noundef %6, i32 noundef 1)
store i32 %120, ptr %3, align 4
%121 = icmp ne i32 %120, 0
br i1 %121, label %122, label %138
122: ; preds = %116
%123 = load i32, ptr %3, align 4
%124 = icmp eq i32 %123, -1
br i1 %124, label %125, label %129
125: ; preds = %122
%126 = call i32 @perror(ptr noundef @.str.4)
%127 = load i32, ptr @EXIT_FAILURE, align 4
%128 = call i32 @exit(i32 noundef %127) #3
unreachable
129: ; preds = %122
%130 = load i8, ptr %6, align 1
%131 = sext i8 %130 to i32
%132 = add nsw i32 %131, 1
%133 = trunc i32 %132 to i8
store i8 %133, ptr %6, align 1
%134 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 2
%135 = getelementptr inbounds [2 x i32], ptr %134, i64 0, i64 1
%136 = load i32, ptr %135, align 4
%137 = call i32 @write(i32 noundef %136, ptr noundef %6, i32 noundef 1)
br label %116, !llvm.loop !10
138: ; preds = %116
%139 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 3
%140 = getelementptr inbounds [2 x i32], ptr %139, i64 0, i64 0
%141 = load i32, ptr %140, align 8
%142 = call i32 @close(i32 noundef %141)
%143 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 2
%144 = getelementptr inbounds [2 x i32], ptr %143, i64 0, i64 1
%145 = load i32, ptr %144, align 4
%146 = call i32 @close(i32 noundef %145)
%147 = load i32, ptr @EXIT_SUCCESS, align 4
%148 = call i32 @exit(i32 noundef %147) #3
unreachable
149: ; preds = %84
%150 = load i32, ptr %4, align 4
%151 = icmp eq i32 %150, 2
br i1 %151, label %152, label %210
152: ; preds = %149
%153 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 0
%154 = getelementptr inbounds [2 x i32], ptr %153, i64 0, i64 0
%155 = load i32, ptr %154, align 16
%156 = call i32 @close(i32 noundef %155)
%157 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 0
%158 = getelementptr inbounds [2 x i32], ptr %157, i64 0, i64 1
%159 = load i32, ptr %158, align 4
%160 = call i32 @close(i32 noundef %159)
%161 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 1
%162 = getelementptr inbounds [2 x i32], ptr %161, i64 0, i64 0
%163 = load i32, ptr %162, align 8
%164 = call i32 @close(i32 noundef %163)
%165 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 2
%166 = getelementptr inbounds [2 x i32], ptr %165, i64 0, i64 1
%167 = load i32, ptr %166, align 4
%168 = call i32 @close(i32 noundef %167)
%169 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 3
%170 = getelementptr inbounds [2 x i32], ptr %169, i64 0, i64 0
%171 = load i32, ptr %170, align 8
%172 = call i32 @close(i32 noundef %171)
%173 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 3
%174 = getelementptr inbounds [2 x i32], ptr %173, i64 0, i64 1
%175 = load i32, ptr %174, align 4
%176 = call i32 @close(i32 noundef %175)
br label %177
177: ; preds = %190, %152
%178 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 2
%179 = getelementptr inbounds [2 x i32], ptr %178, i64 0, i64 0
%180 = load i32, ptr %179, align 16
%181 = call i32 @read(i32 noundef %180, ptr noundef %6, i32 noundef 1)
store i32 %181, ptr %3, align 4
%182 = icmp ne i32 %181, 0
br i1 %182, label %183, label %199
183: ; preds = %177
%184 = load i32, ptr %3, align 4
%185 = icmp eq i32 %184, -1
br i1 %185, label %186, label %190
186: ; preds = %183
%187 = call i32 @perror(ptr noundef @.str.4)
%188 = load i32, ptr @EXIT_FAILURE, align 4
%189 = call i32 @exit(i32 noundef %188) #3
unreachable
190: ; preds = %183
%191 = load i8, ptr %6, align 1
%192 = sext i8 %191 to i32
%193 = add nsw i32 %192, 1
%194 = trunc i32 %193 to i8
store i8 %194, ptr %6, align 1
%195 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 1
%196 = getelementptr inbounds [2 x i32], ptr %195, i64 0, i64 1
%197 = load i32, ptr %196, align 4
%198 = call i32 @write(i32 noundef %197, ptr noundef %6, i32 noundef 1)
br label %177, !llvm.loop !11
199: ; preds = %177
%200 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 1
%201 = getelementptr inbounds [2 x i32], ptr %200, i64 0, i64 1
%202 = load i32, ptr %201, align 4
%203 = call i32 @close(i32 noundef %202)
%204 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 2
%205 = getelementptr inbounds [2 x i32], ptr %204, i64 0, i64 0
%206 = load i32, ptr %205, align 16
%207 = call i32 @close(i32 noundef %206)
%208 = load i32, ptr @EXIT_SUCCESS, align 4
%209 = call i32 @exit(i32 noundef %208) #3
unreachable
210: ; preds = %149
%211 = load i32, ptr %4, align 4
%212 = icmp eq i32 %211, 1
br i1 %212, label %213, label %275
213: ; preds = %210
store i32 2, ptr %4, align 4
br label %214
214: ; preds = %230, %213
%215 = load i32, ptr %4, align 4
%216 = icmp slt i32 %215, 4
br i1 %216, label %217, label %233
217: ; preds = %214
%218 = load i32, ptr %4, align 4
%219 = sext i32 %218 to i64
%220 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 %219
%221 = getelementptr inbounds [2 x i32], ptr %220, i64 0, i64 0
%222 = load i32, ptr %221, align 8
%223 = call i32 @close(i32 noundef %222)
%224 = load i32, ptr %4, align 4
%225 = sext i32 %224 to i64
%226 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 %225
%227 = getelementptr inbounds [2 x i32], ptr %226, i64 0, i64 1
%228 = load i32, ptr %227, align 4
%229 = call i32 @close(i32 noundef %228)
br label %230
230: ; preds = %217
%231 = load i32, ptr %4, align 4
%232 = add nsw i32 %231, 1
store i32 %232, ptr %4, align 4
br label %214, !llvm.loop !12
233: ; preds = %214
%234 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 0
%235 = getelementptr inbounds [2 x i32], ptr %234, i64 0, i64 0
%236 = load i32, ptr %235, align 16
%237 = call i32 @close(i32 noundef %236)
%238 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 1
%239 = getelementptr inbounds [2 x i32], ptr %238, i64 0, i64 1
%240 = load i32, ptr %239, align 4
%241 = call i32 @close(i32 noundef %240)
br label %242
242: ; preds = %255, %233
%243 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 1
%244 = getelementptr inbounds [2 x i32], ptr %243, i64 0, i64 0
%245 = load i32, ptr %244, align 8
%246 = call i32 @read(i32 noundef %245, ptr noundef %6, i32 noundef 1)
store i32 %246, ptr %3, align 4
%247 = icmp ne i32 %246, 0
br i1 %247, label %248, label %264
248: ; preds = %242
%249 = load i32, ptr %3, align 4
%250 = icmp eq i32 %249, -1
br i1 %250, label %251, label %255
251: ; preds = %248
%252 = call i32 @perror(ptr noundef @.str.4)
%253 = load i32, ptr @EXIT_FAILURE, align 4
%254 = call i32 @exit(i32 noundef %253) #3
unreachable
255: ; preds = %248
%256 = load i8, ptr %6, align 1
%257 = sext i8 %256 to i32
%258 = add nsw i32 %257, 1
%259 = trunc i32 %258 to i8
store i8 %259, ptr %6, align 1
%260 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 0
%261 = getelementptr inbounds [2 x i32], ptr %260, i64 0, i64 1
%262 = load i32, ptr %261, align 4
%263 = call i32 @write(i32 noundef %262, ptr noundef %6, i32 noundef 1)
br label %242, !llvm.loop !13
264: ; preds = %242
%265 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 0
%266 = getelementptr inbounds [2 x i32], ptr %265, i64 0, i64 1
%267 = load i32, ptr %266, align 4
%268 = call i32 @close(i32 noundef %267)
%269 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 1
%270 = getelementptr inbounds [2 x i32], ptr %269, i64 0, i64 0
%271 = load i32, ptr %270, align 8
%272 = call i32 @close(i32 noundef %271)
%273 = load i32, ptr @EXIT_SUCCESS, align 4
%274 = call i32 @exit(i32 noundef %273) #3
unreachable
275: ; preds = %210
store i32 1, ptr %4, align 4
br label %276
276: ; preds = %292, %275
%277 = load i32, ptr %4, align 4
%278 = icmp slt i32 %277, 4
br i1 %278, label %279, label %295
279: ; preds = %276
%280 = load i32, ptr %4, align 4
%281 = sext i32 %280 to i64
%282 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 %281
%283 = getelementptr inbounds [2 x i32], ptr %282, i64 0, i64 0
%284 = load i32, ptr %283, align 8
%285 = call i32 @close(i32 noundef %284)
%286 = load i32, ptr %4, align 4
%287 = sext i32 %286 to i64
%288 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 %287
%289 = getelementptr inbounds [2 x i32], ptr %288, i64 0, i64 1
%290 = load i32, ptr %289, align 4
%291 = call i32 @close(i32 noundef %290)
br label %292
292: ; preds = %279
%293 = load i32, ptr %4, align 4
%294 = add nsw i32 %293, 1
store i32 %294, ptr %4, align 4
br label %276, !llvm.loop !14
295: ; preds = %276
%296 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 0
%297 = getelementptr inbounds [2 x i32], ptr %296, i64 0, i64 1
%298 = load i32, ptr %297, align 4
%299 = call i32 @close(i32 noundef %298)
br label %300
300: ; preds = %313, %295
%301 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 0
%302 = getelementptr inbounds [2 x i32], ptr %301, i64 0, i64 0
%303 = load i32, ptr %302, align 16
%304 = call i32 @read(i32 noundef %303, ptr noundef %6, i32 noundef 1)
store i32 %304, ptr %3, align 4
%305 = icmp ne i32 %304, 0
br i1 %305, label %306, label %318
306: ; preds = %300
%307 = load i32, ptr %3, align 4
%308 = icmp eq i32 %307, -1
br i1 %308, label %309, label %313
309: ; preds = %306
%310 = call i32 @perror(ptr noundef @.str.4)
%311 = load i32, ptr @EXIT_FAILURE, align 4
%312 = call i32 @exit(i32 noundef %311) #3
unreachable
313: ; preds = %306
%314 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%315 = load i32, ptr @STDOUT_FILENO, align 4
%316 = call i32 @write(i32 noundef %315, ptr noundef %6, i32 noundef 1)
%317 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %300, !llvm.loop !15
318: ; preds = %300
%319 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 0
%320 = getelementptr inbounds [2 x i32], ptr %319, i64 0, i64 0
%321 = load i32, ptr %320, align 16
%322 = call i32 @close(i32 noundef %321)
%323 = load i32, ptr @EXIT_SUCCESS, align 4
%324 = call i32 @exit(i32 noundef %323) #3
unreachable
325: ; preds = %37
%326 = load i64, ptr %2, align 8
%327 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i64 noundef %326)
%328 = call i32 @usleep(i32 noundef 500000)
br label %329
329: ; preds = %325
%330 = load i32, ptr %4, align 4
%331 = add nsw i32 %330, 1
store i32 %331, ptr %4, align 4
br label %26, !llvm.loop !16
332: ; preds = %26
store i32 0, ptr %4, align 4
br label %333
333: ; preds = %349, %332
%334 = load i32, ptr %4, align 4
%335 = icmp slt i32 %334, 4
br i1 %335, label %336, label %352
336: ; preds = %333
%337 = load i32, ptr %4, align 4
%338 = sext i32 %337 to i64
%339 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 %338
%340 = getelementptr inbounds [2 x i32], ptr %339, i64 0, i64 0
%341 = load i32, ptr %340, align 8
%342 = call i32 @close(i32 noundef %341)
%343 = load i32, ptr %4, align 4
%344 = sext i32 %343 to i64
%345 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 %344
%346 = getelementptr inbounds [2 x i32], ptr %345, i64 0, i64 1
%347 = load i32, ptr %346, align 4
%348 = call i32 @close(i32 noundef %347)
br label %349
349: ; preds = %336
%350 = load i32, ptr %4, align 4
%351 = add nsw i32 %350, 1
store i32 %351, ptr %4, align 4
br label %333, !llvm.loop !17
352: ; preds = %333
br label %353
353: ; preds = %361, %352
%354 = call i64 @waitpid(i32 noundef -1, ptr noundef null, i32 noundef 0)
store i64 %354, ptr %2, align 8
%355 = icmp ne i64 %354, 0
br i1 %355, label %356, label %362
356: ; preds = %353
%357 = load i64, ptr @errno, align 8
%358 = load i64, ptr @ECHILD, align 8
%359 = icmp eq i64 %357, %358
br i1 %359, label %360, label %361
360: ; preds = %356
br label %362
361: ; preds = %356
br label %353, !llvm.loop !18
362: ; preds = %360, %353
%363 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%364 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %364
}
declare i32 @pipe(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @fork(...) #1
declare i32 @close(i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @usleep(i32 noundef) #1
declare i64 @waitpid(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
!16 = distinct !{!16, !7}
!17 = distinct !{!17, !7}
!18 = distinct !{!18, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvztwyeng.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"pipe creation\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"fork\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"write\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [5 x i8] c"read\00", align 1
@.str.5 = private unnamed_addr constant [67 x i8] c"The 1st child is displaying character to stdout from the pipeline\0A\00", align 1
@STDOUT_FILENO = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.7 = private unnamed_addr constant [25 x i8] c"Child created. pid = %d\0A\00", align 1
@errno = dso_local global i64 0, align 8
@ECHILD = dso_local global i64 0, align 8
@.str.8 = private unnamed_addr constant [37 x i8] c"All child processes have terminated\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [4 x [2 x i32]], align 16
%6 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i32 -1, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 4
br i1 %8, label %.lr.ph, label %26
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %21
%10 = load i32, ptr %4, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 %11
%13 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
%14 = call i32 @pipe(ptr noundef %13)
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %20
16: ; preds = %9
%17 = call i32 @perror(ptr noundef @.str)
%18 = load i32, ptr @EXIT_FAILURE, align 4
%19 = call i32 @exit(i32 noundef %18) #3
unreachable
20: ; preds = %9
br label %21
21: ; preds = %20
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %4, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp slt i32 %24, 4
br i1 %25, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %26
26: ; preds = %._crit_edge, %0
store i32 0, ptr %4, align 4
%27 = load i32, ptr %4, align 4
%28 = icmp slt i32 %27, 5
br i1 %28, label %.lr.ph2, label %346
.lr.ph2: ; preds = %26
br label %29
29: ; preds = %.lr.ph2, %341
%30 = call i64 (...) @fork()
store i64 %30, ptr %2, align 8
%31 = load i64, ptr %2, align 8
%32 = icmp slt i64 %31, 0
br i1 %32, label %33, label %37
33: ; preds = %29
%34 = call i32 @perror(ptr noundef @.str.1)
%35 = load i32, ptr @EXIT_FAILURE, align 4
%36 = call i32 @exit(i32 noundef %35) #3
unreachable
37: ; preds = %29
%38 = load i64, ptr %2, align 8
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %337
40: ; preds = %37
%41 = load i32, ptr %4, align 4
%42 = icmp eq i32 %41, 4
br i1 %42, label %43, label %85
43: ; preds = %40
store i32 0, ptr %4, align 4
%44 = load i32, ptr %4, align 4
%45 = icmp slt i32 %44, 3
br i1 %45, label %.lr.ph31, label %64
.lr.ph31: ; preds = %43
br label %46
46: ; preds = %.lr.ph31, %59
%47 = load i32, ptr %4, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 %48
%50 = getelementptr inbounds [2 x i32], ptr %49, i64 0, i64 0
%51 = load i32, ptr %50, align 8
%52 = call i32 @close(i32 noundef %51)
%53 = load i32, ptr %4, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 %54
%56 = getelementptr inbounds [2 x i32], ptr %55, i64 0, i64 1
%57 = load i32, ptr %56, align 4
%58 = call i32 @close(i32 noundef %57)
br label %59
59: ; preds = %46
%60 = load i32, ptr %4, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %4, align 4
%62 = load i32, ptr %4, align 4
%63 = icmp slt i32 %62, 3
br i1 %63, label %46, label %._crit_edge32, !llvm.loop !8
._crit_edge32: ; preds = %59
br label %64
64: ; preds = %._crit_edge32, %43
%65 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 3
%66 = getelementptr inbounds [2 x i32], ptr %65, i64 0, i64 0
%67 = load i32, ptr %66, align 8
%68 = call i32 @close(i32 noundef %67)
%69 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 3
%70 = getelementptr inbounds [2 x i32], ptr %69, i64 0, i64 1
%71 = load i32, ptr %70, align 4
%72 = call i32 @write(i32 noundef %71, ptr noundef @.str.2, i32 noundef 1)
%73 = icmp eq i32 %72, -1
br i1 %73, label %74, label %78
74: ; preds = %64
%75 = call i32 @perror(ptr noundef @.str.3)
%76 = load i32, ptr @EXIT_FAILURE, align 4
%77 = call i32 @exit(i32 noundef %76) #3
unreachable
78: ; preds = %64
%79 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 3
%80 = getelementptr inbounds [2 x i32], ptr %79, i64 0, i64 1
%81 = load i32, ptr %80, align 4
%82 = call i32 @close(i32 noundef %81)
%83 = load i32, ptr @EXIT_SUCCESS, align 4
%84 = call i32 @exit(i32 noundef %83) #3
unreachable
85: ; preds = %40
%86 = load i32, ptr %4, align 4
%87 = icmp eq i32 %86, 3
br i1 %87, label %88, label %153
88: ; preds = %85
store i32 0, ptr %4, align 4
%89 = load i32, ptr %4, align 4
%90 = icmp slt i32 %89, 2
br i1 %90, label %.lr.ph25, label %109
.lr.ph25: ; preds = %88
br label %91
91: ; preds = %.lr.ph25, %104
%92 = load i32, ptr %4, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 %93
%95 = getelementptr inbounds [2 x i32], ptr %94, i64 0, i64 0
%96 = load i32, ptr %95, align 8
%97 = call i32 @close(i32 noundef %96)
%98 = load i32, ptr %4, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 %99
%101 = getelementptr inbounds [2 x i32], ptr %100, i64 0, i64 1
%102 = load i32, ptr %101, align 4
%103 = call i32 @close(i32 noundef %102)
br label %104
104: ; preds = %91
%105 = load i32, ptr %4, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr %4, align 4
%107 = load i32, ptr %4, align 4
%108 = icmp slt i32 %107, 2
br i1 %108, label %91, label %._crit_edge26, !llvm.loop !9
._crit_edge26: ; preds = %104
br label %109
109: ; preds = %._crit_edge26, %88
%110 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 2
%111 = getelementptr inbounds [2 x i32], ptr %110, i64 0, i64 0
%112 = load i32, ptr %111, align 16
%113 = call i32 @close(i32 noundef %112)
%114 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 3
%115 = getelementptr inbounds [2 x i32], ptr %114, i64 0, i64 1
%116 = load i32, ptr %115, align 4
%117 = call i32 @close(i32 noundef %116)
%118 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 3
%119 = getelementptr inbounds [2 x i32], ptr %118, i64 0, i64 0
%120 = load i32, ptr %119, align 8
%121 = call i32 @read(i32 noundef %120, ptr noundef %6, i32 noundef 1)
store i32 %121, ptr %3, align 4
%122 = icmp ne i32 %121, 0
br i1 %122, label %.lr.ph28, label %142
.lr.ph28: ; preds = %109
br label %123
123: ; preds = %.lr.ph28, %130
%124 = load i32, ptr %3, align 4
%125 = icmp eq i32 %124, -1
br i1 %125, label %126, label %130
126: ; preds = %123
%127 = call i32 @perror(ptr noundef @.str.4)
%128 = load i32, ptr @EXIT_FAILURE, align 4
%129 = call i32 @exit(i32 noundef %128) #3
unreachable
130: ; preds = %123
%131 = load i8, ptr %6, align 1
%132 = sext i8 %131 to i32
%133 = add nsw i32 %132, 1
%134 = trunc i32 %133 to i8
store i8 %134, ptr %6, align 1
%135 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 2
%136 = getelementptr inbounds [2 x i32], ptr %135, i64 0, i64 1
%137 = load i32, ptr %136, align 4
%138 = call i32 @write(i32 noundef %137, ptr noundef %6, i32 noundef 1)
%139 = load i32, ptr %119, align 8
%140 = call i32 @read(i32 noundef %139, ptr noundef %6, i32 noundef 1)
store i32 %140, ptr %3, align 4
%141 = icmp ne i32 %140, 0
br i1 %141, label %123, label %._crit_edge29, !llvm.loop !10
._crit_edge29: ; preds = %130
br label %142
142: ; preds = %._crit_edge29, %109
%143 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 3
%144 = getelementptr inbounds [2 x i32], ptr %143, i64 0, i64 0
%145 = load i32, ptr %144, align 8
%146 = call i32 @close(i32 noundef %145)
%147 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 2
%148 = getelementptr inbounds [2 x i32], ptr %147, i64 0, i64 1
%149 = load i32, ptr %148, align 4
%150 = call i32 @close(i32 noundef %149)
%151 = load i32, ptr @EXIT_SUCCESS, align 4
%152 = call i32 @exit(i32 noundef %151) #3
unreachable
153: ; preds = %85
%154 = load i32, ptr %4, align 4
%155 = icmp eq i32 %154, 2
br i1 %155, label %156, label %216
156: ; preds = %153
%157 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 0
%158 = getelementptr inbounds [2 x i32], ptr %157, i64 0, i64 0
%159 = load i32, ptr %158, align 16
%160 = call i32 @close(i32 noundef %159)
%161 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 0
%162 = getelementptr inbounds [2 x i32], ptr %161, i64 0, i64 1
%163 = load i32, ptr %162, align 4
%164 = call i32 @close(i32 noundef %163)
%165 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 1
%166 = getelementptr inbounds [2 x i32], ptr %165, i64 0, i64 0
%167 = load i32, ptr %166, align 8
%168 = call i32 @close(i32 noundef %167)
%169 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 2
%170 = getelementptr inbounds [2 x i32], ptr %169, i64 0, i64 1
%171 = load i32, ptr %170, align 4
%172 = call i32 @close(i32 noundef %171)
%173 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 3
%174 = getelementptr inbounds [2 x i32], ptr %173, i64 0, i64 0
%175 = load i32, ptr %174, align 8
%176 = call i32 @close(i32 noundef %175)
%177 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 3
%178 = getelementptr inbounds [2 x i32], ptr %177, i64 0, i64 1
%179 = load i32, ptr %178, align 4
%180 = call i32 @close(i32 noundef %179)
%181 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 2
%182 = getelementptr inbounds [2 x i32], ptr %181, i64 0, i64 0
%183 = load i32, ptr %182, align 16
%184 = call i32 @read(i32 noundef %183, ptr noundef %6, i32 noundef 1)
store i32 %184, ptr %3, align 4
%185 = icmp ne i32 %184, 0
br i1 %185, label %.lr.ph22, label %205
.lr.ph22: ; preds = %156
br label %186
186: ; preds = %.lr.ph22, %193
%187 = load i32, ptr %3, align 4
%188 = icmp eq i32 %187, -1
br i1 %188, label %189, label %193
189: ; preds = %186
%190 = call i32 @perror(ptr noundef @.str.4)
%191 = load i32, ptr @EXIT_FAILURE, align 4
%192 = call i32 @exit(i32 noundef %191) #3
unreachable
193: ; preds = %186
%194 = load i8, ptr %6, align 1
%195 = sext i8 %194 to i32
%196 = add nsw i32 %195, 1
%197 = trunc i32 %196 to i8
store i8 %197, ptr %6, align 1
%198 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 1
%199 = getelementptr inbounds [2 x i32], ptr %198, i64 0, i64 1
%200 = load i32, ptr %199, align 4
%201 = call i32 @write(i32 noundef %200, ptr noundef %6, i32 noundef 1)
%202 = load i32, ptr %182, align 16
%203 = call i32 @read(i32 noundef %202, ptr noundef %6, i32 noundef 1)
store i32 %203, ptr %3, align 4
%204 = icmp ne i32 %203, 0
br i1 %204, label %186, label %._crit_edge23, !llvm.loop !11
._crit_edge23: ; preds = %193
br label %205
205: ; preds = %._crit_edge23, %156
%206 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 1
%207 = getelementptr inbounds [2 x i32], ptr %206, i64 0, i64 1
%208 = load i32, ptr %207, align 4
%209 = call i32 @close(i32 noundef %208)
%210 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 2
%211 = getelementptr inbounds [2 x i32], ptr %210, i64 0, i64 0
%212 = load i32, ptr %211, align 16
%213 = call i32 @close(i32 noundef %212)
%214 = load i32, ptr @EXIT_SUCCESS, align 4
%215 = call i32 @exit(i32 noundef %214) #3
unreachable
216: ; preds = %153
%217 = load i32, ptr %4, align 4
%218 = icmp eq i32 %217, 1
br i1 %218, label %219, label %284
219: ; preds = %216
store i32 2, ptr %4, align 4
%220 = load i32, ptr %4, align 4
%221 = icmp slt i32 %220, 4
br i1 %221, label %.lr.ph16, label %240
.lr.ph16: ; preds = %219
br label %222
222: ; preds = %.lr.ph16, %235
%223 = load i32, ptr %4, align 4
%224 = sext i32 %223 to i64
%225 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 %224
%226 = getelementptr inbounds [2 x i32], ptr %225, i64 0, i64 0
%227 = load i32, ptr %226, align 8
%228 = call i32 @close(i32 noundef %227)
%229 = load i32, ptr %4, align 4
%230 = sext i32 %229 to i64
%231 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 %230
%232 = getelementptr inbounds [2 x i32], ptr %231, i64 0, i64 1
%233 = load i32, ptr %232, align 4
%234 = call i32 @close(i32 noundef %233)
br label %235
235: ; preds = %222
%236 = load i32, ptr %4, align 4
%237 = add nsw i32 %236, 1
store i32 %237, ptr %4, align 4
%238 = load i32, ptr %4, align 4
%239 = icmp slt i32 %238, 4
br i1 %239, label %222, label %._crit_edge17, !llvm.loop !12
._crit_edge17: ; preds = %235
br label %240
240: ; preds = %._crit_edge17, %219
%241 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 0
%242 = getelementptr inbounds [2 x i32], ptr %241, i64 0, i64 0
%243 = load i32, ptr %242, align 16
%244 = call i32 @close(i32 noundef %243)
%245 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 1
%246 = getelementptr inbounds [2 x i32], ptr %245, i64 0, i64 1
%247 = load i32, ptr %246, align 4
%248 = call i32 @close(i32 noundef %247)
%249 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 1
%250 = getelementptr inbounds [2 x i32], ptr %249, i64 0, i64 0
%251 = load i32, ptr %250, align 8
%252 = call i32 @read(i32 noundef %251, ptr noundef %6, i32 noundef 1)
store i32 %252, ptr %3, align 4
%253 = icmp ne i32 %252, 0
br i1 %253, label %.lr.ph19, label %273
.lr.ph19: ; preds = %240
br label %254
254: ; preds = %.lr.ph19, %261
%255 = load i32, ptr %3, align 4
%256 = icmp eq i32 %255, -1
br i1 %256, label %257, label %261
257: ; preds = %254
%258 = call i32 @perror(ptr noundef @.str.4)
%259 = load i32, ptr @EXIT_FAILURE, align 4
%260 = call i32 @exit(i32 noundef %259) #3
unreachable
261: ; preds = %254
%262 = load i8, ptr %6, align 1
%263 = sext i8 %262 to i32
%264 = add nsw i32 %263, 1
%265 = trunc i32 %264 to i8
store i8 %265, ptr %6, align 1
%266 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 0
%267 = getelementptr inbounds [2 x i32], ptr %266, i64 0, i64 1
%268 = load i32, ptr %267, align 4
%269 = call i32 @write(i32 noundef %268, ptr noundef %6, i32 noundef 1)
%270 = load i32, ptr %250, align 8
%271 = call i32 @read(i32 noundef %270, ptr noundef %6, i32 noundef 1)
store i32 %271, ptr %3, align 4
%272 = icmp ne i32 %271, 0
br i1 %272, label %254, label %._crit_edge20, !llvm.loop !13
._crit_edge20: ; preds = %261
br label %273
273: ; preds = %._crit_edge20, %240
%274 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 0
%275 = getelementptr inbounds [2 x i32], ptr %274, i64 0, i64 1
%276 = load i32, ptr %275, align 4
%277 = call i32 @close(i32 noundef %276)
%278 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 1
%279 = getelementptr inbounds [2 x i32], ptr %278, i64 0, i64 0
%280 = load i32, ptr %279, align 8
%281 = call i32 @close(i32 noundef %280)
%282 = load i32, ptr @EXIT_SUCCESS, align 4
%283 = call i32 @exit(i32 noundef %282) #3
unreachable
284: ; preds = %216
store i32 1, ptr %4, align 4
%285 = load i32, ptr %4, align 4
%286 = icmp slt i32 %285, 4
br i1 %286, label %.lr.ph10, label %305
.lr.ph10: ; preds = %284
br label %287
287: ; preds = %.lr.ph10, %300
%288 = load i32, ptr %4, align 4
%289 = sext i32 %288 to i64
%290 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 %289
%291 = getelementptr inbounds [2 x i32], ptr %290, i64 0, i64 0
%292 = load i32, ptr %291, align 8
%293 = call i32 @close(i32 noundef %292)
%294 = load i32, ptr %4, align 4
%295 = sext i32 %294 to i64
%296 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 %295
%297 = getelementptr inbounds [2 x i32], ptr %296, i64 0, i64 1
%298 = load i32, ptr %297, align 4
%299 = call i32 @close(i32 noundef %298)
br label %300
300: ; preds = %287
%301 = load i32, ptr %4, align 4
%302 = add nsw i32 %301, 1
store i32 %302, ptr %4, align 4
%303 = load i32, ptr %4, align 4
%304 = icmp slt i32 %303, 4
br i1 %304, label %287, label %._crit_edge11, !llvm.loop !14
._crit_edge11: ; preds = %300
br label %305
305: ; preds = %._crit_edge11, %284
%306 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 0
%307 = getelementptr inbounds [2 x i32], ptr %306, i64 0, i64 1
%308 = load i32, ptr %307, align 4
%309 = call i32 @close(i32 noundef %308)
%310 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 0
%311 = getelementptr inbounds [2 x i32], ptr %310, i64 0, i64 0
%312 = load i32, ptr %311, align 16
%313 = call i32 @read(i32 noundef %312, ptr noundef %6, i32 noundef 1)
store i32 %313, ptr %3, align 4
%314 = icmp ne i32 %313, 0
br i1 %314, label %.lr.ph13, label %330
.lr.ph13: ; preds = %305
br label %315
315: ; preds = %.lr.ph13, %322
%316 = load i32, ptr %3, align 4
%317 = icmp eq i32 %316, -1
br i1 %317, label %318, label %322
318: ; preds = %315
%319 = call i32 @perror(ptr noundef @.str.4)
%320 = load i32, ptr @EXIT_FAILURE, align 4
%321 = call i32 @exit(i32 noundef %320) #3
unreachable
322: ; preds = %315
%323 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%324 = load i32, ptr @STDOUT_FILENO, align 4
%325 = call i32 @write(i32 noundef %324, ptr noundef %6, i32 noundef 1)
%326 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%327 = load i32, ptr %311, align 16
%328 = call i32 @read(i32 noundef %327, ptr noundef %6, i32 noundef 1)
store i32 %328, ptr %3, align 4
%329 = icmp ne i32 %328, 0
br i1 %329, label %315, label %._crit_edge14, !llvm.loop !15
._crit_edge14: ; preds = %322
br label %330
330: ; preds = %._crit_edge14, %305
%331 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 0
%332 = getelementptr inbounds [2 x i32], ptr %331, i64 0, i64 0
%333 = load i32, ptr %332, align 16
%334 = call i32 @close(i32 noundef %333)
%335 = load i32, ptr @EXIT_SUCCESS, align 4
%336 = call i32 @exit(i32 noundef %335) #3
unreachable
337: ; preds = %37
%338 = load i64, ptr %2, align 8
%339 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i64 noundef %338)
%340 = call i32 @usleep(i32 noundef 500000)
br label %341
341: ; preds = %337
%342 = load i32, ptr %4, align 4
%343 = add nsw i32 %342, 1
store i32 %343, ptr %4, align 4
%344 = load i32, ptr %4, align 4
%345 = icmp slt i32 %344, 5
br i1 %345, label %29, label %._crit_edge3, !llvm.loop !16
._crit_edge3: ; preds = %341
br label %346
346: ; preds = %._crit_edge3, %26
store i32 0, ptr %4, align 4
%347 = load i32, ptr %4, align 4
%348 = icmp slt i32 %347, 4
br i1 %348, label %.lr.ph5, label %367
.lr.ph5: ; preds = %346
br label %349
349: ; preds = %.lr.ph5, %362
%350 = load i32, ptr %4, align 4
%351 = sext i32 %350 to i64
%352 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 %351
%353 = getelementptr inbounds [2 x i32], ptr %352, i64 0, i64 0
%354 = load i32, ptr %353, align 8
%355 = call i32 @close(i32 noundef %354)
%356 = load i32, ptr %4, align 4
%357 = sext i32 %356 to i64
%358 = getelementptr inbounds [4 x [2 x i32]], ptr %5, i64 0, i64 %357
%359 = getelementptr inbounds [2 x i32], ptr %358, i64 0, i64 1
%360 = load i32, ptr %359, align 4
%361 = call i32 @close(i32 noundef %360)
br label %362
362: ; preds = %349
%363 = load i32, ptr %4, align 4
%364 = add nsw i32 %363, 1
store i32 %364, ptr %4, align 4
%365 = load i32, ptr %4, align 4
%366 = icmp slt i32 %365, 4
br i1 %366, label %349, label %._crit_edge6, !llvm.loop !17
._crit_edge6: ; preds = %362
br label %367
367: ; preds = %._crit_edge6, %346
%368 = call i64 @waitpid(i32 noundef -1, ptr noundef null, i32 noundef 0)
store i64 %368, ptr %2, align 8
%369 = icmp ne i64 %368, 0
br i1 %369, label %.lr.ph8, label %.loopexit
.lr.ph8: ; preds = %367
br label %373
370: ; preds = %373
%371 = call i64 @waitpid(i32 noundef -1, ptr noundef null, i32 noundef 0)
store i64 %371, ptr %2, align 8
%372 = icmp ne i64 %371, 0
br i1 %372, label %373, label %..loopexit_crit_edge, !llvm.loop !18
373: ; preds = %.lr.ph8, %370
%374 = load i64, ptr @errno, align 8
%375 = load i64, ptr @ECHILD, align 8
%376 = icmp eq i64 %374, %375
br i1 %376, label %377, label %370
377: ; preds = %373
br label %378
..loopexit_crit_edge: ; preds = %370
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %367
br label %378
378: ; preds = %.loopexit, %377
%379 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%380 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %380
}
declare i32 @pipe(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @fork(...) #1
declare i32 @close(i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @usleep(i32 noundef) #1
declare i64 @waitpid(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
!16 = distinct !{!16, !7}
!17 = distinct !{!17, !7}
!18 = distinct !{!18, !7}
|
; ModuleID = '/tmp/tmpu_0fkw_t.c'
source_filename = "/tmp/tmpu_0fkw_t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @LedHardware_Init() #0 {
%1 = alloca i32, align 4
%2 = call i32 @leds_init(i32 noundef 0)
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
ret void
}
declare i32 @leds_init(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu_0fkw_t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @LedHardware_Init() #0 {
%1 = alloca i32, align 4
%2 = call i32 @leds_init(i32 noundef 0)
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
ret void
}
declare i32 @leds_init(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxq7z7cki.c'
source_filename = "/tmp/tmpxq7z7cki.c"
target datalayout = "e-m:e-p270: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.termios = type { ptr, i32 }
@ICANON = dso_local global i32 0, align 4
@VMIN = dso_local global i64 0, align 8
@TCSANOW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @setup_terminal(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca %struct.termios, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @tcgetattr(i32 noundef 0, ptr noundef %4)
%6 = load ptr, ptr %2, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 %6, i64 16, i1 false)
%7 = load i32, ptr @ICANON, align 4
%8 = xor i32 %7, -1
%9 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 1
%10 = load i32, ptr %9, align 8
%11 = and i32 %10, %8
store i32 %11, ptr %9, align 8
%12 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 0
%13 = load ptr, ptr %12, align 8
%14 = load i64, ptr @VMIN, align 8
%15 = getelementptr inbounds i32, ptr %13, i64 %14
store i32 1, ptr %15, align 4
%16 = load i32, ptr @TCSANOW, align 4
%17 = call i32 @tcsetattr(i32 noundef 0, i32 noundef %16, ptr noundef %3)
ret void
}
declare i32 @tcgetattr(i32 noundef, 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 i32 @tcsetattr(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" }
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxq7z7cki.c"
target datalayout = "e-m:e-p270: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.termios = type { ptr, i32 }
@ICANON = dso_local global i32 0, align 4
@VMIN = dso_local global i64 0, align 8
@TCSANOW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @setup_terminal(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca %struct.termios, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @tcgetattr(i32 noundef 0, ptr noundef %4)
%6 = load ptr, ptr %2, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 %6, i64 16, i1 false)
%7 = load i32, ptr @ICANON, align 4
%8 = xor i32 %7, -1
%9 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 1
%10 = load i32, ptr %9, align 8
%11 = and i32 %10, %8
store i32 %11, ptr %9, align 8
%12 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 0
%13 = load ptr, ptr %12, align 8
%14 = load i64, ptr @VMIN, align 8
%15 = getelementptr inbounds i32, ptr %13, i64 %14
store i32 1, ptr %15, align 4
%16 = load i32, ptr @TCSANOW, align 4
%17 = call i32 @tcsetattr(i32 noundef 0, i32 noundef %16, ptr noundef %3)
ret void
}
declare i32 @tcgetattr(i32 noundef, 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 i32 @tcsetattr(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" }
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"}
|
; ModuleID = '/tmp/tmp6_l2o6yp.c'
source_filename = "/tmp/tmp6_l2o6yp.c"
target datalayout = "e-m:e-p270: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/tmp6_l2o6yp.c"
target datalayout = "e-m:e-p270: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/tmpscxdmma4.c'
source_filename = "/tmp/tmpscxdmma4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @keyzen_list_keys_name(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%7 = load ptr, ptr %4, align 8
%8 = call i32 @assert(ptr noundef %7)
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %6, align 8
%10 = load i32, ptr %5, align 4
%11 = icmp slt i32 %10, 1
br i1 %11, label %17, label %12
12: ; preds = %2
%13 = load i32, ptr %5, align 4
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr %14, align 4
%16 = icmp sgt i32 %13, %15
br i1 %16, label %17, label %18
17: ; preds = %12, %2
store ptr null, ptr %3, align 8
br label %27
18: ; preds = %12
%19 = load ptr, ptr %4, align 8
%20 = load ptr, ptr %6, align 8
%21 = load i32, ptr %5, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %20, i64 %22
%24 = load i32, ptr %23, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %19, i64 %25
store ptr %26, ptr %3, align 8
br label %27
27: ; preds = %18, %17
%28 = load ptr, ptr %3, align 8
ret ptr %28
}
declare i32 @assert(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpscxdmma4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @keyzen_list_keys_name(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%7 = load ptr, ptr %4, align 8
%8 = call i32 @assert(ptr noundef %7)
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %6, align 8
%10 = load i32, ptr %5, align 4
%11 = icmp slt i32 %10, 1
br i1 %11, label %17, label %12
12: ; preds = %2
%13 = load i32, ptr %5, align 4
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr %14, align 4
%16 = icmp sgt i32 %13, %15
br i1 %16, label %17, label %18
17: ; preds = %12, %2
store ptr null, ptr %3, align 8
br label %27
18: ; preds = %12
%19 = load ptr, ptr %4, align 8
%20 = load ptr, ptr %6, align 8
%21 = load i32, ptr %5, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %20, i64 %22
%24 = load i32, ptr %23, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %19, i64 %25
store ptr %26, ptr %3, align 8
br label %27
27: ; preds = %18, %17
%28 = load ptr, ptr %3, align 8
ret ptr %28
}
declare i32 @assert(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzpr02ngd.c'
source_filename = "/tmp/tmpzpr02ngd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @time_seed() #0 {
%1 = call i32 @time(ptr noundef null)
%2 = call i32 @srand(i32 noundef %1)
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzpr02ngd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @time_seed() #0 {
%1 = call i32 @time(ptr noundef null)
%2 = call i32 @srand(i32 noundef %1)
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbvnvs7nv.c'
source_filename = "/tmp/tmpbvnvs7nv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"466,913,1009,0,1\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @add_test_bigger_than_thousand() #0 {
%1 = alloca i32, align 4
%2 = call i32 @add(ptr noundef @.str)
%3 = icmp eq i32 %2, 1389
br i1 %3, label %4, label %5
4: ; preds = %0
store i32 1, ptr %1, align 4
br label %6
5: ; preds = %0
store i32 0, ptr %1, align 4
br label %6
6: ; preds = %5, %4
%7 = load i32, ptr %1, align 4
ret i32 %7
}
declare i32 @add(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbvnvs7nv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"466,913,1009,0,1\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @add_test_bigger_than_thousand() #0 {
%1 = alloca i32, align 4
%2 = call i32 @add(ptr noundef @.str)
%3 = icmp eq i32 %2, 1389
br i1 %3, label %4, label %5
4: ; preds = %0
store i32 1, ptr %1, align 4
br label %6
5: ; preds = %0
store i32 0, ptr %1, align 4
br label %6
6: ; preds = %5, %4
%7 = load i32, ptr %1, align 4
ret i32 %7
}
declare i32 @add(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvohjtwja.c'
source_filename = "/tmp/tmpvohjtwja.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvohjtwja.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvqghpt3_.c'
source_filename = "/tmp/tmpvqghpt3_.c"
target datalayout = "e-m:e-p270: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/tmpvqghpt3_.c"
target datalayout = "e-m:e-p270: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/tmpcspxxfqw.c'
source_filename = "/tmp/tmpcspxxfqw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @validate_dependency(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %11, label %8
8: ; preds = %2
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %12
11: ; preds = %8, %2
store i32 -1, ptr %3, align 4
br label %23
12: ; preds = %8
%13 = load ptr, ptr %4, align 8
%14 = call i32 @validate_name(ptr noundef %13)
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %17
16: ; preds = %12
store i32 -1, ptr %3, align 4
br label %23
17: ; preds = %12
%18 = load ptr, ptr %5, align 8
%19 = call i32 @validate_version(ptr noundef %18)
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %22
21: ; preds = %17
store i32 -1, ptr %3, align 4
br label %23
22: ; preds = %17
store i32 0, ptr %3, align 4
br label %23
23: ; preds = %22, %21, %16, %11
%24 = load i32, ptr %3, align 4
ret i32 %24
}
declare i32 @validate_name(ptr noundef) #1
declare i32 @validate_version(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcspxxfqw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @validate_dependency(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %11, label %8
8: ; preds = %2
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %12
11: ; preds = %8, %2
store i32 -1, ptr %3, align 4
br label %23
12: ; preds = %8
%13 = load ptr, ptr %4, align 8
%14 = call i32 @validate_name(ptr noundef %13)
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %17
16: ; preds = %12
store i32 -1, ptr %3, align 4
br label %23
17: ; preds = %12
%18 = load ptr, ptr %5, align 8
%19 = call i32 @validate_version(ptr noundef %18)
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %22
21: ; preds = %17
store i32 -1, ptr %3, align 4
br label %23
22: ; preds = %17
store i32 0, ptr %3, align 4
br label %23
23: ; preds = %22, %21, %16, %11
%24 = load i32, ptr %3, align 4
ret i32 %24
}
declare i32 @validate_name(ptr noundef) #1
declare i32 @validate_version(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyu2tqyt0.c'
source_filename = "/tmp/tmpyu2tqyt0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cirTreeFileOpen(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 @cloneString(ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 (...) @udcDefaultDir()
%7 = call i32 @udcFileOpen(ptr noundef %5, i32 noundef %6)
%8 = call ptr @cirTreeFileAttach(i32 noundef %4, i32 noundef %7)
ret ptr %8
}
declare ptr @cirTreeFileAttach(i32 noundef, i32 noundef) #1
declare i32 @cloneString(ptr noundef) #1
declare i32 @udcFileOpen(ptr noundef, i32 noundef) #1
declare i32 @udcDefaultDir(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyu2tqyt0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cirTreeFileOpen(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 @cloneString(ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 (...) @udcDefaultDir()
%7 = call i32 @udcFileOpen(ptr noundef %5, i32 noundef %6)
%8 = call ptr @cirTreeFileAttach(i32 noundef %4, i32 noundef %7)
ret ptr %8
}
declare ptr @cirTreeFileAttach(i32 noundef, i32 noundef) #1
declare i32 @cloneString(ptr noundef) #1
declare i32 @udcFileOpen(ptr noundef, i32 noundef) #1
declare i32 @udcDefaultDir(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpw723mkn8.c'
source_filename = "/tmp/tmpw723mkn8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"DISCLAMER:\0A\00", align 1
@.str.2 = private unnamed_addr constant [56 x i8] c"No warranties, either express or implied, are hereby \0A\00", align 1
@.str.3 = private unnamed_addr constant [56 x i8] c"given. All software is supplied as is, without \0A\00", align 1
@.str.4 = private unnamed_addr constant [56 x i8] c"guarantee. The user assumes all responsibility for \0A\00", align 1
@.str.5 = private unnamed_addr constant [56 x i8] c"damages resulting from the use of this software, \0A\00", align 1
@.str.6 = private unnamed_addr constant [56 x i8] c"including, but not limited to, attacks from angry \0A\00", align 1
@.str.7 = private unnamed_addr constant [56 x i8] c"little animals (like kittens or bunnies). \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Disclamer() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
%7 = call i32 @printf(ptr noundef @.str.6)
%8 = call i32 @printf(ptr noundef @.str.7)
%9 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw723mkn8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"DISCLAMER:\0A\00", align 1
@.str.2 = private unnamed_addr constant [56 x i8] c"No warranties, either express or implied, are hereby \0A\00", align 1
@.str.3 = private unnamed_addr constant [56 x i8] c"given. All software is supplied as is, without \0A\00", align 1
@.str.4 = private unnamed_addr constant [56 x i8] c"guarantee. The user assumes all responsibility for \0A\00", align 1
@.str.5 = private unnamed_addr constant [56 x i8] c"damages resulting from the use of this software, \0A\00", align 1
@.str.6 = private unnamed_addr constant [56 x i8] c"including, but not limited to, attacks from angry \0A\00", align 1
@.str.7 = private unnamed_addr constant [56 x i8] c"little animals (like kittens or bunnies). \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Disclamer() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
%7 = call i32 @printf(ptr noundef @.str.6)
%8 = call i32 @printf(ptr noundef @.str.7)
%9 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy_s9k3tc.c'
source_filename = "/tmp/tmpy_s9k3tc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @genZeroMatrix(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 @memset(ptr noundef %3, i32 noundef 0, i32 noundef 64)
ret void
}
declare i32 @memset(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy_s9k3tc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @genZeroMatrix(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 @memset(ptr noundef %3, i32 noundef 0, i32 noundef 64)
ret void
}
declare i32 @memset(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"}
|
; ModuleID = '/tmp/tmpry133ni7.c'
source_filename = "/tmp/tmpry133ni7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"exit\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"Good bye\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"Q\0A\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"Accepted\0A\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"ls\00", align 1
@.str.5 = private unnamed_addr constant [39 x i8] c"The pipe for ls did not open correctly\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"-l\00", align 1
@.str.7 = private unnamed_addr constant [36 x i8] c"the child did not execute properly.\00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"cd\00", align 1
@.str.9 = private unnamed_addr constant [22 x i8] c"A path must be given\0A\00", align 1
@.str.10 = private unnamed_addr constant [11 x i8] c"arg is %s\0A\00", align 1
@.str.11 = private unnamed_addr constant [56 x i8] c"error in changing directory or directory does not exist\00", align 1
@.str.12 = private unnamed_addr constant [32 x i8] c"The Directory has been changed\0A\00", align 1
@.str.13 = private unnamed_addr constant [4 x i8] c"rcd\00", align 1
@.str.14 = private unnamed_addr constant [2 x i8] c"C\00", align 1
@.str.15 = private unnamed_addr constant [27 x i8] c"Directory has changed\0A %s\0A\00", align 1
@.str.16 = private unnamed_addr constant [4 x i8] c"get\00", align 1
@.str.17 = private unnamed_addr constant [3 x i8] c"D\0A\00", align 1
@.str.18 = private unnamed_addr constant [61 x i8] c"The data connection has been established with the server %d\0A\00", align 1
@.str.19 = private unnamed_addr constant [2 x i8] c"G\00", align 1
@.str.20 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.21 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@ENOENT = dso_local global i32 0, align 4
@.str.22 = private unnamed_addr constant [37 x i8] c"The file you entered does not exist\0A\00", align 1
@.str.23 = private unnamed_addr constant [5 x i8] c"show\00", align 1
@EOF = dso_local global i8 0, align 1
@.str.24 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.25 = private unnamed_addr constant [35 x i8] c"********** End of file **********\0A\00", align 1
@.str.26 = private unnamed_addr constant [4 x i8] c"put\00", align 1
@.str.27 = private unnamed_addr constant [2 x i8] c"P\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.28 = private unnamed_addr constant [13 x i8] c"error in put\00", align 1
@.str.29 = private unnamed_addr constant [4 x i8] c"rls\00", align 1
@.str.30 = private unnamed_addr constant [3 x i8] c"L\0A\00", align 1
@.str.31 = private unnamed_addr constant [7 x i8] c"Error\0A\00", align 1
@.str.32 = private unnamed_addr constant [26 x i8] c"The command is not valid\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @doCommand(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca [10 x i8], align 1
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca [2 x i32], align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca ptr, align 8
%19 = alloca [2 x i8], align 1
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i8, align 1
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca ptr, align 8
%28 = alloca [128 x i8], align 16
%29 = alloca ptr, align 8
%30 = alloca ptr, align 8
%31 = alloca i32, align 4
%32 = alloca i32, align 4
%33 = alloca i8, align 1
%34 = alloca i32, align 4
%35 = alloca i8, align 1
%36 = alloca i32, align 4
%37 = alloca i32, align 4
%38 = alloca ptr, align 8
%39 = alloca [128 x i8], align 16
%40 = alloca ptr, align 8
%41 = alloca i32, align 4
%42 = alloca i32, align 4
%43 = alloca i8, align 1
%44 = alloca i32, align 4
%45 = alloca ptr, align 8
%46 = alloca i32, align 4
%47 = alloca [128 x i8], align 16
%48 = alloca ptr, align 8
%49 = alloca i32, align 4
%50 = alloca ptr, align 8
%51 = alloca [100 x i8], align 16
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%52 = load ptr, ptr %5, align 8
%53 = call i32 @strlen(ptr noundef %52)
store i32 %53, ptr %7, align 4
%54 = load ptr, ptr %6, align 8
%55 = icmp ne ptr %54, null
br i1 %55, label %56, label %59
56: ; preds = %3
%57 = load ptr, ptr %6, align 8
%58 = call i32 @strlen(ptr noundef %57)
store i32 %58, ptr %8, align 4
br label %59
59: ; preds = %56, %3
%60 = load i32, ptr %7, align 4
%61 = sext i32 %60 to i64
%62 = mul i64 1, %61
%63 = trunc i64 %62 to i32
%64 = call i64 @malloc(i32 noundef %63)
%65 = inttoptr i64 %64 to ptr
store ptr %65, ptr %9, align 8
%66 = load i32, ptr %8, align 4
%67 = sext i32 %66 to i64
%68 = mul i64 1, %67
%69 = trunc i64 %68 to i32
%70 = call i64 @malloc(i32 noundef %69)
%71 = inttoptr i64 %70 to ptr
store ptr %71, ptr %10, align 8
%72 = load ptr, ptr %6, align 8
%73 = icmp eq ptr %72, null
br i1 %73, label %74, label %77
74: ; preds = %59
%75 = load ptr, ptr %5, align 8
%76 = call ptr @removeNL(ptr noundef %75)
store ptr %76, ptr %9, align 8
br label %80
77: ; preds = %59
%78 = load ptr, ptr %6, align 8
%79 = call ptr @removeNL(ptr noundef %78)
store ptr %79, ptr %10, align 8
br label %80
80: ; preds = %77, %74
%81 = load ptr, ptr %9, align 8
%82 = call i64 @strcmp(ptr noundef %81, ptr noundef @.str)
%83 = icmp eq i64 %82, 0
br i1 %83, label %84, label %99
84: ; preds = %80
%85 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%86 = load i32, ptr %4, align 4
%87 = call i32 @write(i32 noundef %86, ptr noundef @.str.2, i32 noundef 2)
%88 = load i32, ptr %4, align 4
%89 = getelementptr inbounds [10 x i8], ptr %11, i64 0, i64 0
%90 = call i32 @read(i32 noundef %88, ptr noundef %89, i32 noundef 10)
%91 = getelementptr inbounds [10 x i8], ptr %11, i64 0, i64 0
%92 = load i8, ptr %91, align 1
%93 = sext i8 %92 to i32
%94 = icmp eq i32 %93, 65
br i1 %94, label %95, label %97
95: ; preds = %84
%96 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %97
97: ; preds = %95, %84
%98 = call i32 @exit(i32 noundef 0) #3
unreachable
99: ; preds = %80
%100 = load ptr, ptr %9, align 8
%101 = call i64 @strcmp(ptr noundef %100, ptr noundef @.str.4)
%102 = icmp eq i64 %101, 0
br i1 %102, label %103, label %135
103: ; preds = %99
%104 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
%105 = call i64 @pipe(ptr noundef %104)
%106 = icmp slt i64 %105, 0
br i1 %106, label %107, label %110
107: ; preds = %103
%108 = call i32 @perror(ptr noundef @.str.5)
%109 = call i32 @exit(i32 noundef 1) #3
unreachable
110: ; preds = %103
%111 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
%112 = load i32, ptr %111, align 4
store i32 %112, ptr %15, align 4
%113 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 1
%114 = load i32, ptr %113, align 4
store i32 %114, ptr %16, align 4
%115 = call i32 (...) @fork()
store i32 %115, ptr %12, align 4
%116 = load i32, ptr %12, align 4
%117 = icmp eq i32 %116, 0
br i1 %117, label %118, label %128
118: ; preds = %110
%119 = load i32, ptr %15, align 4
%120 = call i32 @close(i32 noundef %119)
%121 = load i32, ptr %16, align 4
%122 = call i32 @dup2(i32 noundef %121, i32 noundef 1)
%123 = call i32 @execlp(ptr noundef @.str.4, ptr noundef @.str.4, ptr noundef @.str.6, ptr noundef null)
%124 = load i32, ptr %16, align 4
%125 = call i32 @close(i32 noundef %124)
%126 = call i32 @perror(ptr noundef @.str.7)
%127 = call i32 @exit(i32 noundef 1) #3
unreachable
128: ; preds = %110
%129 = load i32, ptr %16, align 4
%130 = call i32 @close(i32 noundef %129)
%131 = call i32 @wait(ptr noundef %13)
%132 = load i32, ptr %15, align 4
%133 = call i32 @printBuffer(i32 noundef %132)
br label %134
134: ; preds = %128
br label %502
135: ; preds = %99
%136 = load ptr, ptr %5, align 8
%137 = call i64 @strcmp(ptr noundef %136, ptr noundef @.str.8)
%138 = icmp eq i64 %137, 0
br i1 %138, label %139, label %156
139: ; preds = %135
%140 = load ptr, ptr %6, align 8
%141 = icmp eq ptr %140, null
br i1 %141, label %142, label %144
142: ; preds = %139
%143 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %154
144: ; preds = %139
%145 = load ptr, ptr %10, align 8
%146 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %145)
%147 = load ptr, ptr %10, align 8
%148 = call i32 @chdir(ptr noundef %147)
store i32 %148, ptr %17, align 4
%149 = load i32, ptr %17, align 4
%150 = icmp slt i32 %149, 0
br i1 %150, label %151, label %153
151: ; preds = %144
%152 = call i32 @perror(ptr noundef @.str.11)
br label %153
153: ; preds = %151, %144
br label %154
154: ; preds = %153, %142
%155 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
br label %501
156: ; preds = %135
%157 = load ptr, ptr %5, align 8
%158 = call i64 @strcmp(ptr noundef %157, ptr noundef @.str.13)
%159 = icmp eq i64 %158, 0
br i1 %159, label %160, label %183
160: ; preds = %156
%161 = load ptr, ptr %6, align 8
%162 = call i32 @strlen(ptr noundef %161)
%163 = add nsw i32 %162, 1
%164 = call i64 @calloc(i32 noundef %163, i32 noundef 1)
%165 = inttoptr i64 %164 to ptr
store ptr %165, ptr %18, align 8
%166 = load ptr, ptr %18, align 8
%167 = call ptr @strcat(ptr noundef %166, ptr noundef @.str.14)
store ptr %167, ptr %18, align 8
%168 = load ptr, ptr %18, align 8
%169 = load ptr, ptr %6, align 8
%170 = call ptr @strcat(ptr noundef %168, ptr noundef %169)
store ptr %170, ptr %18, align 8
%171 = load i32, ptr %4, align 4
%172 = load ptr, ptr %18, align 8
%173 = load ptr, ptr %18, align 8
%174 = call i32 @strlen(ptr noundef %173)
%175 = call i32 @write(i32 noundef %171, ptr noundef %172, i32 noundef %174)
%176 = load i32, ptr %4, align 4
%177 = getelementptr inbounds [2 x i8], ptr %19, i64 0, i64 0
%178 = call i32 @read(i32 noundef %176, ptr noundef %177, i32 noundef 2)
%179 = getelementptr inbounds [2 x i8], ptr %19, i64 0, i64 0
%180 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, ptr noundef %179)
%181 = load ptr, ptr %18, align 8
%182 = call i32 @free(ptr noundef %181)
br label %500
183: ; preds = %156
%184 = load ptr, ptr %5, align 8
%185 = call i64 @strcmp(ptr noundef %184, ptr noundef @.str.16)
%186 = icmp eq i64 %185, 0
br i1 %186, label %187, label %276
187: ; preds = %183
store ptr @.str.17, ptr %20, align 8
store i32 1, ptr %23, align 4
%188 = load i32, ptr %4, align 4
%189 = load ptr, ptr %20, align 8
%190 = call i32 @write(i32 noundef %188, ptr noundef %189, i32 noundef 2)
%191 = load i32, ptr %4, align 4
%192 = call i32 @createConnection(i32 noundef %191)
store i32 %192, ptr %25, align 4
%193 = load i32, ptr %25, align 4
%194 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, i32 noundef %193)
%195 = load ptr, ptr %6, align 8
%196 = call i32 @strlen(ptr noundef %195)
store i32 %196, ptr %26, align 4
%197 = load i32, ptr %26, align 4
%198 = add nsw i32 %197, 1
%199 = call i64 @calloc(i32 noundef %198, i32 noundef 1)
%200 = inttoptr i64 %199 to ptr
store ptr %200, ptr %27, align 8
%201 = load ptr, ptr %27, align 8
%202 = call ptr @strcat(ptr noundef %201, ptr noundef @.str.19)
store ptr %202, ptr %27, align 8
%203 = load ptr, ptr %27, align 8
%204 = load ptr, ptr %10, align 8
%205 = call ptr @strcat(ptr noundef %203, ptr noundef %204)
store ptr %205, ptr %27, align 8
%206 = load ptr, ptr %27, align 8
%207 = call ptr @strcat(ptr noundef %206, ptr noundef @.str.20)
store ptr %207, ptr %27, align 8
%208 = load i32, ptr %4, align 4
%209 = load ptr, ptr %27, align 8
%210 = load ptr, ptr %27, align 8
%211 = call i32 @strlen(ptr noundef %210)
%212 = call i32 @write(i32 noundef %208, ptr noundef %209, i32 noundef %211)
%213 = load ptr, ptr %10, align 8
%214 = call ptr @getFileName(ptr noundef %213)
store ptr %214, ptr %21, align 8
%215 = load i32, ptr %4, align 4
%216 = getelementptr inbounds [128 x i8], ptr %28, i64 0, i64 0
%217 = call i32 @read(i32 noundef %215, ptr noundef %216, i32 noundef 128)
%218 = getelementptr inbounds [128 x i8], ptr %28, i64 0, i64 0
%219 = load i8, ptr %218, align 16
%220 = sext i8 %219 to i32
%221 = icmp eq i32 %220, 65
br i1 %221, label %222, label %224
222: ; preds = %187
%223 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %224
224: ; preds = %222, %187
%225 = getelementptr inbounds [128 x i8], ptr %28, i64 0, i64 0
%226 = load i8, ptr %225, align 16
%227 = sext i8 %226 to i32
%228 = icmp eq i32 %227, 69
br i1 %228, label %229, label %236
229: ; preds = %224
%230 = getelementptr inbounds [128 x i8], ptr %28, i64 0, i64 1
%231 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, ptr noundef %230)
%232 = load i32, ptr %25, align 4
%233 = call i32 @close(i32 noundef %232)
%234 = load ptr, ptr %27, align 8
%235 = call i32 @free(ptr noundef %234)
br label %503
236: ; preds = %224
%237 = load ptr, ptr %21, align 8
%238 = load i32, ptr @O_RDWR, align 4
%239 = load i32, ptr @O_CREAT, align 4
%240 = or i32 %238, %239
%241 = load i32, ptr @S_IRUSR, align 4
%242 = load i32, ptr @S_IWUSR, align 4
%243 = or i32 %241, %242
%244 = call i32 (ptr, i32, ...) @open(ptr noundef %237, i32 noundef %240, i32 noundef %243)
store i32 %244, ptr %22, align 4
%245 = load i32, ptr %22, align 4
%246 = icmp sge i32 %245, 0
br i1 %246, label %247, label %263
247: ; preds = %236
br label %248
248: ; preds = %257, %247
%249 = load i32, ptr %23, align 4
%250 = icmp sgt i32 %249, 0
br i1 %250, label %251, label %260
251: ; preds = %248
%252 = load i32, ptr %25, align 4
%253 = call i32 @read(i32 noundef %252, ptr noundef %24, i32 noundef 1)
store i32 %253, ptr %23, align 4
%254 = load i32, ptr %23, align 4
%255 = icmp eq i32 %254, 0
br i1 %255, label %256, label %257
256: ; preds = %251
br label %260
257: ; preds = %251
%258 = load i32, ptr %22, align 4
%259 = call i32 @write(i32 noundef %258, ptr noundef %24, i32 noundef 1)
br label %248, !llvm.loop !6
260: ; preds = %256, %248
%261 = load i32, ptr %22, align 4
%262 = call i32 @close(i32 noundef %261)
br label %263
263: ; preds = %260, %236
%264 = load i32, ptr %22, align 4
%265 = load i32, ptr @ENOENT, align 4
%266 = icmp eq i32 %264, %265
br i1 %266, label %267, label %271
267: ; preds = %263
%268 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
%269 = load i32, ptr %22, align 4
%270 = call i32 @close(i32 noundef %269)
br label %271
271: ; preds = %267, %263
%272 = load i32, ptr %25, align 4
%273 = call i32 @close(i32 noundef %272)
%274 = load ptr, ptr %27, align 8
%275 = call i32 @free(ptr noundef %274)
br label %499
276: ; preds = %183
%277 = load ptr, ptr %5, align 8
%278 = call i64 @strcmp(ptr noundef %277, ptr noundef @.str.23)
%279 = icmp eq i64 %278, 0
br i1 %279, label %280, label %370
280: ; preds = %276
store ptr @.str.17, ptr %29, align 8
store i32 1, ptr %32, align 4
store i32 0, ptr %34, align 4
store i8 32, ptr %35, align 1
%281 = load i32, ptr %4, align 4
%282 = load ptr, ptr %29, align 8
%283 = call i32 @write(i32 noundef %281, ptr noundef %282, i32 noundef 2)
%284 = load i32, ptr %4, align 4
%285 = call i32 @createConnection(i32 noundef %284)
store i32 %285, ptr %36, align 4
%286 = load ptr, ptr %6, align 8
%287 = call i32 @strlen(ptr noundef %286)
store i32 %287, ptr %37, align 4
%288 = load i32, ptr %37, align 4
%289 = add nsw i32 %288, 1
%290 = call i64 @calloc(i32 noundef %289, i32 noundef 1)
%291 = inttoptr i64 %290 to ptr
store ptr %291, ptr %38, align 8
%292 = load ptr, ptr %38, align 8
%293 = call ptr @strcat(ptr noundef %292, ptr noundef @.str.19)
store ptr %293, ptr %38, align 8
%294 = load ptr, ptr %38, align 8
%295 = load ptr, ptr %10, align 8
%296 = call ptr @strcat(ptr noundef %294, ptr noundef %295)
store ptr %296, ptr %38, align 8
%297 = load ptr, ptr %38, align 8
%298 = call ptr @strcat(ptr noundef %297, ptr noundef @.str.20)
store ptr %298, ptr %38, align 8
%299 = load i32, ptr %4, align 4
%300 = load ptr, ptr %38, align 8
%301 = load ptr, ptr %38, align 8
%302 = call i32 @strlen(ptr noundef %301)
%303 = call i32 @write(i32 noundef %299, ptr noundef %300, i32 noundef %302)
%304 = load ptr, ptr %10, align 8
%305 = call ptr @getFileName(ptr noundef %304)
store ptr %305, ptr %30, align 8
%306 = load i32, ptr %4, align 4
%307 = getelementptr inbounds [128 x i8], ptr %39, i64 0, i64 0
%308 = call i32 @read(i32 noundef %306, ptr noundef %307, i32 noundef 128)
%309 = getelementptr inbounds [128 x i8], ptr %39, i64 0, i64 0
%310 = load i8, ptr %309, align 16
%311 = sext i8 %310 to i32
%312 = icmp eq i32 %311, 65
br i1 %312, label %313, label %315
313: ; preds = %280
%314 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %315
315: ; preds = %313, %280
%316 = getelementptr inbounds [128 x i8], ptr %39, i64 0, i64 0
%317 = load i8, ptr %316, align 16
%318 = sext i8 %317 to i32
%319 = icmp eq i32 %318, 69
br i1 %319, label %320, label %327
320: ; preds = %315
%321 = getelementptr inbounds [128 x i8], ptr %39, i64 0, i64 1
%322 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, ptr noundef %321)
%323 = load i32, ptr %36, align 4
%324 = call i32 @close(i32 noundef %323)
%325 = load ptr, ptr %38, align 8
%326 = call i32 @free(ptr noundef %325)
br label %327
327: ; preds = %320, %315
br label %328
328: ; preds = %361, %327
%329 = load i32, ptr %32, align 4
%330 = icmp sgt i32 %329, 0
br i1 %330, label %331, label %362
331: ; preds = %328
%332 = load i32, ptr %36, align 4
%333 = call i32 @read(i32 noundef %332, ptr noundef %33, i32 noundef 1)
store i32 %333, ptr %32, align 4
%334 = load i8, ptr %33, align 1
%335 = sext i8 %334 to i32
%336 = load i8, ptr @EOF, align 1
%337 = sext i8 %336 to i32
%338 = icmp eq i32 %335, %337
br i1 %338, label %339, label %340
339: ; preds = %331
br label %362
340: ; preds = %331
%341 = load i8, ptr %33, align 1
%342 = sext i8 %341 to i32
%343 = icmp eq i32 %342, 10
br i1 %343, label %344, label %347
344: ; preds = %340
%345 = load i32, ptr %34, align 4
%346 = add nsw i32 %345, 1
store i32 %346, ptr %34, align 4
br label %347
347: ; preds = %344, %340
%348 = load i8, ptr %33, align 1
%349 = sext i8 %348 to i32
%350 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, i32 noundef %349)
%351 = load i32, ptr %34, align 4
%352 = icmp eq i32 %351, 19
br i1 %352, label %353, label %361
353: ; preds = %347
br label %354
354: ; preds = %358, %353
%355 = load i8, ptr %35, align 1
%356 = sext i8 %355 to i32
%357 = icmp ne i32 %356, 10
br i1 %357, label %358, label %360
358: ; preds = %354
%359 = call i32 @read(i32 noundef 0, ptr noundef %35, i32 noundef 1)
br label %354, !llvm.loop !8
360: ; preds = %354
store i8 32, ptr %35, align 1
store i32 0, ptr %34, align 4
br label %361
361: ; preds = %360, %347
br label %328, !llvm.loop !9
362: ; preds = %339, %328
%363 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
%364 = load i32, ptr %31, align 4
%365 = load i32, ptr @ENOENT, align 4
%366 = icmp eq i32 %364, %365
br i1 %366, label %367, label %369
367: ; preds = %362
%368 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
br label %369
369: ; preds = %367, %362
br label %498
370: ; preds = %276
%371 = load ptr, ptr %5, align 8
%372 = call i64 @strcmp(ptr noundef %371, ptr noundef @.str.26)
%373 = icmp eq i64 %372, 0
br i1 %373, label %374, label %458
374: ; preds = %370
store ptr @.str.17, ptr %40, align 8
store i32 1, ptr %42, align 4
%375 = load i32, ptr %4, align 4
%376 = load ptr, ptr %40, align 8
%377 = call i32 @write(i32 noundef %375, ptr noundef %376, i32 noundef 2)
%378 = load ptr, ptr %6, align 8
%379 = call i32 @strlen(ptr noundef %378)
store i32 %379, ptr %44, align 4
%380 = load i32, ptr %44, align 4
%381 = add nsw i32 %380, 1
%382 = call i64 @calloc(i32 noundef %381, i32 noundef 1)
%383 = inttoptr i64 %382 to ptr
store ptr %383, ptr %45, align 8
%384 = load i32, ptr %4, align 4
%385 = call i32 @createConnection(i32 noundef %384)
store i32 %385, ptr %46, align 4
%386 = load ptr, ptr %45, align 8
%387 = call ptr @strcat(ptr noundef %386, ptr noundef @.str.27)
store ptr %387, ptr %45, align 8
%388 = load ptr, ptr %45, align 8
%389 = load ptr, ptr %10, align 8
%390 = call ptr @strcat(ptr noundef %388, ptr noundef %389)
store ptr %390, ptr %45, align 8
%391 = load ptr, ptr %45, align 8
%392 = call ptr @strcat(ptr noundef %391, ptr noundef @.str.20)
store ptr %392, ptr %45, align 8
%393 = load i32, ptr %4, align 4
%394 = load ptr, ptr %45, align 8
%395 = load ptr, ptr %45, align 8
%396 = call i32 @strlen(ptr noundef %395)
%397 = call i32 @write(i32 noundef %393, ptr noundef %394, i32 noundef %396)
%398 = load ptr, ptr %10, align 8
%399 = load i32, ptr @O_RDONLY, align 4
%400 = call i32 (ptr, i32, ...) @open(ptr noundef %398, i32 noundef %399)
store i32 %400, ptr %41, align 4
%401 = load i32, ptr %4, align 4
%402 = getelementptr inbounds [128 x i8], ptr %47, i64 0, i64 0
%403 = call i32 @read(i32 noundef %401, ptr noundef %402, i32 noundef 128)
%404 = getelementptr inbounds [128 x i8], ptr %47, i64 0, i64 0
%405 = load i8, ptr %404, align 16
%406 = sext i8 %405 to i32
%407 = icmp eq i32 %406, 65
br i1 %407, label %408, label %410
408: ; preds = %374
%409 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %410
410: ; preds = %408, %374
%411 = getelementptr inbounds [128 x i8], ptr %47, i64 0, i64 0
%412 = load i8, ptr %411, align 16
%413 = sext i8 %412 to i32
%414 = icmp eq i32 %413, 69
br i1 %414, label %415, label %422
415: ; preds = %410
%416 = getelementptr inbounds [128 x i8], ptr %47, i64 0, i64 1
%417 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, ptr noundef %416)
%418 = load i32, ptr %46, align 4
%419 = call i32 @close(i32 noundef %418)
%420 = load ptr, ptr %45, align 8
%421 = call i32 @free(ptr noundef %420)
br label %422
422: ; preds = %415, %410
%423 = load i32, ptr %41, align 4
%424 = icmp sge i32 %423, 0
br i1 %424, label %425, label %443
425: ; preds = %422
br label %426
426: ; preds = %435, %425
%427 = load i32, ptr %42, align 4
%428 = icmp sgt i32 %427, 0
br i1 %428, label %429, label %438
429: ; preds = %426
%430 = load i32, ptr %41, align 4
%431 = call i32 @read(i32 noundef %430, ptr noundef %43, i32 noundef 1)
store i32 %431, ptr %42, align 4
%432 = load i32, ptr %42, align 4
%433 = icmp eq i32 %432, 0
br i1 %433, label %434, label %435
434: ; preds = %429
br label %438
435: ; preds = %429
%436 = load i32, ptr %46, align 4
%437 = call i32 @write(i32 noundef %436, ptr noundef %43, i32 noundef 1)
br label %426, !llvm.loop !10
438: ; preds = %434, %426
%439 = load i32, ptr %41, align 4
%440 = call i32 @close(i32 noundef %439)
%441 = load i32, ptr %46, align 4
%442 = call i32 @close(i32 noundef %441)
br label %443
443: ; preds = %438, %422
%444 = load i32, ptr %41, align 4
%445 = load i32, ptr @ENOENT, align 4
%446 = icmp eq i32 %444, %445
br i1 %446, label %447, label %449
447: ; preds = %443
%448 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
br label %449
449: ; preds = %447, %443
%450 = load i32, ptr %41, align 4
%451 = icmp slt i32 %450, 0
br i1 %451, label %452, label %455
452: ; preds = %449
%453 = call i32 (ptr, ...) @printf(ptr noundef @.str.28)
%454 = call i32 @exit(i32 noundef 1) #3
unreachable
455: ; preds = %449
%456 = load ptr, ptr %45, align 8
%457 = call i32 @free(ptr noundef %456)
br label %497
458: ; preds = %370
%459 = load ptr, ptr %9, align 8
%460 = call i64 @strcmp(ptr noundef %459, ptr noundef @.str.29)
%461 = icmp eq i64 %460, 0
br i1 %461, label %462, label %494
462: ; preds = %458
store ptr @.str.17, ptr %48, align 8
%463 = load i32, ptr %4, align 4
%464 = load ptr, ptr %48, align 8
%465 = call i32 @write(i32 noundef %463, ptr noundef %464, i32 noundef 2)
%466 = load i32, ptr %4, align 4
%467 = call i32 @createConnection(i32 noundef %466)
store i32 %467, ptr %49, align 4
store ptr @.str.30, ptr %50, align 8
%468 = load i32, ptr %4, align 4
%469 = load ptr, ptr %50, align 8
%470 = load ptr, ptr %50, align 8
%471 = call i32 @strlen(ptr noundef %470)
%472 = call i32 @write(i32 noundef %468, ptr noundef %469, i32 noundef %471)
%473 = load i32, ptr %4, align 4
%474 = getelementptr inbounds [100 x i8], ptr %51, i64 0, i64 0
%475 = call i32 @read(i32 noundef %473, ptr noundef %474, i32 noundef 10)
%476 = getelementptr inbounds [100 x i8], ptr %51, i64 0, i64 0
%477 = load i8, ptr %476, align 16
%478 = sext i8 %477 to i32
%479 = icmp eq i32 %478, 65
br i1 %479, label %480, label %482
480: ; preds = %462
%481 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %482
482: ; preds = %480, %462
%483 = getelementptr inbounds [100 x i8], ptr %51, i64 0, i64 0
%484 = load i8, ptr %483, align 16
%485 = sext i8 %484 to i32
%486 = icmp eq i32 %485, 69
br i1 %486, label %487, label %489
487: ; preds = %482
%488 = call i32 (ptr, ...) @printf(ptr noundef @.str.31)
br label %489
489: ; preds = %487, %482
%490 = load i32, ptr %49, align 4
%491 = call i32 @printBuffer(i32 noundef %490)
%492 = load i32, ptr %49, align 4
%493 = call i32 @close(i32 noundef %492)
br label %496
494: ; preds = %458
%495 = call i32 (ptr, ...) @printf(ptr noundef @.str.32)
br label %496
496: ; preds = %494, %489
br label %497
497: ; preds = %496, %455
br label %498
498: ; preds = %497, %369
br label %499
499: ; preds = %498, %271
br label %500
500: ; preds = %499, %160
br label %501
501: ; preds = %500, %154
br label %502
502: ; preds = %501, %134
br label %503
503: ; preds = %229, %502
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare ptr @removeNL(ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @pipe(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @fork(...) #1
declare i32 @close(i32 noundef) #1
declare i32 @dup2(i32 noundef, i32 noundef) #1
declare i32 @execlp(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @wait(ptr noundef) #1
declare i32 @printBuffer(i32 noundef) #1
declare i32 @chdir(ptr noundef) #1
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare ptr @strcat(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @createConnection(i32 noundef) #1
declare ptr @getFileName(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpry133ni7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"exit\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"Good bye\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"Q\0A\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"Accepted\0A\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"ls\00", align 1
@.str.5 = private unnamed_addr constant [39 x i8] c"The pipe for ls did not open correctly\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"-l\00", align 1
@.str.7 = private unnamed_addr constant [36 x i8] c"the child did not execute properly.\00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"cd\00", align 1
@.str.9 = private unnamed_addr constant [22 x i8] c"A path must be given\0A\00", align 1
@.str.10 = private unnamed_addr constant [11 x i8] c"arg is %s\0A\00", align 1
@.str.11 = private unnamed_addr constant [56 x i8] c"error in changing directory or directory does not exist\00", align 1
@.str.12 = private unnamed_addr constant [32 x i8] c"The Directory has been changed\0A\00", align 1
@.str.13 = private unnamed_addr constant [4 x i8] c"rcd\00", align 1
@.str.14 = private unnamed_addr constant [2 x i8] c"C\00", align 1
@.str.15 = private unnamed_addr constant [27 x i8] c"Directory has changed\0A %s\0A\00", align 1
@.str.16 = private unnamed_addr constant [4 x i8] c"get\00", align 1
@.str.17 = private unnamed_addr constant [3 x i8] c"D\0A\00", align 1
@.str.18 = private unnamed_addr constant [61 x i8] c"The data connection has been established with the server %d\0A\00", align 1
@.str.19 = private unnamed_addr constant [2 x i8] c"G\00", align 1
@.str.20 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.21 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@ENOENT = dso_local global i32 0, align 4
@.str.22 = private unnamed_addr constant [37 x i8] c"The file you entered does not exist\0A\00", align 1
@.str.23 = private unnamed_addr constant [5 x i8] c"show\00", align 1
@EOF = dso_local global i8 0, align 1
@.str.24 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.25 = private unnamed_addr constant [35 x i8] c"********** End of file **********\0A\00", align 1
@.str.26 = private unnamed_addr constant [4 x i8] c"put\00", align 1
@.str.27 = private unnamed_addr constant [2 x i8] c"P\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.28 = private unnamed_addr constant [13 x i8] c"error in put\00", align 1
@.str.29 = private unnamed_addr constant [4 x i8] c"rls\00", align 1
@.str.30 = private unnamed_addr constant [3 x i8] c"L\0A\00", align 1
@.str.31 = private unnamed_addr constant [7 x i8] c"Error\0A\00", align 1
@.str.32 = private unnamed_addr constant [26 x i8] c"The command is not valid\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @doCommand(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca [10 x i8], align 1
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca [2 x i32], align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca ptr, align 8
%19 = alloca [2 x i8], align 1
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i8, align 1
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca ptr, align 8
%28 = alloca [128 x i8], align 16
%29 = alloca ptr, align 8
%30 = alloca ptr, align 8
%31 = alloca i32, align 4
%32 = alloca i32, align 4
%33 = alloca i8, align 1
%34 = alloca i32, align 4
%35 = alloca i8, align 1
%36 = alloca i32, align 4
%37 = alloca i32, align 4
%38 = alloca ptr, align 8
%39 = alloca [128 x i8], align 16
%40 = alloca ptr, align 8
%41 = alloca i32, align 4
%42 = alloca i32, align 4
%43 = alloca i8, align 1
%44 = alloca i32, align 4
%45 = alloca ptr, align 8
%46 = alloca i32, align 4
%47 = alloca [128 x i8], align 16
%48 = alloca ptr, align 8
%49 = alloca i32, align 4
%50 = alloca ptr, align 8
%51 = alloca [100 x i8], align 16
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%52 = load ptr, ptr %5, align 8
%53 = call i32 @strlen(ptr noundef %52)
store i32 %53, ptr %7, align 4
%54 = load ptr, ptr %6, align 8
%55 = icmp ne ptr %54, null
br i1 %55, label %56, label %59
56: ; preds = %3
%57 = load ptr, ptr %6, align 8
%58 = call i32 @strlen(ptr noundef %57)
store i32 %58, ptr %8, align 4
br label %59
59: ; preds = %56, %3
%60 = load i32, ptr %7, align 4
%61 = sext i32 %60 to i64
%62 = mul i64 1, %61
%63 = trunc i64 %62 to i32
%64 = call i64 @malloc(i32 noundef %63)
%65 = inttoptr i64 %64 to ptr
store ptr %65, ptr %9, align 8
%66 = load i32, ptr %8, align 4
%67 = sext i32 %66 to i64
%68 = mul i64 1, %67
%69 = trunc i64 %68 to i32
%70 = call i64 @malloc(i32 noundef %69)
%71 = inttoptr i64 %70 to ptr
store ptr %71, ptr %10, align 8
%72 = load ptr, ptr %6, align 8
%73 = icmp eq ptr %72, null
br i1 %73, label %74, label %77
74: ; preds = %59
%75 = load ptr, ptr %5, align 8
%76 = call ptr @removeNL(ptr noundef %75)
store ptr %76, ptr %9, align 8
br label %80
77: ; preds = %59
%78 = load ptr, ptr %6, align 8
%79 = call ptr @removeNL(ptr noundef %78)
store ptr %79, ptr %10, align 8
br label %80
80: ; preds = %77, %74
%81 = load ptr, ptr %9, align 8
%82 = call i64 @strcmp(ptr noundef %81, ptr noundef @.str)
%83 = icmp eq i64 %82, 0
br i1 %83, label %84, label %99
84: ; preds = %80
%85 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%86 = load i32, ptr %4, align 4
%87 = call i32 @write(i32 noundef %86, ptr noundef @.str.2, i32 noundef 2)
%88 = load i32, ptr %4, align 4
%89 = getelementptr inbounds [10 x i8], ptr %11, i64 0, i64 0
%90 = call i32 @read(i32 noundef %88, ptr noundef %89, i32 noundef 10)
%91 = getelementptr inbounds [10 x i8], ptr %11, i64 0, i64 0
%92 = load i8, ptr %91, align 1
%93 = sext i8 %92 to i32
%94 = icmp eq i32 %93, 65
br i1 %94, label %95, label %97
95: ; preds = %84
%96 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %97
97: ; preds = %95, %84
%98 = call i32 @exit(i32 noundef 0) #3
unreachable
99: ; preds = %80
%100 = load ptr, ptr %9, align 8
%101 = call i64 @strcmp(ptr noundef %100, ptr noundef @.str.4)
%102 = icmp eq i64 %101, 0
br i1 %102, label %103, label %135
103: ; preds = %99
%104 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
%105 = call i64 @pipe(ptr noundef %104)
%106 = icmp slt i64 %105, 0
br i1 %106, label %107, label %110
107: ; preds = %103
%108 = call i32 @perror(ptr noundef @.str.5)
%109 = call i32 @exit(i32 noundef 1) #3
unreachable
110: ; preds = %103
%111 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
%112 = load i32, ptr %111, align 4
store i32 %112, ptr %15, align 4
%113 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 1
%114 = load i32, ptr %113, align 4
store i32 %114, ptr %16, align 4
%115 = call i32 (...) @fork()
store i32 %115, ptr %12, align 4
%116 = load i32, ptr %12, align 4
%117 = icmp eq i32 %116, 0
br i1 %117, label %118, label %128
118: ; preds = %110
%119 = load i32, ptr %15, align 4
%120 = call i32 @close(i32 noundef %119)
%121 = load i32, ptr %16, align 4
%122 = call i32 @dup2(i32 noundef %121, i32 noundef 1)
%123 = call i32 @execlp(ptr noundef @.str.4, ptr noundef @.str.4, ptr noundef @.str.6, ptr noundef null)
%124 = load i32, ptr %16, align 4
%125 = call i32 @close(i32 noundef %124)
%126 = call i32 @perror(ptr noundef @.str.7)
%127 = call i32 @exit(i32 noundef 1) #3
unreachable
128: ; preds = %110
%129 = load i32, ptr %16, align 4
%130 = call i32 @close(i32 noundef %129)
%131 = call i32 @wait(ptr noundef %13)
%132 = load i32, ptr %15, align 4
%133 = call i32 @printBuffer(i32 noundef %132)
br label %134
134: ; preds = %128
br label %507
135: ; preds = %99
%136 = load ptr, ptr %5, align 8
%137 = call i64 @strcmp(ptr noundef %136, ptr noundef @.str.8)
%138 = icmp eq i64 %137, 0
br i1 %138, label %139, label %156
139: ; preds = %135
%140 = load ptr, ptr %6, align 8
%141 = icmp eq ptr %140, null
br i1 %141, label %142, label %144
142: ; preds = %139
%143 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %154
144: ; preds = %139
%145 = load ptr, ptr %10, align 8
%146 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %145)
%147 = load ptr, ptr %10, align 8
%148 = call i32 @chdir(ptr noundef %147)
store i32 %148, ptr %17, align 4
%149 = load i32, ptr %17, align 4
%150 = icmp slt i32 %149, 0
br i1 %150, label %151, label %153
151: ; preds = %144
%152 = call i32 @perror(ptr noundef @.str.11)
br label %153
153: ; preds = %151, %144
br label %154
154: ; preds = %153, %142
%155 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
br label %506
156: ; preds = %135
%157 = load ptr, ptr %5, align 8
%158 = call i64 @strcmp(ptr noundef %157, ptr noundef @.str.13)
%159 = icmp eq i64 %158, 0
br i1 %159, label %160, label %183
160: ; preds = %156
%161 = load ptr, ptr %6, align 8
%162 = call i32 @strlen(ptr noundef %161)
%163 = add nsw i32 %162, 1
%164 = call i64 @calloc(i32 noundef %163, i32 noundef 1)
%165 = inttoptr i64 %164 to ptr
store ptr %165, ptr %18, align 8
%166 = load ptr, ptr %18, align 8
%167 = call ptr @strcat(ptr noundef %166, ptr noundef @.str.14)
store ptr %167, ptr %18, align 8
%168 = load ptr, ptr %18, align 8
%169 = load ptr, ptr %6, align 8
%170 = call ptr @strcat(ptr noundef %168, ptr noundef %169)
store ptr %170, ptr %18, align 8
%171 = load i32, ptr %4, align 4
%172 = load ptr, ptr %18, align 8
%173 = load ptr, ptr %18, align 8
%174 = call i32 @strlen(ptr noundef %173)
%175 = call i32 @write(i32 noundef %171, ptr noundef %172, i32 noundef %174)
%176 = load i32, ptr %4, align 4
%177 = getelementptr inbounds [2 x i8], ptr %19, i64 0, i64 0
%178 = call i32 @read(i32 noundef %176, ptr noundef %177, i32 noundef 2)
%179 = getelementptr inbounds [2 x i8], ptr %19, i64 0, i64 0
%180 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, ptr noundef %179)
%181 = load ptr, ptr %18, align 8
%182 = call i32 @free(ptr noundef %181)
br label %505
183: ; preds = %156
%184 = load ptr, ptr %5, align 8
%185 = call i64 @strcmp(ptr noundef %184, ptr noundef @.str.16)
%186 = icmp eq i64 %185, 0
br i1 %186, label %187, label %277
187: ; preds = %183
store ptr @.str.17, ptr %20, align 8
store i32 1, ptr %23, align 4
%188 = load i32, ptr %4, align 4
%189 = load ptr, ptr %20, align 8
%190 = call i32 @write(i32 noundef %188, ptr noundef %189, i32 noundef 2)
%191 = load i32, ptr %4, align 4
%192 = call i32 @createConnection(i32 noundef %191)
store i32 %192, ptr %25, align 4
%193 = load i32, ptr %25, align 4
%194 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, i32 noundef %193)
%195 = load ptr, ptr %6, align 8
%196 = call i32 @strlen(ptr noundef %195)
store i32 %196, ptr %26, align 4
%197 = load i32, ptr %26, align 4
%198 = add nsw i32 %197, 1
%199 = call i64 @calloc(i32 noundef %198, i32 noundef 1)
%200 = inttoptr i64 %199 to ptr
store ptr %200, ptr %27, align 8
%201 = load ptr, ptr %27, align 8
%202 = call ptr @strcat(ptr noundef %201, ptr noundef @.str.19)
store ptr %202, ptr %27, align 8
%203 = load ptr, ptr %27, align 8
%204 = load ptr, ptr %10, align 8
%205 = call ptr @strcat(ptr noundef %203, ptr noundef %204)
store ptr %205, ptr %27, align 8
%206 = load ptr, ptr %27, align 8
%207 = call ptr @strcat(ptr noundef %206, ptr noundef @.str.20)
store ptr %207, ptr %27, align 8
%208 = load i32, ptr %4, align 4
%209 = load ptr, ptr %27, align 8
%210 = load ptr, ptr %27, align 8
%211 = call i32 @strlen(ptr noundef %210)
%212 = call i32 @write(i32 noundef %208, ptr noundef %209, i32 noundef %211)
%213 = load ptr, ptr %10, align 8
%214 = call ptr @getFileName(ptr noundef %213)
store ptr %214, ptr %21, align 8
%215 = load i32, ptr %4, align 4
%216 = getelementptr inbounds [128 x i8], ptr %28, i64 0, i64 0
%217 = call i32 @read(i32 noundef %215, ptr noundef %216, i32 noundef 128)
%218 = getelementptr inbounds [128 x i8], ptr %28, i64 0, i64 0
%219 = load i8, ptr %218, align 16
%220 = sext i8 %219 to i32
%221 = icmp eq i32 %220, 65
br i1 %221, label %222, label %224
222: ; preds = %187
%223 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %224
224: ; preds = %222, %187
%225 = getelementptr inbounds [128 x i8], ptr %28, i64 0, i64 0
%226 = load i8, ptr %225, align 16
%227 = sext i8 %226 to i32
%228 = icmp eq i32 %227, 69
br i1 %228, label %229, label %236
229: ; preds = %224
%230 = getelementptr inbounds [128 x i8], ptr %28, i64 0, i64 1
%231 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, ptr noundef %230)
%232 = load i32, ptr %25, align 4
%233 = call i32 @close(i32 noundef %232)
%234 = load ptr, ptr %27, align 8
%235 = call i32 @free(ptr noundef %234)
br label %508
236: ; preds = %224
%237 = load ptr, ptr %21, align 8
%238 = load i32, ptr @O_RDWR, align 4
%239 = load i32, ptr @O_CREAT, align 4
%240 = or i32 %238, %239
%241 = load i32, ptr @S_IRUSR, align 4
%242 = load i32, ptr @S_IWUSR, align 4
%243 = or i32 %241, %242
%244 = call i32 (ptr, i32, ...) @open(ptr noundef %237, i32 noundef %240, i32 noundef %243)
store i32 %244, ptr %22, align 4
%245 = load i32, ptr %22, align 4
%246 = icmp sge i32 %245, 0
br i1 %246, label %247, label %264
247: ; preds = %236
%248 = load i32, ptr %23, align 4
%249 = icmp sgt i32 %248, 0
br i1 %249, label %.lr.ph7, label %.loopexit
.lr.ph7: ; preds = %247
br label %250
250: ; preds = %.lr.ph7, %256
%251 = load i32, ptr %25, align 4
%252 = call i32 @read(i32 noundef %251, ptr noundef %24, i32 noundef 1)
store i32 %252, ptr %23, align 4
%253 = load i32, ptr %23, align 4
%254 = icmp eq i32 %253, 0
br i1 %254, label %255, label %256
255: ; preds = %250
br label %261
256: ; preds = %250
%257 = load i32, ptr %22, align 4
%258 = call i32 @write(i32 noundef %257, ptr noundef %24, i32 noundef 1)
%259 = load i32, ptr %23, align 4
%260 = icmp sgt i32 %259, 0
br i1 %260, label %250, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %256
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %247
br label %261
261: ; preds = %.loopexit, %255
%262 = load i32, ptr %22, align 4
%263 = call i32 @close(i32 noundef %262)
br label %264
264: ; preds = %261, %236
%265 = load i32, ptr %22, align 4
%266 = load i32, ptr @ENOENT, align 4
%267 = icmp eq i32 %265, %266
br i1 %267, label %268, label %272
268: ; preds = %264
%269 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
%270 = load i32, ptr %22, align 4
%271 = call i32 @close(i32 noundef %270)
br label %272
272: ; preds = %268, %264
%273 = load i32, ptr %25, align 4
%274 = call i32 @close(i32 noundef %273)
%275 = load ptr, ptr %27, align 8
%276 = call i32 @free(ptr noundef %275)
br label %504
277: ; preds = %183
%278 = load ptr, ptr %5, align 8
%279 = call i64 @strcmp(ptr noundef %278, ptr noundef @.str.23)
%280 = icmp eq i64 %279, 0
br i1 %280, label %281, label %374
281: ; preds = %277
store ptr @.str.17, ptr %29, align 8
store i32 1, ptr %32, align 4
store i32 0, ptr %34, align 4
store i8 32, ptr %35, align 1
%282 = load i32, ptr %4, align 4
%283 = load ptr, ptr %29, align 8
%284 = call i32 @write(i32 noundef %282, ptr noundef %283, i32 noundef 2)
%285 = load i32, ptr %4, align 4
%286 = call i32 @createConnection(i32 noundef %285)
store i32 %286, ptr %36, align 4
%287 = load ptr, ptr %6, align 8
%288 = call i32 @strlen(ptr noundef %287)
store i32 %288, ptr %37, align 4
%289 = load i32, ptr %37, align 4
%290 = add nsw i32 %289, 1
%291 = call i64 @calloc(i32 noundef %290, i32 noundef 1)
%292 = inttoptr i64 %291 to ptr
store ptr %292, ptr %38, align 8
%293 = load ptr, ptr %38, align 8
%294 = call ptr @strcat(ptr noundef %293, ptr noundef @.str.19)
store ptr %294, ptr %38, align 8
%295 = load ptr, ptr %38, align 8
%296 = load ptr, ptr %10, align 8
%297 = call ptr @strcat(ptr noundef %295, ptr noundef %296)
store ptr %297, ptr %38, align 8
%298 = load ptr, ptr %38, align 8
%299 = call ptr @strcat(ptr noundef %298, ptr noundef @.str.20)
store ptr %299, ptr %38, align 8
%300 = load i32, ptr %4, align 4
%301 = load ptr, ptr %38, align 8
%302 = load ptr, ptr %38, align 8
%303 = call i32 @strlen(ptr noundef %302)
%304 = call i32 @write(i32 noundef %300, ptr noundef %301, i32 noundef %303)
%305 = load ptr, ptr %10, align 8
%306 = call ptr @getFileName(ptr noundef %305)
store ptr %306, ptr %30, align 8
%307 = load i32, ptr %4, align 4
%308 = getelementptr inbounds [128 x i8], ptr %39, i64 0, i64 0
%309 = call i32 @read(i32 noundef %307, ptr noundef %308, i32 noundef 128)
%310 = getelementptr inbounds [128 x i8], ptr %39, i64 0, i64 0
%311 = load i8, ptr %310, align 16
%312 = sext i8 %311 to i32
%313 = icmp eq i32 %312, 65
br i1 %313, label %314, label %316
314: ; preds = %281
%315 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %316
316: ; preds = %314, %281
%317 = getelementptr inbounds [128 x i8], ptr %39, i64 0, i64 0
%318 = load i8, ptr %317, align 16
%319 = sext i8 %318 to i32
%320 = icmp eq i32 %319, 69
br i1 %320, label %321, label %328
321: ; preds = %316
%322 = getelementptr inbounds [128 x i8], ptr %39, i64 0, i64 1
%323 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, ptr noundef %322)
%324 = load i32, ptr %36, align 4
%325 = call i32 @close(i32 noundef %324)
%326 = load ptr, ptr %38, align 8
%327 = call i32 @free(ptr noundef %326)
br label %328
328: ; preds = %321, %316
%329 = load i32, ptr %32, align 4
%330 = icmp sgt i32 %329, 0
br i1 %330, label %.lr.ph5, label %.loopexit1
.lr.ph5: ; preds = %328
br label %331
331: ; preds = %.lr.ph5, %363
%332 = load i32, ptr %36, align 4
%333 = call i32 @read(i32 noundef %332, ptr noundef %33, i32 noundef 1)
store i32 %333, ptr %32, align 4
%334 = load i8, ptr %33, align 1
%335 = sext i8 %334 to i32
%336 = load i8, ptr @EOF, align 1
%337 = sext i8 %336 to i32
%338 = icmp eq i32 %335, %337
br i1 %338, label %339, label %340
339: ; preds = %331
br label %366
340: ; preds = %331
%341 = load i8, ptr %33, align 1
%342 = sext i8 %341 to i32
%343 = icmp eq i32 %342, 10
br i1 %343, label %344, label %347
344: ; preds = %340
%345 = load i32, ptr %34, align 4
%346 = add nsw i32 %345, 1
store i32 %346, ptr %34, align 4
br label %347
347: ; preds = %344, %340
%348 = load i8, ptr %33, align 1
%349 = sext i8 %348 to i32
%350 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, i32 noundef %349)
%351 = load i32, ptr %34, align 4
%352 = icmp eq i32 %351, 19
br i1 %352, label %353, label %363
353: ; preds = %347
%354 = load i8, ptr %35, align 1
%355 = sext i8 %354 to i32
%356 = icmp ne i32 %355, 10
br i1 %356, label %.lr.ph3, label %362
.lr.ph3: ; preds = %353
br label %357
357: ; preds = %.lr.ph3, %357
%358 = call i32 @read(i32 noundef 0, ptr noundef %35, i32 noundef 1)
%359 = load i8, ptr %35, align 1
%360 = sext i8 %359 to i32
%361 = icmp ne i32 %360, 10
br i1 %361, label %357, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %357
br label %362
362: ; preds = %._crit_edge, %353
store i8 32, ptr %35, align 1
store i32 0, ptr %34, align 4
br label %363
363: ; preds = %362, %347
%364 = load i32, ptr %32, align 4
%365 = icmp sgt i32 %364, 0
br i1 %365, label %331, label %..loopexit1_crit_edge, !llvm.loop !9
..loopexit1_crit_edge: ; preds = %363
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %328
br label %366
366: ; preds = %.loopexit1, %339
%367 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
%368 = load i32, ptr %31, align 4
%369 = load i32, ptr @ENOENT, align 4
%370 = icmp eq i32 %368, %369
br i1 %370, label %371, label %373
371: ; preds = %366
%372 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
br label %373
373: ; preds = %371, %366
br label %503
374: ; preds = %277
%375 = load ptr, ptr %5, align 8
%376 = call i64 @strcmp(ptr noundef %375, ptr noundef @.str.26)
%377 = icmp eq i64 %376, 0
br i1 %377, label %378, label %463
378: ; preds = %374
store ptr @.str.17, ptr %40, align 8
store i32 1, ptr %42, align 4
%379 = load i32, ptr %4, align 4
%380 = load ptr, ptr %40, align 8
%381 = call i32 @write(i32 noundef %379, ptr noundef %380, i32 noundef 2)
%382 = load ptr, ptr %6, align 8
%383 = call i32 @strlen(ptr noundef %382)
store i32 %383, ptr %44, align 4
%384 = load i32, ptr %44, align 4
%385 = add nsw i32 %384, 1
%386 = call i64 @calloc(i32 noundef %385, i32 noundef 1)
%387 = inttoptr i64 %386 to ptr
store ptr %387, ptr %45, align 8
%388 = load i32, ptr %4, align 4
%389 = call i32 @createConnection(i32 noundef %388)
store i32 %389, ptr %46, align 4
%390 = load ptr, ptr %45, align 8
%391 = call ptr @strcat(ptr noundef %390, ptr noundef @.str.27)
store ptr %391, ptr %45, align 8
%392 = load ptr, ptr %45, align 8
%393 = load ptr, ptr %10, align 8
%394 = call ptr @strcat(ptr noundef %392, ptr noundef %393)
store ptr %394, ptr %45, align 8
%395 = load ptr, ptr %45, align 8
%396 = call ptr @strcat(ptr noundef %395, ptr noundef @.str.20)
store ptr %396, ptr %45, align 8
%397 = load i32, ptr %4, align 4
%398 = load ptr, ptr %45, align 8
%399 = load ptr, ptr %45, align 8
%400 = call i32 @strlen(ptr noundef %399)
%401 = call i32 @write(i32 noundef %397, ptr noundef %398, i32 noundef %400)
%402 = load ptr, ptr %10, align 8
%403 = load i32, ptr @O_RDONLY, align 4
%404 = call i32 (ptr, i32, ...) @open(ptr noundef %402, i32 noundef %403)
store i32 %404, ptr %41, align 4
%405 = load i32, ptr %4, align 4
%406 = getelementptr inbounds [128 x i8], ptr %47, i64 0, i64 0
%407 = call i32 @read(i32 noundef %405, ptr noundef %406, i32 noundef 128)
%408 = getelementptr inbounds [128 x i8], ptr %47, i64 0, i64 0
%409 = load i8, ptr %408, align 16
%410 = sext i8 %409 to i32
%411 = icmp eq i32 %410, 65
br i1 %411, label %412, label %414
412: ; preds = %378
%413 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %414
414: ; preds = %412, %378
%415 = getelementptr inbounds [128 x i8], ptr %47, i64 0, i64 0
%416 = load i8, ptr %415, align 16
%417 = sext i8 %416 to i32
%418 = icmp eq i32 %417, 69
br i1 %418, label %419, label %426
419: ; preds = %414
%420 = getelementptr inbounds [128 x i8], ptr %47, i64 0, i64 1
%421 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, ptr noundef %420)
%422 = load i32, ptr %46, align 4
%423 = call i32 @close(i32 noundef %422)
%424 = load ptr, ptr %45, align 8
%425 = call i32 @free(ptr noundef %424)
br label %426
426: ; preds = %419, %414
%427 = load i32, ptr %41, align 4
%428 = icmp sge i32 %427, 0
br i1 %428, label %429, label %448
429: ; preds = %426
%430 = load i32, ptr %42, align 4
%431 = icmp sgt i32 %430, 0
br i1 %431, label %.lr.ph, label %.loopexit2
.lr.ph: ; preds = %429
br label %432
432: ; preds = %.lr.ph, %438
%433 = load i32, ptr %41, align 4
%434 = call i32 @read(i32 noundef %433, ptr noundef %43, i32 noundef 1)
store i32 %434, ptr %42, align 4
%435 = load i32, ptr %42, align 4
%436 = icmp eq i32 %435, 0
br i1 %436, label %437, label %438
437: ; preds = %432
br label %443
438: ; preds = %432
%439 = load i32, ptr %46, align 4
%440 = call i32 @write(i32 noundef %439, ptr noundef %43, i32 noundef 1)
%441 = load i32, ptr %42, align 4
%442 = icmp sgt i32 %441, 0
br i1 %442, label %432, label %..loopexit2_crit_edge, !llvm.loop !10
..loopexit2_crit_edge: ; preds = %438
br label %.loopexit2
.loopexit2: ; preds = %..loopexit2_crit_edge, %429
br label %443
443: ; preds = %.loopexit2, %437
%444 = load i32, ptr %41, align 4
%445 = call i32 @close(i32 noundef %444)
%446 = load i32, ptr %46, align 4
%447 = call i32 @close(i32 noundef %446)
br label %448
448: ; preds = %443, %426
%449 = load i32, ptr %41, align 4
%450 = load i32, ptr @ENOENT, align 4
%451 = icmp eq i32 %449, %450
br i1 %451, label %452, label %454
452: ; preds = %448
%453 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
br label %454
454: ; preds = %452, %448
%455 = load i32, ptr %41, align 4
%456 = icmp slt i32 %455, 0
br i1 %456, label %457, label %460
457: ; preds = %454
%458 = call i32 (ptr, ...) @printf(ptr noundef @.str.28)
%459 = call i32 @exit(i32 noundef 1) #3
unreachable
460: ; preds = %454
%461 = load ptr, ptr %45, align 8
%462 = call i32 @free(ptr noundef %461)
br label %502
463: ; preds = %374
%464 = load ptr, ptr %9, align 8
%465 = call i64 @strcmp(ptr noundef %464, ptr noundef @.str.29)
%466 = icmp eq i64 %465, 0
br i1 %466, label %467, label %499
467: ; preds = %463
store ptr @.str.17, ptr %48, align 8
%468 = load i32, ptr %4, align 4
%469 = load ptr, ptr %48, align 8
%470 = call i32 @write(i32 noundef %468, ptr noundef %469, i32 noundef 2)
%471 = load i32, ptr %4, align 4
%472 = call i32 @createConnection(i32 noundef %471)
store i32 %472, ptr %49, align 4
store ptr @.str.30, ptr %50, align 8
%473 = load i32, ptr %4, align 4
%474 = load ptr, ptr %50, align 8
%475 = load ptr, ptr %50, align 8
%476 = call i32 @strlen(ptr noundef %475)
%477 = call i32 @write(i32 noundef %473, ptr noundef %474, i32 noundef %476)
%478 = load i32, ptr %4, align 4
%479 = getelementptr inbounds [100 x i8], ptr %51, i64 0, i64 0
%480 = call i32 @read(i32 noundef %478, ptr noundef %479, i32 noundef 10)
%481 = getelementptr inbounds [100 x i8], ptr %51, i64 0, i64 0
%482 = load i8, ptr %481, align 16
%483 = sext i8 %482 to i32
%484 = icmp eq i32 %483, 65
br i1 %484, label %485, label %487
485: ; preds = %467
%486 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %487
487: ; preds = %485, %467
%488 = getelementptr inbounds [100 x i8], ptr %51, i64 0, i64 0
%489 = load i8, ptr %488, align 16
%490 = sext i8 %489 to i32
%491 = icmp eq i32 %490, 69
br i1 %491, label %492, label %494
492: ; preds = %487
%493 = call i32 (ptr, ...) @printf(ptr noundef @.str.31)
br label %494
494: ; preds = %492, %487
%495 = load i32, ptr %49, align 4
%496 = call i32 @printBuffer(i32 noundef %495)
%497 = load i32, ptr %49, align 4
%498 = call i32 @close(i32 noundef %497)
br label %501
499: ; preds = %463
%500 = call i32 (ptr, ...) @printf(ptr noundef @.str.32)
br label %501
501: ; preds = %499, %494
br label %502
502: ; preds = %501, %460
br label %503
503: ; preds = %502, %373
br label %504
504: ; preds = %503, %272
br label %505
505: ; preds = %504, %160
br label %506
506: ; preds = %505, %154
br label %507
507: ; preds = %506, %134
br label %508
508: ; preds = %507, %229
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare ptr @removeNL(ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @pipe(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @fork(...) #1
declare i32 @close(i32 noundef) #1
declare i32 @dup2(i32 noundef, i32 noundef) #1
declare i32 @execlp(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @wait(ptr noundef) #1
declare i32 @printBuffer(i32 noundef) #1
declare i32 @chdir(ptr noundef) #1
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare ptr @strcat(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @createConnection(i32 noundef) #1
declare ptr @getFileName(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpz07x60rp.c'
source_filename = "/tmp/tmpz07x60rp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0AFN: %04d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Mark_Frame_Number(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @fprintf(ptr noundef %5, ptr noundef @.str, i32 noundef %6)
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz07x60rp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0AFN: %04d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Mark_Frame_Number(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @fprintf(ptr noundef %5, ptr noundef @.str, i32 noundef %6)
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_iisbi5d.c'
source_filename = "/tmp/tmp_iisbi5d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"tools/.chk\00", align 1
@.str.1 = private unnamed_addr constant [51 x i8] c"gcc tools/chktime.c -o tools/chktime 2>tools/.chk \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @checktime() #0 {
%1 = alloca i32, align 4
%2 = call i32 @unlink(ptr noundef @.str)
%3 = call i32 @system(ptr noundef @.str.1)
%4 = call i32 (...) @checkcmp()
ret i32 %4
}
declare i32 @unlink(ptr noundef) #1
declare i32 @system(ptr noundef) #1
declare i32 @checkcmp(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!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_iisbi5d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"tools/.chk\00", align 1
@.str.1 = private unnamed_addr constant [51 x i8] c"gcc tools/chktime.c -o tools/chktime 2>tools/.chk \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @checktime() #0 {
%1 = alloca i32, align 4
%2 = call i32 @unlink(ptr noundef @.str)
%3 = call i32 @system(ptr noundef @.str.1)
%4 = call i32 (...) @checkcmp()
ret i32 %4
}
declare i32 @unlink(ptr noundef) #1
declare i32 @system(ptr noundef) #1
declare i32 @checkcmp(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1kq3xknz.c'
source_filename = "/tmp/tmp1kq3xknz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ui_move_pointer(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1kq3xknz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ui_move_pointer(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpf0be61op.c'
source_filename = "/tmp/tmpf0be61op.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Usage : irc [OPTIONS]\0A\00", align 1
@.str.1 = private unnamed_addr constant [52 x i8] c"./irc -s 38.229.70.22 -p 6667 -n nick -c '#frogs'\0A \00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"\09-h\09This menu\0A\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"\09-s\09Server\0A\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"\09-p\09Port\0A\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"\09-n\09Name\0A\00", align 1
@.str.6 = private unnamed_addr constant [13 x i8] c"\09-c\09Channel\0A\00", align 1
@.str.7 = private unnamed_addr constant [24 x i8] c"\09/join\09 Join a channel\0A\00", align 1
@.str.8 = private unnamed_addr constant [26 x i8] c"\09/exit\09 Kill the program\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @irc_help() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
%7 = call i32 @printf(ptr noundef @.str.6)
%8 = call i32 @printf(ptr noundef @.str.7)
%9 = call i32 @printf(ptr noundef @.str.8)
%10 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf0be61op.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Usage : irc [OPTIONS]\0A\00", align 1
@.str.1 = private unnamed_addr constant [52 x i8] c"./irc -s 38.229.70.22 -p 6667 -n nick -c '#frogs'\0A \00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"\09-h\09This menu\0A\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"\09-s\09Server\0A\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"\09-p\09Port\0A\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"\09-n\09Name\0A\00", align 1
@.str.6 = private unnamed_addr constant [13 x i8] c"\09-c\09Channel\0A\00", align 1
@.str.7 = private unnamed_addr constant [24 x i8] c"\09/join\09 Join a channel\0A\00", align 1
@.str.8 = private unnamed_addr constant [26 x i8] c"\09/exit\09 Kill the program\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @irc_help() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
%7 = call i32 @printf(ptr noundef @.str.6)
%8 = call i32 @printf(ptr noundef @.str.7)
%9 = call i32 @printf(ptr noundef @.str.8)
%10 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_51gb2fw.c'
source_filename = "/tmp/tmp_51gb2fw.c"
target datalayout = "e-m:e-p270: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 [34 x i8] c"usage: strrev <infile> <outfile>\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@S_IRWXU = 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 [60 x i8], align 16
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = 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
%17 = load i32, ptr %4, align 4
%18 = icmp ne i32 %17, 3
br i1 %18, label %19, label %23
19: ; preds = %2
%20 = load i32, ptr @stderr, align 4
%21 = call i32 @fprintf(i32 noundef %20, ptr noundef @.str)
%22 = call i32 @exit(i32 noundef 1) #3
unreachable
23: ; preds = %2
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 1
%26 = load ptr, ptr %25, align 8
store ptr %26, ptr %8, align 8
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 2
%29 = load ptr, ptr %28, align 8
store ptr %29, ptr %9, align 8
%30 = load ptr, ptr %8, align 8
%31 = call ptr @fopen(ptr noundef %30, ptr noundef @.str.1)
store ptr %31, ptr %11, align 8
%32 = load ptr, ptr %9, align 8
%33 = load i32, ptr @O_WRONLY, align 4
%34 = load i32, ptr @O_CREAT, align 4
%35 = or i32 %33, %34
%36 = load i32, ptr @O_TRUNC, align 4
%37 = or i32 %35, %36
%38 = load i32, ptr @S_IRWXU, align 4
%39 = call i32 @open(ptr noundef %32, i32 noundef %37, i32 noundef %38)
store i32 %39, ptr %12, align 4
%40 = load ptr, ptr %11, align 8
%41 = icmp ne ptr %40, null
%42 = zext i1 %41 to i32
%43 = call i32 @assert(i32 noundef %42)
%44 = load i32, ptr %12, align 4
%45 = icmp sgt i32 %44, -1
%46 = zext i1 %45 to i32
%47 = call i32 @assert(i32 noundef %46)
%48 = getelementptr inbounds [60 x i8], ptr %6, i64 0, i64 0
%49 = load ptr, ptr %11, align 8
%50 = call ptr @fgets(ptr noundef %48, i32 noundef 60, ptr noundef %49)
store ptr %50, ptr %7, align 8
br label %51
51: ; preds = %95, %23
%52 = load ptr, ptr %7, align 8
%53 = icmp ne ptr %52, null
br i1 %53, label %54, label %106
54: ; preds = %51
%55 = load ptr, ptr %7, align 8
%56 = getelementptr inbounds i8, ptr %55, i64 0
%57 = load i8, ptr %56, align 1
%58 = sext i8 %57 to i32
%59 = icmp eq i32 %58, 45
br i1 %59, label %60, label %92
60: ; preds = %54
store i32 0, ptr %14, align 4
%61 = load ptr, ptr %7, align 8
%62 = call i32 @strlen(ptr noundef %61)
%63 = sext i32 %62 to i64
%64 = sub i64 %63, 2
%65 = trunc i64 %64 to i32
%66 = call i64 @malloc(i32 noundef %65)
%67 = inttoptr i64 %66 to ptr
store ptr %67, ptr %15, align 8
store i32 2, ptr %13, align 4
br label %68
68: ; preds = %85, %60
%69 = load i32, ptr %13, align 4
%70 = load ptr, ptr %7, align 8
%71 = call i32 @strlen(ptr noundef %70)
%72 = icmp slt i32 %69, %71
br i1 %72, label %73, label %88
73: ; preds = %68
%74 = load ptr, ptr %7, align 8
%75 = load i32, ptr %13, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8, ptr %74, i64 %76
%78 = load i8, ptr %77, align 1
%79 = load ptr, ptr %15, align 8
%80 = load i32, ptr %14, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i8, ptr %79, i64 %81
store i8 %78, ptr %82, align 1
%83 = load i32, ptr %14, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %14, align 4
br label %85
85: ; preds = %73
%86 = load i32, ptr %13, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %13, align 4
br label %68, !llvm.loop !6
88: ; preds = %68
%89 = load ptr, ptr %15, align 8
%90 = call i32 @atoi(ptr noundef %89)
%91 = mul nsw i32 %90, -1
store i32 %91, ptr %10, align 4
br label %95
92: ; preds = %54
%93 = load ptr, ptr %7, align 8
%94 = call i32 @atoi(ptr noundef %93)
store i32 %94, ptr %10, align 4
br label %95
95: ; preds = %92, %88
%96 = load i32, ptr %12, align 4
%97 = call i32 @write(i32 noundef %96, ptr noundef %10, i32 noundef 4)
store i32 %97, ptr %16, align 4
%98 = load i32, ptr %16, align 4
%99 = sext i32 %98 to i64
%100 = icmp eq i64 %99, 4
%101 = zext i1 %100 to i32
%102 = call i32 @assert(i32 noundef %101)
%103 = getelementptr inbounds [60 x i8], ptr %6, i64 0, i64 0
%104 = load ptr, ptr %11, align 8
%105 = call ptr @fgets(ptr noundef %103, i32 noundef 60, ptr noundef %104)
store ptr %105, ptr %7, align 8
br label %51, !llvm.loop !8
106: ; preds = %51
%107 = load i32, ptr %12, align 4
%108 = call i32 @close(i32 noundef %107)
%109 = load ptr, ptr %11, align 8
%110 = call i32 @fclose(ptr noundef %109)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @assert(i32 noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmp_51gb2fw.c"
target datalayout = "e-m:e-p270: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 [34 x i8] c"usage: strrev <infile> <outfile>\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@S_IRWXU = 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 [60 x i8], align 16
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = 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
%17 = load i32, ptr %4, align 4
%18 = icmp ne i32 %17, 3
br i1 %18, label %19, label %23
19: ; preds = %2
%20 = load i32, ptr @stderr, align 4
%21 = call i32 @fprintf(i32 noundef %20, ptr noundef @.str)
%22 = call i32 @exit(i32 noundef 1) #3
unreachable
23: ; preds = %2
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 1
%26 = load ptr, ptr %25, align 8
store ptr %26, ptr %8, align 8
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 2
%29 = load ptr, ptr %28, align 8
store ptr %29, ptr %9, align 8
%30 = load ptr, ptr %8, align 8
%31 = call ptr @fopen(ptr noundef %30, ptr noundef @.str.1)
store ptr %31, ptr %11, align 8
%32 = load ptr, ptr %9, align 8
%33 = load i32, ptr @O_WRONLY, align 4
%34 = load i32, ptr @O_CREAT, align 4
%35 = or i32 %33, %34
%36 = load i32, ptr @O_TRUNC, align 4
%37 = or i32 %35, %36
%38 = load i32, ptr @S_IRWXU, align 4
%39 = call i32 @open(ptr noundef %32, i32 noundef %37, i32 noundef %38)
store i32 %39, ptr %12, align 4
%40 = load ptr, ptr %11, align 8
%41 = icmp ne ptr %40, null
%42 = zext i1 %41 to i32
%43 = call i32 @assert(i32 noundef %42)
%44 = load i32, ptr %12, align 4
%45 = icmp sgt i32 %44, -1
%46 = zext i1 %45 to i32
%47 = call i32 @assert(i32 noundef %46)
%48 = getelementptr inbounds [60 x i8], ptr %6, i64 0, i64 0
%49 = load ptr, ptr %11, align 8
%50 = call ptr @fgets(ptr noundef %48, i32 noundef 60, ptr noundef %49)
store ptr %50, ptr %7, align 8
%51 = load ptr, ptr %7, align 8
%52 = icmp ne ptr %51, null
br i1 %52, label %.lr.ph2, label %110
.lr.ph2: ; preds = %23
br label %53
53: ; preds = %.lr.ph2, %97
%54 = load ptr, ptr %7, align 8
%55 = getelementptr inbounds i8, ptr %54, i64 0
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = icmp eq i32 %57, 45
br i1 %58, label %59, label %94
59: ; preds = %53
store i32 0, ptr %14, align 4
%60 = load ptr, ptr %7, align 8
%61 = call i32 @strlen(ptr noundef %60)
%62 = sext i32 %61 to i64
%63 = sub i64 %62, 2
%64 = trunc i64 %63 to i32
%65 = call i64 @malloc(i32 noundef %64)
%66 = inttoptr i64 %65 to ptr
store ptr %66, ptr %15, align 8
store i32 2, ptr %13, align 4
%67 = load i32, ptr %13, align 4
%68 = load ptr, ptr %7, align 8
%69 = call i32 @strlen(ptr noundef %68)
%70 = icmp slt i32 %67, %69
br i1 %70, label %.lr.ph, label %90
.lr.ph: ; preds = %59
br label %71
71: ; preds = %.lr.ph, %83
%72 = load ptr, ptr %7, align 8
%73 = load i32, ptr %13, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i8, ptr %72, i64 %74
%76 = load i8, ptr %75, align 1
%77 = load ptr, ptr %15, align 8
%78 = load i32, ptr %14, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i8, ptr %77, i64 %79
store i8 %76, ptr %80, align 1
%81 = load i32, ptr %14, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %14, align 4
br label %83
83: ; preds = %71
%84 = load i32, ptr %13, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %13, align 4
%86 = load i32, ptr %13, align 4
%87 = load ptr, ptr %7, align 8
%88 = call i32 @strlen(ptr noundef %87)
%89 = icmp slt i32 %86, %88
br i1 %89, label %71, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %83
br label %90
90: ; preds = %._crit_edge, %59
%91 = load ptr, ptr %15, align 8
%92 = call i32 @atoi(ptr noundef %91)
%93 = mul nsw i32 %92, -1
store i32 %93, ptr %10, align 4
br label %97
94: ; preds = %53
%95 = load ptr, ptr %7, align 8
%96 = call i32 @atoi(ptr noundef %95)
store i32 %96, ptr %10, align 4
br label %97
97: ; preds = %94, %90
%98 = load i32, ptr %12, align 4
%99 = call i32 @write(i32 noundef %98, ptr noundef %10, i32 noundef 4)
store i32 %99, ptr %16, align 4
%100 = load i32, ptr %16, align 4
%101 = sext i32 %100 to i64
%102 = icmp eq i64 %101, 4
%103 = zext i1 %102 to i32
%104 = call i32 @assert(i32 noundef %103)
%105 = getelementptr inbounds [60 x i8], ptr %6, i64 0, i64 0
%106 = load ptr, ptr %11, align 8
%107 = call ptr @fgets(ptr noundef %105, i32 noundef 60, ptr noundef %106)
store ptr %107, ptr %7, align 8
%108 = load ptr, ptr %7, align 8
%109 = icmp ne ptr %108, null
br i1 %109, label %53, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %97
br label %110
110: ; preds = %._crit_edge3, %23
%111 = load i32, ptr %12, align 4
%112 = call i32 @close(i32 noundef %111)
%113 = load ptr, ptr %11, align 8
%114 = call i32 @fclose(ptr noundef %113)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @assert(i32 noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpqshygeos.c'
source_filename = "/tmp/tmpqshygeos.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Data file created\0A\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"problem during asin data file creation\0A\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"Result file created\0A\00", align 1
@.str.3 = private unnamed_addr constant [42 x i8] c"problem during asin result file creation\0A\00", align 1
@.str.4 = private unnamed_addr constant [28 x i8] c"Bad arglist code for: '%s'\0A\00", align 1
@.str.5 = private unnamed_addr constant [39 x i8] c"problem during asindata file creation\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 = load i32, ptr %4, align 4
%7 = icmp sgt i32 %6, 1
br i1 %7, label %8, label %35
8: ; preds = %2
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 1
%11 = load ptr, ptr %10, align 8
%12 = call i32 @atoi(ptr noundef %11)
switch i32 %12, label %29 [
i32 1, label %13
i32 2, label %21
]
13: ; preds = %8
%14 = call i64 (...) @create_Data_file()
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %20
18: ; preds = %13
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %20
20: ; preds = %18, %16
br label %34
21: ; preds = %8
%22 = call i64 (...) @create_Result_file()
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %28
26: ; preds = %21
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %28
28: ; preds = %26, %24
br label %34
29: ; preds = %8
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 0
%32 = load ptr, ptr %31, align 8
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %32)
store i32 -1, ptr %3, align 4
br label %47
34: ; preds = %28, %20
br label %46
35: ; preds = %2
%36 = call i64 (...) @create_Data_file()
%37 = icmp ne i64 %36, 0
br i1 %37, label %38, label %40
38: ; preds = %35
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %40
40: ; preds = %38, %35
%41 = call i64 (...) @create_Result_file()
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %40
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %45
45: ; preds = %43, %40
br label %46
46: ; preds = %45, %34
store i32 0, ptr %3, align 4
br label %47
47: ; preds = %46, %29
%48 = load i32, ptr %3, align 4
ret i32 %48
}
declare i32 @atoi(ptr noundef) #1
declare i64 @create_Data_file(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @create_Result_file(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqshygeos.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Data file created\0A\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"problem during asin data file creation\0A\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"Result file created\0A\00", align 1
@.str.3 = private unnamed_addr constant [42 x i8] c"problem during asin result file creation\0A\00", align 1
@.str.4 = private unnamed_addr constant [28 x i8] c"Bad arglist code for: '%s'\0A\00", align 1
@.str.5 = private unnamed_addr constant [39 x i8] c"problem during asindata file creation\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 = load i32, ptr %4, align 4
%7 = icmp sgt i32 %6, 1
br i1 %7, label %8, label %35
8: ; preds = %2
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 1
%11 = load ptr, ptr %10, align 8
%12 = call i32 @atoi(ptr noundef %11)
switch i32 %12, label %29 [
i32 1, label %13
i32 2, label %21
]
13: ; preds = %8
%14 = call i64 (...) @create_Data_file()
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %20
18: ; preds = %13
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %20
20: ; preds = %18, %16
br label %34
21: ; preds = %8
%22 = call i64 (...) @create_Result_file()
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %28
26: ; preds = %21
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %28
28: ; preds = %26, %24
br label %34
29: ; preds = %8
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 0
%32 = load ptr, ptr %31, align 8
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %32)
store i32 -1, ptr %3, align 4
br label %47
34: ; preds = %28, %20
br label %46
35: ; preds = %2
%36 = call i64 (...) @create_Data_file()
%37 = icmp ne i64 %36, 0
br i1 %37, label %38, label %40
38: ; preds = %35
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %40
40: ; preds = %38, %35
%41 = call i64 (...) @create_Result_file()
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %40
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %45
45: ; preds = %43, %40
br label %46
46: ; preds = %45, %34
store i32 0, ptr %3, align 4
br label %47
47: ; preds = %46, %29
%48 = load i32, ptr %3, align 4
ret i32 %48
}
declare i32 @atoi(ptr noundef) #1
declare i64 @create_Data_file(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @create_Result_file(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxigz64po.c'
source_filename = "/tmp/tmpxigz64po.c"
target datalayout = "e-m:e-p270: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/tmpxigz64po.c"
target datalayout = "e-m:e-p270: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/tmpqh_rfz26.c'
source_filename = "/tmp/tmpqh_rfz26.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fill_rect(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i8 noundef signext %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%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
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i8 %4, ptr %10, align 1
%13 = load i32, ptr %8, align 4
%14 = icmp slt i32 %13, 1
br i1 %14, label %18, label %15
15: ; preds = %5
%16 = load i32, ptr %9, align 4
%17 = icmp slt i32 %16, 1
br i1 %17, label %18, label %19
18: ; preds = %15, %5
br label %41
19: ; preds = %15
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr %8, align 4
%22 = add nsw i32 %20, %21
%23 = sub nsw i32 %22, 1
store i32 %23, ptr %11, align 4
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %9, align 4
%26 = add nsw i32 %24, %25
store i32 %26, ptr %12, align 4
br label %27
27: ; preds = %38, %19
%28 = load i32, ptr %7, align 4
%29 = load i32, ptr %12, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %31, label %41
31: ; preds = %27
%32 = load i32, ptr %6, align 4
%33 = load i32, ptr %7, align 4
%34 = load i32, ptr %11, align 4
%35 = load i32, ptr %7, align 4
%36 = load i8, ptr %10, align 1
%37 = call i32 @draw_line(i32 noundef %32, i32 noundef %33, i32 noundef %34, i32 noundef %35, i8 noundef signext %36)
br label %38
38: ; preds = %31
%39 = load i32, ptr %7, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %7, align 4
br label %27, !llvm.loop !6
41: ; preds = %18, %27
ret void
}
declare i32 @draw_line(i32 noundef, i32 noundef, i32 noundef, i32 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/tmpqh_rfz26.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fill_rect(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i8 noundef signext %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%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
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i8 %4, ptr %10, align 1
%13 = load i32, ptr %8, align 4
%14 = icmp slt i32 %13, 1
br i1 %14, label %18, label %15
15: ; preds = %5
%16 = load i32, ptr %9, align 4
%17 = icmp slt i32 %16, 1
br i1 %17, label %18, label %19
18: ; preds = %15, %5
br label %43
19: ; preds = %15
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr %8, align 4
%22 = add nsw i32 %20, %21
%23 = sub nsw i32 %22, 1
store i32 %23, ptr %11, align 4
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %9, align 4
%26 = add nsw i32 %24, %25
store i32 %26, ptr %12, align 4
%27 = load i32, ptr %7, align 4
%28 = load i32, ptr %12, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %19
br label %30
30: ; preds = %.lr.ph, %37
%31 = load i32, ptr %6, align 4
%32 = load i32, ptr %7, align 4
%33 = load i32, ptr %11, align 4
%34 = load i32, ptr %7, align 4
%35 = load i8, ptr %10, align 1
%36 = call i32 @draw_line(i32 noundef %31, i32 noundef %32, i32 noundef %33, i32 noundef %34, i8 noundef signext %35)
br label %37
37: ; preds = %30
%38 = load i32, ptr %7, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %7, align 4
%40 = load i32, ptr %7, align 4
%41 = load i32, ptr %12, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %30, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %37
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %19
br label %43
43: ; preds = %.loopexit, %18
ret void
}
declare i32 @draw_line(i32 noundef, i32 noundef, i32 noundef, i32 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/tmpteb5a4ar.c'
source_filename = "/tmp/tmpteb5a4ar.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp slt i32 %6, 2
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @exit(i32 noundef 1) #3
unreachable
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 1
%13 = load ptr, ptr %12, align 8
%14 = call i32 @lookup_host(ptr noundef %13)
ret i32 %14
}
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #1
declare i32 @lookup_host(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 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpteb5a4ar.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp slt i32 %6, 2
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @exit(i32 noundef 1) #3
unreachable
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 1
%13 = load ptr, ptr %12, align 8
%14 = call i32 @lookup_host(ptr noundef %13)
ret i32 %14
}
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #1
declare i32 @lookup_host(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 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsfglrbqg.c'
source_filename = "/tmp/tmpsfglrbqg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [160 x i8], align 16
store i32 0, ptr %1, align 4
%6 = getelementptr inbounds [160 x i8], ptr %5, i64 0, i64 0
%7 = load i32, ptr @stdin, align 4
%8 = call i32 @fgets(ptr noundef %6, i32 noundef 160, i32 noundef %7)
%9 = getelementptr inbounds [160 x i8], ptr %5, i64 0, i64 0
%10 = call i32 @strlen(ptr noundef %9)
store i32 %10, ptr %4, align 4
store i32 0, ptr %3, align 4
br label %11
11: ; preds = %103, %0
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %106
15: ; preds = %11
%16 = load i32, ptr %3, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [160 x i8], ptr %5, i64 0, i64 %17
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
switch i32 %20, label %102 [
i32 97, label %21
i32 100, label %24
i32 103, label %27
i32 106, label %30
i32 109, label %33
i32 112, label %36
i32 116, label %39
i32 119, label %42
i32 32, label %45
i32 98, label %48
i32 101, label %51
i32 104, label %54
i32 107, label %57
i32 110, label %60
i32 113, label %63
i32 117, label %66
i32 120, label %69
i32 99, label %72
i32 102, label %75
i32 105, label %78
i32 108, label %81
i32 111, label %84
i32 114, label %87
i32 118, label %90
i32 121, label %93
i32 115, label %96
i32 122, label %99
]
21: ; preds = %15
%22 = load i32, ptr %2, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %2, align 4
br label %102
24: ; preds = %15
%25 = load i32, ptr %2, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %2, align 4
br label %102
27: ; preds = %15
%28 = load i32, ptr %2, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %2, align 4
br label %102
30: ; preds = %15
%31 = load i32, ptr %2, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %2, align 4
br label %102
33: ; preds = %15
%34 = load i32, ptr %2, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %2, align 4
br label %102
36: ; preds = %15
%37 = load i32, ptr %2, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %2, align 4
br label %102
39: ; preds = %15
%40 = load i32, ptr %2, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %2, align 4
br label %102
42: ; preds = %15
%43 = load i32, ptr %2, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %2, align 4
br label %102
45: ; preds = %15
%46 = load i32, ptr %2, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %2, align 4
br label %102
48: ; preds = %15
%49 = load i32, ptr %2, align 4
%50 = add nsw i32 %49, 2
store i32 %50, ptr %2, align 4
br label %102
51: ; preds = %15
%52 = load i32, ptr %2, align 4
%53 = add nsw i32 %52, 2
store i32 %53, ptr %2, align 4
br label %102
54: ; preds = %15
%55 = load i32, ptr %2, align 4
%56 = add nsw i32 %55, 2
store i32 %56, ptr %2, align 4
br label %102
57: ; preds = %15
%58 = load i32, ptr %2, align 4
%59 = add nsw i32 %58, 2
store i32 %59, ptr %2, align 4
br label %102
60: ; preds = %15
%61 = load i32, ptr %2, align 4
%62 = add nsw i32 %61, 2
store i32 %62, ptr %2, align 4
br label %102
63: ; preds = %15
%64 = load i32, ptr %2, align 4
%65 = add nsw i32 %64, 2
store i32 %65, ptr %2, align 4
br label %102
66: ; preds = %15
%67 = load i32, ptr %2, align 4
%68 = add nsw i32 %67, 2
store i32 %68, ptr %2, align 4
br label %102
69: ; preds = %15
%70 = load i32, ptr %2, align 4
%71 = add nsw i32 %70, 2
store i32 %71, ptr %2, align 4
br label %102
72: ; preds = %15
%73 = load i32, ptr %2, align 4
%74 = add nsw i32 %73, 3
store i32 %74, ptr %2, align 4
br label %102
75: ; preds = %15
%76 = load i32, ptr %2, align 4
%77 = add nsw i32 %76, 3
store i32 %77, ptr %2, align 4
br label %102
78: ; preds = %15
%79 = load i32, ptr %2, align 4
%80 = add nsw i32 %79, 3
store i32 %80, ptr %2, align 4
br label %102
81: ; preds = %15
%82 = load i32, ptr %2, align 4
%83 = add nsw i32 %82, 3
store i32 %83, ptr %2, align 4
br label %102
84: ; preds = %15
%85 = load i32, ptr %2, align 4
%86 = add nsw i32 %85, 3
store i32 %86, ptr %2, align 4
br label %102
87: ; preds = %15
%88 = load i32, ptr %2, align 4
%89 = add nsw i32 %88, 3
store i32 %89, ptr %2, align 4
br label %102
90: ; preds = %15
%91 = load i32, ptr %2, align 4
%92 = add nsw i32 %91, 3
store i32 %92, ptr %2, align 4
br label %102
93: ; preds = %15
%94 = load i32, ptr %2, align 4
%95 = add nsw i32 %94, 3
store i32 %95, ptr %2, align 4
br label %102
96: ; preds = %15
%97 = load i32, ptr %2, align 4
%98 = add nsw i32 %97, 4
store i32 %98, ptr %2, align 4
br label %102
99: ; preds = %15
%100 = load i32, ptr %2, align 4
%101 = add nsw i32 %100, 4
store i32 %101, ptr %2, align 4
br label %102
102: ; preds = %15, %99, %96, %93, %90, %87, %84, %81, %78, %75, %72, %69, %66, %63, %60, %57, %54, %51, %48, %45, %42, %39, %36, %33, %30, %27, %24, %21
br label %103
103: ; preds = %102
%104 = load i32, ptr %3, align 4
%105 = add nsw i32 %104, 1
store i32 %105, ptr %3, align 4
br label %11, !llvm.loop !6
106: ; preds = %11
%107 = load i32, ptr %2, align 4
%108 = call i32 @printf(ptr noundef @.str, i32 noundef %107)
ret i32 0
}
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(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/tmpsfglrbqg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [160 x i8], align 16
store i32 0, ptr %1, align 4
%6 = getelementptr inbounds [160 x i8], ptr %5, i64 0, i64 0
%7 = load i32, ptr @stdin, align 4
%8 = call i32 @fgets(ptr noundef %6, i32 noundef 160, i32 noundef %7)
%9 = getelementptr inbounds [160 x i8], ptr %5, i64 0, i64 0
%10 = call i32 @strlen(ptr noundef %9)
store i32 %10, ptr %4, align 4
store i32 0, ptr %3, align 4
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %.lr.ph, label %108
.lr.ph: ; preds = %0
br label %14
14: ; preds = %.lr.ph, %102
%15 = load i32, ptr %3, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [160 x i8], ptr %5, i64 0, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
switch i32 %19, label %101 [
i32 97, label %20
i32 100, label %23
i32 103, label %26
i32 106, label %29
i32 109, label %32
i32 112, label %35
i32 116, label %38
i32 119, label %41
i32 32, label %44
i32 98, label %47
i32 101, label %50
i32 104, label %53
i32 107, label %56
i32 110, label %59
i32 113, label %62
i32 117, label %65
i32 120, label %68
i32 99, label %71
i32 102, label %74
i32 105, label %77
i32 108, label %80
i32 111, label %83
i32 114, label %86
i32 118, label %89
i32 121, label %92
i32 115, label %95
i32 122, label %98
]
20: ; preds = %14
%21 = load i32, ptr %2, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %2, align 4
br label %101
23: ; preds = %14
%24 = load i32, ptr %2, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %2, align 4
br label %101
26: ; preds = %14
%27 = load i32, ptr %2, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %2, align 4
br label %101
29: ; preds = %14
%30 = load i32, ptr %2, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %2, align 4
br label %101
32: ; preds = %14
%33 = load i32, ptr %2, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %2, align 4
br label %101
35: ; preds = %14
%36 = load i32, ptr %2, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %2, align 4
br label %101
38: ; preds = %14
%39 = load i32, ptr %2, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %2, align 4
br label %101
41: ; preds = %14
%42 = load i32, ptr %2, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %2, align 4
br label %101
44: ; preds = %14
%45 = load i32, ptr %2, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %2, align 4
br label %101
47: ; preds = %14
%48 = load i32, ptr %2, align 4
%49 = add nsw i32 %48, 2
store i32 %49, ptr %2, align 4
br label %101
50: ; preds = %14
%51 = load i32, ptr %2, align 4
%52 = add nsw i32 %51, 2
store i32 %52, ptr %2, align 4
br label %101
53: ; preds = %14
%54 = load i32, ptr %2, align 4
%55 = add nsw i32 %54, 2
store i32 %55, ptr %2, align 4
br label %101
56: ; preds = %14
%57 = load i32, ptr %2, align 4
%58 = add nsw i32 %57, 2
store i32 %58, ptr %2, align 4
br label %101
59: ; preds = %14
%60 = load i32, ptr %2, align 4
%61 = add nsw i32 %60, 2
store i32 %61, ptr %2, align 4
br label %101
62: ; preds = %14
%63 = load i32, ptr %2, align 4
%64 = add nsw i32 %63, 2
store i32 %64, ptr %2, align 4
br label %101
65: ; preds = %14
%66 = load i32, ptr %2, align 4
%67 = add nsw i32 %66, 2
store i32 %67, ptr %2, align 4
br label %101
68: ; preds = %14
%69 = load i32, ptr %2, align 4
%70 = add nsw i32 %69, 2
store i32 %70, ptr %2, align 4
br label %101
71: ; preds = %14
%72 = load i32, ptr %2, align 4
%73 = add nsw i32 %72, 3
store i32 %73, ptr %2, align 4
br label %101
74: ; preds = %14
%75 = load i32, ptr %2, align 4
%76 = add nsw i32 %75, 3
store i32 %76, ptr %2, align 4
br label %101
77: ; preds = %14
%78 = load i32, ptr %2, align 4
%79 = add nsw i32 %78, 3
store i32 %79, ptr %2, align 4
br label %101
80: ; preds = %14
%81 = load i32, ptr %2, align 4
%82 = add nsw i32 %81, 3
store i32 %82, ptr %2, align 4
br label %101
83: ; preds = %14
%84 = load i32, ptr %2, align 4
%85 = add nsw i32 %84, 3
store i32 %85, ptr %2, align 4
br label %101
86: ; preds = %14
%87 = load i32, ptr %2, align 4
%88 = add nsw i32 %87, 3
store i32 %88, ptr %2, align 4
br label %101
89: ; preds = %14
%90 = load i32, ptr %2, align 4
%91 = add nsw i32 %90, 3
store i32 %91, ptr %2, align 4
br label %101
92: ; preds = %14
%93 = load i32, ptr %2, align 4
%94 = add nsw i32 %93, 3
store i32 %94, ptr %2, align 4
br label %101
95: ; preds = %14
%96 = load i32, ptr %2, align 4
%97 = add nsw i32 %96, 4
store i32 %97, ptr %2, align 4
br label %101
98: ; preds = %14
%99 = load i32, ptr %2, align 4
%100 = add nsw i32 %99, 4
store i32 %100, ptr %2, align 4
br label %101
101: ; preds = %98, %95, %92, %89, %86, %83, %80, %77, %74, %71, %68, %65, %62, %59, %56, %53, %50, %47, %44, %41, %38, %35, %32, %29, %26, %23, %20, %14
br label %102
102: ; preds = %101
%103 = load i32, ptr %3, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %3, align 4
%105 = load i32, ptr %3, align 4
%106 = load i32, ptr %4, align 4
%107 = icmp slt i32 %105, %106
br i1 %107, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %102
br label %108
108: ; preds = %._crit_edge, %0
%109 = load i32, ptr %2, align 4
%110 = call i32 @printf(ptr noundef @.str, i32 noundef %109)
ret i32 0
}
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(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/tmpbp0s25au.c'
source_filename = "/tmp/tmpbp0s25au.c"
target datalayout = "e-m:e-p270: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/tmpbp0s25au.c"
target datalayout = "e-m:e-p270: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/tmp8jjq1vsh.c'
source_filename = "/tmp/tmp8jjq1vsh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%c\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i8, align 1
%9 = alloca i8, align 1
store i32 0, ptr %1, align 4
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%11 = load i32, ptr %2, align 4
%12 = call i32 @total(i32 noundef %11)
%13 = load i32, ptr %2, align 4
%14 = mul nsw i32 2, %13
%15 = sub nsw i32 %14, 1
store i32 %15, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 2, ptr %6, align 4
store i32 0, ptr %7, align 4
store i8 35, ptr %8, align 1
store i8 42, ptr %9, align 1
br label %16
16: ; preds = %22, %0
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %3, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %27
20: ; preds = %16
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %22
22: ; preds = %20
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %4, align 4
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, -1
store i32 %26, ptr %3, align 4
br label %16, !llvm.loop !6
27: ; preds = %16
%28 = load i8, ptr %9, align 1
%29 = sext i8 %28 to i32
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %29)
store i32 2, ptr %4, align 4
br label %31
31: ; preds = %76, %27
%32 = load i32, ptr %4, align 4
%33 = load i32, ptr %2, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %83
35: ; preds = %31
store i32 0, ptr %7, align 4
br label %36
36: ; preds = %42, %35
%37 = load i32, ptr %7, align 4
%38 = load i32, ptr %3, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %40, label %45
40: ; preds = %36
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %42
42: ; preds = %40
%43 = load i32, ptr %7, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %7, align 4
br label %36, !llvm.loop !8
45: ; preds = %36
store i32 0, ptr %5, align 4
br label %46
46: ; preds = %71, %45
%47 = load i32, ptr %5, align 4
%48 = load i32, ptr %6, align 4
%49 = icmp sle i32 %47, %48
br i1 %49, label %50, label %74
50: ; preds = %46
%51 = load i32, ptr %5, align 4
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %57
53: ; preds = %50
%54 = load i8, ptr %9, align 1
%55 = sext i8 %54 to i32
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %55)
br label %70
57: ; preds = %50
%58 = load i32, ptr %5, align 4
%59 = load i32, ptr %6, align 4
%60 = icmp eq i32 %58, %59
br i1 %60, label %61, label %65
61: ; preds = %57
%62 = load i8, ptr %9, align 1
%63 = sext i8 %62 to i32
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %63)
br label %69
65: ; preds = %57
%66 = load i8, ptr %8, align 1
%67 = sext i8 %66 to i32
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %67)
br label %69
69: ; preds = %65, %61
br label %70
70: ; preds = %69, %53
br label %71
71: ; preds = %70
%72 = load i32, ptr %5, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %5, align 4
br label %46, !llvm.loop !9
74: ; preds = %46
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %76
76: ; preds = %74
%77 = load i32, ptr %4, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %4, align 4
%79 = load i32, ptr %6, align 4
%80 = add nsw i32 %79, 2
store i32 %80, ptr %6, align 4
%81 = load i32, ptr %3, align 4
%82 = add nsw i32 %81, -1
store i32 %82, ptr %3, align 4
br label %31, !llvm.loop !10
83: ; preds = %31
%84 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%85 = load i32, ptr %3, align 4
%86 = load i32, ptr %4, align 4
%87 = load i32, ptr %2, align 4
%88 = call i32 @lastrow(i32 noundef %85, i32 noundef %86, i32 noundef %87)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @total(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @lastrow(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8jjq1vsh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%c\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i8, align 1
%9 = alloca i8, align 1
store i32 0, ptr %1, align 4
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%11 = load i32, ptr %2, align 4
%12 = call i32 @total(i32 noundef %11)
%13 = load i32, ptr %2, align 4
%14 = mul nsw i32 2, %13
%15 = sub nsw i32 %14, 1
store i32 %15, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 2, ptr %6, align 4
store i32 0, ptr %7, align 4
store i8 35, ptr %8, align 1
store i8 42, ptr %9, align 1
%16 = load i32, ptr %4, align 4
%17 = load i32, ptr %3, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %.lr.ph, label %29
.lr.ph: ; preds = %0
br label %19
19: ; preds = %.lr.ph, %21
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %21
21: ; preds = %19
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %4, align 4
%24 = load i32, ptr %3, align 4
%25 = add nsw i32 %24, -1
store i32 %25, ptr %3, align 4
%26 = load i32, ptr %4, align 4
%27 = load i32, ptr %3, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %29
29: ; preds = %._crit_edge, %0
%30 = load i8, ptr %9, align 1
%31 = sext i8 %30 to i32
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %31)
store i32 2, ptr %4, align 4
%33 = load i32, ptr %4, align 4
%34 = load i32, ptr %2, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %.lr.ph8, label %91
.lr.ph8: ; preds = %29
br label %36
36: ; preds = %.lr.ph8, %81
store i32 0, ptr %7, align 4
%37 = load i32, ptr %7, align 4
%38 = load i32, ptr %3, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %.lr.ph2, label %48
.lr.ph2: ; preds = %36
br label %40
40: ; preds = %.lr.ph2, %42
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %42
42: ; preds = %40
%43 = load i32, ptr %7, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %7, align 4
%45 = load i32, ptr %7, align 4
%46 = load i32, ptr %3, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %40, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %42
br label %48
48: ; preds = %._crit_edge3, %36
store i32 0, ptr %5, align 4
%49 = load i32, ptr %5, align 4
%50 = load i32, ptr %6, align 4
%51 = icmp sle i32 %49, %50
br i1 %51, label %.lr.ph5, label %79
.lr.ph5: ; preds = %48
br label %52
52: ; preds = %.lr.ph5, %73
%53 = load i32, ptr %5, align 4
%54 = icmp eq i32 %53, 0
br i1 %54, label %55, label %59
55: ; preds = %52
%56 = load i8, ptr %9, align 1
%57 = sext i8 %56 to i32
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %57)
br label %72
59: ; preds = %52
%60 = load i32, ptr %5, align 4
%61 = load i32, ptr %6, align 4
%62 = icmp eq i32 %60, %61
br i1 %62, label %63, label %67
63: ; preds = %59
%64 = load i8, ptr %9, align 1
%65 = sext i8 %64 to i32
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %65)
br label %71
67: ; preds = %59
%68 = load i8, ptr %8, align 1
%69 = sext i8 %68 to i32
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %69)
br label %71
71: ; preds = %67, %63
br label %72
72: ; preds = %71, %55
br label %73
73: ; preds = %72
%74 = load i32, ptr %5, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %5, align 4
%76 = load i32, ptr %5, align 4
%77 = load i32, ptr %6, align 4
%78 = icmp sle i32 %76, %77
br i1 %78, label %52, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %73
br label %79
79: ; preds = %._crit_edge6, %48
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %81
81: ; preds = %79
%82 = load i32, ptr %4, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %4, align 4
%84 = load i32, ptr %6, align 4
%85 = add nsw i32 %84, 2
store i32 %85, ptr %6, align 4
%86 = load i32, ptr %3, align 4
%87 = add nsw i32 %86, -1
store i32 %87, ptr %3, align 4
%88 = load i32, ptr %4, align 4
%89 = load i32, ptr %2, align 4
%90 = icmp slt i32 %88, %89
br i1 %90, label %36, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %81
br label %91
91: ; preds = %._crit_edge9, %29
%92 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%93 = load i32, ptr %3, align 4
%94 = load i32, ptr %4, align 4
%95 = load i32, ptr %2, align 4
%96 = call i32 @lastrow(i32 noundef %93, i32 noundef %94, i32 noundef %95)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @total(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @lastrow(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpmfqs261w.c'
source_filename = "/tmp/tmpmfqs261w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/sys/class/gpio/gpio%d/value\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @open_value_file(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [29 x i8], align 16
store i32 %0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 @gpioToSysPin(i32 noundef %7)
store i32 %8, ptr %4, align 4
%9 = getelementptr inbounds [29 x i8], ptr %6, i64 0, i64 0
%10 = load i32, ptr %4, align 4
%11 = call i32 @snprintf(ptr noundef %9, i32 noundef 29, ptr noundef @.str, i32 noundef %10)
%12 = getelementptr inbounds [29 x i8], ptr %6, i64 0, i64 0
%13 = load i32, ptr @O_RDONLY, align 4
%14 = load i32, ptr @O_NONBLOCK, align 4
%15 = or i32 %13, %14
%16 = call i32 @open(ptr noundef %12, i32 noundef %15)
store i32 %16, ptr %5, align 4
%17 = icmp slt i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %1
store i32 -1, ptr %2, align 4
br label %21
19: ; preds = %1
%20 = load i32, ptr %5, align 4
store i32 %20, ptr %2, align 4
br label %21
21: ; preds = %19, %18
%22 = load i32, ptr %2, align 4
ret i32 %22
}
declare i32 @gpioToSysPin(i32 noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmfqs261w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/sys/class/gpio/gpio%d/value\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @open_value_file(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [29 x i8], align 16
store i32 %0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 @gpioToSysPin(i32 noundef %7)
store i32 %8, ptr %4, align 4
%9 = getelementptr inbounds [29 x i8], ptr %6, i64 0, i64 0
%10 = load i32, ptr %4, align 4
%11 = call i32 @snprintf(ptr noundef %9, i32 noundef 29, ptr noundef @.str, i32 noundef %10)
%12 = getelementptr inbounds [29 x i8], ptr %6, i64 0, i64 0
%13 = load i32, ptr @O_RDONLY, align 4
%14 = load i32, ptr @O_NONBLOCK, align 4
%15 = or i32 %13, %14
%16 = call i32 @open(ptr noundef %12, i32 noundef %15)
store i32 %16, ptr %5, align 4
%17 = icmp slt i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %1
store i32 -1, ptr %2, align 4
br label %21
19: ; preds = %1
%20 = load i32, ptr %5, align 4
store i32 %20, ptr %2, align 4
br label %21
21: ; preds = %19, %18
%22 = load i32, ptr %2, align 4
ret i32 %22
}
declare i32 @gpioToSysPin(i32 noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8oawqrs5.c'
source_filename = "/tmp/tmp8oawqrs5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @normalize(ptr noundef %0, i32 noundef %1, float noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store float %2, ptr %6, align 4
store float 0.000000e+00, ptr %7, align 4
store float 0.000000e+00, ptr %8, align 4
store i32 0, ptr %9, align 4
br label %10
10: ; preds = %30, %3
%11 = load i32, ptr %9, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %33
14: ; preds = %10
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %9, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds float, ptr %15, i64 %17
%19 = load float, ptr %18, align 4
%20 = call float @fabs(float noundef %19)
%21 = load float, ptr %7, align 4
%22 = fcmp ogt float %20, %21
br i1 %22, label %23, label %29
23: ; preds = %14
%24 = load ptr, ptr %4, align 8
%25 = load i32, ptr %9, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds float, ptr %24, i64 %26
%28 = load float, ptr %27, align 4
store float %28, ptr %7, align 4
br label %29
29: ; preds = %23, %14
br label %30
30: ; preds = %29
%31 = load i32, ptr %9, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %9, align 4
br label %10, !llvm.loop !6
33: ; preds = %10
%34 = load float, ptr %6, align 4
%35 = load float, ptr %7, align 4
%36 = fdiv float %34, %35
store float %36, ptr %8, align 4
store i32 0, ptr %9, align 4
br label %37
37: ; preds = %49, %33
%38 = load i32, ptr %9, align 4
%39 = load i32, ptr %5, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %41, label %52
41: ; preds = %37
%42 = load float, ptr %8, align 4
%43 = load ptr, ptr %4, align 8
%44 = load i32, ptr %9, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds float, ptr %43, i64 %45
%47 = load float, ptr %46, align 4
%48 = fmul float %47, %42
store float %48, ptr %46, align 4
br label %49
49: ; preds = %41
%50 = load i32, ptr %9, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %9, align 4
br label %37, !llvm.loop !8
52: ; preds = %37
ret void
}
declare float @fabs(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8oawqrs5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @normalize(ptr noundef %0, i32 noundef %1, float noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store float %2, ptr %6, align 4
store float 0.000000e+00, ptr %7, align 4
store float 0.000000e+00, ptr %8, align 4
store i32 0, ptr %9, align 4
%10 = load i32, ptr %9, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph, label %35
.lr.ph: ; preds = %3
br label %13
13: ; preds = %.lr.ph, %29
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr %9, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds float, ptr %14, i64 %16
%18 = load float, ptr %17, align 4
%19 = call float @fabs(float noundef %18)
%20 = load float, ptr %7, align 4
%21 = fcmp ogt float %19, %20
br i1 %21, label %22, label %28
22: ; preds = %13
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %9, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds float, ptr %23, i64 %25
%27 = load float, ptr %26, align 4
store float %27, ptr %7, align 4
br label %28
28: ; preds = %22, %13
br label %29
29: ; preds = %28
%30 = load i32, ptr %9, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %9, align 4
%32 = load i32, ptr %9, align 4
%33 = load i32, ptr %5, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %35
35: ; preds = %._crit_edge, %3
%36 = load float, ptr %6, align 4
%37 = load float, ptr %7, align 4
%38 = fdiv float %36, %37
store float %38, ptr %8, align 4
store i32 0, ptr %9, align 4
%39 = load i32, ptr %9, align 4
%40 = load i32, ptr %5, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %.lr.ph2, label %56
.lr.ph2: ; preds = %35
br label %42
42: ; preds = %.lr.ph2, %50
%43 = load float, ptr %8, align 4
%44 = load ptr, ptr %4, align 8
%45 = load i32, ptr %9, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds float, ptr %44, i64 %46
%48 = load float, ptr %47, align 4
%49 = fmul float %48, %43
store float %49, ptr %47, align 4
br label %50
50: ; preds = %42
%51 = load i32, ptr %9, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %9, align 4
%53 = load i32, ptr %9, align 4
%54 = load i32, ptr %5, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %42, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %50
br label %56
56: ; preds = %._crit_edge3, %35
ret void
}
declare float @fabs(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpbfzytuur.c'
source_filename = "/tmp/tmpbfzytuur.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ieee_p_3564397177_sub_886823127_91900896(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i8 noundef zeroext %5, i32 noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i8, align 1
%14 = alloca i32, align 4
%15 = alloca [40 x i8], align 16
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca i8, align 1
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca i32, align 4
%24 = alloca ptr, align 8
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store i8 %5, ptr %13, align 1
store i32 %6, ptr %14, align 4
br label %25
25: ; preds = %7
%26 = getelementptr inbounds [40 x i8], ptr %15, i64 0, i64 0
%27 = getelementptr inbounds i8, ptr %26, i64 4
store ptr %27, ptr %16, align 8
%28 = load ptr, ptr %10, align 8
%29 = load ptr, ptr %16, align 8
store ptr %28, ptr %29, align 8
%30 = getelementptr inbounds [40 x i8], ptr %15, i64 0, i64 0
%31 = getelementptr inbounds i8, ptr %30, i64 12
store ptr %31, ptr %17, align 8
%32 = load ptr, ptr %11, align 8
%33 = icmp ne ptr %32, null
%34 = zext i1 %33 to i32
%35 = trunc i32 %34 to i8
store i8 %35, ptr %18, align 1
%36 = load i8, ptr %18, align 1
%37 = zext i8 %36 to i32
%38 = icmp eq i32 %37, 1
br i1 %38, label %39, label %40
39: ; preds = %25
br label %76
40: ; preds = %25
br label %41
41: ; preds = %76, %40
%42 = getelementptr inbounds [40 x i8], ptr %15, i64 0, i64 0
%43 = getelementptr inbounds i8, ptr %42, i64 20
store ptr %43, ptr %19, align 8
%44 = load ptr, ptr %12, align 8
%45 = load ptr, ptr %19, align 8
store ptr %44, ptr %45, align 8
%46 = getelementptr inbounds [40 x i8], ptr %15, i64 0, i64 0
%47 = getelementptr inbounds i8, ptr %46, i64 28
store ptr %47, ptr %20, align 8
%48 = load i8, ptr %13, align 1
%49 = load ptr, ptr %20, align 8
store i8 %48, ptr %49, align 1
%50 = getelementptr inbounds [40 x i8], ptr %15, i64 0, i64 0
%51 = getelementptr inbounds i8, ptr %50, i64 29
store ptr %51, ptr %21, align 8
%52 = load i32, ptr %14, align 4
%53 = load ptr, ptr %21, align 8
store i32 %52, ptr %53, align 4
%54 = load ptr, ptr %12, align 8
%55 = getelementptr inbounds i8, ptr %54, i64 12
store ptr %55, ptr %22, align 8
%56 = load ptr, ptr %22, align 8
%57 = load i32, ptr %56, align 4
store i32 %57, ptr %23, align 4
%58 = load i32, ptr %23, align 4
%59 = mul i32 %58, 1
store i32 %59, ptr %23, align 4
%60 = load i32, ptr %23, align 4
%61 = call i64 @alloca(i32 noundef %60)
%62 = inttoptr i64 %61 to ptr
store ptr %62, ptr %24, align 8
%63 = load ptr, ptr %24, align 8
%64 = load ptr, ptr %11, align 8
%65 = load i32, ptr %23, align 4
%66 = call i32 @memcpy(ptr noundef %63, ptr noundef %64, i32 noundef %65)
%67 = load ptr, ptr %8, align 8
%68 = load ptr, ptr %9, align 8
%69 = load ptr, ptr %10, align 8
%70 = load ptr, ptr %24, align 8
%71 = load ptr, ptr %12, align 8
%72 = load i8, ptr %13, align 1
%73 = load i32, ptr %14, align 4
%74 = call i32 @ieee_p_3564397177_sub_1107187428_91900896(ptr noundef %67, ptr noundef %68, ptr noundef %69, ptr noundef %70, ptr noundef %71, i8 noundef zeroext %72, i32 noundef %73)
br label %75
75: ; preds = %41
ret void
76: ; preds = %39
%77 = load ptr, ptr %11, align 8
%78 = load ptr, ptr %17, align 8
store ptr %77, ptr %78, align 8
br label %41
}
declare i64 @alloca(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @ieee_p_3564397177_sub_1107187428_91900896(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i8 noundef zeroext, 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/tmpbfzytuur.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ieee_p_3564397177_sub_886823127_91900896(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i8 noundef zeroext %5, i32 noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i8, align 1
%14 = alloca i32, align 4
%15 = alloca [40 x i8], align 16
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca i8, align 1
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca i32, align 4
%24 = alloca ptr, align 8
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store i8 %5, ptr %13, align 1
store i32 %6, ptr %14, align 4
br label %25
25: ; preds = %7
%26 = getelementptr inbounds [40 x i8], ptr %15, i64 0, i64 0
%27 = getelementptr inbounds i8, ptr %26, i64 4
store ptr %27, ptr %16, align 8
%28 = load ptr, ptr %10, align 8
%29 = load ptr, ptr %16, align 8
store ptr %28, ptr %29, align 8
%30 = getelementptr inbounds [40 x i8], ptr %15, i64 0, i64 0
%31 = getelementptr inbounds i8, ptr %30, i64 12
store ptr %31, ptr %17, align 8
%32 = load ptr, ptr %11, align 8
%33 = icmp ne ptr %32, null
%34 = zext i1 %33 to i32
%35 = trunc i32 %34 to i8
store i8 %35, ptr %18, align 1
%36 = load i8, ptr %18, align 1
%37 = zext i8 %36 to i32
%38 = icmp eq i32 %37, 1
br i1 %38, label %39, label %40
39: ; preds = %25
br label %76
40: ; preds = %25
br label %41
41: ; preds = %76, %40
%42 = getelementptr inbounds [40 x i8], ptr %15, i64 0, i64 0
%43 = getelementptr inbounds i8, ptr %42, i64 20
store ptr %43, ptr %19, align 8
%44 = load ptr, ptr %12, align 8
%45 = load ptr, ptr %19, align 8
store ptr %44, ptr %45, align 8
%46 = getelementptr inbounds [40 x i8], ptr %15, i64 0, i64 0
%47 = getelementptr inbounds i8, ptr %46, i64 28
store ptr %47, ptr %20, align 8
%48 = load i8, ptr %13, align 1
%49 = load ptr, ptr %20, align 8
store i8 %48, ptr %49, align 1
%50 = getelementptr inbounds [40 x i8], ptr %15, i64 0, i64 0
%51 = getelementptr inbounds i8, ptr %50, i64 29
store ptr %51, ptr %21, align 8
%52 = load i32, ptr %14, align 4
%53 = load ptr, ptr %21, align 8
store i32 %52, ptr %53, align 4
%54 = load ptr, ptr %12, align 8
%55 = getelementptr inbounds i8, ptr %54, i64 12
store ptr %55, ptr %22, align 8
%56 = load ptr, ptr %22, align 8
%57 = load i32, ptr %56, align 4
store i32 %57, ptr %23, align 4
%58 = load i32, ptr %23, align 4
%59 = mul i32 %58, 1
store i32 %59, ptr %23, align 4
%60 = load i32, ptr %23, align 4
%61 = call i64 @alloca(i32 noundef %60)
%62 = inttoptr i64 %61 to ptr
store ptr %62, ptr %24, align 8
%63 = load ptr, ptr %24, align 8
%64 = load ptr, ptr %11, align 8
%65 = load i32, ptr %23, align 4
%66 = call i32 @memcpy(ptr noundef %63, ptr noundef %64, i32 noundef %65)
%67 = load ptr, ptr %8, align 8
%68 = load ptr, ptr %9, align 8
%69 = load ptr, ptr %10, align 8
%70 = load ptr, ptr %24, align 8
%71 = load ptr, ptr %12, align 8
%72 = load i8, ptr %13, align 1
%73 = load i32, ptr %14, align 4
%74 = call i32 @ieee_p_3564397177_sub_1107187428_91900896(ptr noundef %67, ptr noundef %68, ptr noundef %69, ptr noundef %70, ptr noundef %71, i8 noundef zeroext %72, i32 noundef %73)
br label %75
75: ; preds = %41
ret void
76: ; preds = %39
%77 = load ptr, ptr %11, align 8
%78 = load ptr, ptr %17, align 8
store ptr %77, ptr %78, align 8
br label %41
}
declare i64 @alloca(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @ieee_p_3564397177_sub_1107187428_91900896(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i8 noundef zeroext, 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/tmpg1hs48g5.c'
source_filename = "/tmp/tmpg1hs48g5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"wait\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"pid=%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [40 x i8] c"Normal termination with exit status=%d\0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"Killed by signal=%d%s\0A\00", align 1
@.str.4 = private unnamed_addr constant [15 x i8] c" (dumped core)\00", align 1
@.str.5 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.6 = private unnamed_addr constant [22 x i8] c"Stopped by signal=%d\0A\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"Continued\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i64 (...) @fork()
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 (...) @abort() #3
unreachable
8: ; preds = %0
%9 = call i32 @wait(ptr noundef %2)
store i32 %9, ptr %3, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp eq i32 %10, -1
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = call i32 @perror(ptr noundef @.str)
br label %14
14: ; preds = %12, %8
%15 = load i32, ptr %3, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %15)
%17 = load i32, ptr %2, align 4
%18 = call i64 @WIFEXITED(i32 noundef %17)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %24
20: ; preds = %14
%21 = load i32, ptr %2, align 4
%22 = call i32 @WEXITSTATUS(i32 noundef %21)
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %22)
br label %24
24: ; preds = %20, %14
%25 = load i32, ptr %2, align 4
%26 = call i64 @WIFSIGNALED(i32 noundef %25)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %37
28: ; preds = %24
%29 = load i32, ptr %2, align 4
%30 = call i32 @WTERMSIG(i32 noundef %29)
%31 = load i32, ptr %2, align 4
%32 = call i64 @WCOREDUMP(i32 noundef %31)
%33 = icmp ne i64 %32, 0
%34 = zext i1 %33 to i64
%35 = select i1 %33, ptr @.str.4, ptr @.str.5
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %30, ptr noundef %35)
br label %37
37: ; preds = %28, %24
%38 = load i32, ptr %2, align 4
%39 = call i64 @WIFSTOPPED(i32 noundef %38)
%40 = icmp ne i64 %39, 0
br i1 %40, label %41, label %45
41: ; preds = %37
%42 = load i32, ptr %2, align 4
%43 = call i32 @WSTOPSIG(i32 noundef %42)
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %43)
br label %45
45: ; preds = %41, %37
%46 = load i32, ptr %2, align 4
%47 = call i64 @WIFCONTINUED(i32 noundef %46)
%48 = icmp ne i64 %47, 0
br i1 %48, label %49, label %51
49: ; preds = %45
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %51
51: ; preds = %49, %45
ret i32 0
}
declare i64 @fork(...) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i32 @wait(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @WIFEXITED(i32 noundef) #1
declare i32 @WEXITSTATUS(i32 noundef) #1
declare i64 @WIFSIGNALED(i32 noundef) #1
declare i32 @WTERMSIG(i32 noundef) #1
declare i64 @WCOREDUMP(i32 noundef) #1
declare i64 @WIFSTOPPED(i32 noundef) #1
declare i32 @WSTOPSIG(i32 noundef) #1
declare i64 @WIFCONTINUED(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg1hs48g5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"wait\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"pid=%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [40 x i8] c"Normal termination with exit status=%d\0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"Killed by signal=%d%s\0A\00", align 1
@.str.4 = private unnamed_addr constant [15 x i8] c" (dumped core)\00", align 1
@.str.5 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.6 = private unnamed_addr constant [22 x i8] c"Stopped by signal=%d\0A\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"Continued\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i64 (...) @fork()
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 (...) @abort() #3
unreachable
8: ; preds = %0
%9 = call i32 @wait(ptr noundef %2)
store i32 %9, ptr %3, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp eq i32 %10, -1
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = call i32 @perror(ptr noundef @.str)
br label %14
14: ; preds = %12, %8
%15 = load i32, ptr %3, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %15)
%17 = load i32, ptr %2, align 4
%18 = call i64 @WIFEXITED(i32 noundef %17)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %24
20: ; preds = %14
%21 = load i32, ptr %2, align 4
%22 = call i32 @WEXITSTATUS(i32 noundef %21)
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %22)
br label %24
24: ; preds = %20, %14
%25 = load i32, ptr %2, align 4
%26 = call i64 @WIFSIGNALED(i32 noundef %25)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %37
28: ; preds = %24
%29 = load i32, ptr %2, align 4
%30 = call i32 @WTERMSIG(i32 noundef %29)
%31 = load i32, ptr %2, align 4
%32 = call i64 @WCOREDUMP(i32 noundef %31)
%33 = icmp ne i64 %32, 0
%34 = zext i1 %33 to i64
%35 = select i1 %33, ptr @.str.4, ptr @.str.5
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %30, ptr noundef %35)
br label %37
37: ; preds = %28, %24
%38 = load i32, ptr %2, align 4
%39 = call i64 @WIFSTOPPED(i32 noundef %38)
%40 = icmp ne i64 %39, 0
br i1 %40, label %41, label %45
41: ; preds = %37
%42 = load i32, ptr %2, align 4
%43 = call i32 @WSTOPSIG(i32 noundef %42)
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %43)
br label %45
45: ; preds = %41, %37
%46 = load i32, ptr %2, align 4
%47 = call i64 @WIFCONTINUED(i32 noundef %46)
%48 = icmp ne i64 %47, 0
br i1 %48, label %49, label %51
49: ; preds = %45
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %51
51: ; preds = %49, %45
ret i32 0
}
declare i64 @fork(...) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i32 @wait(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @WIFEXITED(i32 noundef) #1
declare i32 @WEXITSTATUS(i32 noundef) #1
declare i64 @WIFSIGNALED(i32 noundef) #1
declare i32 @WTERMSIG(i32 noundef) #1
declare i64 @WCOREDUMP(i32 noundef) #1
declare i64 @WIFSTOPPED(i32 noundef) #1
declare i32 @WSTOPSIG(i32 noundef) #1
declare i64 @WIFCONTINUED(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgv5pmiyl.c'
source_filename = "/tmp/tmpgv5pmiyl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ulltoa(i64 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i64 %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i64, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call ptr @__ulltoa_internal__(i64 noundef %7, ptr noundef %8, i32 noundef %9, i32 noundef 0, i32 noundef 0)
ret ptr %10
}
declare ptr @__ulltoa_internal__(i64 noundef, 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/tmpgv5pmiyl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ulltoa(i64 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i64 %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i64, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call ptr @__ulltoa_internal__(i64 noundef %7, ptr noundef %8, i32 noundef %9, i32 noundef 0, i32 noundef 0)
ret ptr %10
}
declare ptr @__ulltoa_internal__(i64 noundef, 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/tmpitwebhdv.c'
source_filename = "/tmp/tmpitwebhdv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = 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/tmpitwebhdv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = 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/tmp83243lkh.c'
source_filename = "/tmp/tmp83243lkh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hl_math_floor(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call i64 @hl_math_ffloor(double noundef %3)
%5 = trunc i64 %4 to i32
ret i32 %5
}
declare i64 @hl_math_ffloor(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/tmp83243lkh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hl_math_floor(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call i64 @hl_math_ffloor(double noundef %3)
%5 = trunc i64 %4 to i32
ret i32 %5
}
declare i64 @hl_math_ffloor(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/tmpnydzyqa9.c'
source_filename = "/tmp/tmpnydzyqa9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @extension_match_filter(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @extension(ptr noundef %6)
%8 = load ptr, ptr %5, align 8
%9 = call i64 @strcmp(i32 noundef %7, ptr noundef %8)
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 1, ptr %3, align 4
br label %13
12: ; preds = %2
store i32 0, ptr %3, align 4
br label %13
13: ; preds = %12, %11
%14 = load i32, ptr %3, align 4
ret i32 %14
}
declare i64 @strcmp(i32 noundef, ptr noundef) #1
declare i32 @extension(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnydzyqa9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @extension_match_filter(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @extension(ptr noundef %6)
%8 = load ptr, ptr %5, align 8
%9 = call i64 @strcmp(i32 noundef %7, ptr noundef %8)
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 1, ptr %3, align 4
br label %13
12: ; preds = %2
store i32 0, ptr %3, align 4
br label %13
13: ; preds = %12, %11
%14 = load i32, ptr %3, align 4
ret i32 %14
}
declare i64 @strcmp(i32 noundef, ptr noundef) #1
declare i32 @extension(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg3dokouq.c'
source_filename = "/tmp/tmpg3dokouq.c"
target datalayout = "e-m:e-p270: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.fat100 = private unnamed_addr constant [159 x i8] c"93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000\00", align 16
@.str = private unnamed_addr constant [10 x i8] c"Soma: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [159 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.fat100, i64 159, i1 false)
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
br label %5
5: ; preds = %19, %0
%6 = load i32, ptr %4, align 4
%7 = getelementptr inbounds [159 x i8], ptr %2, i64 0, i64 0
%8 = call i32 @strlen(ptr noundef %7)
%9 = icmp slt i32 %6, %8
br i1 %9, label %10, label %22
10: ; preds = %5
%11 = load i32, ptr %4, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [159 x i8], ptr %2, i64 0, i64 %12
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = sub nsw i32 %15, 48
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, %16
store i32 %18, ptr %3, align 4
br label %19
19: ; preds = %10
%20 = load i32, ptr %4, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %4, align 4
br label %5, !llvm.loop !6
22: ; preds = %5
%23 = load i32, ptr %3, align 4
%24 = call i32 @printf(ptr noundef @.str, i32 noundef %23)
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 @strlen(ptr noundef) #2
declare i32 @printf(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpg3dokouq.c"
target datalayout = "e-m:e-p270: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.fat100 = private unnamed_addr constant [159 x i8] c"93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000\00", align 16
@.str = private unnamed_addr constant [10 x i8] c"Soma: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [159 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.fat100, i64 159, i1 false)
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = getelementptr inbounds [159 x i8], ptr %2, i64 0, i64 0
%7 = call i32 @strlen(ptr noundef %6)
%8 = icmp slt i32 %5, %7
br i1 %8, label %.lr.ph, label %24
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %18
%10 = load i32, ptr %4, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [159 x i8], ptr %2, i64 0, i64 %11
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = sub nsw i32 %14, 48
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, %15
store i32 %17, ptr %3, align 4
br label %18
18: ; preds = %9
%19 = load i32, ptr %4, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %4, align 4
%21 = load i32, ptr %4, align 4
%22 = call i32 @strlen(ptr noundef %6)
%23 = icmp slt i32 %21, %22
br i1 %23, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %24
24: ; preds = %._crit_edge, %0
%25 = load i32, ptr %3, align 4
%26 = call i32 @printf(ptr noundef @.str, i32 noundef %25)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @strlen(ptr noundef) #2
declare i32 @printf(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpn98p3k1l.c'
source_filename = "/tmp/tmpn98p3k1l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @GPIODirModeGet(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = shl i32 1, %7
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %3, align 4
%10 = add nsw i32 %9, 1024
%11 = sext i32 %10 to i64
%12 = inttoptr i64 %11 to ptr
%13 = load volatile i64, ptr %12, align 8
%14 = trunc i64 %13 to i32
store i32 %14, ptr %5, align 4
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1056
%17 = sext i32 %16 to i64
%18 = inttoptr i64 %17 to ptr
%19 = load volatile i64, ptr %18, align 8
%20 = trunc i64 %19 to i32
store i32 %20, ptr %6, align 4
%21 = load i32, ptr %5, align 4
%22 = load i32, ptr %4, align 4
%23 = and i32 %21, %22
%24 = icmp ne i32 %23, 0
%25 = zext i1 %24 to i64
%26 = select i1 %24, i32 1, i32 0
%27 = load i32, ptr %6, align 4
%28 = load i32, ptr %4, align 4
%29 = and i32 %27, %28
%30 = icmp ne i32 %29, 0
%31 = zext i1 %30 to i64
%32 = select i1 %30, i32 2, i32 0
%33 = or i32 %26, %32
ret i32 %33
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn98p3k1l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @GPIODirModeGet(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = shl i32 1, %7
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %3, align 4
%10 = add nsw i32 %9, 1024
%11 = sext i32 %10 to i64
%12 = inttoptr i64 %11 to ptr
%13 = load volatile i64, ptr %12, align 8
%14 = trunc i64 %13 to i32
store i32 %14, ptr %5, align 4
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1056
%17 = sext i32 %16 to i64
%18 = inttoptr i64 %17 to ptr
%19 = load volatile i64, ptr %18, align 8
%20 = trunc i64 %19 to i32
store i32 %20, ptr %6, align 4
%21 = load i32, ptr %5, align 4
%22 = load i32, ptr %4, align 4
%23 = and i32 %21, %22
%24 = icmp ne i32 %23, 0
%25 = zext i1 %24 to i64
%26 = select i1 %24, i32 1, i32 0
%27 = load i32, ptr %6, align 4
%28 = load i32, ptr %4, align 4
%29 = and i32 %27, %28
%30 = icmp ne i32 %29, 0
%31 = zext i1 %30 to i64
%32 = select i1 %30, i32 2, i32 0
%33 = or i32 %26, %32
ret i32 %33
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdejp8k0v.c'
source_filename = "/tmp/tmpdejp8k0v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @init_hdrs(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %14
11: ; preds = %4
%12 = load ptr, ptr %5, align 8
%13 = call i32 @memset(ptr noundef %12, i32 noundef 0, i64 noundef 4)
br label %14
14: ; preds = %11, %4
%15 = load ptr, ptr %6, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %17, label %20
17: ; preds = %14
%18 = load ptr, ptr %6, align 8
%19 = call i32 @memset(ptr noundef %18, i32 noundef 0, i64 noundef 4)
br label %20
20: ; preds = %17, %14
%21 = load ptr, ptr %7, align 8
%22 = icmp ne ptr %21, null
br i1 %22, label %23, label %27
23: ; preds = %20
%24 = load ptr, ptr %7, align 8
%25 = load i64, ptr %8, align 8
%26 = call i32 @memset(ptr noundef %24, i32 noundef 0, i64 noundef %25)
br label %27
27: ; preds = %23, %20
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdejp8k0v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @init_hdrs(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %14
11: ; preds = %4
%12 = load ptr, ptr %5, align 8
%13 = call i32 @memset(ptr noundef %12, i32 noundef 0, i64 noundef 4)
br label %14
14: ; preds = %11, %4
%15 = load ptr, ptr %6, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %17, label %20
17: ; preds = %14
%18 = load ptr, ptr %6, align 8
%19 = call i32 @memset(ptr noundef %18, i32 noundef 0, i64 noundef 4)
br label %20
20: ; preds = %17, %14
%21 = load ptr, ptr %7, align 8
%22 = icmp ne ptr %21, null
br i1 %22, label %23, label %27
23: ; preds = %20
%24 = load ptr, ptr %7, align 8
%25 = load i64, ptr %8, align 8
%26 = call i32 @memset(ptr noundef %24, i32 noundef 0, i64 noundef %25)
br label %27
27: ; preds = %23, %20
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnwh2u3wf.c'
source_filename = "/tmp/tmpnwh2u3wf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"N valores de x: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"Valor de x: \00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"Z = %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 i16, align 2
store i32 0, ptr %1, align 4
store i32 1, ptr %3, align 4
store i32 0, ptr %8, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2)
br label %12
12: ; preds = %16, %0
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %2, align 4
%15 = icmp sle i32 %13, %14
br i1 %15, label %16, label %43
16: ; preds = %12
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%18 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %9)
%19 = load i16, ptr %9, align 2
%20 = call i32 @potencia(i16 noundef signext %19, i32 noundef 9)
%21 = mul nsw i32 12, %20
store i32 %21, ptr %4, align 4
%22 = load i16, ptr %9, align 2
%23 = call i32 @potencia(i16 noundef signext %22, i32 noundef 8)
%24 = mul nsw i32 2, %23
store i32 %24, ptr %5, align 4
%25 = load i16, ptr %9, align 2
%26 = call i32 @potencia(i16 noundef signext %25, i32 noundef 5)
%27 = mul nsw i32 26, %26
store i32 %27, ptr %6, align 4
%28 = load i16, ptr %9, align 2
%29 = call i32 @potencia(i16 noundef signext %28, i32 noundef 2)
%30 = mul nsw i32 31, %29
store i32 %30, ptr %7, align 4
%31 = load i32, ptr %4, align 4
%32 = load i32, ptr %5, align 4
%33 = add nsw i32 %31, %32
%34 = load i32, ptr %6, align 4
%35 = add nsw i32 %33, %34
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %35, %36
%38 = add nsw i32 %37, 72
store i32 %38, ptr %8, align 4
%39 = load i32, ptr %8, align 4
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %39)
%41 = load i32, ptr %3, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %3, align 4
br label %12, !llvm.loop !6
43: ; preds = %12
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @potencia(i16 noundef signext, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnwh2u3wf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"N valores de x: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"Valor de x: \00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"Z = %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 i16, align 2
store i32 0, ptr %1, align 4
store i32 1, ptr %3, align 4
store i32 0, ptr %8, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2)
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %2, align 4
%14 = icmp sle i32 %12, %13
br i1 %14, label %.lr.ph, label %45
.lr.ph: ; preds = %0
br label %15
15: ; preds = %.lr.ph, %15
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%17 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %9)
%18 = load i16, ptr %9, align 2
%19 = call i32 @potencia(i16 noundef signext %18, i32 noundef 9)
%20 = mul nsw i32 12, %19
store i32 %20, ptr %4, align 4
%21 = load i16, ptr %9, align 2
%22 = call i32 @potencia(i16 noundef signext %21, i32 noundef 8)
%23 = mul nsw i32 2, %22
store i32 %23, ptr %5, align 4
%24 = load i16, ptr %9, align 2
%25 = call i32 @potencia(i16 noundef signext %24, i32 noundef 5)
%26 = mul nsw i32 26, %25
store i32 %26, ptr %6, align 4
%27 = load i16, ptr %9, align 2
%28 = call i32 @potencia(i16 noundef signext %27, i32 noundef 2)
%29 = mul nsw i32 31, %28
store i32 %29, ptr %7, align 4
%30 = load i32, ptr %4, align 4
%31 = load i32, ptr %5, align 4
%32 = add nsw i32 %30, %31
%33 = load i32, ptr %6, align 4
%34 = add nsw i32 %32, %33
%35 = load i32, ptr %7, align 4
%36 = add nsw i32 %34, %35
%37 = add nsw i32 %36, 72
store i32 %37, ptr %8, align 4
%38 = load i32, ptr %8, align 4
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %38)
%40 = load i32, ptr %3, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %3, align 4
%42 = load i32, ptr %3, align 4
%43 = load i32, ptr %2, align 4
%44 = icmp sle i32 %42, %43
br i1 %44, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %45
45: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @potencia(i16 noundef signext, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpgbyqukwk.c'
source_filename = "/tmp/tmpgbyqukwk.c"
target datalayout = "e-m:e-p270: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.option = type { ptr, i32, i32, i32, i32 }
@lib_common_option_handling.long_options = internal global [3 x %struct.option] [%struct.option { ptr @.str, i32 0, i32 0, i32 0, i32 0 }, %struct.option { ptr @.str.1, i32 1, i32 0, i32 0, i32 0 }, %struct.option zeroinitializer], align 16
@.str = private unnamed_addr constant [6 x i8] c"debug\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"config\00", align 1
@.str.2 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@optarg = dso_local global ptr null, align 8
@.str.3 = private unnamed_addr constant [18 x i8] c"Missing filename\0A\00", align 1
@.str.4 = private unnamed_addr constant [35 x i8] c"Failed to load configuration file\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @lib_common_option_handling(i32 noundef %0, ptr 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 ptr, align 8
%8 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %6, align 4
store ptr null, ptr %7, align 8
br label %9
9: ; preds = %2, %41
store i32 0, ptr %8, align 4
%10 = load i32, ptr %3, align 4
%11 = load ptr, ptr %4, align 8
%12 = call i32 @getopt_long(i32 noundef %10, ptr noundef %11, ptr noundef @.str.2, ptr noundef @lib_common_option_handling.long_options, ptr noundef %8)
store i32 %12, ptr %5, align 4
%13 = load i32, ptr %5, align 4
%14 = icmp eq i32 %13, -1
br i1 %14, label %15, label %16
15: ; preds = %9
br label %42
16: ; preds = %9
%17 = load i32, ptr %5, align 4
switch i32 %17, label %39 [
i32 0, label %18
]
18: ; preds = %16
%19 = load i32, ptr %8, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [3 x %struct.option], ptr @lib_common_option_handling.long_options, i64 0, i64 %20
%22 = getelementptr inbounds %struct.option, ptr %21, i32 0, i32 2
%23 = load i32, ptr %22, align 4
%24 = call i32 @strcmp(i32 noundef %23, ptr noundef @.str)
%25 = icmp ne i32 %24, 0
br i1 %25, label %27, label %26
26: ; preds = %18
store i32 1, ptr %6, align 4
br label %38
27: ; preds = %18
%28 = load i32, ptr %8, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [3 x %struct.option], ptr @lib_common_option_handling.long_options, i64 0, i64 %29
%31 = getelementptr inbounds %struct.option, ptr %30, i32 0, i32 2
%32 = load i32, ptr %31, align 4
%33 = call i32 @strcmp(i32 noundef %32, ptr noundef @.str.1)
%34 = icmp ne i32 %33, 0
br i1 %34, label %37, label %35
35: ; preds = %27
%36 = load ptr, ptr @optarg, align 8
store ptr %36, ptr %7, align 8
br label %37
37: ; preds = %35, %27
br label %38
38: ; preds = %37, %26
br label %41
39: ; preds = %16
%40 = call i32 @exit(i32 noundef 0) #3
unreachable
41: ; preds = %38
br label %9
42: ; preds = %15
%43 = load ptr, ptr %7, align 8
%44 = icmp eq ptr %43, null
br i1 %44, label %45, label %48
45: ; preds = %42
%46 = call i32 @printf(ptr noundef @.str.3)
%47 = call i32 @exit(i32 noundef 1) #3
unreachable
48: ; preds = %42
%49 = load ptr, ptr %7, align 8
%50 = call i32 @config_load(ptr noundef %49)
%51 = icmp ne i32 %50, 0
br i1 %51, label %55, label %52
52: ; preds = %48
%53 = call i32 @printf(ptr noundef @.str.4)
%54 = call i32 @exit(i32 noundef 0) #3
unreachable
55: ; preds = %48
%56 = load i32, ptr %6, align 4
%57 = icmp ne i32 %56, 0
br i1 %57, label %60, label %58
58: ; preds = %55
%59 = call i32 @daemon(i32 noundef 0, i32 noundef 0)
br label %60
60: ; preds = %58, %55
ret void
}
declare i32 @getopt_long(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @strcmp(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef) #1
declare i32 @config_load(ptr noundef) #1
declare i32 @daemon(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgbyqukwk.c"
target datalayout = "e-m:e-p270: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.option = type { ptr, i32, i32, i32, i32 }
@lib_common_option_handling.long_options = internal global [3 x %struct.option] [%struct.option { ptr @.str, i32 0, i32 0, i32 0, i32 0 }, %struct.option { ptr @.str.1, i32 1, i32 0, i32 0, i32 0 }, %struct.option zeroinitializer], align 16
@.str = private unnamed_addr constant [6 x i8] c"debug\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"config\00", align 1
@.str.2 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@optarg = dso_local global ptr null, align 8
@.str.3 = private unnamed_addr constant [18 x i8] c"Missing filename\0A\00", align 1
@.str.4 = private unnamed_addr constant [35 x i8] c"Failed to load configuration file\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @lib_common_option_handling(i32 noundef %0, ptr 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 ptr, align 8
%8 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %6, align 4
store ptr null, ptr %7, align 8
store i32 0, ptr %8, align 4
%9 = load i32, ptr %3, align 4
%10 = load ptr, ptr %4, align 8
%11 = call i32 @getopt_long(i32 noundef %9, ptr noundef %10, ptr noundef @.str.2, ptr noundef @lib_common_option_handling.long_options, ptr noundef %8)
store i32 %11, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp eq i32 %12, -1
br i1 %13, label %14, label %.lr.ph
.lr.ph: ; preds = %2
br label %15
._crit_edge: ; preds = %40
br label %14
14: ; preds = %._crit_edge, %2
br label %46
15: ; preds = %.lr.ph, %40
%16 = load i32, ptr %5, align 4
switch i32 %16, label %38 [
i32 0, label %17
]
17: ; preds = %15
%18 = load i32, ptr %8, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [3 x %struct.option], ptr @lib_common_option_handling.long_options, i64 0, i64 %19
%21 = getelementptr inbounds %struct.option, ptr %20, i32 0, i32 2
%22 = load i32, ptr %21, align 4
%23 = call i32 @strcmp(i32 noundef %22, ptr noundef @.str)
%24 = icmp ne i32 %23, 0
br i1 %24, label %26, label %25
25: ; preds = %17
store i32 1, ptr %6, align 4
br label %37
26: ; preds = %17
%27 = load i32, ptr %8, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [3 x %struct.option], ptr @lib_common_option_handling.long_options, i64 0, i64 %28
%30 = getelementptr inbounds %struct.option, ptr %29, i32 0, i32 2
%31 = load i32, ptr %30, align 4
%32 = call i32 @strcmp(i32 noundef %31, ptr noundef @.str.1)
%33 = icmp ne i32 %32, 0
br i1 %33, label %36, label %34
34: ; preds = %26
%35 = load ptr, ptr @optarg, align 8
store ptr %35, ptr %7, align 8
br label %36
36: ; preds = %34, %26
br label %37
37: ; preds = %36, %25
br label %40
38: ; preds = %15
%39 = call i32 @exit(i32 noundef 0) #3
unreachable
40: ; preds = %37
store i32 0, ptr %8, align 4
%41 = load i32, ptr %3, align 4
%42 = load ptr, ptr %4, align 8
%43 = call i32 @getopt_long(i32 noundef %41, ptr noundef %42, ptr noundef @.str.2, ptr noundef @lib_common_option_handling.long_options, ptr noundef %8)
store i32 %43, ptr %5, align 4
%44 = load i32, ptr %5, align 4
%45 = icmp eq i32 %44, -1
br i1 %45, label %._crit_edge, label %15
46: ; preds = %14
%47 = load ptr, ptr %7, align 8
%48 = icmp eq ptr %47, null
br i1 %48, label %49, label %52
49: ; preds = %46
%50 = call i32 @printf(ptr noundef @.str.3)
%51 = call i32 @exit(i32 noundef 1) #3
unreachable
52: ; preds = %46
%53 = load ptr, ptr %7, align 8
%54 = call i32 @config_load(ptr noundef %53)
%55 = icmp ne i32 %54, 0
br i1 %55, label %59, label %56
56: ; preds = %52
%57 = call i32 @printf(ptr noundef @.str.4)
%58 = call i32 @exit(i32 noundef 0) #3
unreachable
59: ; preds = %52
%60 = load i32, ptr %6, align 4
%61 = icmp ne i32 %60, 0
br i1 %61, label %64, label %62
62: ; preds = %59
%63 = call i32 @daemon(i32 noundef 0, i32 noundef 0)
br label %64
64: ; preds = %62, %59
ret void
}
declare i32 @getopt_long(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @strcmp(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef) #1
declare i32 @config_load(ptr noundef) #1
declare i32 @daemon(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphzv2ke7a.c'
source_filename = "/tmp/tmphzv2ke7a.c"
target datalayout = "e-m:e-p270: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/tmphzv2ke7a.c"
target datalayout = "e-m:e-p270: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/tmpofzn9our.c'
source_filename = "/tmp/tmpofzn9our.c"
target datalayout = "e-m:e-p270: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.expected = private unnamed_addr constant [20 x i8] c"10/11/2011 10:11:12\00", align 16
@.str = private unnamed_addr constant [27 x i8] c"10 Nov 2011 10:11:12 -0000\00", align 1
@.str.1 = private unnamed_addr constant [38 x i8] c"Thu, 10 Nov 2011 10:11:12 -0000 (CET)\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c"Thu, 10 Nov 2011 10:11:12 +0000\00", align 1
@.str.3 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [20 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.main.expected, i64 20, i1 false)
%8 = load ptr, ptr %5, align 8
%9 = getelementptr inbounds ptr, ptr %8, i64 0
%10 = load ptr, ptr %9, align 8
%11 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%12 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%13 = call i64 @_date(ptr noundef %10, ptr noundef %11, ptr noundef %12)
%14 = load i32, ptr %6, align 4
%15 = sext i32 %14 to i64
%16 = add nsw i64 %15, %13
%17 = trunc i64 %16 to i32
store i32 %17, ptr %6, align 4
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 0
%20 = load ptr, ptr %19, align 8
%21 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%22 = call i64 @_date(ptr noundef %20, ptr noundef %21, ptr noundef @.str)
%23 = load i32, ptr %6, align 4
%24 = sext i32 %23 to i64
%25 = add nsw i64 %24, %22
%26 = trunc i64 %25 to i32
store i32 %26, ptr %6, align 4
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 0
%29 = load ptr, ptr %28, align 8
%30 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%31 = call i64 @_date(ptr noundef %29, ptr noundef %30, ptr noundef @.str.1)
%32 = load i32, ptr %6, align 4
%33 = sext i32 %32 to i64
%34 = add nsw i64 %33, %31
%35 = trunc i64 %34 to i32
store i32 %35, ptr %6, align 4
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds ptr, ptr %36, i64 0
%38 = load ptr, ptr %37, align 8
%39 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%40 = call i64 @_date(ptr noundef %38, ptr noundef %39, ptr noundef @.str.2)
%41 = load i32, ptr %6, align 4
%42 = sext i32 %41 to i64
%43 = add nsw i64 %42, %40
%44 = trunc i64 %43 to i32
store i32 %44, ptr %6, align 4
%45 = load ptr, ptr %5, align 8
%46 = getelementptr inbounds ptr, ptr %45, i64 0
%47 = load ptr, ptr %46, align 8
%48 = call i64 @_date(ptr noundef %47, ptr noundef null, ptr noundef @.str.3)
%49 = load i32, ptr %6, align 4
%50 = sext i32 %49 to i64
%51 = add nsw i64 %50, %48
%52 = trunc i64 %51 to i32
store i32 %52, ptr %6, align 4
%53 = load ptr, ptr %5, align 8
%54 = getelementptr inbounds ptr, ptr %53, i64 0
%55 = load ptr, ptr %54, align 8
%56 = call i64 @_date(ptr noundef %55, ptr noundef null, ptr noundef null)
%57 = load i32, ptr %6, align 4
%58 = sext i32 %57 to i64
%59 = add nsw i64 %58, %56
%60 = trunc i64 %59 to i32
store i32 %60, ptr %6, align 4
%61 = load i32, ptr %6, align 4
%62 = icmp eq i32 %61, 0
br i1 %62, label %63, label %64
63: ; preds = %2
br label %67
64: ; preds = %2
%65 = load i32, ptr %6, align 4
%66 = add nsw i32 %65, 1
br label %67
67: ; preds = %64, %63
%68 = phi i32 [ 0, %63 ], [ %66, %64 ]
ret i32 %68
}
; 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 @_date(ptr noundef, ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpofzn9our.c"
target datalayout = "e-m:e-p270: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.expected = private unnamed_addr constant [20 x i8] c"10/11/2011 10:11:12\00", align 16
@.str = private unnamed_addr constant [27 x i8] c"10 Nov 2011 10:11:12 -0000\00", align 1
@.str.1 = private unnamed_addr constant [38 x i8] c"Thu, 10 Nov 2011 10:11:12 -0000 (CET)\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c"Thu, 10 Nov 2011 10:11:12 +0000\00", align 1
@.str.3 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [20 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.main.expected, i64 20, i1 false)
%8 = load ptr, ptr %5, align 8
%9 = getelementptr inbounds ptr, ptr %8, i64 0
%10 = load ptr, ptr %9, align 8
%11 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%12 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%13 = call i64 @_date(ptr noundef %10, ptr noundef %11, ptr noundef %12)
%14 = load i32, ptr %6, align 4
%15 = sext i32 %14 to i64
%16 = add nsw i64 %15, %13
%17 = trunc i64 %16 to i32
store i32 %17, ptr %6, align 4
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 0
%20 = load ptr, ptr %19, align 8
%21 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%22 = call i64 @_date(ptr noundef %20, ptr noundef %21, ptr noundef @.str)
%23 = load i32, ptr %6, align 4
%24 = sext i32 %23 to i64
%25 = add nsw i64 %24, %22
%26 = trunc i64 %25 to i32
store i32 %26, ptr %6, align 4
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 0
%29 = load ptr, ptr %28, align 8
%30 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%31 = call i64 @_date(ptr noundef %29, ptr noundef %30, ptr noundef @.str.1)
%32 = load i32, ptr %6, align 4
%33 = sext i32 %32 to i64
%34 = add nsw i64 %33, %31
%35 = trunc i64 %34 to i32
store i32 %35, ptr %6, align 4
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds ptr, ptr %36, i64 0
%38 = load ptr, ptr %37, align 8
%39 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%40 = call i64 @_date(ptr noundef %38, ptr noundef %39, ptr noundef @.str.2)
%41 = load i32, ptr %6, align 4
%42 = sext i32 %41 to i64
%43 = add nsw i64 %42, %40
%44 = trunc i64 %43 to i32
store i32 %44, ptr %6, align 4
%45 = load ptr, ptr %5, align 8
%46 = getelementptr inbounds ptr, ptr %45, i64 0
%47 = load ptr, ptr %46, align 8
%48 = call i64 @_date(ptr noundef %47, ptr noundef null, ptr noundef @.str.3)
%49 = load i32, ptr %6, align 4
%50 = sext i32 %49 to i64
%51 = add nsw i64 %50, %48
%52 = trunc i64 %51 to i32
store i32 %52, ptr %6, align 4
%53 = load ptr, ptr %5, align 8
%54 = getelementptr inbounds ptr, ptr %53, i64 0
%55 = load ptr, ptr %54, align 8
%56 = call i64 @_date(ptr noundef %55, ptr noundef null, ptr noundef null)
%57 = load i32, ptr %6, align 4
%58 = sext i32 %57 to i64
%59 = add nsw i64 %58, %56
%60 = trunc i64 %59 to i32
store i32 %60, ptr %6, align 4
%61 = load i32, ptr %6, align 4
%62 = icmp eq i32 %61, 0
br i1 %62, label %63, label %64
63: ; preds = %2
br label %67
64: ; preds = %2
%65 = load i32, ptr %6, align 4
%66 = add nsw i32 %65, 1
br label %67
67: ; preds = %64, %63
%68 = phi i32 [ 0, %63 ], [ %66, %64 ]
ret i32 %68
}
; 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 @_date(ptr noundef, ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9k23spfd.c'
source_filename = "/tmp/tmp9k23spfd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"NO ISA 2.07 SUPPORT\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/tmp9k23spfd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"NO ISA 2.07 SUPPORT\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/tmpvlzbt5hg.c'
source_filename = "/tmp/tmpvlzbt5hg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @x86_stepping(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = and i32 %3, 15
ret i32 %4
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvlzbt5hg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @x86_stepping(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = and i32 %3, 15
ret i32 %4
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE 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_hbnfvkt.c'
source_filename = "/tmp/tmp_hbnfvkt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"error writing %lld bytes: %s\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"error writing %lld bytes\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @util_must_gzwrite(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%8 = load i32, ptr %4, align 4
%9 = load ptr, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = call i64 @gzwrite(i32 noundef %8, ptr noundef %9, i64 noundef %10)
%12 = load i64, ptr %6, align 8
%13 = icmp ne i64 %11, %12
br i1 %13, label %14, label %27
14: ; preds = %3
%15 = load i32, ptr %4, align 4
%16 = call i64 @gzerror(i32 noundef %15, ptr noundef %7)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %23
18: ; preds = %14
%19 = load i64, ptr %6, align 8
%20 = load i32, ptr %4, align 4
%21 = call i64 @gzerror(i32 noundef %20, ptr noundef %7)
%22 = call i32 (ptr, i64, ...) @my_err(ptr noundef @.str, i64 noundef %19, i64 noundef %21)
br label %26
23: ; preds = %14
%24 = load i64, ptr %6, align 8
%25 = call i32 (ptr, i64, ...) @my_err(ptr noundef @.str.1, i64 noundef %24)
br label %26
26: ; preds = %23, %18
br label %27
27: ; preds = %26, %3
ret void
}
declare i64 @gzwrite(i32 noundef, ptr noundef, i64 noundef) #1
declare i64 @gzerror(i32 noundef, ptr noundef) #1
declare i32 @my_err(ptr noundef, i64 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_hbnfvkt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"error writing %lld bytes: %s\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"error writing %lld bytes\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @util_must_gzwrite(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%8 = load i32, ptr %4, align 4
%9 = load ptr, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = call i64 @gzwrite(i32 noundef %8, ptr noundef %9, i64 noundef %10)
%12 = load i64, ptr %6, align 8
%13 = icmp ne i64 %11, %12
br i1 %13, label %14, label %27
14: ; preds = %3
%15 = load i32, ptr %4, align 4
%16 = call i64 @gzerror(i32 noundef %15, ptr noundef %7)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %23
18: ; preds = %14
%19 = load i64, ptr %6, align 8
%20 = load i32, ptr %4, align 4
%21 = call i64 @gzerror(i32 noundef %20, ptr noundef %7)
%22 = call i32 (ptr, i64, ...) @my_err(ptr noundef @.str, i64 noundef %19, i64 noundef %21)
br label %26
23: ; preds = %14
%24 = load i64, ptr %6, align 8
%25 = call i32 (ptr, i64, ...) @my_err(ptr noundef @.str.1, i64 noundef %24)
br label %26
26: ; preds = %23, %18
br label %27
27: ; preds = %26, %3
ret void
}
declare i64 @gzwrite(i32 noundef, ptr noundef, i64 noundef) #1
declare i64 @gzerror(i32 noundef, ptr noundef) #1
declare i32 @my_err(ptr noundef, i64 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmph190jn0m.c'
source_filename = "/tmp/tmph190jn0m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@RAND_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @shuffle(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
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp sgt i32 %8, 1
br i1 %9, label %10, label %50
10: ; preds = %2
store i32 0, ptr %5, align 4
br label %11
11: ; preds = %46, %10
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %4, align 4
%14 = sub nsw i32 %13, 1
%15 = icmp slt i32 %12, %14
br i1 %15, label %16, label %49
16: ; preds = %11
%17 = load i32, ptr %5, align 4
%18 = call i32 (...) @rand()
%19 = load i32, ptr @RAND_MAX, align 4
%20 = load i32, ptr %4, align 4
%21 = load i32, ptr %5, align 4
%22 = sub nsw i32 %20, %21
%23 = sdiv i32 %19, %22
%24 = add nsw i32 %23, 1
%25 = sdiv i32 %18, %24
%26 = add nsw i32 %17, %25
store i32 %26, ptr %6, align 4
%27 = load ptr, ptr %3, align 8
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i32, ptr %27, i64 %29
%31 = load i32, ptr %30, align 4
store i32 %31, ptr %7, align 4
%32 = load ptr, ptr %3, align 8
%33 = load i32, ptr %5, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %32, i64 %34
%36 = load i32, ptr %35, align 4
%37 = load ptr, ptr %3, align 8
%38 = load i32, ptr %6, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i32, ptr %37, i64 %39
store i32 %36, ptr %40, align 4
%41 = load i32, ptr %7, align 4
%42 = load ptr, ptr %3, align 8
%43 = load i32, ptr %5, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i32, ptr %42, i64 %44
store i32 %41, ptr %45, align 4
br label %46
46: ; preds = %16
%47 = load i32, ptr %5, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %5, align 4
br label %11, !llvm.loop !6
49: ; preds = %11
br label %50
50: ; preds = %49, %2
ret void
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmph190jn0m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@RAND_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @shuffle(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
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp sgt i32 %8, 1
br i1 %9, label %10, label %53
10: ; preds = %2
store i32 0, ptr %5, align 4
%11 = load i32, ptr %5, align 4
%12 = load i32, ptr %4, align 4
%13 = sub nsw i32 %12, 1
%14 = icmp slt i32 %11, %13
br i1 %14, label %.lr.ph, label %52
.lr.ph: ; preds = %10
br label %15
15: ; preds = %.lr.ph, %45
%16 = load i32, ptr %5, align 4
%17 = call i32 (...) @rand()
%18 = load i32, ptr @RAND_MAX, align 4
%19 = load i32, ptr %4, align 4
%20 = load i32, ptr %5, align 4
%21 = sub nsw i32 %19, %20
%22 = sdiv i32 %18, %21
%23 = add nsw i32 %22, 1
%24 = sdiv i32 %17, %23
%25 = add nsw i32 %16, %24
store i32 %25, ptr %6, align 4
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %6, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i32, ptr %26, i64 %28
%30 = load i32, ptr %29, align 4
store i32 %30, ptr %7, align 4
%31 = load ptr, ptr %3, align 8
%32 = load i32, ptr %5, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %31, i64 %33
%35 = load i32, ptr %34, align 4
%36 = load ptr, ptr %3, align 8
%37 = load i32, ptr %6, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i32, ptr %36, i64 %38
store i32 %35, ptr %39, align 4
%40 = load i32, ptr %7, align 4
%41 = load ptr, ptr %3, align 8
%42 = load i32, ptr %5, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
store i32 %40, ptr %44, align 4
br label %45
45: ; preds = %15
%46 = load i32, ptr %5, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %5, align 4
%48 = load i32, ptr %5, align 4
%49 = load i32, ptr %4, align 4
%50 = sub nsw i32 %49, 1
%51 = icmp slt i32 %48, %50
br i1 %51, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %45
br label %52
52: ; preds = %._crit_edge, %10
br label %53
53: ; preds = %52, %2
ret void
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpqrsoille.c'
source_filename = "/tmp/tmpqrsoille.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @extract_string_from_line_without_exit(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 ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i8 %2, ptr %7, align 1
%11 = load ptr, ptr %5, align 8
%12 = load ptr, ptr %6, align 8
%13 = call ptr @strstr(ptr noundef %11, ptr noundef %12)
store ptr %13, ptr %5, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %16, label %15
15: ; preds = %3
store ptr null, ptr %4, align 8
br label %52
16: ; preds = %3
%17 = load ptr, ptr %5, align 8
%18 = load ptr, ptr %6, align 8
%19 = call ptr @strstr(ptr noundef %17, ptr noundef %18)
%20 = load ptr, ptr %6, align 8
%21 = call i32 @strlen(ptr noundef %20)
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %19, i64 %22
store ptr %23, ptr %8, align 8
%24 = load ptr, ptr %8, align 8
%25 = load i8, ptr %7, align 1
%26 = call ptr @strchr(ptr noundef %24, i8 noundef signext %25)
store ptr %26, ptr %9, align 8
%27 = load ptr, ptr %9, align 8
%28 = load ptr, ptr %8, align 8
%29 = ptrtoint ptr %27 to i64
%30 = ptrtoint ptr %28 to i64
%31 = sub i64 %29, %30
%32 = add nsw i64 %31, 1
%33 = mul i64 %32, 1
%34 = call ptr @easy_malloc(i64 noundef %33)
store ptr %34, ptr %10, align 8
%35 = load ptr, ptr %10, align 8
%36 = load ptr, ptr %8, align 8
%37 = load ptr, ptr %9, align 8
%38 = load ptr, ptr %8, align 8
%39 = ptrtoint ptr %37 to i64
%40 = ptrtoint ptr %38 to i64
%41 = sub i64 %39, %40
%42 = mul i64 %41, 1
%43 = call i32 @memcpy(ptr noundef %35, ptr noundef %36, i64 noundef %42)
%44 = load ptr, ptr %10, align 8
%45 = load ptr, ptr %9, align 8
%46 = load ptr, ptr %8, align 8
%47 = ptrtoint ptr %45 to i64
%48 = ptrtoint ptr %46 to i64
%49 = sub i64 %47, %48
%50 = getelementptr inbounds i8, ptr %44, i64 %49
store i8 0, ptr %50, align 1
%51 = load ptr, ptr %10, align 8
store ptr %51, ptr %4, align 8
br label %52
52: ; preds = %16, %15
%53 = load ptr, ptr %4, align 8
ret ptr %53
}
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare ptr @easy_malloc(i64 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqrsoille.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @extract_string_from_line_without_exit(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 ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i8 %2, ptr %7, align 1
%11 = load ptr, ptr %5, align 8
%12 = load ptr, ptr %6, align 8
%13 = call ptr @strstr(ptr noundef %11, ptr noundef %12)
store ptr %13, ptr %5, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %16, label %15
15: ; preds = %3
store ptr null, ptr %4, align 8
br label %52
16: ; preds = %3
%17 = load ptr, ptr %5, align 8
%18 = load ptr, ptr %6, align 8
%19 = call ptr @strstr(ptr noundef %17, ptr noundef %18)
%20 = load ptr, ptr %6, align 8
%21 = call i32 @strlen(ptr noundef %20)
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %19, i64 %22
store ptr %23, ptr %8, align 8
%24 = load ptr, ptr %8, align 8
%25 = load i8, ptr %7, align 1
%26 = call ptr @strchr(ptr noundef %24, i8 noundef signext %25)
store ptr %26, ptr %9, align 8
%27 = load ptr, ptr %9, align 8
%28 = load ptr, ptr %8, align 8
%29 = ptrtoint ptr %27 to i64
%30 = ptrtoint ptr %28 to i64
%31 = sub i64 %29, %30
%32 = add nsw i64 %31, 1
%33 = mul i64 %32, 1
%34 = call ptr @easy_malloc(i64 noundef %33)
store ptr %34, ptr %10, align 8
%35 = load ptr, ptr %10, align 8
%36 = load ptr, ptr %8, align 8
%37 = load ptr, ptr %9, align 8
%38 = load ptr, ptr %8, align 8
%39 = ptrtoint ptr %37 to i64
%40 = ptrtoint ptr %38 to i64
%41 = sub i64 %39, %40
%42 = mul i64 %41, 1
%43 = call i32 @memcpy(ptr noundef %35, ptr noundef %36, i64 noundef %42)
%44 = load ptr, ptr %10, align 8
%45 = load ptr, ptr %9, align 8
%46 = load ptr, ptr %8, align 8
%47 = ptrtoint ptr %45 to i64
%48 = ptrtoint ptr %46 to i64
%49 = sub i64 %47, %48
%50 = getelementptr inbounds i8, ptr %44, i64 %49
store i8 0, ptr %50, align 1
%51 = load ptr, ptr %10, align 8
store ptr %51, ptr %4, align 8
br label %52
52: ; preds = %16, %15
%53 = load ptr, ptr %4, align 8
ret ptr %53
}
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare ptr @easy_malloc(i64 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpewtcok7r.c'
source_filename = "/tmp/tmpewtcok7r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @VH_HLine(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %7, align 4
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %5, align 4
%13 = sub nsw i32 %11, %12
%14 = add nsw i32 %13, 1
%15 = load i32, ptr %8, align 4
%16 = call i32 @VL_ScreenRect(i32 noundef %9, i32 noundef %10, i32 noundef %14, i32 noundef 1, i32 noundef %15)
ret void
}
declare i32 @VL_ScreenRect(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpewtcok7r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @VH_HLine(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %7, align 4
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %5, align 4
%13 = sub nsw i32 %11, %12
%14 = add nsw i32 %13, 1
%15 = load i32, ptr %8, align 4
%16 = call i32 @VL_ScreenRect(i32 noundef %9, i32 noundef %10, i32 noundef %14, i32 noundef 1, i32 noundef %15)
ret void
}
declare i32 @VL_ScreenRect(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgcxetosi.c'
source_filename = "/tmp/tmpgcxetosi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ElasticEaseOut(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 %3, 1.000000e+00
%5 = fpext float %4 to double
%6 = fmul double 0xC0346B9C347764A4, %5
%7 = fptosi double %6 to i32
%8 = call i32 @sin(i32 noundef %7)
%9 = load float, ptr %2, align 4
%10 = fmul float -1.000000e+01, %9
%11 = fptosi float %10 to i32
%12 = call i32 @pow(i32 noundef 2, i32 noundef %11)
%13 = mul nsw i32 %8, %12
%14 = add nsw i32 %13, 1
%15 = sitofp i32 %14 to float
ret float %15
}
declare i32 @sin(i32 noundef) #1
declare i32 @pow(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/tmpgcxetosi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ElasticEaseOut(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 %3, 1.000000e+00
%5 = fpext float %4 to double
%6 = fmul double 0xC0346B9C347764A4, %5
%7 = fptosi double %6 to i32
%8 = call i32 @sin(i32 noundef %7)
%9 = load float, ptr %2, align 4
%10 = fmul float -1.000000e+01, %9
%11 = fptosi float %10 to i32
%12 = call i32 @pow(i32 noundef 2, i32 noundef %11)
%13 = mul nsw i32 %8, %12
%14 = add nsw i32 %13, 1
%15 = sitofp i32 %14 to float
ret float %15
}
declare i32 @sin(i32 noundef) #1
declare i32 @pow(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/tmp5s8r_j9y.c'
source_filename = "/tmp/tmp5s8r_j9y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"requested humongous malloc!!!!!!!!\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"Malloc failed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @malloc_wrapper(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp sgt i32 %4, 8192
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 @abort_crypto_lib(ptr noundef @.str)
br label %8
8: ; preds = %6, %1
%9 = load i32, ptr %2, align 4
%10 = call ptr @malloc(i32 noundef %9)
store ptr %10, ptr %3, align 8
%11 = load ptr, ptr %3, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %15
13: ; preds = %8
%14 = call i32 @abort_crypto_lib(ptr noundef @.str.1)
br label %15
15: ; preds = %13, %8
%16 = load ptr, ptr %3, align 8
ret ptr %16
}
declare i32 @abort_crypto_lib(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5s8r_j9y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"requested humongous malloc!!!!!!!!\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"Malloc failed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @malloc_wrapper(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp sgt i32 %4, 8192
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 @abort_crypto_lib(ptr noundef @.str)
br label %8
8: ; preds = %6, %1
%9 = load i32, ptr %2, align 4
%10 = call ptr @malloc(i32 noundef %9)
store ptr %10, ptr %3, align 8
%11 = load ptr, ptr %3, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %15
13: ; preds = %8
%14 = call i32 @abort_crypto_lib(ptr noundef @.str.1)
br label %15
15: ; preds = %13, %8
%16 = load ptr, ptr %3, align 8
ret ptr %16
}
declare i32 @abort_crypto_lib(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9lyzoaxf.c'
source_filename = "/tmp/tmp9lyzoaxf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"now in f.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @f() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9lyzoaxf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"now in f.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @f() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmx64ram0.c'
source_filename = "/tmp/tmpmx64ram0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @__set_errno(i32 noundef 0)
%3 = call i32 (...) @foo()
ret i32 0
}
declare i32 @__set_errno(i32 noundef) #1
declare i32 @foo(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmx64ram0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @__set_errno(i32 noundef 0)
%3 = call i32 (...) @foo()
ret i32 0
}
declare i32 @__set_errno(i32 noundef) #1
declare i32 @foo(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl97tnfnm.c'
source_filename = "/tmp/tmpl97tnfnm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"I am %d years old. \0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"I am %d inches tall.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 10, ptr %2, align 4
store i32 72, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
%6 = load i32, ptr %3, align 4
%7 = call i32 @printf(ptr noundef @.str.1, i32 noundef %6)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl97tnfnm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"I am %d years old. \0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"I am %d inches tall.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 10, ptr %2, align 4
store i32 72, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
%6 = load i32, ptr %3, align 4
%7 = call i32 @printf(ptr noundef @.str.1, i32 noundef %6)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpud42t9jr.c'
source_filename = "/tmp/tmpud42t9jr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ft_strnjoin(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%12 = load ptr, ptr %5, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %17, label %14
14: ; preds = %3
%15 = load ptr, ptr %6, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %18
17: ; preds = %14, %3
store ptr null, ptr %4, align 8
br label %80
18: ; preds = %14
%19 = load ptr, ptr %5, align 8
%20 = call i32 @ft_strlen(ptr noundef %19)
%21 = load ptr, ptr %6, align 8
%22 = call i32 @ft_strlen(ptr noundef %21)
%23 = add nsw i32 %20, %22
%24 = add nsw i32 %23, 1
%25 = sext i32 %24 to i64
store i64 %25, ptr %10, align 8
%26 = load i64, ptr %10, align 8
%27 = call ptr @ft_strnew(i64 noundef %26)
store ptr %27, ptr %11, align 8
%28 = load ptr, ptr %11, align 8
%29 = icmp ne ptr %28, null
br i1 %29, label %30, label %79
30: ; preds = %18
br label %31
31: ; preds = %38, %30
%32 = load ptr, ptr %5, align 8
%33 = load i32, ptr %8, align 4
%34 = zext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
%36 = load i8, ptr %35, align 1
%37 = icmp ne i8 %36, 0
br i1 %37, label %38, label %50
38: ; preds = %31
%39 = load ptr, ptr %5, align 8
%40 = load i32, ptr %8, align 4
%41 = add i32 %40, 1
store i32 %41, ptr %8, align 4
%42 = zext i32 %40 to i64
%43 = getelementptr inbounds i8, ptr %39, i64 %42
%44 = load i8, ptr %43, align 1
%45 = load ptr, ptr %11, align 8
%46 = load i32, ptr %9, align 4
%47 = add i32 %46, 1
store i32 %47, ptr %9, align 4
%48 = zext i32 %46 to i64
%49 = getelementptr inbounds i8, ptr %45, i64 %48
store i8 %44, ptr %49, align 1
br label %31, !llvm.loop !6
50: ; preds = %31
store i32 0, ptr %8, align 4
br label %51
51: ; preds = %65, %50
%52 = load ptr, ptr %6, align 8
%53 = load i32, ptr %8, align 4
%54 = zext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = icmp ne i32 %57, 0
br i1 %58, label %59, label %63
59: ; preds = %51
%60 = load i32, ptr %8, align 4
%61 = load i32, ptr %7, align 4
%62 = icmp ult i32 %60, %61
br label %63
63: ; preds = %59, %51
%64 = phi i1 [ false, %51 ], [ %62, %59 ]
br i1 %64, label %65, label %77
65: ; preds = %63
%66 = load ptr, ptr %6, align 8
%67 = load i32, ptr %8, align 4
%68 = add i32 %67, 1
store i32 %68, ptr %8, align 4
%69 = zext i32 %67 to i64
%70 = getelementptr inbounds i8, ptr %66, i64 %69
%71 = load i8, ptr %70, align 1
%72 = load ptr, ptr %11, align 8
%73 = load i32, ptr %9, align 4
%74 = add i32 %73, 1
store i32 %74, ptr %9, align 4
%75 = zext i32 %73 to i64
%76 = getelementptr inbounds i8, ptr %72, i64 %75
store i8 %71, ptr %76, align 1
br label %51, !llvm.loop !8
77: ; preds = %63
%78 = load ptr, ptr %11, align 8
store ptr %78, ptr %4, align 8
br label %80
79: ; preds = %18
store ptr null, ptr %4, align 8
br label %80
80: ; preds = %79, %77, %17
%81 = load ptr, ptr %4, align 8
ret ptr %81
}
declare i32 @ft_strlen(ptr noundef) #1
declare ptr @ft_strnew(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpud42t9jr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ft_strnjoin(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%12 = load ptr, ptr %5, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %17, label %14
14: ; preds = %3
%15 = load ptr, ptr %6, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %18
17: ; preds = %14, %3
store ptr null, ptr %4, align 8
br label %85
18: ; preds = %14
%19 = load ptr, ptr %5, align 8
%20 = call i32 @ft_strlen(ptr noundef %19)
%21 = load ptr, ptr %6, align 8
%22 = call i32 @ft_strlen(ptr noundef %21)
%23 = add nsw i32 %20, %22
%24 = add nsw i32 %23, 1
%25 = sext i32 %24 to i64
store i64 %25, ptr %10, align 8
%26 = load i64, ptr %10, align 8
%27 = call ptr @ft_strnew(i64 noundef %26)
store ptr %27, ptr %11, align 8
%28 = load ptr, ptr %11, align 8
%29 = icmp ne ptr %28, null
br i1 %29, label %30, label %84
30: ; preds = %18
%31 = load ptr, ptr %5, align 8
%32 = load i32, ptr %8, align 4
%33 = zext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, i64 %33
%35 = load i8, ptr %34, align 1
%36 = icmp ne i8 %35, 0
br i1 %36, label %.lr.ph, label %55
.lr.ph: ; preds = %30
br label %37
37: ; preds = %.lr.ph, %37
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr %8, align 4
%40 = add i32 %39, 1
store i32 %40, ptr %8, align 4
%41 = zext i32 %39 to i64
%42 = getelementptr inbounds i8, ptr %38, i64 %41
%43 = load i8, ptr %42, align 1
%44 = load ptr, ptr %11, align 8
%45 = load i32, ptr %9, align 4
%46 = add i32 %45, 1
store i32 %46, ptr %9, align 4
%47 = zext i32 %45 to i64
%48 = getelementptr inbounds i8, ptr %44, i64 %47
store i8 %43, ptr %48, align 1
%49 = load ptr, ptr %5, align 8
%50 = load i32, ptr %8, align 4
%51 = zext i32 %50 to i64
%52 = getelementptr inbounds i8, ptr %49, i64 %51
%53 = load i8, ptr %52, align 1
%54 = icmp ne i8 %53, 0
br i1 %54, label %37, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %55
55: ; preds = %._crit_edge, %30
store i32 0, ptr %8, align 4
br label %56
56: ; preds = %70, %55
%57 = load ptr, ptr %6, align 8
%58 = load i32, ptr %8, align 4
%59 = zext i32 %58 to i64
%60 = getelementptr inbounds i8, ptr %57, i64 %59
%61 = load i8, ptr %60, align 1
%62 = sext i8 %61 to i32
%63 = icmp ne i32 %62, 0
br i1 %63, label %64, label %68
64: ; preds = %56
%65 = load i32, ptr %8, align 4
%66 = load i32, ptr %7, align 4
%67 = icmp ult i32 %65, %66
br label %68
68: ; preds = %64, %56
%69 = phi i1 [ false, %56 ], [ %67, %64 ]
br i1 %69, label %70, label %82
70: ; preds = %68
%71 = load ptr, ptr %6, align 8
%72 = load i32, ptr %8, align 4
%73 = add i32 %72, 1
store i32 %73, ptr %8, align 4
%74 = zext i32 %72 to i64
%75 = getelementptr inbounds i8, ptr %71, i64 %74
%76 = load i8, ptr %75, align 1
%77 = load ptr, ptr %11, align 8
%78 = load i32, ptr %9, align 4
%79 = add i32 %78, 1
store i32 %79, ptr %9, align 4
%80 = zext i32 %78 to i64
%81 = getelementptr inbounds i8, ptr %77, i64 %80
store i8 %76, ptr %81, align 1
br label %56, !llvm.loop !8
82: ; preds = %68
%83 = load ptr, ptr %11, align 8
store ptr %83, ptr %4, align 8
br label %85
84: ; preds = %18
store ptr null, ptr %4, align 8
br label %85
85: ; preds = %84, %82, %17
%86 = load ptr, ptr %4, align 8
ret ptr %86
}
declare i32 @ft_strlen(ptr noundef) #1
declare ptr @ft_strnew(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpxgd3f54z.c'
source_filename = "/tmp/tmpxgd3f54z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i64 }
@.str = private unnamed_addr constant [39 x i8] c"testGetWorkingDirectory : %s : %lu ms\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @testGetWorkingDirectory() #0 {
%1 = alloca %struct.timeval, align 8
%2 = alloca %struct.timeval, align 8
%3 = alloca ptr, align 8
%4 = call i32 @gettimeofday(ptr noundef %2, ptr noundef null)
%5 = call ptr (...) @getWorkingDirectory()
store ptr %5, ptr %3, align 8
%6 = call i32 @gettimeofday(ptr noundef %1, ptr noundef null)
%7 = load ptr, ptr %3, align 8
%8 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 0
%9 = load i64, ptr %8, align 8
%10 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 0
%11 = load i64, ptr %10, align 8
%12 = sub nsw i64 %9, %11
%13 = call i32 @printf(ptr noundef @.str, ptr noundef %7, i64 noundef %12)
ret void
}
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1
declare ptr @getWorkingDirectory(...) #1
declare i32 @printf(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxgd3f54z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i64 }
@.str = private unnamed_addr constant [39 x i8] c"testGetWorkingDirectory : %s : %lu ms\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @testGetWorkingDirectory() #0 {
%1 = alloca %struct.timeval, align 8
%2 = alloca %struct.timeval, align 8
%3 = alloca ptr, align 8
%4 = call i32 @gettimeofday(ptr noundef %2, ptr noundef null)
%5 = call ptr (...) @getWorkingDirectory()
store ptr %5, ptr %3, align 8
%6 = call i32 @gettimeofday(ptr noundef %1, ptr noundef null)
%7 = load ptr, ptr %3, align 8
%8 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 0
%9 = load i64, ptr %8, align 8
%10 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 0
%11 = load i64, ptr %10, align 8
%12 = sub nsw i64 %9, %11
%13 = call i32 @printf(ptr noundef @.str, ptr noundef %7, i64 noundef %12)
ret void
}
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1
declare ptr @getWorkingDirectory(...) #1
declare i32 @printf(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfdr4cpfl.c'
source_filename = "/tmp/tmpfdr4cpfl.c"
target datalayout = "e-m:e-p270: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/tmpfdr4cpfl.c"
target datalayout = "e-m:e-p270: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/tmpxqlw83uh.c'
source_filename = "/tmp/tmpxqlw83uh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [73 x i8] c"Enter thresholds for A, B, C, D\0Ain that order, decreasing percentages > \00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"%f %f %f %f\00", align 1
@.str.2 = private unnamed_addr constant [47 x i8] c"Thank you. Now enter student score (percent) >\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.4 = private unnamed_addr constant [24 x i8] c"Student has an A grade\0A\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"Student has an B grade\0A\00", align 1
@.str.6 = private unnamed_addr constant [24 x i8] c"Student has an C grade\0A\00", align 1
@.str.7 = private unnamed_addr constant [24 x i8] c"Student has an D grade\0A\00", align 1
@.str.8 = private unnamed_addr constant [31 x i8] c"Student has failed the course\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
store i32 0, ptr %1, align 4
%7 = call i32 @printf(ptr noundef @.str)
%8 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%9 = call i32 @printf(ptr noundef @.str.2)
%10 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %6)
%11 = load float, ptr %6, align 4
%12 = load float, ptr %2, align 4
%13 = fcmp oge float %11, %12
br i1 %13, label %14, label %16
14: ; preds = %0
%15 = call i32 @printf(ptr noundef @.str.4)
br label %39
16: ; preds = %0
%17 = load float, ptr %6, align 4
%18 = load float, ptr %3, align 4
%19 = fcmp oge float %17, %18
br i1 %19, label %20, label %22
20: ; preds = %16
%21 = call i32 @printf(ptr noundef @.str.5)
br label %38
22: ; preds = %16
%23 = load float, ptr %6, align 4
%24 = load float, ptr %4, align 4
%25 = fcmp oge float %23, %24
br i1 %25, label %26, label %28
26: ; preds = %22
%27 = call i32 @printf(ptr noundef @.str.6)
br label %37
28: ; preds = %22
%29 = load float, ptr %6, align 4
%30 = load float, ptr %5, align 4
%31 = fcmp oge float %29, %30
br i1 %31, label %32, label %34
32: ; preds = %28
%33 = call i32 @printf(ptr noundef @.str.7)
br label %36
34: ; preds = %28
%35 = call i32 @printf(ptr noundef @.str.8)
br label %36
36: ; preds = %34, %32
br label %37
37: ; preds = %36, %26
br label %38
38: ; preds = %37, %20
br label %39
39: ; preds = %38, %14
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/tmpxqlw83uh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [73 x i8] c"Enter thresholds for A, B, C, D\0Ain that order, decreasing percentages > \00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"%f %f %f %f\00", align 1
@.str.2 = private unnamed_addr constant [47 x i8] c"Thank you. Now enter student score (percent) >\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.4 = private unnamed_addr constant [24 x i8] c"Student has an A grade\0A\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"Student has an B grade\0A\00", align 1
@.str.6 = private unnamed_addr constant [24 x i8] c"Student has an C grade\0A\00", align 1
@.str.7 = private unnamed_addr constant [24 x i8] c"Student has an D grade\0A\00", align 1
@.str.8 = private unnamed_addr constant [31 x i8] c"Student has failed the course\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
store i32 0, ptr %1, align 4
%7 = call i32 @printf(ptr noundef @.str)
%8 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%9 = call i32 @printf(ptr noundef @.str.2)
%10 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %6)
%11 = load float, ptr %6, align 4
%12 = load float, ptr %2, align 4
%13 = fcmp oge float %11, %12
br i1 %13, label %14, label %16
14: ; preds = %0
%15 = call i32 @printf(ptr noundef @.str.4)
br label %39
16: ; preds = %0
%17 = load float, ptr %6, align 4
%18 = load float, ptr %3, align 4
%19 = fcmp oge float %17, %18
br i1 %19, label %20, label %22
20: ; preds = %16
%21 = call i32 @printf(ptr noundef @.str.5)
br label %38
22: ; preds = %16
%23 = load float, ptr %6, align 4
%24 = load float, ptr %4, align 4
%25 = fcmp oge float %23, %24
br i1 %25, label %26, label %28
26: ; preds = %22
%27 = call i32 @printf(ptr noundef @.str.6)
br label %37
28: ; preds = %22
%29 = load float, ptr %6, align 4
%30 = load float, ptr %5, align 4
%31 = fcmp oge float %29, %30
br i1 %31, label %32, label %34
32: ; preds = %28
%33 = call i32 @printf(ptr noundef @.str.7)
br label %36
34: ; preds = %28
%35 = call i32 @printf(ptr noundef @.str.8)
br label %36
36: ; preds = %34, %32
br label %37
37: ; preds = %36, %26
br label %38
38: ; preds = %37, %20
br label %39
39: ; preds = %38, %14
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/tmpnohw1e85.c'
source_filename = "/tmp/tmpnohw1e85.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @plot_hexagon(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 [6 x float], align 16
%8 = alloca [6 x float], align 16
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca float, align 4
%13 = alloca i8, align 1
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%14 = getelementptr inbounds [6 x float], ptr %7, i64 0, i64 0
store float 0.000000e+00, ptr %14, align 16
%15 = getelementptr inbounds [6 x float], ptr %7, i64 0, i64 1
store float 0x3FEB851EC0000000, ptr %15, align 4
%16 = getelementptr inbounds [6 x float], ptr %7, i64 0, i64 2
store float 0x3FEB851EC0000000, ptr %16, align 8
%17 = getelementptr inbounds [6 x float], ptr %7, i64 0, i64 3
store float 0.000000e+00, ptr %17, align 4
%18 = getelementptr inbounds [6 x float], ptr %7, i64 0, i64 4
store float 0xBFEB851EC0000000, ptr %18, align 16
%19 = getelementptr inbounds [6 x float], ptr %7, i64 0, i64 5
store float 0xBFEB851EC0000000, ptr %19, align 4
%20 = getelementptr inbounds [6 x float], ptr %8, i64 0, i64 0
store float 1.000000e+00, ptr %20, align 16
%21 = getelementptr inbounds [6 x float], ptr %8, i64 0, i64 1
store float 5.000000e-01, ptr %21, align 4
%22 = getelementptr inbounds [6 x float], ptr %8, i64 0, i64 2
store float -5.000000e-01, ptr %22, align 8
%23 = getelementptr inbounds [6 x float], ptr %8, i64 0, i64 3
store float -1.000000e+00, ptr %23, align 4
%24 = getelementptr inbounds [6 x float], ptr %8, i64 0, i64 4
store float -5.000000e-01, ptr %24, align 16
%25 = getelementptr inbounds [6 x float], ptr %8, i64 0, i64 5
store float 5.000000e-01, ptr %25, align 4
store i32 0, ptr %5, align 4
br label %26
26: ; preds = %99, %2
%27 = load i32, ptr %5, align 4
%28 = icmp slt i32 %27, 5
br i1 %28, label %29, label %102
29: ; preds = %26
%30 = load i32, ptr %4, align 4
%31 = sitofp i32 %30 to float
%32 = fpext float %31 to double
%33 = fdiv double %32, 2.000000e+00
%34 = load i32, ptr %4, align 4
%35 = sitofp i32 %34 to float
%36 = fpext float %35 to double
%37 = fdiv double %36, 2.000000e+00
%38 = load i32, ptr %5, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [6 x float], ptr %7, i64 0, i64 %39
%41 = load float, ptr %40, align 4
%42 = fpext float %41 to double
%43 = call double @llvm.fmuladd.f64(double %37, double %42, double %33)
%44 = fptrunc double %43 to float
store float %44, ptr %9, align 4
%45 = load i32, ptr %4, align 4
%46 = sitofp i32 %45 to float
%47 = fpext float %46 to double
%48 = fdiv double %47, 2.000000e+00
%49 = load i32, ptr %4, align 4
%50 = sitofp i32 %49 to float
%51 = fpext float %50 to double
%52 = fdiv double %51, 2.000000e+00
%53 = load i32, ptr %5, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [6 x float], ptr %8, i64 0, i64 %54
%56 = load float, ptr %55, align 4
%57 = fpext float %56 to double
%58 = call double @llvm.fmuladd.f64(double %52, double %57, double %48)
%59 = fptrunc double %58 to float
store float %59, ptr %10, align 4
%60 = load i32, ptr %4, align 4
%61 = sitofp i32 %60 to float
%62 = fpext float %61 to double
%63 = fdiv double %62, 2.000000e+00
%64 = load i32, ptr %4, align 4
%65 = sitofp i32 %64 to float
%66 = fpext float %65 to double
%67 = fdiv double %66, 2.000000e+00
%68 = load i32, ptr %5, align 4
%69 = add nsw i32 %68, 1
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [6 x float], ptr %7, i64 0, i64 %70
%72 = load float, ptr %71, align 4
%73 = fpext float %72 to double
%74 = call double @llvm.fmuladd.f64(double %67, double %73, double %63)
%75 = fptrunc double %74 to float
store float %75, ptr %11, align 4
%76 = load i32, ptr %4, align 4
%77 = sitofp i32 %76 to float
%78 = fpext float %77 to double
%79 = fdiv double %78, 2.000000e+00
%80 = load i32, ptr %4, align 4
%81 = sitofp i32 %80 to float
%82 = fpext float %81 to double
%83 = fdiv double %82, 2.000000e+00
%84 = load i32, ptr %5, align 4
%85 = add nsw i32 %84, 1
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [6 x float], ptr %8, i64 0, i64 %86
%88 = load float, ptr %87, align 4
%89 = fpext float %88 to double
%90 = call double @llvm.fmuladd.f64(double %83, double %89, double %79)
%91 = fptrunc double %90 to float
store float %91, ptr %12, align 4
%92 = load ptr, ptr %3, align 8
%93 = load i32, ptr %4, align 4
%94 = load float, ptr %9, align 4
%95 = load float, ptr %10, align 4
%96 = load float, ptr %11, align 4
%97 = load float, ptr %12, align 4
%98 = call i32 @plot_hexline(ptr noundef %92, i32 noundef %93, float noundef %94, float noundef %95, float noundef %96, float noundef %97)
br label %99
99: ; preds = %29
%100 = load i32, ptr %5, align 4
%101 = add nsw i32 %100, 1
store i32 %101, ptr %5, align 4
br label %26, !llvm.loop !6
102: ; preds = %26
%103 = load i32, ptr %4, align 4
%104 = sitofp i32 %103 to float
%105 = fpext float %104 to double
%106 = fdiv double %105, 2.000000e+00
%107 = load i32, ptr %4, align 4
%108 = sitofp i32 %107 to float
%109 = fpext float %108 to double
%110 = fdiv double %109, 2.000000e+00
%111 = load i32, ptr %5, align 4
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds [6 x float], ptr %7, i64 0, i64 %112
%114 = load float, ptr %113, align 4
%115 = fpext float %114 to double
%116 = call double @llvm.fmuladd.f64(double %110, double %115, double %106)
%117 = fptrunc double %116 to float
store float %117, ptr %9, align 4
%118 = load i32, ptr %4, align 4
%119 = sitofp i32 %118 to float
%120 = fpext float %119 to double
%121 = fdiv double %120, 2.000000e+00
%122 = load i32, ptr %4, align 4
%123 = sitofp i32 %122 to float
%124 = fpext float %123 to double
%125 = fdiv double %124, 2.000000e+00
%126 = load i32, ptr %5, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds [6 x float], ptr %8, i64 0, i64 %127
%129 = load float, ptr %128, align 4
%130 = fpext float %129 to double
%131 = call double @llvm.fmuladd.f64(double %125, double %130, double %121)
%132 = fptrunc double %131 to float
store float %132, ptr %10, align 4
%133 = load i32, ptr %4, align 4
%134 = sitofp i32 %133 to float
%135 = fpext float %134 to double
%136 = fdiv double %135, 2.000000e+00
%137 = load i32, ptr %4, align 4
%138 = sitofp i32 %137 to float
%139 = fpext float %138 to double
%140 = fdiv double %139, 2.000000e+00
%141 = getelementptr inbounds [6 x float], ptr %7, i64 0, i64 0
%142 = load float, ptr %141, align 16
%143 = fpext float %142 to double
%144 = call double @llvm.fmuladd.f64(double %140, double %143, double %136)
%145 = fptrunc double %144 to float
store float %145, ptr %11, align 4
%146 = load i32, ptr %4, align 4
%147 = sitofp i32 %146 to float
%148 = fpext float %147 to double
%149 = fdiv double %148, 2.000000e+00
%150 = load i32, ptr %4, align 4
%151 = sitofp i32 %150 to float
%152 = fpext float %151 to double
%153 = fdiv double %152, 2.000000e+00
%154 = getelementptr inbounds [6 x float], ptr %8, i64 0, i64 0
%155 = load float, ptr %154, align 16
%156 = fpext float %155 to double
%157 = call double @llvm.fmuladd.f64(double %153, double %156, double %149)
%158 = fptrunc double %157 to float
store float %158, ptr %12, align 4
%159 = load ptr, ptr %3, align 8
%160 = load i32, ptr %4, align 4
%161 = load float, ptr %9, align 4
%162 = load float, ptr %10, align 4
%163 = load float, ptr %11, align 4
%164 = load float, ptr %12, align 4
%165 = call i32 @plot_hexline(ptr noundef %159, i32 noundef %160, float noundef %161, float noundef %162, float noundef %163, float noundef %164)
store i32 0, ptr %5, align 4
br label %166
166: ; preds = %214, %102
%167 = load i32, ptr %5, align 4
%168 = load i32, ptr %4, align 4
%169 = icmp slt i32 %167, %168
br i1 %169, label %170, label %217
170: ; preds = %166
store i8 48, ptr %13, align 1
store i32 0, ptr %6, align 4
br label %171
171: ; preds = %210, %170
%172 = load i32, ptr %6, align 4
%173 = load i32, ptr %4, align 4
%174 = icmp slt i32 %172, %173
br i1 %174, label %175, label %213
175: ; preds = %171
%176 = load ptr, ptr %3, align 8
%177 = load i32, ptr %4, align 4
%178 = load i32, ptr %5, align 4
%179 = mul nsw i32 %177, %178
%180 = load i32, ptr %6, align 4
%181 = add nsw i32 %179, %180
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds i8, ptr %176, i64 %182
%184 = load i8, ptr %183, align 1
%185 = sext i8 %184 to i32
%186 = icmp eq i32 %185, 49
br i1 %186, label %187, label %195
187: ; preds = %175
%188 = load i32, ptr %6, align 4
%189 = load i32, ptr %4, align 4
%190 = sdiv i32 %189, 2
%191 = icmp slt i32 %188, %190
br i1 %191, label %192, label %193
192: ; preds = %187
store i8 49, ptr %13, align 1
br label %194
193: ; preds = %187
store i8 48, ptr %13, align 1
br label %194
194: ; preds = %193, %192
br label %195
195: ; preds = %194, %175
%196 = load i8, ptr %13, align 1
%197 = sext i8 %196 to i32
%198 = icmp eq i32 %197, 49
br i1 %198, label %199, label %209
199: ; preds = %195
%200 = load i8, ptr %13, align 1
%201 = load ptr, ptr %3, align 8
%202 = load i32, ptr %4, align 4
%203 = load i32, ptr %5, align 4
%204 = mul nsw i32 %202, %203
%205 = load i32, ptr %6, align 4
%206 = add nsw i32 %204, %205
%207 = sext i32 %206 to i64
%208 = getelementptr inbounds i8, ptr %201, i64 %207
store i8 %200, ptr %208, align 1
br label %209
209: ; preds = %199, %195
br label %210
210: ; preds = %209
%211 = load i32, ptr %6, align 4
%212 = add nsw i32 %211, 1
store i32 %212, ptr %6, align 4
br label %171, !llvm.loop !8
213: ; preds = %171
br label %214
214: ; preds = %213
%215 = load i32, ptr %5, align 4
%216 = add nsw i32 %215, 1
store i32 %216, ptr %5, align 4
br label %166, !llvm.loop !9
217: ; preds = %166
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare i32 @plot_hexline(ptr noundef, i32 noundef, float noundef, float noundef, float noundef, float noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpnohw1e85.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @plot_hexagon(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 [6 x float], align 16
%8 = alloca [6 x float], align 16
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca float, align 4
%13 = alloca i8, align 1
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%14 = getelementptr inbounds [6 x float], ptr %7, i64 0, i64 0
store float 0.000000e+00, ptr %14, align 16
%15 = getelementptr inbounds [6 x float], ptr %7, i64 0, i64 1
store float 0x3FEB851EC0000000, ptr %15, align 4
%16 = getelementptr inbounds [6 x float], ptr %7, i64 0, i64 2
store float 0x3FEB851EC0000000, ptr %16, align 8
%17 = getelementptr inbounds [6 x float], ptr %7, i64 0, i64 3
store float 0.000000e+00, ptr %17, align 4
%18 = getelementptr inbounds [6 x float], ptr %7, i64 0, i64 4
store float 0xBFEB851EC0000000, ptr %18, align 16
%19 = getelementptr inbounds [6 x float], ptr %7, i64 0, i64 5
store float 0xBFEB851EC0000000, ptr %19, align 4
%20 = getelementptr inbounds [6 x float], ptr %8, i64 0, i64 0
store float 1.000000e+00, ptr %20, align 16
%21 = getelementptr inbounds [6 x float], ptr %8, i64 0, i64 1
store float 5.000000e-01, ptr %21, align 4
%22 = getelementptr inbounds [6 x float], ptr %8, i64 0, i64 2
store float -5.000000e-01, ptr %22, align 8
%23 = getelementptr inbounds [6 x float], ptr %8, i64 0, i64 3
store float -1.000000e+00, ptr %23, align 4
%24 = getelementptr inbounds [6 x float], ptr %8, i64 0, i64 4
store float -5.000000e-01, ptr %24, align 16
%25 = getelementptr inbounds [6 x float], ptr %8, i64 0, i64 5
store float 5.000000e-01, ptr %25, align 4
store i32 0, ptr %5, align 4
%26 = load i32, ptr %5, align 4
%27 = icmp slt i32 %26, 5
br i1 %27, label %.lr.ph, label %103
.lr.ph: ; preds = %2
br label %28
28: ; preds = %.lr.ph, %98
%29 = load i32, ptr %4, align 4
%30 = sitofp i32 %29 to float
%31 = fpext float %30 to double
%32 = fdiv double %31, 2.000000e+00
%33 = load i32, ptr %4, align 4
%34 = sitofp i32 %33 to float
%35 = fpext float %34 to double
%36 = fdiv double %35, 2.000000e+00
%37 = load i32, ptr %5, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [6 x float], ptr %7, i64 0, i64 %38
%40 = load float, ptr %39, align 4
%41 = fpext float %40 to double
%42 = call double @llvm.fmuladd.f64(double %36, double %41, double %32)
%43 = fptrunc double %42 to float
store float %43, ptr %9, align 4
%44 = load i32, ptr %4, align 4
%45 = sitofp i32 %44 to float
%46 = fpext float %45 to double
%47 = fdiv double %46, 2.000000e+00
%48 = load i32, ptr %4, align 4
%49 = sitofp i32 %48 to float
%50 = fpext float %49 to double
%51 = fdiv double %50, 2.000000e+00
%52 = load i32, ptr %5, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [6 x float], ptr %8, i64 0, i64 %53
%55 = load float, ptr %54, align 4
%56 = fpext float %55 to double
%57 = call double @llvm.fmuladd.f64(double %51, double %56, double %47)
%58 = fptrunc double %57 to float
store float %58, ptr %10, align 4
%59 = load i32, ptr %4, align 4
%60 = sitofp i32 %59 to float
%61 = fpext float %60 to double
%62 = fdiv double %61, 2.000000e+00
%63 = load i32, ptr %4, align 4
%64 = sitofp i32 %63 to float
%65 = fpext float %64 to double
%66 = fdiv double %65, 2.000000e+00
%67 = load i32, ptr %5, align 4
%68 = add nsw i32 %67, 1
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [6 x float], ptr %7, i64 0, i64 %69
%71 = load float, ptr %70, align 4
%72 = fpext float %71 to double
%73 = call double @llvm.fmuladd.f64(double %66, double %72, double %62)
%74 = fptrunc double %73 to float
store float %74, ptr %11, align 4
%75 = load i32, ptr %4, align 4
%76 = sitofp i32 %75 to float
%77 = fpext float %76 to double
%78 = fdiv double %77, 2.000000e+00
%79 = load i32, ptr %4, align 4
%80 = sitofp i32 %79 to float
%81 = fpext float %80 to double
%82 = fdiv double %81, 2.000000e+00
%83 = load i32, ptr %5, align 4
%84 = add nsw i32 %83, 1
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [6 x float], ptr %8, i64 0, i64 %85
%87 = load float, ptr %86, align 4
%88 = fpext float %87 to double
%89 = call double @llvm.fmuladd.f64(double %82, double %88, double %78)
%90 = fptrunc double %89 to float
store float %90, ptr %12, align 4
%91 = load ptr, ptr %3, align 8
%92 = load i32, ptr %4, align 4
%93 = load float, ptr %9, align 4
%94 = load float, ptr %10, align 4
%95 = load float, ptr %11, align 4
%96 = load float, ptr %12, align 4
%97 = call i32 @plot_hexline(ptr noundef %91, i32 noundef %92, float noundef %93, float noundef %94, float noundef %95, float noundef %96)
br label %98
98: ; preds = %28
%99 = load i32, ptr %5, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %5, align 4
%101 = load i32, ptr %5, align 4
%102 = icmp slt i32 %101, 5
br i1 %102, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %98
br label %103
103: ; preds = %._crit_edge, %2
%104 = load i32, ptr %4, align 4
%105 = sitofp i32 %104 to float
%106 = fpext float %105 to double
%107 = fdiv double %106, 2.000000e+00
%108 = load i32, ptr %4, align 4
%109 = sitofp i32 %108 to float
%110 = fpext float %109 to double
%111 = fdiv double %110, 2.000000e+00
%112 = load i32, ptr %5, align 4
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds [6 x float], ptr %7, i64 0, i64 %113
%115 = load float, ptr %114, align 4
%116 = fpext float %115 to double
%117 = call double @llvm.fmuladd.f64(double %111, double %116, double %107)
%118 = fptrunc double %117 to float
store float %118, ptr %9, align 4
%119 = load i32, ptr %4, align 4
%120 = sitofp i32 %119 to float
%121 = fpext float %120 to double
%122 = fdiv double %121, 2.000000e+00
%123 = load i32, ptr %4, align 4
%124 = sitofp i32 %123 to float
%125 = fpext float %124 to double
%126 = fdiv double %125, 2.000000e+00
%127 = load i32, ptr %5, align 4
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds [6 x float], ptr %8, i64 0, i64 %128
%130 = load float, ptr %129, align 4
%131 = fpext float %130 to double
%132 = call double @llvm.fmuladd.f64(double %126, double %131, double %122)
%133 = fptrunc double %132 to float
store float %133, ptr %10, align 4
%134 = load i32, ptr %4, align 4
%135 = sitofp i32 %134 to float
%136 = fpext float %135 to double
%137 = fdiv double %136, 2.000000e+00
%138 = load i32, ptr %4, align 4
%139 = sitofp i32 %138 to float
%140 = fpext float %139 to double
%141 = fdiv double %140, 2.000000e+00
%142 = getelementptr inbounds [6 x float], ptr %7, i64 0, i64 0
%143 = load float, ptr %142, align 16
%144 = fpext float %143 to double
%145 = call double @llvm.fmuladd.f64(double %141, double %144, double %137)
%146 = fptrunc double %145 to float
store float %146, ptr %11, align 4
%147 = load i32, ptr %4, align 4
%148 = sitofp i32 %147 to float
%149 = fpext float %148 to double
%150 = fdiv double %149, 2.000000e+00
%151 = load i32, ptr %4, align 4
%152 = sitofp i32 %151 to float
%153 = fpext float %152 to double
%154 = fdiv double %153, 2.000000e+00
%155 = getelementptr inbounds [6 x float], ptr %8, i64 0, i64 0
%156 = load float, ptr %155, align 16
%157 = fpext float %156 to double
%158 = call double @llvm.fmuladd.f64(double %154, double %157, double %150)
%159 = fptrunc double %158 to float
store float %159, ptr %12, align 4
%160 = load ptr, ptr %3, align 8
%161 = load i32, ptr %4, align 4
%162 = load float, ptr %9, align 4
%163 = load float, ptr %10, align 4
%164 = load float, ptr %11, align 4
%165 = load float, ptr %12, align 4
%166 = call i32 @plot_hexline(ptr noundef %160, i32 noundef %161, float noundef %162, float noundef %163, float noundef %164, float noundef %165)
store i32 0, ptr %5, align 4
%167 = load i32, ptr %5, align 4
%168 = load i32, ptr %4, align 4
%169 = icmp slt i32 %167, %168
br i1 %169, label %.lr.ph5, label %222
.lr.ph5: ; preds = %103
br label %170
170: ; preds = %.lr.ph5, %216
store i8 48, ptr %13, align 1
store i32 0, ptr %6, align 4
%171 = load i32, ptr %6, align 4
%172 = load i32, ptr %4, align 4
%173 = icmp slt i32 %171, %172
br i1 %173, label %.lr.ph2, label %215
.lr.ph2: ; preds = %170
br label %174
174: ; preds = %.lr.ph2, %209
%175 = load ptr, ptr %3, align 8
%176 = load i32, ptr %4, align 4
%177 = load i32, ptr %5, align 4
%178 = mul nsw i32 %176, %177
%179 = load i32, ptr %6, align 4
%180 = add nsw i32 %178, %179
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds i8, ptr %175, i64 %181
%183 = load i8, ptr %182, align 1
%184 = sext i8 %183 to i32
%185 = icmp eq i32 %184, 49
br i1 %185, label %186, label %194
186: ; preds = %174
%187 = load i32, ptr %6, align 4
%188 = load i32, ptr %4, align 4
%189 = sdiv i32 %188, 2
%190 = icmp slt i32 %187, %189
br i1 %190, label %191, label %192
191: ; preds = %186
store i8 49, ptr %13, align 1
br label %193
192: ; preds = %186
store i8 48, ptr %13, align 1
br label %193
193: ; preds = %192, %191
br label %194
194: ; preds = %193, %174
%195 = load i8, ptr %13, align 1
%196 = sext i8 %195 to i32
%197 = icmp eq i32 %196, 49
br i1 %197, label %198, label %208
198: ; preds = %194
%199 = load i8, ptr %13, align 1
%200 = load ptr, ptr %3, align 8
%201 = load i32, ptr %4, align 4
%202 = load i32, ptr %5, align 4
%203 = mul nsw i32 %201, %202
%204 = load i32, ptr %6, align 4
%205 = add nsw i32 %203, %204
%206 = sext i32 %205 to i64
%207 = getelementptr inbounds i8, ptr %200, i64 %206
store i8 %199, ptr %207, align 1
br label %208
208: ; preds = %198, %194
br label %209
209: ; preds = %208
%210 = load i32, ptr %6, align 4
%211 = add nsw i32 %210, 1
store i32 %211, ptr %6, align 4
%212 = load i32, ptr %6, align 4
%213 = load i32, ptr %4, align 4
%214 = icmp slt i32 %212, %213
br i1 %214, label %174, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %209
br label %215
215: ; preds = %._crit_edge3, %170
br label %216
216: ; preds = %215
%217 = load i32, ptr %5, align 4
%218 = add nsw i32 %217, 1
store i32 %218, ptr %5, align 4
%219 = load i32, ptr %5, align 4
%220 = load i32, ptr %4, align 4
%221 = icmp slt i32 %219, %220
br i1 %221, label %170, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %216
br label %222
222: ; preds = %._crit_edge6, %103
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare i32 @plot_hexline(ptr noundef, i32 noundef, float noundef, float noundef, float noundef, float noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpb_n4hz15.c'
source_filename = "/tmp/tmpb_n4hz15.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nb_kernel133nf_f77_double(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %29, ptr noundef %30) #0 {
%32 = alloca ptr, align 8
%33 = alloca ptr, align 8
%34 = alloca ptr, align 8
%35 = alloca ptr, align 8
%36 = alloca ptr, align 8
%37 = alloca ptr, align 8
%38 = alloca ptr, align 8
%39 = alloca ptr, align 8
%40 = alloca ptr, align 8
%41 = alloca ptr, align 8
%42 = alloca ptr, align 8
%43 = alloca ptr, align 8
%44 = alloca ptr, align 8
%45 = alloca ptr, align 8
%46 = alloca ptr, align 8
%47 = alloca ptr, align 8
%48 = alloca ptr, align 8
%49 = alloca ptr, align 8
%50 = alloca ptr, align 8
%51 = alloca ptr, align 8
%52 = alloca ptr, align 8
%53 = alloca ptr, align 8
%54 = alloca ptr, align 8
%55 = alloca ptr, align 8
%56 = alloca ptr, align 8
%57 = alloca ptr, align 8
%58 = alloca ptr, align 8
%59 = alloca ptr, align 8
%60 = alloca ptr, align 8
%61 = alloca ptr, align 8
%62 = alloca ptr, align 8
store ptr %0, ptr %32, align 8
store ptr %1, ptr %33, align 8
store ptr %2, ptr %34, align 8
store ptr %3, ptr %35, align 8
store ptr %4, ptr %36, align 8
store ptr %5, ptr %37, align 8
store ptr %6, ptr %38, align 8
store ptr %7, ptr %39, align 8
store ptr %8, ptr %40, align 8
store ptr %9, ptr %41, align 8
store ptr %10, ptr %42, align 8
store ptr %11, ptr %43, align 8
store ptr %12, ptr %44, align 8
store ptr %13, ptr %45, align 8
store ptr %14, ptr %46, align 8
store ptr %15, ptr %47, align 8
store ptr %16, ptr %48, align 8
store ptr %17, ptr %49, align 8
store ptr %18, ptr %50, align 8
store ptr %19, ptr %51, align 8
store ptr %20, ptr %52, align 8
store ptr %21, ptr %53, align 8
store ptr %22, ptr %54, align 8
store ptr %23, ptr %55, align 8
store ptr %24, ptr %56, align 8
store ptr %25, ptr %57, align 8
store ptr %26, ptr %58, align 8
store ptr %27, ptr %59, align 8
store ptr %28, ptr %60, align 8
store ptr %29, ptr %61, align 8
store ptr %30, ptr %62, align 8
%63 = load ptr, ptr %32, align 8
%64 = load ptr, ptr %33, align 8
%65 = load ptr, ptr %34, align 8
%66 = load ptr, ptr %35, align 8
%67 = load ptr, ptr %36, align 8
%68 = load ptr, ptr %37, align 8
%69 = load ptr, ptr %38, align 8
%70 = load ptr, ptr %39, align 8
%71 = load ptr, ptr %40, align 8
%72 = load ptr, ptr %41, align 8
%73 = load ptr, ptr %42, align 8
%74 = load ptr, ptr %43, align 8
%75 = load ptr, ptr %44, align 8
%76 = load ptr, ptr %45, align 8
%77 = load ptr, ptr %46, align 8
%78 = load ptr, ptr %47, align 8
%79 = load ptr, ptr %48, align 8
%80 = load ptr, ptr %49, align 8
%81 = load ptr, ptr %50, align 8
%82 = load ptr, ptr %51, align 8
%83 = load ptr, ptr %52, align 8
%84 = load ptr, ptr %53, align 8
%85 = load ptr, ptr %54, align 8
%86 = load ptr, ptr %55, align 8
%87 = load ptr, ptr %56, align 8
%88 = load ptr, ptr %57, align 8
%89 = load ptr, ptr %58, align 8
%90 = load ptr, ptr %59, align 8
%91 = load ptr, ptr %60, align 8
%92 = load ptr, ptr %61, align 8
%93 = load ptr, ptr %62, align 8
%94 = call i32 @f77dkernel133nf_(ptr noundef %63, ptr noundef %64, ptr noundef %65, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %72, ptr noundef %73, ptr noundef %74, ptr noundef %75, ptr noundef %76, ptr noundef %77, ptr noundef %78, ptr noundef %79, ptr noundef %80, ptr noundef %81, ptr noundef %82, ptr noundef %83, ptr noundef %84, ptr noundef %85, ptr noundef %86, ptr noundef %87, ptr noundef %88, ptr noundef %89, ptr noundef %90, ptr noundef %91, ptr noundef %92, ptr noundef %93)
ret void
}
declare i32 @f77dkernel133nf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb_n4hz15.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nb_kernel133nf_f77_double(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %29, ptr noundef %30) #0 {
%32 = alloca ptr, align 8
%33 = alloca ptr, align 8
%34 = alloca ptr, align 8
%35 = alloca ptr, align 8
%36 = alloca ptr, align 8
%37 = alloca ptr, align 8
%38 = alloca ptr, align 8
%39 = alloca ptr, align 8
%40 = alloca ptr, align 8
%41 = alloca ptr, align 8
%42 = alloca ptr, align 8
%43 = alloca ptr, align 8
%44 = alloca ptr, align 8
%45 = alloca ptr, align 8
%46 = alloca ptr, align 8
%47 = alloca ptr, align 8
%48 = alloca ptr, align 8
%49 = alloca ptr, align 8
%50 = alloca ptr, align 8
%51 = alloca ptr, align 8
%52 = alloca ptr, align 8
%53 = alloca ptr, align 8
%54 = alloca ptr, align 8
%55 = alloca ptr, align 8
%56 = alloca ptr, align 8
%57 = alloca ptr, align 8
%58 = alloca ptr, align 8
%59 = alloca ptr, align 8
%60 = alloca ptr, align 8
%61 = alloca ptr, align 8
%62 = alloca ptr, align 8
store ptr %0, ptr %32, align 8
store ptr %1, ptr %33, align 8
store ptr %2, ptr %34, align 8
store ptr %3, ptr %35, align 8
store ptr %4, ptr %36, align 8
store ptr %5, ptr %37, align 8
store ptr %6, ptr %38, align 8
store ptr %7, ptr %39, align 8
store ptr %8, ptr %40, align 8
store ptr %9, ptr %41, align 8
store ptr %10, ptr %42, align 8
store ptr %11, ptr %43, align 8
store ptr %12, ptr %44, align 8
store ptr %13, ptr %45, align 8
store ptr %14, ptr %46, align 8
store ptr %15, ptr %47, align 8
store ptr %16, ptr %48, align 8
store ptr %17, ptr %49, align 8
store ptr %18, ptr %50, align 8
store ptr %19, ptr %51, align 8
store ptr %20, ptr %52, align 8
store ptr %21, ptr %53, align 8
store ptr %22, ptr %54, align 8
store ptr %23, ptr %55, align 8
store ptr %24, ptr %56, align 8
store ptr %25, ptr %57, align 8
store ptr %26, ptr %58, align 8
store ptr %27, ptr %59, align 8
store ptr %28, ptr %60, align 8
store ptr %29, ptr %61, align 8
store ptr %30, ptr %62, align 8
%63 = load ptr, ptr %32, align 8
%64 = load ptr, ptr %33, align 8
%65 = load ptr, ptr %34, align 8
%66 = load ptr, ptr %35, align 8
%67 = load ptr, ptr %36, align 8
%68 = load ptr, ptr %37, align 8
%69 = load ptr, ptr %38, align 8
%70 = load ptr, ptr %39, align 8
%71 = load ptr, ptr %40, align 8
%72 = load ptr, ptr %41, align 8
%73 = load ptr, ptr %42, align 8
%74 = load ptr, ptr %43, align 8
%75 = load ptr, ptr %44, align 8
%76 = load ptr, ptr %45, align 8
%77 = load ptr, ptr %46, align 8
%78 = load ptr, ptr %47, align 8
%79 = load ptr, ptr %48, align 8
%80 = load ptr, ptr %49, align 8
%81 = load ptr, ptr %50, align 8
%82 = load ptr, ptr %51, align 8
%83 = load ptr, ptr %52, align 8
%84 = load ptr, ptr %53, align 8
%85 = load ptr, ptr %54, align 8
%86 = load ptr, ptr %55, align 8
%87 = load ptr, ptr %56, align 8
%88 = load ptr, ptr %57, align 8
%89 = load ptr, ptr %58, align 8
%90 = load ptr, ptr %59, align 8
%91 = load ptr, ptr %60, align 8
%92 = load ptr, ptr %61, align 8
%93 = load ptr, ptr %62, align 8
%94 = call i32 @f77dkernel133nf_(ptr noundef %63, ptr noundef %64, ptr noundef %65, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %72, ptr noundef %73, ptr noundef %74, ptr noundef %75, ptr noundef %76, ptr noundef %77, ptr noundef %78, ptr noundef %79, ptr noundef %80, ptr noundef %81, ptr noundef %82, ptr noundef %83, ptr noundef %84, ptr noundef %85, ptr noundef %86, ptr noundef %87, ptr noundef %88, ptr noundef %89, ptr noundef %90, ptr noundef %91, ptr noundef %92, ptr noundef %93)
ret void
}
declare i32 @f77dkernel133nf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsjpgj0r6.c'
source_filename = "/tmp/tmpsjpgj0r6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @same(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
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%11 = load ptr, ptr %4, align 8
%12 = call i32 @strlen(ptr noundef %11)
store i32 %12, ptr %6, align 4
%13 = load ptr, ptr %5, align 8
%14 = call i32 @strlen(ptr noundef %13)
store i32 %14, ptr %7, align 4
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %7, align 4
%17 = icmp ne i32 %15, %16
br i1 %17, label %18, label %19
18: ; preds = %2
store i32 0, ptr %3, align 4
br label %59
19: ; preds = %2
store i32 0, ptr %8, align 4
br label %20
20: ; preds = %55, %19
%21 = load i32, ptr %8, align 4
%22 = load i32, ptr %6, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %58
24: ; preds = %20
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
br label %25
25: ; preds = %47, %24
%26 = load i32, ptr %10, align 4
%27 = load i32, ptr %6, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %50
29: ; preds = %25
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %30, i64 %32
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = load ptr, ptr %5, align 8
%37 = load i32, ptr %10, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = icmp eq i32 %35, %41
br i1 %42, label %43, label %46
43: ; preds = %29
%44 = load i32, ptr %9, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %9, align 4
br label %46
46: ; preds = %43, %29
br label %47
47: ; preds = %46
%48 = load i32, ptr %10, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %10, align 4
br label %25, !llvm.loop !6
50: ; preds = %25
%51 = load i32, ptr %9, align 4
%52 = icmp ne i32 %51, 1
br i1 %52, label %53, label %54
53: ; preds = %50
store i32 0, ptr %3, align 4
br label %59
54: ; preds = %50
br label %55
55: ; preds = %54
%56 = load i32, ptr %8, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %8, align 4
br label %20, !llvm.loop !8
58: ; preds = %20
store i32 1, ptr %3, align 4
br label %59
59: ; preds = %58, %53, %18
%60 = load i32, ptr %3, align 4
ret i32 %60
}
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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsjpgj0r6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @same(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
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%11 = load ptr, ptr %4, align 8
%12 = call i32 @strlen(ptr noundef %11)
store i32 %12, ptr %6, align 4
%13 = load ptr, ptr %5, align 8
%14 = call i32 @strlen(ptr noundef %13)
store i32 %14, ptr %7, align 4
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %7, align 4
%17 = icmp ne i32 %15, %16
br i1 %17, label %18, label %19
18: ; preds = %2
store i32 0, ptr %3, align 4
br label %63
19: ; preds = %2
store i32 0, ptr %8, align 4
%20 = load i32, ptr %8, align 4
%21 = load i32, ptr %6, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %.lr.ph2, label %62
.lr.ph2: ; preds = %19
br label %23
23: ; preds = %.lr.ph2, %56
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
%24 = load i32, ptr %10, align 4
%25 = load i32, ptr %6, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %.lr.ph, label %51
.lr.ph: ; preds = %23
br label %27
27: ; preds = %.lr.ph, %45
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %8, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = load ptr, ptr %5, align 8
%35 = load i32, ptr %10, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %33, %39
br i1 %40, label %41, label %44
41: ; preds = %27
%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, %27
br label %45
45: ; preds = %44
%46 = load i32, ptr %10, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %10, align 4
%48 = load i32, ptr %10, align 4
%49 = load i32, ptr %6, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %45
br label %51
51: ; preds = %._crit_edge, %23
%52 = load i32, ptr %9, align 4
%53 = icmp ne i32 %52, 1
br i1 %53, label %54, label %55
54: ; preds = %51
store i32 0, ptr %3, align 4
br label %63
55: ; preds = %51
br label %56
56: ; preds = %55
%57 = load i32, ptr %8, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %8, align 4
%59 = load i32, ptr %8, align 4
%60 = load i32, ptr %6, align 4
%61 = icmp slt i32 %59, %60
br i1 %61, label %23, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %56
br label %62
62: ; preds = %._crit_edge3, %19
store i32 1, ptr %3, align 4
br label %63
63: ; preds = %62, %54, %18
%64 = load i32, ptr %3, align 4
ret i32 %64
}
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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpofll6k3w.c'
source_filename = "/tmp/tmpofll6k3w.c"
target datalayout = "e-m:e-p270: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/tmpofll6k3w.c"
target datalayout = "e-m:e-p270: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/tmpf3w01w1m.c'
source_filename = "/tmp/tmpf3w01w1m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
br label %3
3: ; preds = %6, %0
%4 = load i32, ptr %2, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
br label %6
6: ; preds = %3
%7 = load i32, ptr %2, align 4
%8 = add nsw i32 %7, 1
store i32 %8, ptr %2, align 4
br label %3
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf3w01w1m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
br label %3
3: ; preds = %6, %0
%4 = load i32, ptr %2, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
br label %6
6: ; preds = %3
%7 = load i32, ptr %2, align 4
%8 = add nsw i32 %7, 1
store i32 %8, ptr %2, align 4
br label %3
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6bxd6s1a.c'
source_filename = "/tmp/tmp6bxd6s1a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"any\00", align 1
@IFF_UP = dso_local global i32 0, align 4
@IFF_RUNNING = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @device_up_and_running(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %9, label %6
6: ; preds = %1
%7 = load i32, ptr @EINVAL, align 4
%8 = sub nsw i32 0, %7
store i32 %8, ptr %2, align 4
br label %27
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = call i32 @strlen(ptr noundef @.str)
%12 = call i32 @strncmp(ptr noundef @.str, ptr noundef %10, i32 noundef %11)
%13 = icmp ne i32 %12, 0
br i1 %13, label %15, label %14
14: ; preds = %9
store i32 1, ptr %2, align 4
br label %27
15: ; preds = %9
%16 = load ptr, ptr %3, align 8
%17 = call i32 @device_get_flags(ptr noundef %16)
%18 = load i32, ptr @IFF_UP, align 4
%19 = load i32, ptr @IFF_RUNNING, align 4
%20 = or i32 %18, %19
%21 = and i32 %17, %20
%22 = load i32, ptr @IFF_UP, align 4
%23 = load i32, ptr @IFF_RUNNING, align 4
%24 = or i32 %22, %23
%25 = icmp eq i32 %21, %24
%26 = zext i1 %25 to i32
store i32 %26, ptr %2, align 4
br label %27
27: ; preds = %15, %14, %6
%28 = load i32, ptr %2, align 4
ret i32 %28
}
declare i32 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @device_get_flags(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6bxd6s1a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"any\00", align 1
@IFF_UP = dso_local global i32 0, align 4
@IFF_RUNNING = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @device_up_and_running(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %9, label %6
6: ; preds = %1
%7 = load i32, ptr @EINVAL, align 4
%8 = sub nsw i32 0, %7
store i32 %8, ptr %2, align 4
br label %27
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = call i32 @strlen(ptr noundef @.str)
%12 = call i32 @strncmp(ptr noundef @.str, ptr noundef %10, i32 noundef %11)
%13 = icmp ne i32 %12, 0
br i1 %13, label %15, label %14
14: ; preds = %9
store i32 1, ptr %2, align 4
br label %27
15: ; preds = %9
%16 = load ptr, ptr %3, align 8
%17 = call i32 @device_get_flags(ptr noundef %16)
%18 = load i32, ptr @IFF_UP, align 4
%19 = load i32, ptr @IFF_RUNNING, align 4
%20 = or i32 %18, %19
%21 = and i32 %17, %20
%22 = load i32, ptr @IFF_UP, align 4
%23 = load i32, ptr @IFF_RUNNING, align 4
%24 = or i32 %22, %23
%25 = icmp eq i32 %21, %24
%26 = zext i1 %25 to i32
store i32 %26, ptr %2, align 4
br label %27
27: ; preds = %15, %14, %6
%28 = load i32, ptr %2, align 4
ret i32 %28
}
declare i32 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @device_get_flags(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp21tii6rb.c'
source_filename = "/tmp/tmp21tii6rb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @rosenbrock(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca double, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store double 0.000000e+00, ptr %6, align 8
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %40, %2
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = sub nsw i32 %9, 1
%11 = icmp slt i32 %8, %10
br i1 %11, label %12, label %43
12: ; preds = %7
%13 = load double, ptr %6, align 8
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %5, align 4
%16 = add nsw i32 %15, 1
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds double, ptr %14, i64 %17
%19 = load double, ptr %18, align 8
%20 = load ptr, ptr %3, align 8
%21 = load i32, ptr %5, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds double, ptr %20, i64 %22
%24 = load double, ptr %23, align 8
%25 = fptosi double %24 to i32
%26 = call double @pow(i32 noundef %25, i32 noundef 2)
%27 = fsub double %19, %26
%28 = fptosi double %27 to i32
%29 = call double @pow(i32 noundef %28, i32 noundef 2)
%30 = call double @llvm.fmuladd.f64(double 1.000000e+02, double %29, double %13)
%31 = load ptr, ptr %3, align 8
%32 = load i32, ptr %5, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds double, ptr %31, i64 %33
%35 = load double, ptr %34, align 8
%36 = fsub double 1.000000e+00, %35
%37 = fptosi double %36 to i32
%38 = call double @pow(i32 noundef %37, i32 noundef 2)
%39 = fadd double %30, %38
store double %39, ptr %6, align 8
br label %40
40: ; preds = %12
%41 = load i32, ptr %5, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %5, align 4
br label %7, !llvm.loop !6
43: ; preds = %7
%44 = load double, ptr %6, align 8
ret double %44
}
declare double @pow(i32 noundef, i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp21tii6rb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @rosenbrock(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca double, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store double 0.000000e+00, ptr %6, align 8
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = sub nsw i32 %8, 1
%10 = icmp slt i32 %7, %9
br i1 %10, label %.lr.ph, label %46
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %39
%12 = load double, ptr %6, align 8
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %5, align 4
%15 = add nsw i32 %14, 1
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds double, ptr %13, i64 %16
%18 = load double, ptr %17, align 8
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %5, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds double, ptr %19, i64 %21
%23 = load double, ptr %22, align 8
%24 = fptosi double %23 to i32
%25 = call double @pow(i32 noundef %24, i32 noundef 2)
%26 = fsub double %18, %25
%27 = fptosi double %26 to i32
%28 = call double @pow(i32 noundef %27, i32 noundef 2)
%29 = call double @llvm.fmuladd.f64(double 1.000000e+02, double %28, double %12)
%30 = load ptr, ptr %3, align 8
%31 = load i32, ptr %5, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds double, ptr %30, i64 %32
%34 = load double, ptr %33, align 8
%35 = fsub double 1.000000e+00, %34
%36 = fptosi double %35 to i32
%37 = call double @pow(i32 noundef %36, i32 noundef 2)
%38 = fadd double %29, %37
store double %38, ptr %6, align 8
br label %39
39: ; preds = %11
%40 = load i32, ptr %5, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %5, align 4
%42 = load i32, ptr %5, align 4
%43 = load i32, ptr %4, align 4
%44 = sub nsw i32 %43, 1
%45 = icmp slt i32 %42, %44
br i1 %45, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %39
br label %46
46: ; preds = %._crit_edge, %2
%47 = load double, ptr %6, align 8
ret double %47
}
declare double @pow(i32 noundef, i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp2aarh2o5.c'
source_filename = "/tmp/tmp2aarh2o5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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(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 = load ptr, ptr %5, align 8
%9 = getelementptr inbounds ptr, ptr %8, i64 1
%10 = load ptr, ptr %9, align 8
%11 = call i32 @atoi(ptr noundef %10)
store i32 %11, ptr %6, align 4
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 2
%14 = load ptr, ptr %13, align 8
%15 = call i32 @atoi(ptr noundef %14)
store i32 %15, ptr %7, align 4
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr %7, align 4
%18 = icmp ne i32 %16, %17
br i1 %18, label %19, label %21
19: ; preds = %2
%20 = call i32 @printf(ptr noundef @.str, i32 noundef 0)
br label %23
21: ; preds = %2
%22 = call i32 @printf(ptr noundef @.str, i32 noundef 1)
br label %23
23: ; preds = %21, %19
ret i32 0
}
declare i32 @atoi(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2aarh2o5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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(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 = load ptr, ptr %5, align 8
%9 = getelementptr inbounds ptr, ptr %8, i64 1
%10 = load ptr, ptr %9, align 8
%11 = call i32 @atoi(ptr noundef %10)
store i32 %11, ptr %6, align 4
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 2
%14 = load ptr, ptr %13, align 8
%15 = call i32 @atoi(ptr noundef %14)
store i32 %15, ptr %7, align 4
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr %7, align 4
%18 = icmp ne i32 %16, %17
br i1 %18, label %19, label %21
19: ; preds = %2
%20 = call i32 @printf(ptr noundef @.str, i32 noundef 0)
br label %23
21: ; preds = %2
%22 = call i32 @printf(ptr noundef @.str, i32 noundef 1)
br label %23
23: ; preds = %21, %19
ret i32 0
}
declare i32 @atoi(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"}
|
; ModuleID = '/tmp/tmp7pbmw1v9.c'
source_filename = "/tmp/tmp7pbmw1v9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@R_OK = 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/tmp7pbmw1v9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@R_OK = 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/tmprid4h8sx.c'
source_filename = "/tmp/tmprid4h8sx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ScanValue(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i16, align 2
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
br label %6
6: ; preds = %11, %2
%7 = load ptr, ptr %3, align 8
%8 = call signext i8 @fgetc(ptr noundef %7)
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 60
br i1 %10, label %11, label %12
11: ; preds = %6
br label %6, !llvm.loop !6
12: ; preds = %6
store i16 0, ptr %5, align 2
br label %13
13: ; preds = %22, %12
%14 = load ptr, ptr %3, align 8
%15 = call signext i8 @fgetc(ptr noundef %14)
%16 = load ptr, ptr %4, align 8
%17 = load i16, ptr %5, align 2
%18 = sext i16 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
store i8 %15, ptr %19, align 1
%20 = sext i8 %15 to i32
%21 = icmp ne i32 %20, 62
br i1 %21, label %22, label %25
22: ; preds = %13
%23 = load i16, ptr %5, align 2
%24 = add i16 %23, 1
store i16 %24, ptr %5, align 2
br label %13, !llvm.loop !8
25: ; preds = %13
%26 = load ptr, ptr %4, align 8
%27 = load i16, ptr %5, align 2
%28 = sext i16 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
store i8 0, ptr %29, align 1
ret void
}
declare signext i8 @fgetc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmprid4h8sx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ScanValue(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i16, align 2
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
br label %6
6: ; preds = %6, %2
%7 = load ptr, ptr %3, align 8
%8 = call signext i8 @fgetc(ptr noundef %7)
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 60
br i1 %10, label %6, label %11, !llvm.loop !6
11: ; preds = %6
store i16 0, ptr %5, align 2
%12 = load ptr, ptr %3, align 8
%13 = call signext i8 @fgetc(ptr noundef %12)
%14 = load ptr, ptr %4, align 8
%15 = load i16, ptr %5, align 2
%16 = sext i16 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
store i8 %13, ptr %17, align 1
%18 = sext i8 %13 to i32
%19 = icmp ne i32 %18, 62
br i1 %19, label %.lr.ph, label %31
.lr.ph: ; preds = %11
br label %20
20: ; preds = %.lr.ph, %20
%21 = load i16, ptr %5, align 2
%22 = add i16 %21, 1
store i16 %22, ptr %5, align 2
%23 = load ptr, ptr %3, align 8
%24 = call signext i8 @fgetc(ptr noundef %23)
%25 = load ptr, ptr %4, align 8
%26 = load i16, ptr %5, align 2
%27 = sext i16 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
store i8 %24, ptr %28, align 1
%29 = sext i8 %24 to i32
%30 = icmp ne i32 %29, 62
br i1 %30, label %20, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %20
br label %31
31: ; preds = %._crit_edge, %11
%32 = load ptr, ptr %4, align 8
%33 = load i16, ptr %5, align 2
%34 = sext i16 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
store i8 0, ptr %35, align 1
ret void
}
declare signext i8 @fgetc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp2usy3aal.c'
source_filename = "/tmp/tmp2usy3aal.c"
target datalayout = "e-m:e-p270: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/tmp2usy3aal.c"
target datalayout = "e-m:e-p270: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/tmpm7wvh9x2.c'
source_filename = "/tmp/tmpm7wvh9x2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"bye.\0AYour rating was %s.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @die() #0 {
%1 = call ptr (...) @rate()
%2 = call i32 @printf(ptr noundef @.str, ptr noundef %1)
%3 = call i32 @post(i8 noundef signext 32)
%4 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @rate(...) #1
declare i32 @post(i8 noundef signext) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm7wvh9x2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"bye.\0AYour rating was %s.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @die() #0 {
%1 = call ptr (...) @rate()
%2 = call i32 @printf(ptr noundef @.str, ptr noundef %1)
%3 = call i32 @post(i8 noundef signext 32)
%4 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @rate(...) #1
declare i32 @post(i8 noundef signext) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpswujzs0b.c'
source_filename = "/tmp/tmpswujzs0b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @factorial(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp sge i32 %4, 0
%6 = zext i1 %5 to i32
%7 = call i32 @assert(i32 noundef %6)
%8 = load i32, ptr %3, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %1
store i32 1, ptr %2, align 4
br label %17
11: ; preds = %1
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %3, align 4
%14 = sub nsw i32 %13, 1
%15 = call i32 @factorial(i32 noundef %14)
%16 = mul nsw i32 %12, %15
store i32 %16, ptr %2, align 4
br label %17
17: ; preds = %11, %10
%18 = load i32, ptr %2, align 4
ret i32 %18
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpswujzs0b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @factorial(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp sge i32 %4, 0
%6 = zext i1 %5 to i32
%7 = call i32 @assert(i32 noundef %6)
%8 = load i32, ptr %3, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %1
store i32 1, ptr %2, align 4
br label %17
11: ; preds = %1
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %3, align 4
%14 = sub nsw i32 %13, 1
%15 = call i32 @factorial(i32 noundef %14)
%16 = mul nsw i32 %12, %15
store i32 %16, ptr %2, align 4
br label %17
17: ; preds = %11, %10
%18 = load i32, ptr %2, align 4
ret i32 %18
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpf_c5dd01.c'
source_filename = "/tmp/tmpf_c5dd01.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_REUSEADDR = 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/tmpf_c5dd01.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_REUSEADDR = 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/tmptdfq4hbo.c'
source_filename = "/tmp/tmptdfq4hbo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [134 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/ASMlover/libc/refs/heads/master/src/array.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @array_release(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i32 @array_clear(ptr noundef %4)
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %6, align 8
%8 = call i64 @memory_free(ptr noundef %7, ptr noundef @.str, i32 noundef 70)
%9 = load ptr, ptr %2, align 8
store ptr null, ptr %9, align 8
ret void
}
declare i32 @array_clear(ptr noundef) #1
declare i64 @memory_free(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/tmptdfq4hbo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [134 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/ASMlover/libc/refs/heads/master/src/array.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @array_release(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i32 @array_clear(ptr noundef %4)
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %6, align 8
%8 = call i64 @memory_free(ptr noundef %7, ptr noundef @.str, i32 noundef 70)
%9 = load ptr, ptr %2, align 8
store ptr null, ptr %9, align 8
ret void
}
declare i32 @array_clear(ptr noundef) #1
declare i64 @memory_free(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/tmpj_xjp3yg.c'
source_filename = "/tmp/tmpj_xjp3yg.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @nombreImprimantes(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [1024 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%8 = load ptr, ptr %2, align 8
%9 = load i32, ptr @O_RDONLY, align 4
%10 = call i32 @open(ptr noundef %8, i32 noundef %9)
store i32 %10, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%11 = load i32, ptr %4, align 4
%12 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%13 = call i32 @read(i32 noundef %11, ptr noundef %12, i32 noundef 1024)
store i32 %13, ptr %5, align 4
store i32 0, ptr %7, align 4
br label %14
14: ; preds = %29, %1
%15 = load i32, ptr %7, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %32
18: ; preds = %14
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 10
br i1 %24, label %25, label %28
25: ; preds = %18
%26 = load i32, ptr %6, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %6, align 4
br label %28
28: ; preds = %25, %18
br label %29
29: ; preds = %28
%30 = load i32, ptr %7, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %7, align 4
br label %14, !llvm.loop !6
32: ; preds = %14
%33 = load i32, ptr %4, align 4
%34 = call i32 @close(i32 noundef %33)
%35 = load i32, ptr %6, align 4
%36 = add nsw i32 %35, 1
ret i32 %36
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj_xjp3yg.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @nombreImprimantes(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [1024 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%8 = load ptr, ptr %2, align 8
%9 = load i32, ptr @O_RDONLY, align 4
%10 = call i32 @open(ptr noundef %8, i32 noundef %9)
store i32 %10, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%11 = load i32, ptr %4, align 4
%12 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%13 = call i32 @read(i32 noundef %11, ptr noundef %12, i32 noundef 1024)
store i32 %13, ptr %5, align 4
store i32 0, ptr %7, align 4
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %5, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph, label %34
.lr.ph: ; preds = %1
br label %17
17: ; preds = %.lr.ph, %28
%18 = load i32, ptr %7, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 10
br i1 %23, label %24, label %27
24: ; preds = %17
%25 = load i32, ptr %6, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %6, align 4
br label %27
27: ; preds = %24, %17
br label %28
28: ; preds = %27
%29 = load i32, ptr %7, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %7, align 4
%31 = load i32, ptr %7, align 4
%32 = load i32, ptr %5, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %34
34: ; preds = %._crit_edge, %1
%35 = load i32, ptr %4, align 4
%36 = call i32 @close(i32 noundef %35)
%37 = load i32, ptr %6, align 4
%38 = add nsw i32 %37, 1
ret i32 %38
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.