llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmpgm6tnw5n.c'
source_filename = "/tmp/tmpgm6tnw5n.c"
target datalayout = "e-m:e-p270: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 [9 x i8] c"Usage :\0A\00", align 1
@.str.1 = private unnamed_addr constant [99 x i8] c"%s --nsize number [ --parallelism number ] [ --verbose] [ --rusage ] [ --seed number ][ --help ]\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %3, ptr noundef @.str)
%5 = load i32, ptr @stderr, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %5, ptr noundef @.str.1, ptr noundef %6)
%8 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgm6tnw5n.c"
target datalayout = "e-m:e-p270: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 [9 x i8] c"Usage :\0A\00", align 1
@.str.1 = private unnamed_addr constant [99 x i8] c"%s --nsize number [ --parallelism number ] [ --verbose] [ --rusage ] [ --seed number ][ --help ]\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %3, ptr noundef @.str)
%5 = load i32, ptr @stderr, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %5, ptr noundef @.str.1, ptr noundef %6)
%8 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpe7scnnm1.c'
source_filename = "/tmp/tmpe7scnnm1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f229(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 @f228(ptr noundef %3)
ret i32 %4
}
declare i32 @f228(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe7scnnm1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f229(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 @f228(ptr noundef %3)
ret i32 %4
}
declare i32 @f228(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp31ss8vi8.c'
source_filename = "/tmp/tmp31ss8vi8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [6 x i8] c"%d = \00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"%d + %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
store i32 0, ptr %1, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
store i32 1, ptr %5, align 4
br label %7
7: ; preds = %17, %0
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp sle i32 %8, %9
br i1 %10, label %11, label %20
11: ; preds = %7
%12 = call i32 @get_int_sum(ptr noundef %3, ptr noundef %4)
%13 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %12)
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr %4, align 4
%16 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %14, i32 noundef %15)
br label %17
17: ; preds = %11
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
br label %7, !llvm.loop !6
20: ; preds = %7
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
declare i32 @get_int_sum(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp31ss8vi8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [6 x i8] c"%d = \00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"%d + %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
store i32 0, ptr %1, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
store i32 1, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp sle i32 %7, %8
br i1 %9, label %.lr.ph, label %22
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %16
%11 = call i32 @get_int_sum(ptr noundef %3, ptr noundef %4)
%12 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %11)
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %4, align 4
%15 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %13, i32 noundef %14)
br label %16
16: ; preds = %10
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %2, align 4
%21 = icmp sle i32 %19, %20
br i1 %21, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %22
22: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
declare i32 @get_int_sum(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpsmxho7gt.c'
source_filename = "/tmp/tmpsmxho7gt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fist_print_generic_dentry(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @__fist_print_generic_dentry(ptr noundef %5, ptr noundef @.str, ptr noundef %6, i32 noundef 1)
ret void
}
declare i32 @__fist_print_generic_dentry(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsmxho7gt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fist_print_generic_dentry(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @__fist_print_generic_dentry(ptr noundef %5, ptr noundef @.str, ptr noundef %6, i32 noundef 1)
ret void
}
declare i32 @__fist_print_generic_dentry(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzyrpp5ee.c'
source_filename = "/tmp/tmpzyrpp5ee.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @unserial_int32(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load ptr, ptr %4, align 8
%6 = call i32 @memcpy(ptr noundef %3, ptr noundef %5, i32 noundef 4)
%7 = load ptr, ptr %2, align 8
%8 = load ptr, ptr %7, align 8
%9 = getelementptr inbounds i32, ptr %8, i64 4
store ptr %9, ptr %7, align 8
%10 = load i32, ptr %3, align 4
%11 = call i32 @ntohl(i32 noundef %10)
ret i32 %11
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @ntohl(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/tmpzyrpp5ee.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @unserial_int32(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load ptr, ptr %4, align 8
%6 = call i32 @memcpy(ptr noundef %3, ptr noundef %5, i32 noundef 4)
%7 = load ptr, ptr %2, align 8
%8 = load ptr, ptr %7, align 8
%9 = getelementptr inbounds i32, ptr %8, i64 4
store ptr %9, ptr %7, align 8
%10 = load i32, ptr %3, align 4
%11 = call i32 @ntohl(i32 noundef %10)
ret i32 %11
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @ntohl(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/tmpjpurp0zk.c'
source_filename = "/tmp/tmpjpurp0zk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [162 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/stdlib/isqrt.c\00", align 1
@.str.1 = private unnamed_addr constant [38 x i8] c"Integer square root of 23 should be 4\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_sqrt_23() #0 {
%1 = call i32 @isqrt(i32 noundef 23)
%2 = icmp eq i32 %1, 4
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 120, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @isqrt(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/tmpjpurp0zk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [162 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/stdlib/isqrt.c\00", align 1
@.str.1 = private unnamed_addr constant [38 x i8] c"Integer square root of 23 should be 4\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_sqrt_23() #0 {
%1 = call i32 @isqrt(i32 noundef 23)
%2 = icmp eq i32 %1, 4
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 120, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @isqrt(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/tmppjr8jd7_.c'
source_filename = "/tmp/tmppjr8jd7_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nil_ivec(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = load i32, ptr %3, align 4
%7 = sext i32 %6 to i64
%8 = mul i64 4, %7
%9 = trunc i64 %8 to i32
%10 = call i32 @memset(ptr noundef %5, i32 noundef 0, i32 noundef %9)
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/tmppjr8jd7_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nil_ivec(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = load i32, ptr %3, align 4
%7 = sext i32 %6 to i64
%8 = mul i64 4, %7
%9 = trunc i64 %8 to i32
%10 = call i32 @memset(ptr noundef %5, i32 noundef 0, i32 noundef %9)
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/tmpphcf_gzo.c'
source_filename = "/tmp/tmpphcf_gzo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @chfreq(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr null, ptr %4, align 8
store i8 0, ptr %5, align 1
store i64 1, ptr %6, align 8
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 -1, ptr %9, align 4
%10 = load i64, ptr %6, align 8
%11 = trunc i64 %10 to i32
%12 = call i64 @calloc(i32 noundef %11, i32 noundef 8)
%13 = inttoptr i64 %12 to ptr
store ptr %13, ptr %4, align 8
%14 = load ptr, ptr %4, align 8
%15 = icmp eq ptr null, %14
br i1 %15, label %16, label %17
16: ; preds = %1
store ptr null, ptr %2, align 8
br label %80
17: ; preds = %1
br label %18
18: ; preds = %74, %17
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %8, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %8, align 4
%22 = sext i32 %20 to i64
%23 = getelementptr inbounds i8, ptr %19, i64 %22
%24 = load i8, ptr %23, align 1
store i8 %24, ptr %5, align 1
%25 = sext i8 %24 to i32
%26 = icmp ne i32 0, %25
br i1 %26, label %27, label %75
27: ; preds = %18
%28 = load ptr, ptr %4, align 8
%29 = load i8, ptr %5, align 1
%30 = call i32 @find(ptr noundef %28, i8 noundef signext %29)
store i32 %30, ptr %9, align 4
%31 = load i32, ptr %9, align 4
%32 = icmp eq i32 -1, %31
br i1 %32, label %33, label %65
33: ; preds = %27
%34 = load i32, ptr %7, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %7, align 4
store i32 %34, ptr %9, align 4
%36 = load ptr, ptr %4, align 8
%37 = load ptr, ptr %3, align 8
%38 = call i32 @ssize(ptr noundef %37)
%39 = sext i32 %38 to i64
%40 = mul i64 8, %39
%41 = trunc i64 %40 to i32
%42 = call i64 @realloc(ptr noundef %36, i32 noundef %41)
%43 = inttoptr i64 %42 to ptr
store ptr %43, ptr %4, align 8
%44 = call i64 @calloc(i32 noundef 2, i32 noundef 1)
%45 = inttoptr i64 %44 to ptr
%46 = load ptr, ptr %4, align 8
%47 = load i32, ptr %9, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds ptr, ptr %46, i64 %48
store ptr %45, ptr %49, align 8
%50 = load i8, ptr %5, align 1
%51 = load ptr, ptr %4, align 8
%52 = load i32, ptr %9, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds ptr, ptr %51, i64 %53
%55 = load ptr, ptr %54, align 8
%56 = getelementptr inbounds i8, ptr %55, i64 0
store i8 %50, ptr %56, align 1
%57 = load ptr, ptr %4, align 8
%58 = load i32, ptr %9, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds ptr, ptr %57, i64 %59
%61 = load ptr, ptr %60, align 8
%62 = getelementptr inbounds i8, ptr %61, i64 1
store i8 1, ptr %62, align 1
%63 = load i64, ptr %6, align 8
%64 = add i64 %63, 1
store i64 %64, ptr %6, align 8
br label %74
65: ; preds = %27
%66 = load ptr, ptr %4, align 8
%67 = load i32, ptr %9, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds ptr, ptr %66, i64 %68
%70 = load ptr, ptr %69, align 8
%71 = getelementptr inbounds i8, ptr %70, i64 1
%72 = load i8, ptr %71, align 1
%73 = add i8 %72, 1
store i8 %73, ptr %71, align 1
br label %74
74: ; preds = %65, %33
br label %18, !llvm.loop !6
75: ; preds = %18
%76 = load ptr, ptr %4, align 8
%77 = load i64, ptr %6, align 8
%78 = getelementptr inbounds ptr, ptr %76, i64 %77
store ptr null, ptr %78, align 8
%79 = load ptr, ptr %4, align 8
store ptr %79, ptr %2, align 8
br label %80
80: ; preds = %75, %16
%81 = load ptr, ptr %2, align 8
ret ptr %81
}
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @find(ptr noundef, i8 noundef signext) #1
declare i64 @realloc(ptr noundef, i32 noundef) #1
declare i32 @ssize(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpphcf_gzo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @chfreq(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr null, ptr %4, align 8
store i8 0, ptr %5, align 1
store i64 1, ptr %6, align 8
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 -1, ptr %9, align 4
%10 = load i64, ptr %6, align 8
%11 = trunc i64 %10 to i32
%12 = call i64 @calloc(i32 noundef %11, i32 noundef 8)
%13 = inttoptr i64 %12 to ptr
store ptr %13, ptr %4, align 8
%14 = load ptr, ptr %4, align 8
%15 = icmp eq ptr null, %14
br i1 %15, label %16, label %17
16: ; preds = %1
store ptr null, ptr %2, align 8
br label %87
17: ; preds = %1
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %8, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %8, align 4
%21 = sext i32 %19 to i64
%22 = getelementptr inbounds i8, ptr %18, i64 %21
%23 = load i8, ptr %22, align 1
store i8 %23, ptr %5, align 1
%24 = sext i8 %23 to i32
%25 = icmp ne i32 0, %24
br i1 %25, label %.lr.ph, label %82
.lr.ph: ; preds = %17
br label %26
26: ; preds = %.lr.ph, %73
%27 = load ptr, ptr %4, align 8
%28 = load i8, ptr %5, align 1
%29 = call i32 @find(ptr noundef %27, i8 noundef signext %28)
store i32 %29, ptr %9, align 4
%30 = load i32, ptr %9, align 4
%31 = icmp eq i32 -1, %30
br i1 %31, label %32, label %64
32: ; preds = %26
%33 = load i32, ptr %7, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %7, align 4
store i32 %33, ptr %9, align 4
%35 = load ptr, ptr %4, align 8
%36 = load ptr, ptr %3, align 8
%37 = call i32 @ssize(ptr noundef %36)
%38 = sext i32 %37 to i64
%39 = mul i64 8, %38
%40 = trunc i64 %39 to i32
%41 = call i64 @realloc(ptr noundef %35, i32 noundef %40)
%42 = inttoptr i64 %41 to ptr
store ptr %42, ptr %4, align 8
%43 = call i64 @calloc(i32 noundef 2, i32 noundef 1)
%44 = inttoptr i64 %43 to ptr
%45 = load ptr, ptr %4, align 8
%46 = load i32, ptr %9, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds ptr, ptr %45, i64 %47
store ptr %44, ptr %48, align 8
%49 = load i8, ptr %5, align 1
%50 = load ptr, ptr %4, align 8
%51 = load i32, ptr %9, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds ptr, ptr %50, i64 %52
%54 = load ptr, ptr %53, align 8
%55 = getelementptr inbounds i8, ptr %54, i64 0
store i8 %49, ptr %55, align 1
%56 = load ptr, ptr %4, 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 = getelementptr inbounds i8, ptr %60, i64 1
store i8 1, ptr %61, align 1
%62 = load i64, ptr %6, align 8
%63 = add i64 %62, 1
store i64 %63, ptr %6, align 8
br label %73
64: ; preds = %26
%65 = load ptr, ptr %4, align 8
%66 = load i32, ptr %9, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds ptr, ptr %65, i64 %67
%69 = load ptr, ptr %68, align 8
%70 = getelementptr inbounds i8, ptr %69, i64 1
%71 = load i8, ptr %70, align 1
%72 = add i8 %71, 1
store i8 %72, ptr %70, align 1
br label %73
73: ; preds = %64, %32
%74 = load ptr, ptr %3, align 8
%75 = load i32, ptr %8, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %8, align 4
%77 = sext i32 %75 to i64
%78 = getelementptr inbounds i8, ptr %74, i64 %77
%79 = load i8, ptr %78, align 1
store i8 %79, ptr %5, align 1
%80 = sext i8 %79 to i32
%81 = icmp ne i32 0, %80
br i1 %81, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %73
br label %82
82: ; preds = %._crit_edge, %17
%83 = load ptr, ptr %4, align 8
%84 = load i64, ptr %6, align 8
%85 = getelementptr inbounds ptr, ptr %83, i64 %84
store ptr null, ptr %85, align 8
%86 = load ptr, ptr %4, align 8
store ptr %86, ptr %2, align 8
br label %87
87: ; preds = %82, %16
%88 = load ptr, ptr %2, align 8
ret ptr %88
}
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @find(ptr noundef, i8 noundef signext) #1
declare i64 @realloc(ptr noundef, i32 noundef) #1
declare i32 @ssize(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpbu853lsd.c'
source_filename = "/tmp/tmpbu853lsd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_4__ = type { ptr, ptr, ptr, ptr }
@Z_SYNC_FLUSH = dso_local global i32 0, align 4
@Z_OK = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"error %d in compressing\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gtg_decompress_f2m(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca [131072 x i32], align 16
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr null, ptr %12, align 8
store i32 0, ptr %13, align 4
br label %14
14: ; preds = %52, %4
%15 = load ptr, ptr %7, align 8
%16 = call i32 @feof(ptr noundef %15)
%17 = icmp ne i32 %16, 0
%18 = xor i1 %17, true
br i1 %18, label %19, label %61
19: ; preds = %14
%20 = getelementptr inbounds [131072 x i32], ptr %11, i64 0, i64 0
%21 = load ptr, ptr %7, align 8
%22 = call ptr @fread(ptr noundef %20, i32 noundef 131072, i32 noundef 4, ptr noundef %21)
store ptr %22, ptr %12, align 8
%23 = load ptr, ptr %12, align 8
%24 = load ptr, ptr %6, align 8
%25 = getelementptr inbounds %struct.TYPE_4__, ptr %24, i32 0, i32 3
store ptr %23, ptr %25, align 8
%26 = getelementptr inbounds [131072 x i32], ptr %11, i64 0, i64 0
%27 = load ptr, ptr %6, align 8
%28 = getelementptr inbounds %struct.TYPE_4__, ptr %27, i32 0, i32 2
store ptr %26, ptr %28, align 8
%29 = load ptr, ptr %9, align 8
%30 = load i32, ptr %13, align 4
%31 = sext i32 %30 to i64
%32 = sub i64 0, %31
%33 = getelementptr i8, ptr %29, i64 %32
%34 = load ptr, ptr %6, align 8
%35 = getelementptr inbounds %struct.TYPE_4__, ptr %34, i32 0, i32 0
store ptr %33, ptr %35, align 8
%36 = load ptr, ptr %8, align 8
%37 = load i32, ptr %13, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i32, ptr %36, i64 %38
%40 = load ptr, ptr %6, align 8
%41 = getelementptr inbounds %struct.TYPE_4__, ptr %40, i32 0, i32 1
store ptr %39, ptr %41, align 8
%42 = load ptr, ptr %6, align 8
%43 = load i32, ptr @Z_SYNC_FLUSH, align 4
%44 = call i32 @inflate(ptr noundef %42, i32 noundef %43)
store i32 %44, ptr %10, align 4
%45 = load i32, ptr @Z_OK, align 4
%46 = load i32, ptr %10, align 4
%47 = icmp ne i32 %45, %46
br i1 %47, label %48, label %52
48: ; preds = %19
%49 = load i32, ptr @stderr, align 4
%50 = load i32, ptr %10, align 4
%51 = call i32 @fprintf(i32 noundef %49, ptr noundef @.str, i32 noundef %50)
store i32 -1, ptr %5, align 4
br label %63
52: ; preds = %19
%53 = load ptr, ptr %9, align 8
%54 = load ptr, ptr %6, align 8
%55 = getelementptr inbounds %struct.TYPE_4__, ptr %54, i32 0, i32 0
%56 = load ptr, ptr %55, align 8
%57 = ptrtoint ptr %53 to i64
%58 = ptrtoint ptr %56 to i64
%59 = sub i64 %57, %58
%60 = trunc i64 %59 to i32
store i32 %60, ptr %13, align 4
br label %14, !llvm.loop !6
61: ; preds = %14
%62 = load i32, ptr %13, align 4
store i32 %62, ptr %5, align 4
br label %63
63: ; preds = %61, %48
%64 = load i32, ptr %5, align 4
ret i32 %64
}
declare i32 @feof(ptr noundef) #1
declare ptr @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @inflate(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbu853lsd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_4__ = type { ptr, ptr, ptr, ptr }
@Z_SYNC_FLUSH = dso_local global i32 0, align 4
@Z_OK = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"error %d in compressing\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gtg_decompress_f2m(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca [131072 x i32], align 16
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr null, ptr %12, align 8
store i32 0, ptr %13, align 4
%14 = load ptr, ptr %7, align 8
%15 = call i32 @feof(ptr noundef %14)
%16 = icmp ne i32 %15, 0
%17 = xor i1 %16, true
br i1 %17, label %.lr.ph, label %64
.lr.ph: ; preds = %4
br label %18
18: ; preds = %.lr.ph, %51
%19 = getelementptr inbounds [131072 x i32], ptr %11, i64 0, i64 0
%20 = load ptr, ptr %7, align 8
%21 = call ptr @fread(ptr noundef %19, i32 noundef 131072, i32 noundef 4, ptr noundef %20)
store ptr %21, ptr %12, align 8
%22 = load ptr, ptr %12, align 8
%23 = load ptr, ptr %6, align 8
%24 = getelementptr inbounds %struct.TYPE_4__, ptr %23, i32 0, i32 3
store ptr %22, ptr %24, align 8
%25 = getelementptr inbounds [131072 x i32], ptr %11, i64 0, i64 0
%26 = load ptr, ptr %6, align 8
%27 = getelementptr inbounds %struct.TYPE_4__, ptr %26, i32 0, i32 2
store ptr %25, ptr %27, align 8
%28 = load ptr, ptr %9, align 8
%29 = load i32, ptr %13, align 4
%30 = sext i32 %29 to i64
%31 = sub i64 0, %30
%32 = getelementptr i8, ptr %28, i64 %31
%33 = load ptr, ptr %6, align 8
%34 = getelementptr inbounds %struct.TYPE_4__, ptr %33, i32 0, i32 0
store ptr %32, ptr %34, align 8
%35 = load ptr, ptr %8, align 8
%36 = load i32, ptr %13, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %35, i64 %37
%39 = load ptr, ptr %6, align 8
%40 = getelementptr inbounds %struct.TYPE_4__, ptr %39, i32 0, i32 1
store ptr %38, ptr %40, align 8
%41 = load ptr, ptr %6, align 8
%42 = load i32, ptr @Z_SYNC_FLUSH, align 4
%43 = call i32 @inflate(ptr noundef %41, i32 noundef %42)
store i32 %43, ptr %10, align 4
%44 = load i32, ptr @Z_OK, align 4
%45 = load i32, ptr %10, align 4
%46 = icmp ne i32 %44, %45
br i1 %46, label %47, label %51
47: ; preds = %18
%48 = load i32, ptr @stderr, align 4
%49 = load i32, ptr %10, align 4
%50 = call i32 @fprintf(i32 noundef %48, ptr noundef @.str, i32 noundef %49)
store i32 -1, ptr %5, align 4
br label %66
51: ; preds = %18
%52 = load ptr, ptr %9, align 8
%53 = load ptr, ptr %6, align 8
%54 = getelementptr inbounds %struct.TYPE_4__, ptr %53, i32 0, i32 0
%55 = load ptr, ptr %54, align 8
%56 = ptrtoint ptr %52 to i64
%57 = ptrtoint ptr %55 to i64
%58 = sub i64 %56, %57
%59 = trunc i64 %58 to i32
store i32 %59, ptr %13, align 4
%60 = load ptr, ptr %7, align 8
%61 = call i32 @feof(ptr noundef %60)
%62 = icmp ne i32 %61, 0
%63 = xor i1 %62, true
br i1 %63, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %51
br label %64
64: ; preds = %._crit_edge, %4
%65 = load i32, ptr %13, align 4
store i32 %65, ptr %5, align 4
br label %66
66: ; preds = %64, %47
%67 = load i32, ptr %5, align 4
ret i32 %67
}
declare i32 @feof(ptr noundef) #1
declare ptr @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @inflate(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp14pz6pfe.c'
source_filename = "/tmp/tmp14pz6pfe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @TexCoord2f(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @glTexCoord2f(i32 noundef %5, i32 noundef %6)
ret void
}
declare i32 @glTexCoord2f(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/tmp14pz6pfe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @TexCoord2f(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @glTexCoord2f(i32 noundef %5, i32 noundef %6)
ret void
}
declare i32 @glTexCoord2f(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp___jqjcl.c'
source_filename = "/tmp/tmp___jqjcl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp___jqjcl.c"
target datalayout = "e-m:e-p270: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/tmp7x6w30hx.c'
source_filename = "/tmp/tmp7x6w30hx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"x%d\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @down(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i64 %0, ptr %2, align 8
store i32 1, ptr %3, align 4
store i32 2, ptr %4, align 4
br label %5
5: ; preds = %40, %1
%6 = load i32, ptr %4, align 4
%7 = icmp sgt i32 %6, 1
%8 = zext i1 %7 to i32
%9 = load i32, ptr %4, align 4
%10 = sext i32 %9 to i64
%11 = load i64, ptr %2, align 8
%12 = icmp ule i64 %10, %11
%13 = zext i1 %12 to i32
%14 = and i32 %8, %13
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %43
16: ; preds = %5
br label %17
17: ; preds = %32, %16
%18 = load i64, ptr %2, align 8
%19 = load i32, ptr %4, align 4
%20 = sext i32 %19 to i64
%21 = urem i64 %18, %20
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %39
23: ; preds = %17
%24 = load i32, ptr %3, align 4
%25 = icmp eq i32 %24, 1
br i1 %25, label %26, label %29
26: ; preds = %23
%27 = load i32, ptr %4, align 4
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %27)
br label %32
29: ; preds = %23
%30 = load i32, ptr %4, align 4
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %30)
br label %32
32: ; preds = %29, %26
%33 = load i32, ptr %3, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %3, align 4
%35 = load i64, ptr %2, align 8
%36 = load i32, ptr %4, align 4
%37 = sext i32 %36 to i64
%38 = udiv i64 %35, %37
store i64 %38, ptr %2, align 8
br label %17, !llvm.loop !6
39: ; preds = %17
br label %40
40: ; preds = %39
%41 = load i32, ptr %4, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %4, align 4
br label %5, !llvm.loop !8
43: ; preds = %5
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7x6w30hx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"x%d\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @down(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i64 %0, ptr %2, align 8
store i32 1, ptr %3, align 4
store i32 2, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp sgt i32 %5, 1
%7 = zext i1 %6 to i32
%8 = load i32, ptr %4, align 4
%9 = sext i32 %8 to i64
%10 = load i64, ptr %2, align 8
%11 = icmp ule i64 %9, %10
%12 = zext i1 %11 to i32
%13 = and i32 %7, %12
%14 = icmp ne i32 %13, 0
br i1 %14, label %.lr.ph2, label %56
.lr.ph2: ; preds = %1
br label %15
15: ; preds = %.lr.ph2, %43
%16 = load i64, ptr %2, align 8
%17 = load i32, ptr %4, align 4
%18 = sext i32 %17 to i64
%19 = urem i64 %16, %18
%20 = icmp eq i64 %19, 0
br i1 %20, label %.lr.ph, label %42
.lr.ph: ; preds = %15
br label %21
21: ; preds = %.lr.ph, %30
%22 = load i32, ptr %3, align 4
%23 = icmp eq i32 %22, 1
br i1 %23, label %24, label %27
24: ; preds = %21
%25 = load i32, ptr %4, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %25)
br label %30
27: ; preds = %21
%28 = load i32, ptr %4, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %28)
br label %30
30: ; preds = %27, %24
%31 = load i32, ptr %3, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %3, align 4
%33 = load i64, ptr %2, align 8
%34 = load i32, ptr %4, align 4
%35 = sext i32 %34 to i64
%36 = udiv i64 %33, %35
store i64 %36, ptr %2, align 8
%37 = load i64, ptr %2, align 8
%38 = load i32, ptr %4, align 4
%39 = sext i32 %38 to i64
%40 = urem i64 %37, %39
%41 = icmp eq i64 %40, 0
br i1 %41, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %42
42: ; preds = %._crit_edge, %15
br label %43
43: ; preds = %42
%44 = load i32, ptr %4, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %4, align 4
%46 = load i32, ptr %4, align 4
%47 = icmp sgt i32 %46, 1
%48 = zext i1 %47 to i32
%49 = load i32, ptr %4, align 4
%50 = sext i32 %49 to i64
%51 = load i64, ptr %2, align 8
%52 = icmp ule i64 %50, %51
%53 = zext i1 %52 to i32
%54 = and i32 %48, %53
%55 = icmp ne i32 %54, 0
br i1 %55, label %15, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %43
br label %56
56: ; preds = %._crit_edge3, %1
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpf2sob6n6.c'
source_filename = "/tmp/tmpf2sob6n6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strcoll(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = call i32 (...) @__infer_nondet_int()
ret i32 %5
}
declare i32 @__infer_nondet_int(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf2sob6n6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strcoll(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = call i32 (...) @__infer_nondet_int()
ret i32 %5
}
declare i32 @__infer_nondet_int(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdt0b8f3v.c'
source_filename = "/tmp/tmpdt0b8f3v.c"
target datalayout = "e-m:e-p270: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/tmpdt0b8f3v.c"
target datalayout = "e-m:e-p270: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/tmpcr5unovg.c'
source_filename = "/tmp/tmpcr5unovg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dumpio_syscheck_() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @dumpio_syscheck()
store i32 %2, ptr %1, align 4
ret void
}
declare i32 @dumpio_syscheck(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcr5unovg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dumpio_syscheck_() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @dumpio_syscheck()
store i32 %2, ptr %1, align 4
ret void
}
declare i32 @dumpio_syscheck(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2s_rmvv1.c'
source_filename = "/tmp/tmp2s_rmvv1.c"
target datalayout = "e-m:e-p270: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.test_large_same_length.a = private unnamed_addr constant [7 x i32] [i32 -10, i32 -4, i32 -1, i32 3, i32 7, i32 9, i32 14], align 16
@__const.test_large_same_length.b = private unnamed_addr constant [7 x i32] [i32 -7, i32 -3, i32 0, i32 1, i32 5, i32 15, i32 22], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_large_same_length() #0 {
%1 = alloca [7 x i32], align 16
%2 = alloca [7 x i32], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.test_large_same_length.a, i64 28, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.test_large_same_length.b, i64 28, i1 false)
%3 = getelementptr inbounds [7 x i32], ptr %1, i64 0, i64 0
%4 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%5 = call double @median(ptr noundef %3, i32 noundef 7, ptr noundef %4, i32 noundef 7)
%6 = fcmp oeq double 2.000000e+00, %5
br i1 %6, label %7, label %22
7: ; preds = %0
%8 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%9 = getelementptr inbounds [7 x i32], ptr %1, i64 0, i64 0
%10 = call double @median(ptr noundef %8, i32 noundef 7, ptr noundef %9, i32 noundef 7)
%11 = fcmp oeq double 2.000000e+00, %10
br i1 %11, label %12, label %22
12: ; preds = %7
%13 = getelementptr inbounds [7 x i32], ptr %1, i64 0, i64 0
%14 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%15 = call double @median_opt(ptr noundef %13, ptr noundef %14, i32 noundef 7)
%16 = fcmp oeq double 2.000000e+00, %15
br i1 %16, label %17, label %22
17: ; preds = %12
%18 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%19 = getelementptr inbounds [7 x i32], ptr %1, i64 0, i64 0
%20 = call double @median_opt(ptr noundef %18, ptr noundef %19, i32 noundef 7)
%21 = fcmp oeq double 2.000000e+00, %20
br label %22
22: ; preds = %17, %12, %7, %0
%23 = phi i1 [ false, %12 ], [ false, %7 ], [ false, %0 ], [ %21, %17 ]
%24 = zext i1 %23 to i32
ret i32 %24
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare double @median(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2
declare double @median_opt(ptr noundef, 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2s_rmvv1.c"
target datalayout = "e-m:e-p270: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.test_large_same_length.a = private unnamed_addr constant [7 x i32] [i32 -10, i32 -4, i32 -1, i32 3, i32 7, i32 9, i32 14], align 16
@__const.test_large_same_length.b = private unnamed_addr constant [7 x i32] [i32 -7, i32 -3, i32 0, i32 1, i32 5, i32 15, i32 22], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_large_same_length() #0 {
%1 = alloca [7 x i32], align 16
%2 = alloca [7 x i32], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.test_large_same_length.a, i64 28, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.test_large_same_length.b, i64 28, i1 false)
%3 = getelementptr inbounds [7 x i32], ptr %1, i64 0, i64 0
%4 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%5 = call double @median(ptr noundef %3, i32 noundef 7, ptr noundef %4, i32 noundef 7)
%6 = fcmp oeq double 2.000000e+00, %5
br i1 %6, label %7, label %22
7: ; preds = %0
%8 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%9 = getelementptr inbounds [7 x i32], ptr %1, i64 0, i64 0
%10 = call double @median(ptr noundef %8, i32 noundef 7, ptr noundef %9, i32 noundef 7)
%11 = fcmp oeq double 2.000000e+00, %10
br i1 %11, label %12, label %22
12: ; preds = %7
%13 = getelementptr inbounds [7 x i32], ptr %1, i64 0, i64 0
%14 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%15 = call double @median_opt(ptr noundef %13, ptr noundef %14, i32 noundef 7)
%16 = fcmp oeq double 2.000000e+00, %15
br i1 %16, label %17, label %22
17: ; preds = %12
%18 = getelementptr inbounds [7 x i32], ptr %2, i64 0, i64 0
%19 = getelementptr inbounds [7 x i32], ptr %1, i64 0, i64 0
%20 = call double @median_opt(ptr noundef %18, ptr noundef %19, i32 noundef 7)
%21 = fcmp oeq double 2.000000e+00, %20
br label %22
22: ; preds = %17, %12, %7, %0
%23 = phi i1 [ false, %12 ], [ false, %7 ], [ false, %0 ], [ %21, %17 ]
%24 = zext i1 %23 to i32
ret i32 %24
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare double @median(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2
declare double @median_opt(ptr noundef, 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"}
|
; ModuleID = '/tmp/tmpmun025hl.c'
source_filename = "/tmp/tmpmun025hl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"intel-rapl\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @powercap_rapl_control_is_enabled() #0 {
%1 = alloca i64, align 8
%2 = alloca i32, align 4
%3 = call i32 @powercap_sysfs_control_type_get_enabled(ptr noundef @.str, ptr noundef %1)
store i32 %3, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = load i32, ptr %2, align 4
br label %13
8: ; preds = %0
%9 = load i64, ptr %1, align 8
%10 = icmp ne i64 %9, 0
%11 = zext i1 %10 to i64
%12 = select i1 %10, i32 1, i32 0
br label %13
13: ; preds = %8, %6
%14 = phi i32 [ %7, %6 ], [ %12, %8 ]
ret i32 %14
}
declare i32 @powercap_sysfs_control_type_get_enabled(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/tmpmun025hl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"intel-rapl\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @powercap_rapl_control_is_enabled() #0 {
%1 = alloca i64, align 8
%2 = alloca i32, align 4
%3 = call i32 @powercap_sysfs_control_type_get_enabled(ptr noundef @.str, ptr noundef %1)
store i32 %3, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = load i32, ptr %2, align 4
br label %13
8: ; preds = %0
%9 = load i64, ptr %1, align 8
%10 = icmp ne i64 %9, 0
%11 = zext i1 %10 to i64
%12 = select i1 %10, i32 1, i32 0
br label %13
13: ; preds = %8, %6
%14 = phi i32 [ %7, %6 ], [ %12, %8 ]
ret i32 %14
}
declare i32 @powercap_sysfs_control_type_get_enabled(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/tmp0v7w6ir2.c'
source_filename = "/tmp/tmp0v7w6ir2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @process_instruction() #0 {
%1 = call i32 (...) @fetch_instruction()
%2 = call i32 (...) @decode_instruction()
%3 = call i32 (...) @execute_instruction()
ret void
}
declare i32 @fetch_instruction(...) #1
declare i32 @decode_instruction(...) #1
declare i32 @execute_instruction(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0v7w6ir2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @process_instruction() #0 {
%1 = call i32 (...) @fetch_instruction()
%2 = call i32 (...) @decode_instruction()
%3 = call i32 (...) @execute_instruction()
ret void
}
declare i32 @fetch_instruction(...) #1
declare i32 @decode_instruction(...) #1
declare i32 @execute_instruction(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpe1_m3e91.c'
source_filename = "/tmp/tmpe1_m3e91.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [7 x i8], align 1
%7 = alloca [7 x i8], align 1
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %8, align 4
store i32 1, ptr %9, align 4
store i32 1, ptr %10, align 4
br label %15
15: ; preds = %22, %2
%16 = load i32, ptr %10, align 4
%17 = icmp sle i32 %16, 7
br i1 %17, label %18, label %25
18: ; preds = %15
%19 = load i32, ptr %10, align 4
%20 = load i32, ptr %9, align 4
%21 = mul nsw i32 %20, %19
store i32 %21, ptr %9, align 4
br label %22
22: ; preds = %18
%23 = load i32, ptr %10, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %10, align 4
br label %15, !llvm.loop !6
25: ; preds = %15
store i32 0, ptr %10, align 4
br label %26
26: ; preds = %114, %25
%27 = load i32, ptr %10, align 4
%28 = load i32, ptr %9, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %30, label %117
30: ; preds = %26
store i32 0, ptr %12, align 4
br label %31
31: ; preds = %41, %30
%32 = load i32, ptr %12, align 4
%33 = icmp slt i32 %32, 7
br i1 %33, label %34, label %44
34: ; preds = %31
%35 = load i32, ptr %12, align 4
%36 = add nsw i32 %35, 1
%37 = trunc i32 %36 to i8
%38 = load i32, ptr %12, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [7 x i8], ptr %6, i64 0, i64 %39
store i8 %37, ptr %40, align 1
br label %41
41: ; preds = %34
%42 = load i32, ptr %12, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %12, align 4
br label %31, !llvm.loop !8
44: ; preds = %31
%45 = load i32, ptr %10, align 4
store i32 %45, ptr %11, align 4
store i32 0, ptr %12, align 4
br label %46
46: ; preds = %81, %44
%47 = load i32, ptr %12, align 4
%48 = icmp slt i32 %47, 7
br i1 %48, label %49, label %84
49: ; preds = %46
%50 = load i32, ptr %11, align 4
%51 = load i32, ptr %12, align 4
%52 = sub nsw i32 7, %51
%53 = srem i32 %50, %52
store i32 %53, ptr %13, align 4
%54 = load i32, ptr %13, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [7 x i8], ptr %6, i64 0, i64 %55
%57 = load i8, ptr %56, align 1
%58 = load i32, ptr %12, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [7 x i8], ptr %7, i64 0, i64 %59
store i8 %57, ptr %60, align 1
%61 = load i32, ptr %12, align 4
%62 = sub nsw i32 7, %61
%63 = load i32, ptr %11, align 4
%64 = sdiv i32 %63, %62
store i32 %64, ptr %11, align 4
br label %65
65: ; preds = %77, %49
%66 = load i32, ptr %13, align 4
%67 = icmp slt i32 %66, 6
br i1 %67, label %68, label %80
68: ; preds = %65
%69 = load i32, ptr %13, align 4
%70 = add nsw i32 %69, 1
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [7 x i8], ptr %6, i64 0, i64 %71
%73 = load i8, ptr %72, align 1
%74 = load i32, ptr %13, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [7 x i8], ptr %6, i64 0, i64 %75
store i8 %73, ptr %76, align 1
br label %77
77: ; preds = %68
%78 = load i32, ptr %13, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %13, align 4
br label %65, !llvm.loop !9
80: ; preds = %65
br label %81
81: ; preds = %80
%82 = load i32, ptr %12, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %12, align 4
br label %46, !llvm.loop !10
84: ; preds = %46
store i32 0, ptr %14, align 4
store i32 0, ptr %12, align 4
store i32 1, ptr %13, align 4
br label %85
85: ; preds = %98, %84
%86 = load i32, ptr %12, align 4
%87 = icmp slt i32 %86, 7
br i1 %87, label %88, label %103
88: ; preds = %85
%89 = load i32, ptr %12, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [7 x i8], ptr %7, i64 0, i64 %90
%92 = load i8, ptr %91, align 1
%93 = sext i8 %92 to i32
%94 = load i32, ptr %13, align 4
%95 = mul nsw i32 %93, %94
%96 = load i32, ptr %14, align 4
%97 = add nsw i32 %96, %95
store i32 %97, ptr %14, align 4
br label %98
98: ; preds = %88
%99 = load i32, ptr %12, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %12, align 4
%101 = load i32, ptr %13, align 4
%102 = mul nsw i32 %101, 10
store i32 %102, ptr %13, align 4
br label %85, !llvm.loop !11
103: ; preds = %85
%104 = load i32, ptr %14, align 4
%105 = call i64 @is_prime(i32 noundef %104)
%106 = icmp ne i64 %105, 0
br i1 %106, label %107, label %113
107: ; preds = %103
%108 = load i32, ptr %14, align 4
%109 = load i32, ptr %8, align 4
%110 = icmp sgt i32 %108, %109
br i1 %110, label %111, label %113
111: ; preds = %107
%112 = load i32, ptr %14, align 4
store i32 %112, ptr %8, align 4
br label %113
113: ; preds = %111, %107, %103
br label %114
114: ; preds = %113
%115 = load i32, ptr %10, align 4
%116 = add nsw i32 %115, 1
store i32 %116, ptr %10, align 4
br label %26, !llvm.loop !12
117: ; preds = %26
%118 = load i32, ptr %8, align 4
%119 = call i32 @printf(ptr noundef @.str, i32 noundef %118)
ret i32 0
}
declare i64 @is_prime(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe1_m3e91.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [7 x i8], align 1
%7 = alloca [7 x i8], align 1
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %8, align 4
store i32 1, ptr %9, align 4
store i32 1, ptr %10, align 4
%15 = load i32, ptr %10, align 4
%16 = icmp sle i32 %15, 7
br i1 %16, label %.lr.ph, label %26
.lr.ph: ; preds = %2
br label %17
17: ; preds = %.lr.ph, %21
%18 = load i32, ptr %10, align 4
%19 = load i32, ptr %9, align 4
%20 = mul nsw i32 %19, %18
store i32 %20, ptr %9, align 4
br label %21
21: ; preds = %17
%22 = load i32, ptr %10, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %10, align 4
%24 = load i32, ptr %10, align 4
%25 = icmp sle i32 %24, 7
br i1 %25, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %26
26: ; preds = %._crit_edge, %2
store i32 0, ptr %10, align 4
%27 = load i32, ptr %10, align 4
%28 = load i32, ptr %9, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %.lr.ph14, label %124
.lr.ph14: ; preds = %26
br label %30
30: ; preds = %.lr.ph14, %118
store i32 0, ptr %12, align 4
%31 = load i32, ptr %12, align 4
%32 = icmp slt i32 %31, 7
br i1 %32, label %.lr.ph2, label %45
.lr.ph2: ; preds = %30
br label %33
33: ; preds = %.lr.ph2, %40
%34 = load i32, ptr %12, align 4
%35 = add nsw i32 %34, 1
%36 = trunc i32 %35 to i8
%37 = load i32, ptr %12, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [7 x i8], ptr %6, i64 0, i64 %38
store i8 %36, ptr %39, align 1
br label %40
40: ; preds = %33
%41 = load i32, ptr %12, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %12, align 4
%43 = load i32, ptr %12, align 4
%44 = icmp slt i32 %43, 7
br i1 %44, label %33, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %40
br label %45
45: ; preds = %._crit_edge3, %30
%46 = load i32, ptr %10, align 4
store i32 %46, ptr %11, align 4
store i32 0, ptr %12, align 4
%47 = load i32, ptr %12, align 4
%48 = icmp slt i32 %47, 7
br i1 %48, label %.lr.ph8, label %87
.lr.ph8: ; preds = %45
br label %49
49: ; preds = %.lr.ph8, %82
%50 = load i32, ptr %11, align 4
%51 = load i32, ptr %12, align 4
%52 = sub nsw i32 7, %51
%53 = srem i32 %50, %52
store i32 %53, ptr %13, align 4
%54 = load i32, ptr %13, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [7 x i8], ptr %6, i64 0, i64 %55
%57 = load i8, ptr %56, align 1
%58 = load i32, ptr %12, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [7 x i8], ptr %7, i64 0, i64 %59
store i8 %57, ptr %60, align 1
%61 = load i32, ptr %12, align 4
%62 = sub nsw i32 7, %61
%63 = load i32, ptr %11, align 4
%64 = sdiv i32 %63, %62
store i32 %64, ptr %11, align 4
%65 = load i32, ptr %13, align 4
%66 = icmp slt i32 %65, 6
br i1 %66, label %.lr.ph5, label %81
.lr.ph5: ; preds = %49
br label %67
67: ; preds = %.lr.ph5, %76
%68 = load i32, ptr %13, align 4
%69 = add nsw i32 %68, 1
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [7 x i8], ptr %6, i64 0, i64 %70
%72 = load i8, ptr %71, align 1
%73 = load i32, ptr %13, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [7 x i8], ptr %6, i64 0, i64 %74
store i8 %72, ptr %75, align 1
br label %76
76: ; preds = %67
%77 = load i32, ptr %13, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %13, align 4
%79 = load i32, ptr %13, align 4
%80 = icmp slt i32 %79, 6
br i1 %80, label %67, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %76
br label %81
81: ; preds = %._crit_edge6, %49
br label %82
82: ; preds = %81
%83 = load i32, ptr %12, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %12, align 4
%85 = load i32, ptr %12, align 4
%86 = icmp slt i32 %85, 7
br i1 %86, label %49, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %82
br label %87
87: ; preds = %._crit_edge9, %45
store i32 0, ptr %14, align 4
store i32 0, ptr %12, align 4
store i32 1, ptr %13, align 4
%88 = load i32, ptr %12, align 4
%89 = icmp slt i32 %88, 7
br i1 %89, label %.lr.ph11, label %107
.lr.ph11: ; preds = %87
br label %90
90: ; preds = %.lr.ph11, %100
%91 = load i32, ptr %12, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [7 x i8], ptr %7, i64 0, i64 %92
%94 = load i8, ptr %93, align 1
%95 = sext i8 %94 to i32
%96 = load i32, ptr %13, align 4
%97 = mul nsw i32 %95, %96
%98 = load i32, ptr %14, align 4
%99 = add nsw i32 %98, %97
store i32 %99, ptr %14, align 4
br label %100
100: ; preds = %90
%101 = load i32, ptr %12, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %12, align 4
%103 = load i32, ptr %13, align 4
%104 = mul nsw i32 %103, 10
store i32 %104, ptr %13, align 4
%105 = load i32, ptr %12, align 4
%106 = icmp slt i32 %105, 7
br i1 %106, label %90, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %100
br label %107
107: ; preds = %._crit_edge12, %87
%108 = load i32, ptr %14, align 4
%109 = call i64 @is_prime(i32 noundef %108)
%110 = icmp ne i64 %109, 0
br i1 %110, label %111, label %117
111: ; preds = %107
%112 = load i32, ptr %14, align 4
%113 = load i32, ptr %8, align 4
%114 = icmp sgt i32 %112, %113
br i1 %114, label %115, label %117
115: ; preds = %111
%116 = load i32, ptr %14, align 4
store i32 %116, ptr %8, align 4
br label %117
117: ; preds = %115, %111, %107
br label %118
118: ; preds = %117
%119 = load i32, ptr %10, align 4
%120 = add nsw i32 %119, 1
store i32 %120, ptr %10, align 4
%121 = load i32, ptr %10, align 4
%122 = load i32, ptr %9, align 4
%123 = icmp slt i32 %121, %122
br i1 %123, label %30, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %118
br label %124
124: ; preds = %._crit_edge15, %26
%125 = load i32, ptr %8, align 4
%126 = call i32 @printf(ptr noundef @.str, i32 noundef %125)
ret i32 0
}
declare i64 @is_prime(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmp0k48p01l.c'
source_filename = "/tmp/tmp0k48p01l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @normalize_path(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%10 = load ptr, ptr %4, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %14, label %12
12: ; preds = %2
%13 = load ptr, ptr %4, align 8
store ptr %13, ptr %3, align 8
br label %148
14: ; preds = %2
%15 = load ptr, ptr %4, align 8
%16 = call i32 @strlen(ptr noundef %15)
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %14
%20 = load ptr, ptr %4, align 8
store ptr %20, ptr %3, align 8
br label %148
21: ; preds = %14
%22 = load i32, ptr %6, align 4
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %43
24: ; preds = %21
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %6, align 4
%27 = sub nsw i32 %26, 1
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %25, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds i8, ptr %32, i64 0
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %31, %35
br i1 %36, label %37, label %43
37: ; preds = %24
%38 = load ptr, ptr %4, align 8
%39 = load i32, ptr %6, align 4
%40 = sub nsw i32 %39, 1
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, ptr %38, i64 %41
store i8 0, ptr %42, align 1
br label %43
43: ; preds = %37, %24, %21
%44 = load ptr, ptr %4, align 8
%45 = call ptr @strchr(ptr noundef %44, i8 noundef signext 46)
store ptr %45, ptr %7, align 8
br label %46
46: ; preds = %129, %43
%47 = load ptr, ptr %7, align 8
%48 = icmp ne ptr %47, null
br i1 %48, label %49, label %132
49: ; preds = %46
%50 = load ptr, ptr %7, align 8
%51 = load ptr, ptr %4, align 8
%52 = icmp ugt ptr %50, %51
br i1 %52, label %53, label %126
53: ; preds = %49
%54 = load ptr, ptr %7, align 8
%55 = getelementptr inbounds i8, ptr %54, i64 -1
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = load ptr, ptr %5, align 8
%59 = getelementptr inbounds i8, ptr %58, i64 0
%60 = load i8, ptr %59, align 1
%61 = sext i8 %60 to i32
%62 = icmp eq i32 %57, %61
br i1 %62, label %63, label %126
63: ; preds = %53
%64 = load ptr, ptr %7, align 8
%65 = getelementptr inbounds i8, ptr %64, i64 1
%66 = load i8, ptr %65, align 1
%67 = sext i8 %66 to i32
%68 = icmp eq i32 %67, 46
br i1 %68, label %69, label %125
69: ; preds = %63
%70 = load ptr, ptr %7, align 8
%71 = getelementptr inbounds i8, ptr %70, i64 2
%72 = load i8, ptr %71, align 1
%73 = sext i8 %72 to i32
%74 = icmp eq i32 %73, 0
br i1 %74, label %85, label %75
75: ; preds = %69
%76 = load ptr, ptr %7, align 8
%77 = getelementptr inbounds i8, ptr %76, i64 2
%78 = load i8, ptr %77, align 1
%79 = sext i8 %78 to i32
%80 = load ptr, ptr %5, 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 eq i32 %79, %83
br i1 %84, label %85, label %125
85: ; preds = %75, %69
%86 = load ptr, ptr %7, align 8
%87 = getelementptr inbounds i8, ptr %86, i64 -2
store ptr %87, ptr %8, align 8
br label %88
88: ; preds = %104, %85
%89 = load ptr, ptr %8, align 8
%90 = load i8, ptr %89, align 1
%91 = sext i8 %90 to i32
%92 = load ptr, ptr %5, align 8
%93 = getelementptr inbounds i8, ptr %92, i64 0
%94 = load i8, ptr %93, align 1
%95 = sext i8 %94 to i32
%96 = icmp ne i32 %91, %95
br i1 %96, label %97, label %101
97: ; preds = %88
%98 = load ptr, ptr %8, align 8
%99 = load ptr, ptr %4, align 8
%100 = icmp uge ptr %98, %99
br label %101
101: ; preds = %97, %88
%102 = phi i1 [ false, %88 ], [ %100, %97 ]
br i1 %102, label %103, label %107
103: ; preds = %101
br label %104
104: ; preds = %103
%105 = load ptr, ptr %8, align 8
%106 = getelementptr inbounds i8, ptr %105, i32 -1
store ptr %106, ptr %8, align 8
br label %88, !llvm.loop !6
107: ; preds = %101
%108 = load ptr, ptr %8, align 8
%109 = load ptr, ptr %4, align 8
%110 = icmp ult ptr %108, %109
br i1 %110, label %111, label %112
111: ; preds = %107
br label %132
112: ; preds = %107
%113 = load ptr, ptr %7, align 8
%114 = getelementptr inbounds i8, ptr %113, i64 2
store ptr %114, ptr %9, align 8
%115 = load ptr, ptr %8, align 8
store ptr %115, ptr %7, align 8
br label %116
116: ; preds = %123, %112
%117 = load ptr, ptr %9, align 8
%118 = getelementptr inbounds i8, ptr %117, i32 1
store ptr %118, ptr %9, align 8
%119 = load i8, ptr %117, align 1
%120 = load ptr, ptr %8, align 8
%121 = getelementptr inbounds i8, ptr %120, i32 1
store ptr %121, ptr %8, align 8
store i8 %119, ptr %120, align 1
%122 = icmp ne i8 %119, 0
br i1 %122, label %123, label %124
123: ; preds = %116
br label %116, !llvm.loop !8
124: ; preds = %116
br label %129
125: ; preds = %75, %63
br label %126
126: ; preds = %125, %53, %49
%127 = load ptr, ptr %7, align 8
%128 = getelementptr inbounds i8, ptr %127, i32 1
store ptr %128, ptr %7, align 8
br label %129
129: ; preds = %126, %124
%130 = load ptr, ptr %7, align 8
%131 = call ptr @strchr(ptr noundef %130, i8 noundef signext 46)
store ptr %131, ptr %7, align 8
br label %46, !llvm.loop !9
132: ; preds = %111, %46
%133 = load ptr, ptr %4, align 8
%134 = getelementptr inbounds i8, ptr %133, i64 0
%135 = load i8, ptr %134, align 1
%136 = sext i8 %135 to i32
%137 = icmp eq i32 %136, 0
br i1 %137, label %138, label %146
138: ; preds = %132
%139 = load ptr, ptr %5, align 8
%140 = getelementptr inbounds i8, ptr %139, i64 0
%141 = load i8, ptr %140, align 1
%142 = load ptr, ptr %4, align 8
%143 = getelementptr inbounds i8, ptr %142, i64 0
store i8 %141, ptr %143, align 1
%144 = load ptr, ptr %4, align 8
%145 = getelementptr inbounds i8, ptr %144, i64 1
store i8 0, ptr %145, align 1
br label %146
146: ; preds = %138, %132
%147 = load ptr, ptr %4, align 8
store ptr %147, ptr %3, align 8
br label %148
148: ; preds = %146, %19, %12
%149 = load ptr, ptr %3, align 8
ret ptr %149
}
declare i32 @strlen(ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0k48p01l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @normalize_path(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%10 = load ptr, ptr %4, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %14, label %12
12: ; preds = %2
%13 = load ptr, ptr %4, align 8
store ptr %13, ptr %3, align 8
br label %148
14: ; preds = %2
%15 = load ptr, ptr %4, align 8
%16 = call i32 @strlen(ptr noundef %15)
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %14
%20 = load ptr, ptr %4, align 8
store ptr %20, ptr %3, align 8
br label %148
21: ; preds = %14
%22 = load i32, ptr %6, align 4
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %43
24: ; preds = %21
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %6, align 4
%27 = sub nsw i32 %26, 1
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %25, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds i8, ptr %32, i64 0
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %31, %35
br i1 %36, label %37, label %43
37: ; preds = %24
%38 = load ptr, ptr %4, align 8
%39 = load i32, ptr %6, align 4
%40 = sub nsw i32 %39, 1
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, ptr %38, i64 %41
store i8 0, ptr %42, align 1
br label %43
43: ; preds = %37, %24, %21
%44 = load ptr, ptr %4, align 8
%45 = call ptr @strchr(ptr noundef %44, i8 noundef signext 46)
store ptr %45, ptr %7, align 8
%46 = load ptr, ptr %7, align 8
%47 = icmp ne ptr %46, null
br i1 %47, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %43
br label %48
48: ; preds = %.lr.ph, %127
%49 = load ptr, ptr %7, align 8
%50 = load ptr, ptr %4, align 8
%51 = icmp ugt ptr %49, %50
br i1 %51, label %52, label %124
52: ; preds = %48
%53 = load ptr, ptr %7, align 8
%54 = getelementptr inbounds i8, ptr %53, i64 -1
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = load ptr, ptr %5, align 8
%58 = getelementptr inbounds i8, ptr %57, i64 0
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = icmp eq i32 %56, %60
br i1 %61, label %62, label %124
62: ; preds = %52
%63 = load ptr, ptr %7, align 8
%64 = getelementptr inbounds i8, ptr %63, i64 1
%65 = load i8, ptr %64, align 1
%66 = sext i8 %65 to i32
%67 = icmp eq i32 %66, 46
br i1 %67, label %68, label %123
68: ; preds = %62
%69 = load ptr, ptr %7, align 8
%70 = getelementptr inbounds i8, ptr %69, i64 2
%71 = load i8, ptr %70, align 1
%72 = sext i8 %71 to i32
%73 = icmp eq i32 %72, 0
br i1 %73, label %84, label %74
74: ; preds = %68
%75 = load ptr, ptr %7, align 8
%76 = getelementptr inbounds i8, ptr %75, i64 2
%77 = load i8, ptr %76, align 1
%78 = sext i8 %77 to i32
%79 = load ptr, ptr %5, align 8
%80 = getelementptr inbounds i8, ptr %79, i64 0
%81 = load i8, ptr %80, align 1
%82 = sext i8 %81 to i32
%83 = icmp eq i32 %78, %82
br i1 %83, label %84, label %123
84: ; preds = %74, %68
%85 = load ptr, ptr %7, align 8
%86 = getelementptr inbounds i8, ptr %85, i64 -2
store ptr %86, ptr %8, align 8
br label %87
87: ; preds = %103, %84
%88 = load ptr, ptr %8, align 8
%89 = load i8, ptr %88, align 1
%90 = sext i8 %89 to i32
%91 = load ptr, ptr %5, align 8
%92 = getelementptr inbounds i8, ptr %91, i64 0
%93 = load i8, ptr %92, align 1
%94 = sext i8 %93 to i32
%95 = icmp ne i32 %90, %94
br i1 %95, label %96, label %100
96: ; preds = %87
%97 = load ptr, ptr %8, align 8
%98 = load ptr, ptr %4, align 8
%99 = icmp uge ptr %97, %98
br label %100
100: ; preds = %96, %87
%101 = phi i1 [ false, %87 ], [ %99, %96 ]
br i1 %101, label %102, label %106
102: ; preds = %100
br label %103
103: ; preds = %102
%104 = load ptr, ptr %8, align 8
%105 = getelementptr inbounds i8, ptr %104, i32 -1
store ptr %105, ptr %8, align 8
br label %87, !llvm.loop !6
106: ; preds = %100
%107 = load ptr, ptr %8, align 8
%108 = load ptr, ptr %4, align 8
%109 = icmp ult ptr %107, %108
br i1 %109, label %110, label %111
110: ; preds = %106
br label %132
111: ; preds = %106
%112 = load ptr, ptr %7, align 8
%113 = getelementptr inbounds i8, ptr %112, i64 2
store ptr %113, ptr %9, align 8
%114 = load ptr, ptr %8, align 8
store ptr %114, ptr %7, align 8
br label %115
115: ; preds = %115, %111
%116 = load ptr, ptr %9, align 8
%117 = getelementptr inbounds i8, ptr %116, i32 1
store ptr %117, ptr %9, align 8
%118 = load i8, ptr %116, align 1
%119 = load ptr, ptr %8, align 8
%120 = getelementptr inbounds i8, ptr %119, i32 1
store ptr %120, ptr %8, align 8
store i8 %118, ptr %119, align 1
%121 = icmp ne i8 %118, 0
br i1 %121, label %115, label %122, !llvm.loop !8
122: ; preds = %115
br label %127
123: ; preds = %74, %62
br label %124
124: ; preds = %123, %52, %48
%125 = load ptr, ptr %7, align 8
%126 = getelementptr inbounds i8, ptr %125, i32 1
store ptr %126, ptr %7, align 8
br label %127
127: ; preds = %124, %122
%128 = load ptr, ptr %7, align 8
%129 = call ptr @strchr(ptr noundef %128, i8 noundef signext 46)
store ptr %129, ptr %7, align 8
%130 = load ptr, ptr %7, align 8
%131 = icmp ne ptr %130, null
br i1 %131, label %48, label %..loopexit_crit_edge, !llvm.loop !9
..loopexit_crit_edge: ; preds = %127
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %43
br label %132
132: ; preds = %.loopexit, %110
%133 = load ptr, ptr %4, align 8
%134 = getelementptr inbounds i8, ptr %133, i64 0
%135 = load i8, ptr %134, align 1
%136 = sext i8 %135 to i32
%137 = icmp eq i32 %136, 0
br i1 %137, label %138, label %146
138: ; preds = %132
%139 = load ptr, ptr %5, align 8
%140 = getelementptr inbounds i8, ptr %139, i64 0
%141 = load i8, ptr %140, align 1
%142 = load ptr, ptr %4, align 8
%143 = getelementptr inbounds i8, ptr %142, i64 0
store i8 %141, ptr %143, align 1
%144 = load ptr, ptr %4, align 8
%145 = getelementptr inbounds i8, ptr %144, i64 1
store i8 0, ptr %145, align 1
br label %146
146: ; preds = %138, %132
%147 = load ptr, ptr %4, align 8
store ptr %147, ptr %3, align 8
br label %148
148: ; preds = %146, %19, %12
%149 = load ptr, ptr %3, align 8
ret ptr %149
}
declare i32 @strlen(ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpskz9y67p.c'
source_filename = "/tmp/tmpskz9y67p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"assert fail: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"boundary 0\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"(\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"boundary 1 (\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c")\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"()\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"))))\00", align 1
@.str.8 = private unnamed_addr constant [5 x i8] c"()()\00", align 1
@.str.9 = private unnamed_addr constant [5 x i8] c"())(\00", align 1
@.str.10 = private unnamed_addr constant [6 x i8] c"((())\00", align 1
@.str.11 = private unnamed_addr constant [11 x i8] c"()(((())))\00", align 1
@.str.12 = private unnamed_addr constant [12 x i8] c")()(((())))\00", align 1
@.str.13 = private unnamed_addr constant [12 x i8] c"()(((())))(\00", align 1
@.str.14 = private unnamed_addr constant [13 x i8] c")()(((())))(\00", align 1
@.str.15 = private unnamed_addr constant [12 x i8] c"(())()(()((\00", align 1
@.str.16 = private unnamed_addr constant [21 x i8] c"everything is fine!\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 @longestValidParentheses(ptr noundef @.str)
%7 = icmp eq i32 %6, 0
br i1 %7, label %11, label %8
8: ; preds = %2
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.2)
%10 = call i32 @exit(i32 noundef -1) #3
unreachable
11: ; preds = %2
%12 = call i32 @longestValidParentheses(ptr noundef @.str.3)
%13 = icmp eq i32 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %11
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.4)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %11
%18 = call i32 @longestValidParentheses(ptr noundef @.str.5)
%19 = icmp eq i32 %18, 0
br i1 %19, label %23, label %20
20: ; preds = %17
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.5)
%22 = call i32 @exit(i32 noundef -1) #3
unreachable
23: ; preds = %17
%24 = call i32 @longestValidParentheses(ptr noundef @.str.6)
%25 = icmp eq i32 %24, 2
br i1 %25, label %29, label %26
26: ; preds = %23
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.6)
%28 = call i32 @exit(i32 noundef -1) #3
unreachable
29: ; preds = %23
%30 = call i32 @longestValidParentheses(ptr noundef @.str.7)
%31 = icmp eq i32 %30, 0
br i1 %31, label %35, label %32
32: ; preds = %29
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.7)
%34 = call i32 @exit(i32 noundef -1) #3
unreachable
35: ; preds = %29
%36 = call i32 @longestValidParentheses(ptr noundef @.str.8)
%37 = icmp eq i32 %36, 4
br i1 %37, label %41, label %38
38: ; preds = %35
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.8)
%40 = call i32 @exit(i32 noundef -1) #3
unreachable
41: ; preds = %35
%42 = call i32 @longestValidParentheses(ptr noundef @.str.9)
%43 = icmp eq i32 %42, 2
br i1 %43, label %47, label %44
44: ; preds = %41
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.9)
%46 = call i32 @exit(i32 noundef -1) #3
unreachable
47: ; preds = %41
%48 = call i32 @longestValidParentheses(ptr noundef @.str.10)
%49 = icmp eq i32 %48, 4
br i1 %49, label %53, label %50
50: ; preds = %47
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.10)
%52 = call i32 @exit(i32 noundef -1) #3
unreachable
53: ; preds = %47
%54 = call i32 @longestValidParentheses(ptr noundef @.str.11)
%55 = icmp eq i32 %54, 10
br i1 %55, label %59, label %56
56: ; preds = %53
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.11)
%58 = call i32 @exit(i32 noundef -1) #3
unreachable
59: ; preds = %53
%60 = call i32 @longestValidParentheses(ptr noundef @.str.12)
%61 = icmp eq i32 %60, 10
br i1 %61, label %65, label %62
62: ; preds = %59
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.12)
%64 = call i32 @exit(i32 noundef -1) #3
unreachable
65: ; preds = %59
%66 = call i32 @longestValidParentheses(ptr noundef @.str.13)
%67 = icmp eq i32 %66, 10
br i1 %67, label %71, label %68
68: ; preds = %65
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.13)
%70 = call i32 @exit(i32 noundef -1) #3
unreachable
71: ; preds = %65
%72 = call i32 @longestValidParentheses(ptr noundef @.str.14)
%73 = icmp eq i32 %72, 10
br i1 %73, label %77, label %74
74: ; preds = %71
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.14)
%76 = call i32 @exit(i32 noundef -1) #3
unreachable
77: ; preds = %71
%78 = call i32 @longestValidParentheses(ptr noundef @.str.15)
%79 = icmp eq i32 %78, 6
br i1 %79, label %83, label %80
80: ; preds = %77
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.15)
%82 = call i32 @exit(i32 noundef -1) #3
unreachable
83: ; preds = %77
%84 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
ret i32 0
}
declare i32 @longestValidParentheses(ptr noundef) #1
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/tmpskz9y67p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"assert fail: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"boundary 0\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"(\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"boundary 1 (\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c")\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"()\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"))))\00", align 1
@.str.8 = private unnamed_addr constant [5 x i8] c"()()\00", align 1
@.str.9 = private unnamed_addr constant [5 x i8] c"())(\00", align 1
@.str.10 = private unnamed_addr constant [6 x i8] c"((())\00", align 1
@.str.11 = private unnamed_addr constant [11 x i8] c"()(((())))\00", align 1
@.str.12 = private unnamed_addr constant [12 x i8] c")()(((())))\00", align 1
@.str.13 = private unnamed_addr constant [12 x i8] c"()(((())))(\00", align 1
@.str.14 = private unnamed_addr constant [13 x i8] c")()(((())))(\00", align 1
@.str.15 = private unnamed_addr constant [12 x i8] c"(())()(()((\00", align 1
@.str.16 = private unnamed_addr constant [21 x i8] c"everything is fine!\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 @longestValidParentheses(ptr noundef @.str)
%7 = icmp eq i32 %6, 0
br i1 %7, label %11, label %8
8: ; preds = %2
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.2)
%10 = call i32 @exit(i32 noundef -1) #3
unreachable
11: ; preds = %2
%12 = call i32 @longestValidParentheses(ptr noundef @.str.3)
%13 = icmp eq i32 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %11
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.4)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %11
%18 = call i32 @longestValidParentheses(ptr noundef @.str.5)
%19 = icmp eq i32 %18, 0
br i1 %19, label %23, label %20
20: ; preds = %17
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.5)
%22 = call i32 @exit(i32 noundef -1) #3
unreachable
23: ; preds = %17
%24 = call i32 @longestValidParentheses(ptr noundef @.str.6)
%25 = icmp eq i32 %24, 2
br i1 %25, label %29, label %26
26: ; preds = %23
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.6)
%28 = call i32 @exit(i32 noundef -1) #3
unreachable
29: ; preds = %23
%30 = call i32 @longestValidParentheses(ptr noundef @.str.7)
%31 = icmp eq i32 %30, 0
br i1 %31, label %35, label %32
32: ; preds = %29
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.7)
%34 = call i32 @exit(i32 noundef -1) #3
unreachable
35: ; preds = %29
%36 = call i32 @longestValidParentheses(ptr noundef @.str.8)
%37 = icmp eq i32 %36, 4
br i1 %37, label %41, label %38
38: ; preds = %35
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.8)
%40 = call i32 @exit(i32 noundef -1) #3
unreachable
41: ; preds = %35
%42 = call i32 @longestValidParentheses(ptr noundef @.str.9)
%43 = icmp eq i32 %42, 2
br i1 %43, label %47, label %44
44: ; preds = %41
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.9)
%46 = call i32 @exit(i32 noundef -1) #3
unreachable
47: ; preds = %41
%48 = call i32 @longestValidParentheses(ptr noundef @.str.10)
%49 = icmp eq i32 %48, 4
br i1 %49, label %53, label %50
50: ; preds = %47
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.10)
%52 = call i32 @exit(i32 noundef -1) #3
unreachable
53: ; preds = %47
%54 = call i32 @longestValidParentheses(ptr noundef @.str.11)
%55 = icmp eq i32 %54, 10
br i1 %55, label %59, label %56
56: ; preds = %53
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.11)
%58 = call i32 @exit(i32 noundef -1) #3
unreachable
59: ; preds = %53
%60 = call i32 @longestValidParentheses(ptr noundef @.str.12)
%61 = icmp eq i32 %60, 10
br i1 %61, label %65, label %62
62: ; preds = %59
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.12)
%64 = call i32 @exit(i32 noundef -1) #3
unreachable
65: ; preds = %59
%66 = call i32 @longestValidParentheses(ptr noundef @.str.13)
%67 = icmp eq i32 %66, 10
br i1 %67, label %71, label %68
68: ; preds = %65
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.13)
%70 = call i32 @exit(i32 noundef -1) #3
unreachable
71: ; preds = %65
%72 = call i32 @longestValidParentheses(ptr noundef @.str.14)
%73 = icmp eq i32 %72, 10
br i1 %73, label %77, label %74
74: ; preds = %71
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.14)
%76 = call i32 @exit(i32 noundef -1) #3
unreachable
77: ; preds = %71
%78 = call i32 @longestValidParentheses(ptr noundef @.str.15)
%79 = icmp eq i32 %78, 6
br i1 %79, label %83, label %80
80: ; preds = %77
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.15)
%82 = call i32 @exit(i32 noundef -1) #3
unreachable
83: ; preds = %77
%84 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
ret i32 0
}
declare i32 @longestValidParentheses(ptr noundef) #1
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/tmpj0pw_2yk.c'
source_filename = "/tmp/tmpj0pw_2yk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @write_sysfs_string(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @_write_sysfs_string(ptr noundef %7, ptr noundef %8, ptr noundef %9, i32 noundef 0)
ret i32 %10
}
declare i32 @_write_sysfs_string(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj0pw_2yk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @write_sysfs_string(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @_write_sysfs_string(ptr noundef %7, ptr noundef %8, ptr noundef %9, i32 noundef 0)
ret i32 %10
}
declare i32 @_write_sysfs_string(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpucvap37x.c'
source_filename = "/tmp/tmpucvap37x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_iscntrl.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"iscntrl should be 0 for 0xc4\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_iscntrl_0xc4() #0 {
%1 = call i64 @iscntrl(i32 noundef 196)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 985, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @iscntrl(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/tmpucvap37x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_iscntrl.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"iscntrl should be 0 for 0xc4\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_iscntrl_0xc4() #0 {
%1 = call i64 @iscntrl(i32 noundef 196)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 985, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @iscntrl(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/tmp4pa1h_1e.c'
source_filename = "/tmp/tmp4pa1h_1e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @paralelepipedo(float noundef %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, float noundef %7) #0 {
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca float, align 4
%13 = alloca float, align 4
%14 = alloca float, align 4
%15 = alloca float, align 4
%16 = alloca float, align 4
%17 = alloca float, align 4
store float %0, ptr %9, align 4
store float %1, ptr %10, align 4
store float %2, ptr %11, align 4
store float %3, ptr %12, align 4
store float %4, ptr %13, align 4
store float %5, ptr %14, align 4
store float %6, ptr %15, align 4
store float %7, ptr %16, align 4
%18 = load float, ptr %12, align 4
%19 = load float, ptr %9, align 4
%20 = fsub float %18, %19
%21 = load float, ptr %13, align 4
%22 = load float, ptr %10, align 4
%23 = fsub float %21, %22
%24 = load float, ptr %14, align 4
%25 = load float, ptr %11, align 4
%26 = fsub float %24, %25
%27 = call float @modulo(float noundef %20, float noundef %23, float noundef %26)
store float %27, ptr %17, align 4
%28 = call i32 (...) @glPushMatrix()
%29 = load float, ptr %9, align 4
%30 = load float, ptr %10, align 4
%31 = load float, ptr %11, align 4
%32 = call i32 @glTranslatef(float noundef %29, float noundef %30, float noundef %31)
%33 = load float, ptr %14, align 4
%34 = load float, ptr %11, align 4
%35 = fsub float %33, %34
%36 = load float, ptr %12, align 4
%37 = load float, ptr %9, align 4
%38 = fsub float %36, %37
%39 = call double @atan2(float noundef %35, float noundef %38)
%40 = fmul double -1.800000e+02, %39
%41 = load double, ptr @M_PI, align 8
%42 = fdiv double %40, %41
%43 = call i32 @glRotatef(double noundef %42, double noundef 0.000000e+00, double noundef 1.000000e+00, double noundef 0.000000e+00)
%44 = load float, ptr %13, align 4
%45 = load float, ptr %10, align 4
%46 = fsub float %44, %45
%47 = load float, ptr %12, align 4
%48 = load float, ptr %9, align 4
%49 = fsub float %47, %48
%50 = load float, ptr %12, align 4
%51 = load float, ptr %9, align 4
%52 = fsub float %50, %51
%53 = load float, ptr %14, align 4
%54 = load float, ptr %11, align 4
%55 = fsub float %53, %54
%56 = load float, ptr %14, align 4
%57 = load float, ptr %11, align 4
%58 = fsub float %56, %57
%59 = fmul float %55, %58
%60 = call float @llvm.fmuladd.f32(float %49, float %52, float %59)
%61 = call float @sqrt(float noundef %60)
%62 = call double @atan2(float noundef %46, float noundef %61)
%63 = fmul double 1.800000e+02, %62
%64 = load double, ptr @M_PI, align 8
%65 = fdiv double %63, %64
%66 = fsub double %65, 9.000000e+01
%67 = call i32 @glRotatef(double noundef %66, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e+00)
%68 = load float, ptr %15, align 4
%69 = load float, ptr %17, align 4
%70 = load float, ptr %16, align 4
%71 = call i32 @caja(float noundef %68, float noundef %69, float noundef %70)
%72 = call i32 (...) @glPopMatrix()
ret void
}
declare float @modulo(float noundef, float noundef, float noundef) #1
declare i32 @glPushMatrix(...) #1
declare i32 @glTranslatef(float noundef, float noundef, float noundef) #1
declare i32 @glRotatef(double noundef, double noundef, double noundef, double noundef) #1
declare double @atan2(float noundef, float noundef) #1
declare float @sqrt(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare i32 @caja(float noundef, float noundef, float noundef) #1
declare i32 @glPopMatrix(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4pa1h_1e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @paralelepipedo(float noundef %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, float noundef %7) #0 {
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca float, align 4
%13 = alloca float, align 4
%14 = alloca float, align 4
%15 = alloca float, align 4
%16 = alloca float, align 4
%17 = alloca float, align 4
store float %0, ptr %9, align 4
store float %1, ptr %10, align 4
store float %2, ptr %11, align 4
store float %3, ptr %12, align 4
store float %4, ptr %13, align 4
store float %5, ptr %14, align 4
store float %6, ptr %15, align 4
store float %7, ptr %16, align 4
%18 = load float, ptr %12, align 4
%19 = load float, ptr %9, align 4
%20 = fsub float %18, %19
%21 = load float, ptr %13, align 4
%22 = load float, ptr %10, align 4
%23 = fsub float %21, %22
%24 = load float, ptr %14, align 4
%25 = load float, ptr %11, align 4
%26 = fsub float %24, %25
%27 = call float @modulo(float noundef %20, float noundef %23, float noundef %26)
store float %27, ptr %17, align 4
%28 = call i32 (...) @glPushMatrix()
%29 = load float, ptr %9, align 4
%30 = load float, ptr %10, align 4
%31 = load float, ptr %11, align 4
%32 = call i32 @glTranslatef(float noundef %29, float noundef %30, float noundef %31)
%33 = load float, ptr %14, align 4
%34 = load float, ptr %11, align 4
%35 = fsub float %33, %34
%36 = load float, ptr %12, align 4
%37 = load float, ptr %9, align 4
%38 = fsub float %36, %37
%39 = call double @atan2(float noundef %35, float noundef %38)
%40 = fmul double -1.800000e+02, %39
%41 = load double, ptr @M_PI, align 8
%42 = fdiv double %40, %41
%43 = call i32 @glRotatef(double noundef %42, double noundef 0.000000e+00, double noundef 1.000000e+00, double noundef 0.000000e+00)
%44 = load float, ptr %13, align 4
%45 = load float, ptr %10, align 4
%46 = fsub float %44, %45
%47 = load float, ptr %12, align 4
%48 = load float, ptr %9, align 4
%49 = fsub float %47, %48
%50 = load float, ptr %12, align 4
%51 = load float, ptr %9, align 4
%52 = fsub float %50, %51
%53 = load float, ptr %14, align 4
%54 = load float, ptr %11, align 4
%55 = fsub float %53, %54
%56 = load float, ptr %14, align 4
%57 = load float, ptr %11, align 4
%58 = fsub float %56, %57
%59 = fmul float %55, %58
%60 = call float @llvm.fmuladd.f32(float %49, float %52, float %59)
%61 = call float @sqrt(float noundef %60)
%62 = call double @atan2(float noundef %46, float noundef %61)
%63 = fmul double 1.800000e+02, %62
%64 = load double, ptr @M_PI, align 8
%65 = fdiv double %63, %64
%66 = fsub double %65, 9.000000e+01
%67 = call i32 @glRotatef(double noundef %66, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e+00)
%68 = load float, ptr %15, align 4
%69 = load float, ptr %17, align 4
%70 = load float, ptr %16, align 4
%71 = call i32 @caja(float noundef %68, float noundef %69, float noundef %70)
%72 = call i32 (...) @glPopMatrix()
ret void
}
declare float @modulo(float noundef, float noundef, float noundef) #1
declare i32 @glPushMatrix(...) #1
declare i32 @glTranslatef(float noundef, float noundef, float noundef) #1
declare i32 @glRotatef(double noundef, double noundef, double noundef, double noundef) #1
declare double @atan2(float noundef, float noundef) #1
declare float @sqrt(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare i32 @caja(float noundef, float noundef, float noundef) #1
declare i32 @glPopMatrix(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpe_9loj7v.c'
source_filename = "/tmp/tmpe_9loj7v.c"
target datalayout = "e-m:e-p270: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.arr = private unnamed_addr constant [10 x i32] [i32 11, i32 2, i32 9, i32 13, i32 57, i32 25, i32 17, i32 1, i32 90, i32 3], align 16
@.str = private unnamed_addr constant [12 x i8] c"Heap Sort.\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"\0ABefore Sorting:\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\09\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"\0AAfter Sorting:\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10 x i32], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.arr, i64 40, i1 false)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%6 = call i32 @makeheap(ptr noundef %5, i32 noundef 10)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %3, align 4
br label %8
8: ; preds = %17, %0
%9 = load i32, ptr %3, align 4
%10 = icmp sle i32 %9, 9
br i1 %10, label %11, label %20
11: ; preds = %8
%12 = load i32, ptr %3, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %13
%15 = load i32, ptr %14, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %15)
br label %17
17: ; preds = %11
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %3, align 4
br label %8, !llvm.loop !6
20: ; preds = %8
%21 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%22 = call i32 @heapsort(ptr noundef %21, i32 noundef 10)
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %3, align 4
br label %24
24: ; preds = %33, %20
%25 = load i32, ptr %3, align 4
%26 = icmp sle i32 %25, 9
br i1 %26, label %27, label %36
27: ; preds = %24
%28 = load i32, ptr %3, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %29
%31 = load i32, ptr %30, align 4
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %31)
br label %33
33: ; preds = %27
%34 = load i32, ptr %3, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %3, align 4
br label %24, !llvm.loop !8
36: ; preds = %24
%37 = load i32, ptr %1, align 4
ret i32 %37
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @makeheap(ptr noundef, i32 noundef) #2
declare i32 @heapsort(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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe_9loj7v.c"
target datalayout = "e-m:e-p270: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.arr = private unnamed_addr constant [10 x i32] [i32 11, i32 2, i32 9, i32 13, i32 57, i32 25, i32 17, i32 1, i32 90, i32 3], align 16
@.str = private unnamed_addr constant [12 x i8] c"Heap Sort.\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"\0ABefore Sorting:\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\09\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"\0AAfter Sorting:\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10 x i32], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.arr, i64 40, i1 false)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%6 = call i32 @makeheap(ptr noundef %5, i32 noundef 10)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp sle i32 %8, 9
br i1 %9, label %.lr.ph, label %21
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %16
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %12
%14 = load i32, ptr %13, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %14)
br label %16
16: ; preds = %10
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp sle i32 %19, 9
br i1 %20, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %21
21: ; preds = %._crit_edge, %0
%22 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%23 = call i32 @heapsort(ptr noundef %22, i32 noundef 10)
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %3, align 4
%25 = load i32, ptr %3, align 4
%26 = icmp sle i32 %25, 9
br i1 %26, label %.lr.ph2, label %38
.lr.ph2: ; preds = %21
br label %27
27: ; preds = %.lr.ph2, %33
%28 = load i32, ptr %3, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %29
%31 = load i32, ptr %30, align 4
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %31)
br label %33
33: ; preds = %27
%34 = load i32, ptr %3, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %3, align 4
%36 = load i32, ptr %3, align 4
%37 = icmp sle i32 %36, 9
br i1 %37, label %27, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %33
br label %38
38: ; preds = %._crit_edge3, %21
%39 = load i32, ptr %1, align 4
ret i32 %39
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @makeheap(ptr noundef, i32 noundef) #2
declare i32 @heapsort(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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp2d5ocaum.c'
source_filename = "/tmp/tmp2d5ocaum.c"
target datalayout = "e-m:e-p270: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/tmp2d5ocaum.c"
target datalayout = "e-m:e-p270: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/tmp5exo_osu.c'
source_filename = "/tmp/tmp5exo_osu.c"
target datalayout = "e-m:e-p270: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/tmp5exo_osu.c"
target datalayout = "e-m:e-p270: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/tmpyzj8hqut.c'
source_filename = "/tmp/tmpyzj8hqut.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"0\0A\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"978\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"979\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"1\0A\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"933346\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"Bluebridge\00", align 1
@.str.7 = private unnamed_addr constant [6 x i8] c"55583\00", align 1
@.str.8 = private unnamed_addr constant [13 x i8] c"Alyson Books\00", align 1
@.str.9 = private unnamed_addr constant [5 x i8] c"4210\00", align 1
@.str.10 = private unnamed_addr constant [29 x i8] c"FUNimation Productions, Ltd.\00", align 1
@.str.11 = private unnamed_addr constant [3 x i8] c"01\00", align 1
@.str.12 = private unnamed_addr constant [14 x i8] c"Pyramid Books\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_is_valid_isbn13(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca [5 x [10 x i8]], align 16
%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 i32, align 4
store ptr %0, ptr %2, align 8
%11 = load ptr, ptr %2, align 8
%12 = call i32 @strlen(ptr noundef %11)
%13 = sub nsw i32 %12, 4
store i32 %13, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = icmp ne i32 %14, 13
br i1 %15, label %16, label %18
16: ; preds = %1
%17 = call i32 @printf(ptr noundef @.str)
br label %141
18: ; preds = %1
%19 = load ptr, ptr %2, align 8
%20 = call ptr @strdup(ptr noundef %19)
store ptr %20, ptr %5, align 8
store i32 0, ptr %7, align 4
br label %21
21: ; preds = %24, %18
%22 = call ptr @strsep(ptr noundef %5, ptr noundef @.str.1)
store ptr %22, ptr %6, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %24, label %32
24: ; preds = %21
%25 = load i32, ptr %7, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %7, align 4
%27 = sext i32 %25 to i64
%28 = getelementptr inbounds [5 x [10 x i8]], ptr %4, i64 0, i64 %27
%29 = getelementptr inbounds [10 x i8], ptr %28, i64 0, i64 0
%30 = load ptr, ptr %6, align 8
%31 = call i32 @strcpy(ptr noundef %29, ptr noundef %30)
br label %21, !llvm.loop !6
32: ; preds = %21
store i32 1, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %7, align 4
br label %33
33: ; preds = %81, %32
%34 = load i32, ptr %7, align 4
%35 = icmp slt i32 %34, 4
br i1 %35, label %36, label %84
36: ; preds = %33
store i32 0, ptr %8, align 4
br label %37
37: ; preds = %77, %36
%38 = load i32, ptr %8, align 4
%39 = load i32, ptr %7, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [5 x [10 x i8]], ptr %4, i64 0, i64 %40
%42 = getelementptr inbounds [10 x i8], ptr %41, i64 0, i64 0
%43 = call i32 @strlen(ptr noundef %42)
%44 = icmp slt i32 %38, %43
br i1 %44, label %45, label %80
45: ; preds = %37
%46 = load i32, ptr %10, align 4
%47 = srem i32 %46, 2
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %62
49: ; preds = %45
%50 = load i32, ptr %7, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [5 x [10 x i8]], ptr %4, i64 0, i64 %51
%53 = load i32, ptr %8, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [10 x i8], ptr %52, i64 0, i64 %54
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = sub nsw i32 %57, 48
%59 = mul nsw i32 %58, 3
%60 = load i32, ptr %9, align 4
%61 = add nsw i32 %60, %59
store i32 %61, ptr %9, align 4
br label %74
62: ; preds = %45
%63 = load i32, ptr %7, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [5 x [10 x i8]], ptr %4, i64 0, i64 %64
%66 = load i32, ptr %8, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [10 x i8], ptr %65, i64 0, i64 %67
%69 = load i8, ptr %68, align 1
%70 = sext i8 %69 to i32
%71 = sub nsw i32 %70, 48
%72 = load i32, ptr %9, align 4
%73 = add nsw i32 %72, %71
store i32 %73, ptr %9, align 4
br label %74
74: ; preds = %62, %49
%75 = load i32, ptr %10, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %10, align 4
br label %77
77: ; preds = %74
%78 = load i32, ptr %8, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %8, align 4
br label %37, !llvm.loop !8
80: ; preds = %37
br label %81
81: ; preds = %80
%82 = load i32, ptr %7, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %7, align 4
br label %33, !llvm.loop !9
84: ; preds = %33
%85 = load i32, ptr %9, align 4
%86 = srem i32 %85, 10
store i32 %86, ptr %9, align 4
%87 = load i32, ptr %9, align 4
%88 = sub nsw i32 10, %87
store i32 %88, ptr %9, align 4
%89 = getelementptr inbounds [5 x [10 x i8]], ptr %4, i64 0, i64 0
%90 = getelementptr inbounds [10 x i8], ptr %89, i64 0, i64 0
%91 = call i32 @strcmp(ptr noundef %90, ptr noundef @.str.2)
%92 = icmp ne i32 %91, 0
br i1 %92, label %93, label %98
93: ; preds = %84
%94 = getelementptr inbounds [5 x [10 x i8]], ptr %4, i64 0, i64 0
%95 = getelementptr inbounds [10 x i8], ptr %94, i64 0, i64 0
%96 = call i32 @strcmp(ptr noundef %95, ptr noundef @.str.3)
%97 = icmp ne i32 %96, 0
br i1 %97, label %140, label %98
98: ; preds = %93, %84
%99 = load i32, ptr %9, align 4
%100 = getelementptr inbounds [5 x [10 x i8]], ptr %4, i64 0, i64 4
%101 = getelementptr inbounds [10 x i8], ptr %100, i64 0, i64 0
%102 = load i8, ptr %101, align 8
%103 = sext i8 %102 to i32
%104 = sub nsw i32 %103, 48
%105 = icmp eq i32 %99, %104
br i1 %105, label %106, label %139
106: ; preds = %98
%107 = call i32 @printf(ptr noundef @.str.4)
%108 = getelementptr inbounds [5 x [10 x i8]], ptr %4, i64 0, i64 2
%109 = getelementptr inbounds [10 x i8], ptr %108, i64 0, i64 0
%110 = call i32 @strcmp(ptr noundef %109, ptr noundef @.str.5)
%111 = icmp ne i32 %110, 0
br i1 %111, label %114, label %112
112: ; preds = %106
%113 = call i32 @printf(ptr noundef @.str.6)
br label %138
114: ; preds = %106
%115 = getelementptr inbounds [5 x [10 x i8]], ptr %4, i64 0, i64 2
%116 = getelementptr inbounds [10 x i8], ptr %115, i64 0, i64 0
%117 = call i32 @strcmp(ptr noundef %116, ptr noundef @.str.7)
%118 = icmp ne i32 %117, 0
br i1 %118, label %121, label %119
119: ; preds = %114
%120 = call i32 @printf(ptr noundef @.str.8)
br label %137
121: ; preds = %114
%122 = getelementptr inbounds [5 x [10 x i8]], ptr %4, i64 0, i64 2
%123 = getelementptr inbounds [10 x i8], ptr %122, i64 0, i64 0
%124 = call i32 @strcmp(ptr noundef %123, ptr noundef @.str.9)
%125 = icmp ne i32 %124, 0
br i1 %125, label %128, label %126
126: ; preds = %121
%127 = call i32 @printf(ptr noundef @.str.10)
br label %136
128: ; preds = %121
%129 = getelementptr inbounds [5 x [10 x i8]], ptr %4, i64 0, i64 2
%130 = getelementptr inbounds [10 x i8], ptr %129, i64 0, i64 0
%131 = call i32 @strcmp(ptr noundef %130, ptr noundef @.str.11)
%132 = icmp ne i32 %131, 0
br i1 %132, label %135, label %133
133: ; preds = %128
%134 = call i32 @printf(ptr noundef @.str.12)
br label %135
135: ; preds = %133, %128
br label %136
136: ; preds = %135, %126
br label %137
137: ; preds = %136, %119
br label %138
138: ; preds = %137, %112
br label %139
139: ; preds = %138, %98
br label %140
140: ; preds = %139, %93
br label %141
141: ; preds = %140, %16
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare ptr @strdup(ptr noundef) #1
declare ptr @strsep(ptr noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyzj8hqut.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"0\0A\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"978\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"979\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"1\0A\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"933346\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"Bluebridge\00", align 1
@.str.7 = private unnamed_addr constant [6 x i8] c"55583\00", align 1
@.str.8 = private unnamed_addr constant [13 x i8] c"Alyson Books\00", align 1
@.str.9 = private unnamed_addr constant [5 x i8] c"4210\00", align 1
@.str.10 = private unnamed_addr constant [29 x i8] c"FUNimation Productions, Ltd.\00", align 1
@.str.11 = private unnamed_addr constant [3 x i8] c"01\00", align 1
@.str.12 = private unnamed_addr constant [14 x i8] c"Pyramid Books\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_is_valid_isbn13(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca [5 x [10 x i8]], align 16
%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 i32, align 4
store ptr %0, ptr %2, align 8
%11 = load ptr, ptr %2, align 8
%12 = call i32 @strlen(ptr noundef %11)
%13 = sub nsw i32 %12, 4
store i32 %13, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = icmp ne i32 %14, 13
br i1 %15, label %16, label %18
16: ; preds = %1
%17 = call i32 @printf(ptr noundef @.str)
br label %148
18: ; preds = %1
%19 = load ptr, ptr %2, align 8
%20 = call ptr @strdup(ptr noundef %19)
store ptr %20, ptr %5, align 8
store i32 0, ptr %7, align 4
%21 = call ptr @strsep(ptr noundef %5, ptr noundef @.str.1)
store ptr %21, ptr %6, align 8
%22 = icmp ne ptr %21, null
br i1 %22, label %.lr.ph, label %33
.lr.ph: ; preds = %18
br label %23
23: ; preds = %.lr.ph, %23
%24 = load i32, ptr %7, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %7, align 4
%26 = sext i32 %24 to i64
%27 = getelementptr inbounds [5 x [10 x i8]], ptr %4, i64 0, i64 %26
%28 = getelementptr inbounds [10 x i8], ptr %27, i64 0, i64 0
%29 = load ptr, ptr %6, align 8
%30 = call i32 @strcpy(ptr noundef %28, ptr noundef %29)
%31 = call ptr @strsep(ptr noundef %5, ptr noundef @.str.1)
store ptr %31, ptr %6, align 8
%32 = icmp ne ptr %31, null
br i1 %32, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %33
33: ; preds = %._crit_edge, %18
store i32 1, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %7, align 4
%34 = load i32, ptr %7, align 4
%35 = icmp slt i32 %34, 4
br i1 %35, label %.lr.ph5, label %91
.lr.ph5: ; preds = %33
br label %36
36: ; preds = %.lr.ph5, %86
store i32 0, ptr %8, align 4
%37 = load i32, ptr %8, align 4
%38 = load i32, ptr %7, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [5 x [10 x i8]], ptr %4, i64 0, i64 %39
%41 = call i32 @strlen(ptr noundef %40)
%42 = icmp slt i32 %37, %41
br i1 %42, label %.lr.ph2, label %85
.lr.ph2: ; preds = %36
br label %43
43: ; preds = %.lr.ph2, %75
%44 = load i32, ptr %10, align 4
%45 = srem i32 %44, 2
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %60
47: ; preds = %43
%48 = load i32, ptr %7, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [5 x [10 x i8]], ptr %4, i64 0, i64 %49
%51 = load i32, ptr %8, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [10 x i8], ptr %50, i64 0, i64 %52
%54 = load i8, ptr %53, align 1
%55 = sext i8 %54 to i32
%56 = sub nsw i32 %55, 48
%57 = mul nsw i32 %56, 3
%58 = load i32, ptr %9, align 4
%59 = add nsw i32 %58, %57
store i32 %59, ptr %9, align 4
br label %72
60: ; preds = %43
%61 = load i32, ptr %7, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [5 x [10 x i8]], ptr %4, i64 0, i64 %62
%64 = load i32, ptr %8, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [10 x i8], ptr %63, i64 0, i64 %65
%67 = load i8, ptr %66, align 1
%68 = sext i8 %67 to i32
%69 = sub nsw i32 %68, 48
%70 = load i32, ptr %9, align 4
%71 = add nsw i32 %70, %69
store i32 %71, ptr %9, align 4
br label %72
72: ; preds = %60, %47
%73 = load i32, ptr %10, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %10, align 4
br label %75
75: ; preds = %72
%76 = load i32, ptr %8, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %8, align 4
%78 = load i32, ptr %8, align 4
%79 = load i32, ptr %7, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [5 x [10 x i8]], ptr %4, i64 0, i64 %80
%82 = getelementptr inbounds [10 x i8], ptr %81, i64 0, i64 0
%83 = call i32 @strlen(ptr noundef %82)
%84 = icmp slt i32 %78, %83
br i1 %84, label %43, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %75
br label %85
85: ; preds = %._crit_edge3, %36
br label %86
86: ; preds = %85
%87 = load i32, ptr %7, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %7, align 4
%89 = load i32, ptr %7, align 4
%90 = icmp slt i32 %89, 4
br i1 %90, label %36, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %86
br label %91
91: ; preds = %._crit_edge6, %33
%92 = load i32, ptr %9, align 4
%93 = srem i32 %92, 10
store i32 %93, ptr %9, align 4
%94 = load i32, ptr %9, align 4
%95 = sub nsw i32 10, %94
store i32 %95, ptr %9, align 4
%96 = getelementptr inbounds [5 x [10 x i8]], ptr %4, i64 0, i64 0
%97 = getelementptr inbounds [10 x i8], ptr %96, i64 0, i64 0
%98 = call i32 @strcmp(ptr noundef %97, ptr noundef @.str.2)
%99 = icmp ne i32 %98, 0
br i1 %99, label %100, label %105
100: ; preds = %91
%101 = getelementptr inbounds [5 x [10 x i8]], ptr %4, i64 0, i64 0
%102 = getelementptr inbounds [10 x i8], ptr %101, i64 0, i64 0
%103 = call i32 @strcmp(ptr noundef %102, ptr noundef @.str.3)
%104 = icmp ne i32 %103, 0
br i1 %104, label %147, label %105
105: ; preds = %100, %91
%106 = load i32, ptr %9, align 4
%107 = getelementptr inbounds [5 x [10 x i8]], ptr %4, i64 0, i64 4
%108 = getelementptr inbounds [10 x i8], ptr %107, i64 0, i64 0
%109 = load i8, ptr %108, align 8
%110 = sext i8 %109 to i32
%111 = sub nsw i32 %110, 48
%112 = icmp eq i32 %106, %111
br i1 %112, label %113, label %146
113: ; preds = %105
%114 = call i32 @printf(ptr noundef @.str.4)
%115 = getelementptr inbounds [5 x [10 x i8]], ptr %4, i64 0, i64 2
%116 = getelementptr inbounds [10 x i8], ptr %115, i64 0, i64 0
%117 = call i32 @strcmp(ptr noundef %116, ptr noundef @.str.5)
%118 = icmp ne i32 %117, 0
br i1 %118, label %121, label %119
119: ; preds = %113
%120 = call i32 @printf(ptr noundef @.str.6)
br label %145
121: ; preds = %113
%122 = getelementptr inbounds [5 x [10 x i8]], ptr %4, i64 0, i64 2
%123 = getelementptr inbounds [10 x i8], ptr %122, i64 0, i64 0
%124 = call i32 @strcmp(ptr noundef %123, ptr noundef @.str.7)
%125 = icmp ne i32 %124, 0
br i1 %125, label %128, label %126
126: ; preds = %121
%127 = call i32 @printf(ptr noundef @.str.8)
br label %144
128: ; preds = %121
%129 = getelementptr inbounds [5 x [10 x i8]], ptr %4, i64 0, i64 2
%130 = getelementptr inbounds [10 x i8], ptr %129, i64 0, i64 0
%131 = call i32 @strcmp(ptr noundef %130, ptr noundef @.str.9)
%132 = icmp ne i32 %131, 0
br i1 %132, label %135, label %133
133: ; preds = %128
%134 = call i32 @printf(ptr noundef @.str.10)
br label %143
135: ; preds = %128
%136 = getelementptr inbounds [5 x [10 x i8]], ptr %4, i64 0, i64 2
%137 = getelementptr inbounds [10 x i8], ptr %136, i64 0, i64 0
%138 = call i32 @strcmp(ptr noundef %137, ptr noundef @.str.11)
%139 = icmp ne i32 %138, 0
br i1 %139, label %142, label %140
140: ; preds = %135
%141 = call i32 @printf(ptr noundef @.str.12)
br label %142
142: ; preds = %140, %135
br label %143
143: ; preds = %142, %133
br label %144
144: ; preds = %143, %126
br label %145
145: ; preds = %144, %119
br label %146
146: ; preds = %145, %105
br label %147
147: ; preds = %146, %100
br label %148
148: ; preds = %147, %16
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare ptr @strdup(ptr noundef) #1
declare ptr @strsep(ptr noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpphbtf8vj.c'
source_filename = "/tmp/tmpphbtf8vj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@NAN = dso_local global double 0.000000e+00, align 8
@INFINITY = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @logax(double noundef %0, double noundef %1, i32 noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca i32, align 4
%8 = alloca double, align 8
%9 = alloca double, align 8
store double %0, ptr %5, align 8
store double %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%10 = load double, ptr %5, align 8
%11 = fcmp ole double %10, 0.000000e+00
br i1 %11, label %18, label %12
12: ; preds = %3
%13 = load double, ptr %6, align 8
%14 = fcmp olt double %13, 0.000000e+00
br i1 %14, label %18, label %15
15: ; preds = %12
%16 = load double, ptr %6, align 8
%17 = fcmp oeq double %16, 1.000000e+00
br i1 %17, label %18, label %20
18: ; preds = %15, %12, %3
%19 = load double, ptr @NAN, align 8
store double %19, ptr %4, align 8
br label %45
20: ; preds = %15
%21 = load double, ptr %6, align 8
%22 = fcmp oeq double %21, 0.000000e+00
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = load double, ptr @INFINITY, align 8
store double %24, ptr %4, align 8
br label %45
25: ; preds = %20
%26 = load double, ptr %5, align 8
%27 = call i64 @isnan(double noundef %26)
%28 = icmp ne i64 %27, 0
br i1 %28, label %33, label %29
29: ; preds = %25
%30 = load double, ptr %5, align 8
%31 = call i64 @isinf(double noundef %30)
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %35
33: ; preds = %29, %25
%34 = load double, ptr %5, align 8
store double %34, ptr %4, align 8
br label %45
35: ; preds = %29
%36 = load double, ptr %5, align 8
%37 = load i32, ptr %7, align 4
%38 = call double @logex(double noundef %36, i32 noundef %37)
store double %38, ptr %8, align 8
%39 = load double, ptr %6, align 8
%40 = load i32, ptr %7, align 4
%41 = call double @logex(double noundef %39, i32 noundef %40)
store double %41, ptr %9, align 8
%42 = load double, ptr %8, align 8
%43 = load double, ptr %9, align 8
%44 = fdiv double %42, %43
store double %44, ptr %4, align 8
br label %45
45: ; preds = %35, %33, %23, %18
%46 = load double, ptr %4, align 8
ret double %46
}
declare i64 @isnan(double noundef) #1
declare i64 @isinf(double noundef) #1
declare double @logex(double 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/tmpphbtf8vj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@NAN = dso_local global double 0.000000e+00, align 8
@INFINITY = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @logax(double noundef %0, double noundef %1, i32 noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca i32, align 4
%8 = alloca double, align 8
%9 = alloca double, align 8
store double %0, ptr %5, align 8
store double %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%10 = load double, ptr %5, align 8
%11 = fcmp ole double %10, 0.000000e+00
br i1 %11, label %18, label %12
12: ; preds = %3
%13 = load double, ptr %6, align 8
%14 = fcmp olt double %13, 0.000000e+00
br i1 %14, label %18, label %15
15: ; preds = %12
%16 = load double, ptr %6, align 8
%17 = fcmp oeq double %16, 1.000000e+00
br i1 %17, label %18, label %20
18: ; preds = %15, %12, %3
%19 = load double, ptr @NAN, align 8
store double %19, ptr %4, align 8
br label %45
20: ; preds = %15
%21 = load double, ptr %6, align 8
%22 = fcmp oeq double %21, 0.000000e+00
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = load double, ptr @INFINITY, align 8
store double %24, ptr %4, align 8
br label %45
25: ; preds = %20
%26 = load double, ptr %5, align 8
%27 = call i64 @isnan(double noundef %26)
%28 = icmp ne i64 %27, 0
br i1 %28, label %33, label %29
29: ; preds = %25
%30 = load double, ptr %5, align 8
%31 = call i64 @isinf(double noundef %30)
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %35
33: ; preds = %29, %25
%34 = load double, ptr %5, align 8
store double %34, ptr %4, align 8
br label %45
35: ; preds = %29
%36 = load double, ptr %5, align 8
%37 = load i32, ptr %7, align 4
%38 = call double @logex(double noundef %36, i32 noundef %37)
store double %38, ptr %8, align 8
%39 = load double, ptr %6, align 8
%40 = load i32, ptr %7, align 4
%41 = call double @logex(double noundef %39, i32 noundef %40)
store double %41, ptr %9, align 8
%42 = load double, ptr %8, align 8
%43 = load double, ptr %9, align 8
%44 = fdiv double %42, %43
store double %44, ptr %4, align 8
br label %45
45: ; preds = %35, %33, %23, %18
%46 = load double, ptr %4, align 8
ret double %46
}
declare i64 @isnan(double noundef) #1
declare i64 @isinf(double noundef) #1
declare double @logex(double 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_tk8fj3h.c'
source_filename = "/tmp/tmp_tk8fj3h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong willreturn memory(read) uwtable
define dso_local i32 @isblank(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @__C_isblank(i32 noundef %3)
ret i32 %4
}
declare i32 @__C_isblank(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong willreturn memory(read) uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!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_tk8fj3h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong willreturn memory(read) uwtable
define dso_local i32 @isblank(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @__C_isblank(i32 noundef %3)
ret i32 %4
}
declare i32 @__C_isblank(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong willreturn memory(read) uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdja1juoe.c'
source_filename = "/tmp/tmpdja1juoe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"%d %d %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [10 x i16], align 16
%2 = alloca ptr, align 8
%3 = call i32 (ptr, i32, i32, ...) @printf(ptr noundef @.str, i32 noundef 20, i32 noundef 2, i64 noundef 2)
%4 = call i32 (ptr, i32, i32, ...) @printf(ptr noundef @.str.1, i32 noundef 8, i32 noundef 2)
ret i32 0
}
declare i32 @printf(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/tmpdja1juoe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"%d %d %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [10 x i16], align 16
%2 = alloca ptr, align 8
%3 = call i32 (ptr, i32, i32, ...) @printf(ptr noundef @.str, i32 noundef 20, i32 noundef 2, i64 noundef 2)
%4 = call i32 (ptr, i32, i32, ...) @printf(ptr noundef @.str.1, i32 noundef 8, i32 noundef 2)
ret i32 0
}
declare i32 @printf(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/tmp98gw6g5f.c'
source_filename = "/tmp/tmp98gw6g5f.c"
target datalayout = "e-m:e-p270: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/tmp98gw6g5f.c"
target datalayout = "e-m:e-p270: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/tmpoc3ssej5.c'
source_filename = "/tmp/tmpoc3ssej5.c"
target datalayout = "e-m:e-p270: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/tmpoc3ssej5.c"
target datalayout = "e-m:e-p270: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/tmpx287y8ii.c'
source_filename = "/tmp/tmpx287y8ii.c"
target datalayout = "e-m:e-p270: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_FILENO = 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/tmpx287y8ii.c"
target datalayout = "e-m:e-p270: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_FILENO = 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/tmpb9gb2paz.c'
source_filename = "/tmp/tmpb9gb2paz.c"
target datalayout = "e-m:e-p270: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/tmpb9gb2paz.c"
target datalayout = "e-m:e-p270: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/tmpi9id6iwh.c'
source_filename = "/tmp/tmpi9id6iwh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CLOCK_MONOTONIC = 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/tmpi9id6iwh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CLOCK_MONOTONIC = 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/tmp2t47husi.c'
source_filename = "/tmp/tmp2t47husi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDONLY = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2t47husi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDONLY = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpscjllz5v.c'
source_filename = "/tmp/tmpscjllz5v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LOG_CRIT = 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/tmpscjllz5v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LOG_CRIT = 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/tmpavv8b6a0.c'
source_filename = "/tmp/tmpavv8b6a0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nopStat1(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (...) @rand()
ret i32 %3
}
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpavv8b6a0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nopStat1(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (...) @rand()
ret i32 %3
}
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"}
|
; ModuleID = '/tmp/tmp9c4ow16u.c'
source_filename = "/tmp/tmp9c4ow16u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ft_print_reverse_alphabet() #0 {
%1 = alloca i8, align 1
store i8 122, ptr %1, align 1
br label %2
2: ; preds = %6, %0
%3 = load i8, ptr %1, align 1
%4 = sext i8 %3 to i32
%5 = icmp sge i32 %4, 97
br i1 %5, label %6, label %11
6: ; preds = %2
%7 = load i8, ptr %1, align 1
%8 = call i32 @putchar(i8 noundef signext %7)
%9 = load i8, ptr %1, align 1
%10 = add i8 %9, -1
store i8 %10, ptr %1, align 1
br label %2, !llvm.loop !6
11: ; preds = %2
ret void
}
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9c4ow16u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ft_print_reverse_alphabet() #0 {
%1 = alloca i8, align 1
store i8 122, ptr %1, align 1
%2 = load i8, ptr %1, align 1
%3 = sext i8 %2 to i32
%4 = icmp sge i32 %3, 97
br i1 %4, label %.lr.ph, label %13
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %5
%6 = load i8, ptr %1, align 1
%7 = call i32 @putchar(i8 noundef signext %6)
%8 = load i8, ptr %1, align 1
%9 = add i8 %8, -1
store i8 %9, ptr %1, align 1
%10 = load i8, ptr %1, align 1
%11 = sext i8 %10 to i32
%12 = icmp sge i32 %11, 97
br i1 %12, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %5
br label %13
13: ; preds = %._crit_edge, %0
ret void
}
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpkhvhjk81.c'
source_filename = "/tmp/tmpkhvhjk81.c"
target datalayout = "e-m:e-p270: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 { i32, i64 }
@FD_SETSIZE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Timer(i32 noundef %0, i64 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i64, align 8
%5 = alloca %struct.timeval, align 8
store i32 %0, ptr %3, align 4
store i64 %1, ptr %4, align 8
%6 = load i32, ptr %3, align 4
%7 = getelementptr inbounds %struct.timeval, ptr %5, i32 0, i32 0
store i32 %6, ptr %7, align 8
%8 = load i64, ptr %4, align 8
%9 = getelementptr inbounds %struct.timeval, ptr %5, i32 0, i32 1
store i64 %8, ptr %9, align 8
%10 = load i32, ptr @FD_SETSIZE, align 4
%11 = call i32 @select(i32 noundef %10, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef %5)
ret void
}
declare i32 @select(i32 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/tmpkhvhjk81.c"
target datalayout = "e-m:e-p270: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 { i32, i64 }
@FD_SETSIZE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Timer(i32 noundef %0, i64 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i64, align 8
%5 = alloca %struct.timeval, align 8
store i32 %0, ptr %3, align 4
store i64 %1, ptr %4, align 8
%6 = load i32, ptr %3, align 4
%7 = getelementptr inbounds %struct.timeval, ptr %5, i32 0, i32 0
store i32 %6, ptr %7, align 8
%8 = load i64, ptr %4, align 8
%9 = getelementptr inbounds %struct.timeval, ptr %5, i32 0, i32 1
store i64 %8, ptr %9, align 8
%10 = load i32, ptr @FD_SETSIZE, align 4
%11 = call i32 @select(i32 noundef %10, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef %5)
ret void
}
declare i32 @select(i32 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/tmp73ofki2t.c'
source_filename = "/tmp/tmp73ofki2t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @LCDRasterFrameBufferSet(i64 noundef %0, i32 noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca i64, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store i64 %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%9 = load i32, ptr %6, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %25, label %11
11: ; preds = %4
%12 = load ptr, ptr %7, align 8
%13 = ptrtoint ptr %12 to i64
%14 = load i64, ptr %5, align 8
%15 = add i64 %14, 68
%16 = inttoptr i64 %15 to ptr
store volatile i64 %13, ptr %16, align 8
%17 = load ptr, ptr %7, align 8
%18 = ptrtoint ptr %17 to i64
%19 = load i64, ptr %8, align 8
%20 = add i64 %18, %19
%21 = sub i64 %20, 4
%22 = load i64, ptr %5, align 8
%23 = add i64 %22, 72
%24 = inttoptr i64 %23 to ptr
store volatile i64 %21, ptr %24, align 8
br label %39
25: ; preds = %4
%26 = load ptr, ptr %7, align 8
%27 = ptrtoint ptr %26 to i64
%28 = load i64, ptr %5, align 8
%29 = add i64 %28, 76
%30 = inttoptr i64 %29 to ptr
store volatile i64 %27, ptr %30, align 8
%31 = load ptr, ptr %7, align 8
%32 = ptrtoint ptr %31 to i64
%33 = load i64, ptr %8, align 8
%34 = add i64 %32, %33
%35 = sub i64 %34, 4
%36 = load i64, ptr %5, align 8
%37 = add i64 %36, 80
%38 = inttoptr i64 %37 to ptr
store volatile i64 %35, ptr %38, align 8
br label %39
39: ; preds = %25, %11
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/tmp73ofki2t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @LCDRasterFrameBufferSet(i64 noundef %0, i32 noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca i64, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store i64 %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%9 = load i32, ptr %6, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %25, label %11
11: ; preds = %4
%12 = load ptr, ptr %7, align 8
%13 = ptrtoint ptr %12 to i64
%14 = load i64, ptr %5, align 8
%15 = add i64 %14, 68
%16 = inttoptr i64 %15 to ptr
store volatile i64 %13, ptr %16, align 8
%17 = load ptr, ptr %7, align 8
%18 = ptrtoint ptr %17 to i64
%19 = load i64, ptr %8, align 8
%20 = add i64 %18, %19
%21 = sub i64 %20, 4
%22 = load i64, ptr %5, align 8
%23 = add i64 %22, 72
%24 = inttoptr i64 %23 to ptr
store volatile i64 %21, ptr %24, align 8
br label %39
25: ; preds = %4
%26 = load ptr, ptr %7, align 8
%27 = ptrtoint ptr %26 to i64
%28 = load i64, ptr %5, align 8
%29 = add i64 %28, 76
%30 = inttoptr i64 %29 to ptr
store volatile i64 %27, ptr %30, align 8
%31 = load ptr, ptr %7, align 8
%32 = ptrtoint ptr %31 to i64
%33 = load i64, ptr %8, align 8
%34 = add i64 %32, %33
%35 = sub i64 %34, 4
%36 = load i64, ptr %5, align 8
%37 = add i64 %36, 80
%38 = inttoptr i64 %37 to ptr
store volatile i64 %35, ptr %38, align 8
br label %39
39: ; preds = %25, %11
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/tmp9jhgm30n.c'
source_filename = "/tmp/tmp9jhgm30n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @split(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
%13 = load i8, ptr %5, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %2
store ptr null, ptr %3, align 8
br label %102
17: ; preds = %2
store i64 2, ptr %6, align 8
%18 = load ptr, ptr %4, align 8
%19 = call i32 @strlen(ptr noundef %18)
%20 = add nsw i32 %19, 1
%21 = sext i32 %20 to i64
store i64 %21, ptr %7, align 8
store i64 0, ptr %8, align 8
br label %22
22: ; preds = %39, %17
%23 = load i64, ptr %8, align 8
%24 = load i64, ptr %7, align 8
%25 = icmp ult i64 %23, %24
br i1 %25, label %26, label %42
26: ; preds = %22
%27 = load ptr, ptr %4, align 8
%28 = load i64, ptr %8, align 8
%29 = getelementptr inbounds i8, ptr %27, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = load i8, ptr %5, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %31, %33
br i1 %34, label %35, label %38
35: ; preds = %26
%36 = load i64, ptr %6, align 8
%37 = add i64 %36, 1
store i64 %37, ptr %6, align 8
br label %38
38: ; preds = %35, %26
br label %39
39: ; preds = %38
%40 = load i64, ptr %8, align 8
%41 = add i64 %40, 1
store i64 %41, ptr %8, align 8
br label %22, !llvm.loop !6
42: ; preds = %22
%43 = load i64, ptr %6, align 8
%44 = mul i64 %43, 8
%45 = call ptr @malloc(i64 noundef %44)
store ptr %45, ptr %9, align 8
%46 = load ptr, ptr %9, align 8
%47 = icmp ne ptr %46, null
br i1 %47, label %49, label %48
48: ; preds = %42
store ptr null, ptr %3, align 8
br label %102
49: ; preds = %42
store i64 0, ptr %10, align 8
store i64 0, ptr %11, align 8
store i64 0, ptr %12, align 8
br label %50
50: ; preds = %93, %49
%51 = load i64, ptr %12, align 8
%52 = load i64, ptr %7, align 8
%53 = icmp ult i64 %51, %52
br i1 %53, label %54, label %96
54: ; preds = %50
%55 = load ptr, ptr %4, align 8
%56 = load i64, ptr %12, align 8
%57 = getelementptr inbounds i8, ptr %55, i64 %56
%58 = load i8, ptr %57, align 1
%59 = sext i8 %58 to i32
%60 = load i8, ptr %5, align 1
%61 = sext i8 %60 to i32
%62 = icmp eq i32 %59, %61
br i1 %62, label %70, label %63
63: ; preds = %54
%64 = load ptr, ptr %4, align 8
%65 = load i64, ptr %12, align 8
%66 = getelementptr inbounds i8, ptr %64, i64 %65
%67 = load i8, ptr %66, align 1
%68 = sext i8 %67 to i32
%69 = icmp eq i32 %68, 0
br i1 %69, label %70, label %89
70: ; preds = %63, %54
%71 = load ptr, ptr %4, align 8
%72 = load i64, ptr %10, align 8
%73 = load i64, ptr %12, align 8
%74 = call ptr @obtener_str(ptr noundef %71, i64 noundef %72, i64 noundef %73)
%75 = load ptr, ptr %9, align 8
%76 = load i64, ptr %11, align 8
%77 = getelementptr inbounds ptr, ptr %75, i64 %76
store ptr %74, ptr %77, align 8
%78 = load ptr, ptr %9, align 8
%79 = load i64, ptr %11, align 8
%80 = getelementptr inbounds ptr, ptr %78, i64 %79
%81 = load ptr, ptr %80, align 8
%82 = icmp ne ptr %81, null
br i1 %82, label %86, label %83
83: ; preds = %70
%84 = load ptr, ptr %9, align 8
%85 = call i32 @free_strv(ptr noundef %84)
store ptr null, ptr %3, align 8
br label %102
86: ; preds = %70
%87 = load i64, ptr %11, align 8
%88 = add i64 %87, 1
store i64 %88, ptr %11, align 8
store i64 0, ptr %10, align 8
br label %92
89: ; preds = %63
%90 = load i64, ptr %10, align 8
%91 = add i64 %90, 1
store i64 %91, ptr %10, align 8
br label %92
92: ; preds = %89, %86
br label %93
93: ; preds = %92
%94 = load i64, ptr %12, align 8
%95 = add i64 %94, 1
store i64 %95, ptr %12, align 8
br label %50, !llvm.loop !8
96: ; preds = %50
%97 = load ptr, ptr %9, align 8
%98 = load i64, ptr %6, align 8
%99 = sub i64 %98, 1
%100 = getelementptr inbounds ptr, ptr %97, i64 %99
store ptr null, ptr %100, align 8
%101 = load ptr, ptr %9, align 8
store ptr %101, ptr %3, align 8
br label %102
102: ; preds = %96, %83, %48, %16
%103 = load ptr, ptr %3, align 8
ret ptr %103
}
declare i32 @strlen(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare ptr @obtener_str(ptr noundef, i64 noundef, i64 noundef) #1
declare i32 @free_strv(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp9jhgm30n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @split(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
%13 = load i8, ptr %5, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %2
store ptr null, ptr %3, align 8
br label %106
17: ; preds = %2
store i64 2, ptr %6, align 8
%18 = load ptr, ptr %4, align 8
%19 = call i32 @strlen(ptr noundef %18)
%20 = add nsw i32 %19, 1
%21 = sext i32 %20 to i64
store i64 %21, ptr %7, align 8
store i64 0, ptr %8, align 8
%22 = load i64, ptr %8, align 8
%23 = load i64, ptr %7, align 8
%24 = icmp ult i64 %22, %23
br i1 %24, label %.lr.ph, label %44
.lr.ph: ; preds = %17
br label %25
25: ; preds = %.lr.ph, %38
%26 = load ptr, ptr %4, align 8
%27 = load i64, ptr %8, align 8
%28 = getelementptr inbounds i8, ptr %26, i64 %27
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = load i8, ptr %5, align 1
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %30, %32
br i1 %33, label %34, label %37
34: ; preds = %25
%35 = load i64, ptr %6, align 8
%36 = add i64 %35, 1
store i64 %36, ptr %6, align 8
br label %37
37: ; preds = %34, %25
br label %38
38: ; preds = %37
%39 = load i64, ptr %8, align 8
%40 = add i64 %39, 1
store i64 %40, ptr %8, align 8
%41 = load i64, ptr %8, align 8
%42 = load i64, ptr %7, align 8
%43 = icmp ult i64 %41, %42
br i1 %43, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %44
44: ; preds = %._crit_edge, %17
%45 = load i64, ptr %6, align 8
%46 = mul i64 %45, 8
%47 = call ptr @malloc(i64 noundef %46)
store ptr %47, ptr %9, align 8
%48 = load ptr, ptr %9, align 8
%49 = icmp ne ptr %48, null
br i1 %49, label %51, label %50
50: ; preds = %44
store ptr null, ptr %3, align 8
br label %106
51: ; preds = %44
store i64 0, ptr %10, align 8
store i64 0, ptr %11, align 8
store i64 0, ptr %12, align 8
%52 = load i64, ptr %12, align 8
%53 = load i64, ptr %7, align 8
%54 = icmp ult i64 %52, %53
br i1 %54, label %.lr.ph2, label %100
.lr.ph2: ; preds = %51
br label %55
55: ; preds = %.lr.ph2, %94
%56 = load ptr, ptr %4, align 8
%57 = load i64, ptr %12, align 8
%58 = getelementptr inbounds i8, ptr %56, i64 %57
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = load i8, ptr %5, align 1
%62 = sext i8 %61 to i32
%63 = icmp eq i32 %60, %62
br i1 %63, label %71, label %64
64: ; preds = %55
%65 = load ptr, ptr %4, align 8
%66 = load i64, ptr %12, align 8
%67 = getelementptr inbounds i8, ptr %65, i64 %66
%68 = load i8, ptr %67, align 1
%69 = sext i8 %68 to i32
%70 = icmp eq i32 %69, 0
br i1 %70, label %71, label %90
71: ; preds = %64, %55
%72 = load ptr, ptr %4, align 8
%73 = load i64, ptr %10, align 8
%74 = load i64, ptr %12, align 8
%75 = call ptr @obtener_str(ptr noundef %72, i64 noundef %73, i64 noundef %74)
%76 = load ptr, ptr %9, align 8
%77 = load i64, ptr %11, align 8
%78 = getelementptr inbounds ptr, ptr %76, i64 %77
store ptr %75, ptr %78, align 8
%79 = load ptr, ptr %9, align 8
%80 = load i64, ptr %11, align 8
%81 = getelementptr inbounds ptr, ptr %79, i64 %80
%82 = load ptr, ptr %81, align 8
%83 = icmp ne ptr %82, null
br i1 %83, label %87, label %84
84: ; preds = %71
%85 = load ptr, ptr %9, align 8
%86 = call i32 @free_strv(ptr noundef %85)
store ptr null, ptr %3, align 8
br label %106
87: ; preds = %71
%88 = load i64, ptr %11, align 8
%89 = add i64 %88, 1
store i64 %89, ptr %11, align 8
store i64 0, ptr %10, align 8
br label %93
90: ; preds = %64
%91 = load i64, ptr %10, align 8
%92 = add i64 %91, 1
store i64 %92, ptr %10, align 8
br label %93
93: ; preds = %90, %87
br label %94
94: ; preds = %93
%95 = load i64, ptr %12, align 8
%96 = add i64 %95, 1
store i64 %96, ptr %12, align 8
%97 = load i64, ptr %12, align 8
%98 = load i64, ptr %7, align 8
%99 = icmp ult i64 %97, %98
br i1 %99, label %55, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %94
br label %100
100: ; preds = %._crit_edge3, %51
%101 = load ptr, ptr %9, align 8
%102 = load i64, ptr %6, align 8
%103 = sub i64 %102, 1
%104 = getelementptr inbounds ptr, ptr %101, i64 %103
store ptr null, ptr %104, align 8
%105 = load ptr, ptr %9, align 8
store ptr %105, ptr %3, align 8
br label %106
106: ; preds = %100, %84, %50, %16
%107 = load ptr, ptr %3, align 8
ret ptr %107
}
declare i32 @strlen(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare ptr @obtener_str(ptr noundef, i64 noundef, i64 noundef) #1
declare i32 @free_strv(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp393cw0nl.c'
source_filename = "/tmp/tmp393cw0nl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @df_md_alloc(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
br label %7
7: ; preds = %19, %3
%8 = load i32, ptr %5, align 4
%9 = call i64 @bmp_iter_set(ptr noundef %4, i32 noundef %8)
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %21
11: ; preds = %7
%12 = load i32, ptr %6, align 4
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 (...) @bitmap_clear()
br label %18
16: ; preds = %11
%17 = call i32 (...) @bitmap_initialize_stat()
br label %18
18: ; preds = %16, %14
br label %19
19: ; preds = %18
%20 = call i32 @bmp_iter_next(ptr noundef %4)
br label %7, !llvm.loop !6
21: ; preds = %7
ret void
}
declare i64 @bmp_iter_set(ptr noundef, i32 noundef) #1
declare i32 @bitmap_clear(...) #1
declare i32 @bitmap_initialize_stat(...) #1
declare i32 @bmp_iter_next(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp393cw0nl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @df_md_alloc(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %5, align 4
%8 = call i64 @bmp_iter_set(ptr noundef %4, i32 noundef %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %.lr.ph, label %23
.lr.ph: ; preds = %3
br label %10
10: ; preds = %.lr.ph, %18
%11 = load i32, ptr %6, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = call i32 (...) @bitmap_clear()
br label %17
15: ; preds = %10
%16 = call i32 (...) @bitmap_initialize_stat()
br label %17
17: ; preds = %15, %13
br label %18
18: ; preds = %17
%19 = call i32 @bmp_iter_next(ptr noundef %4)
%20 = load i32, ptr %5, align 4
%21 = call i64 @bmp_iter_set(ptr noundef %4, i32 noundef %20)
%22 = icmp ne i64 %21, 0
br i1 %22, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %23
23: ; preds = %._crit_edge, %3
ret void
}
declare i64 @bmp_iter_set(ptr noundef, i32 noundef) #1
declare i32 @bitmap_clear(...) #1
declare i32 @bitmap_initialize_stat(...) #1
declare i32 @bmp_iter_next(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp2mwbqmbs.c'
source_filename = "/tmp/tmp2mwbqmbs.c"
target datalayout = "e-m:e-p270: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.utmp = type { ptr, i32, i32, i32, i32, i32, i32 }
%struct.passwd = type { ptr }
@.str = private unnamed_addr constant [2 x i8] c"1\00", align 1
@USER_PROCESS = dso_local global i32 0, align 4
@UT_LINESIZE = dso_local global i32 0, align 4
@UT_NAMESIZE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @write_utmp(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca %struct.utmp, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = getelementptr inbounds %struct.utmp, ptr %3, i32 0, i32 0
store ptr @.str, ptr %5, align 8
%6 = getelementptr inbounds %struct.utmp, ptr %3, i32 0, i32 1
store i32 1, ptr %6, align 8
%7 = getelementptr inbounds %struct.utmp, ptr %3, i32 0, i32 2
store i32 0, ptr %7, align 4
%8 = getelementptr inbounds %struct.utmp, ptr %3, i32 0, i32 3
store i32 0, ptr %8, align 8
%9 = getelementptr inbounds %struct.utmp, ptr %3, i32 0, i32 4
%10 = call i32 @time(ptr noundef null)
store i32 %10, ptr %9, align 4
%11 = getelementptr inbounds %struct.utmp, ptr %3, i32 0, i32 5
%12 = call i32 (...) @getpid()
store i32 %12, ptr %11, align 8
%13 = getelementptr inbounds %struct.utmp, ptr %3, i32 0, i32 6
%14 = load i32, ptr @USER_PROCESS, align 4
store i32 %14, ptr %13, align 4
%15 = call ptr @ttyname(i32 noundef 0)
store ptr %15, ptr %4, align 8
%16 = load ptr, ptr %4, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %29
18: ; preds = %1
%19 = load ptr, ptr %4, align 8
%20 = call i32 @strlen(ptr noundef %19)
%21 = icmp sgt i32 %20, 5
br i1 %21, label %22, label %29
22: ; preds = %18
%23 = getelementptr inbounds %struct.utmp, ptr %3, i32 0, i32 3
%24 = load i32, ptr %23, align 8
%25 = load ptr, ptr %4, align 8
%26 = getelementptr inbounds i8, ptr %25, i64 5
%27 = load i32, ptr @UT_LINESIZE, align 4
%28 = call i32 @strncpy(i32 noundef %24, ptr noundef %26, i32 noundef %27)
br label %29
29: ; preds = %22, %18, %1
%30 = getelementptr inbounds %struct.utmp, ptr %3, i32 0, i32 2
%31 = load i32, ptr %30, align 4
%32 = load ptr, ptr %2, align 8
%33 = getelementptr inbounds %struct.passwd, ptr %32, i32 0, i32 0
%34 = load ptr, ptr %33, align 8
%35 = load i32, ptr @UT_NAMESIZE, align 4
%36 = call i32 @strncpy(i32 noundef %31, ptr noundef %34, i32 noundef %35)
%37 = call i32 @pututline(ptr noundef %3)
ret void
}
declare i32 @time(ptr noundef) #1
declare i32 @getpid(...) #1
declare ptr @ttyname(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strncpy(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @pututline(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2mwbqmbs.c"
target datalayout = "e-m:e-p270: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.utmp = type { ptr, i32, i32, i32, i32, i32, i32 }
%struct.passwd = type { ptr }
@.str = private unnamed_addr constant [2 x i8] c"1\00", align 1
@USER_PROCESS = dso_local global i32 0, align 4
@UT_LINESIZE = dso_local global i32 0, align 4
@UT_NAMESIZE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @write_utmp(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca %struct.utmp, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = getelementptr inbounds %struct.utmp, ptr %3, i32 0, i32 0
store ptr @.str, ptr %5, align 8
%6 = getelementptr inbounds %struct.utmp, ptr %3, i32 0, i32 1
store i32 1, ptr %6, align 8
%7 = getelementptr inbounds %struct.utmp, ptr %3, i32 0, i32 2
store i32 0, ptr %7, align 4
%8 = getelementptr inbounds %struct.utmp, ptr %3, i32 0, i32 3
store i32 0, ptr %8, align 8
%9 = getelementptr inbounds %struct.utmp, ptr %3, i32 0, i32 4
%10 = call i32 @time(ptr noundef null)
store i32 %10, ptr %9, align 4
%11 = getelementptr inbounds %struct.utmp, ptr %3, i32 0, i32 5
%12 = call i32 (...) @getpid()
store i32 %12, ptr %11, align 8
%13 = getelementptr inbounds %struct.utmp, ptr %3, i32 0, i32 6
%14 = load i32, ptr @USER_PROCESS, align 4
store i32 %14, ptr %13, align 4
%15 = call ptr @ttyname(i32 noundef 0)
store ptr %15, ptr %4, align 8
%16 = load ptr, ptr %4, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %29
18: ; preds = %1
%19 = load ptr, ptr %4, align 8
%20 = call i32 @strlen(ptr noundef %19)
%21 = icmp sgt i32 %20, 5
br i1 %21, label %22, label %29
22: ; preds = %18
%23 = getelementptr inbounds %struct.utmp, ptr %3, i32 0, i32 3
%24 = load i32, ptr %23, align 8
%25 = load ptr, ptr %4, align 8
%26 = getelementptr inbounds i8, ptr %25, i64 5
%27 = load i32, ptr @UT_LINESIZE, align 4
%28 = call i32 @strncpy(i32 noundef %24, ptr noundef %26, i32 noundef %27)
br label %29
29: ; preds = %22, %18, %1
%30 = getelementptr inbounds %struct.utmp, ptr %3, i32 0, i32 2
%31 = load i32, ptr %30, align 4
%32 = load ptr, ptr %2, align 8
%33 = getelementptr inbounds %struct.passwd, ptr %32, i32 0, i32 0
%34 = load ptr, ptr %33, align 8
%35 = load i32, ptr @UT_NAMESIZE, align 4
%36 = call i32 @strncpy(i32 noundef %31, ptr noundef %34, i32 noundef %35)
%37 = call i32 @pututline(ptr noundef %3)
ret void
}
declare i32 @time(ptr noundef) #1
declare i32 @getpid(...) #1
declare ptr @ttyname(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strncpy(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @pututline(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkz75vv_c.c'
source_filename = "/tmp/tmpkz75vv_c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"SHELL #> \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [6 x i8] c"usage\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"help\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"usage: (add|delete) filename\0A\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"%s %s\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"add\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [13 x i8] c"Cannot find \00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"ADD\00", align 1
@.str.9 = private unnamed_addr constant [4 x i8] c"ACT\00", align 1
@.str.10 = private unnamed_addr constant [19 x i8] c"Denied by server.\0A\00", align 1
@.str.11 = private unnamed_addr constant [4 x i8] c"CNK\00", align 1
@.str.12 = private unnamed_addr constant [16 x i8] c"=====CHUNK=====\00", align 1
@.str.13 = private unnamed_addr constant [7 x i8] c"delete\00", align 1
@.str.14 = private unnamed_addr constant [4 x i8] c"DEL\00", align 1
@.str.15 = private unnamed_addr constant [17 x i8] c"Unknown command\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @doShellMode(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca [11 x i8], align 1
%4 = alloca [240 x i8], align 16
%5 = alloca [240 x i8], align 16
%6 = alloca [513 x i8], align 16
%7 = alloca i32, align 4
store i32 %0, ptr %2, align 4
br label %8
8: ; preds = %1, %20, %27, %43, %58, %103, %107
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = getelementptr inbounds [240 x i8], ptr %5, i64 0, i64 0
%11 = load i32, ptr @stdin, align 4
%12 = call i32 @fgets(ptr noundef %10, i32 noundef 240, i32 noundef %11)
%13 = getelementptr inbounds [240 x i8], ptr %5, i64 0, i64 0
%14 = call i64 @strcmp(ptr noundef %13, ptr noundef @.str.1)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %20
16: ; preds = %8
%17 = getelementptr inbounds [240 x i8], ptr %5, i64 0, i64 0
%18 = call i64 @strcmp(ptr noundef %17, ptr noundef @.str.2)
%19 = icmp ne i64 %18, 0
br i1 %19, label %22, label %20
20: ; preds = %16, %8
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %8
22: ; preds = %16
%23 = getelementptr inbounds [240 x i8], ptr %5, i64 0, i64 0
%24 = load i8, ptr %23, align 16
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 10
br i1 %26, label %27, label %28
27: ; preds = %22
br label %8
28: ; preds = %22
br label %29
29: ; preds = %28
%30 = getelementptr inbounds [240 x i8], ptr %5, i64 0, i64 0
%31 = getelementptr inbounds [11 x i8], ptr %3, i64 0, i64 0
%32 = getelementptr inbounds [240 x i8], ptr %4, i64 0, i64 0
%33 = call i32 @sscanf(ptr noundef %30, ptr noundef @.str.4, ptr noundef %31, ptr noundef %32)
%34 = getelementptr inbounds [11 x i8], ptr %3, i64 0, i64 0
%35 = call i64 @strcmp(ptr noundef %34, ptr noundef @.str.5)
%36 = icmp ne i64 %35, 0
br i1 %36, label %93, label %37
37: ; preds = %29
%38 = getelementptr inbounds [240 x i8], ptr %4, i64 0, i64 0
%39 = load i32, ptr @O_RDONLY, align 4
%40 = call i32 @open(ptr noundef %38, i32 noundef %39)
store i32 %40, ptr %7, align 4
%41 = load i32, ptr %7, align 4
%42 = icmp eq i32 %41, -1
br i1 %42, label %43, label %47
43: ; preds = %37
%44 = call i32 @Notice(ptr noundef @.str.6)
%45 = getelementptr inbounds [240 x i8], ptr %4, i64 0, i64 0
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %45)
br label %8
47: ; preds = %37
%48 = load i32, ptr %2, align 4
%49 = getelementptr inbounds [240 x i8], ptr %4, i64 0, i64 0
%50 = call i32 @writeMsg(i32 noundef %48, ptr noundef @.str.8, ptr noundef %49)
%51 = load i32, ptr %2, align 4
%52 = getelementptr inbounds [11 x i8], ptr %3, i64 0, i64 0
%53 = getelementptr inbounds [240 x i8], ptr %4, i64 0, i64 0
%54 = call i32 @readMsg(i32 noundef %51, ptr noundef %52, ptr noundef %53)
%55 = getelementptr inbounds [11 x i8], ptr %3, i64 0, i64 0
%56 = call i64 @strcmp(ptr noundef %55, ptr noundef @.str.9)
%57 = icmp ne i64 %56, 0
br i1 %57, label %58, label %60
58: ; preds = %47
%59 = call i32 @Notice(ptr noundef @.str.10)
br label %8
60: ; preds = %47
%61 = load i32, ptr %2, align 4
%62 = call i32 @writeMsg(i32 noundef %61, ptr noundef @.str.11, ptr noundef @.str.12)
%63 = load i32, ptr %2, align 4
%64 = getelementptr inbounds [11 x i8], ptr %3, i64 0, i64 0
%65 = getelementptr inbounds [240 x i8], ptr %4, i64 0, i64 0
%66 = call i32 @readMsg(i32 noundef %63, ptr noundef %64, ptr noundef %65)
%67 = getelementptr inbounds [513 x i8], ptr %6, i64 0, i64 0
%68 = call i32 @memset(ptr noundef %67, i32 noundef 0, i32 noundef 513)
br label %69
69: ; preds = %74, %60
%70 = load i32, ptr %7, align 4
%71 = getelementptr inbounds [513 x i8], ptr %6, i64 0, i64 0
%72 = call i64 @read(i32 noundef %70, ptr noundef %71, i32 noundef 511)
%73 = icmp slt i64 0, %72
br i1 %73, label %74, label %84
74: ; preds = %69
%75 = load i32, ptr %2, align 4
%76 = getelementptr inbounds [513 x i8], ptr %6, i64 0, i64 0
%77 = call i32 @writeData(i32 noundef %75, ptr noundef %76)
%78 = load i32, ptr %2, align 4
%79 = getelementptr inbounds [11 x i8], ptr %3, i64 0, i64 0
%80 = getelementptr inbounds [240 x i8], ptr %4, i64 0, i64 0
%81 = call i32 @readMsg(i32 noundef %78, ptr noundef %79, ptr noundef %80)
%82 = getelementptr inbounds [513 x i8], ptr %6, i64 0, i64 0
%83 = call i32 @memset(ptr noundef %82, i32 noundef 0, i32 noundef 513)
br label %69, !llvm.loop !6
84: ; preds = %69
%85 = load i32, ptr %2, align 4
%86 = call i32 @writeData(i32 noundef %85, ptr noundef @.str.12)
%87 = load i32, ptr %7, align 4
%88 = call i32 @close(i32 noundef %87)
%89 = load i32, ptr %2, align 4
%90 = getelementptr inbounds [11 x i8], ptr %3, i64 0, i64 0
%91 = getelementptr inbounds [240 x i8], ptr %4, i64 0, i64 0
%92 = call i32 @readMsg(i32 noundef %89, ptr noundef %90, ptr noundef %91)
br label %107
93: ; preds = %29
%94 = getelementptr inbounds [11 x i8], ptr %3, i64 0, i64 0
%95 = call i64 @strcmp(ptr noundef %94, ptr noundef @.str.13)
%96 = icmp ne i64 %95, 0
br i1 %96, label %103, label %97
97: ; preds = %93
%98 = load i32, ptr %2, align 4
%99 = getelementptr inbounds [240 x i8], ptr %4, i64 0, i64 0
%100 = call i32 @writeMsg(i32 noundef %98, ptr noundef @.str.14, ptr noundef %99)
%101 = getelementptr inbounds [240 x i8], ptr %4, i64 0, i64 0
%102 = call i32 @remove(ptr noundef %101)
br label %106
103: ; preds = %93
%104 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
%105 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %8
106: ; preds = %97
br label %107
107: ; preds = %106, %84
br label %8
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @Notice(ptr noundef) #1
declare i32 @writeMsg(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @readMsg(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @writeData(i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @remove(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpkz75vv_c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"SHELL #> \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [6 x i8] c"usage\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"help\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"usage: (add|delete) filename\0A\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"%s %s\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"add\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [13 x i8] c"Cannot find \00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"ADD\00", align 1
@.str.9 = private unnamed_addr constant [4 x i8] c"ACT\00", align 1
@.str.10 = private unnamed_addr constant [19 x i8] c"Denied by server.\0A\00", align 1
@.str.11 = private unnamed_addr constant [4 x i8] c"CNK\00", align 1
@.str.12 = private unnamed_addr constant [16 x i8] c"=====CHUNK=====\00", align 1
@.str.13 = private unnamed_addr constant [7 x i8] c"delete\00", align 1
@.str.14 = private unnamed_addr constant [4 x i8] c"DEL\00", align 1
@.str.15 = private unnamed_addr constant [17 x i8] c"Unknown command\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @doShellMode(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca [11 x i8], align 1
%4 = alloca [240 x i8], align 16
%5 = alloca [240 x i8], align 16
%6 = alloca [513 x i8], align 16
%7 = alloca i32, align 4
store i32 %0, ptr %2, align 4
br label %8
8: ; preds = %.backedge, %1
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = getelementptr inbounds [240 x i8], ptr %5, i64 0, i64 0
%11 = load i32, ptr @stdin, align 4
%12 = call i32 @fgets(ptr noundef %10, i32 noundef 240, i32 noundef %11)
%13 = getelementptr inbounds [240 x i8], ptr %5, i64 0, i64 0
%14 = call i64 @strcmp(ptr noundef %13, ptr noundef @.str.1)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %20
16: ; preds = %8
%17 = getelementptr inbounds [240 x i8], ptr %5, i64 0, i64 0
%18 = call i64 @strcmp(ptr noundef %17, ptr noundef @.str.2)
%19 = icmp ne i64 %18, 0
br i1 %19, label %22, label %20
20: ; preds = %16, %8
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %.backedge
.backedge: ; preds = %20, %27, %43, %58, %105, %109
br label %8
22: ; preds = %16
%23 = getelementptr inbounds [240 x i8], ptr %5, i64 0, i64 0
%24 = load i8, ptr %23, align 16
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 10
br i1 %26, label %27, label %28
27: ; preds = %22
br label %.backedge
28: ; preds = %22
br label %29
29: ; preds = %28
%30 = getelementptr inbounds [240 x i8], ptr %5, i64 0, i64 0
%31 = getelementptr inbounds [11 x i8], ptr %3, i64 0, i64 0
%32 = getelementptr inbounds [240 x i8], ptr %4, i64 0, i64 0
%33 = call i32 @sscanf(ptr noundef %30, ptr noundef @.str.4, ptr noundef %31, ptr noundef %32)
%34 = getelementptr inbounds [11 x i8], ptr %3, i64 0, i64 0
%35 = call i64 @strcmp(ptr noundef %34, ptr noundef @.str.5)
%36 = icmp ne i64 %35, 0
br i1 %36, label %95, label %37
37: ; preds = %29
%38 = getelementptr inbounds [240 x i8], ptr %4, i64 0, i64 0
%39 = load i32, ptr @O_RDONLY, align 4
%40 = call i32 @open(ptr noundef %38, i32 noundef %39)
store i32 %40, ptr %7, align 4
%41 = load i32, ptr %7, align 4
%42 = icmp eq i32 %41, -1
br i1 %42, label %43, label %47
43: ; preds = %37
%44 = call i32 @Notice(ptr noundef @.str.6)
%45 = getelementptr inbounds [240 x i8], ptr %4, i64 0, i64 0
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %45)
br label %.backedge
47: ; preds = %37
%48 = load i32, ptr %2, align 4
%49 = getelementptr inbounds [240 x i8], ptr %4, i64 0, i64 0
%50 = call i32 @writeMsg(i32 noundef %48, ptr noundef @.str.8, ptr noundef %49)
%51 = load i32, ptr %2, align 4
%52 = getelementptr inbounds [11 x i8], ptr %3, i64 0, i64 0
%53 = getelementptr inbounds [240 x i8], ptr %4, i64 0, i64 0
%54 = call i32 @readMsg(i32 noundef %51, ptr noundef %52, ptr noundef %53)
%55 = getelementptr inbounds [11 x i8], ptr %3, i64 0, i64 0
%56 = call i64 @strcmp(ptr noundef %55, ptr noundef @.str.9)
%57 = icmp ne i64 %56, 0
br i1 %57, label %58, label %60
58: ; preds = %47
%59 = call i32 @Notice(ptr noundef @.str.10)
br label %.backedge
60: ; preds = %47
%61 = load i32, ptr %2, align 4
%62 = call i32 @writeMsg(i32 noundef %61, ptr noundef @.str.11, ptr noundef @.str.12)
%63 = load i32, ptr %2, align 4
%64 = getelementptr inbounds [11 x i8], ptr %3, i64 0, i64 0
%65 = getelementptr inbounds [240 x i8], ptr %4, i64 0, i64 0
%66 = call i32 @readMsg(i32 noundef %63, ptr noundef %64, ptr noundef %65)
%67 = getelementptr inbounds [513 x i8], ptr %6, i64 0, i64 0
%68 = call i32 @memset(ptr noundef %67, i32 noundef 0, i32 noundef 513)
%69 = load i32, ptr %7, align 4
%70 = getelementptr inbounds [513 x i8], ptr %6, i64 0, i64 0
%71 = call i64 @read(i32 noundef %69, ptr noundef %70, i32 noundef 511)
%72 = icmp slt i64 0, %71
br i1 %72, label %.lr.ph, label %86
.lr.ph: ; preds = %60
br label %73
73: ; preds = %.lr.ph, %73
%74 = load i32, ptr %2, align 4
%75 = getelementptr inbounds [513 x i8], ptr %6, i64 0, i64 0
%76 = call i32 @writeData(i32 noundef %74, ptr noundef %75)
%77 = load i32, ptr %2, align 4
%78 = getelementptr inbounds [11 x i8], ptr %3, i64 0, i64 0
%79 = getelementptr inbounds [240 x i8], ptr %4, i64 0, i64 0
%80 = call i32 @readMsg(i32 noundef %77, ptr noundef %78, ptr noundef %79)
%81 = getelementptr inbounds [513 x i8], ptr %6, i64 0, i64 0
%82 = call i32 @memset(ptr noundef %81, i32 noundef 0, i32 noundef 513)
%83 = load i32, ptr %7, align 4
%84 = call i64 @read(i32 noundef %83, ptr noundef %70, i32 noundef 511)
%85 = icmp slt i64 0, %84
br i1 %85, label %73, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %73
br label %86
86: ; preds = %._crit_edge, %60
%87 = load i32, ptr %2, align 4
%88 = call i32 @writeData(i32 noundef %87, ptr noundef @.str.12)
%89 = load i32, ptr %7, align 4
%90 = call i32 @close(i32 noundef %89)
%91 = load i32, ptr %2, align 4
%92 = getelementptr inbounds [11 x i8], ptr %3, i64 0, i64 0
%93 = getelementptr inbounds [240 x i8], ptr %4, i64 0, i64 0
%94 = call i32 @readMsg(i32 noundef %91, ptr noundef %92, ptr noundef %93)
br label %109
95: ; preds = %29
%96 = getelementptr inbounds [11 x i8], ptr %3, i64 0, i64 0
%97 = call i64 @strcmp(ptr noundef %96, ptr noundef @.str.13)
%98 = icmp ne i64 %97, 0
br i1 %98, label %105, label %99
99: ; preds = %95
%100 = load i32, ptr %2, align 4
%101 = getelementptr inbounds [240 x i8], ptr %4, i64 0, i64 0
%102 = call i32 @writeMsg(i32 noundef %100, ptr noundef @.str.14, ptr noundef %101)
%103 = getelementptr inbounds [240 x i8], ptr %4, i64 0, i64 0
%104 = call i32 @remove(ptr noundef %103)
br label %108
105: ; preds = %95
%106 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
%107 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %.backedge
108: ; preds = %99
br label %109
109: ; preds = %108, %86
br label %.backedge
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @Notice(ptr noundef) #1
declare i32 @writeMsg(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @readMsg(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @writeData(i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @remove(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_3llmssd.c'
source_filename = "/tmp/tmp_3llmssd.c"
target datalayout = "e-m:e-p270: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 i8 0, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%5 = call signext i8 (...) @getchar()
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds i8, ptr %6, i64 0
store i8 %5, ptr %7, align 1
%8 = load ptr, ptr %3, align 8
%9 = getelementptr inbounds i8, ptr %8, i64 0
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = load i8, ptr @EOF, align 1
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %11, %13
br i1 %14, label %15, label %16
15: ; preds = %1
store i32 0, ptr %2, align 4
br label %41
16: ; preds = %1
store i32 1, ptr %4, align 4
br label %17
17: ; preds = %32, %16
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %4, align 4
%20 = sub nsw i32 %19, 1
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %18, i64 %21
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp ne i32 %24, 10
br i1 %25, label %26, label %35
26: ; preds = %17
%27 = call signext i8 (...) @getchar()
%28 = load ptr, ptr %3, align 8
%29 = load i32, ptr %4, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
store i8 %27, ptr %31, align 1
br label %32
32: ; preds = %26
%33 = load i32, ptr %4, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %4, align 4
br label %17, !llvm.loop !6
35: ; preds = %17
%36 = load ptr, ptr %3, align 8
%37 = load i32, ptr %4, align 4
%38 = add nsw i32 %37, -1
store i32 %38, ptr %4, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %36, i64 %39
store i8 0, ptr %40, align 1
store i32 1, ptr %2, align 4
br label %41
41: ; preds = %35, %15
%42 = load i32, ptr %2, align 4
ret i32 %42
}
declare signext i8 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_3llmssd.c"
target datalayout = "e-m:e-p270: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 i8 0, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%5 = call signext i8 (...) @getchar()
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds i8, ptr %6, i64 0
store i8 %5, ptr %7, align 1
%8 = load ptr, ptr %3, align 8
%9 = getelementptr inbounds i8, ptr %8, i64 0
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = load i8, ptr @EOF, align 1
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %11, %13
br i1 %14, label %15, label %16
15: ; preds = %1
store i32 0, ptr %2, align 4
br label %48
16: ; preds = %1
store i32 1, ptr %4, align 4
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %4, align 4
%19 = sub nsw i32 %18, 1
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %17, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp ne i32 %23, 10
br i1 %24, label %.lr.ph, label %42
.lr.ph: ; preds = %16
br label %25
25: ; preds = %.lr.ph, %31
%26 = call signext i8 (...) @getchar()
%27 = load ptr, ptr %3, align 8
%28 = load i32, ptr %4, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
store i8 %26, ptr %30, align 1
br label %31
31: ; preds = %25
%32 = load i32, ptr %4, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %4, align 4
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %4, align 4
%36 = sub nsw i32 %35, 1
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %34, i64 %37
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp ne i32 %40, 10
br i1 %41, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %42
42: ; preds = %._crit_edge, %16
%43 = load ptr, ptr %3, align 8
%44 = load i32, ptr %4, align 4
%45 = add nsw i32 %44, -1
store i32 %45, ptr %4, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %43, i64 %46
store i8 0, ptr %47, align 1
store i32 1, ptr %2, align 4
br label %48
48: ; preds = %42, %15
%49 = load i32, ptr %2, align 4
ret i32 %49
}
declare signext i8 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp2vp7z6bd.c'
source_filename = "/tmp/tmp2vp7z6bd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"Can not read file %s !!!\00", align 1
@.str.2 = private unnamed_addr constant [147 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/nathanwbrei/cfdlab/refs/heads/master/worksheet1/helper.c\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"Error Wrong Magic field!\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"Image size: %d x %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.7 = private unnamed_addr constant [22 x i8] c"Image initialised...\0A\00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@EOF = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [12 x i8] c"read failed\00", align 1
@.str.10 = private unnamed_addr constant [11 x i8] c"%d,%d: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @read_pgm(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca [1024 x i8], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca [80 x i8], align 16
%12 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store ptr null, ptr %3, align 8
store ptr null, ptr %10, align 8
%13 = load ptr, ptr %2, align 8
%14 = call ptr @fopen(ptr noundef %13, ptr noundef @.str)
store ptr %14, ptr %3, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %22
16: ; preds = %1
%17 = getelementptr inbounds [80 x i8], ptr %11, i64 0, i64 0
%18 = load ptr, ptr %2, align 8
%19 = call i32 @sprintf(ptr noundef %17, ptr noundef @.str.1, ptr noundef %18)
%20 = getelementptr inbounds [80 x i8], ptr %11, i64 0, i64 0
%21 = call i32 @errhandler(i32 noundef 439, ptr noundef @.str.2, ptr noundef %20)
br label %22
22: ; preds = %16, %1
%23 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%24 = load ptr, ptr %3, align 8
%25 = call i32 @fread(ptr noundef %23, i32 noundef 1, i32 noundef 3, ptr noundef %24)
%26 = icmp ne i32 %25, 3
br i1 %26, label %27, label %31
27: ; preds = %22
%28 = load ptr, ptr %3, align 8
%29 = call i32 @fclose(ptr noundef %28)
%30 = call i32 @errhandler(i32 noundef 446, ptr noundef @.str.2, ptr noundef @.str.3)
br label %31
31: ; preds = %27, %22
br label %32
32: ; preds = %36, %31
%33 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%34 = load ptr, ptr %3, align 8
%35 = call i32 @fgets(ptr noundef %33, i32 noundef 1024, ptr noundef %34)
br label %36
36: ; preds = %32
%37 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%38 = load i8, ptr %37, align 16
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 35
br i1 %40, label %32, label %41, !llvm.loop !6
41: ; preds = %36
%42 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%43 = call i32 (ptr, ptr, ptr, ...) @sscanf(ptr noundef %42, ptr noundef @.str.4, ptr noundef %6, ptr noundef %7)
%44 = load i32, ptr %6, align 4
%45 = load i32, ptr %7, align 4
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %44, i32 noundef %45)
%47 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%48 = load ptr, ptr %3, align 8
%49 = call i32 @fgets(ptr noundef %47, i32 noundef 1024, ptr noundef %48)
%50 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%51 = call i32 (ptr, ptr, ptr, ...) @sscanf(ptr noundef %50, ptr noundef @.str.6, ptr noundef %5)
%52 = load i32, ptr %6, align 4
%53 = add nsw i32 %52, 1
%54 = load i32, ptr %7, align 4
%55 = add nsw i32 %54, 1
%56 = call ptr @imatrix(i32 noundef 0, i32 noundef %53, i32 noundef 0, i32 noundef %55)
store ptr %56, ptr %10, align 8
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
store i32 1, ptr %9, align 4
br label %58
58: ; preds = %104, %41
%59 = load i32, ptr %9, align 4
%60 = load i32, ptr %7, align 4
%61 = add nsw i32 %60, 1
%62 = icmp slt i32 %59, %61
br i1 %62, label %63, label %107
63: ; preds = %58
store i32 1, ptr %8, align 4
br label %64
64: ; preds = %100, %63
%65 = load i32, ptr %8, align 4
%66 = load i32, ptr %6, align 4
%67 = add nsw i32 %66, 1
%68 = icmp slt i32 %65, %67
br i1 %68, label %69, label %103
69: ; preds = %64
%70 = load ptr, ptr %3, align 8
%71 = call i32 @fscanf(ptr noundef %70, ptr noundef @.str.8, ptr noundef %12)
%72 = load i32, ptr %12, align 4
%73 = load i32, ptr @EOF, align 4
%74 = icmp eq i32 %72, %73
br i1 %74, label %75, label %79
75: ; preds = %69
%76 = load ptr, ptr %3, align 8
%77 = call i32 @fclose(ptr noundef %76)
%78 = call i32 @errhandler(i32 noundef 478, ptr noundef @.str.2, ptr noundef @.str.9)
br label %99
79: ; preds = %69
%80 = load i32, ptr %12, align 4
%81 = load ptr, ptr %10, align 8
%82 = load i32, ptr %8, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds ptr, ptr %81, i64 %83
%85 = load ptr, ptr %84, align 8
%86 = load i32, ptr %7, align 4
%87 = add nsw i32 %86, 1
%88 = load i32, ptr %9, align 4
%89 = sub nsw i32 %87, %88
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i32, ptr %85, i64 %90
store i32 %80, ptr %91, align 4
%92 = load i32, ptr %8, align 4
%93 = load i32, ptr %7, align 4
%94 = add nsw i32 %93, 1
%95 = load i32, ptr %9, align 4
%96 = sub nsw i32 %94, %95
%97 = load i32, ptr %12, align 4
%98 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %92, i32 noundef %96, i32 noundef %97)
br label %99
99: ; preds = %79, %75
br label %100
100: ; preds = %99
%101 = load i32, ptr %8, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %8, align 4
br label %64, !llvm.loop !8
103: ; preds = %64
br label %104
104: ; preds = %103
%105 = load i32, ptr %9, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr %9, align 4
br label %58, !llvm.loop !9
107: ; preds = %58
store i32 0, ptr %8, align 4
br label %108
108: ; preds = %120, %107
%109 = load i32, ptr %8, align 4
%110 = load i32, ptr %6, align 4
%111 = add nsw i32 %110, 2
%112 = icmp slt i32 %109, %111
br i1 %112, label %113, label %123
113: ; preds = %108
%114 = load ptr, ptr %10, align 8
%115 = load i32, ptr %8, align 4
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds ptr, ptr %114, i64 %116
%118 = load ptr, ptr %117, align 8
%119 = getelementptr inbounds i32, ptr %118, i64 0
store i32 0, ptr %119, align 4
br label %120
120: ; preds = %113
%121 = load i32, ptr %8, align 4
%122 = add nsw i32 %121, 1
store i32 %122, ptr %8, align 4
br label %108, !llvm.loop !10
123: ; preds = %108
store i32 0, ptr %8, align 4
br label %124
124: ; preds = %139, %123
%125 = load i32, ptr %8, align 4
%126 = load i32, ptr %6, align 4
%127 = add nsw i32 %126, 2
%128 = icmp slt i32 %125, %127
br i1 %128, label %129, label %142
129: ; preds = %124
%130 = load ptr, ptr %10, align 8
%131 = load i32, ptr %8, align 4
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds ptr, ptr %130, i64 %132
%134 = load ptr, ptr %133, align 8
%135 = load i32, ptr %7, align 4
%136 = add nsw i32 %135, 1
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds i32, ptr %134, i64 %137
store i32 0, ptr %138, align 4
br label %139
139: ; preds = %129
%140 = load i32, ptr %8, align 4
%141 = add nsw i32 %140, 1
store i32 %141, ptr %8, align 4
br label %124, !llvm.loop !11
142: ; preds = %124
store i32 0, ptr %9, align 4
br label %143
143: ; preds = %164, %142
%144 = load i32, ptr %9, align 4
%145 = load i32, ptr %7, align 4
%146 = add nsw i32 %145, 2
%147 = icmp slt i32 %144, %146
br i1 %147, label %148, label %167
148: ; preds = %143
%149 = load ptr, ptr %10, align 8
%150 = getelementptr inbounds ptr, ptr %149, i64 0
%151 = load ptr, ptr %150, align 8
%152 = load i32, ptr %9, align 4
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds i32, ptr %151, i64 %153
store i32 0, ptr %154, align 4
%155 = load ptr, ptr %10, align 8
%156 = load i32, ptr %6, align 4
%157 = add nsw i32 %156, 1
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds ptr, ptr %155, i64 %158
%160 = load ptr, ptr %159, align 8
%161 = load i32, ptr %9, align 4
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds i32, ptr %160, i64 %162
store i32 0, ptr %163, align 4
br label %164
164: ; preds = %148
%165 = load i32, ptr %9, align 4
%166 = add nsw i32 %165, 1
store i32 %166, ptr %9, align 4
br label %143, !llvm.loop !12
167: ; preds = %143
%168 = load ptr, ptr %3, align 8
%169 = call i32 @fclose(ptr noundef %168)
%170 = load ptr, ptr %10, align 8
ret ptr %170
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @errhandler(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @imatrix(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2vp7z6bd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"Can not read file %s !!!\00", align 1
@.str.2 = private unnamed_addr constant [147 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/nathanwbrei/cfdlab/refs/heads/master/worksheet1/helper.c\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"Error Wrong Magic field!\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"Image size: %d x %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.7 = private unnamed_addr constant [22 x i8] c"Image initialised...\0A\00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@EOF = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [12 x i8] c"read failed\00", align 1
@.str.10 = private unnamed_addr constant [11 x i8] c"%d,%d: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @read_pgm(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca [1024 x i8], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca [80 x i8], align 16
%12 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store ptr null, ptr %3, align 8
store ptr null, ptr %10, align 8
%13 = load ptr, ptr %2, align 8
%14 = call ptr @fopen(ptr noundef %13, ptr noundef @.str)
store ptr %14, ptr %3, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %22
16: ; preds = %1
%17 = getelementptr inbounds [80 x i8], ptr %11, i64 0, i64 0
%18 = load ptr, ptr %2, align 8
%19 = call i32 @sprintf(ptr noundef %17, ptr noundef @.str.1, ptr noundef %18)
%20 = getelementptr inbounds [80 x i8], ptr %11, i64 0, i64 0
%21 = call i32 @errhandler(i32 noundef 439, ptr noundef @.str.2, ptr noundef %20)
br label %22
22: ; preds = %16, %1
%23 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%24 = load ptr, ptr %3, align 8
%25 = call i32 @fread(ptr noundef %23, i32 noundef 1, i32 noundef 3, ptr noundef %24)
%26 = icmp ne i32 %25, 3
br i1 %26, label %27, label %31
27: ; preds = %22
%28 = load ptr, ptr %3, align 8
%29 = call i32 @fclose(ptr noundef %28)
%30 = call i32 @errhandler(i32 noundef 446, ptr noundef @.str.2, ptr noundef @.str.3)
br label %31
31: ; preds = %27, %22
%32 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
br label %33
33: ; preds = %37, %31
%34 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%35 = load ptr, ptr %3, align 8
%36 = call i32 @fgets(ptr noundef %34, i32 noundef 1024, ptr noundef %35)
br label %37
37: ; preds = %33
%38 = load i8, ptr %32, align 16
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 35
br i1 %40, label %33, label %41, !llvm.loop !6
41: ; preds = %37
%42 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%43 = call i32 (ptr, ptr, ptr, ...) @sscanf(ptr noundef %42, ptr noundef @.str.4, ptr noundef %6, ptr noundef %7)
%44 = load i32, ptr %6, align 4
%45 = load i32, ptr %7, align 4
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %44, i32 noundef %45)
%47 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%48 = load ptr, ptr %3, align 8
%49 = call i32 @fgets(ptr noundef %47, i32 noundef 1024, ptr noundef %48)
%50 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%51 = call i32 (ptr, ptr, ptr, ...) @sscanf(ptr noundef %50, ptr noundef @.str.6, ptr noundef %5)
%52 = load i32, ptr %6, align 4
%53 = add nsw i32 %52, 1
%54 = load i32, ptr %7, align 4
%55 = add nsw i32 %54, 1
%56 = call ptr @imatrix(i32 noundef 0, i32 noundef %53, i32 noundef 0, i32 noundef %55)
store ptr %56, ptr %10, align 8
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
store i32 1, ptr %9, align 4
%58 = load i32, ptr %9, align 4
%59 = load i32, ptr %7, align 4
%60 = add nsw i32 %59, 1
%61 = icmp slt i32 %58, %60
br i1 %61, label %.lr.ph2, label %113
.lr.ph2: ; preds = %41
br label %62
62: ; preds = %.lr.ph2, %106
store i32 1, ptr %8, align 4
%63 = load i32, ptr %8, align 4
%64 = load i32, ptr %6, align 4
%65 = add nsw i32 %64, 1
%66 = icmp slt i32 %63, %65
br i1 %66, label %.lr.ph, label %105
.lr.ph: ; preds = %62
br label %67
67: ; preds = %.lr.ph, %98
%68 = load ptr, ptr %3, align 8
%69 = call i32 @fscanf(ptr noundef %68, ptr noundef @.str.8, ptr noundef %12)
%70 = load i32, ptr %12, align 4
%71 = load i32, ptr @EOF, align 4
%72 = icmp eq i32 %70, %71
br i1 %72, label %73, label %77
73: ; preds = %67
%74 = load ptr, ptr %3, align 8
%75 = call i32 @fclose(ptr noundef %74)
%76 = call i32 @errhandler(i32 noundef 478, ptr noundef @.str.2, ptr noundef @.str.9)
br label %97
77: ; preds = %67
%78 = load i32, ptr %12, align 4
%79 = load ptr, ptr %10, align 8
%80 = load i32, ptr %8, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds ptr, ptr %79, i64 %81
%83 = load ptr, ptr %82, align 8
%84 = load i32, ptr %7, align 4
%85 = add nsw i32 %84, 1
%86 = load i32, ptr %9, align 4
%87 = sub nsw i32 %85, %86
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i32, ptr %83, i64 %88
store i32 %78, ptr %89, align 4
%90 = load i32, ptr %8, align 4
%91 = load i32, ptr %7, align 4
%92 = add nsw i32 %91, 1
%93 = load i32, ptr %9, align 4
%94 = sub nsw i32 %92, %93
%95 = load i32, ptr %12, align 4
%96 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %90, i32 noundef %94, i32 noundef %95)
br label %97
97: ; preds = %77, %73
br label %98
98: ; preds = %97
%99 = load i32, ptr %8, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %8, align 4
%101 = load i32, ptr %8, align 4
%102 = load i32, ptr %6, align 4
%103 = add nsw i32 %102, 1
%104 = icmp slt i32 %101, %103
br i1 %104, label %67, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %98
br label %105
105: ; preds = %._crit_edge, %62
br label %106
106: ; preds = %105
%107 = load i32, ptr %9, align 4
%108 = add nsw i32 %107, 1
store i32 %108, ptr %9, align 4
%109 = load i32, ptr %9, align 4
%110 = load i32, ptr %7, align 4
%111 = add nsw i32 %110, 1
%112 = icmp slt i32 %109, %111
br i1 %112, label %62, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %106
br label %113
113: ; preds = %._crit_edge3, %41
store i32 0, ptr %8, align 4
%114 = load i32, ptr %8, align 4
%115 = load i32, ptr %6, align 4
%116 = add nsw i32 %115, 2
%117 = icmp slt i32 %114, %116
br i1 %117, label %.lr.ph5, label %132
.lr.ph5: ; preds = %113
br label %118
118: ; preds = %.lr.ph5, %125
%119 = load ptr, ptr %10, align 8
%120 = load i32, ptr %8, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds ptr, ptr %119, i64 %121
%123 = load ptr, ptr %122, align 8
%124 = getelementptr inbounds i32, ptr %123, i64 0
store i32 0, ptr %124, align 4
br label %125
125: ; preds = %118
%126 = load i32, ptr %8, align 4
%127 = add nsw i32 %126, 1
store i32 %127, ptr %8, align 4
%128 = load i32, ptr %8, align 4
%129 = load i32, ptr %6, align 4
%130 = add nsw i32 %129, 2
%131 = icmp slt i32 %128, %130
br i1 %131, label %118, label %._crit_edge6, !llvm.loop !10
._crit_edge6: ; preds = %125
br label %132
132: ; preds = %._crit_edge6, %113
store i32 0, ptr %8, align 4
%133 = load i32, ptr %8, align 4
%134 = load i32, ptr %6, align 4
%135 = add nsw i32 %134, 2
%136 = icmp slt i32 %133, %135
br i1 %136, label %.lr.ph8, label %154
.lr.ph8: ; preds = %132
br label %137
137: ; preds = %.lr.ph8, %147
%138 = load ptr, ptr %10, align 8
%139 = load i32, ptr %8, align 4
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds ptr, ptr %138, i64 %140
%142 = load ptr, ptr %141, align 8
%143 = load i32, ptr %7, align 4
%144 = add nsw i32 %143, 1
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds i32, ptr %142, i64 %145
store i32 0, ptr %146, align 4
br label %147
147: ; preds = %137
%148 = load i32, ptr %8, align 4
%149 = add nsw i32 %148, 1
store i32 %149, ptr %8, align 4
%150 = load i32, ptr %8, align 4
%151 = load i32, ptr %6, align 4
%152 = add nsw i32 %151, 2
%153 = icmp slt i32 %150, %152
br i1 %153, label %137, label %._crit_edge9, !llvm.loop !11
._crit_edge9: ; preds = %147
br label %154
154: ; preds = %._crit_edge9, %132
store i32 0, ptr %9, align 4
%155 = load i32, ptr %9, align 4
%156 = load i32, ptr %7, align 4
%157 = add nsw i32 %156, 2
%158 = icmp slt i32 %155, %157
br i1 %158, label %.lr.ph11, label %182
.lr.ph11: ; preds = %154
br label %159
159: ; preds = %.lr.ph11, %175
%160 = load ptr, ptr %10, align 8
%161 = getelementptr inbounds ptr, ptr %160, i64 0
%162 = load ptr, ptr %161, align 8
%163 = load i32, ptr %9, align 4
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds i32, ptr %162, i64 %164
store i32 0, ptr %165, align 4
%166 = load ptr, ptr %10, align 8
%167 = load i32, ptr %6, align 4
%168 = add nsw i32 %167, 1
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds ptr, ptr %166, i64 %169
%171 = load ptr, ptr %170, align 8
%172 = load i32, ptr %9, align 4
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds i32, ptr %171, i64 %173
store i32 0, ptr %174, align 4
br label %175
175: ; preds = %159
%176 = load i32, ptr %9, align 4
%177 = add nsw i32 %176, 1
store i32 %177, ptr %9, align 4
%178 = load i32, ptr %9, align 4
%179 = load i32, ptr %7, align 4
%180 = add nsw i32 %179, 2
%181 = icmp slt i32 %178, %180
br i1 %181, label %159, label %._crit_edge12, !llvm.loop !12
._crit_edge12: ; preds = %175
br label %182
182: ; preds = %._crit_edge12, %154
%183 = load ptr, ptr %3, align 8
%184 = call i32 @fclose(ptr noundef %183)
%185 = load ptr, ptr %10, align 8
ret ptr %185
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @errhandler(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @imatrix(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmpmnkgqj1b.c'
source_filename = "/tmp/tmpmnkgqj1b.c"
target datalayout = "e-m:e-p270: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.teglo = private unnamed_addr constant [9 x i32] [i32 2, i32 4, i32 8, i32 5, i32 10, i32 9, i32 7, i32 3, i32 6], align 16
@__const.main.dati = private unnamed_addr constant [12 x i32] [i32 31, i32 28, i32 31, i32 30, i32 31, i32 30, i32 31, i32 31, i32 30, i32 31, i32 30, i32 31], align 16
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"\0A0\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"\0A1\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [12 x i8], align 1
%3 = alloca [12 x i32], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [9 x i32], align 16
%7 = alloca [12 x i32], align 16
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.teglo, i64 36, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.main.dati, i64 48, i1 false)
%11 = getelementptr inbounds [12 x i8], ptr %2, i64 0, i64 0
%12 = call i32 @scanf(ptr noundef @.str, ptr noundef %11)
store i32 0, ptr %5, align 4
br label %13
13: ; preds = %33, %0
%14 = load i32, ptr %5, align 4
%15 = icmp slt i32 %14, 10
br i1 %15, label %16, label %36
16: ; preds = %13
%17 = load i32, ptr %5, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [12 x i8], ptr %2, i64 0, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp slt i32 %21, 48
br i1 %22, label %30, label %23
23: ; preds = %16
%24 = load i32, ptr %5, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [12 x i8], ptr %2, i64 0, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp sgt i32 %28, 57
br i1 %29, label %30, label %32
30: ; preds = %23, %16
%31 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %157
32: ; preds = %23
br label %33
33: ; preds = %32
%34 = load i32, ptr %5, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %5, align 4
br label %13, !llvm.loop !6
36: ; preds = %13
store i32 0, ptr %5, align 4
br label %37
37: ; preds = %50, %36
%38 = load i32, ptr %5, align 4
%39 = icmp slt i32 %38, 10
br i1 %39, label %40, label %53
40: ; preds = %37
%41 = load i32, ptr %5, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [12 x i8], ptr %2, i64 0, i64 %42
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = sub nsw i32 %45, 48
%47 = load i32, ptr %5, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [12 x i32], ptr %3, i64 0, i64 %48
store i32 %46, ptr %49, align 4
br label %50
50: ; preds = %40
%51 = load i32, ptr %5, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %5, align 4
br label %37, !llvm.loop !8
53: ; preds = %37
store i32 0, ptr %5, align 4
br label %54
54: ; preds = %69, %53
%55 = load i32, ptr %5, align 4
%56 = icmp slt i32 %55, 9
br i1 %56, label %57, label %72
57: ; preds = %54
%58 = load i32, ptr %4, align 4
%59 = load i32, ptr %5, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [9 x i32], ptr %6, i64 0, i64 %60
%62 = load i32, ptr %61, align 4
%63 = load i32, ptr %5, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [12 x i32], ptr %3, i64 0, i64 %64
%66 = load i32, ptr %65, align 4
%67 = mul nsw i32 %62, %66
%68 = add nsw i32 %58, %67
store i32 %68, ptr %4, align 4
br label %69
69: ; preds = %57
%70 = load i32, ptr %5, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %5, align 4
br label %54, !llvm.loop !9
72: ; preds = %54
%73 = load i32, ptr %4, align 4
%74 = srem i32 %73, 11
store i32 %74, ptr %4, align 4
%75 = load i32, ptr %4, align 4
%76 = icmp slt i32 %75, 10
br i1 %76, label %77, label %85
77: ; preds = %72
%78 = getelementptr inbounds [12 x i32], ptr %3, i64 0, i64 9
%79 = load i32, ptr %78, align 4
%80 = load i32, ptr %4, align 4
%81 = icmp ne i32 %79, %80
br i1 %81, label %82, label %84
82: ; preds = %77
%83 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %157
84: ; preds = %77
br label %92
85: ; preds = %72
%86 = getelementptr inbounds [12 x i32], ptr %3, i64 0, i64 9
%87 = load i32, ptr %86, align 4
%88 = icmp ne i32 %87, 48
br i1 %88, label %89, label %91
89: ; preds = %85
%90 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %157
91: ; preds = %85
br label %92
92: ; preds = %91, %84
%93 = getelementptr inbounds [12 x i32], ptr %3, i64 0, i64 0
%94 = load i32, ptr %93, align 16
%95 = mul nsw i32 %94, 10
%96 = getelementptr inbounds [12 x i32], ptr %3, i64 0, i64 1
%97 = load i32, ptr %96, align 4
%98 = add nsw i32 %95, %97
store i32 %98, ptr %10, align 4
%99 = getelementptr inbounds [12 x i32], ptr %3, i64 0, i64 4
%100 = load i32, ptr %99, align 16
%101 = mul nsw i32 %100, 10
%102 = getelementptr inbounds [12 x i32], ptr %3, i64 0, i64 5
%103 = load i32, ptr %102, align 4
%104 = add nsw i32 %101, %103
store i32 %104, ptr %9, align 4
%105 = getelementptr inbounds [12 x i32], ptr %3, i64 0, i64 2
%106 = load i32, ptr %105, align 8
%107 = mul nsw i32 %106, 10
%108 = getelementptr inbounds [12 x i32], ptr %3, i64 0, i64 3
%109 = load i32, ptr %108, align 4
%110 = add nsw i32 %107, %109
store i32 %110, ptr %8, align 4
%111 = load i32, ptr %10, align 4
%112 = srem i32 %111, 4
%113 = icmp eq i32 %112, 0
br i1 %113, label %114, label %116
114: ; preds = %92
%115 = getelementptr inbounds [12 x i32], ptr %7, i64 0, i64 1
store i32 29, ptr %115, align 4
br label %116
116: ; preds = %114, %92
%117 = load i32, ptr %8, align 4
%118 = icmp sgt i32 %117, 20
br i1 %118, label %119, label %125
119: ; preds = %116
%120 = load i32, ptr %8, align 4
%121 = icmp slt i32 %120, 33
br i1 %121, label %122, label %125
122: ; preds = %119
%123 = load i32, ptr %8, align 4
%124 = sub nsw i32 %123, 20
store i32 %124, ptr %8, align 4
br label %125
125: ; preds = %122, %119, %116
%126 = load i32, ptr %8, align 4
%127 = icmp sgt i32 %126, 40
br i1 %127, label %128, label %134
128: ; preds = %125
%129 = load i32, ptr %8, align 4
%130 = icmp slt i32 %129, 53
br i1 %130, label %131, label %134
131: ; preds = %128
%132 = load i32, ptr %8, align 4
%133 = sub nsw i32 %132, 40
store i32 %133, ptr %8, align 4
br label %134
134: ; preds = %131, %128, %125
%135 = load i32, ptr %9, align 4
%136 = load i32, ptr %8, align 4
%137 = sub nsw i32 %136, 1
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds [12 x i32], ptr %7, i64 0, i64 %138
%140 = load i32, ptr %139, align 4
%141 = icmp sgt i32 %135, %140
br i1 %141, label %145, label %142
142: ; preds = %134
%143 = load i32, ptr %9, align 4
%144 = icmp slt i32 %143, 1
br i1 %144, label %145, label %147
145: ; preds = %142, %134
%146 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %157
147: ; preds = %142
%148 = load i32, ptr %8, align 4
%149 = icmp slt i32 %148, 1
br i1 %149, label %153, label %150
150: ; preds = %147
%151 = load i32, ptr %8, align 4
%152 = icmp sgt i32 %151, 12
br i1 %152, label %153, label %155
153: ; preds = %150, %147
%154 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %157
155: ; preds = %150
%156 = call i32 @printf(ptr noundef @.str.2)
store i32 0, ptr %1, align 4
br label %157
157: ; preds = %155, %153, %145, %89, %82, %30
%158 = load i32, ptr %1, align 4
ret i32 %158
}
; 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 @scanf(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmnkgqj1b.c"
target datalayout = "e-m:e-p270: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.teglo = private unnamed_addr constant [9 x i32] [i32 2, i32 4, i32 8, i32 5, i32 10, i32 9, i32 7, i32 3, i32 6], align 16
@__const.main.dati = private unnamed_addr constant [12 x i32] [i32 31, i32 28, i32 31, i32 30, i32 31, i32 30, i32 31, i32 31, i32 30, i32 31, i32 30, i32 31], align 16
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"\0A0\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"\0A1\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [12 x i8], align 1
%3 = alloca [12 x i32], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [9 x i32], align 16
%7 = alloca [12 x i32], align 16
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.teglo, i64 36, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.main.dati, i64 48, i1 false)
%11 = getelementptr inbounds [12 x i8], ptr %2, i64 0, i64 0
%12 = call i32 @scanf(ptr noundef @.str, ptr noundef %11)
store i32 0, ptr %5, align 4
%13 = load i32, ptr %5, align 4
%14 = icmp slt i32 %13, 10
br i1 %14, label %.lr.ph, label %37
.lr.ph: ; preds = %0
br label %15
15: ; preds = %.lr.ph, %32
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [12 x i8], ptr %2, i64 0, i64 %17
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp slt i32 %20, 48
br i1 %21, label %29, label %22
22: ; preds = %15
%23 = load i32, ptr %5, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [12 x i8], ptr %2, i64 0, i64 %24
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = icmp sgt i32 %27, 57
br i1 %28, label %29, label %31
29: ; preds = %22, %15
%30 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %160
31: ; preds = %22
br label %32
32: ; preds = %31
%33 = load i32, ptr %5, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %5, align 4
%35 = load i32, ptr %5, align 4
%36 = icmp slt i32 %35, 10
br i1 %36, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %37
37: ; preds = %._crit_edge, %0
store i32 0, ptr %5, align 4
%38 = load i32, ptr %5, align 4
%39 = icmp slt i32 %38, 10
br i1 %39, label %.lr.ph2, label %55
.lr.ph2: ; preds = %37
br label %40
40: ; preds = %.lr.ph2, %50
%41 = load i32, ptr %5, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [12 x i8], ptr %2, i64 0, i64 %42
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = sub nsw i32 %45, 48
%47 = load i32, ptr %5, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [12 x i32], ptr %3, i64 0, i64 %48
store i32 %46, ptr %49, align 4
br label %50
50: ; preds = %40
%51 = load i32, ptr %5, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %5, align 4
%53 = load i32, ptr %5, align 4
%54 = icmp slt i32 %53, 10
br i1 %54, label %40, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %50
br label %55
55: ; preds = %._crit_edge3, %37
store i32 0, ptr %5, align 4
%56 = load i32, ptr %5, align 4
%57 = icmp slt i32 %56, 9
br i1 %57, label %.lr.ph5, label %75
.lr.ph5: ; preds = %55
br label %58
58: ; preds = %.lr.ph5, %70
%59 = load i32, ptr %4, align 4
%60 = load i32, ptr %5, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [9 x i32], ptr %6, i64 0, i64 %61
%63 = load i32, ptr %62, align 4
%64 = load i32, ptr %5, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [12 x i32], ptr %3, i64 0, i64 %65
%67 = load i32, ptr %66, align 4
%68 = mul nsw i32 %63, %67
%69 = add nsw i32 %59, %68
store i32 %69, ptr %4, align 4
br label %70
70: ; preds = %58
%71 = load i32, ptr %5, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %5, align 4
%73 = load i32, ptr %5, align 4
%74 = icmp slt i32 %73, 9
br i1 %74, label %58, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %70
br label %75
75: ; preds = %._crit_edge6, %55
%76 = load i32, ptr %4, align 4
%77 = srem i32 %76, 11
store i32 %77, ptr %4, align 4
%78 = load i32, ptr %4, align 4
%79 = icmp slt i32 %78, 10
br i1 %79, label %80, label %88
80: ; preds = %75
%81 = getelementptr inbounds [12 x i32], ptr %3, i64 0, i64 9
%82 = load i32, ptr %81, align 4
%83 = load i32, ptr %4, align 4
%84 = icmp ne i32 %82, %83
br i1 %84, label %85, label %87
85: ; preds = %80
%86 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %160
87: ; preds = %80
br label %95
88: ; preds = %75
%89 = getelementptr inbounds [12 x i32], ptr %3, i64 0, i64 9
%90 = load i32, ptr %89, align 4
%91 = icmp ne i32 %90, 48
br i1 %91, label %92, label %94
92: ; preds = %88
%93 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %160
94: ; preds = %88
br label %95
95: ; preds = %94, %87
%96 = getelementptr inbounds [12 x i32], ptr %3, i64 0, i64 0
%97 = load i32, ptr %96, align 16
%98 = mul nsw i32 %97, 10
%99 = getelementptr inbounds [12 x i32], ptr %3, i64 0, i64 1
%100 = load i32, ptr %99, align 4
%101 = add nsw i32 %98, %100
store i32 %101, ptr %10, align 4
%102 = getelementptr inbounds [12 x i32], ptr %3, i64 0, i64 4
%103 = load i32, ptr %102, align 16
%104 = mul nsw i32 %103, 10
%105 = getelementptr inbounds [12 x i32], ptr %3, i64 0, i64 5
%106 = load i32, ptr %105, align 4
%107 = add nsw i32 %104, %106
store i32 %107, ptr %9, align 4
%108 = getelementptr inbounds [12 x i32], ptr %3, i64 0, i64 2
%109 = load i32, ptr %108, align 8
%110 = mul nsw i32 %109, 10
%111 = getelementptr inbounds [12 x i32], ptr %3, i64 0, i64 3
%112 = load i32, ptr %111, align 4
%113 = add nsw i32 %110, %112
store i32 %113, ptr %8, align 4
%114 = load i32, ptr %10, align 4
%115 = srem i32 %114, 4
%116 = icmp eq i32 %115, 0
br i1 %116, label %117, label %119
117: ; preds = %95
%118 = getelementptr inbounds [12 x i32], ptr %7, i64 0, i64 1
store i32 29, ptr %118, align 4
br label %119
119: ; preds = %117, %95
%120 = load i32, ptr %8, align 4
%121 = icmp sgt i32 %120, 20
br i1 %121, label %122, label %128
122: ; preds = %119
%123 = load i32, ptr %8, align 4
%124 = icmp slt i32 %123, 33
br i1 %124, label %125, label %128
125: ; preds = %122
%126 = load i32, ptr %8, align 4
%127 = sub nsw i32 %126, 20
store i32 %127, ptr %8, align 4
br label %128
128: ; preds = %125, %122, %119
%129 = load i32, ptr %8, align 4
%130 = icmp sgt i32 %129, 40
br i1 %130, label %131, label %137
131: ; preds = %128
%132 = load i32, ptr %8, align 4
%133 = icmp slt i32 %132, 53
br i1 %133, label %134, label %137
134: ; preds = %131
%135 = load i32, ptr %8, align 4
%136 = sub nsw i32 %135, 40
store i32 %136, ptr %8, align 4
br label %137
137: ; preds = %134, %131, %128
%138 = load i32, ptr %9, align 4
%139 = load i32, ptr %8, align 4
%140 = sub nsw i32 %139, 1
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds [12 x i32], ptr %7, i64 0, i64 %141
%143 = load i32, ptr %142, align 4
%144 = icmp sgt i32 %138, %143
br i1 %144, label %148, label %145
145: ; preds = %137
%146 = load i32, ptr %9, align 4
%147 = icmp slt i32 %146, 1
br i1 %147, label %148, label %150
148: ; preds = %145, %137
%149 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %160
150: ; preds = %145
%151 = load i32, ptr %8, align 4
%152 = icmp slt i32 %151, 1
br i1 %152, label %156, label %153
153: ; preds = %150
%154 = load i32, ptr %8, align 4
%155 = icmp sgt i32 %154, 12
br i1 %155, label %156, label %158
156: ; preds = %153, %150
%157 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %160
158: ; preds = %153
%159 = call i32 @printf(ptr noundef @.str.2)
store i32 0, ptr %1, align 4
br label %160
160: ; preds = %158, %156, %148, %92, %85, %29
%161 = load i32, ptr %1, align 4
ret i32 %161
}
; 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 @scanf(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpgf7wlgkr.c'
source_filename = "/tmp/tmpgf7wlgkr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @what_time() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca [64 x i8], align 16
%4 = call i32 @time(ptr noundef null)
store i32 %4, ptr %1, align 4
%5 = call ptr @localtime(ptr noundef %1)
store ptr %5, ptr %2, align 8
%6 = getelementptr inbounds [64 x i8], ptr %3, i64 0, i64 0
%7 = load ptr, ptr %2, align 8
%8 = call i32 @strftime(ptr noundef %6, i32 noundef 64, ptr noundef @.str, ptr noundef %7)
%9 = getelementptr inbounds [64 x i8], ptr %3, i64 0, i64 0
%10 = call i32 @printf(ptr noundef @.str.1, ptr noundef %9)
ret void
}
declare i32 @time(ptr noundef) #1
declare ptr @localtime(ptr noundef) #1
declare i32 @strftime(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgf7wlgkr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @what_time() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca [64 x i8], align 16
%4 = call i32 @time(ptr noundef null)
store i32 %4, ptr %1, align 4
%5 = call ptr @localtime(ptr noundef %1)
store ptr %5, ptr %2, align 8
%6 = getelementptr inbounds [64 x i8], ptr %3, i64 0, i64 0
%7 = load ptr, ptr %2, align 8
%8 = call i32 @strftime(ptr noundef %6, i32 noundef 64, ptr noundef @.str, ptr noundef %7)
%9 = getelementptr inbounds [64 x i8], ptr %3, i64 0, i64 0
%10 = call i32 @printf(ptr noundef @.str.1, ptr noundef %9)
ret void
}
declare i32 @time(ptr noundef) #1
declare ptr @localtime(ptr noundef) #1
declare i32 @strftime(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpafrimkpx.c'
source_filename = "/tmp/tmpafrimkpx.c"
target datalayout = "e-m:e-p270: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 [41 x i8] c"Please, provide a valid 1-bit BMP file: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @rejectFile(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i32 @fclose(ptr noundef %5)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str)
%9 = load ptr, ptr %4, align 8
%10 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %9)
%11 = load ptr, ptr %4, align 8
%12 = call ptr @fopen(ptr noundef %11, ptr noundef @.str.2)
store ptr %12, ptr %3, align 8
ret void
}
declare i32 @fclose(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpafrimkpx.c"
target datalayout = "e-m:e-p270: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 [41 x i8] c"Please, provide a valid 1-bit BMP file: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @rejectFile(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i32 @fclose(ptr noundef %5)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str)
%9 = load ptr, ptr %4, align 8
%10 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %9)
%11 = load ptr, ptr %4, align 8
%12 = call ptr @fopen(ptr noundef %11, ptr noundef @.str.2)
store ptr %12, ptr %3, align 8
ret void
}
declare i32 @fclose(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpixm_eebp.c'
source_filename = "/tmp/tmpixm_eebp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%d %d %d\00", align 1
@.str.1 = 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
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %4, ptr noundef %3)
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = shl i32 1, %7
%9 = and i32 %6, %8
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %16
11: ; preds = %0
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %3, align 4
%14 = shl i32 1, %13
%15 = or i32 %12, %14
store i32 %15, ptr %2, align 4
br label %21
16: ; preds = %0
%17 = load i32, ptr %2, align 4
%18 = load i32, ptr %3, align 4
%19 = shl i32 1, %18
%20 = xor i32 %17, %19
store i32 %20, ptr %2, align 4
br label %21
21: ; preds = %16, %11
%22 = load i32, ptr %2, align 4
%23 = call i32 @printf(ptr noundef @.str.1, i32 noundef %22)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpixm_eebp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%d %d %d\00", align 1
@.str.1 = 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
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %4, ptr noundef %3)
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = shl i32 1, %7
%9 = and i32 %6, %8
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %16
11: ; preds = %0
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %3, align 4
%14 = shl i32 1, %13
%15 = or i32 %12, %14
store i32 %15, ptr %2, align 4
br label %21
16: ; preds = %0
%17 = load i32, ptr %2, align 4
%18 = load i32, ptr %3, align 4
%19 = shl i32 1, %18
%20 = xor i32 %17, %19
store i32 %20, ptr %2, align 4
br label %21
21: ; preds = %16, %11
%22 = load i32, ptr %2, align 4
%23 = call i32 @printf(ptr noundef @.str.1, i32 noundef %22)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2kj41lxo.c'
source_filename = "/tmp/tmp2kj41lxo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [9 x i8] c"%d %d %d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
br label %7
7: ; preds = %11, %0
%8 = load i32, ptr %2, align 4
%9 = add nsw i32 %8, -1
store i32 %9, ptr %2, align 4
%10 = icmp ne i32 %8, 0
br i1 %10, label %11, label %24
11: ; preds = %7
%12 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %3, align 4
%15 = mul nsw i32 2, %14
%16 = load i32, ptr %4, align 4
%17 = sub nsw i32 %15, %16
%18 = mul nsw i32 %13, %17
%19 = load i32, ptr %3, align 4
%20 = load i32, ptr %4, align 4
%21 = add nsw i32 %19, %20
%22 = sdiv i32 %18, %21
%23 = call i32 @printf(ptr noundef @.str.2, i32 noundef %22)
br label %7, !llvm.loop !6
24: ; preds = %7
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2kj41lxo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [9 x i8] c"%d %d %d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
%7 = load i32, ptr %2, align 4
%8 = add nsw i32 %7, -1
store i32 %8, ptr %2, align 4
%9 = icmp ne i32 %7, 0
br i1 %9, label %.lr.ph, label %26
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %10
%11 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %3, align 4
%14 = mul nsw i32 2, %13
%15 = load i32, ptr %4, align 4
%16 = sub nsw i32 %14, %15
%17 = mul nsw i32 %12, %16
%18 = load i32, ptr %3, align 4
%19 = load i32, ptr %4, align 4
%20 = add nsw i32 %18, %19
%21 = sdiv i32 %17, %20
%22 = call i32 @printf(ptr noundef @.str.2, i32 noundef %21)
%23 = load i32, ptr %2, align 4
%24 = add nsw i32 %23, -1
store i32 %24, ptr %2, align 4
%25 = icmp ne i32 %23, 0
br i1 %25, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %26
26: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4fbm5vau.c'
source_filename = "/tmp/tmp4fbm5vau.c"
target datalayout = "e-m:e-p270: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/tmp4fbm5vau.c"
target datalayout = "e-m:e-p270: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/tmpjgkzqqzz.c'
source_filename = "/tmp/tmpjgkzqqzz.c"
target datalayout = "e-m:e-p270: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.string2 = private unnamed_addr constant [15 x i8] c"string literal\00", align 1
@.str = private unnamed_addr constant [17 x i8] c"Enter a string: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [74 x i8] c"string1 is: %s\0Astring2 is: %s\0Astring1 with spaces between characters is:\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 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 [20 x i8], align 16
%3 = alloca [15 x i8], align 1
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.string2, i64 15, i1 false)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %6)
%8 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%9 = getelementptr inbounds [15 x i8], ptr %3, i64 0, i64 0
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %8, ptr noundef %9)
store i32 0, ptr %4, align 4
br label %11
11: ; preds = %25, %0
%12 = load i32, ptr %4, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %13
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %28
18: ; preds = %11
%19 = load i32, ptr %4, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %23)
br label %25
25: ; preds = %18
%26 = load i32, ptr %4, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %4, align 4
br label %11, !llvm.loop !6
28: ; preds = %11
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @scanf(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjgkzqqzz.c"
target datalayout = "e-m:e-p270: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.string2 = private unnamed_addr constant [15 x i8] c"string literal\00", align 1
@.str = private unnamed_addr constant [17 x i8] c"Enter a string: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [74 x i8] c"string1 is: %s\0Astring2 is: %s\0Astring1 with spaces between characters is:\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 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 [20 x i8], align 16
%3 = alloca [15 x i8], align 1
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.string2, i64 15, i1 false)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %6)
%8 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%9 = getelementptr inbounds [15 x i8], ptr %3, i64 0, i64 0
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %8, ptr noundef %9)
store i32 0, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %12
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 0
br i1 %16, label %.lr.ph, label %33
.lr.ph: ; preds = %0
br label %17
17: ; preds = %.lr.ph, %24
%18 = load i32, ptr %4, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %22)
br label %24
24: ; preds = %17
%25 = load i32, ptr %4, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %4, align 4
%27 = load i32, ptr %4, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp ne i32 %31, 0
br i1 %32, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %33
33: ; preds = %._crit_edge, %0
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @scanf(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpprt16j8f.c'
source_filename = "/tmp/tmpprt16j8f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LINES = dso_local global i32 0, align 4
@COLS = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"This is another screen\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"Press any key to continue\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"@\00", align 1
@stdscr = dso_local global ptr null, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = call i32 (...) @initscr()
%11 = call i32 (...) @cbreak()
%12 = call i32 (...) @noecho()
%13 = call i32 (...) @nonl()
%14 = load i32, ptr @LINES, align 4
%15 = sdiv i32 %14, 2
%16 = sub nsw i32 %15, 3
%17 = load i32, ptr @COLS, align 4
%18 = sdiv i32 %17, 2
%19 = sub nsw i32 %18, 15
%20 = call ptr @newwin(i32 noundef 4, i32 noundef 30, i32 noundef %16, i32 noundef %19)
store ptr %20, ptr %9, align 8
%21 = load ptr, ptr %9, align 8
%22 = call i32 @box(ptr noundef %21, i8 noundef signext 124, i8 noundef signext 95)
%23 = load ptr, ptr %9, align 8
%24 = call i32 @mvwaddstr(ptr noundef %23, i32 noundef 1, i32 noundef 4, ptr noundef @.str)
%25 = load ptr, ptr %9, align 8
%26 = call i32 @mvwaddstr(ptr noundef %25, i32 noundef 2, i32 noundef 2, ptr noundef @.str.1)
store i32 1, ptr %7, align 4
br label %27
27: ; preds = %50, %2
%28 = load i32, ptr %7, align 4
%29 = icmp slt i32 %28, 3
br i1 %29, label %30, label %53
30: ; preds = %27
store i32 1, ptr %8, align 4
br label %31
31: ; preds = %46, %30
%32 = load i32, ptr %8, align 4
%33 = icmp slt i32 %32, 29
br i1 %33, label %34, label %49
34: ; preds = %31
%35 = load i32, ptr %7, align 4
%36 = load i32, ptr @LINES, align 4
%37 = sdiv i32 %36, 2
%38 = add nsw i32 %35, %37
%39 = sub nsw i32 %38, 3
%40 = load i32, ptr %8, align 4
%41 = load i32, ptr @COLS, align 4
%42 = sdiv i32 %41, 2
%43 = add nsw i32 %40, %42
%44 = sub nsw i32 %43, 15
%45 = call i32 @mvprintw(i32 noundef %39, i32 noundef %44, ptr noundef @.str.2)
br label %46
46: ; preds = %34
%47 = load i32, ptr %8, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %8, align 4
br label %31, !llvm.loop !6
49: ; preds = %31
br label %50
50: ; preds = %49
%51 = load i32, ptr %7, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %7, align 4
br label %27, !llvm.loop !8
53: ; preds = %27
br label %54
54: ; preds = %53, %70
%55 = call i32 (...) @refresh()
%56 = call i32 (...) @getch()
store i32 %56, ptr %6, align 4
%57 = load i32, ptr %6, align 4
switch i32 %57, label %69 [
i32 113, label %58
i32 9, label %61
]
58: ; preds = %54
%59 = call i32 (...) @endwin()
%60 = call i32 @exit(i32 noundef 0) #3
unreachable
61: ; preds = %54
%62 = load ptr, ptr %9, align 8
%63 = call i32 @touchwin(ptr noundef %62)
%64 = load ptr, ptr %9, align 8
%65 = call i32 @wrefresh(ptr noundef %64)
%66 = call i32 (...) @getch()
%67 = load ptr, ptr @stdscr, align 8
%68 = call i32 @touchwin(ptr noundef %67)
br label %70
69: ; preds = %54
br label %70
70: ; preds = %69, %61
br label %54
}
declare i32 @initscr(...) #1
declare i32 @cbreak(...) #1
declare i32 @noecho(...) #1
declare i32 @nonl(...) #1
declare ptr @newwin(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @box(ptr noundef, i8 noundef signext, i8 noundef signext) #1
declare i32 @mvwaddstr(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @mvprintw(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @refresh(...) #1
declare i32 @getch(...) #1
declare i32 @endwin(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @touchwin(ptr noundef) #1
declare i32 @wrefresh(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpprt16j8f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LINES = dso_local global i32 0, align 4
@COLS = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"This is another screen\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"Press any key to continue\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"@\00", align 1
@stdscr = dso_local global ptr null, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = call i32 (...) @initscr()
%11 = call i32 (...) @cbreak()
%12 = call i32 (...) @noecho()
%13 = call i32 (...) @nonl()
%14 = load i32, ptr @LINES, align 4
%15 = sdiv i32 %14, 2
%16 = sub nsw i32 %15, 3
%17 = load i32, ptr @COLS, align 4
%18 = sdiv i32 %17, 2
%19 = sub nsw i32 %18, 15
%20 = call ptr @newwin(i32 noundef 4, i32 noundef 30, i32 noundef %16, i32 noundef %19)
store ptr %20, ptr %9, align 8
%21 = load ptr, ptr %9, align 8
%22 = call i32 @box(ptr noundef %21, i8 noundef signext 124, i8 noundef signext 95)
%23 = load ptr, ptr %9, align 8
%24 = call i32 @mvwaddstr(ptr noundef %23, i32 noundef 1, i32 noundef 4, ptr noundef @.str)
%25 = load ptr, ptr %9, align 8
%26 = call i32 @mvwaddstr(ptr noundef %25, i32 noundef 2, i32 noundef 2, ptr noundef @.str.1)
store i32 1, ptr %7, align 4
%27 = load i32, ptr %7, align 4
%28 = icmp slt i32 %27, 3
br i1 %28, label %.lr.ph2, label %55
.lr.ph2: ; preds = %2
br label %29
29: ; preds = %.lr.ph2, %50
store i32 1, ptr %8, align 4
%30 = load i32, ptr %8, align 4
%31 = icmp slt i32 %30, 29
br i1 %31, label %.lr.ph, label %49
.lr.ph: ; preds = %29
br label %32
32: ; preds = %.lr.ph, %44
%33 = load i32, ptr %7, align 4
%34 = load i32, ptr @LINES, align 4
%35 = sdiv i32 %34, 2
%36 = add nsw i32 %33, %35
%37 = sub nsw i32 %36, 3
%38 = load i32, ptr %8, align 4
%39 = load i32, ptr @COLS, align 4
%40 = sdiv i32 %39, 2
%41 = add nsw i32 %38, %40
%42 = sub nsw i32 %41, 15
%43 = call i32 @mvprintw(i32 noundef %37, i32 noundef %42, ptr noundef @.str.2)
br label %44
44: ; preds = %32
%45 = load i32, ptr %8, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %8, align 4
%47 = load i32, ptr %8, align 4
%48 = icmp slt i32 %47, 29
br i1 %48, label %32, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %44
br label %49
49: ; preds = %._crit_edge, %29
br label %50
50: ; preds = %49
%51 = load i32, ptr %7, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %7, align 4
%53 = load i32, ptr %7, align 4
%54 = icmp slt i32 %53, 3
br i1 %54, label %29, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %50
br label %55
55: ; preds = %._crit_edge3, %2
br label %56
56: ; preds = %72, %55
%57 = call i32 (...) @refresh()
%58 = call i32 (...) @getch()
store i32 %58, ptr %6, align 4
%59 = load i32, ptr %6, align 4
switch i32 %59, label %71 [
i32 113, label %60
i32 9, label %63
]
60: ; preds = %56
%61 = call i32 (...) @endwin()
%62 = call i32 @exit(i32 noundef 0) #3
unreachable
63: ; preds = %56
%64 = load ptr, ptr %9, align 8
%65 = call i32 @touchwin(ptr noundef %64)
%66 = load ptr, ptr %9, align 8
%67 = call i32 @wrefresh(ptr noundef %66)
%68 = call i32 (...) @getch()
%69 = load ptr, ptr @stdscr, align 8
%70 = call i32 @touchwin(ptr noundef %69)
br label %72
71: ; preds = %56
br label %72
72: ; preds = %71, %63
br label %56
}
declare i32 @initscr(...) #1
declare i32 @cbreak(...) #1
declare i32 @noecho(...) #1
declare i32 @nonl(...) #1
declare ptr @newwin(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @box(ptr noundef, i8 noundef signext, i8 noundef signext) #1
declare i32 @mvwaddstr(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @mvprintw(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @refresh(...) #1
declare i32 @getch(...) #1
declare i32 @endwin(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @touchwin(ptr noundef) #1
declare i32 @wrefresh(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpeugniipr.c'
source_filename = "/tmp/tmpeugniipr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeugniipr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpb726qot8.c'
source_filename = "/tmp/tmpb726qot8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getit(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = getelementptr inbounds i8, ptr %8, i32 1
store ptr %9, ptr %4, align 8
store i32 0, ptr %7, align 4
%10 = load ptr, ptr %4, align 8
%11 = call ptr @stringtoken(ptr noundef %10, i8 noundef signext 58, ptr noundef %7)
%12 = load ptr, ptr %5, align 8
store ptr %11, ptr %12, align 8
%13 = load ptr, ptr %4, align 8
%14 = call ptr @stringtoken(ptr noundef %13, i8 noundef signext 58, ptr noundef %7)
%15 = load ptr, ptr %6, align 8
store ptr %14, ptr %15, align 8
ret void
}
declare ptr @stringtoken(ptr noundef, i8 noundef signext, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb726qot8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getit(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = getelementptr inbounds i8, ptr %8, i32 1
store ptr %9, ptr %4, align 8
store i32 0, ptr %7, align 4
%10 = load ptr, ptr %4, align 8
%11 = call ptr @stringtoken(ptr noundef %10, i8 noundef signext 58, ptr noundef %7)
%12 = load ptr, ptr %5, align 8
store ptr %11, ptr %12, align 8
%13 = load ptr, ptr %4, align 8
%14 = call ptr @stringtoken(ptr noundef %13, i8 noundef signext 58, ptr noundef %7)
%15 = load ptr, ptr %6, align 8
store ptr %14, ptr %15, align 8
ret void
}
declare ptr @stringtoken(ptr noundef, i8 noundef signext, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprl6yi_ei.c'
source_filename = "/tmp/tmprl6yi_ei.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @AMCMemPool_Create(i64 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3) #0 {
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store i64 %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%9 = load i64, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = load i64, ptr %7, align 8
%12 = load i64, ptr %8, align 8
%13 = call ptr @_memPool_Create_WithLock(i64 noundef %9, i64 noundef %10, i64 noundef %11, i64 noundef %12)
ret ptr %13
}
declare ptr @_memPool_Create_WithLock(i64 noundef, i64 noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprl6yi_ei.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @AMCMemPool_Create(i64 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3) #0 {
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store i64 %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%9 = load i64, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = load i64, ptr %7, align 8
%12 = load i64, ptr %8, align 8
%13 = call ptr @_memPool_Create_WithLock(i64 noundef %9, i64 noundef %10, i64 noundef %11, i64 noundef %12)
ret ptr %13
}
declare ptr @_memPool_Create_WithLock(i64 noundef, i64 noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuh4gqxvs.c'
source_filename = "/tmp/tmpuh4gqxvs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"Usage: mkheader <file>\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"r+b\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"Can not open file '%s'\0A\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [28 x i8] c"The file '%s' is too small\0A\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [24 x i8] c"Read file header error\0A\00", align 1
@.str.5 = private unnamed_addr constant [33 x i8] c"Not a valid image, header error\0A\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"Can not malloc buffer\0A\00", align 1
@.str.7 = private unnamed_addr constant [22 x i8] c"Read body file error\0A\00", align 1
@.str.8 = private unnamed_addr constant [25 x i8] c"Write file header error\0A\00", align 1
@.str.9 = private unnamed_addr constant [55 x i8] c"the checksum is 0x%08x for %d bytes [0x%08x ~ 0x%08x]\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 [16 x i8], align 16
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%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 %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %194
16: ; preds = %2
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = call ptr @fopen(ptr noundef %19, ptr noundef @.str.1)
store ptr %20, ptr %6, align 8
%21 = load ptr, ptr %6, align 8
%22 = icmp eq ptr %21, null
br i1 %22, label %23, label %28
23: ; preds = %16
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 1
%26 = load ptr, ptr %25, align 8
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %26)
store i32 -1, ptr %3, align 4
br label %194
28: ; preds = %16
%29 = load ptr, ptr %6, align 8
%30 = load i32, ptr @SEEK_END, align 4
%31 = call i32 @fseek(ptr noundef %29, i64 noundef 0, i32 noundef %30)
%32 = load ptr, ptr %6, align 8
%33 = call i32 @ftell(ptr noundef %32)
%34 = icmp sle i32 %33, 16
br i1 %34, label %35, label %42
35: ; preds = %28
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds ptr, ptr %36, i64 1
%38 = load ptr, ptr %37, align 8
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %38)
%40 = load ptr, ptr %6, align 8
%41 = call i32 @fclose(ptr noundef %40)
store i32 -1, ptr %3, align 4
br label %194
42: ; preds = %28
%43 = load ptr, ptr %6, align 8
%44 = load i32, ptr @SEEK_SET, align 4
%45 = call i32 @fseek(ptr noundef %43, i64 noundef 0, i32 noundef %44)
%46 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%47 = call i32 @memset(ptr noundef %46, i32 noundef 0, i32 noundef 16)
%48 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%49 = load ptr, ptr %6, align 8
%50 = call i32 @fread(ptr noundef %48, i32 noundef 1, i32 noundef 16, ptr noundef %49)
%51 = zext i32 %50 to i64
%52 = icmp ne i64 %51, 16
br i1 %52, label %53, label %60
53: ; preds = %42
%54 = load ptr, ptr %5, align 8
%55 = getelementptr inbounds ptr, ptr %54, i64 1
%56 = load ptr, ptr %55, align 8
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %56)
%58 = load ptr, ptr %6, align 8
%59 = call i32 @fclose(ptr noundef %58)
store i32 -1, ptr %3, align 4
br label %194
60: ; preds = %42
%61 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 3
%62 = load i8, ptr %61, align 1
%63 = sext i8 %62 to i32
%64 = shl i32 %63, 24
%65 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 2
%66 = load i8, ptr %65, align 2
%67 = sext i8 %66 to i32
%68 = shl i32 %67, 16
%69 = or i32 %64, %68
%70 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 1
%71 = load i8, ptr %70, align 1
%72 = sext i8 %71 to i32
%73 = shl i32 %72, 8
%74 = or i32 %69, %73
%75 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%76 = load i8, ptr %75, align 16
%77 = sext i8 %76 to i32
%78 = shl i32 %77, 0
%79 = or i32 %74, %78
store i32 %79, ptr %9, align 4
%80 = load i32, ptr %9, align 4
%81 = icmp ule i32 %80, 0
br i1 %81, label %85, label %82
82: ; preds = %60
%83 = load i32, ptr %9, align 4
%84 = icmp ugt i32 %83, 16384
br i1 %84, label %85, label %92
85: ; preds = %82, %60
%86 = load ptr, ptr %5, align 8
%87 = getelementptr inbounds ptr, ptr %86, i64 1
%88 = load ptr, ptr %87, align 8
%89 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %88)
%90 = load ptr, ptr %6, align 8
%91 = call i32 @fclose(ptr noundef %90)
store i32 -1, ptr %3, align 4
br label %194
92: ; preds = %82
%93 = load i32, ptr %9, align 4
%94 = call i64 @malloc(i32 noundef %93)
%95 = inttoptr i64 %94 to ptr
store ptr %95, ptr %8, align 8
%96 = load ptr, ptr %8, align 8
%97 = icmp eq ptr %96, null
br i1 %97, label %98, label %105
98: ; preds = %92
%99 = load ptr, ptr %5, align 8
%100 = getelementptr inbounds ptr, ptr %99, i64 1
%101 = load ptr, ptr %100, align 8
%102 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %101)
%103 = load ptr, ptr %6, align 8
%104 = call i32 @fclose(ptr noundef %103)
store i32 -1, ptr %3, align 4
br label %194
105: ; preds = %92
%106 = load ptr, ptr %8, align 8
%107 = load i32, ptr %9, align 4
%108 = call i32 @memset(ptr noundef %106, i32 noundef 0, i32 noundef %107)
%109 = load ptr, ptr %6, align 8
%110 = load i32, ptr @SEEK_SET, align 4
%111 = call i32 @fseek(ptr noundef %109, i64 noundef 0, i32 noundef %110)
%112 = load ptr, ptr %8, align 8
%113 = load i32, ptr %9, align 4
%114 = load ptr, ptr %6, align 8
%115 = call i32 @fread(ptr noundef %112, i32 noundef 1, i32 noundef %113, ptr noundef %114)
%116 = load i32, ptr %9, align 4
%117 = icmp ne i32 %115, %116
br i1 %117, label %118, label %127
118: ; preds = %105
%119 = load ptr, ptr %5, align 8
%120 = getelementptr inbounds ptr, ptr %119, i64 1
%121 = load ptr, ptr %120, align 8
%122 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %121)
%123 = load ptr, ptr %8, align 8
%124 = call i32 @free(ptr noundef %123)
%125 = load ptr, ptr %6, align 8
%126 = call i32 @fclose(ptr noundef %125)
store i32 -1, ptr %3, align 4
br label %194
127: ; preds = %105
store i32 16, ptr %11, align 4
store i32 0, ptr %10, align 4
br label %128
128: ; preds = %142, %127
%129 = load i32, ptr %11, align 4
%130 = load i32, ptr %9, align 4
%131 = icmp ult i32 %129, %130
br i1 %131, label %132, label %145
132: ; preds = %128
%133 = load ptr, ptr %8, align 8
%134 = load i32, ptr %11, align 4
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds i8, ptr %133, i64 %135
%137 = load i8, ptr %136, align 1
%138 = sext i8 %137 to i32
%139 = and i32 %138, 255
%140 = load i32, ptr %10, align 4
%141 = add i32 %140, %139
store i32 %141, ptr %10, align 4
br label %142
142: ; preds = %132
%143 = load i32, ptr %11, align 4
%144 = add nsw i32 %143, 1
store i32 %144, ptr %11, align 4
br label %128, !llvm.loop !6
145: ; preds = %128
%146 = load i32, ptr %10, align 4
%147 = lshr i32 %146, 24
%148 = and i32 %147, 255
%149 = trunc i32 %148 to i8
%150 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 11
store i8 %149, ptr %150, align 1
%151 = load i32, ptr %10, align 4
%152 = lshr i32 %151, 16
%153 = and i32 %152, 255
%154 = trunc i32 %153 to i8
%155 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 10
store i8 %154, ptr %155, align 2
%156 = load i32, ptr %10, align 4
%157 = lshr i32 %156, 8
%158 = and i32 %157, 255
%159 = trunc i32 %158 to i8
%160 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 9
store i8 %159, ptr %160, align 1
%161 = load i32, ptr %10, align 4
%162 = lshr i32 %161, 0
%163 = and i32 %162, 255
%164 = trunc i32 %163 to i8
%165 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 8
store i8 %164, ptr %165, align 8
%166 = load ptr, ptr %6, align 8
%167 = load i32, ptr @SEEK_SET, align 4
%168 = call i32 @fseek(ptr noundef %166, i64 noundef 0, i32 noundef %167)
%169 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%170 = load ptr, ptr %6, align 8
%171 = call i32 @fwrite(ptr noundef %169, i32 noundef 1, i32 noundef 16, ptr noundef %170)
%172 = sext i32 %171 to i64
%173 = icmp ne i64 %172, 16
br i1 %173, label %174, label %183
174: ; preds = %145
%175 = load ptr, ptr %5, align 8
%176 = getelementptr inbounds ptr, ptr %175, i64 1
%177 = load ptr, ptr %176, align 8
%178 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %177)
%179 = load ptr, ptr %8, align 8
%180 = call i32 @free(ptr noundef %179)
%181 = load ptr, ptr %6, align 8
%182 = call i32 @fclose(ptr noundef %181)
store i32 -1, ptr %3, align 4
br label %194
183: ; preds = %145
%184 = load ptr, ptr %8, align 8
%185 = call i32 @free(ptr noundef %184)
%186 = load ptr, ptr %6, align 8
%187 = call i32 @fclose(ptr noundef %186)
%188 = load i32, ptr %10, align 4
%189 = load i32, ptr %9, align 4
%190 = zext i32 %189 to i64
%191 = sub i64 %190, 16
%192 = load i32, ptr %9, align 4
%193 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %188, i64 noundef %191, i64 noundef 16, i32 noundef %192)
store i32 0, ptr %3, align 4
br label %194
194: ; preds = %183, %174, %118, %98, %85, %53, %35, %23, %14
%195 = load i32, ptr %3, align 4
ret i32 %195
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @ftell(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuh4gqxvs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"Usage: mkheader <file>\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"r+b\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"Can not open file '%s'\0A\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [28 x i8] c"The file '%s' is too small\0A\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [24 x i8] c"Read file header error\0A\00", align 1
@.str.5 = private unnamed_addr constant [33 x i8] c"Not a valid image, header error\0A\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"Can not malloc buffer\0A\00", align 1
@.str.7 = private unnamed_addr constant [22 x i8] c"Read body file error\0A\00", align 1
@.str.8 = private unnamed_addr constant [25 x i8] c"Write file header error\0A\00", align 1
@.str.9 = private unnamed_addr constant [55 x i8] c"the checksum is 0x%08x for %d bytes [0x%08x ~ 0x%08x]\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 [16 x i8], align 16
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%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 %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %196
16: ; preds = %2
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = call ptr @fopen(ptr noundef %19, ptr noundef @.str.1)
store ptr %20, ptr %6, align 8
%21 = load ptr, ptr %6, align 8
%22 = icmp eq ptr %21, null
br i1 %22, label %23, label %28
23: ; preds = %16
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 1
%26 = load ptr, ptr %25, align 8
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %26)
store i32 -1, ptr %3, align 4
br label %196
28: ; preds = %16
%29 = load ptr, ptr %6, align 8
%30 = load i32, ptr @SEEK_END, align 4
%31 = call i32 @fseek(ptr noundef %29, i64 noundef 0, i32 noundef %30)
%32 = load ptr, ptr %6, align 8
%33 = call i32 @ftell(ptr noundef %32)
%34 = icmp sle i32 %33, 16
br i1 %34, label %35, label %42
35: ; preds = %28
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds ptr, ptr %36, i64 1
%38 = load ptr, ptr %37, align 8
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %38)
%40 = load ptr, ptr %6, align 8
%41 = call i32 @fclose(ptr noundef %40)
store i32 -1, ptr %3, align 4
br label %196
42: ; preds = %28
%43 = load ptr, ptr %6, align 8
%44 = load i32, ptr @SEEK_SET, align 4
%45 = call i32 @fseek(ptr noundef %43, i64 noundef 0, i32 noundef %44)
%46 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%47 = call i32 @memset(ptr noundef %46, i32 noundef 0, i32 noundef 16)
%48 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%49 = load ptr, ptr %6, align 8
%50 = call i32 @fread(ptr noundef %48, i32 noundef 1, i32 noundef 16, ptr noundef %49)
%51 = zext i32 %50 to i64
%52 = icmp ne i64 %51, 16
br i1 %52, label %53, label %60
53: ; preds = %42
%54 = load ptr, ptr %5, align 8
%55 = getelementptr inbounds ptr, ptr %54, i64 1
%56 = load ptr, ptr %55, align 8
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %56)
%58 = load ptr, ptr %6, align 8
%59 = call i32 @fclose(ptr noundef %58)
store i32 -1, ptr %3, align 4
br label %196
60: ; preds = %42
%61 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 3
%62 = load i8, ptr %61, align 1
%63 = sext i8 %62 to i32
%64 = shl i32 %63, 24
%65 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 2
%66 = load i8, ptr %65, align 2
%67 = sext i8 %66 to i32
%68 = shl i32 %67, 16
%69 = or i32 %64, %68
%70 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 1
%71 = load i8, ptr %70, align 1
%72 = sext i8 %71 to i32
%73 = shl i32 %72, 8
%74 = or i32 %69, %73
%75 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%76 = load i8, ptr %75, align 16
%77 = sext i8 %76 to i32
%78 = shl i32 %77, 0
%79 = or i32 %74, %78
store i32 %79, ptr %9, align 4
%80 = load i32, ptr %9, align 4
%81 = icmp ule i32 %80, 0
br i1 %81, label %85, label %82
82: ; preds = %60
%83 = load i32, ptr %9, align 4
%84 = icmp ugt i32 %83, 16384
br i1 %84, label %85, label %92
85: ; preds = %82, %60
%86 = load ptr, ptr %5, align 8
%87 = getelementptr inbounds ptr, ptr %86, i64 1
%88 = load ptr, ptr %87, align 8
%89 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %88)
%90 = load ptr, ptr %6, align 8
%91 = call i32 @fclose(ptr noundef %90)
store i32 -1, ptr %3, align 4
br label %196
92: ; preds = %82
%93 = load i32, ptr %9, align 4
%94 = call i64 @malloc(i32 noundef %93)
%95 = inttoptr i64 %94 to ptr
store ptr %95, ptr %8, align 8
%96 = load ptr, ptr %8, align 8
%97 = icmp eq ptr %96, null
br i1 %97, label %98, label %105
98: ; preds = %92
%99 = load ptr, ptr %5, align 8
%100 = getelementptr inbounds ptr, ptr %99, i64 1
%101 = load ptr, ptr %100, align 8
%102 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %101)
%103 = load ptr, ptr %6, align 8
%104 = call i32 @fclose(ptr noundef %103)
store i32 -1, ptr %3, align 4
br label %196
105: ; preds = %92
%106 = load ptr, ptr %8, align 8
%107 = load i32, ptr %9, align 4
%108 = call i32 @memset(ptr noundef %106, i32 noundef 0, i32 noundef %107)
%109 = load ptr, ptr %6, align 8
%110 = load i32, ptr @SEEK_SET, align 4
%111 = call i32 @fseek(ptr noundef %109, i64 noundef 0, i32 noundef %110)
%112 = load ptr, ptr %8, align 8
%113 = load i32, ptr %9, align 4
%114 = load ptr, ptr %6, align 8
%115 = call i32 @fread(ptr noundef %112, i32 noundef 1, i32 noundef %113, ptr noundef %114)
%116 = load i32, ptr %9, align 4
%117 = icmp ne i32 %115, %116
br i1 %117, label %118, label %127
118: ; preds = %105
%119 = load ptr, ptr %5, align 8
%120 = getelementptr inbounds ptr, ptr %119, i64 1
%121 = load ptr, ptr %120, align 8
%122 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %121)
%123 = load ptr, ptr %8, align 8
%124 = call i32 @free(ptr noundef %123)
%125 = load ptr, ptr %6, align 8
%126 = call i32 @fclose(ptr noundef %125)
store i32 -1, ptr %3, align 4
br label %196
127: ; preds = %105
store i32 16, ptr %11, align 4
store i32 0, ptr %10, align 4
%128 = load i32, ptr %11, align 4
%129 = load i32, ptr %9, align 4
%130 = icmp ult i32 %128, %129
br i1 %130, label %.lr.ph, label %147
.lr.ph: ; preds = %127
br label %131
131: ; preds = %.lr.ph, %141
%132 = load ptr, ptr %8, align 8
%133 = load i32, ptr %11, align 4
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds i8, ptr %132, i64 %134
%136 = load i8, ptr %135, align 1
%137 = sext i8 %136 to i32
%138 = and i32 %137, 255
%139 = load i32, ptr %10, align 4
%140 = add i32 %139, %138
store i32 %140, ptr %10, align 4
br label %141
141: ; preds = %131
%142 = load i32, ptr %11, align 4
%143 = add nsw i32 %142, 1
store i32 %143, ptr %11, align 4
%144 = load i32, ptr %11, align 4
%145 = load i32, ptr %9, align 4
%146 = icmp ult i32 %144, %145
br i1 %146, label %131, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %141
br label %147
147: ; preds = %._crit_edge, %127
%148 = load i32, ptr %10, align 4
%149 = lshr i32 %148, 24
%150 = and i32 %149, 255
%151 = trunc i32 %150 to i8
%152 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 11
store i8 %151, ptr %152, align 1
%153 = load i32, ptr %10, align 4
%154 = lshr i32 %153, 16
%155 = and i32 %154, 255
%156 = trunc i32 %155 to i8
%157 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 10
store i8 %156, ptr %157, align 2
%158 = load i32, ptr %10, align 4
%159 = lshr i32 %158, 8
%160 = and i32 %159, 255
%161 = trunc i32 %160 to i8
%162 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 9
store i8 %161, ptr %162, align 1
%163 = load i32, ptr %10, align 4
%164 = lshr i32 %163, 0
%165 = and i32 %164, 255
%166 = trunc i32 %165 to i8
%167 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 8
store i8 %166, ptr %167, align 8
%168 = load ptr, ptr %6, align 8
%169 = load i32, ptr @SEEK_SET, align 4
%170 = call i32 @fseek(ptr noundef %168, i64 noundef 0, i32 noundef %169)
%171 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%172 = load ptr, ptr %6, align 8
%173 = call i32 @fwrite(ptr noundef %171, i32 noundef 1, i32 noundef 16, ptr noundef %172)
%174 = sext i32 %173 to i64
%175 = icmp ne i64 %174, 16
br i1 %175, label %176, label %185
176: ; preds = %147
%177 = load ptr, ptr %5, align 8
%178 = getelementptr inbounds ptr, ptr %177, i64 1
%179 = load ptr, ptr %178, align 8
%180 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %179)
%181 = load ptr, ptr %8, align 8
%182 = call i32 @free(ptr noundef %181)
%183 = load ptr, ptr %6, align 8
%184 = call i32 @fclose(ptr noundef %183)
store i32 -1, ptr %3, align 4
br label %196
185: ; preds = %147
%186 = load ptr, ptr %8, align 8
%187 = call i32 @free(ptr noundef %186)
%188 = load ptr, ptr %6, align 8
%189 = call i32 @fclose(ptr noundef %188)
%190 = load i32, ptr %10, align 4
%191 = load i32, ptr %9, align 4
%192 = zext i32 %191 to i64
%193 = sub i64 %192, 16
%194 = load i32, ptr %9, align 4
%195 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %190, i64 noundef %193, i64 noundef 16, i32 noundef %194)
store i32 0, ptr %3, align 4
br label %196
196: ; preds = %185, %176, %118, %98, %85, %53, %35, %23, %14
%197 = load i32, ptr %3, align 4
ret i32 %197
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @ftell(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpjp3tt5r8.c'
source_filename = "/tmp/tmpjp3tt5r8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%i\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
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 %7, align 4
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %8)
store i32 0, ptr %6, align 4
br label %10
10: ; preds = %23, %2
%11 = load i32, ptr %8, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %26
13: ; preds = %10
%14 = load i32, ptr %8, align 4
%15 = and i32 %14, 1
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %13
%18 = load i32, ptr %7, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %7, align 4
br label %20
20: ; preds = %17, %13
%21 = load i32, ptr %8, align 4
%22 = ashr i32 %21, 1
store i32 %22, ptr %8, align 4
br label %23
23: ; preds = %20
%24 = load i32, ptr %6, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %6, align 4
br label %10, !llvm.loop !6
26: ; preds = %10
%27 = load i32, ptr %7, align 4
%28 = call i32 @printf(ptr noundef @.str, i32 noundef %27)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjp3tt5r8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%i\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
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 %7, align 4
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %8)
store i32 0, ptr %6, align 4
%10 = load i32, ptr %8, align 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %.lr.ph, label %27
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %22
%13 = load i32, ptr %8, align 4
%14 = and i32 %13, 1
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %12
%17 = load i32, ptr %7, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %7, align 4
br label %19
19: ; preds = %16, %12
%20 = load i32, ptr %8, align 4
%21 = ashr i32 %20, 1
store i32 %21, ptr %8, align 4
br label %22
22: ; preds = %19
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %8, align 4
%26 = icmp ne i32 %25, 0
br i1 %26, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %27
27: ; preds = %._crit_edge, %2
%28 = load i32, ptr %7, align 4
%29 = call i32 @printf(ptr noundef @.str, i32 noundef %28)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpyve9ip7z.c'
source_filename = "/tmp/tmpyve9ip7z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cleanup_custom_data_client_socket_params(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
store ptr %6, ptr %5, align 8
%7 = call i32 @free_client_socket_params(ptr noundef %5)
%8 = load i64, ptr %4, align 8
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %2
br label %11
11: ; preds = %10, %2
ret void
}
declare i32 @free_client_socket_params(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyve9ip7z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cleanup_custom_data_client_socket_params(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
store ptr %6, ptr %5, align 8
%7 = call i32 @free_client_socket_params(ptr noundef %5)
%8 = load i64, ptr %4, align 8
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %2
br label %11
11: ; preds = %10, %2
ret void
}
declare i32 @free_client_socket_params(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpujwxsvkx.c'
source_filename = "/tmp/tmpujwxsvkx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global double 0.000000e+00, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpujwxsvkx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global double 0.000000e+00, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpywlpopua.c'
source_filename = "/tmp/tmpywlpopua.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @crypt_decrypt_aes192cbc(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store i64 %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%13 = load ptr, ptr %7, align 8
%14 = load ptr, ptr %8, align 8
%15 = load ptr, ptr %9, align 8
%16 = load i64, ptr %10, align 8
%17 = load ptr, ptr %11, align 8
%18 = load ptr, ptr %12, align 8
%19 = call ptr @aes192cbc_decrypt(ptr noundef %13, ptr noundef %14, ptr noundef %15, i64 noundef %16, ptr noundef %17, ptr noundef %18)
ret ptr %19
}
declare ptr @aes192cbc_decrypt(ptr noundef, ptr noundef, ptr noundef, i64 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/tmpywlpopua.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @crypt_decrypt_aes192cbc(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store i64 %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%13 = load ptr, ptr %7, align 8
%14 = load ptr, ptr %8, align 8
%15 = load ptr, ptr %9, align 8
%16 = load i64, ptr %10, align 8
%17 = load ptr, ptr %11, align 8
%18 = load ptr, ptr %12, align 8
%19 = call ptr @aes192cbc_decrypt(ptr noundef %13, ptr noundef %14, ptr noundef %15, i64 noundef %16, ptr noundef %17, ptr noundef %18)
ret ptr %19
}
declare ptr @aes192cbc_decrypt(ptr noundef, ptr noundef, ptr noundef, i64 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/tmpx7aoyfu1.c'
source_filename = "/tmp/tmpx7aoyfu1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @unix_time_now() #0 {
%1 = alloca i32, align 4
%2 = call i32 @time(ptr noundef %1)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
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/tmpx7aoyfu1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @unix_time_now() #0 {
%1 = alloca i32, align 4
%2 = call i32 @time(ptr noundef %1)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
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/tmptqtcflbj.c'
source_filename = "/tmp/tmptqtcflbj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @aml_array_int_4d_variable_2nd_new(i32 noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%16 = load i32, ptr %6, align 4
%17 = sext i32 %16 to i64
%18 = mul i64 %17, 8
%19 = trunc i64 %18 to i32
%20 = call i64 @malloc(i32 noundef %19)
%21 = inttoptr i64 %20 to ptr
store ptr %21, ptr %15, align 8
store i32 0, ptr %11, align 4
br label %22
22: ; preds = %121, %5
%23 = load i32, ptr %11, align 4
%24 = load i32, ptr %6, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %124
26: ; preds = %22
%27 = load ptr, ptr %7, align 8
%28 = load i32, ptr %11, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i32, ptr %27, i64 %29
%31 = load i32, ptr %30, align 4
%32 = sext i32 %31 to i64
%33 = mul i64 %32, 8
%34 = trunc i64 %33 to i32
%35 = call i64 @malloc(i32 noundef %34)
%36 = inttoptr i64 %35 to ptr
%37 = load ptr, ptr %15, align 8
%38 = load i32, ptr %11, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds ptr, ptr %37, i64 %39
store ptr %36, ptr %40, align 8
store i32 0, ptr %12, align 4
br label %41
41: ; preds = %117, %26
%42 = load i32, ptr %12, align 4
%43 = load ptr, ptr %7, align 8
%44 = load i32, ptr %11, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i32, ptr %43, i64 %45
%47 = load i32, ptr %46, align 4
%48 = icmp slt i32 %42, %47
br i1 %48, label %49, label %120
49: ; preds = %41
%50 = load i32, ptr %8, align 4
%51 = sext i32 %50 to i64
%52 = mul i64 %51, 8
%53 = trunc i64 %52 to i32
%54 = call i64 @malloc(i32 noundef %53)
%55 = inttoptr i64 %54 to ptr
%56 = load ptr, ptr %15, align 8
%57 = load i32, ptr %11, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds ptr, ptr %56, i64 %58
%60 = load ptr, ptr %59, align 8
%61 = load i32, ptr %12, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds ptr, ptr %60, i64 %62
store ptr %55, ptr %63, align 8
store i32 0, ptr %13, align 4
br label %64
64: ; preds = %113, %49
%65 = load i32, ptr %13, align 4
%66 = load i32, ptr %8, align 4
%67 = icmp slt i32 %65, %66
br i1 %67, label %68, label %116
68: ; preds = %64
%69 = load i32, ptr %9, align 4
%70 = sext i32 %69 to i64
%71 = mul i64 %70, 4
%72 = trunc i64 %71 to i32
%73 = call i64 @malloc(i32 noundef %72)
%74 = inttoptr i64 %73 to ptr
%75 = load ptr, ptr %15, align 8
%76 = load i32, ptr %11, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds ptr, ptr %75, i64 %77
%79 = load ptr, ptr %78, align 8
%80 = load i32, ptr %12, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds ptr, ptr %79, i64 %81
%83 = load ptr, ptr %82, align 8
%84 = load i32, ptr %13, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds ptr, ptr %83, i64 %85
store ptr %74, ptr %86, align 8
store i32 0, ptr %14, align 4
br label %87
87: ; preds = %109, %68
%88 = load i32, ptr %14, align 4
%89 = load i32, ptr %9, align 4
%90 = icmp slt i32 %88, %89
br i1 %90, label %91, label %112
91: ; preds = %87
%92 = load i32, ptr %10, align 4
%93 = load ptr, ptr %15, align 8
%94 = load i32, ptr %11, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds ptr, ptr %93, i64 %95
%97 = load ptr, ptr %96, align 8
%98 = load i32, ptr %12, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds ptr, ptr %97, i64 %99
%101 = load ptr, ptr %100, align 8
%102 = load i32, ptr %13, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds ptr, ptr %101, i64 %103
%105 = load ptr, ptr %104, align 8
%106 = load i32, ptr %14, align 4
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds i32, ptr %105, i64 %107
store i32 %92, ptr %108, align 4
br label %109
109: ; preds = %91
%110 = load i32, ptr %14, align 4
%111 = add nsw i32 %110, 1
store i32 %111, ptr %14, align 4
br label %87, !llvm.loop !6
112: ; preds = %87
br label %113
113: ; preds = %112
%114 = load i32, ptr %13, align 4
%115 = add nsw i32 %114, 1
store i32 %115, ptr %13, align 4
br label %64, !llvm.loop !8
116: ; preds = %64
br label %117
117: ; preds = %116
%118 = load i32, ptr %12, align 4
%119 = add nsw i32 %118, 1
store i32 %119, ptr %12, align 4
br label %41, !llvm.loop !9
120: ; preds = %41
br label %121
121: ; preds = %120
%122 = load i32, ptr %11, align 4
%123 = add nsw i32 %122, 1
store i32 %123, ptr %11, align 4
br label %22, !llvm.loop !10
124: ; preds = %22
%125 = load ptr, ptr %15, align 8
ret ptr %125
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptqtcflbj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @aml_array_int_4d_variable_2nd_new(i32 noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%16 = load i32, ptr %6, align 4
%17 = sext i32 %16 to i64
%18 = mul i64 %17, 8
%19 = trunc i64 %18 to i32
%20 = call i64 @malloc(i32 noundef %19)
%21 = inttoptr i64 %20 to ptr
store ptr %21, ptr %15, align 8
store i32 0, ptr %11, align 4
%22 = load i32, ptr %11, align 4
%23 = load i32, ptr %6, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %.lr.ph8, label %136
.lr.ph8: ; preds = %5
br label %25
25: ; preds = %.lr.ph8, %130
%26 = load ptr, ptr %7, align 8
%27 = load i32, ptr %11, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i32, ptr %26, i64 %28
%30 = load i32, ptr %29, align 4
%31 = sext i32 %30 to i64
%32 = mul i64 %31, 8
%33 = trunc i64 %32 to i32
%34 = call i64 @malloc(i32 noundef %33)
%35 = inttoptr i64 %34 to ptr
%36 = load ptr, ptr %15, align 8
%37 = load i32, ptr %11, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds ptr, ptr %36, i64 %38
store ptr %35, ptr %39, align 8
store i32 0, ptr %12, align 4
%40 = load i32, ptr %12, align 4
%41 = load ptr, ptr %7, align 8
%42 = load i32, ptr %11, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
%45 = load i32, ptr %44, align 4
%46 = icmp slt i32 %40, %45
br i1 %46, label %.lr.ph5, label %129
.lr.ph5: ; preds = %25
br label %47
47: ; preds = %.lr.ph5, %119
%48 = load i32, ptr %8, align 4
%49 = sext i32 %48 to i64
%50 = mul i64 %49, 8
%51 = trunc i64 %50 to i32
%52 = call i64 @malloc(i32 noundef %51)
%53 = inttoptr i64 %52 to ptr
%54 = load ptr, ptr %15, align 8
%55 = load i32, ptr %11, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds ptr, ptr %54, i64 %56
%58 = load ptr, ptr %57, align 8
%59 = load i32, ptr %12, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds ptr, ptr %58, i64 %60
store ptr %53, ptr %61, align 8
store i32 0, ptr %13, align 4
%62 = load i32, ptr %13, align 4
%63 = load i32, ptr %8, align 4
%64 = icmp slt i32 %62, %63
br i1 %64, label %.lr.ph2, label %118
.lr.ph2: ; preds = %47
br label %65
65: ; preds = %.lr.ph2, %112
%66 = load i32, ptr %9, align 4
%67 = sext i32 %66 to i64
%68 = mul i64 %67, 4
%69 = trunc i64 %68 to i32
%70 = call i64 @malloc(i32 noundef %69)
%71 = inttoptr i64 %70 to ptr
%72 = load ptr, ptr %15, align 8
%73 = load i32, ptr %11, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds ptr, ptr %72, i64 %74
%76 = load ptr, ptr %75, align 8
%77 = load i32, ptr %12, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds ptr, ptr %76, i64 %78
%80 = load ptr, ptr %79, align 8
%81 = load i32, ptr %13, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds ptr, ptr %80, i64 %82
store ptr %71, ptr %83, align 8
store i32 0, ptr %14, align 4
%84 = load i32, ptr %14, align 4
%85 = load i32, ptr %9, align 4
%86 = icmp slt i32 %84, %85
br i1 %86, label %.lr.ph, label %111
.lr.ph: ; preds = %65
br label %87
87: ; preds = %.lr.ph, %105
%88 = load i32, ptr %10, align 4
%89 = load ptr, ptr %15, align 8
%90 = load i32, ptr %11, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds ptr, ptr %89, i64 %91
%93 = load ptr, ptr %92, align 8
%94 = load i32, ptr %12, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds ptr, ptr %93, i64 %95
%97 = load ptr, ptr %96, align 8
%98 = load i32, ptr %13, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds ptr, ptr %97, i64 %99
%101 = load ptr, ptr %100, align 8
%102 = load i32, ptr %14, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i32, ptr %101, i64 %103
store i32 %88, ptr %104, align 4
br label %105
105: ; preds = %87
%106 = load i32, ptr %14, align 4
%107 = add nsw i32 %106, 1
store i32 %107, ptr %14, align 4
%108 = load i32, ptr %14, align 4
%109 = load i32, ptr %9, align 4
%110 = icmp slt i32 %108, %109
br i1 %110, label %87, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %105
br label %111
111: ; preds = %._crit_edge, %65
br label %112
112: ; preds = %111
%113 = load i32, ptr %13, align 4
%114 = add nsw i32 %113, 1
store i32 %114, ptr %13, align 4
%115 = load i32, ptr %13, align 4
%116 = load i32, ptr %8, align 4
%117 = icmp slt i32 %115, %116
br i1 %117, label %65, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %112
br label %118
118: ; preds = %._crit_edge3, %47
br label %119
119: ; preds = %118
%120 = load i32, ptr %12, align 4
%121 = add nsw i32 %120, 1
store i32 %121, ptr %12, align 4
%122 = load i32, ptr %12, align 4
%123 = load ptr, ptr %7, align 8
%124 = load i32, ptr %11, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds i32, ptr %123, i64 %125
%127 = load i32, ptr %126, align 4
%128 = icmp slt i32 %122, %127
br i1 %128, label %47, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %119
br label %129
129: ; preds = %._crit_edge6, %25
br label %130
130: ; preds = %129
%131 = load i32, ptr %11, align 4
%132 = add nsw i32 %131, 1
store i32 %132, ptr %11, align 4
%133 = load i32, ptr %11, align 4
%134 = load i32, ptr %6, align 4
%135 = icmp slt i32 %133, %134
br i1 %135, label %25, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %130
br label %136
136: ; preds = %._crit_edge9, %5
%137 = load ptr, ptr %15, align 8
ret ptr %137
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpd952pqiw.c'
source_filename = "/tmp/tmpd952pqiw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mod2_bar() #0 {
%1 = call i32 (...) @foo()
ret i32 %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/tmpd952pqiw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mod2_bar() #0 {
%1 = call i32 (...) @foo()
ret i32 %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/tmpwu6u6pdd.c'
source_filename = "/tmp/tmpwu6u6pdd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @generate_random_msg(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %19, %2
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %22
10: ; preds = %6
%11 = call i32 (...) @rand()
%12 = srem i32 %11, 10
%13 = add nsw i32 48, %12
%14 = trunc i32 %13 to i8
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
store i8 %14, ptr %18, align 1
br label %19
19: ; preds = %10
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %5, align 4
br label %6, !llvm.loop !6
22: ; preds = %6
%23 = load ptr, ptr %3, align 8
%24 = load i32, ptr %5, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
store i8 0, ptr %26, align 1
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/tmpwu6u6pdd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @generate_random_msg(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %24
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %18
%10 = call i32 (...) @rand()
%11 = srem i32 %10, 10
%12 = add nsw i32 48, %11
%13 = trunc i32 %12 to i8
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
store i8 %13, ptr %17, align 1
br label %18
18: ; preds = %9
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4
%21 = load i32, ptr %5, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %24
24: ; preds = %._crit_edge, %2
%25 = load ptr, ptr %3, align 8
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
store i8 0, ptr %28, align 1
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/tmpv9dm1_jr.c'
source_filename = "/tmp/tmpv9dm1_jr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"str : %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @insert(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%9 = load ptr, ptr %4, align 8
%10 = call i32 @stringlength(ptr noundef %9)
%11 = sub nsw i32 %10, 1
store i32 %11, ptr %8, align 4
%12 = load i32, ptr %8, align 4
%13 = sub nsw i32 %12, 1
store i32 %13, ptr %7, align 4
br label %14
14: ; preds = %30, %3
%15 = load i32, ptr %7, align 4
%16 = load i32, ptr %6, align 4
%17 = sub nsw i32 %16, 1
%18 = icmp sge i32 %15, %17
br i1 %18, label %19, label %33
19: ; preds = %14
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %7, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load i8, ptr %23, align 1
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %7, align 4
%27 = add nsw i32 %26, 1
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %25, i64 %28
store i8 %24, ptr %29, align 1
br label %30
30: ; preds = %19
%31 = load i32, ptr %7, align 4
%32 = add nsw i32 %31, -1
store i32 %32, ptr %7, align 4
br label %14, !llvm.loop !6
33: ; preds = %14
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds i8, ptr %34, i64 0
%36 = load i8, ptr %35, align 1
%37 = load ptr, ptr %4, align 8
%38 = load i32, ptr %6, align 4
%39 = sub nsw i32 %38, 1
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %37, i64 %40
store i8 %36, ptr %41, align 1
%42 = load ptr, ptr %4, align 8
%43 = call i32 @printf(ptr noundef @.str, ptr noundef %42)
ret void
}
declare i32 @stringlength(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv9dm1_jr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"str : %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @insert(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%9 = load ptr, ptr %4, align 8
%10 = call i32 @stringlength(ptr noundef %9)
%11 = sub nsw i32 %10, 1
store i32 %11, ptr %8, align 4
%12 = load i32, ptr %8, align 4
%13 = sub nsw i32 %12, 1
store i32 %13, ptr %7, align 4
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %6, align 4
%16 = sub nsw i32 %15, 1
%17 = icmp sge i32 %14, %16
br i1 %17, label %.lr.ph, label %36
.lr.ph: ; preds = %3
br label %18
18: ; preds = %.lr.ph, %29
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
%23 = load i8, ptr %22, align 1
%24 = load ptr, ptr %4, align 8
%25 = load i32, ptr %7, align 4
%26 = add nsw i32 %25, 1
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %24, i64 %27
store i8 %23, ptr %28, align 1
br label %29
29: ; preds = %18
%30 = load i32, ptr %7, align 4
%31 = add nsw i32 %30, -1
store i32 %31, ptr %7, align 4
%32 = load i32, ptr %7, align 4
%33 = load i32, ptr %6, align 4
%34 = sub nsw i32 %33, 1
%35 = icmp sge i32 %32, %34
br i1 %35, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %36
36: ; preds = %._crit_edge, %3
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds i8, ptr %37, i64 0
%39 = load i8, ptr %38, align 1
%40 = load ptr, ptr %4, align 8
%41 = load i32, ptr %6, align 4
%42 = sub nsw i32 %41, 1
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %40, i64 %43
store i8 %39, ptr %44, align 1
%45 = load ptr, ptr %4, align 8
%46 = call i32 @printf(ptr noundef @.str, ptr noundef %45)
ret void
}
declare i32 @stringlength(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpjb0pr2r1.c'
source_filename = "/tmp/tmpjb0pr2r1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Break_MGRS_String(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%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 i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca [3 x i8], align 1
%19 = alloca i32, align 4
%20 = alloca [6 x i8], align 1
%21 = alloca [6 x i8], align 1
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca double, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
store i32 0, ptr %15, align 4
store i32 0, ptr %16, align 4
store i32 0, ptr %17, align 4
br label %25
25: ; preds = %33, %6
%26 = load ptr, ptr %7, align 8
%27 = load i32, ptr %15, align 4
%28 = zext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 32
br i1 %32, label %33, label %36
33: ; preds = %25
%34 = load i32, ptr %15, align 4
%35 = add i32 %34, 1
store i32 %35, ptr %15, align 4
br label %25, !llvm.loop !6
36: ; preds = %25
%37 = load i32, ptr %15, align 4
store i32 %37, ptr %16, align 4
br label %38
38: ; preds = %46, %36
%39 = load ptr, ptr %7, align 8
%40 = load i32, ptr %15, align 4
%41 = zext i32 %40 to i64
%42 = getelementptr inbounds i8, ptr %39, i64 %41
%43 = load i8, ptr %42, align 1
%44 = call i64 @isdigit(i8 noundef zeroext %43)
%45 = icmp ne i64 %44, 0
br i1 %45, label %46, label %49
46: ; preds = %38
%47 = load i32, ptr %15, align 4
%48 = add i32 %47, 1
store i32 %48, ptr %15, align 4
br label %38, !llvm.loop !8
49: ; preds = %38
%50 = load i32, ptr %15, align 4
%51 = load i32, ptr %16, align 4
%52 = sub i32 %50, %51
store i32 %52, ptr %13, align 4
%53 = load i32, ptr %13, align 4
%54 = icmp sle i32 %53, 2
br i1 %54, label %55, label %83
55: ; preds = %49
%56 = load i32, ptr %13, align 4
%57 = icmp sgt i32 %56, 0
br i1 %57, label %58, label %80
58: ; preds = %55
%59 = getelementptr inbounds [3 x i8], ptr %18, i64 0, i64 0
%60 = load ptr, ptr %7, align 8
%61 = load i32, ptr %16, align 4
%62 = zext i32 %61 to i64
%63 = getelementptr inbounds i8, ptr %60, i64 %62
%64 = call i32 @strncpy(ptr noundef %59, ptr noundef %63, i32 noundef 2)
%65 = getelementptr inbounds [3 x i8], ptr %18, i64 0, i64 2
store i8 0, ptr %65, align 1
%66 = getelementptr inbounds [3 x i8], ptr %18, i64 0, i64 0
%67 = load ptr, ptr %8, align 8
%68 = call i32 @sscanf(ptr noundef %66, ptr noundef @.str, ptr noundef %67)
%69 = load ptr, ptr %8, align 8
%70 = load i32, ptr %69, align 4
%71 = icmp slt i32 %70, 1
br i1 %71, label %76, label %72
72: ; preds = %58
%73 = load ptr, ptr %8, align 8
%74 = load i32, ptr %73, align 4
%75 = icmp sgt i32 %74, 60
br i1 %75, label %76, label %79
76: ; preds = %72, %58
%77 = load i32, ptr %17, align 4
%78 = or i32 %77, 4
store i32 %78, ptr %17, align 4
br label %79
79: ; preds = %76, %72
br label %82
80: ; preds = %55
%81 = load ptr, ptr %8, align 8
store i32 0, ptr %81, align 4
br label %82
82: ; preds = %80, %79
br label %86
83: ; preds = %49
%84 = load i32, ptr %17, align 4
%85 = or i32 %84, 4
store i32 %85, ptr %17, align 4
br label %86
86: ; preds = %83, %82
%87 = load i32, ptr %15, align 4
store i32 %87, ptr %16, align 4
br label %88
88: ; preds = %96, %86
%89 = load ptr, ptr %7, align 8
%90 = load i32, ptr %15, align 4
%91 = zext i32 %90 to i64
%92 = getelementptr inbounds i8, ptr %89, i64 %91
%93 = load i8, ptr %92, align 1
%94 = call i64 @isalpha(i8 noundef zeroext %93)
%95 = icmp ne i64 %94, 0
br i1 %95, label %96, label %99
96: ; preds = %88
%97 = load i32, ptr %15, align 4
%98 = add i32 %97, 1
store i32 %98, ptr %15, align 4
br label %88, !llvm.loop !9
99: ; preds = %88
%100 = load i32, ptr %15, align 4
%101 = load i32, ptr %16, align 4
%102 = sub i32 %100, %101
store i32 %102, ptr %14, align 4
%103 = load i32, ptr %14, align 4
%104 = icmp eq i32 %103, 3
br i1 %104, label %105, label %174
105: ; preds = %99
%106 = load ptr, ptr %7, align 8
%107 = load i32, ptr %16, align 4
%108 = zext i32 %107 to i64
%109 = getelementptr inbounds i8, ptr %106, i64 %108
%110 = load i8, ptr %109, align 1
%111 = call i32 @toupper(i8 noundef zeroext %110)
%112 = sub nsw i32 %111, 65
%113 = load ptr, ptr %9, align 8
%114 = getelementptr inbounds i32, ptr %113, i64 0
store i32 %112, ptr %114, align 4
%115 = load ptr, ptr %9, align 8
%116 = getelementptr inbounds i32, ptr %115, i64 0
%117 = load i32, ptr %116, align 4
%118 = icmp eq i32 %117, 8
br i1 %118, label %124, label %119
119: ; preds = %105
%120 = load ptr, ptr %9, align 8
%121 = getelementptr inbounds i32, ptr %120, i64 0
%122 = load i32, ptr %121, align 4
%123 = icmp eq i32 %122, 14
br i1 %123, label %124, label %127
124: ; preds = %119, %105
%125 = load i32, ptr %17, align 4
%126 = or i32 %125, 4
store i32 %126, ptr %17, align 4
br label %127
127: ; preds = %124, %119
%128 = load ptr, ptr %7, align 8
%129 = load i32, ptr %16, align 4
%130 = add i32 %129, 1
%131 = zext i32 %130 to i64
%132 = getelementptr inbounds i8, ptr %128, i64 %131
%133 = load i8, ptr %132, align 1
%134 = call i32 @toupper(i8 noundef zeroext %133)
%135 = sub nsw i32 %134, 65
%136 = load ptr, ptr %9, align 8
%137 = getelementptr inbounds i32, ptr %136, i64 1
store i32 %135, ptr %137, align 4
%138 = load ptr, ptr %9, align 8
%139 = getelementptr inbounds i32, ptr %138, i64 1
%140 = load i32, ptr %139, align 4
%141 = icmp eq i32 %140, 8
br i1 %141, label %147, label %142
142: ; preds = %127
%143 = load ptr, ptr %9, align 8
%144 = getelementptr inbounds i32, ptr %143, i64 1
%145 = load i32, ptr %144, align 4
%146 = icmp eq i32 %145, 14
br i1 %146, label %147, label %150
147: ; preds = %142, %127
%148 = load i32, ptr %17, align 4
%149 = or i32 %148, 4
store i32 %149, ptr %17, align 4
br label %150
150: ; preds = %147, %142
%151 = load ptr, ptr %7, align 8
%152 = load i32, ptr %16, align 4
%153 = add i32 %152, 2
%154 = zext i32 %153 to i64
%155 = getelementptr inbounds i8, ptr %151, i64 %154
%156 = load i8, ptr %155, align 1
%157 = call i32 @toupper(i8 noundef zeroext %156)
%158 = sub nsw i32 %157, 65
%159 = load ptr, ptr %9, align 8
%160 = getelementptr inbounds i32, ptr %159, i64 2
store i32 %158, ptr %160, align 4
%161 = load ptr, ptr %9, align 8
%162 = getelementptr inbounds i32, ptr %161, i64 2
%163 = load i32, ptr %162, align 4
%164 = icmp eq i32 %163, 8
br i1 %164, label %170, label %165
165: ; preds = %150
%166 = load ptr, ptr %9, align 8
%167 = getelementptr inbounds i32, ptr %166, i64 2
%168 = load i32, ptr %167, align 4
%169 = icmp eq i32 %168, 14
br i1 %169, label %170, label %173
170: ; preds = %165, %150
%171 = load i32, ptr %17, align 4
%172 = or i32 %171, 4
store i32 %172, ptr %17, align 4
br label %173
173: ; preds = %170, %165
br label %177
174: ; preds = %99
%175 = load i32, ptr %17, align 4
%176 = or i32 %175, 4
store i32 %176, ptr %17, align 4
br label %177
177: ; preds = %174, %173
%178 = load i32, ptr %15, align 4
store i32 %178, ptr %16, align 4
br label %179
179: ; preds = %187, %177
%180 = load ptr, ptr %7, align 8
%181 = load i32, ptr %15, align 4
%182 = zext i32 %181 to i64
%183 = getelementptr inbounds i8, ptr %180, i64 %182
%184 = load i8, ptr %183, align 1
%185 = call i64 @isdigit(i8 noundef zeroext %184)
%186 = icmp ne i64 %185, 0
br i1 %186, label %187, label %190
187: ; preds = %179
%188 = load i32, ptr %15, align 4
%189 = add i32 %188, 1
store i32 %189, ptr %15, align 4
br label %179, !llvm.loop !10
190: ; preds = %179
%191 = load i32, ptr %15, align 4
%192 = load i32, ptr %16, align 4
%193 = sub i32 %191, %192
store i32 %193, ptr %13, align 4
%194 = load i32, ptr %13, align 4
%195 = icmp sle i32 %194, 10
br i1 %195, label %196, label %252
196: ; preds = %190
%197 = load i32, ptr %13, align 4
%198 = srem i32 %197, 2
%199 = icmp eq i32 %198, 0
br i1 %199, label %200, label %252
200: ; preds = %196
%201 = load i32, ptr %13, align 4
%202 = sdiv i32 %201, 2
store i32 %202, ptr %19, align 4
%203 = load i32, ptr %19, align 4
%204 = load ptr, ptr %12, align 8
store i32 %203, ptr %204, align 4
%205 = load i32, ptr %19, align 4
%206 = icmp sgt i32 %205, 0
br i1 %206, label %207, label %248
207: ; preds = %200
%208 = getelementptr inbounds [6 x i8], ptr %20, i64 0, i64 0
%209 = load ptr, ptr %7, align 8
%210 = load i32, ptr %16, align 4
%211 = zext i32 %210 to i64
%212 = getelementptr inbounds i8, ptr %209, i64 %211
%213 = load i32, ptr %19, align 4
%214 = call i32 @strncpy(ptr noundef %208, ptr noundef %212, i32 noundef %213)
%215 = load i32, ptr %19, align 4
%216 = sext i32 %215 to i64
%217 = getelementptr inbounds [6 x i8], ptr %20, i64 0, i64 %216
store i8 0, ptr %217, align 1
%218 = getelementptr inbounds [6 x i8], ptr %20, i64 0, i64 0
%219 = call i32 @sscanf(ptr noundef %218, ptr noundef @.str, ptr noundef %22)
%220 = getelementptr inbounds [6 x i8], ptr %21, i64 0, i64 0
%221 = load ptr, ptr %7, align 8
%222 = load i32, ptr %16, align 4
%223 = zext i32 %222 to i64
%224 = getelementptr inbounds i8, ptr %221, i64 %223
%225 = load i32, ptr %19, align 4
%226 = sext i32 %225 to i64
%227 = getelementptr inbounds i8, ptr %224, i64 %226
%228 = load i32, ptr %19, align 4
%229 = call i32 @strncpy(ptr noundef %220, ptr noundef %227, i32 noundef %228)
%230 = load i32, ptr %19, align 4
%231 = sext i32 %230 to i64
%232 = getelementptr inbounds [6 x i8], ptr %21, i64 0, i64 %231
store i8 0, ptr %232, align 1
%233 = getelementptr inbounds [6 x i8], ptr %21, i64 0, i64 0
%234 = call i32 @sscanf(ptr noundef %233, ptr noundef @.str, ptr noundef %23)
%235 = load i32, ptr %19, align 4
%236 = sub nsw i32 5, %235
%237 = call double @pow(double noundef 1.000000e+01, i32 noundef %236)
store double %237, ptr %24, align 8
%238 = load i32, ptr %22, align 4
%239 = sitofp i32 %238 to double
%240 = load double, ptr %24, align 8
%241 = fmul double %239, %240
%242 = load ptr, ptr %10, align 8
store double %241, ptr %242, align 8
%243 = load i32, ptr %23, align 4
%244 = sitofp i32 %243 to double
%245 = load double, ptr %24, align 8
%246 = fmul double %244, %245
%247 = load ptr, ptr %11, align 8
store double %246, ptr %247, align 8
br label %251
248: ; preds = %200
%249 = load ptr, ptr %10, align 8
store double 0.000000e+00, ptr %249, align 8
%250 = load ptr, ptr %11, align 8
store double 0.000000e+00, ptr %250, align 8
br label %251
251: ; preds = %248, %207
br label %255
252: ; preds = %196, %190
%253 = load i32, ptr %17, align 4
%254 = or i32 %253, 4
store i32 %254, ptr %17, align 4
br label %255
255: ; preds = %252, %251
%256 = load i32, ptr %17, align 4
ret i32 %256
}
declare i64 @isdigit(i8 noundef zeroext) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @isalpha(i8 noundef zeroext) #1
declare i32 @toupper(i8 noundef zeroext) #1
declare double @pow(double 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/tmpjb0pr2r1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Break_MGRS_String(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%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 i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca [3 x i8], align 1
%19 = alloca i32, align 4
%20 = alloca [6 x i8], align 1
%21 = alloca [6 x i8], align 1
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca double, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
store i32 0, ptr %15, align 4
store i32 0, ptr %16, align 4
store i32 0, ptr %17, align 4
%25 = load ptr, ptr %7, align 8
%26 = load i32, ptr %15, align 4
%27 = zext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 32
br i1 %31, label %.lr.ph, label %42
.lr.ph: ; preds = %6
br label %32
32: ; preds = %.lr.ph, %32
%33 = load i32, ptr %15, align 4
%34 = add i32 %33, 1
store i32 %34, ptr %15, align 4
%35 = load ptr, ptr %7, align 8
%36 = load i32, ptr %15, align 4
%37 = zext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %40, 32
br i1 %41, label %32, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %42
42: ; preds = %._crit_edge, %6
%43 = load i32, ptr %15, align 4
store i32 %43, ptr %16, align 4
%44 = load ptr, ptr %7, align 8
%45 = load i32, ptr %15, align 4
%46 = zext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %44, i64 %46
%48 = load i8, ptr %47, align 1
%49 = call i64 @isdigit(i8 noundef zeroext %48)
%50 = icmp ne i64 %49, 0
br i1 %50, label %.lr.ph2, label %61
.lr.ph2: ; preds = %42
br label %51
51: ; preds = %.lr.ph2, %51
%52 = load i32, ptr %15, align 4
%53 = add i32 %52, 1
store i32 %53, ptr %15, align 4
%54 = load ptr, ptr %7, align 8
%55 = load i32, ptr %15, align 4
%56 = zext i32 %55 to i64
%57 = getelementptr inbounds i8, ptr %54, i64 %56
%58 = load i8, ptr %57, align 1
%59 = call i64 @isdigit(i8 noundef zeroext %58)
%60 = icmp ne i64 %59, 0
br i1 %60, label %51, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %51
br label %61
61: ; preds = %._crit_edge3, %42
%62 = load i32, ptr %15, align 4
%63 = load i32, ptr %16, align 4
%64 = sub i32 %62, %63
store i32 %64, ptr %13, align 4
%65 = load i32, ptr %13, align 4
%66 = icmp sle i32 %65, 2
br i1 %66, label %67, label %95
67: ; preds = %61
%68 = load i32, ptr %13, align 4
%69 = icmp sgt i32 %68, 0
br i1 %69, label %70, label %92
70: ; preds = %67
%71 = getelementptr inbounds [3 x i8], ptr %18, i64 0, i64 0
%72 = load ptr, ptr %7, align 8
%73 = load i32, ptr %16, align 4
%74 = zext i32 %73 to i64
%75 = getelementptr inbounds i8, ptr %72, i64 %74
%76 = call i32 @strncpy(ptr noundef %71, ptr noundef %75, i32 noundef 2)
%77 = getelementptr inbounds [3 x i8], ptr %18, i64 0, i64 2
store i8 0, ptr %77, align 1
%78 = getelementptr inbounds [3 x i8], ptr %18, i64 0, i64 0
%79 = load ptr, ptr %8, align 8
%80 = call i32 @sscanf(ptr noundef %78, ptr noundef @.str, ptr noundef %79)
%81 = load ptr, ptr %8, align 8
%82 = load i32, ptr %81, align 4
%83 = icmp slt i32 %82, 1
br i1 %83, label %88, label %84
84: ; preds = %70
%85 = load ptr, ptr %8, align 8
%86 = load i32, ptr %85, align 4
%87 = icmp sgt i32 %86, 60
br i1 %87, label %88, label %91
88: ; preds = %84, %70
%89 = load i32, ptr %17, align 4
%90 = or i32 %89, 4
store i32 %90, ptr %17, align 4
br label %91
91: ; preds = %88, %84
br label %94
92: ; preds = %67
%93 = load ptr, ptr %8, align 8
store i32 0, ptr %93, align 4
br label %94
94: ; preds = %92, %91
br label %98
95: ; preds = %61
%96 = load i32, ptr %17, align 4
%97 = or i32 %96, 4
store i32 %97, ptr %17, align 4
br label %98
98: ; preds = %95, %94
%99 = load i32, ptr %15, align 4
store i32 %99, ptr %16, align 4
%100 = load ptr, ptr %7, align 8
%101 = load i32, ptr %15, align 4
%102 = zext i32 %101 to i64
%103 = getelementptr inbounds i8, ptr %100, i64 %102
%104 = load i8, ptr %103, align 1
%105 = call i64 @isalpha(i8 noundef zeroext %104)
%106 = icmp ne i64 %105, 0
br i1 %106, label %.lr.ph5, label %117
.lr.ph5: ; preds = %98
br label %107
107: ; preds = %.lr.ph5, %107
%108 = load i32, ptr %15, align 4
%109 = add i32 %108, 1
store i32 %109, ptr %15, align 4
%110 = load ptr, ptr %7, align 8
%111 = load i32, ptr %15, align 4
%112 = zext i32 %111 to i64
%113 = getelementptr inbounds i8, ptr %110, i64 %112
%114 = load i8, ptr %113, align 1
%115 = call i64 @isalpha(i8 noundef zeroext %114)
%116 = icmp ne i64 %115, 0
br i1 %116, label %107, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %107
br label %117
117: ; preds = %._crit_edge6, %98
%118 = load i32, ptr %15, align 4
%119 = load i32, ptr %16, align 4
%120 = sub i32 %118, %119
store i32 %120, ptr %14, align 4
%121 = load i32, ptr %14, align 4
%122 = icmp eq i32 %121, 3
br i1 %122, label %123, label %192
123: ; preds = %117
%124 = load ptr, ptr %7, align 8
%125 = load i32, ptr %16, align 4
%126 = zext i32 %125 to i64
%127 = getelementptr inbounds i8, ptr %124, i64 %126
%128 = load i8, ptr %127, align 1
%129 = call i32 @toupper(i8 noundef zeroext %128)
%130 = sub nsw i32 %129, 65
%131 = load ptr, ptr %9, align 8
%132 = getelementptr inbounds i32, ptr %131, i64 0
store i32 %130, ptr %132, align 4
%133 = load ptr, ptr %9, align 8
%134 = getelementptr inbounds i32, ptr %133, i64 0
%135 = load i32, ptr %134, align 4
%136 = icmp eq i32 %135, 8
br i1 %136, label %142, label %137
137: ; preds = %123
%138 = load ptr, ptr %9, align 8
%139 = getelementptr inbounds i32, ptr %138, i64 0
%140 = load i32, ptr %139, align 4
%141 = icmp eq i32 %140, 14
br i1 %141, label %142, label %145
142: ; preds = %137, %123
%143 = load i32, ptr %17, align 4
%144 = or i32 %143, 4
store i32 %144, ptr %17, align 4
br label %145
145: ; preds = %142, %137
%146 = load ptr, ptr %7, align 8
%147 = load i32, ptr %16, align 4
%148 = add i32 %147, 1
%149 = zext i32 %148 to i64
%150 = getelementptr inbounds i8, ptr %146, i64 %149
%151 = load i8, ptr %150, align 1
%152 = call i32 @toupper(i8 noundef zeroext %151)
%153 = sub nsw i32 %152, 65
%154 = load ptr, ptr %9, align 8
%155 = getelementptr inbounds i32, ptr %154, i64 1
store i32 %153, ptr %155, align 4
%156 = load ptr, ptr %9, align 8
%157 = getelementptr inbounds i32, ptr %156, i64 1
%158 = load i32, ptr %157, align 4
%159 = icmp eq i32 %158, 8
br i1 %159, label %165, label %160
160: ; preds = %145
%161 = load ptr, ptr %9, align 8
%162 = getelementptr inbounds i32, ptr %161, i64 1
%163 = load i32, ptr %162, align 4
%164 = icmp eq i32 %163, 14
br i1 %164, label %165, label %168
165: ; preds = %160, %145
%166 = load i32, ptr %17, align 4
%167 = or i32 %166, 4
store i32 %167, ptr %17, align 4
br label %168
168: ; preds = %165, %160
%169 = load ptr, ptr %7, align 8
%170 = load i32, ptr %16, align 4
%171 = add i32 %170, 2
%172 = zext i32 %171 to i64
%173 = getelementptr inbounds i8, ptr %169, i64 %172
%174 = load i8, ptr %173, align 1
%175 = call i32 @toupper(i8 noundef zeroext %174)
%176 = sub nsw i32 %175, 65
%177 = load ptr, ptr %9, align 8
%178 = getelementptr inbounds i32, ptr %177, i64 2
store i32 %176, ptr %178, align 4
%179 = load ptr, ptr %9, align 8
%180 = getelementptr inbounds i32, ptr %179, i64 2
%181 = load i32, ptr %180, align 4
%182 = icmp eq i32 %181, 8
br i1 %182, label %188, label %183
183: ; preds = %168
%184 = load ptr, ptr %9, align 8
%185 = getelementptr inbounds i32, ptr %184, i64 2
%186 = load i32, ptr %185, align 4
%187 = icmp eq i32 %186, 14
br i1 %187, label %188, label %191
188: ; preds = %183, %168
%189 = load i32, ptr %17, align 4
%190 = or i32 %189, 4
store i32 %190, ptr %17, align 4
br label %191
191: ; preds = %188, %183
br label %195
192: ; preds = %117
%193 = load i32, ptr %17, align 4
%194 = or i32 %193, 4
store i32 %194, ptr %17, align 4
br label %195
195: ; preds = %192, %191
%196 = load i32, ptr %15, align 4
store i32 %196, ptr %16, align 4
%197 = load ptr, ptr %7, align 8
%198 = load i32, ptr %15, align 4
%199 = zext i32 %198 to i64
%200 = getelementptr inbounds i8, ptr %197, i64 %199
%201 = load i8, ptr %200, align 1
%202 = call i64 @isdigit(i8 noundef zeroext %201)
%203 = icmp ne i64 %202, 0
br i1 %203, label %.lr.ph8, label %214
.lr.ph8: ; preds = %195
br label %204
204: ; preds = %.lr.ph8, %204
%205 = load i32, ptr %15, align 4
%206 = add i32 %205, 1
store i32 %206, ptr %15, align 4
%207 = load ptr, ptr %7, align 8
%208 = load i32, ptr %15, align 4
%209 = zext i32 %208 to i64
%210 = getelementptr inbounds i8, ptr %207, i64 %209
%211 = load i8, ptr %210, align 1
%212 = call i64 @isdigit(i8 noundef zeroext %211)
%213 = icmp ne i64 %212, 0
br i1 %213, label %204, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %204
br label %214
214: ; preds = %._crit_edge9, %195
%215 = load i32, ptr %15, align 4
%216 = load i32, ptr %16, align 4
%217 = sub i32 %215, %216
store i32 %217, ptr %13, align 4
%218 = load i32, ptr %13, align 4
%219 = icmp sle i32 %218, 10
br i1 %219, label %220, label %276
220: ; preds = %214
%221 = load i32, ptr %13, align 4
%222 = srem i32 %221, 2
%223 = icmp eq i32 %222, 0
br i1 %223, label %224, label %276
224: ; preds = %220
%225 = load i32, ptr %13, align 4
%226 = sdiv i32 %225, 2
store i32 %226, ptr %19, align 4
%227 = load i32, ptr %19, align 4
%228 = load ptr, ptr %12, align 8
store i32 %227, ptr %228, align 4
%229 = load i32, ptr %19, align 4
%230 = icmp sgt i32 %229, 0
br i1 %230, label %231, label %272
231: ; preds = %224
%232 = getelementptr inbounds [6 x i8], ptr %20, i64 0, i64 0
%233 = load ptr, ptr %7, align 8
%234 = load i32, ptr %16, align 4
%235 = zext i32 %234 to i64
%236 = getelementptr inbounds i8, ptr %233, i64 %235
%237 = load i32, ptr %19, align 4
%238 = call i32 @strncpy(ptr noundef %232, ptr noundef %236, i32 noundef %237)
%239 = load i32, ptr %19, align 4
%240 = sext i32 %239 to i64
%241 = getelementptr inbounds [6 x i8], ptr %20, i64 0, i64 %240
store i8 0, ptr %241, align 1
%242 = getelementptr inbounds [6 x i8], ptr %20, i64 0, i64 0
%243 = call i32 @sscanf(ptr noundef %242, ptr noundef @.str, ptr noundef %22)
%244 = getelementptr inbounds [6 x i8], ptr %21, i64 0, i64 0
%245 = load ptr, ptr %7, align 8
%246 = load i32, ptr %16, align 4
%247 = zext i32 %246 to i64
%248 = getelementptr inbounds i8, ptr %245, i64 %247
%249 = load i32, ptr %19, align 4
%250 = sext i32 %249 to i64
%251 = getelementptr inbounds i8, ptr %248, i64 %250
%252 = load i32, ptr %19, align 4
%253 = call i32 @strncpy(ptr noundef %244, ptr noundef %251, i32 noundef %252)
%254 = load i32, ptr %19, align 4
%255 = sext i32 %254 to i64
%256 = getelementptr inbounds [6 x i8], ptr %21, i64 0, i64 %255
store i8 0, ptr %256, align 1
%257 = getelementptr inbounds [6 x i8], ptr %21, i64 0, i64 0
%258 = call i32 @sscanf(ptr noundef %257, ptr noundef @.str, ptr noundef %23)
%259 = load i32, ptr %19, align 4
%260 = sub nsw i32 5, %259
%261 = call double @pow(double noundef 1.000000e+01, i32 noundef %260)
store double %261, ptr %24, align 8
%262 = load i32, ptr %22, align 4
%263 = sitofp i32 %262 to double
%264 = load double, ptr %24, align 8
%265 = fmul double %263, %264
%266 = load ptr, ptr %10, align 8
store double %265, ptr %266, align 8
%267 = load i32, ptr %23, align 4
%268 = sitofp i32 %267 to double
%269 = load double, ptr %24, align 8
%270 = fmul double %268, %269
%271 = load ptr, ptr %11, align 8
store double %270, ptr %271, align 8
br label %275
272: ; preds = %224
%273 = load ptr, ptr %10, align 8
store double 0.000000e+00, ptr %273, align 8
%274 = load ptr, ptr %11, align 8
store double 0.000000e+00, ptr %274, align 8
br label %275
275: ; preds = %272, %231
br label %279
276: ; preds = %220, %214
%277 = load i32, ptr %17, align 4
%278 = or i32 %277, 4
store i32 %278, ptr %17, align 4
br label %279
279: ; preds = %276, %275
%280 = load i32, ptr %17, align 4
ret i32 %280
}
declare i64 @isdigit(i8 noundef zeroext) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @isalpha(i8 noundef zeroext) #1
declare i32 @toupper(i8 noundef zeroext) #1
declare double @pow(double 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/tmpp6_3db53.c'
source_filename = "/tmp/tmpp6_3db53.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [32 x i8] c"usage: %s device [ partition ]\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c" i.e. %s /dev/hda 2\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@O_WRONLY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [12 x i8] c"open %s: %s\00", align 1
@errno = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [12 x i8] c"stat %s: %s\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"%s: not a block device\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [10 x i8] c"lseek: %s\00", align 1
@.str.6 = private unnamed_addr constant [9 x i8] c"read: %s\00", align 1
@.str.7 = private unnamed_addr constant [6 x i8] c"%s%d\0A\00", align 1
@.str.8 = private unnamed_addr constant [32 x i8] c"No active partition found on %s\00", align 1
@.str.9 = private unnamed_addr constant [39 x i8] c"%s: not a valid partition number (1-4)\00", align 1
@.str.10 = private unnamed_addr constant [10 x i8] c"write: %s\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 %struct.stat, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 2
br i1 %12, label %13, label %28
13: ; preds = %2
%14 = load i32, ptr %4, align 4
%15 = icmp ne i32 %14, 3
br i1 %15, label %16, label %28
16: ; preds = %13
%17 = load i32, ptr @stderr, 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 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str, ptr noundef %20)
%22 = load i32, ptr @stderr, align 4
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 0
%25 = load ptr, ptr %24, align 8
%26 = call i32 @fprintf(i32 noundef %22, ptr noundef @.str.1, ptr noundef %25)
%27 = call i32 @exit(i32 noundef 1) #3
unreachable
28: ; preds = %13, %2
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 1
%31 = load ptr, ptr %30, align 8
%32 = load i32, ptr %4, align 4
%33 = icmp eq i32 %32, 2
br i1 %33, label %34, label %36
34: ; preds = %28
%35 = load i32, ptr @O_RDONLY, align 4
br label %38
36: ; preds = %28
%37 = load i32, ptr @O_WRONLY, align 4
br label %38
38: ; preds = %36, %34
%39 = phi i32 [ %35, %34 ], [ %37, %36 ]
%40 = call i32 @open(ptr noundef %31, i32 noundef %39)
store i32 %40, ptr %7, align 4
%41 = icmp slt i32 %40, 0
br i1 %41, label %42, label %49
42: ; preds = %38
%43 = load ptr, ptr %5, align 8
%44 = getelementptr inbounds ptr, ptr %43, i64 1
%45 = load ptr, ptr %44, align 8
%46 = load i32, ptr @errno, align 4
%47 = call ptr @strerror(i32 noundef %46)
%48 = call i32 (ptr, ptr, ...) @die(ptr noundef @.str.2, ptr noundef %45, ptr noundef %47)
br label %49
49: ; preds = %42, %38
%50 = load i32, ptr %7, align 4
%51 = call i64 @fstat(i32 noundef %50, ptr noundef %6)
%52 = icmp slt i64 %51, 0
br i1 %52, label %53, label %60
53: ; preds = %49
%54 = load ptr, ptr %5, align 8
%55 = getelementptr inbounds ptr, ptr %54, i64 1
%56 = load ptr, ptr %55, align 8
%57 = load i32, ptr @errno, align 4
%58 = call ptr @strerror(i32 noundef %57)
%59 = call i32 (ptr, ptr, ...) @die(ptr noundef @.str.3, ptr noundef %56, ptr noundef %58)
br label %60
60: ; preds = %53, %49
%61 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 0
%62 = load i32, ptr %61, align 4
%63 = call i32 @S_ISBLK(i32 noundef %62)
%64 = icmp ne i32 %63, 0
br i1 %64, label %70, label %65
65: ; preds = %60
%66 = load ptr, ptr %5, align 8
%67 = getelementptr inbounds ptr, ptr %66, i64 1
%68 = load ptr, ptr %67, align 8
%69 = call i32 (ptr, ptr, ...) @die(ptr noundef @.str.4, ptr noundef %68)
br label %70
70: ; preds = %65, %60
%71 = load i32, ptr %4, align 4
%72 = icmp eq i32 %71, 2
br i1 %72, label %73, label %118
73: ; preds = %70
store i32 1, ptr %9, align 4
br label %74
74: ; preds = %110, %73
%75 = load i32, ptr %9, align 4
%76 = icmp sle i32 %75, 4
br i1 %76, label %77, label %113
77: ; preds = %74
%78 = load i32, ptr %7, align 4
%79 = load i32, ptr %9, align 4
%80 = sub nsw i32 %79, 1
%81 = mul nsw i32 %80, 16
%82 = add nsw i32 446, %81
%83 = load i32, ptr @SEEK_SET, align 4
%84 = call i64 @lseek(i32 noundef %78, i32 noundef %82, i32 noundef %83)
%85 = icmp slt i64 %84, 0
br i1 %85, label %86, label %90
86: ; preds = %77
%87 = load i32, ptr @errno, align 4
%88 = call ptr @strerror(i32 noundef %87)
%89 = call i32 (ptr, ptr, ...) @die(ptr noundef @.str.5, ptr noundef %88)
br label %90
90: ; preds = %86, %77
%91 = load i32, ptr %7, align 4
%92 = call i32 @read(i32 noundef %91, ptr noundef %10, i32 noundef 1)
%93 = icmp ne i32 %92, 1
br i1 %93, label %94, label %98
94: ; preds = %90
%95 = load i32, ptr @errno, align 4
%96 = call ptr @strerror(i32 noundef %95)
%97 = call i32 (ptr, ptr, ...) @die(ptr noundef @.str.6, ptr noundef %96)
br label %98
98: ; preds = %94, %90
%99 = load i8, ptr %10, align 1
%100 = zext i8 %99 to i32
%101 = icmp eq i32 %100, 128
br i1 %101, label %102, label %109
102: ; preds = %98
%103 = load ptr, ptr %5, align 8
%104 = getelementptr inbounds ptr, ptr %103, i64 1
%105 = load ptr, ptr %104, align 8
%106 = load i32, ptr %9, align 4
%107 = call i32 @printf(ptr noundef @.str.7, ptr noundef %105, i32 noundef %106)
%108 = call i32 @exit(i32 noundef 0) #3
unreachable
109: ; preds = %98
br label %110
110: ; preds = %109
%111 = load i32, ptr %9, align 4
%112 = add nsw i32 %111, 1
store i32 %112, ptr %9, align 4
br label %74, !llvm.loop !6
113: ; preds = %74
%114 = load ptr, ptr %5, align 8
%115 = getelementptr inbounds ptr, ptr %114, i64 1
%116 = load ptr, ptr %115, align 8
%117 = call i32 (ptr, ptr, ...) @die(ptr noundef @.str.8, ptr noundef %116)
br label %118
118: ; preds = %113, %70
%119 = load ptr, ptr %5, align 8
%120 = getelementptr inbounds ptr, ptr %119, i64 2
%121 = load ptr, ptr %120, align 8
%122 = call i32 @atoi(ptr noundef %121)
store i32 %122, ptr %8, align 4
%123 = load i32, ptr %8, align 4
%124 = icmp slt i32 %123, 1
br i1 %124, label %128, label %125
125: ; preds = %118
%126 = load i32, ptr %8, align 4
%127 = icmp sgt i32 %126, 4
br i1 %127, label %128, label %133
128: ; preds = %125, %118
%129 = load ptr, ptr %5, align 8
%130 = getelementptr inbounds ptr, ptr %129, i64 2
%131 = load ptr, ptr %130, align 8
%132 = call i32 (ptr, ptr, ...) @die(ptr noundef @.str.9, ptr noundef %131)
br label %133
133: ; preds = %128, %125
store i32 1, ptr %9, align 4
br label %134
134: ; preds = %165, %133
%135 = load i32, ptr %9, align 4
%136 = icmp sle i32 %135, 4
br i1 %136, label %137, label %168
137: ; preds = %134
%138 = load i32, ptr %7, align 4
%139 = load i32, ptr %9, align 4
%140 = sub nsw i32 %139, 1
%141 = mul nsw i32 %140, 16
%142 = add nsw i32 446, %141
%143 = load i32, ptr @SEEK_SET, align 4
%144 = call i64 @lseek(i32 noundef %138, i32 noundef %142, i32 noundef %143)
%145 = icmp slt i64 %144, 0
br i1 %145, label %146, label %150
146: ; preds = %137
%147 = load i32, ptr @errno, align 4
%148 = call ptr @strerror(i32 noundef %147)
%149 = call i32 (ptr, ptr, ...) @die(ptr noundef @.str.5, ptr noundef %148)
br label %150
150: ; preds = %146, %137
%151 = load i32, ptr %9, align 4
%152 = load i32, ptr %8, align 4
%153 = icmp eq i32 %151, %152
%154 = zext i1 %153 to i64
%155 = select i1 %153, i32 128, i32 0
%156 = trunc i32 %155 to i8
store i8 %156, ptr %10, align 1
%157 = load i32, ptr %7, align 4
%158 = call i32 @write(i32 noundef %157, ptr noundef %10, i32 noundef 1)
%159 = icmp ne i32 %158, 1
br i1 %159, label %160, label %164
160: ; preds = %150
%161 = load i32, ptr @errno, align 4
%162 = call ptr @strerror(i32 noundef %161)
%163 = call i32 (ptr, ptr, ...) @die(ptr noundef @.str.10, ptr noundef %162)
br label %164
164: ; preds = %160, %150
br label %165
165: ; preds = %164
%166 = load i32, ptr %9, align 4
%167 = add nsw i32 %166, 1
store i32 %167, ptr %9, align 4
br label %134, !llvm.loop !8
168: ; preds = %134
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @die(ptr noundef, ptr noundef, ...) #1
declare ptr @strerror(i32 noundef) #1
declare i64 @fstat(i32 noundef, ptr noundef) #1
declare i32 @S_ISBLK(i32 noundef) #1
declare i64 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @write(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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp6_3db53.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [32 x i8] c"usage: %s device [ partition ]\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c" i.e. %s /dev/hda 2\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@O_WRONLY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [12 x i8] c"open %s: %s\00", align 1
@errno = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [12 x i8] c"stat %s: %s\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"%s: not a block device\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [10 x i8] c"lseek: %s\00", align 1
@.str.6 = private unnamed_addr constant [9 x i8] c"read: %s\00", align 1
@.str.7 = private unnamed_addr constant [6 x i8] c"%s%d\0A\00", align 1
@.str.8 = private unnamed_addr constant [32 x i8] c"No active partition found on %s\00", align 1
@.str.9 = private unnamed_addr constant [39 x i8] c"%s: not a valid partition number (1-4)\00", align 1
@.str.10 = private unnamed_addr constant [10 x i8] c"write: %s\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 %struct.stat, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 2
br i1 %12, label %13, label %28
13: ; preds = %2
%14 = load i32, ptr %4, align 4
%15 = icmp ne i32 %14, 3
br i1 %15, label %16, label %28
16: ; preds = %13
%17 = load i32, ptr @stderr, 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 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str, ptr noundef %20)
%22 = load i32, ptr @stderr, align 4
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 0
%25 = load ptr, ptr %24, align 8
%26 = call i32 @fprintf(i32 noundef %22, ptr noundef @.str.1, ptr noundef %25)
%27 = call i32 @exit(i32 noundef 1) #3
unreachable
28: ; preds = %13, %2
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 1
%31 = load ptr, ptr %30, align 8
%32 = load i32, ptr %4, align 4
%33 = icmp eq i32 %32, 2
br i1 %33, label %34, label %36
34: ; preds = %28
%35 = load i32, ptr @O_RDONLY, align 4
br label %38
36: ; preds = %28
%37 = load i32, ptr @O_WRONLY, align 4
br label %38
38: ; preds = %36, %34
%39 = phi i32 [ %35, %34 ], [ %37, %36 ]
%40 = call i32 @open(ptr noundef %31, i32 noundef %39)
store i32 %40, ptr %7, align 4
%41 = icmp slt i32 %40, 0
br i1 %41, label %42, label %49
42: ; preds = %38
%43 = load ptr, ptr %5, align 8
%44 = getelementptr inbounds ptr, ptr %43, i64 1
%45 = load ptr, ptr %44, align 8
%46 = load i32, ptr @errno, align 4
%47 = call ptr @strerror(i32 noundef %46)
%48 = call i32 (ptr, ptr, ...) @die(ptr noundef @.str.2, ptr noundef %45, ptr noundef %47)
br label %49
49: ; preds = %42, %38
%50 = load i32, ptr %7, align 4
%51 = call i64 @fstat(i32 noundef %50, ptr noundef %6)
%52 = icmp slt i64 %51, 0
br i1 %52, label %53, label %60
53: ; preds = %49
%54 = load ptr, ptr %5, align 8
%55 = getelementptr inbounds ptr, ptr %54, i64 1
%56 = load ptr, ptr %55, align 8
%57 = load i32, ptr @errno, align 4
%58 = call ptr @strerror(i32 noundef %57)
%59 = call i32 (ptr, ptr, ...) @die(ptr noundef @.str.3, ptr noundef %56, ptr noundef %58)
br label %60
60: ; preds = %53, %49
%61 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 0
%62 = load i32, ptr %61, align 4
%63 = call i32 @S_ISBLK(i32 noundef %62)
%64 = icmp ne i32 %63, 0
br i1 %64, label %70, label %65
65: ; preds = %60
%66 = load ptr, ptr %5, align 8
%67 = getelementptr inbounds ptr, ptr %66, i64 1
%68 = load ptr, ptr %67, align 8
%69 = call i32 (ptr, ptr, ...) @die(ptr noundef @.str.4, ptr noundef %68)
br label %70
70: ; preds = %65, %60
%71 = load i32, ptr %4, align 4
%72 = icmp eq i32 %71, 2
br i1 %72, label %73, label %119
73: ; preds = %70
store i32 1, ptr %9, align 4
%74 = load i32, ptr %9, align 4
%75 = icmp sle i32 %74, 4
br i1 %75, label %.lr.ph, label %114
.lr.ph: ; preds = %73
br label %76
76: ; preds = %.lr.ph, %109
%77 = load i32, ptr %7, align 4
%78 = load i32, ptr %9, align 4
%79 = sub nsw i32 %78, 1
%80 = mul nsw i32 %79, 16
%81 = add nsw i32 446, %80
%82 = load i32, ptr @SEEK_SET, align 4
%83 = call i64 @lseek(i32 noundef %77, i32 noundef %81, i32 noundef %82)
%84 = icmp slt i64 %83, 0
br i1 %84, label %85, label %89
85: ; preds = %76
%86 = load i32, ptr @errno, align 4
%87 = call ptr @strerror(i32 noundef %86)
%88 = call i32 (ptr, ptr, ...) @die(ptr noundef @.str.5, ptr noundef %87)
br label %89
89: ; preds = %85, %76
%90 = load i32, ptr %7, align 4
%91 = call i32 @read(i32 noundef %90, ptr noundef %10, i32 noundef 1)
%92 = icmp ne i32 %91, 1
br i1 %92, label %93, label %97
93: ; preds = %89
%94 = load i32, ptr @errno, align 4
%95 = call ptr @strerror(i32 noundef %94)
%96 = call i32 (ptr, ptr, ...) @die(ptr noundef @.str.6, ptr noundef %95)
br label %97
97: ; preds = %93, %89
%98 = load i8, ptr %10, align 1
%99 = zext i8 %98 to i32
%100 = icmp eq i32 %99, 128
br i1 %100, label %101, label %108
101: ; preds = %97
%102 = load ptr, ptr %5, align 8
%103 = getelementptr inbounds ptr, ptr %102, i64 1
%104 = load ptr, ptr %103, align 8
%105 = load i32, ptr %9, align 4
%106 = call i32 @printf(ptr noundef @.str.7, ptr noundef %104, i32 noundef %105)
%107 = call i32 @exit(i32 noundef 0) #3
unreachable
108: ; preds = %97
br label %109
109: ; preds = %108
%110 = load i32, ptr %9, align 4
%111 = add nsw i32 %110, 1
store i32 %111, ptr %9, align 4
%112 = load i32, ptr %9, align 4
%113 = icmp sle i32 %112, 4
br i1 %113, label %76, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %109
br label %114
114: ; preds = %._crit_edge, %73
%115 = load ptr, ptr %5, align 8
%116 = getelementptr inbounds ptr, ptr %115, i64 1
%117 = load ptr, ptr %116, align 8
%118 = call i32 (ptr, ptr, ...) @die(ptr noundef @.str.8, ptr noundef %117)
br label %119
119: ; preds = %114, %70
%120 = load ptr, ptr %5, align 8
%121 = getelementptr inbounds ptr, ptr %120, i64 2
%122 = load ptr, ptr %121, align 8
%123 = call i32 @atoi(ptr noundef %122)
store i32 %123, ptr %8, align 4
%124 = load i32, ptr %8, align 4
%125 = icmp slt i32 %124, 1
br i1 %125, label %129, label %126
126: ; preds = %119
%127 = load i32, ptr %8, align 4
%128 = icmp sgt i32 %127, 4
br i1 %128, label %129, label %134
129: ; preds = %126, %119
%130 = load ptr, ptr %5, align 8
%131 = getelementptr inbounds ptr, ptr %130, i64 2
%132 = load ptr, ptr %131, align 8
%133 = call i32 (ptr, ptr, ...) @die(ptr noundef @.str.9, ptr noundef %132)
br label %134
134: ; preds = %129, %126
store i32 1, ptr %9, align 4
%135 = load i32, ptr %9, align 4
%136 = icmp sle i32 %135, 4
br i1 %136, label %.lr.ph2, label %170
.lr.ph2: ; preds = %134
br label %137
137: ; preds = %.lr.ph2, %165
%138 = load i32, ptr %7, align 4
%139 = load i32, ptr %9, align 4
%140 = sub nsw i32 %139, 1
%141 = mul nsw i32 %140, 16
%142 = add nsw i32 446, %141
%143 = load i32, ptr @SEEK_SET, align 4
%144 = call i64 @lseek(i32 noundef %138, i32 noundef %142, i32 noundef %143)
%145 = icmp slt i64 %144, 0
br i1 %145, label %146, label %150
146: ; preds = %137
%147 = load i32, ptr @errno, align 4
%148 = call ptr @strerror(i32 noundef %147)
%149 = call i32 (ptr, ptr, ...) @die(ptr noundef @.str.5, ptr noundef %148)
br label %150
150: ; preds = %146, %137
%151 = load i32, ptr %9, align 4
%152 = load i32, ptr %8, align 4
%153 = icmp eq i32 %151, %152
%154 = zext i1 %153 to i64
%155 = select i1 %153, i32 128, i32 0
%156 = trunc i32 %155 to i8
store i8 %156, ptr %10, align 1
%157 = load i32, ptr %7, align 4
%158 = call i32 @write(i32 noundef %157, ptr noundef %10, i32 noundef 1)
%159 = icmp ne i32 %158, 1
br i1 %159, label %160, label %164
160: ; preds = %150
%161 = load i32, ptr @errno, align 4
%162 = call ptr @strerror(i32 noundef %161)
%163 = call i32 (ptr, ptr, ...) @die(ptr noundef @.str.10, ptr noundef %162)
br label %164
164: ; preds = %160, %150
br label %165
165: ; preds = %164
%166 = load i32, ptr %9, align 4
%167 = add nsw i32 %166, 1
store i32 %167, ptr %9, align 4
%168 = load i32, ptr %9, align 4
%169 = icmp sle i32 %168, 4
br i1 %169, label %137, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %165
br label %170
170: ; preds = %._crit_edge3, %134
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @die(ptr noundef, ptr noundef, ...) #1
declare ptr @strerror(i32 noundef) #1
declare i64 @fstat(i32 noundef, ptr noundef) #1
declare i32 @S_ISBLK(i32 noundef) #1
declare i64 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @write(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}
|
; ModuleID = '/tmp/tmp9jp0ztw2.c'
source_filename = "/tmp/tmp9jp0ztw2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_mm_storel_epi64(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = load i32, ptr %3, align 4
%7 = call i32 @_mm_storel_epi64(ptr noundef %5, i32 noundef %6)
ret void
}
declare i32 @_mm_storel_epi64(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/tmp9jp0ztw2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_mm_storel_epi64(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = load i32, ptr %3, align 4
%7 = call i32 @_mm_storel_epi64(ptr noundef %5, i32 noundef %6)
ret void
}
declare i32 @_mm_storel_epi64(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/tmpg0f7gnr4.c'
source_filename = "/tmp/tmpg0f7gnr4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @compar_char(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @strcmp(ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg0f7gnr4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @compar_char(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @strcmp(ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpo4zjgqsv.c'
source_filename = "/tmp/tmpo4zjgqsv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c" %s\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @displayString(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds ptr, ptr %6, i64 0
%8 = load ptr, ptr %7, align 8
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %8)
store i32 1, ptr %5, align 4
br label %10
10: ; preds = %21, %2
%11 = load i32, ptr %5, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %24
14: ; preds = %10
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds ptr, ptr %15, i64 %17
%19 = load ptr, ptr %18, align 8
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %19)
br label %21
21: ; preds = %14
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %5, align 4
br label %10, !llvm.loop !6
24: ; preds = %10
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo4zjgqsv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c" %s\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @displayString(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds ptr, ptr %6, i64 0
%8 = load ptr, ptr %7, align 8
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %8)
store i32 1, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph, label %26
.lr.ph: ; preds = %2
br label %13
13: ; preds = %.lr.ph, %20
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %14, i64 %16
%18 = load ptr, ptr %17, align 8
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %18)
br label %20
20: ; preds = %13
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %5, align 4
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %26
26: ; preds = %._crit_edge, %2
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpeiflyvnc.c'
source_filename = "/tmp/tmpeiflyvnc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memrchr(ptr noundef %0, i32 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i8, align 1
%14 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i64 %2, ptr %7, align 8
%15 = load i32, ptr %6, align 4
%16 = trunc i32 %15 to i8
store i8 %16, ptr %13, align 1
%17 = load ptr, ptr %5, align 8
%18 = load i64, ptr %7, align 8
%19 = getelementptr inbounds i8, ptr %17, i64 %18
store ptr %19, ptr %8, align 8
br label %20
20: ; preds = %41, %3
%21 = load i64, ptr %7, align 8
%22 = icmp ugt i64 %21, 0
br i1 %22, label %23, label %28
23: ; preds = %20
%24 = load ptr, ptr %8, align 8
%25 = ptrtoint ptr %24 to i64
%26 = and i64 %25, 7
%27 = icmp ne i64 %26, 0
br label %28
28: ; preds = %23, %20
%29 = phi i1 [ false, %20 ], [ %27, %23 ]
br i1 %29, label %30, label %44
30: ; preds = %28
%31 = load ptr, ptr %8, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 -1
store ptr %32, ptr %8, align 8
%33 = load i8, ptr %32, align 1
%34 = zext i8 %33 to i32
%35 = load i8, ptr %13, align 1
%36 = zext i8 %35 to i32
%37 = icmp eq i32 %34, %36
br i1 %37, label %38, label %40
38: ; preds = %30
%39 = load ptr, ptr %8, align 8
store ptr %39, ptr %4, align 8
br label %148
40: ; preds = %30
br label %41
41: ; preds = %40
%42 = load i64, ptr %7, align 8
%43 = add i64 %42, -1
store i64 %43, ptr %7, align 8
br label %20, !llvm.loop !6
44: ; preds = %28
%45 = load ptr, ptr %8, align 8
store ptr %45, ptr %9, align 8
store i64 -1, ptr %11, align 8
%46 = load i64, ptr %11, align 8
%47 = udiv i64 %46, 255
%48 = mul i64 %47, 254
%49 = shl i64 %48, 1
%50 = lshr i64 %49, 1
%51 = or i64 %50, 1
store i64 %51, ptr %11, align 8
%52 = load i8, ptr %13, align 1
%53 = zext i8 %52 to i32
%54 = load i8, ptr %13, align 1
%55 = zext i8 %54 to i32
%56 = shl i32 %55, 8
%57 = or i32 %53, %56
%58 = sext i32 %57 to i64
store i64 %58, ptr %12, align 8
%59 = load i64, ptr %12, align 8
%60 = shl i64 %59, 16
%61 = load i64, ptr %12, align 8
%62 = or i64 %61, %60
store i64 %62, ptr %12, align 8
br label %63
63: ; preds = %127, %44
%64 = load i64, ptr %7, align 8
%65 = icmp uge i64 %64, 8
br i1 %65, label %66, label %130
66: ; preds = %63
%67 = load ptr, ptr %9, align 8
%68 = getelementptr inbounds i64, ptr %67, i32 -1
store ptr %68, ptr %9, align 8
%69 = load i64, ptr %68, align 8
%70 = load i64, ptr %12, align 8
%71 = xor i64 %69, %70
store i64 %71, ptr %10, align 8
%72 = load i64, ptr %10, align 8
%73 = load i64, ptr %11, align 8
%74 = add i64 %72, %73
%75 = load i64, ptr %10, align 8
%76 = xor i64 %75, -1
%77 = xor i64 %74, %76
%78 = load i64, ptr %11, align 8
%79 = xor i64 %78, -1
%80 = and i64 %77, %79
%81 = icmp ne i64 %80, 0
br i1 %81, label %82, label %127
82: ; preds = %66
%83 = load ptr, ptr %9, align 8
store ptr %83, ptr %14, align 8
%84 = load ptr, ptr %14, align 8
%85 = getelementptr inbounds i8, ptr %84, i64 3
%86 = load i8, ptr %85, align 1
%87 = zext i8 %86 to i32
%88 = load i8, ptr %13, align 1
%89 = zext i8 %88 to i32
%90 = icmp eq i32 %87, %89
br i1 %90, label %91, label %94
91: ; preds = %82
%92 = load ptr, ptr %14, align 8
%93 = getelementptr inbounds i8, ptr %92, i64 3
store ptr %93, ptr %4, align 8
br label %148
94: ; preds = %82
%95 = load ptr, ptr %14, align 8
%96 = getelementptr inbounds i8, ptr %95, i64 2
%97 = load i8, ptr %96, align 1
%98 = zext i8 %97 to i32
%99 = load i8, ptr %13, align 1
%100 = zext i8 %99 to i32
%101 = icmp eq i32 %98, %100
br i1 %101, label %102, label %105
102: ; preds = %94
%103 = load ptr, ptr %14, align 8
%104 = getelementptr inbounds i8, ptr %103, i64 2
store ptr %104, ptr %4, align 8
br label %148
105: ; preds = %94
%106 = load ptr, ptr %14, align 8
%107 = getelementptr inbounds i8, ptr %106, i64 1
%108 = load i8, ptr %107, align 1
%109 = zext i8 %108 to i32
%110 = load i8, ptr %13, align 1
%111 = zext i8 %110 to i32
%112 = icmp eq i32 %109, %111
br i1 %112, label %113, label %116
113: ; preds = %105
%114 = load ptr, ptr %14, align 8
%115 = getelementptr inbounds i8, ptr %114, i64 1
store ptr %115, ptr %4, align 8
br label %148
116: ; preds = %105
%117 = load ptr, ptr %14, align 8
%118 = getelementptr inbounds i8, ptr %117, i64 0
%119 = load i8, ptr %118, align 1
%120 = zext i8 %119 to i32
%121 = load i8, ptr %13, align 1
%122 = zext i8 %121 to i32
%123 = icmp eq i32 %120, %122
br i1 %123, label %124, label %126
124: ; preds = %116
%125 = load ptr, ptr %14, align 8
store ptr %125, ptr %4, align 8
br label %148
126: ; preds = %116
br label %127
127: ; preds = %126, %66
%128 = load i64, ptr %7, align 8
%129 = sub i64 %128, 8
store i64 %129, ptr %7, align 8
br label %63, !llvm.loop !8
130: ; preds = %63
%131 = load ptr, ptr %9, align 8
store ptr %131, ptr %8, align 8
br label %132
132: ; preds = %146, %130
%133 = load i64, ptr %7, align 8
%134 = add i64 %133, -1
store i64 %134, ptr %7, align 8
%135 = icmp ugt i64 %133, 0
br i1 %135, label %136, label %147
136: ; preds = %132
%137 = load ptr, ptr %8, align 8
%138 = getelementptr inbounds i8, ptr %137, i32 -1
store ptr %138, ptr %8, align 8
%139 = load i8, ptr %138, align 1
%140 = zext i8 %139 to i32
%141 = load i8, ptr %13, align 1
%142 = zext i8 %141 to i32
%143 = icmp eq i32 %140, %142
br i1 %143, label %144, label %146
144: ; preds = %136
%145 = load ptr, ptr %8, align 8
store ptr %145, ptr %4, align 8
br label %148
146: ; preds = %136
br label %132, !llvm.loop !9
147: ; preds = %132
store ptr null, ptr %4, align 8
br label %148
148: ; preds = %147, %144, %124, %113, %102, %91, %38
%149 = load ptr, ptr %4, align 8
ret ptr %149
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpeiflyvnc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memrchr(ptr noundef %0, i32 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i8, align 1
%14 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i64 %2, ptr %7, align 8
%15 = load i32, ptr %6, align 4
%16 = trunc i32 %15 to i8
store i8 %16, ptr %13, align 1
%17 = load ptr, ptr %5, align 8
%18 = load i64, ptr %7, align 8
%19 = getelementptr inbounds i8, ptr %17, i64 %18
store ptr %19, ptr %8, align 8
br label %20
20: ; preds = %41, %3
%21 = load i64, ptr %7, align 8
%22 = icmp ugt i64 %21, 0
br i1 %22, label %23, label %28
23: ; preds = %20
%24 = load ptr, ptr %8, align 8
%25 = ptrtoint ptr %24 to i64
%26 = and i64 %25, 7
%27 = icmp ne i64 %26, 0
br label %28
28: ; preds = %23, %20
%29 = phi i1 [ false, %20 ], [ %27, %23 ]
br i1 %29, label %30, label %44
30: ; preds = %28
%31 = load ptr, ptr %8, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 -1
store ptr %32, ptr %8, align 8
%33 = load i8, ptr %32, align 1
%34 = zext i8 %33 to i32
%35 = load i8, ptr %13, align 1
%36 = zext i8 %35 to i32
%37 = icmp eq i32 %34, %36
br i1 %37, label %38, label %40
38: ; preds = %30
%39 = load ptr, ptr %8, align 8
store ptr %39, ptr %4, align 8
br label %151
40: ; preds = %30
br label %41
41: ; preds = %40
%42 = load i64, ptr %7, align 8
%43 = add i64 %42, -1
store i64 %43, ptr %7, align 8
br label %20, !llvm.loop !6
44: ; preds = %28
%45 = load ptr, ptr %8, align 8
store ptr %45, ptr %9, align 8
store i64 -1, ptr %11, align 8
%46 = load i64, ptr %11, align 8
%47 = udiv i64 %46, 255
%48 = mul i64 %47, 254
%49 = shl i64 %48, 1
%50 = lshr i64 %49, 1
%51 = or i64 %50, 1
store i64 %51, ptr %11, align 8
%52 = load i8, ptr %13, align 1
%53 = zext i8 %52 to i32
%54 = load i8, ptr %13, align 1
%55 = zext i8 %54 to i32
%56 = shl i32 %55, 8
%57 = or i32 %53, %56
%58 = sext i32 %57 to i64
store i64 %58, ptr %12, align 8
%59 = load i64, ptr %12, align 8
%60 = shl i64 %59, 16
%61 = load i64, ptr %12, align 8
%62 = or i64 %61, %60
store i64 %62, ptr %12, align 8
%63 = load i64, ptr %7, align 8
%64 = icmp uge i64 %63, 8
br i1 %64, label %.lr.ph, label %131
.lr.ph: ; preds = %44
br label %65
65: ; preds = %.lr.ph, %126
%66 = load ptr, ptr %9, align 8
%67 = getelementptr inbounds i64, ptr %66, i32 -1
store ptr %67, ptr %9, align 8
%68 = load i64, ptr %67, align 8
%69 = load i64, ptr %12, align 8
%70 = xor i64 %68, %69
store i64 %70, ptr %10, align 8
%71 = load i64, ptr %10, align 8
%72 = load i64, ptr %11, align 8
%73 = add i64 %71, %72
%74 = load i64, ptr %10, align 8
%75 = xor i64 %74, -1
%76 = xor i64 %73, %75
%77 = load i64, ptr %11, align 8
%78 = xor i64 %77, -1
%79 = and i64 %76, %78
%80 = icmp ne i64 %79, 0
br i1 %80, label %81, label %126
81: ; preds = %65
%82 = load ptr, ptr %9, align 8
store ptr %82, ptr %14, align 8
%83 = load ptr, ptr %14, align 8
%84 = getelementptr inbounds i8, ptr %83, i64 3
%85 = load i8, ptr %84, align 1
%86 = zext i8 %85 to i32
%87 = load i8, ptr %13, align 1
%88 = zext i8 %87 to i32
%89 = icmp eq i32 %86, %88
br i1 %89, label %90, label %93
90: ; preds = %81
%91 = load ptr, ptr %14, align 8
%92 = getelementptr inbounds i8, ptr %91, i64 3
store ptr %92, ptr %4, align 8
br label %151
93: ; preds = %81
%94 = load ptr, ptr %14, align 8
%95 = getelementptr inbounds i8, ptr %94, i64 2
%96 = load i8, ptr %95, align 1
%97 = zext i8 %96 to i32
%98 = load i8, ptr %13, align 1
%99 = zext i8 %98 to i32
%100 = icmp eq i32 %97, %99
br i1 %100, label %101, label %104
101: ; preds = %93
%102 = load ptr, ptr %14, align 8
%103 = getelementptr inbounds i8, ptr %102, i64 2
store ptr %103, ptr %4, align 8
br label %151
104: ; preds = %93
%105 = load ptr, ptr %14, align 8
%106 = getelementptr inbounds i8, ptr %105, i64 1
%107 = load i8, ptr %106, align 1
%108 = zext i8 %107 to i32
%109 = load i8, ptr %13, align 1
%110 = zext i8 %109 to i32
%111 = icmp eq i32 %108, %110
br i1 %111, label %112, label %115
112: ; preds = %104
%113 = load ptr, ptr %14, align 8
%114 = getelementptr inbounds i8, ptr %113, i64 1
store ptr %114, ptr %4, align 8
br label %151
115: ; preds = %104
%116 = load ptr, ptr %14, align 8
%117 = getelementptr inbounds i8, ptr %116, i64 0
%118 = load i8, ptr %117, align 1
%119 = zext i8 %118 to i32
%120 = load i8, ptr %13, align 1
%121 = zext i8 %120 to i32
%122 = icmp eq i32 %119, %121
br i1 %122, label %123, label %125
123: ; preds = %115
%124 = load ptr, ptr %14, align 8
store ptr %124, ptr %4, align 8
br label %151
125: ; preds = %115
br label %126
126: ; preds = %125, %65
%127 = load i64, ptr %7, align 8
%128 = sub i64 %127, 8
store i64 %128, ptr %7, align 8
%129 = load i64, ptr %7, align 8
%130 = icmp uge i64 %129, 8
br i1 %130, label %65, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %126
br label %131
131: ; preds = %._crit_edge, %44
%132 = load ptr, ptr %9, align 8
store ptr %132, ptr %8, align 8
%133 = load i64, ptr %7, align 8
%134 = add i64 %133, -1
store i64 %134, ptr %7, align 8
%135 = icmp ugt i64 %133, 0
br i1 %135, label %.lr.ph2, label %150
.lr.ph2: ; preds = %131
br label %140
136: ; preds = %140
%137 = load i64, ptr %7, align 8
%138 = add i64 %137, -1
store i64 %138, ptr %7, align 8
%139 = icmp ugt i64 %137, 0
br i1 %139, label %140, label %._crit_edge3, !llvm.loop !9
140: ; preds = %.lr.ph2, %136
%141 = load ptr, ptr %8, align 8
%142 = getelementptr inbounds i8, ptr %141, i32 -1
store ptr %142, ptr %8, align 8
%143 = load i8, ptr %142, align 1
%144 = zext i8 %143 to i32
%145 = load i8, ptr %13, align 1
%146 = zext i8 %145 to i32
%147 = icmp eq i32 %144, %146
br i1 %147, label %148, label %136
148: ; preds = %140
%149 = load ptr, ptr %8, align 8
store ptr %149, ptr %4, align 8
br label %151
._crit_edge3: ; preds = %136
br label %150
150: ; preds = %._crit_edge3, %131
store ptr null, ptr %4, align 8
br label %151
151: ; preds = %150, %148, %123, %112, %101, %90, %38
%152 = load ptr, ptr %4, align 8
ret ptr %152
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp3r473qo7.c'
source_filename = "/tmp/tmp3r473qo7.c"
target datalayout = "e-m:e-p270: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/tmp3r473qo7.c"
target datalayout = "e-m:e-p270: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/tmpb68jef_3.c'
source_filename = "/tmp/tmpb68jef_3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@INADDR_ANY = 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
@.str = private unnamed_addr constant [6 x i8] c"error\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"listen error\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @create_serv(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca %struct.sockaddr_in, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 1, ptr %7, align 4
%8 = call i32 @bzero(ptr noundef %6, i32 noundef 4)
%9 = load i32, ptr %5, align 4
%10 = call i32 @htons(i32 noundef %9)
%11 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 2
store i32 %10, ptr %11, align 4
%12 = load i32, ptr @AF_INET, align 4
%13 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 1
store i32 %12, ptr %13, align 4
%14 = load i32, ptr @INADDR_ANY, align 4
%15 = call i32 @htonl(i32 noundef %14)
%16 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 0
%17 = getelementptr inbounds %struct.TYPE_2__, ptr %16, i32 0, i32 0
store i32 %15, ptr %17, align 4
%18 = load i32, ptr %4, align 4
%19 = load i32, ptr @SOL_SOCKET, align 4
%20 = load i32, ptr @SO_REUSEADDR, align 4
%21 = call i32 @setsockopt(i32 noundef %18, i32 noundef %19, i32 noundef %20, ptr noundef %7, i32 noundef 4)
%22 = load i32, ptr %4, align 4
%23 = call i64 @bind(i32 noundef %22, ptr noundef %6, i32 noundef 4)
%24 = icmp slt i64 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %2
%26 = call i32 @perror(ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %34
27: ; preds = %2
%28 = load i32, ptr %4, align 4
%29 = call i64 @listen(i32 noundef %28, i32 noundef 5)
%30 = icmp slt i64 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %27
%32 = call i32 @perror(ptr noundef @.str.1)
store i32 0, ptr %3, align 4
br label %34
33: ; preds = %27
store i32 1, ptr %3, align 4
br label %34
34: ; preds = %33, %31, %25
%35 = load i32, ptr %3, align 4
ret i32 %35
}
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @listen(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/tmpb68jef_3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@INADDR_ANY = 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
@.str = private unnamed_addr constant [6 x i8] c"error\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"listen error\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @create_serv(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca %struct.sockaddr_in, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 1, ptr %7, align 4
%8 = call i32 @bzero(ptr noundef %6, i32 noundef 4)
%9 = load i32, ptr %5, align 4
%10 = call i32 @htons(i32 noundef %9)
%11 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 2
store i32 %10, ptr %11, align 4
%12 = load i32, ptr @AF_INET, align 4
%13 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 1
store i32 %12, ptr %13, align 4
%14 = load i32, ptr @INADDR_ANY, align 4
%15 = call i32 @htonl(i32 noundef %14)
%16 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 0
%17 = getelementptr inbounds %struct.TYPE_2__, ptr %16, i32 0, i32 0
store i32 %15, ptr %17, align 4
%18 = load i32, ptr %4, align 4
%19 = load i32, ptr @SOL_SOCKET, align 4
%20 = load i32, ptr @SO_REUSEADDR, align 4
%21 = call i32 @setsockopt(i32 noundef %18, i32 noundef %19, i32 noundef %20, ptr noundef %7, i32 noundef 4)
%22 = load i32, ptr %4, align 4
%23 = call i64 @bind(i32 noundef %22, ptr noundef %6, i32 noundef 4)
%24 = icmp slt i64 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %2
%26 = call i32 @perror(ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %34
27: ; preds = %2
%28 = load i32, ptr %4, align 4
%29 = call i64 @listen(i32 noundef %28, i32 noundef 5)
%30 = icmp slt i64 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %27
%32 = call i32 @perror(ptr noundef @.str.1)
store i32 0, ptr %3, align 4
br label %34
33: ; preds = %27
store i32 1, ptr %3, align 4
br label %34
34: ; preds = %33, %31, %25
%35 = load i32, ptr %3, align 4
ret i32 %35
}
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @listen(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/tmph7pxcycj.c'
source_filename = "/tmp/tmph7pxcycj.c"
target datalayout = "e-m:e-p270: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/tmph7pxcycj.c"
target datalayout = "e-m:e-p270: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/tmpdm_sb9e_.c'
source_filename = "/tmp/tmpdm_sb9e_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CEC_MSG_ACTIVE_SOURCE = dso_local global i32 0, align 4
@CEC_MSG_REQUEST_ACTIVE_SOURCE = 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/tmpdm_sb9e_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CEC_MSG_ACTIVE_SOURCE = dso_local global i32 0, align 4
@CEC_MSG_REQUEST_ACTIVE_SOURCE = 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/tmpi_oa3w1h.c'
source_filename = "/tmp/tmpi_oa3w1h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"h:p:m:\00", align 1
@optarg = dso_local global ptr null, align 8
@.str.1 = private unnamed_addr constant [63 x i8] c"USAGE: netshare [-h host] [-p port] [-m mime/type] <filename>\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [34 x i8] c"Unknown option character `\\x%x'.\0A\00", align 1
@optopt = dso_local global i32 0, align 4
@optind = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @parse_args(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%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 i32, align 4
store i32 %0, ptr %7, align 4
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
br label %14
14: ; preds = %36, %6
%15 = load i32, ptr %7, align 4
%16 = load ptr, ptr %8, align 8
%17 = call i32 @getopt(i32 noundef %15, ptr noundef %16, ptr noundef @.str)
store i32 %17, ptr %13, align 4
%18 = icmp ne i32 %17, -1
br i1 %18, label %19, label %37
19: ; preds = %14
%20 = load i32, ptr %13, align 4
switch i32 %20, label %36 [
i32 104, label %21
i32 112, label %24
i32 109, label %28
i32 63, label %31
]
21: ; preds = %19
%22 = load ptr, ptr @optarg, align 8
%23 = load ptr, ptr %9, align 8
store ptr %22, ptr %23, align 8
br label %36
24: ; preds = %19
%25 = load ptr, ptr @optarg, align 8
%26 = call i32 @atoi(ptr noundef %25)
%27 = load ptr, ptr %10, align 8
store i32 %26, ptr %27, align 4
br label %36
28: ; preds = %19
%29 = load ptr, ptr @optarg, align 8
%30 = load ptr, ptr %11, align 8
store ptr %29, ptr %30, align 8
br label %36
31: ; preds = %19
%32 = call i32 @printf(ptr noundef @.str.1)
%33 = load i32, ptr @stderr, align 4
%34 = load i32, ptr @optopt, align 4
%35 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %33, ptr noundef @.str.2, i32 noundef %34)
br label %36
36: ; preds = %31, %19, %28, %24, %21
br label %14, !llvm.loop !6
37: ; preds = %14
%38 = load i32, ptr @optind, align 4
%39 = load i32, ptr %7, align 4
%40 = icmp sge i32 %38, %39
br i1 %40, label %41, label %46
41: ; preds = %37
%42 = load i32, ptr @stderr, align 4
%43 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %42, ptr noundef @.str.1)
%44 = load i32, ptr @EXIT_FAILURE, align 4
%45 = call i32 @exit(i32 noundef %44) #3
unreachable
46: ; preds = %37
%47 = load ptr, ptr %8, align 8
%48 = load i32, ptr @optind, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds ptr, ptr %47, i64 %49
%51 = load ptr, ptr %50, align 8
%52 = load ptr, ptr %12, align 8
store ptr %51, ptr %52, align 8
ret void
}
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi_oa3w1h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"h:p:m:\00", align 1
@optarg = dso_local global ptr null, align 8
@.str.1 = private unnamed_addr constant [63 x i8] c"USAGE: netshare [-h host] [-p port] [-m mime/type] <filename>\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [34 x i8] c"Unknown option character `\\x%x'.\0A\00", align 1
@optopt = dso_local global i32 0, align 4
@optind = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @parse_args(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%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 i32, align 4
store i32 %0, ptr %7, align 4
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%14 = load i32, ptr %7, align 4
%15 = load ptr, ptr %8, align 8
%16 = call i32 @getopt(i32 noundef %14, ptr noundef %15, ptr noundef @.str)
store i32 %16, ptr %13, align 4
%17 = icmp ne i32 %16, -1
br i1 %17, label %.lr.ph, label %40
.lr.ph: ; preds = %6
br label %18
18: ; preds = %.lr.ph, %35
%19 = load i32, ptr %13, align 4
switch i32 %19, label %35 [
i32 104, label %20
i32 112, label %23
i32 109, label %27
i32 63, label %30
]
20: ; preds = %18
%21 = load ptr, ptr @optarg, align 8
%22 = load ptr, ptr %9, align 8
store ptr %21, ptr %22, align 8
br label %35
23: ; preds = %18
%24 = load ptr, ptr @optarg, align 8
%25 = call i32 @atoi(ptr noundef %24)
%26 = load ptr, ptr %10, align 8
store i32 %25, ptr %26, align 4
br label %35
27: ; preds = %18
%28 = load ptr, ptr @optarg, align 8
%29 = load ptr, ptr %11, align 8
store ptr %28, ptr %29, align 8
br label %35
30: ; preds = %18
%31 = call i32 @printf(ptr noundef @.str.1)
%32 = load i32, ptr @stderr, align 4
%33 = load i32, ptr @optopt, align 4
%34 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %32, ptr noundef @.str.2, i32 noundef %33)
br label %35
35: ; preds = %30, %27, %23, %20, %18
%36 = load i32, ptr %7, align 4
%37 = load ptr, ptr %8, align 8
%38 = call i32 @getopt(i32 noundef %36, ptr noundef %37, ptr noundef @.str)
store i32 %38, ptr %13, align 4
%39 = icmp ne i32 %38, -1
br i1 %39, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %40
40: ; preds = %._crit_edge, %6
%41 = load i32, ptr @optind, align 4
%42 = load i32, ptr %7, align 4
%43 = icmp sge i32 %41, %42
br i1 %43, label %44, label %49
44: ; preds = %40
%45 = load i32, ptr @stderr, align 4
%46 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %45, ptr noundef @.str.1)
%47 = load i32, ptr @EXIT_FAILURE, align 4
%48 = call i32 @exit(i32 noundef %47) #3
unreachable
49: ; preds = %40
%50 = load ptr, ptr %8, align 8
%51 = load i32, ptr @optind, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds ptr, ptr %50, i64 %52
%54 = load ptr, ptr %53, align 8
%55 = load ptr, ptr %12, align 8
store ptr %54, ptr %55, align 8
ret void
}
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpw4i38xzd.c'
source_filename = "/tmp/tmpw4i38xzd.c"
target datalayout = "e-m:e-p270: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
@.str = private unnamed_addr constant [26 x i8] c"\0Anc: %d \0Anl: %d \0Anw: %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
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %36, %0
%8 = call i32 (...) @getchar()
store i32 %8, ptr %2, align 4
%9 = load i32, ptr @EOF, align 4
%10 = icmp ne i32 %8, %9
br i1 %10, label %11, label %37
11: ; preds = %7
%12 = load i32, ptr %5, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %5, align 4
%14 = load i32, ptr %2, align 4
%15 = icmp eq i32 %14, 10
br i1 %15, label %16, label %19
16: ; preds = %11
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %3, align 4
br label %19
19: ; preds = %16, %11
%20 = load i32, ptr %2, align 4
%21 = icmp eq i32 %20, 32
br i1 %21, label %28, label %22
22: ; preds = %19
%23 = load i32, ptr %2, align 4
%24 = icmp eq i32 %23, 10
br i1 %24, label %28, label %25
25: ; preds = %22
%26 = load i32, ptr %2, align 4
%27 = icmp eq i32 %26, 9
br i1 %27, label %28, label %29
28: ; preds = %25, %22, %19
store i32 0, ptr %6, align 4
br label %36
29: ; preds = %25
%30 = load i32, ptr %6, align 4
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %29
store i32 1, ptr %6, align 4
%33 = load i32, ptr %4, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %4, align 4
br label %35
35: ; preds = %32, %29
br label %36
36: ; preds = %35, %28
br label %7, !llvm.loop !6
37: ; preds = %7
%38 = load i32, ptr %5, align 4
%39 = load i32, ptr %3, align 4
%40 = load i32, ptr %4, align 4
%41 = call i32 @printf(ptr noundef @.str, i32 noundef %38, i32 noundef %39, i32 noundef %40)
%42 = load i32, ptr %1, align 4
ret i32 %42
}
declare i32 @getchar(...) #1
declare i32 @printf(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw4i38xzd.c"
target datalayout = "e-m:e-p270: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
@.str = private unnamed_addr constant [26 x i8] c"\0Anc: %d \0Anl: %d \0Anw: %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
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%7 = call i32 (...) @getchar()
store i32 %7, ptr %2, align 4
%8 = load i32, ptr @EOF, align 4
%9 = icmp ne i32 %7, %8
br i1 %9, label %.lr.ph, label %39
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %35
%11 = load i32, ptr %5, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %5, align 4
%13 = load i32, ptr %2, align 4
%14 = icmp eq i32 %13, 10
br i1 %14, label %15, label %18
15: ; preds = %10
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %3, align 4
br label %18
18: ; preds = %15, %10
%19 = load i32, ptr %2, align 4
%20 = icmp eq i32 %19, 32
br i1 %20, label %27, label %21
21: ; preds = %18
%22 = load i32, ptr %2, align 4
%23 = icmp eq i32 %22, 10
br i1 %23, label %27, label %24
24: ; preds = %21
%25 = load i32, ptr %2, align 4
%26 = icmp eq i32 %25, 9
br i1 %26, label %27, label %28
27: ; preds = %24, %21, %18
store i32 0, ptr %6, align 4
br label %35
28: ; preds = %24
%29 = load i32, ptr %6, align 4
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %28
store i32 1, ptr %6, align 4
%32 = load i32, ptr %4, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %4, align 4
br label %34
34: ; preds = %31, %28
br label %35
35: ; preds = %34, %27
%36 = call i32 (...) @getchar()
store i32 %36, ptr %2, align 4
%37 = load i32, ptr @EOF, align 4
%38 = icmp ne i32 %36, %37
br i1 %38, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %39
39: ; preds = %._crit_edge, %0
%40 = load i32, ptr %5, align 4
%41 = load i32, ptr %3, align 4
%42 = load i32, ptr %4, align 4
%43 = call i32 @printf(ptr noundef @.str, i32 noundef %40, i32 noundef %41, i32 noundef %42)
%44 = load i32, ptr %1, align 4
ret i32 %44
}
declare i32 @getchar(...) #1
declare i32 @printf(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpt2rjk6f5.c'
source_filename = "/tmp/tmpt2rjk6f5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vp8_dequant_idct_add_y_block_neon(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
store i32 0, ptr %11, align 4
br label %12
12: ; preds = %83, %5
%13 = load i32, ptr %11, align 4
%14 = icmp slt i32 %13, 4
br i1 %14, label %15, label %86
15: ; preds = %12
%16 = load ptr, ptr %10, align 8
%17 = getelementptr inbounds i16, ptr %16, i64 0
%18 = load i16, ptr %17, align 2
%19 = icmp ne i16 %18, 0
br i1 %19, label %20, label %42
20: ; preds = %15
%21 = load ptr, ptr %10, align 8
%22 = getelementptr inbounds i16, ptr %21, i64 0
%23 = load i16, ptr %22, align 2
%24 = sext i16 %23 to i32
%25 = and i32 %24, 65278
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %33
27: ; preds = %20
%28 = load ptr, ptr %6, align 8
%29 = load ptr, ptr %7, align 8
%30 = load ptr, ptr %8, align 8
%31 = load i32, ptr %9, align 4
%32 = call i32 @idct_dequant_full_2x_neon(ptr noundef %28, ptr noundef %29, ptr noundef %30, i32 noundef %31)
br label %41
33: ; preds = %20
%34 = load ptr, ptr %6, align 8
%35 = load ptr, ptr %7, align 8
%36 = getelementptr inbounds i16, ptr %35, i64 0
%37 = load i16, ptr %36, align 2
%38 = load ptr, ptr %8, align 8
%39 = load i32, ptr %9, align 4
%40 = call i32 @idct_dequant_0_2x_neon(ptr noundef %34, i16 noundef signext %37, ptr noundef %38, i32 noundef %39)
br label %41
41: ; preds = %33, %27
br label %42
42: ; preds = %41, %15
%43 = load ptr, ptr %10, align 8
%44 = getelementptr inbounds i16, ptr %43, i64 1
%45 = load i16, ptr %44, align 2
%46 = icmp ne i16 %45, 0
br i1 %46, label %47, label %73
47: ; preds = %42
%48 = load ptr, ptr %10, align 8
%49 = getelementptr inbounds i16, ptr %48, i64 1
%50 = load i16, ptr %49, align 2
%51 = sext i16 %50 to i32
%52 = and i32 %51, 65278
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %62
54: ; preds = %47
%55 = load ptr, ptr %6, align 8
%56 = getelementptr inbounds i16, ptr %55, i64 32
%57 = load ptr, ptr %7, align 8
%58 = load ptr, ptr %8, align 8
%59 = getelementptr inbounds i8, ptr %58, i64 8
%60 = load i32, ptr %9, align 4
%61 = call i32 @idct_dequant_full_2x_neon(ptr noundef %56, ptr noundef %57, ptr noundef %59, i32 noundef %60)
br label %72
62: ; preds = %47
%63 = load ptr, ptr %6, align 8
%64 = getelementptr inbounds i16, ptr %63, i64 32
%65 = load ptr, ptr %7, align 8
%66 = getelementptr inbounds i16, ptr %65, i64 0
%67 = load i16, ptr %66, align 2
%68 = load ptr, ptr %8, align 8
%69 = getelementptr inbounds i8, ptr %68, i64 8
%70 = load i32, ptr %9, align 4
%71 = call i32 @idct_dequant_0_2x_neon(ptr noundef %64, i16 noundef signext %67, ptr noundef %69, i32 noundef %70)
br label %72
72: ; preds = %62, %54
br label %73
73: ; preds = %72, %42
%74 = load ptr, ptr %6, align 8
%75 = getelementptr inbounds i16, ptr %74, i64 64
store ptr %75, ptr %6, align 8
%76 = load i32, ptr %9, align 4
%77 = mul nsw i32 4, %76
%78 = load ptr, ptr %8, align 8
%79 = sext i32 %77 to i64
%80 = getelementptr inbounds i8, ptr %78, i64 %79
store ptr %80, ptr %8, align 8
%81 = load ptr, ptr %10, align 8
%82 = getelementptr inbounds i8, ptr %81, i64 4
store ptr %82, ptr %10, align 8
br label %83
83: ; preds = %73
%84 = load i32, ptr %11, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %11, align 4
br label %12, !llvm.loop !6
86: ; preds = %12
ret void
}
declare i32 @idct_dequant_full_2x_neon(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @idct_dequant_0_2x_neon(ptr noundef, i16 noundef signext, 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/tmpt2rjk6f5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vp8_dequant_idct_add_y_block_neon(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
store i32 0, ptr %11, align 4
%12 = load i32, ptr %11, align 4
%13 = icmp slt i32 %12, 4
br i1 %13, label %.lr.ph, label %87
.lr.ph: ; preds = %5
br label %14
14: ; preds = %.lr.ph, %82
%15 = load ptr, ptr %10, align 8
%16 = getelementptr inbounds i16, ptr %15, i64 0
%17 = load i16, ptr %16, align 2
%18 = icmp ne i16 %17, 0
br i1 %18, label %19, label %41
19: ; preds = %14
%20 = load ptr, ptr %10, align 8
%21 = getelementptr inbounds i16, ptr %20, i64 0
%22 = load i16, ptr %21, align 2
%23 = sext i16 %22 to i32
%24 = and i32 %23, 65278
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %32
26: ; preds = %19
%27 = load ptr, ptr %6, align 8
%28 = load ptr, ptr %7, align 8
%29 = load ptr, ptr %8, align 8
%30 = load i32, ptr %9, align 4
%31 = call i32 @idct_dequant_full_2x_neon(ptr noundef %27, ptr noundef %28, ptr noundef %29, i32 noundef %30)
br label %40
32: ; preds = %19
%33 = load ptr, ptr %6, align 8
%34 = load ptr, ptr %7, align 8
%35 = getelementptr inbounds i16, ptr %34, i64 0
%36 = load i16, ptr %35, align 2
%37 = load ptr, ptr %8, align 8
%38 = load i32, ptr %9, align 4
%39 = call i32 @idct_dequant_0_2x_neon(ptr noundef %33, i16 noundef signext %36, ptr noundef %37, i32 noundef %38)
br label %40
40: ; preds = %32, %26
br label %41
41: ; preds = %40, %14
%42 = load ptr, ptr %10, align 8
%43 = getelementptr inbounds i16, ptr %42, i64 1
%44 = load i16, ptr %43, align 2
%45 = icmp ne i16 %44, 0
br i1 %45, label %46, label %72
46: ; preds = %41
%47 = load ptr, ptr %10, align 8
%48 = getelementptr inbounds i16, ptr %47, i64 1
%49 = load i16, ptr %48, align 2
%50 = sext i16 %49 to i32
%51 = and i32 %50, 65278
%52 = icmp ne i32 %51, 0
br i1 %52, label %53, label %61
53: ; preds = %46
%54 = load ptr, ptr %6, align 8
%55 = getelementptr inbounds i16, ptr %54, i64 32
%56 = load ptr, ptr %7, align 8
%57 = load ptr, ptr %8, align 8
%58 = getelementptr inbounds i8, ptr %57, i64 8
%59 = load i32, ptr %9, align 4
%60 = call i32 @idct_dequant_full_2x_neon(ptr noundef %55, ptr noundef %56, ptr noundef %58, i32 noundef %59)
br label %71
61: ; preds = %46
%62 = load ptr, ptr %6, align 8
%63 = getelementptr inbounds i16, ptr %62, i64 32
%64 = load ptr, ptr %7, align 8
%65 = getelementptr inbounds i16, ptr %64, i64 0
%66 = load i16, ptr %65, align 2
%67 = load ptr, ptr %8, align 8
%68 = getelementptr inbounds i8, ptr %67, i64 8
%69 = load i32, ptr %9, align 4
%70 = call i32 @idct_dequant_0_2x_neon(ptr noundef %63, i16 noundef signext %66, ptr noundef %68, i32 noundef %69)
br label %71
71: ; preds = %61, %53
br label %72
72: ; preds = %71, %41
%73 = load ptr, ptr %6, align 8
%74 = getelementptr inbounds i16, ptr %73, i64 64
store ptr %74, ptr %6, align 8
%75 = load i32, ptr %9, align 4
%76 = mul nsw i32 4, %75
%77 = load ptr, ptr %8, align 8
%78 = sext i32 %76 to i64
%79 = getelementptr inbounds i8, ptr %77, i64 %78
store ptr %79, ptr %8, align 8
%80 = load ptr, ptr %10, align 8
%81 = getelementptr inbounds i8, ptr %80, i64 4
store ptr %81, ptr %10, align 8
br label %82
82: ; preds = %72
%83 = load i32, ptr %11, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %11, align 4
%85 = load i32, ptr %11, align 4
%86 = icmp slt i32 %85, 4
br i1 %86, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %82
br label %87
87: ; preds = %._crit_edge, %5
ret void
}
declare i32 @idct_dequant_full_2x_neon(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @idct_dequant_0_2x_neon(ptr noundef, i16 noundef signext, 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/tmpro9rdglj.c'
source_filename = "/tmp/tmpro9rdglj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINTR = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpro9rdglj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINTR = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0v4k1av2.c'
source_filename = "/tmp/tmp0v4k1av2.c"
target datalayout = "e-m:e-p270: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, i64 }
@EAGAIN = 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 @read_t(i32 noundef %0, ptr noundef %1, i64 noundef %2, double noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca double, align 8
%10 = alloca i32, align 4
%11 = alloca %struct.timeval, align 8
%12 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store double %3, ptr %9, align 8
%13 = getelementptr inbounds %struct.timeval, ptr %11, i32 0, i32 0
%14 = load double, ptr %9, align 8
%15 = fptosi double %14 to i64
store i64 %15, ptr %13, align 8
%16 = getelementptr inbounds %struct.timeval, ptr %11, i32 0, i32 1
%17 = load double, ptr %9, align 8
%18 = fmul double %17, 1.000000e+06
%19 = fptosi double %18 to i64
%20 = srem i64 %19, 1000000
store i64 %20, ptr %16, align 8
%21 = call i32 @FD_ZERO(ptr noundef %10)
%22 = load i32, ptr %6, align 4
%23 = call i32 @FD_SET(i32 noundef %22, ptr noundef %10)
%24 = load i32, ptr %6, align 4
%25 = add nsw i32 %24, 1
%26 = call i32 @select(i32 noundef %25, ptr noundef %10, ptr noundef null, ptr noundef null, ptr noundef %11)
store i32 %26, ptr %12, align 4
%27 = load i32, ptr %12, align 4
switch i32 %27, label %32 [
i32 -1, label %28
i32 0, label %30
]
28: ; preds = %4
%29 = load i32, ptr %12, align 4
store i32 %29, ptr %5, align 4
br label %37
30: ; preds = %4
%31 = load i32, ptr @EAGAIN, align 4
store i32 %31, ptr @errno, align 4
store i32 -1, ptr %5, align 4
br label %37
32: ; preds = %4
%33 = load i32, ptr %6, align 4
%34 = load ptr, ptr %7, align 8
%35 = load i64, ptr %8, align 8
%36 = call i32 @read(i32 noundef %33, ptr noundef %34, i64 noundef %35)
store i32 %36, ptr %5, align 4
br label %37
37: ; preds = %32, %30, %28
%38 = load i32, ptr %5, align 4
ret i32 %38
}
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @read(i32 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/tmp0v4k1av2.c"
target datalayout = "e-m:e-p270: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, i64 }
@EAGAIN = 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 @read_t(i32 noundef %0, ptr noundef %1, i64 noundef %2, double noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca double, align 8
%10 = alloca i32, align 4
%11 = alloca %struct.timeval, align 8
%12 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store double %3, ptr %9, align 8
%13 = getelementptr inbounds %struct.timeval, ptr %11, i32 0, i32 0
%14 = load double, ptr %9, align 8
%15 = fptosi double %14 to i64
store i64 %15, ptr %13, align 8
%16 = getelementptr inbounds %struct.timeval, ptr %11, i32 0, i32 1
%17 = load double, ptr %9, align 8
%18 = fmul double %17, 1.000000e+06
%19 = fptosi double %18 to i64
%20 = srem i64 %19, 1000000
store i64 %20, ptr %16, align 8
%21 = call i32 @FD_ZERO(ptr noundef %10)
%22 = load i32, ptr %6, align 4
%23 = call i32 @FD_SET(i32 noundef %22, ptr noundef %10)
%24 = load i32, ptr %6, align 4
%25 = add nsw i32 %24, 1
%26 = call i32 @select(i32 noundef %25, ptr noundef %10, ptr noundef null, ptr noundef null, ptr noundef %11)
store i32 %26, ptr %12, align 4
%27 = load i32, ptr %12, align 4
switch i32 %27, label %32 [
i32 -1, label %28
i32 0, label %30
]
28: ; preds = %4
%29 = load i32, ptr %12, align 4
store i32 %29, ptr %5, align 4
br label %37
30: ; preds = %4
%31 = load i32, ptr @EAGAIN, align 4
store i32 %31, ptr @errno, align 4
store i32 -1, ptr %5, align 4
br label %37
32: ; preds = %4
%33 = load i32, ptr %6, align 4
%34 = load ptr, ptr %7, align 8
%35 = load i64, ptr %8, align 8
%36 = call i32 @read(i32 noundef %33, ptr noundef %34, i64 noundef %35)
store i32 %36, ptr %5, align 4
br label %37
37: ; preds = %32, %30, %28
%38 = load i32, ptr %5, align 4
ret i32 %38
}
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @read(i32 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/tmpvza75ihq.c'
source_filename = "/tmp/tmpvza75ihq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @ones_to_twos_complement4(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = icmp slt i64 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i64, ptr %2, align 8
%7 = add nsw i64 %6, 1
br label %10
8: ; preds = %1
%9 = load i64, ptr %2, align 8
br label %10
10: ; preds = %8, %5
%11 = phi i64 [ %7, %5 ], [ %9, %8 ]
ret i64 %11
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvza75ihq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @ones_to_twos_complement4(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = icmp slt i64 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i64, ptr %2, align 8
%7 = add nsw i64 %6, 1
br label %10
8: ; preds = %1
%9 = load i64, ptr %2, align 8
br label %10
10: ; preds = %8, %5
%11 = phi i64 [ %7, %5 ], [ %9, %8 ]
ret i64 %11
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmn4wu9jp.c'
source_filename = "/tmp/tmpmn4wu9jp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @func_13(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
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load i64, ptr %6, align 8
%10 = call i32 @func_14(i32 noundef %7, ptr noundef %8, i64 noundef %9)
ret void
}
declare i32 @func_14(i32 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/tmpmn4wu9jp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @func_13(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
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load i64, ptr %6, align 8
%10 = call i32 @func_14(i32 noundef %7, ptr noundef %8, i64 noundef %9)
ret void
}
declare i32 @func_14(i32 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/tmp6hk0wx4f.c'
source_filename = "/tmp/tmp6hk0wx4f.c"
target datalayout = "e-m:e-p270: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.ifreq = type { %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32 }
@get_if_mac.buf = internal global [18 x i8] zeroinitializer, align 16
@SIOCGIFHWADDR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_if_mac(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = call i32 @bzero(ptr noundef @get_if_mac.buf, i32 noundef 18)
%5 = load ptr, ptr %2, align 8
%6 = load i32, ptr @SIOCGIFHWADDR, align 4
%7 = call ptr @get_ifreq(ptr noundef %5, i32 noundef %6)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = getelementptr inbounds %struct.ifreq, ptr %8, i32 0, i32 0
%10 = getelementptr inbounds %struct.TYPE_2__, ptr %9, i32 0, i32 0
%11 = call i32 @ether_ntoa(ptr noundef %10)
%12 = call i32 @strcpy(ptr noundef @get_if_mac.buf, i32 noundef %11)
ret ptr @get_if_mac.buf
}
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare ptr @get_ifreq(ptr noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, i32 noundef) #1
declare i32 @ether_ntoa(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6hk0wx4f.c"
target datalayout = "e-m:e-p270: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.ifreq = type { %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32 }
@get_if_mac.buf = internal global [18 x i8] zeroinitializer, align 16
@SIOCGIFHWADDR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_if_mac(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = call i32 @bzero(ptr noundef @get_if_mac.buf, i32 noundef 18)
%5 = load ptr, ptr %2, align 8
%6 = load i32, ptr @SIOCGIFHWADDR, align 4
%7 = call ptr @get_ifreq(ptr noundef %5, i32 noundef %6)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = getelementptr inbounds %struct.ifreq, ptr %8, i32 0, i32 0
%10 = getelementptr inbounds %struct.TYPE_2__, ptr %9, i32 0, i32 0
%11 = call i32 @ether_ntoa(ptr noundef %10)
%12 = call i32 @strcpy(ptr noundef @get_if_mac.buf, i32 noundef %11)
ret ptr @get_if_mac.buf
}
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare ptr @get_ifreq(ptr noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, i32 noundef) #1
declare i32 @ether_ntoa(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3bogmlzn.c'
source_filename = "/tmp/tmp3bogmlzn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"\0A1.- %d hours, %d minutes and %d seconds\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Section1(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = sdiv i32 %3, 3600
%5 = load i32, ptr %2, align 4
%6 = srem i32 %5, 3600
%7 = sdiv i32 %6, 60
%8 = load i32, ptr %2, align 4
%9 = srem i32 %8, 60
%10 = call i32 @printf(ptr noundef @.str, i32 noundef %4, i32 noundef %7, i32 noundef %9)
ret i32 0
}
declare i32 @printf(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/tmp3bogmlzn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"\0A1.- %d hours, %d minutes and %d seconds\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Section1(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = sdiv i32 %3, 3600
%5 = load i32, ptr %2, align 4
%6 = srem i32 %5, 3600
%7 = sdiv i32 %6, 60
%8 = load i32, ptr %2, align 4
%9 = srem i32 %8, 60
%10 = call i32 @printf(ptr noundef @.str, i32 noundef %4, i32 noundef %7, i32 noundef %9)
ret i32 0
}
declare i32 @printf(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/tmph1mbdkge.c'
source_filename = "/tmp/tmph1mbdkge.c"
target datalayout = "e-m:e-p270: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 [31 x i8] c"Out of memory in function %s!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @out_of_mem(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmph1mbdkge.c"
target datalayout = "e-m:e-p270: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 [31 x i8] c"Out of memory in function %s!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @out_of_mem(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjwtwv721.c'
source_filename = "/tmp/tmpjwtwv721.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isdigit(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = sext i8 %3 to i32
%5 = icmp sge i32 %4, 48
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i8, ptr %2, align 1
%8 = sext i8 %7 to i32
%9 = icmp sle i32 %8, 57
br label %10
10: ; preds = %6, %1
%11 = phi i1 [ false, %1 ], [ %9, %6 ]
%12 = zext i1 %11 to i32
ret i32 %12
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjwtwv721.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isdigit(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = sext i8 %3 to i32
%5 = icmp sge i32 %4, 48
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i8, ptr %2, align 1
%8 = sext i8 %7 to i32
%9 = icmp sle i32 %8, 57
br label %10
10: ; preds = %6, %1
%11 = phi i1 [ false, %1 ], [ %9, %6 ]
%12 = zext i1 %11 to i32
ret i32 %12
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpurkqlsqp.c'
source_filename = "/tmp/tmpurkqlsqp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @chardinalite(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%4 = load ptr, ptr %2, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %6, label %19
6: ; preds = %1
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %15, %6
%8 = load ptr, ptr %2, align 8
%9 = load i32, ptr %3, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds ptr, ptr %8, i64 %10
%12 = load ptr, ptr %11, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %18
14: ; preds = %7
br label %15
15: ; preds = %14
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %3, align 4
br label %7, !llvm.loop !6
18: ; preds = %7
br label %19
19: ; preds = %18, %1
%20 = load i32, ptr %3, align 4
ret i32 %20
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpurkqlsqp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @chardinalite(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%4 = load ptr, ptr %2, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %6, label %24
6: ; preds = %1
store i32 0, ptr %3, align 4
%7 = load ptr, ptr %2, align 8
%8 = load i32, ptr %3, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds ptr, ptr %7, i64 %9
%11 = load ptr, ptr %10, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %.lr.ph, label %23
.lr.ph: ; preds = %6
br label %13
13: ; preds = %.lr.ph, %14
br label %14
14: ; preds = %13
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %3, align 4
%17 = load ptr, ptr %2, align 8
%18 = load i32, ptr %3, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds ptr, ptr %17, i64 %19
%21 = load ptr, ptr %20, align 8
%22 = icmp ne ptr %21, null
br i1 %22, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %23
23: ; preds = %._crit_edge, %6
br label %24
24: ; preds = %23, %1
%25 = load i32, ptr %3, align 4
ret i32 %25
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpxxogta7b.c'
source_filename = "/tmp/tmpxxogta7b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Error: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @rx(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)
%5 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxxogta7b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Error: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @rx(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)
%5 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpz63iv3ne.c'
source_filename = "/tmp/tmpz63iv3ne.c"
target datalayout = "e-m:e-p270: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 [31 x i8] c"Incorrect amount of arguments\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [2 x i8] c"-\00", align 1
@STDIN_FILENO = dso_local global i32 0, align 4
@O_RDONLY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [26 x i8] c"Failed to open input file\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"Unable to read input file\00", align 1
@.str.4 = private unnamed_addr constant [28 x i8] c"Unable to write random file\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @add_random(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca [4096 x i32], align 16
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
%14 = load i32, ptr %6, align 4
%15 = icmp ne i32 %14, 2
br i1 %15, label %16, label %21
16: ; preds = %3
%17 = load i32, ptr @stderr, align 4
%18 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str)
%19 = call i32 (...) @usage()
%20 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %20, ptr %4, align 4
br label %95
21: ; preds = %3
%22 = load ptr, ptr %7, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i64 @strcmp(ptr noundef %24, ptr noundef @.str.1)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %21
%28 = load i32, ptr @STDIN_FILENO, align 4
store i32 %28, ptr %8, align 4
br label %41
29: ; preds = %21
%30 = load ptr, ptr %7, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 1
%32 = load ptr, ptr %31, align 8
%33 = load i32, ptr @O_RDONLY, align 4
%34 = call i32 @open(ptr noundef %32, i32 noundef %33)
store i32 %34, ptr %8, align 4
%35 = load i32, ptr %8, align 4
%36 = icmp eq i32 %35, -1
br i1 %36, label %37, label %40
37: ; preds = %29
%38 = call i32 @perror(ptr noundef @.str.2)
%39 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %39, ptr %4, align 4
br label %95
40: ; preds = %29
br label %41
41: ; preds = %40, %27
store i64 0, ptr %10, align 8
br label %42
42: ; preds = %83, %41
%43 = load i32, ptr %8, align 4
%44 = getelementptr inbounds [4096 x i32], ptr %9, i64 0, i64 0
%45 = call i64 @read(i32 noundef %43, ptr noundef %44, i32 noundef 16384)
store i64 %45, ptr %10, align 8
%46 = load i64, ptr %10, align 8
%47 = icmp slt i64 %46, 0
br i1 %47, label %48, label %53
48: ; preds = %42
%49 = call i32 @perror(ptr noundef @.str.3)
%50 = load i32, ptr %8, align 4
%51 = call i32 @close(i32 noundef %50)
%52 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %52, ptr %4, align 4
br label %95
53: ; preds = %42
%54 = load i64, ptr %10, align 8
%55 = icmp ne i64 %54, 0
br i1 %55, label %56, label %82
56: ; preds = %53
%57 = getelementptr inbounds [4096 x i32], ptr %9, i64 0, i64 0
store ptr %57, ptr %11, align 8
%58 = load i64, ptr %10, align 8
store i64 %58, ptr %12, align 8
br label %59
59: ; preds = %74, %56
%60 = load i64, ptr %12, align 8
%61 = icmp ugt i64 %60, 0
br i1 %61, label %62, label %81
62: ; preds = %59
%63 = load i32, ptr %5, align 4
%64 = getelementptr inbounds [4096 x i32], ptr %9, i64 0, i64 0
%65 = load i64, ptr %12, align 8
%66 = call i64 @write(i32 noundef %63, ptr noundef %64, i64 noundef %65)
store i64 %66, ptr %13, align 8
%67 = load i64, ptr %13, align 8
%68 = icmp slt i64 %67, 0
br i1 %68, label %69, label %74
69: ; preds = %62
%70 = call i32 @perror(ptr noundef @.str.4)
%71 = load i32, ptr %8, align 4
%72 = call i32 @close(i32 noundef %71)
%73 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %73, ptr %4, align 4
br label %95
74: ; preds = %62
%75 = load i64, ptr %13, align 8
%76 = load i64, ptr %12, align 8
%77 = sub i64 %76, %75
store i64 %77, ptr %12, align 8
%78 = load i64, ptr %13, align 8
%79 = load ptr, ptr %11, align 8
%80 = getelementptr inbounds i32, ptr %79, i64 %78
store ptr %80, ptr %11, align 8
br label %59, !llvm.loop !6
81: ; preds = %59
br label %82
82: ; preds = %81, %53
br label %83
83: ; preds = %82
%84 = load i64, ptr %10, align 8
%85 = icmp sgt i64 %84, 0
br i1 %85, label %42, label %86, !llvm.loop !8
86: ; preds = %83
%87 = load i32, ptr %8, align 4
%88 = load i32, ptr @STDIN_FILENO, align 4
%89 = icmp ne i32 %87, %88
br i1 %89, label %90, label %93
90: ; preds = %86
%91 = load i32, ptr %8, align 4
%92 = call i32 @close(i32 noundef %91)
br label %93
93: ; preds = %90, %86
%94 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %94, ptr %4, align 4
br label %95
95: ; preds = %93, %69, %48, %37, %16
%96 = load i32, ptr %4, align 4
ret i32 %96
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @usage(...) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i64 @write(i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz63iv3ne.c"
target datalayout = "e-m:e-p270: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 [31 x i8] c"Incorrect amount of arguments\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [2 x i8] c"-\00", align 1
@STDIN_FILENO = dso_local global i32 0, align 4
@O_RDONLY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [26 x i8] c"Failed to open input file\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"Unable to read input file\00", align 1
@.str.4 = private unnamed_addr constant [28 x i8] c"Unable to write random file\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @add_random(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca [4096 x i32], align 16
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
%14 = load i32, ptr %6, align 4
%15 = icmp ne i32 %14, 2
br i1 %15, label %16, label %21
16: ; preds = %3
%17 = load i32, ptr @stderr, align 4
%18 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str)
%19 = call i32 (...) @usage()
%20 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %20, ptr %4, align 4
br label %96
21: ; preds = %3
%22 = load ptr, ptr %7, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i64 @strcmp(ptr noundef %24, ptr noundef @.str.1)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %21
%28 = load i32, ptr @STDIN_FILENO, align 4
store i32 %28, ptr %8, align 4
br label %41
29: ; preds = %21
%30 = load ptr, ptr %7, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 1
%32 = load ptr, ptr %31, align 8
%33 = load i32, ptr @O_RDONLY, align 4
%34 = call i32 @open(ptr noundef %32, i32 noundef %33)
store i32 %34, ptr %8, align 4
%35 = load i32, ptr %8, align 4
%36 = icmp eq i32 %35, -1
br i1 %36, label %37, label %40
37: ; preds = %29
%38 = call i32 @perror(ptr noundef @.str.2)
%39 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %39, ptr %4, align 4
br label %96
40: ; preds = %29
br label %41
41: ; preds = %40, %27
store i64 0, ptr %10, align 8
br label %42
42: ; preds = %84, %41
%43 = load i32, ptr %8, align 4
%44 = getelementptr inbounds [4096 x i32], ptr %9, i64 0, i64 0
%45 = call i64 @read(i32 noundef %43, ptr noundef %44, i32 noundef 16384)
store i64 %45, ptr %10, align 8
%46 = load i64, ptr %10, align 8
%47 = icmp slt i64 %46, 0
br i1 %47, label %48, label %53
48: ; preds = %42
%49 = call i32 @perror(ptr noundef @.str.3)
%50 = load i32, ptr %8, align 4
%51 = call i32 @close(i32 noundef %50)
%52 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %52, ptr %4, align 4
br label %96
53: ; preds = %42
%54 = load i64, ptr %10, align 8
%55 = icmp ne i64 %54, 0
br i1 %55, label %56, label %83
56: ; preds = %53
%57 = getelementptr inbounds [4096 x i32], ptr %9, i64 0, i64 0
store ptr %57, ptr %11, align 8
%58 = load i64, ptr %10, align 8
store i64 %58, ptr %12, align 8
%59 = load i64, ptr %12, align 8
%60 = icmp ugt i64 %59, 0
br i1 %60, label %.lr.ph, label %82
.lr.ph: ; preds = %56
br label %61
61: ; preds = %.lr.ph, %73
%62 = load i32, ptr %5, align 4
%63 = getelementptr inbounds [4096 x i32], ptr %9, i64 0, i64 0
%64 = load i64, ptr %12, align 8
%65 = call i64 @write(i32 noundef %62, ptr noundef %63, i64 noundef %64)
store i64 %65, ptr %13, align 8
%66 = load i64, ptr %13, align 8
%67 = icmp slt i64 %66, 0
br i1 %67, label %68, label %73
68: ; preds = %61
%69 = call i32 @perror(ptr noundef @.str.4)
%70 = load i32, ptr %8, align 4
%71 = call i32 @close(i32 noundef %70)
%72 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %72, ptr %4, align 4
br label %96
73: ; preds = %61
%74 = load i64, ptr %13, align 8
%75 = load i64, ptr %12, align 8
%76 = sub i64 %75, %74
store i64 %76, ptr %12, align 8
%77 = load i64, ptr %13, align 8
%78 = load ptr, ptr %11, align 8
%79 = getelementptr inbounds i32, ptr %78, i64 %77
store ptr %79, ptr %11, align 8
%80 = load i64, ptr %12, align 8
%81 = icmp ugt i64 %80, 0
br i1 %81, label %61, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %73
br label %82
82: ; preds = %._crit_edge, %56
br label %83
83: ; preds = %82, %53
br label %84
84: ; preds = %83
%85 = load i64, ptr %10, align 8
%86 = icmp sgt i64 %85, 0
br i1 %86, label %42, label %87, !llvm.loop !8
87: ; preds = %84
%88 = load i32, ptr %8, align 4
%89 = load i32, ptr @STDIN_FILENO, align 4
%90 = icmp ne i32 %88, %89
br i1 %90, label %91, label %94
91: ; preds = %87
%92 = load i32, ptr %8, align 4
%93 = call i32 @close(i32 noundef %92)
br label %94
94: ; preds = %91, %87
%95 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %95, ptr %4, align 4
br label %96
96: ; preds = %94, %68, %48, %37, %16
%97 = load i32, ptr %4, align 4
ret i32 %97
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @usage(...) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i64 @write(i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp7pmiskqj.c'
source_filename = "/tmp/tmp7pmiskqj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #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
store i32 0, ptr %1, align 4
store i32 100, ptr %2, align 4
store i32 1, ptr %3, align 4
store i32 10, ptr %4, align 4
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = sub nsw i32 %6, %7
%9 = load i32, ptr %4, align 4
%10 = sdiv i32 %8, %9
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %19
12: ; preds = %0
%13 = load i32, ptr %2, align 4
%14 = load i32, ptr %3, align 4
%15 = sub nsw i32 %13, %14
%16 = load i32, ptr %4, align 4
%17 = sdiv i32 %15, %16
%18 = add nsw i32 %17, 1
br label %26
19: ; preds = %0
%20 = load i32, ptr %2, align 4
%21 = load i32, ptr %3, align 4
%22 = sub nsw i32 %20, %21
%23 = load i32, ptr %4, align 4
%24 = sdiv i32 %22, %23
%25 = add nsw i32 %24, 1
br label %26
26: ; preds = %19, %12
%27 = phi i32 [ %18, %12 ], [ %25, %19 ]
store i32 %27, ptr %5, align 4
%28 = load i32, ptr %5, align 4
%29 = call i32 @printf(ptr noundef @.str, i32 noundef %28)
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/tmp7pmiskqj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #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
store i32 0, ptr %1, align 4
store i32 100, ptr %2, align 4
store i32 1, ptr %3, align 4
store i32 10, ptr %4, align 4
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = sub nsw i32 %6, %7
%9 = load i32, ptr %4, align 4
%10 = sdiv i32 %8, %9
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %19
12: ; preds = %0
%13 = load i32, ptr %2, align 4
%14 = load i32, ptr %3, align 4
%15 = sub nsw i32 %13, %14
%16 = load i32, ptr %4, align 4
%17 = sdiv i32 %15, %16
%18 = add nsw i32 %17, 1
br label %26
19: ; preds = %0
%20 = load i32, ptr %2, align 4
%21 = load i32, ptr %3, align 4
%22 = sub nsw i32 %20, %21
%23 = load i32, ptr %4, align 4
%24 = sdiv i32 %22, %23
%25 = add nsw i32 %24, 1
br label %26
26: ; preds = %19, %12
%27 = phi i32 [ %18, %12 ], [ %25, %19 ]
store i32 %27, ptr %5, align 4
%28 = load i32, ptr %5, align 4
%29 = call i32 @printf(ptr noundef @.str, i32 noundef %28)
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/tmprysyw4_k.c'
source_filename = "/tmp/tmprysyw4_k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"cpse \00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"cp \00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"sub \00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"adc \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Winst1(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = ashr i32 %5, 10
%7 = and i32 %6, 3
switch i32 %7, label %16 [
i32 0, label %8
i32 1, label %10
i32 2, label %12
i32 3, label %14
]
8: ; preds = %2
%9 = call i32 @Ws(ptr noundef @.str)
br label %16
10: ; preds = %2
%11 = call i32 @Ws(ptr noundef @.str.1)
br label %16
12: ; preds = %2
%13 = call i32 @Ws(ptr noundef @.str.2)
br label %16
14: ; preds = %2
%15 = call i32 @Ws(ptr noundef @.str.3)
br label %16
16: ; preds = %2, %14, %12, %10, %8
%17 = load i32, ptr %4, align 4
%18 = call i32 @wrdddddrrrr(i32 noundef %17)
ret i32 0
}
declare i32 @Ws(ptr noundef) #1
declare i32 @wrdddddrrrr(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/tmprysyw4_k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"cpse \00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"cp \00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"sub \00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"adc \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Winst1(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = ashr i32 %5, 10
%7 = and i32 %6, 3
switch i32 %7, label %16 [
i32 0, label %8
i32 1, label %10
i32 2, label %12
i32 3, label %14
]
8: ; preds = %2
%9 = call i32 @Ws(ptr noundef @.str)
br label %16
10: ; preds = %2
%11 = call i32 @Ws(ptr noundef @.str.1)
br label %16
12: ; preds = %2
%13 = call i32 @Ws(ptr noundef @.str.2)
br label %16
14: ; preds = %2
%15 = call i32 @Ws(ptr noundef @.str.3)
br label %16
16: ; preds = %14, %12, %10, %8, %2
%17 = load i32, ptr %4, align 4
%18 = call i32 @wrdddddrrrr(i32 noundef %17)
ret i32 0
}
declare i32 @Ws(ptr noundef) #1
declare i32 @wrdddddrrrr(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/tmp7jqm8orz.c'
source_filename = "/tmp/tmp7jqm8orz.c"
target datalayout = "e-m:e-p270: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/tmp7jqm8orz.c"
target datalayout = "e-m:e-p270: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/tmpejdtt172.c'
source_filename = "/tmp/tmpejdtt172.c"
target datalayout = "e-m:e-p270: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/tmpejdtt172.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_t_vmumi.c'
source_filename = "/tmp/tmp_t_vmumi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bufcon_lenui(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 ult i32 %4, 10
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 1, ptr %2, align 4
br label %40
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = icmp ult i32 %8, 100
br i1 %9, label %10, label %11
10: ; preds = %7
store i32 2, ptr %2, align 4
br label %40
11: ; preds = %7
%12 = load i32, ptr %3, align 4
%13 = icmp ult i32 %12, 1000
br i1 %13, label %14, label %15
14: ; preds = %11
store i32 3, ptr %2, align 4
br label %40
15: ; preds = %11
%16 = load i32, ptr %3, align 4
%17 = icmp ult i32 %16, 10000
br i1 %17, label %18, label %19
18: ; preds = %15
store i32 4, ptr %2, align 4
br label %40
19: ; preds = %15
%20 = load i32, ptr %3, align 4
%21 = icmp ult i32 %20, 100000
br i1 %21, label %22, label %23
22: ; preds = %19
store i32 5, ptr %2, align 4
br label %40
23: ; preds = %19
%24 = load i32, ptr %3, align 4
%25 = icmp ult i32 %24, 1000000
br i1 %25, label %26, label %27
26: ; preds = %23
store i32 6, ptr %2, align 4
br label %40
27: ; preds = %23
%28 = load i32, ptr %3, align 4
%29 = icmp ult i32 %28, 10000000
br i1 %29, label %30, label %31
30: ; preds = %27
store i32 7, ptr %2, align 4
br label %40
31: ; preds = %27
%32 = load i32, ptr %3, align 4
%33 = icmp ult i32 %32, 100000000
br i1 %33, label %34, label %35
34: ; preds = %31
store i32 8, ptr %2, align 4
br label %40
35: ; preds = %31
%36 = load i32, ptr %3, align 4
%37 = icmp ult i32 %36, 1000000000
br i1 %37, label %38, label %39
38: ; preds = %35
store i32 9, ptr %2, align 4
br label %40
39: ; preds = %35
store i32 10, ptr %2, align 4
br label %40
40: ; preds = %39, %38, %34, %30, %26, %22, %18, %14, %10, %6
%41 = load i32, ptr %2, align 4
ret i32 %41
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!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_t_vmumi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bufcon_lenui(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 ult i32 %4, 10
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 1, ptr %2, align 4
br label %40
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = icmp ult i32 %8, 100
br i1 %9, label %10, label %11
10: ; preds = %7
store i32 2, ptr %2, align 4
br label %40
11: ; preds = %7
%12 = load i32, ptr %3, align 4
%13 = icmp ult i32 %12, 1000
br i1 %13, label %14, label %15
14: ; preds = %11
store i32 3, ptr %2, align 4
br label %40
15: ; preds = %11
%16 = load i32, ptr %3, align 4
%17 = icmp ult i32 %16, 10000
br i1 %17, label %18, label %19
18: ; preds = %15
store i32 4, ptr %2, align 4
br label %40
19: ; preds = %15
%20 = load i32, ptr %3, align 4
%21 = icmp ult i32 %20, 100000
br i1 %21, label %22, label %23
22: ; preds = %19
store i32 5, ptr %2, align 4
br label %40
23: ; preds = %19
%24 = load i32, ptr %3, align 4
%25 = icmp ult i32 %24, 1000000
br i1 %25, label %26, label %27
26: ; preds = %23
store i32 6, ptr %2, align 4
br label %40
27: ; preds = %23
%28 = load i32, ptr %3, align 4
%29 = icmp ult i32 %28, 10000000
br i1 %29, label %30, label %31
30: ; preds = %27
store i32 7, ptr %2, align 4
br label %40
31: ; preds = %27
%32 = load i32, ptr %3, align 4
%33 = icmp ult i32 %32, 100000000
br i1 %33, label %34, label %35
34: ; preds = %31
store i32 8, ptr %2, align 4
br label %40
35: ; preds = %31
%36 = load i32, ptr %3, align 4
%37 = icmp ult i32 %36, 1000000000
br i1 %37, label %38, label %39
38: ; preds = %35
store i32 9, ptr %2, align 4
br label %40
39: ; preds = %35
store i32 10, ptr %2, align 4
br label %40
40: ; preds = %39, %38, %34, %30, %26, %22, %18, %14, %10, %6
%41 = load i32, ptr %2, align 4
ret i32 %41
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfwadosgm.c'
source_filename = "/tmp/tmpfwadosgm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI_4 = dso_local global double 0.000000e+00, align 8
@M_SQRT1_2 = dso_local global double 0.000000e+00, align 8
@M_SQRT2 = dso_local global double 0.000000e+00, align 8
@.str = private unnamed_addr constant [10 x i8] c"%d\09%e\09%e\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
store i32 0, ptr %1, align 4
store double 5.000000e-01, ptr %4, align 8
store double 1.500000e+00, ptr %5, align 8
store double 1.500000e+00, ptr %6, align 8
%12 = load double, ptr @M_PI_4, align 8
store double %12, ptr %7, align 8
store i32 2, ptr %3, align 4
br label %13
13: ; preds = %82, %0
%14 = load i32, ptr %3, align 4
%15 = icmp sle i32 %14, 140
br i1 %15, label %16, label %85
16: ; preds = %13
store double 1.000000e+00, ptr %8, align 8
store double 1.000000e+00, ptr %9, align 8
%17 = load double, ptr %9, align 8
%18 = call i64 @f(double noundef %17)
%19 = load i32, ptr %3, align 4
%20 = load double, ptr %7, align 8
%21 = load double, ptr %4, align 8
%22 = load double, ptr %5, align 8
%23 = load double, ptr %9, align 8
%24 = call i64 @sinc_approx(i32 noundef %19, double noundef %20, double noundef %21, double noundef %22, double noundef %23)
%25 = sub nsw i64 %18, %24
%26 = call double @fabs(i64 noundef %25)
store double %26, ptr %11, align 8
store i32 1, ptr %2, align 4
br label %27
27: ; preds = %69, %16
%28 = load i32, ptr %2, align 4
%29 = icmp sle i32 %28, 100
br i1 %29, label %30, label %72
30: ; preds = %27
%31 = load double, ptr @M_SQRT1_2, align 8
%32 = load double, ptr %8, align 8
%33 = fmul double %32, %31
store double %33, ptr %8, align 8
%34 = load double, ptr @M_SQRT2, align 8
%35 = load double, ptr %9, align 8
%36 = fmul double %35, %34
store double %36, ptr %9, align 8
%37 = load double, ptr %8, align 8
%38 = call i64 @f(double noundef %37)
%39 = load i32, ptr %3, align 4
%40 = load double, ptr %7, align 8
%41 = load double, ptr %4, align 8
%42 = load double, ptr %5, align 8
%43 = load double, ptr %8, align 8
%44 = call i64 @sinc_approx(i32 noundef %39, double noundef %40, double noundef %41, double noundef %42, double noundef %43)
%45 = sub nsw i64 %38, %44
%46 = call double @fabs(i64 noundef %45)
store double %46, ptr %10, align 8
%47 = load double, ptr %11, align 8
%48 = load double, ptr %10, align 8
%49 = fcmp olt double %47, %48
br i1 %49, label %50, label %52
50: ; preds = %30
%51 = load double, ptr %10, align 8
store double %51, ptr %11, align 8
br label %52
52: ; preds = %50, %30
%53 = load double, ptr %9, align 8
%54 = call i64 @f(double noundef %53)
%55 = load i32, ptr %3, align 4
%56 = load double, ptr %7, align 8
%57 = load double, ptr %4, align 8
%58 = load double, ptr %5, align 8
%59 = load double, ptr %9, align 8
%60 = call i64 @sinc_approx(i32 noundef %55, double noundef %56, double noundef %57, double noundef %58, double noundef %59)
%61 = sub nsw i64 %54, %60
%62 = call double @fabs(i64 noundef %61)
store double %62, ptr %10, align 8
%63 = load double, ptr %11, align 8
%64 = load double, ptr %10, align 8
%65 = fcmp olt double %63, %64
br i1 %65, label %66, label %68
66: ; preds = %52
%67 = load double, ptr %10, align 8
store double %67, ptr %11, align 8
br label %68
68: ; preds = %66, %52
br label %69
69: ; preds = %68
%70 = load i32, ptr %2, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %2, align 4
br label %27, !llvm.loop !6
72: ; preds = %27
%73 = load i32, ptr %3, align 4
%74 = load double, ptr %11, align 8
%75 = load i32, ptr %3, align 4
%76 = load double, ptr %6, align 8
%77 = load double, ptr %7, align 8
%78 = load double, ptr %4, align 8
%79 = load double, ptr %5, align 8
%80 = call double @err_bound(i32 noundef %75, double noundef %76, double noundef %77, double noundef %78, double noundef %79)
%81 = call i32 @printf(ptr noundef @.str, i32 noundef %73, double noundef %74, double noundef %80)
br label %82
82: ; preds = %72
%83 = load i32, ptr %3, align 4
%84 = add nsw i32 %83, 5
store i32 %84, ptr %3, align 4
br label %13, !llvm.loop !8
85: ; preds = %13
%86 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %86
}
declare double @fabs(i64 noundef) #1
declare i64 @f(double noundef) #1
declare i64 @sinc_approx(i32 noundef, double noundef, double noundef, double noundef, double noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, double noundef, double noundef) #1
declare double @err_bound(i32 noundef, double noundef, double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfwadosgm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI_4 = dso_local global double 0.000000e+00, align 8
@M_SQRT1_2 = dso_local global double 0.000000e+00, align 8
@M_SQRT2 = dso_local global double 0.000000e+00, align 8
@.str = private unnamed_addr constant [10 x i8] c"%d\09%e\09%e\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
store i32 0, ptr %1, align 4
store double 5.000000e-01, ptr %4, align 8
store double 1.500000e+00, ptr %5, align 8
store double 1.500000e+00, ptr %6, align 8
%12 = load double, ptr @M_PI_4, align 8
store double %12, ptr %7, align 8
store i32 2, ptr %3, align 4
%13 = load i32, ptr %3, align 4
%14 = icmp sle i32 %13, 140
br i1 %14, label %.lr.ph2, label %87
.lr.ph2: ; preds = %0
br label %15
15: ; preds = %.lr.ph2, %82
store double 1.000000e+00, ptr %8, align 8
store double 1.000000e+00, ptr %9, align 8
%16 = load double, ptr %9, align 8
%17 = call i64 @f(double noundef %16)
%18 = load i32, ptr %3, align 4
%19 = load double, ptr %7, align 8
%20 = load double, ptr %4, align 8
%21 = load double, ptr %5, align 8
%22 = load double, ptr %9, align 8
%23 = call i64 @sinc_approx(i32 noundef %18, double noundef %19, double noundef %20, double noundef %21, double noundef %22)
%24 = sub nsw i64 %17, %23
%25 = call double @fabs(i64 noundef %24)
store double %25, ptr %11, align 8
store i32 1, ptr %2, align 4
%26 = load i32, ptr %2, align 4
%27 = icmp sle i32 %26, 100
br i1 %27, label %.lr.ph, label %72
.lr.ph: ; preds = %15
br label %28
28: ; preds = %.lr.ph, %67
%29 = load double, ptr @M_SQRT1_2, align 8
%30 = load double, ptr %8, align 8
%31 = fmul double %30, %29
store double %31, ptr %8, align 8
%32 = load double, ptr @M_SQRT2, align 8
%33 = load double, ptr %9, align 8
%34 = fmul double %33, %32
store double %34, ptr %9, align 8
%35 = load double, ptr %8, align 8
%36 = call i64 @f(double noundef %35)
%37 = load i32, ptr %3, align 4
%38 = load double, ptr %7, align 8
%39 = load double, ptr %4, align 8
%40 = load double, ptr %5, align 8
%41 = load double, ptr %8, align 8
%42 = call i64 @sinc_approx(i32 noundef %37, double noundef %38, double noundef %39, double noundef %40, double noundef %41)
%43 = sub nsw i64 %36, %42
%44 = call double @fabs(i64 noundef %43)
store double %44, ptr %10, align 8
%45 = load double, ptr %11, align 8
%46 = load double, ptr %10, align 8
%47 = fcmp olt double %45, %46
br i1 %47, label %48, label %50
48: ; preds = %28
%49 = load double, ptr %10, align 8
store double %49, ptr %11, align 8
br label %50
50: ; preds = %48, %28
%51 = load double, ptr %9, align 8
%52 = call i64 @f(double noundef %51)
%53 = load i32, ptr %3, align 4
%54 = load double, ptr %7, align 8
%55 = load double, ptr %4, align 8
%56 = load double, ptr %5, align 8
%57 = load double, ptr %9, align 8
%58 = call i64 @sinc_approx(i32 noundef %53, double noundef %54, double noundef %55, double noundef %56, double noundef %57)
%59 = sub nsw i64 %52, %58
%60 = call double @fabs(i64 noundef %59)
store double %60, ptr %10, align 8
%61 = load double, ptr %11, align 8
%62 = load double, ptr %10, align 8
%63 = fcmp olt double %61, %62
br i1 %63, label %64, label %66
64: ; preds = %50
%65 = load double, ptr %10, align 8
store double %65, ptr %11, align 8
br label %66
66: ; preds = %64, %50
br label %67
67: ; preds = %66
%68 = load i32, ptr %2, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %2, align 4
%70 = load i32, ptr %2, align 4
%71 = icmp sle i32 %70, 100
br i1 %71, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %67
br label %72
72: ; preds = %._crit_edge, %15
%73 = load i32, ptr %3, align 4
%74 = load double, ptr %11, align 8
%75 = load i32, ptr %3, align 4
%76 = load double, ptr %6, align 8
%77 = load double, ptr %7, align 8
%78 = load double, ptr %4, align 8
%79 = load double, ptr %5, align 8
%80 = call double @err_bound(i32 noundef %75, double noundef %76, double noundef %77, double noundef %78, double noundef %79)
%81 = call i32 @printf(ptr noundef @.str, i32 noundef %73, double noundef %74, double noundef %80)
br label %82
82: ; preds = %72
%83 = load i32, ptr %3, align 4
%84 = add nsw i32 %83, 5
store i32 %84, ptr %3, align 4
%85 = load i32, ptr %3, align 4
%86 = icmp sle i32 %85, 140
br i1 %86, label %15, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %82
br label %87
87: ; preds = %._crit_edge3, %0
%88 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %88
}
declare double @fabs(i64 noundef) #1
declare i64 @f(double noundef) #1
declare i64 @sinc_approx(i32 noundef, double noundef, double noundef, double noundef, double noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, double noundef, double noundef) #1
declare double @err_bound(i32 noundef, double noundef, double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpp2bjpzvs.c'
source_filename = "/tmp/tmpp2bjpzvs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"Thread %d of %d - Iteration %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"For Loop 1: %0.9lf\0A\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"For Loop 2: %0.9lf\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"Total Time: %0.9lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store double 0.000000e+00, ptr %8, align 8
store double 0.000000e+00, ptr %9, align 8
store double 0.000000e+00, ptr %10, align 8
store double 0.000000e+00, ptr %11, align 8
store double 0.000000e+00, ptr %12, align 8
store double 0.000000e+00, ptr %13, align 8
%14 = call double (...) @omp_get_wtime()
store double %14, ptr %8, align 8
store i32 0, ptr %6, align 4
br label %15
15: ; preds = %25, %2
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr %7, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %28
19: ; preds = %15
%20 = call i32 (...) @omp_get_thread_num()
%21 = sitofp i32 %20 to double
%22 = call i32 (...) @omp_get_max_threads()
%23 = load i32, ptr %6, align 4
%24 = call i32 (ptr, double, ...) @printf(ptr noundef @.str, double noundef %21, i32 noundef %22, i32 noundef %23)
br label %25
25: ; preds = %19
%26 = load i32, ptr %6, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %6, align 4
br label %15, !llvm.loop !6
28: ; preds = %15
%29 = call double (...) @omp_get_wtime()
store double %29, ptr %9, align 8
store i32 0, ptr %6, align 4
br label %30
30: ; preds = %40, %28
%31 = load i32, ptr %6, align 4
%32 = load i32, ptr %7, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %34, label %43
34: ; preds = %30
%35 = call i32 (...) @omp_get_thread_num()
%36 = sitofp i32 %35 to double
%37 = call i32 (...) @omp_get_max_threads()
%38 = load i32, ptr %6, align 4
%39 = call i32 (ptr, double, ...) @printf(ptr noundef @.str, double noundef %36, i32 noundef %37, i32 noundef %38)
br label %40
40: ; preds = %34
%41 = load i32, ptr %6, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %6, align 4
br label %30, !llvm.loop !8
43: ; preds = %30
%44 = call double (...) @omp_get_wtime()
store double %44, ptr %10, align 8
%45 = load double, ptr %9, align 8
%46 = load double, ptr %8, align 8
%47 = fsub double %45, %46
store double %47, ptr %11, align 8
%48 = load double, ptr %10, align 8
%49 = load double, ptr %9, align 8
%50 = fsub double %48, %49
store double %50, ptr %12, align 8
%51 = load double, ptr %10, align 8
%52 = load double, ptr %8, align 8
%53 = fsub double %51, %52
store double %53, ptr %13, align 8
%54 = load double, ptr %11, align 8
%55 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.1, double noundef %54)
%56 = load double, ptr %12, align 8
%57 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.2, double noundef %56)
%58 = load double, ptr %13, align 8
%59 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.3, double noundef %58)
ret i32 0
}
declare double @omp_get_wtime(...) #1
declare i32 @printf(ptr noundef, double noundef, ...) #1
declare i32 @omp_get_thread_num(...) #1
declare i32 @omp_get_max_threads(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpp2bjpzvs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"Thread %d of %d - Iteration %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"For Loop 1: %0.9lf\0A\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"For Loop 2: %0.9lf\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"Total Time: %0.9lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store double 0.000000e+00, ptr %8, align 8
store double 0.000000e+00, ptr %9, align 8
store double 0.000000e+00, ptr %10, align 8
store double 0.000000e+00, ptr %11, align 8
store double 0.000000e+00, ptr %12, align 8
store double 0.000000e+00, ptr %13, align 8
%14 = call double (...) @omp_get_wtime()
store double %14, ptr %8, align 8
store i32 0, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %7, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %30
.lr.ph: ; preds = %2
br label %18
18: ; preds = %.lr.ph, %24
%19 = call i32 (...) @omp_get_thread_num()
%20 = sitofp i32 %19 to double
%21 = call i32 (...) @omp_get_max_threads()
%22 = load i32, ptr %6, align 4
%23 = call i32 (ptr, double, ...) @printf(ptr noundef @.str, double noundef %20, i32 noundef %21, i32 noundef %22)
br label %24
24: ; preds = %18
%25 = load i32, ptr %6, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %6, align 4
%27 = load i32, ptr %6, align 4
%28 = load i32, ptr %7, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %30
30: ; preds = %._crit_edge, %2
%31 = call double (...) @omp_get_wtime()
store double %31, ptr %9, align 8
store i32 0, ptr %6, align 4
%32 = load i32, ptr %6, align 4
%33 = load i32, ptr %7, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %.lr.ph2, label %47
.lr.ph2: ; preds = %30
br label %35
35: ; preds = %.lr.ph2, %41
%36 = call i32 (...) @omp_get_thread_num()
%37 = sitofp i32 %36 to double
%38 = call i32 (...) @omp_get_max_threads()
%39 = load i32, ptr %6, align 4
%40 = call i32 (ptr, double, ...) @printf(ptr noundef @.str, double noundef %37, i32 noundef %38, i32 noundef %39)
br label %41
41: ; preds = %35
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
%44 = load i32, ptr %6, align 4
%45 = load i32, ptr %7, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %35, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %41
br label %47
47: ; preds = %._crit_edge3, %30
%48 = call double (...) @omp_get_wtime()
store double %48, ptr %10, align 8
%49 = load double, ptr %9, align 8
%50 = load double, ptr %8, align 8
%51 = fsub double %49, %50
store double %51, ptr %11, align 8
%52 = load double, ptr %10, align 8
%53 = load double, ptr %9, align 8
%54 = fsub double %52, %53
store double %54, ptr %12, align 8
%55 = load double, ptr %10, align 8
%56 = load double, ptr %8, align 8
%57 = fsub double %55, %56
store double %57, ptr %13, align 8
%58 = load double, ptr %11, align 8
%59 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.1, double noundef %58)
%60 = load double, ptr %12, align 8
%61 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.2, double noundef %60)
%62 = load double, ptr %13, align 8
%63 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.3, double noundef %62)
ret i32 0
}
declare double @omp_get_wtime(...) #1
declare i32 @printf(ptr noundef, double noundef, ...) #1
declare i32 @omp_get_thread_num(...) #1
declare i32 @omp_get_max_threads(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.