llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmpd9d_lopd.c'
source_filename = "/tmp/tmpd9d_lopd.c"
target datalayout = "e-m:e-p270: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/tmpd9d_lopd.c"
target datalayout = "e-m:e-p270: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/tmppv8fug5e.c'
source_filename = "/tmp/tmppv8fug5e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @imaxabs(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp slt i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, ptr %2, align 4
%7 = sub nsw i32 0, %6
store i32 %7, ptr %2, align 4
br label %8
8: ; preds = %5, %1
%9 = load i32, ptr %2, align 4
ret i32 %9
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppv8fug5e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @imaxabs(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp slt i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, ptr %2, align 4
%7 = sub nsw i32 0, %6
store i32 %7, ptr %2, align 4
br label %8
8: ; preds = %5, %1
%9 = load i32, ptr %2, align 4
ret i32 %9
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgrh2ecuw.c'
source_filename = "/tmp/tmpgrh2ecuw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%i %i\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %4
4: ; preds = %14, %0
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%6 = icmp eq i32 %5, 2
br i1 %6, label %7, label %25
7: ; preds = %4
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label %13, label %10
10: ; preds = %7
%11 = load i32, ptr %3, align 4
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %10, %7
br label %25
14: ; preds = %10
%15 = load i32, ptr %3, align 4
%16 = call i32 @sqrt(i32 noundef %15)
%17 = call i64 @floor(i32 noundef %16)
%18 = load i32, ptr %2, align 4
%19 = call i32 @sqrt(i32 noundef %18)
%20 = call i64 @ceil(i32 noundef %19)
%21 = sub nsw i64 %17, %20
%22 = trunc i64 %21 to i32
%23 = add nsw i32 %22, 1
%24 = call i32 @printf(ptr noundef @.str.1, i32 noundef %23)
br label %4, !llvm.loop !6
25: ; preds = %13, %4
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i64 @floor(i32 noundef) #1
declare i32 @sqrt(i32 noundef) #1
declare i64 @ceil(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/tmpgrh2ecuw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%i %i\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%5 = icmp eq i32 %4, 2
br i1 %5, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %13
%7 = load i32, ptr %2, align 4
%8 = icmp eq i32 %7, 0
br i1 %8, label %12, label %9
9: ; preds = %6
%10 = load i32, ptr %3, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %9, %6
br label %26
13: ; preds = %9
%14 = load i32, ptr %3, align 4
%15 = call i32 @sqrt(i32 noundef %14)
%16 = call i64 @floor(i32 noundef %15)
%17 = load i32, ptr %2, align 4
%18 = call i32 @sqrt(i32 noundef %17)
%19 = call i64 @ceil(i32 noundef %18)
%20 = sub nsw i64 %16, %19
%21 = trunc i64 %20 to i32
%22 = add nsw i32 %21, 1
%23 = call i32 @printf(ptr noundef @.str.1, i32 noundef %22)
%24 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%25 = icmp eq i32 %24, 2
br i1 %25, label %6, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %13
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %0
br label %26
26: ; preds = %.loopexit, %12
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i64 @floor(i32 noundef) #1
declare i32 @sqrt(i32 noundef) #1
declare i64 @ceil(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/tmpf3v2d0wx.c'
source_filename = "/tmp/tmpf3v2d0wx.c"
target datalayout = "e-m:e-p270: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/tmpf3v2d0wx.c"
target datalayout = "e-m:e-p270: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/tmpvvng92dp.c'
source_filename = "/tmp/tmpvvng92dp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cmd_def_shell_mode(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = call i32 @check_arg_count(i32 noundef %5, i32 noundef 0)
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %9
8: ; preds = %2
br label %13
9: ; preds = %2
%10 = call i32 @report_count(i32 noundef 1)
%11 = call i32 (...) @def_shell_mode()
%12 = call i32 @report_return(i32 noundef %11)
br label %13
13: ; preds = %9, %8
ret void
}
declare i32 @check_arg_count(i32 noundef, i32 noundef) #1
declare i32 @report_count(i32 noundef) #1
declare i32 @report_return(i32 noundef) #1
declare i32 @def_shell_mode(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvvng92dp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cmd_def_shell_mode(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = call i32 @check_arg_count(i32 noundef %5, i32 noundef 0)
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %9
8: ; preds = %2
br label %13
9: ; preds = %2
%10 = call i32 @report_count(i32 noundef 1)
%11 = call i32 (...) @def_shell_mode()
%12 = call i32 @report_return(i32 noundef %11)
br label %13
13: ; preds = %9, %8
ret void
}
declare i32 @check_arg_count(i32 noundef, i32 noundef) #1
declare i32 @report_count(i32 noundef) #1
declare i32 @report_return(i32 noundef) #1
declare i32 @def_shell_mode(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg7gytkrv.c'
source_filename = "/tmp/tmpg7gytkrv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MS_NODEV = dso_local global i32 0, align 4
@MS_NOEXEC = dso_local global i32 0, align 4
@MS_NOSUID = dso_local global i32 0, align 4
@MS_PRIVATE = dso_local global i32 0, align 4
@MS_REC = 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/tmpg7gytkrv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MS_NODEV = dso_local global i32 0, align 4
@MS_NOEXEC = dso_local global i32 0, align 4
@MS_NOSUID = dso_local global i32 0, align 4
@MS_PRIVATE = dso_local global i32 0, align 4
@MS_REC = 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/tmpgpmnk2zl.c'
source_filename = "/tmp/tmpgpmnk2zl.c"
target datalayout = "e-m:e-p270: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/tmpgpmnk2zl.c"
target datalayout = "e-m:e-p270: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/tmplzz2sgfz.c'
source_filename = "/tmp/tmplzz2sgfz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"\0Aan=%e | bn=%e | precisao = %e\00", align 1
@.str.1 = private unnamed_addr constant [43 x i8] c"\0ARaiz \C3\A9 aproximadamente %e | f(%e) = %e \0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Intervalo errado \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store i32 0, ptr %1, align 4
store double 1.000000e+00, ptr %2, align 8
store double 2.000000e+00, ptr %3, align 8
store double 5.000000e-05, ptr %4, align 8
%6 = load double, ptr %2, align 8
%7 = call double @fn(double noundef %6)
%8 = load double, ptr %3, align 8
%9 = call double @fn(double noundef %8)
%10 = fmul double %7, %9
%11 = fcmp olt double %10, 0.000000e+00
br i1 %11, label %12, label %49
12: ; preds = %0
store double 0.000000e+00, ptr %5, align 8
br label %13
13: ; preds = %35, %12
%14 = load double, ptr %2, align 8
%15 = load double, ptr %3, align 8
%16 = fsub double %14, %15
%17 = call double @llvm.fabs.f64(double %16)
%18 = load double, ptr %4, align 8
%19 = fcmp ogt double %17, %18
br i1 %19, label %20, label %43
20: ; preds = %13
%21 = load double, ptr %2, align 8
%22 = load double, ptr %3, align 8
%23 = fadd double %21, %22
%24 = fdiv double %23, 2.000000e+00
store double %24, ptr %5, align 8
%25 = load double, ptr %2, align 8
%26 = call double @fn(double noundef %25)
%27 = load double, ptr %5, align 8
%28 = call double @fn(double noundef %27)
%29 = fmul double %26, %28
%30 = fcmp ogt double %29, 0.000000e+00
br i1 %30, label %31, label %33
31: ; preds = %20
%32 = load double, ptr %5, align 8
store double %32, ptr %2, align 8
br label %35
33: ; preds = %20
%34 = load double, ptr %5, align 8
store double %34, ptr %3, align 8
br label %35
35: ; preds = %33, %31
%36 = load double, ptr %2, align 8
%37 = load double, ptr %3, align 8
%38 = load double, ptr %2, align 8
%39 = load double, ptr %3, align 8
%40 = fsub double %38, %39
%41 = call double @llvm.fabs.f64(double %40)
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %36, double noundef %37, double noundef %41)
br label %13, !llvm.loop !6
43: ; preds = %13
%44 = load double, ptr %5, align 8
%45 = load double, ptr %5, align 8
%46 = load double, ptr %5, align 8
%47 = call double @fn(double noundef %46)
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %44, double noundef %45, double noundef %47)
store i32 0, ptr %1, align 4
br label %51
49: ; preds = %0
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %1, align 4
br label %51
51: ; preds = %49, %43
%52 = load i32, ptr %1, align 4
ret i32 %52
}
declare double @fn(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2
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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplzz2sgfz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"\0Aan=%e | bn=%e | precisao = %e\00", align 1
@.str.1 = private unnamed_addr constant [43 x i8] c"\0ARaiz \C3\A9 aproximadamente %e | f(%e) = %e \0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Intervalo errado \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store i32 0, ptr %1, align 4
store double 1.000000e+00, ptr %2, align 8
store double 2.000000e+00, ptr %3, align 8
store double 5.000000e-05, ptr %4, align 8
%6 = load double, ptr %2, align 8
%7 = call double @fn(double noundef %6)
%8 = load double, ptr %3, align 8
%9 = call double @fn(double noundef %8)
%10 = fmul double %7, %9
%11 = fcmp olt double %10, 0.000000e+00
br i1 %11, label %12, label %54
12: ; preds = %0
store double 0.000000e+00, ptr %5, align 8
%13 = load double, ptr %2, align 8
%14 = load double, ptr %3, align 8
%15 = fsub double %13, %14
%16 = call double @llvm.fabs.f64(double %15)
%17 = load double, ptr %4, align 8
%18 = fcmp ogt double %16, %17
br i1 %18, label %.lr.ph, label %48
.lr.ph: ; preds = %12
br label %19
19: ; preds = %.lr.ph, %34
%20 = load double, ptr %2, align 8
%21 = load double, ptr %3, align 8
%22 = fadd double %20, %21
%23 = fdiv double %22, 2.000000e+00
store double %23, ptr %5, align 8
%24 = load double, ptr %2, align 8
%25 = call double @fn(double noundef %24)
%26 = load double, ptr %5, align 8
%27 = call double @fn(double noundef %26)
%28 = fmul double %25, %27
%29 = fcmp ogt double %28, 0.000000e+00
br i1 %29, label %30, label %32
30: ; preds = %19
%31 = load double, ptr %5, align 8
store double %31, ptr %2, align 8
br label %34
32: ; preds = %19
%33 = load double, ptr %5, align 8
store double %33, ptr %3, align 8
br label %34
34: ; preds = %32, %30
%35 = load double, ptr %2, align 8
%36 = load double, ptr %3, align 8
%37 = load double, ptr %2, align 8
%38 = load double, ptr %3, align 8
%39 = fsub double %37, %38
%40 = call double @llvm.fabs.f64(double %39)
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %35, double noundef %36, double noundef %40)
%42 = load double, ptr %2, align 8
%43 = load double, ptr %3, align 8
%44 = fsub double %42, %43
%45 = call double @llvm.fabs.f64(double %44)
%46 = load double, ptr %4, align 8
%47 = fcmp ogt double %45, %46
br i1 %47, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %34
br label %48
48: ; preds = %._crit_edge, %12
%49 = load double, ptr %5, align 8
%50 = load double, ptr %5, align 8
%51 = load double, ptr %5, align 8
%52 = call double @fn(double noundef %51)
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %49, double noundef %50, double noundef %52)
store i32 0, ptr %1, align 4
br label %56
54: ; preds = %0
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %1, align 4
br label %56
56: ; preds = %54, %48
%57 = load i32, ptr %1, align 4
ret i32 %57
}
declare double @fn(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2
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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpi2oosvsh.c'
source_filename = "/tmp/tmpi2oosvsh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [77 x i8] c"%s:%d:MIME_read:ERROR: could not allocate 4K of memory for file read buffer\0A\00", align 1
@.str.1 = private unnamed_addr constant [130 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/inflex/ripMIME/refs/heads/master/mime.c\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.3 = private unnamed_addr constant [85 x i8] c"%s:%d:MIME_read:ERROR: Cannot open file %s for writing... check permissions perhaps?\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [85 x i8] c"%s:%d:MIME_read:ERROR: Attempted to write %d bytes, but only managed %d to file '%s'\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @MIME_read(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 -1, ptr %4, align 8
%9 = call ptr @malloc(i32 noundef 8192)
store ptr %9, ptr %5, align 8
%10 = load ptr, ptr %5, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %14, label %12
12: ; preds = %1
%13 = call i32 (ptr, ptr, i32, ...) @LOGGER_log(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 2254)
store i32 -1, ptr %2, align 4
br label %78
14: ; preds = %1
%15 = load ptr, ptr %3, align 8
%16 = call ptr @fopen(ptr noundef %15, ptr noundef @.str.2)
store ptr %16, ptr %8, align 8
%17 = load ptr, ptr %8, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %22, label %19
19: ; preds = %14
%20 = load ptr, ptr %3, align 8
%21 = call i32 (ptr, ptr, i32, ...) @LOGGER_log(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 2266, ptr noundef %20)
store i32 -1, ptr %2, align 4
br label %78
22: ; preds = %14
%23 = load ptr, ptr %8, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %25, label %68
25: ; preds = %22
store i64 0, ptr %4, align 8
br label %26
26: ; preds = %55, %25
%27 = load i32, ptr @stdin, align 4
%28 = call i64 @feof(i32 noundef %27)
%29 = icmp ne i64 %28, 0
%30 = xor i1 %29, true
br i1 %30, label %31, label %56
31: ; preds = %26
%32 = load ptr, ptr %5, align 8
%33 = load i32, ptr @stdin, align 4
%34 = call i64 @fread(ptr noundef %32, i32 noundef 1, i32 noundef 8191, i32 noundef %33)
store i64 %34, ptr %6, align 8
%35 = load i64, ptr %6, align 8
%36 = icmp ugt i64 %35, 0
br i1 %36, label %37, label %54
37: ; preds = %31
%38 = load ptr, ptr %5, align 8
%39 = load i64, ptr %6, align 8
%40 = load ptr, ptr %8, align 8
%41 = call i64 @fwrite(ptr noundef %38, i32 noundef 1, i64 noundef %39, ptr noundef %40)
store i64 %41, ptr %7, align 8
%42 = load i64, ptr %7, align 8
%43 = load i64, ptr %4, align 8
%44 = add i64 %43, %42
store i64 %44, ptr %4, align 8
%45 = load i64, ptr %6, align 8
%46 = load i64, ptr %7, align 8
%47 = icmp ne i64 %45, %46
br i1 %47, label %48, label %53
48: ; preds = %37
%49 = load i64, ptr %6, align 8
%50 = load i64, ptr %7, align 8
%51 = load ptr, ptr %3, align 8
%52 = call i32 (ptr, ptr, i32, ...) @LOGGER_log(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 2288, i64 noundef %49, i64 noundef %50, ptr noundef %51)
br label %53
53: ; preds = %48, %37
br label %55
54: ; preds = %31
br label %56
55: ; preds = %53
br label %26, !llvm.loop !6
56: ; preds = %54, %26
%57 = load ptr, ptr %8, align 8
%58 = call i32 @fflush(ptr noundef %57)
%59 = load ptr, ptr %8, align 8
%60 = call i32 @fclose(ptr noundef %59)
%61 = load i32, ptr @stdin, align 4
%62 = call i64 @feof(i32 noundef %61)
%63 = icmp ne i64 %62, 0
br i1 %63, label %64, label %67
64: ; preds = %56
%65 = load i32, ptr @stdin, align 4
%66 = call i32 @clearerr(i32 noundef %65)
br label %67
67: ; preds = %64, %56
br label %68
68: ; preds = %67, %22
%69 = load ptr, ptr %5, align 8
%70 = icmp ne ptr %69, null
br i1 %70, label %71, label %74
71: ; preds = %68
%72 = load ptr, ptr %5, align 8
%73 = call i32 @free(ptr noundef %72)
br label %74
74: ; preds = %71, %68
%75 = load i64, ptr %4, align 8
%76 = sdiv i64 %75, 1024
%77 = trunc i64 %76 to i32
store i32 %77, ptr %2, align 4
br label %78
78: ; preds = %74, %19, %12
%79 = load i32, ptr %2, align 4
ret i32 %79
}
declare ptr @malloc(i32 noundef) #1
declare i32 @LOGGER_log(ptr noundef, ptr noundef, i32 noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @feof(i32 noundef) #1
declare i64 @fread(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @fwrite(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i32 @fflush(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @clearerr(i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi2oosvsh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [77 x i8] c"%s:%d:MIME_read:ERROR: could not allocate 4K of memory for file read buffer\0A\00", align 1
@.str.1 = private unnamed_addr constant [130 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/inflex/ripMIME/refs/heads/master/mime.c\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.3 = private unnamed_addr constant [85 x i8] c"%s:%d:MIME_read:ERROR: Cannot open file %s for writing... check permissions perhaps?\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [85 x i8] c"%s:%d:MIME_read:ERROR: Attempted to write %d bytes, but only managed %d to file '%s'\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @MIME_read(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 -1, ptr %4, align 8
%9 = call ptr @malloc(i32 noundef 8192)
store ptr %9, ptr %5, align 8
%10 = load ptr, ptr %5, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %14, label %12
12: ; preds = %1
%13 = call i32 (ptr, ptr, i32, ...) @LOGGER_log(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 2254)
store i32 -1, ptr %2, align 4
br label %81
14: ; preds = %1
%15 = load ptr, ptr %3, align 8
%16 = call ptr @fopen(ptr noundef %15, ptr noundef @.str.2)
store ptr %16, ptr %8, align 8
%17 = load ptr, ptr %8, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %22, label %19
19: ; preds = %14
%20 = load ptr, ptr %3, align 8
%21 = call i32 (ptr, ptr, i32, ...) @LOGGER_log(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 2266, ptr noundef %20)
store i32 -1, ptr %2, align 4
br label %81
22: ; preds = %14
%23 = load ptr, ptr %8, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %25, label %71
25: ; preds = %22
store i64 0, ptr %4, align 8
%26 = load i32, ptr @stdin, align 4
%27 = call i64 @feof(i32 noundef %26)
%28 = icmp ne i64 %27, 0
%29 = xor i1 %28, true
br i1 %29, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %25
br label %30
30: ; preds = %.lr.ph, %54
%31 = load ptr, ptr %5, align 8
%32 = load i32, ptr @stdin, align 4
%33 = call i64 @fread(ptr noundef %31, i32 noundef 1, i32 noundef 8191, i32 noundef %32)
store i64 %33, ptr %6, align 8
%34 = load i64, ptr %6, align 8
%35 = icmp ugt i64 %34, 0
br i1 %35, label %36, label %53
36: ; preds = %30
%37 = load ptr, ptr %5, align 8
%38 = load i64, ptr %6, align 8
%39 = load ptr, ptr %8, align 8
%40 = call i64 @fwrite(ptr noundef %37, i32 noundef 1, i64 noundef %38, ptr noundef %39)
store i64 %40, ptr %7, align 8
%41 = load i64, ptr %7, align 8
%42 = load i64, ptr %4, align 8
%43 = add i64 %42, %41
store i64 %43, ptr %4, align 8
%44 = load i64, ptr %6, align 8
%45 = load i64, ptr %7, align 8
%46 = icmp ne i64 %44, %45
br i1 %46, label %47, label %52
47: ; preds = %36
%48 = load i64, ptr %6, align 8
%49 = load i64, ptr %7, align 8
%50 = load ptr, ptr %3, align 8
%51 = call i32 (ptr, ptr, i32, ...) @LOGGER_log(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 2288, i64 noundef %48, i64 noundef %49, ptr noundef %50)
br label %52
52: ; preds = %47, %36
br label %54
53: ; preds = %30
br label %59
54: ; preds = %52
%55 = load i32, ptr @stdin, align 4
%56 = call i64 @feof(i32 noundef %55)
%57 = icmp ne i64 %56, 0
%58 = xor i1 %57, true
br i1 %58, label %30, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %54
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %25
br label %59
59: ; preds = %.loopexit, %53
%60 = load ptr, ptr %8, align 8
%61 = call i32 @fflush(ptr noundef %60)
%62 = load ptr, ptr %8, align 8
%63 = call i32 @fclose(ptr noundef %62)
%64 = load i32, ptr @stdin, align 4
%65 = call i64 @feof(i32 noundef %64)
%66 = icmp ne i64 %65, 0
br i1 %66, label %67, label %70
67: ; preds = %59
%68 = load i32, ptr @stdin, align 4
%69 = call i32 @clearerr(i32 noundef %68)
br label %70
70: ; preds = %67, %59
br label %71
71: ; preds = %70, %22
%72 = load ptr, ptr %5, align 8
%73 = icmp ne ptr %72, null
br i1 %73, label %74, label %77
74: ; preds = %71
%75 = load ptr, ptr %5, align 8
%76 = call i32 @free(ptr noundef %75)
br label %77
77: ; preds = %74, %71
%78 = load i64, ptr %4, align 8
%79 = sdiv i64 %78, 1024
%80 = trunc i64 %79 to i32
store i32 %80, ptr %2, align 4
br label %81
81: ; preds = %77, %19, %12
%82 = load i32, ptr %2, align 4
ret i32 %82
}
declare ptr @malloc(i32 noundef) #1
declare i32 @LOGGER_log(ptr noundef, ptr noundef, i32 noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @feof(i32 noundef) #1
declare i64 @fread(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @fwrite(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i32 @fflush(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @clearerr(i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmppva0oxkw.c'
source_filename = "/tmp/tmppva0oxkw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"libfoo.dylib\00", align 1
@RTLD_LAZY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [81 x i8] c"dlclose-dylib-unload: dlopen(\22libfoo.dylib\22, RTLD_LAZY) failed with dlerror()=%s\00", align 1
@.str.2 = private unnamed_addr constant [56 x i8] c"dlclose-dylib-unload: dlclose(handle) != 0, dlerrr()=%s\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"dlclose-terminator-dlclose\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 ptr, align 8
store i32 0, ptr %1, align 4
%3 = load i32, ptr @RTLD_LAZY, align 4
%4 = call ptr @dlopen(ptr noundef @.str, i32 noundef %3)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %11
7: ; preds = %0
%8 = call i32 (...) @dlerror()
%9 = call i32 @FAIL(ptr noundef @.str.1, i32 noundef %8)
%10 = call i32 @exit(i32 noundef 0) #3
unreachable
11: ; preds = %0
%12 = load ptr, ptr %2, align 8
%13 = call i64 @dlclose(ptr noundef %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %11
%16 = call i32 (...) @dlerror()
%17 = call i32 @FAIL(ptr noundef @.str.2, i32 noundef %16)
%18 = call i32 @exit(i32 noundef 0) #3
unreachable
19: ; preds = %11
%20 = call i32 @PASS(ptr noundef @.str.3)
%21 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %21
}
declare ptr @dlopen(ptr noundef, i32 noundef) #1
declare i32 @FAIL(ptr noundef, i32 noundef) #1
declare i32 @dlerror(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @dlclose(ptr noundef) #1
declare i32 @PASS(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmppva0oxkw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"libfoo.dylib\00", align 1
@RTLD_LAZY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [81 x i8] c"dlclose-dylib-unload: dlopen(\22libfoo.dylib\22, RTLD_LAZY) failed with dlerror()=%s\00", align 1
@.str.2 = private unnamed_addr constant [56 x i8] c"dlclose-dylib-unload: dlclose(handle) != 0, dlerrr()=%s\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"dlclose-terminator-dlclose\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 ptr, align 8
store i32 0, ptr %1, align 4
%3 = load i32, ptr @RTLD_LAZY, align 4
%4 = call ptr @dlopen(ptr noundef @.str, i32 noundef %3)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %11
7: ; preds = %0
%8 = call i32 (...) @dlerror()
%9 = call i32 @FAIL(ptr noundef @.str.1, i32 noundef %8)
%10 = call i32 @exit(i32 noundef 0) #3
unreachable
11: ; preds = %0
%12 = load ptr, ptr %2, align 8
%13 = call i64 @dlclose(ptr noundef %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %11
%16 = call i32 (...) @dlerror()
%17 = call i32 @FAIL(ptr noundef @.str.2, i32 noundef %16)
%18 = call i32 @exit(i32 noundef 0) #3
unreachable
19: ; preds = %11
%20 = call i32 @PASS(ptr noundef @.str.3)
%21 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %21
}
declare ptr @dlopen(ptr noundef, i32 noundef) #1
declare i32 @FAIL(ptr noundef, i32 noundef) #1
declare i32 @dlerror(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @dlclose(ptr noundef) #1
declare i32 @PASS(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmp42nme6hq.c'
source_filename = "/tmp/tmp42nme6hq.c"
target datalayout = "e-m:e-p270: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.array = private unnamed_addr constant [10 x i32] [i32 1, i32 3, i32 5, i32 7, i32 8, i32 10, i32 11, i32 13, i32 20, i32 22], align 16
@.str = private unnamed_addr constant [42 x i8] c"There are two elements that added sum 28\0A\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"There are two elements that added sum 3\0A\00", align 1
@.str.2 = private unnamed_addr constant [42 x i8] c"There are two elements that added sum 42\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
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.array, i64 40, i1 false)
%3 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%4 = call i64 @isThereASum(ptr noundef %3, i32 noundef 28)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @printf(ptr noundef @.str)
br label %8
8: ; preds = %6, %0
%9 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%10 = call i64 @isThereASum(ptr noundef %9, i32 noundef 3)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = call i32 @printf(ptr noundef @.str.1)
br label %14
14: ; preds = %12, %8
%15 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%16 = call i64 @isThereASum(ptr noundef %15, i32 noundef 42)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 @printf(ptr noundef @.str.2)
br label %20
20: ; preds = %18, %14
%21 = load i32, ptr %1, align 4
ret i32 %21
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i64 @isThereASum(ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp42nme6hq.c"
target datalayout = "e-m:e-p270: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.array = private unnamed_addr constant [10 x i32] [i32 1, i32 3, i32 5, i32 7, i32 8, i32 10, i32 11, i32 13, i32 20, i32 22], align 16
@.str = private unnamed_addr constant [42 x i8] c"There are two elements that added sum 28\0A\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"There are two elements that added sum 3\0A\00", align 1
@.str.2 = private unnamed_addr constant [42 x i8] c"There are two elements that added sum 42\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
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.array, i64 40, i1 false)
%3 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%4 = call i64 @isThereASum(ptr noundef %3, i32 noundef 28)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @printf(ptr noundef @.str)
br label %8
8: ; preds = %6, %0
%9 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%10 = call i64 @isThereASum(ptr noundef %9, i32 noundef 3)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = call i32 @printf(ptr noundef @.str.1)
br label %14
14: ; preds = %12, %8
%15 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%16 = call i64 @isThereASum(ptr noundef %15, i32 noundef 42)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 @printf(ptr noundef @.str.2)
br label %20
20: ; preds = %18, %14
%21 = load i32, ptr %1, align 4
ret i32 %21
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i64 @isThereASum(ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpodbtzud3.c'
source_filename = "/tmp/tmpodbtzud3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@.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)
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = call i32 @g(i32 noundef %7, ptr noundef %4, i32 noundef %8)
%10 = load i32, ptr %4, align 4
%11 = call i32 @printf(ptr noundef @.str.1, i32 noundef %10)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @g(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpodbtzud3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@.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)
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = call i32 @g(i32 noundef %7, ptr noundef %4, i32 noundef %8)
%10 = load i32, ptr %4, align 4
%11 = call i32 @printf(ptr noundef @.str.1, i32 noundef %10)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @g(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps76__c1k.c'
source_filename = "/tmp/tmps76__c1k.c"
target datalayout = "e-m:e-p270: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/tmps76__c1k.c"
target datalayout = "e-m:e-p270: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/tmp8pv0bz6p.c'
source_filename = "/tmp/tmp8pv0bz6p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"Invalid Input!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getInt() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = call ptr (...) @getStr()
store ptr %6, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @length(ptr noundef %7)
store i32 %8, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %9
9: ; preds = %50, %0
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %53
13: ; preds = %9
%14 = load ptr, ptr %2, align 8
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = sub nsw i32 %19, 48
%21 = icmp sge i32 %20, 48
br i1 %21, label %22, label %33
22: ; preds = %13
%23 = load ptr, ptr %2, align 8
%24 = load i32, ptr %5, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = sub nsw i32 %28, 48
%30 = icmp sle i32 %29, 57
br i1 %30, label %31, label %33
31: ; preds = %22
%32 = call i32 @printf(ptr noundef @.str)
store i32 -1, ptr %1, align 4
br label %55
33: ; preds = %22, %13
%34 = load ptr, ptr %2, align 8
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = sub nsw i32 %39, 48
%41 = load i32, ptr %3, align 4
%42 = sub nsw i32 %41, 1
%43 = load i32, ptr %5, align 4
%44 = sub nsw i32 %42, %43
%45 = call signext i8 @expo(i32 noundef 10, i32 noundef %44)
%46 = sext i8 %45 to i32
%47 = mul nsw i32 %40, %46
%48 = load i32, ptr %4, align 4
%49 = add nsw i32 %48, %47
store i32 %49, ptr %4, align 4
br label %50
50: ; preds = %33
%51 = load i32, ptr %5, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %5, align 4
br label %9, !llvm.loop !6
53: ; preds = %9
%54 = load i32, ptr %4, align 4
store i32 %54, ptr %1, align 4
br label %55
55: ; preds = %53, %31
%56 = load i32, ptr %1, align 4
ret i32 %56
}
declare ptr @getStr(...) #1
declare i32 @length(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare signext i8 @expo(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/tmp8pv0bz6p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"Invalid Input!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getInt() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = call ptr (...) @getStr()
store ptr %6, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @length(ptr noundef %7)
store i32 %8, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %55
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %49
%13 = load ptr, ptr %2, align 8
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = sub nsw i32 %18, 48
%20 = icmp sge i32 %19, 48
br i1 %20, label %21, label %32
21: ; preds = %12
%22 = load ptr, ptr %2, align 8
%23 = load i32, ptr %5, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = sub nsw i32 %27, 48
%29 = icmp sle i32 %28, 57
br i1 %29, label %30, label %32
30: ; preds = %21
%31 = call i32 @printf(ptr noundef @.str)
store i32 -1, ptr %1, align 4
br label %57
32: ; preds = %21, %12
%33 = load ptr, ptr %2, align 8
%34 = load i32, ptr %5, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = sub nsw i32 %38, 48
%40 = load i32, ptr %3, align 4
%41 = sub nsw i32 %40, 1
%42 = load i32, ptr %5, align 4
%43 = sub nsw i32 %41, %42
%44 = call signext i8 @expo(i32 noundef 10, i32 noundef %43)
%45 = sext i8 %44 to i32
%46 = mul nsw i32 %39, %45
%47 = load i32, ptr %4, align 4
%48 = add nsw i32 %47, %46
store i32 %48, ptr %4, align 4
br label %49
49: ; preds = %32
%50 = load i32, ptr %5, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %5, align 4
%52 = load i32, ptr %5, align 4
%53 = load i32, ptr %3, align 4
%54 = icmp slt i32 %52, %53
br i1 %54, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %49
br label %55
55: ; preds = %._crit_edge, %0
%56 = load i32, ptr %4, align 4
store i32 %56, ptr %1, align 4
br label %57
57: ; preds = %55, %30
%58 = load i32, ptr %1, align 4
ret i32 %58
}
declare ptr @getStr(...) #1
declare i32 @length(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare signext i8 @expo(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/tmpvgus6zhu.c'
source_filename = "/tmp/tmpvgus6zhu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @string_safe_concatenate(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
%10 = load ptr, ptr %5, align 8
%11 = call i32 @string_length(ptr noundef %10)
store i32 %11, ptr %9, align 4
%12 = load ptr, ptr %5, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %15
14: ; preds = %3
store ptr null, ptr %4, align 8
br label %49
15: ; preds = %3
%16 = load ptr, ptr %6, align 8
%17 = icmp eq ptr %16, null
br i1 %17, label %21, label %18
18: ; preds = %15
%19 = load i32, ptr %7, align 4
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %18, %15
%22 = load ptr, ptr %5, align 8
store ptr %22, ptr %4, align 8
br label %49
23: ; preds = %18
store i32 0, ptr %8, align 4
br label %24
24: ; preds = %42, %23
%25 = load i32, ptr %8, align 4
%26 = load i32, ptr %7, align 4
%27 = icmp ult i32 %25, %26
br i1 %27, label %28, label %47
28: ; preds = %24
%29 = load ptr, ptr %6, align 8
%30 = load i32, ptr %8, align 4
%31 = zext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i8, ptr %32, align 1
%34 = load ptr, ptr %5, align 8
%35 = load i32, ptr %9, align 4
%36 = zext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
store i8 %33, ptr %37, align 1
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr %7, align 4
%40 = zext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %38, i64 %40
store i8 0, ptr %41, align 1
br label %42
42: ; preds = %28
%43 = load i32, ptr %8, align 4
%44 = add i32 %43, 1
store i32 %44, ptr %8, align 4
%45 = load i32, ptr %9, align 4
%46 = add i32 %45, 1
store i32 %46, ptr %9, align 4
br label %24, !llvm.loop !6
47: ; preds = %24
%48 = load ptr, ptr %5, align 8
store ptr %48, ptr %4, align 8
br label %49
49: ; preds = %47, %21, %14
%50 = load ptr, ptr %4, align 8
ret ptr %50
}
declare i32 @string_length(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpvgus6zhu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @string_safe_concatenate(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
%10 = load ptr, ptr %5, align 8
%11 = call i32 @string_length(ptr noundef %10)
store i32 %11, ptr %9, align 4
%12 = load ptr, ptr %5, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %15
14: ; preds = %3
store ptr null, ptr %4, align 8
br label %51
15: ; preds = %3
%16 = load ptr, ptr %6, align 8
%17 = icmp eq ptr %16, null
br i1 %17, label %21, label %18
18: ; preds = %15
%19 = load i32, ptr %7, align 4
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %18, %15
%22 = load ptr, ptr %5, align 8
store ptr %22, ptr %4, align 8
br label %51
23: ; preds = %18
store i32 0, ptr %8, align 4
%24 = load i32, ptr %8, align 4
%25 = load i32, ptr %7, align 4
%26 = icmp ult i32 %24, %25
br i1 %26, label %.lr.ph, label %49
.lr.ph: ; preds = %23
br label %27
27: ; preds = %.lr.ph, %41
%28 = load ptr, ptr %6, align 8
%29 = load i32, ptr %8, align 4
%30 = zext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
%32 = load i8, ptr %31, align 1
%33 = load ptr, ptr %5, align 8
%34 = load i32, ptr %9, align 4
%35 = zext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
store i8 %32, ptr %36, align 1
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %7, align 4
%39 = zext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %37, i64 %39
store i8 0, ptr %40, align 1
br label %41
41: ; preds = %27
%42 = load i32, ptr %8, align 4
%43 = add i32 %42, 1
store i32 %43, ptr %8, align 4
%44 = load i32, ptr %9, align 4
%45 = add i32 %44, 1
store i32 %45, ptr %9, align 4
%46 = load i32, ptr %8, align 4
%47 = load i32, ptr %7, align 4
%48 = icmp ult i32 %46, %47
br i1 %48, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %41
br label %49
49: ; preds = %._crit_edge, %23
%50 = load ptr, ptr %5, align 8
store ptr %50, ptr %4, align 8
br label %51
51: ; preds = %49, %21, %14
%52 = load ptr, ptr %4, align 8
ret ptr %52
}
declare i32 @string_length(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpakb9z3bz.c'
source_filename = "/tmp/tmpakb9z3bz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"B\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"KB\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"MB\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"GB\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"TB\00", align 1
@__const.hr_filesize.sizes = private unnamed_addr constant [5 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3, ptr @.str.4], align 16
@.str.5 = private unnamed_addr constant [9 x i8] c"%.02f %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hr_filesize(ptr noundef %0, double noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca double, align 8
%5 = alloca [5 x ptr], align 16
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store double %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %10, label %9
9: ; preds = %2
br label %33
10: ; preds = %2
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.hr_filesize.sizes, i64 40, i1 false)
store i32 0, ptr %6, align 4
store i32 0, ptr %6, align 4
br label %11
11: ; preds = %22, %10
%12 = load i32, ptr %6, align 4
%13 = icmp slt i32 %12, 4
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = load double, ptr %4, align 8
%16 = fcmp oge double %15, 1.024000e+03
br label %17
17: ; preds = %14, %11
%18 = phi i1 [ false, %11 ], [ %16, %14 ]
br i1 %18, label %19, label %25
19: ; preds = %17
%20 = load double, ptr %4, align 8
%21 = fdiv double %20, 1.024000e+03
store double %21, ptr %4, align 8
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
br label %11, !llvm.loop !6
25: ; preds = %17
%26 = load ptr, ptr %3, align 8
%27 = load double, ptr %4, align 8
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [5 x ptr], ptr %5, i64 0, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = call i32 @sprintf(ptr noundef %26, ptr noundef @.str.5, double noundef %27, ptr noundef %31)
br label %33
33: ; preds = %25, %9
ret void
}
; 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 @sprintf(ptr noundef, ptr noundef, double 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/tmpakb9z3bz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"B\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"KB\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"MB\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"GB\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"TB\00", align 1
@__const.hr_filesize.sizes = private unnamed_addr constant [5 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3, ptr @.str.4], align 16
@.str.5 = private unnamed_addr constant [9 x i8] c"%.02f %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hr_filesize(ptr noundef %0, double noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca double, align 8
%5 = alloca [5 x ptr], align 16
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store double %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %10, label %9
9: ; preds = %2
br label %33
10: ; preds = %2
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.hr_filesize.sizes, i64 40, i1 false)
store i32 0, ptr %6, align 4
store i32 0, ptr %6, align 4
br label %11
11: ; preds = %22, %10
%12 = load i32, ptr %6, align 4
%13 = icmp slt i32 %12, 4
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = load double, ptr %4, align 8
%16 = fcmp oge double %15, 1.024000e+03
br label %17
17: ; preds = %14, %11
%18 = phi i1 [ false, %11 ], [ %16, %14 ]
br i1 %18, label %19, label %25
19: ; preds = %17
%20 = load double, ptr %4, align 8
%21 = fdiv double %20, 1.024000e+03
store double %21, ptr %4, align 8
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
br label %11, !llvm.loop !6
25: ; preds = %17
%26 = load ptr, ptr %3, align 8
%27 = load double, ptr %4, align 8
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [5 x ptr], ptr %5, i64 0, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = call i32 @sprintf(ptr noundef %26, ptr noundef @.str.5, double noundef %27, ptr noundef %31)
br label %33
33: ; preds = %25, %9
ret void
}
; 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 @sprintf(ptr noundef, ptr noundef, double 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/tmp3wnwr7zq.c'
source_filename = "/tmp/tmp3wnwr7zq.c"
target datalayout = "e-m:e-p270: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/tmp3wnwr7zq.c"
target datalayout = "e-m:e-p270: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/tmpcl912ay6.c'
source_filename = "/tmp/tmpcl912ay6.c"
target datalayout = "e-m:e-p270: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, i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [24 x i8] c"fsize: can't access %s\0A\00", align 1
@S_IFMT = dso_local global i32 0, align 4
@S_IFDIR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [9 x i8] c"%8ld %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fsize(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca %struct.stat, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @stat(ptr noundef %4, ptr noundef %3)
%6 = icmp eq i32 %5, -1
br i1 %6, label %7, label %11
7: ; preds = %1
%8 = load i32, ptr @stderr, align 4
%9 = load ptr, ptr %2, align 8
%10 = call i32 @fprintf(i32 noundef %8, ptr noundef @.str, ptr noundef %9)
br label %26
11: ; preds = %1
%12 = getelementptr inbounds %struct.stat, ptr %3, i32 0, i32 0
%13 = load i32, ptr %12, align 4
%14 = load i32, ptr @S_IFMT, align 4
%15 = and i32 %13, %14
%16 = load i32, ptr @S_IFDIR, align 4
%17 = icmp eq i32 %15, %16
br i1 %17, label %18, label %21
18: ; preds = %11
%19 = load ptr, ptr %2, align 8
%20 = call i32 @dirwalk(ptr noundef %19, ptr noundef @fsize)
br label %26
21: ; preds = %11
%22 = getelementptr inbounds %struct.stat, ptr %3, i32 0, i32 1
%23 = load i32, ptr %22, align 4
%24 = load ptr, ptr %2, align 8
%25 = call i32 @printf(ptr noundef @.str.1, i32 noundef %23, ptr noundef %24)
br label %26
26: ; preds = %7, %21, %18
ret void
}
declare i32 @stat(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @dirwalk(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcl912ay6.c"
target datalayout = "e-m:e-p270: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, i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [24 x i8] c"fsize: can't access %s\0A\00", align 1
@S_IFMT = dso_local global i32 0, align 4
@S_IFDIR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [9 x i8] c"%8ld %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fsize(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca %struct.stat, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @stat(ptr noundef %4, ptr noundef %3)
%6 = icmp eq i32 %5, -1
br i1 %6, label %7, label %11
7: ; preds = %1
%8 = load i32, ptr @stderr, align 4
%9 = load ptr, ptr %2, align 8
%10 = call i32 @fprintf(i32 noundef %8, ptr noundef @.str, ptr noundef %9)
br label %26
11: ; preds = %1
%12 = getelementptr inbounds %struct.stat, ptr %3, i32 0, i32 0
%13 = load i32, ptr %12, align 4
%14 = load i32, ptr @S_IFMT, align 4
%15 = and i32 %13, %14
%16 = load i32, ptr @S_IFDIR, align 4
%17 = icmp eq i32 %15, %16
br i1 %17, label %18, label %21
18: ; preds = %11
%19 = load ptr, ptr %2, align 8
%20 = call i32 @dirwalk(ptr noundef %19, ptr noundef @fsize)
br label %26
21: ; preds = %11
%22 = getelementptr inbounds %struct.stat, ptr %3, i32 0, i32 1
%23 = load i32, ptr %22, align 4
%24 = load ptr, ptr %2, align 8
%25 = call i32 @printf(ptr noundef @.str.1, i32 noundef %23, ptr noundef %24)
br label %26
26: ; preds = %21, %18, %7
ret void
}
declare i32 @stat(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @dirwalk(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg0nd186a.c'
source_filename = "/tmp/tmpg0nd186a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"please select the function:\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
store i32 0, ptr %1, align 4
store i32 1, ptr %3, align 4
%4 = call i32 (...) @selection_menu()
br label %5
5: ; preds = %8, %0
%6 = load i32, ptr %3, align 4
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %13
8: ; preds = %5
%9 = call i32 @printf(ptr noundef @.str)
%10 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%11 = load i32, ptr %2, align 4
%12 = call i32 @select_function(i32 noundef %11, ptr noundef %3)
br label %5, !llvm.loop !6
13: ; preds = %5
ret i32 0
}
declare i32 @selection_menu(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @select_function(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/tmpg0nd186a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"please select the function:\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
store i32 0, ptr %1, align 4
store i32 1, ptr %3, align 4
%4 = call i32 (...) @selection_menu()
%5 = load i32, ptr %3, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %.lr.ph, label %14
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %7
%8 = call i32 @printf(ptr noundef @.str)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%10 = load i32, ptr %2, align 4
%11 = call i32 @select_function(i32 noundef %10, ptr noundef %3)
%12 = load i32, ptr %3, align 4
%13 = icmp ne i32 %12, 0
br i1 %13, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %7
br label %14
14: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @selection_menu(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @select_function(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/tmpg6fsq9vl.c'
source_filename = "/tmp/tmpg6fsq9vl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"Enter the size of 2D array\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%d%d\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [39 x i8] c"Entered array element \22%d\22 is positive\00", align 1
@.str.4 = private unnamed_addr constant [24 x i8] c" and is a single digit\0A\00", align 1
@.str.5 = private unnamed_addr constant [28 x i8] c" and is not a single digit\0A\00", align 1
@.str.6 = private unnamed_addr constant [39 x i8] c"Entered array element \22%d\22 is negative\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3, ptr noundef %4)
%10 = load i32, ptr %3, align 4
%11 = zext i32 %10 to i64
%12 = load i32, ptr %4, align 4
%13 = zext i32 %12 to i64
%14 = call ptr @llvm.stacksave()
store ptr %14, ptr %5, align 8
%15 = mul nuw i64 %11, %13
%16 = alloca i32, i64 %15, align 16
store i64 %11, ptr %6, align 8
store i64 %13, ptr %7, align 8
store i32 0, ptr %1, align 4
br label %17
17: ; preds = %167, %0
%18 = load i32, ptr %1, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %170
21: ; preds = %17
store i32 0, ptr %1, align 4
br label %22
22: ; preds = %44, %21
%23 = load i32, ptr %1, align 4
%24 = load i32, ptr %3, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %47
26: ; preds = %22
store i32 0, ptr %2, align 4
br label %27
27: ; preds = %40, %26
%28 = load i32, ptr %2, align 4
%29 = load i32, ptr %4, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %31, label %43
31: ; preds = %27
%32 = load i32, ptr %1, align 4
%33 = sext i32 %32 to i64
%34 = mul nsw i64 %33, %13
%35 = getelementptr inbounds i32, ptr %16, i64 %34
%36 = load i32, ptr %2, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %35, i64 %37
%39 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %38)
br label %40
40: ; preds = %31
%41 = load i32, ptr %2, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %2, align 4
br label %27, !llvm.loop !6
43: ; preds = %27
br label %44
44: ; preds = %43
%45 = load i32, ptr %1, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %1, align 4
br label %22, !llvm.loop !8
47: ; preds = %22
store i32 0, ptr %2, align 4
br label %48
48: ; preds = %163, %47
%49 = load i32, ptr %2, align 4
%50 = load i32, ptr %4, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %52, label %166
52: ; preds = %48
%53 = load i32, ptr %1, align 4
%54 = sext i32 %53 to i64
%55 = mul nsw i64 %54, %13
%56 = getelementptr inbounds i32, ptr %16, i64 %55
%57 = load i32, ptr %2, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i32, ptr %56, i64 %58
%60 = load i32, ptr %59, align 4
%61 = icmp sge i32 %60, 0
br i1 %61, label %62, label %112
62: ; preds = %52
%63 = load i32, ptr %1, align 4
%64 = sext i32 %63 to i64
%65 = mul nsw i64 %64, %13
%66 = getelementptr inbounds i32, ptr %16, i64 %65
%67 = load i32, ptr %2, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i32, ptr %66, i64 %68
%70 = load i32, ptr %69, align 4
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %70)
%72 = load i32, ptr %1, align 4
%73 = sext i32 %72 to i64
%74 = mul nsw i64 %73, %13
%75 = getelementptr inbounds i32, ptr %16, i64 %74
%76 = load i32, ptr %2, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i32, ptr %75, i64 %77
%79 = load i32, ptr %78, align 4
%80 = icmp sge i32 %79, 0
br i1 %80, label %81, label %101
81: ; preds = %62
%82 = load i32, ptr %1, align 4
%83 = sext i32 %82 to i64
%84 = mul nsw i64 %83, %13
%85 = getelementptr inbounds i32, ptr %16, i64 %84
%86 = load i32, ptr %2, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i32, ptr %85, i64 %87
%89 = load i32, ptr %88, align 4
%90 = icmp sle i32 %89, 9
br i1 %90, label %91, label %101
91: ; preds = %81
%92 = load i32, ptr %1, align 4
%93 = sext i32 %92 to i64
%94 = mul nsw i64 %93, %13
%95 = getelementptr inbounds i32, ptr %16, i64 %94
%96 = load i32, ptr %2, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i32, ptr %95, i64 %97
%99 = load i32, ptr %98, align 4
%100 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %99)
br label %111
101: ; preds = %81, %62
%102 = load i32, ptr %1, align 4
%103 = sext i32 %102 to i64
%104 = mul nsw i64 %103, %13
%105 = getelementptr inbounds i32, ptr %16, i64 %104
%106 = load i32, ptr %2, align 4
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds i32, ptr %105, i64 %107
%109 = load i32, ptr %108, align 4
%110 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %109)
br label %111
111: ; preds = %101, %91
br label %162
112: ; preds = %52
%113 = load i32, ptr %1, align 4
%114 = sext i32 %113 to i64
%115 = mul nsw i64 %114, %13
%116 = getelementptr inbounds i32, ptr %16, i64 %115
%117 = load i32, ptr %2, align 4
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds i32, ptr %116, i64 %118
%120 = load i32, ptr %119, align 4
%121 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %120)
%122 = load i32, ptr %1, align 4
%123 = sext i32 %122 to i64
%124 = mul nsw i64 %123, %13
%125 = getelementptr inbounds i32, ptr %16, i64 %124
%126 = load i32, ptr %2, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds i32, ptr %125, i64 %127
%129 = load i32, ptr %128, align 4
%130 = icmp sle i32 %129, -1
br i1 %130, label %131, label %151
131: ; preds = %112
%132 = load i32, ptr %1, align 4
%133 = sext i32 %132 to i64
%134 = mul nsw i64 %133, %13
%135 = getelementptr inbounds i32, ptr %16, i64 %134
%136 = load i32, ptr %2, align 4
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds i32, ptr %135, i64 %137
%139 = load i32, ptr %138, align 4
%140 = icmp sge i32 %139, -9
br i1 %140, label %141, label %151
141: ; preds = %131
%142 = load i32, ptr %1, align 4
%143 = sext i32 %142 to i64
%144 = mul nsw i64 %143, %13
%145 = getelementptr inbounds i32, ptr %16, i64 %144
%146 = load i32, ptr %2, align 4
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds i32, ptr %145, i64 %147
%149 = load i32, ptr %148, align 4
%150 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %149)
br label %161
151: ; preds = %131, %112
%152 = load i32, ptr %1, align 4
%153 = sext i32 %152 to i64
%154 = mul nsw i64 %153, %13
%155 = getelementptr inbounds i32, ptr %16, i64 %154
%156 = load i32, ptr %2, align 4
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds i32, ptr %155, i64 %157
%159 = load i32, ptr %158, align 4
%160 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %159)
br label %161
161: ; preds = %151, %141
br label %162
162: ; preds = %161, %111
br label %163
163: ; preds = %162
%164 = load i32, ptr %2, align 4
%165 = add nsw i32 %164, 1
store i32 %165, ptr %2, align 4
br label %48, !llvm.loop !9
166: ; preds = %48
br label %167
167: ; preds = %166
%168 = load i32, ptr %1, align 4
%169 = add nsw i32 %168, 1
store i32 %169, ptr %1, align 4
br label %17, !llvm.loop !10
170: ; preds = %17
%171 = load ptr, ptr %5, align 8
call void @llvm.stackrestore(ptr %171)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg6fsq9vl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"Enter the size of 2D array\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%d%d\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [39 x i8] c"Entered array element \22%d\22 is positive\00", align 1
@.str.4 = private unnamed_addr constant [24 x i8] c" and is a single digit\0A\00", align 1
@.str.5 = private unnamed_addr constant [28 x i8] c" and is not a single digit\0A\00", align 1
@.str.6 = private unnamed_addr constant [39 x i8] c"Entered array element \22%d\22 is negative\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3, ptr noundef %4)
%10 = load i32, ptr %3, align 4
%11 = zext i32 %10 to i64
%12 = load i32, ptr %4, align 4
%13 = zext i32 %12 to i64
%14 = call ptr @llvm.stacksave()
store ptr %14, ptr %5, align 8
%15 = mul nuw i64 %11, %13
%16 = alloca i32, i64 %15, align 16
store i64 %11, ptr %6, align 8
store i64 %13, ptr %7, align 8
store i32 0, ptr %1, align 4
%17 = load i32, ptr %1, align 4
%18 = load i32, ptr %3, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %.lr.ph8, label %178
.lr.ph8: ; preds = %0
br label %20
20: ; preds = %.lr.ph8, %172
store i32 0, ptr %1, align 4
%21 = load i32, ptr %1, align 4
%22 = load i32, ptr %3, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %.lr.ph2, label %50
.lr.ph2: ; preds = %20
br label %24
24: ; preds = %.lr.ph2, %44
store i32 0, ptr %2, align 4
%25 = load i32, ptr %2, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %.lr.ph, label %43
.lr.ph: ; preds = %24
br label %28
28: ; preds = %.lr.ph, %37
%29 = load i32, ptr %1, align 4
%30 = sext i32 %29 to i64
%31 = mul nsw i64 %30, %13
%32 = getelementptr inbounds i32, ptr %16, i64 %31
%33 = load i32, ptr %2, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %32, i64 %34
%36 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %35)
br label %37
37: ; preds = %28
%38 = load i32, ptr %2, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %2, align 4
%40 = load i32, ptr %2, align 4
%41 = load i32, ptr %4, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %43
43: ; preds = %._crit_edge, %24
br label %44
44: ; preds = %43
%45 = load i32, ptr %1, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %1, align 4
%47 = load i32, ptr %1, align 4
%48 = load i32, ptr %3, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %24, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %44
br label %50
50: ; preds = %._crit_edge3, %20
store i32 0, ptr %2, align 4
%51 = load i32, ptr %2, align 4
%52 = load i32, ptr %4, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %.lr.ph5, label %171
.lr.ph5: ; preds = %50
br label %54
54: ; preds = %.lr.ph5, %165
%55 = load i32, ptr %1, align 4
%56 = sext i32 %55 to i64
%57 = mul nsw i64 %56, %13
%58 = getelementptr inbounds i32, ptr %16, i64 %57
%59 = load i32, ptr %2, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i32, ptr %58, i64 %60
%62 = load i32, ptr %61, align 4
%63 = icmp sge i32 %62, 0
br i1 %63, label %64, label %114
64: ; preds = %54
%65 = load i32, ptr %1, align 4
%66 = sext i32 %65 to i64
%67 = mul nsw i64 %66, %13
%68 = getelementptr inbounds i32, ptr %16, i64 %67
%69 = load i32, ptr %2, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i32, ptr %68, i64 %70
%72 = load i32, ptr %71, align 4
%73 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %72)
%74 = load i32, ptr %1, align 4
%75 = sext i32 %74 to i64
%76 = mul nsw i64 %75, %13
%77 = getelementptr inbounds i32, ptr %16, i64 %76
%78 = load i32, ptr %2, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i32, ptr %77, i64 %79
%81 = load i32, ptr %80, align 4
%82 = icmp sge i32 %81, 0
br i1 %82, label %83, label %103
83: ; preds = %64
%84 = load i32, ptr %1, align 4
%85 = sext i32 %84 to i64
%86 = mul nsw i64 %85, %13
%87 = getelementptr inbounds i32, ptr %16, i64 %86
%88 = load i32, ptr %2, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i32, ptr %87, i64 %89
%91 = load i32, ptr %90, align 4
%92 = icmp sle i32 %91, 9
br i1 %92, label %93, label %103
93: ; preds = %83
%94 = load i32, ptr %1, align 4
%95 = sext i32 %94 to i64
%96 = mul nsw i64 %95, %13
%97 = getelementptr inbounds i32, ptr %16, i64 %96
%98 = load i32, ptr %2, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i32, ptr %97, i64 %99
%101 = load i32, ptr %100, align 4
%102 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %101)
br label %113
103: ; preds = %83, %64
%104 = load i32, ptr %1, align 4
%105 = sext i32 %104 to i64
%106 = mul nsw i64 %105, %13
%107 = getelementptr inbounds i32, ptr %16, i64 %106
%108 = load i32, ptr %2, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i32, ptr %107, i64 %109
%111 = load i32, ptr %110, align 4
%112 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %111)
br label %113
113: ; preds = %103, %93
br label %164
114: ; preds = %54
%115 = load i32, ptr %1, align 4
%116 = sext i32 %115 to i64
%117 = mul nsw i64 %116, %13
%118 = getelementptr inbounds i32, ptr %16, i64 %117
%119 = load i32, ptr %2, align 4
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds i32, ptr %118, i64 %120
%122 = load i32, ptr %121, align 4
%123 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %122)
%124 = load i32, ptr %1, align 4
%125 = sext i32 %124 to i64
%126 = mul nsw i64 %125, %13
%127 = getelementptr inbounds i32, ptr %16, i64 %126
%128 = load i32, ptr %2, align 4
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds i32, ptr %127, i64 %129
%131 = load i32, ptr %130, align 4
%132 = icmp sle i32 %131, -1
br i1 %132, label %133, label %153
133: ; preds = %114
%134 = load i32, ptr %1, align 4
%135 = sext i32 %134 to i64
%136 = mul nsw i64 %135, %13
%137 = getelementptr inbounds i32, ptr %16, i64 %136
%138 = load i32, ptr %2, align 4
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds i32, ptr %137, i64 %139
%141 = load i32, ptr %140, align 4
%142 = icmp sge i32 %141, -9
br i1 %142, label %143, label %153
143: ; preds = %133
%144 = load i32, ptr %1, align 4
%145 = sext i32 %144 to i64
%146 = mul nsw i64 %145, %13
%147 = getelementptr inbounds i32, ptr %16, i64 %146
%148 = load i32, ptr %2, align 4
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds i32, ptr %147, i64 %149
%151 = load i32, ptr %150, align 4
%152 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %151)
br label %163
153: ; preds = %133, %114
%154 = load i32, ptr %1, align 4
%155 = sext i32 %154 to i64
%156 = mul nsw i64 %155, %13
%157 = getelementptr inbounds i32, ptr %16, i64 %156
%158 = load i32, ptr %2, align 4
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds i32, ptr %157, i64 %159
%161 = load i32, ptr %160, align 4
%162 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %161)
br label %163
163: ; preds = %153, %143
br label %164
164: ; preds = %163, %113
br label %165
165: ; preds = %164
%166 = load i32, ptr %2, align 4
%167 = add nsw i32 %166, 1
store i32 %167, ptr %2, align 4
%168 = load i32, ptr %2, align 4
%169 = load i32, ptr %4, align 4
%170 = icmp slt i32 %168, %169
br i1 %170, label %54, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %165
br label %171
171: ; preds = %._crit_edge6, %50
br label %172
172: ; preds = %171
%173 = load i32, ptr %1, align 4
%174 = add nsw i32 %173, 1
store i32 %174, ptr %1, align 4
%175 = load i32, ptr %1, align 4
%176 = load i32, ptr %3, align 4
%177 = icmp slt i32 %175, %176
br i1 %177, label %20, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %172
br label %178
178: ; preds = %._crit_edge9, %0
%179 = load ptr, ptr %5, align 8
call void @llvm.stackrestore(ptr %179)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmp0xs6di6g.c'
source_filename = "/tmp/tmp0xs6di6g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 @zuidaziliehe() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %1)
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
br label %6
6: ; preds = %29, %0
%7 = load i32, ptr %1, align 4
%8 = add nsw i32 %7, -1
store i32 %8, ptr %1, align 4
%9 = icmp sgt i32 %7, 0
br i1 %9, label %10, label %31
10: ; preds = %6
%11 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %13, %12
store i32 %14, ptr %3, align 4
%15 = load i32, ptr %3, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %10
br label %20
18: ; preds = %10
%19 = load i32, ptr %3, align 4
br label %20
20: ; preds = %18, %17
%21 = phi i32 [ 0, %17 ], [ %19, %18 ]
store i32 %21, ptr %3, align 4
%22 = load i32, ptr %3, align 4
%23 = load i32, ptr %4, align 4
%24 = icmp sgt i32 %22, %23
br i1 %24, label %25, label %27
25: ; preds = %20
%26 = load i32, ptr %3, align 4
br label %29
27: ; preds = %20
%28 = load i32, ptr %4, align 4
br label %29
29: ; preds = %27, %25
%30 = phi i32 [ %26, %25 ], [ %28, %27 ]
store i32 %30, ptr %4, align 4
br label %6, !llvm.loop !6
31: ; preds = %6
%32 = load i32, ptr %4, align 4
%33 = call i32 @printf(ptr noundef @.str, i32 noundef %32)
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/tmp0xs6di6g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 @zuidaziliehe() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %1)
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%6 = load i32, ptr %1, align 4
%7 = add nsw i32 %6, -1
store i32 %7, ptr %1, align 4
%8 = icmp sgt i32 %6, 0
br i1 %8, label %.lr.ph, label %33
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %28
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %12, %11
store i32 %13, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = icmp slt i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %9
br label %19
17: ; preds = %9
%18 = load i32, ptr %3, align 4
br label %19
19: ; preds = %17, %16
%20 = phi i32 [ 0, %16 ], [ %18, %17 ]
store i32 %20, ptr %3, align 4
%21 = load i32, ptr %3, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp sgt i32 %21, %22
br i1 %23, label %24, label %26
24: ; preds = %19
%25 = load i32, ptr %3, align 4
br label %28
26: ; preds = %19
%27 = load i32, ptr %4, align 4
br label %28
28: ; preds = %26, %24
%29 = phi i32 [ %25, %24 ], [ %27, %26 ]
store i32 %29, ptr %4, align 4
%30 = load i32, ptr %1, align 4
%31 = add nsw i32 %30, -1
store i32 %31, ptr %1, align 4
%32 = icmp sgt i32 %30, 0
br i1 %32, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %33
33: ; preds = %._crit_edge, %0
%34 = load i32, ptr %4, align 4
%35 = call i32 @printf(ptr noundef @.str, i32 noundef %34)
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/tmp8372wne2.c'
source_filename = "/tmp/tmp8372wne2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"/my_shm\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [9 x i8] c"shm_open\00", align 1
@errno = dso_local global i32 0, align 4
@PROT_READ = dso_local global i32 0, align 4
@PROT_WRITE = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
@.str.2 = private unnamed_addr constant [5 x i8] c"mmap\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"RCV: Memory attached at %lX\0A\00", align 1
@.str.4 = private unnamed_addr constant [28 x i8] c"Attaching to the semaphore\0A\00", align 1
@.str.5 = private unnamed_addr constant [8 x i8] c"/my_sem\00", align 1
@SEM_FAILED = dso_local global ptr null, align 8
@.str.6 = private unnamed_addr constant [9 x i8] c"sem_open\00", align 1
@.str.7 = private unnamed_addr constant [9 x i8] c"sem_wait\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.9 = private unnamed_addr constant [9 x i8] c"sem_post\00", align 1
@.str.10 = private unnamed_addr constant [32 x i8] c"RCV has successfully completed\0A\00", align 1
@.str.11 = private unnamed_addr constant [7 x i8] c"munmap\00", align 1
@.str.12 = private unnamed_addr constant [10 x i8] c"sem_close\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @receive_it() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = load i32, ptr @O_RDWR, align 4
%6 = call i32 @shm_open(ptr noundef @.str, i32 noundef %5, i32 noundef 0)
store i32 %6, ptr %1, align 4
%7 = icmp eq i32 %6, -1
br i1 %7, label %8, label %12
8: ; preds = %0
%9 = call i32 @perror(ptr noundef @.str.1)
%10 = load i32, ptr @errno, align 4
%11 = call i32 @exit(i32 noundef %10) #3
unreachable
12: ; preds = %0
%13 = load i32, ptr @PROT_READ, align 4
%14 = load i32, ptr @PROT_WRITE, align 4
%15 = or i32 %13, %14
%16 = load i32, ptr @MAP_SHARED, align 4
%17 = load i32, ptr %1, align 4
%18 = call ptr @mmap(ptr noundef null, i32 noundef 8196, i32 noundef %15, i32 noundef %16, i32 noundef %17, i32 noundef 0)
store ptr %18, ptr %3, align 8
%19 = load ptr, ptr %3, align 8
%20 = load ptr, ptr @MAP_FAILED, align 8
%21 = icmp eq ptr %19, %20
br i1 %21, label %22, label %26
22: ; preds = %12
%23 = call i32 @perror(ptr noundef @.str.2)
%24 = load i32, ptr @errno, align 4
%25 = call i32 @exit(i32 noundef %24) #3
unreachable
26: ; preds = %12
%27 = load ptr, ptr %3, align 8
%28 = ptrtoint ptr %27 to i64
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %28)
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%31 = call ptr @sem_open(ptr noundef @.str.5, i32 noundef 0)
store ptr %31, ptr %4, align 8
%32 = load ptr, ptr @SEM_FAILED, align 8
%33 = icmp eq ptr %31, %32
br i1 %33, label %34, label %38
34: ; preds = %26
%35 = call i32 @perror(ptr noundef @.str.6)
%36 = load i32, ptr @errno, align 4
%37 = call i32 @exit(i32 noundef %36) #3
unreachable
38: ; preds = %26
store i32 0, ptr %2, align 4
br label %39
39: ; preds = %63, %38
%40 = load i32, ptr %2, align 4
%41 = icmp slt i32 %40, 4
br i1 %41, label %42, label %66
42: ; preds = %39
%43 = load ptr, ptr %4, align 8
%44 = call i64 @sem_wait(ptr noundef %43)
%45 = icmp ne i64 %44, 0
br i1 %45, label %46, label %50
46: ; preds = %42
%47 = call i32 @perror(ptr noundef @.str.7)
%48 = load i32, ptr @errno, align 4
%49 = call i32 @exit(i32 noundef %48) #3
unreachable
50: ; preds = %42
%51 = load i32, ptr @stdout, align 4
%52 = load ptr, ptr %3, align 8
%53 = call i32 @fprintf(i32 noundef %51, ptr noundef @.str.8, ptr noundef %52)
%54 = load ptr, ptr %4, align 8
%55 = call i64 @sem_post(ptr noundef %54)
%56 = icmp ne i64 %55, 0
br i1 %56, label %57, label %61
57: ; preds = %50
%58 = call i32 @perror(ptr noundef @.str.9)
%59 = load i32, ptr @errno, align 4
%60 = call i32 @exit(i32 noundef %59) #3
unreachable
61: ; preds = %50
%62 = call i32 @usleep(i32 noundef 1000)
br label %63
63: ; preds = %61
%64 = load i32, ptr %2, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %2, align 4
br label %39, !llvm.loop !6
66: ; preds = %39
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%68 = load ptr, ptr %3, align 8
%69 = call i64 @munmap(ptr noundef %68, i32 noundef 8196)
%70 = icmp ne i64 %69, 0
br i1 %70, label %71, label %75
71: ; preds = %66
%72 = call i32 @perror(ptr noundef @.str.11)
%73 = load i32, ptr @errno, align 4
%74 = call i32 @exit(i32 noundef %73) #3
unreachable
75: ; preds = %66
%76 = load ptr, ptr %4, align 8
%77 = call i32 @sem_close(ptr noundef %76)
%78 = icmp eq i32 %77, -1
br i1 %78, label %79, label %83
79: ; preds = %75
%80 = call i32 @perror(ptr noundef @.str.12)
%81 = load i32, ptr @errno, align 4
%82 = call i32 @exit(i32 noundef %81) #3
unreachable
83: ; preds = %75
%84 = load i32, ptr @EXIT_SUCCESS, align 4
%85 = call i32 @exit(i32 noundef %84) #3
unreachable
}
declare i32 @shm_open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @mmap(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @sem_open(ptr noundef, i32 noundef) #1
declare i64 @sem_wait(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @sem_post(ptr noundef) #1
declare i32 @usleep(i32 noundef) #1
declare i64 @munmap(ptr noundef, i32 noundef) #1
declare i32 @sem_close(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmp8372wne2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"/my_shm\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [9 x i8] c"shm_open\00", align 1
@errno = dso_local global i32 0, align 4
@PROT_READ = dso_local global i32 0, align 4
@PROT_WRITE = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
@.str.2 = private unnamed_addr constant [5 x i8] c"mmap\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"RCV: Memory attached at %lX\0A\00", align 1
@.str.4 = private unnamed_addr constant [28 x i8] c"Attaching to the semaphore\0A\00", align 1
@.str.5 = private unnamed_addr constant [8 x i8] c"/my_sem\00", align 1
@SEM_FAILED = dso_local global ptr null, align 8
@.str.6 = private unnamed_addr constant [9 x i8] c"sem_open\00", align 1
@.str.7 = private unnamed_addr constant [9 x i8] c"sem_wait\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.9 = private unnamed_addr constant [9 x i8] c"sem_post\00", align 1
@.str.10 = private unnamed_addr constant [32 x i8] c"RCV has successfully completed\0A\00", align 1
@.str.11 = private unnamed_addr constant [7 x i8] c"munmap\00", align 1
@.str.12 = private unnamed_addr constant [10 x i8] c"sem_close\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @receive_it() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = load i32, ptr @O_RDWR, align 4
%6 = call i32 @shm_open(ptr noundef @.str, i32 noundef %5, i32 noundef 0)
store i32 %6, ptr %1, align 4
%7 = icmp eq i32 %6, -1
br i1 %7, label %8, label %12
8: ; preds = %0
%9 = call i32 @perror(ptr noundef @.str.1)
%10 = load i32, ptr @errno, align 4
%11 = call i32 @exit(i32 noundef %10) #3
unreachable
12: ; preds = %0
%13 = load i32, ptr @PROT_READ, align 4
%14 = load i32, ptr @PROT_WRITE, align 4
%15 = or i32 %13, %14
%16 = load i32, ptr @MAP_SHARED, align 4
%17 = load i32, ptr %1, align 4
%18 = call ptr @mmap(ptr noundef null, i32 noundef 8196, i32 noundef %15, i32 noundef %16, i32 noundef %17, i32 noundef 0)
store ptr %18, ptr %3, align 8
%19 = load ptr, ptr %3, align 8
%20 = load ptr, ptr @MAP_FAILED, align 8
%21 = icmp eq ptr %19, %20
br i1 %21, label %22, label %26
22: ; preds = %12
%23 = call i32 @perror(ptr noundef @.str.2)
%24 = load i32, ptr @errno, align 4
%25 = call i32 @exit(i32 noundef %24) #3
unreachable
26: ; preds = %12
%27 = load ptr, ptr %3, align 8
%28 = ptrtoint ptr %27 to i64
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %28)
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%31 = call ptr @sem_open(ptr noundef @.str.5, i32 noundef 0)
store ptr %31, ptr %4, align 8
%32 = load ptr, ptr @SEM_FAILED, align 8
%33 = icmp eq ptr %31, %32
br i1 %33, label %34, label %38
34: ; preds = %26
%35 = call i32 @perror(ptr noundef @.str.6)
%36 = load i32, ptr @errno, align 4
%37 = call i32 @exit(i32 noundef %36) #3
unreachable
38: ; preds = %26
store i32 0, ptr %2, align 4
%39 = load i32, ptr %2, align 4
%40 = icmp slt i32 %39, 4
br i1 %40, label %.lr.ph, label %67
.lr.ph: ; preds = %38
br label %41
41: ; preds = %.lr.ph, %62
%42 = load ptr, ptr %4, align 8
%43 = call i64 @sem_wait(ptr noundef %42)
%44 = icmp ne i64 %43, 0
br i1 %44, label %45, label %49
45: ; preds = %41
%46 = call i32 @perror(ptr noundef @.str.7)
%47 = load i32, ptr @errno, align 4
%48 = call i32 @exit(i32 noundef %47) #3
unreachable
49: ; preds = %41
%50 = load i32, ptr @stdout, align 4
%51 = load ptr, ptr %3, align 8
%52 = call i32 @fprintf(i32 noundef %50, ptr noundef @.str.8, ptr noundef %51)
%53 = load ptr, ptr %4, align 8
%54 = call i64 @sem_post(ptr noundef %53)
%55 = icmp ne i64 %54, 0
br i1 %55, label %56, label %60
56: ; preds = %49
%57 = call i32 @perror(ptr noundef @.str.9)
%58 = load i32, ptr @errno, align 4
%59 = call i32 @exit(i32 noundef %58) #3
unreachable
60: ; preds = %49
%61 = call i32 @usleep(i32 noundef 1000)
br label %62
62: ; preds = %60
%63 = load i32, ptr %2, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %2, align 4
%65 = load i32, ptr %2, align 4
%66 = icmp slt i32 %65, 4
br i1 %66, label %41, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %62
br label %67
67: ; preds = %._crit_edge, %38
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%69 = load ptr, ptr %3, align 8
%70 = call i64 @munmap(ptr noundef %69, i32 noundef 8196)
%71 = icmp ne i64 %70, 0
br i1 %71, label %72, label %76
72: ; preds = %67
%73 = call i32 @perror(ptr noundef @.str.11)
%74 = load i32, ptr @errno, align 4
%75 = call i32 @exit(i32 noundef %74) #3
unreachable
76: ; preds = %67
%77 = load ptr, ptr %4, align 8
%78 = call i32 @sem_close(ptr noundef %77)
%79 = icmp eq i32 %78, -1
br i1 %79, label %80, label %84
80: ; preds = %76
%81 = call i32 @perror(ptr noundef @.str.12)
%82 = load i32, ptr @errno, align 4
%83 = call i32 @exit(i32 noundef %82) #3
unreachable
84: ; preds = %76
%85 = load i32, ptr @EXIT_SUCCESS, align 4
%86 = call i32 @exit(i32 noundef %85) #3
unreachable
}
declare i32 @shm_open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @mmap(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @sem_open(ptr noundef, i32 noundef) #1
declare i64 @sem_wait(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @sem_post(ptr noundef) #1
declare i32 @usleep(i32 noundef) #1
declare i64 @munmap(ptr noundef, i32 noundef) #1
declare i32 @sem_close(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmp1j8q1y0d.c'
source_filename = "/tmp/tmp1j8q1y0d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_GETFD = dso_local global i32 0, align 4
@F_SETFD = dso_local global i32 0, align 4
@FD_CLOEXEC = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"cannot set close-on-exec flag\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_cloexec(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr @F_GETFD, align 4
%6 = call i32 (i32, i32, ...) @fcntl(i32 noundef %4, i32 noundef %5)
store i32 %6, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 0
br i1 %8, label %17, label %9
9: ; preds = %1
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr @F_SETFD, align 4
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr @FD_CLOEXEC, align 4
%14 = or i32 %12, %13
%15 = call i32 (i32, i32, ...) @fcntl(i32 noundef %10, i32 noundef %11, i32 noundef %14)
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %9, %1
%18 = call i32 @die_errno(ptr noundef @.str)
br label %19
19: ; preds = %17, %9
ret void
}
declare i32 @fcntl(i32 noundef, i32 noundef, ...) #1
declare i32 @die_errno(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1j8q1y0d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_GETFD = dso_local global i32 0, align 4
@F_SETFD = dso_local global i32 0, align 4
@FD_CLOEXEC = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"cannot set close-on-exec flag\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_cloexec(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr @F_GETFD, align 4
%6 = call i32 (i32, i32, ...) @fcntl(i32 noundef %4, i32 noundef %5)
store i32 %6, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 0
br i1 %8, label %17, label %9
9: ; preds = %1
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr @F_SETFD, align 4
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr @FD_CLOEXEC, align 4
%14 = or i32 %12, %13
%15 = call i32 (i32, i32, ...) @fcntl(i32 noundef %10, i32 noundef %11, i32 noundef %14)
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %9, %1
%18 = call i32 @die_errno(ptr noundef @.str)
br label %19
19: ; preds = %17, %9
ret void
}
declare i32 @fcntl(i32 noundef, i32 noundef, ...) #1
declare i32 @die_errno(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnrrkf31w.c'
source_filename = "/tmp/tmpnrrkf31w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @string_find(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @string_empty(ptr noundef %6)
%8 = icmp ne i32 %7, 0
br i1 %8, label %29, label %9
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = call i32 @string_empty(ptr noundef %10)
%12 = icmp ne i32 %11, 0
br i1 %12, label %29, label %13
13: ; preds = %9
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 1
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %23
19: ; preds = %13
%20 = load ptr, ptr %4, align 8
%21 = load ptr, ptr %5, align 8
%22 = call ptr @strstr(ptr noundef %20, ptr noundef %21)
store ptr %22, ptr %3, align 8
br label %30
23: ; preds = %13
%24 = load ptr, ptr %4, align 8
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds i8, ptr %25, i64 0
%27 = load i8, ptr %26, align 1
%28 = call ptr @strchr(ptr noundef %24, i8 noundef signext %27)
store ptr %28, ptr %3, align 8
br label %30
29: ; preds = %9, %2
store ptr null, ptr %3, align 8
br label %30
30: ; preds = %29, %23, %19
%31 = load ptr, ptr %3, align 8
ret ptr %31
}
declare i32 @string_empty(ptr noundef) #1
declare ptr @strstr(ptr noundef, 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnrrkf31w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @string_find(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @string_empty(ptr noundef %6)
%8 = icmp ne i32 %7, 0
br i1 %8, label %29, label %9
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = call i32 @string_empty(ptr noundef %10)
%12 = icmp ne i32 %11, 0
br i1 %12, label %29, label %13
13: ; preds = %9
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 1
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %23
19: ; preds = %13
%20 = load ptr, ptr %4, align 8
%21 = load ptr, ptr %5, align 8
%22 = call ptr @strstr(ptr noundef %20, ptr noundef %21)
store ptr %22, ptr %3, align 8
br label %30
23: ; preds = %13
%24 = load ptr, ptr %4, align 8
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds i8, ptr %25, i64 0
%27 = load i8, ptr %26, align 1
%28 = call ptr @strchr(ptr noundef %24, i8 noundef signext %27)
store ptr %28, ptr %3, align 8
br label %30
29: ; preds = %9, %2
store ptr null, ptr %3, align 8
br label %30
30: ; preds = %29, %23, %19
%31 = load ptr, ptr %3, align 8
ret ptr %31
}
declare i32 @string_empty(ptr noundef) #1
declare ptr @strstr(ptr noundef, 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"}
|
; ModuleID = '/tmp/tmpgrlel44q.c'
source_filename = "/tmp/tmpgrlel44q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [9 x i8] c"%d%*[^\0A]\00", align 1
@.str.2 = private unnamed_addr constant [58 x i8] c"Sie m\C3\BCssen eine ganze Zahl zwischen %d und %d eingeben!\0A\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"%*[^\0A]\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @erfasse_ganze_zahl(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %10
10: ; preds = %35, %3
%11 = load ptr, ptr %4, align 8
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %11)
%13 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %7)
store i32 %13, ptr %9, align 4
%14 = load i32, ptr %9, align 4
%15 = icmp eq i32 %14, 1
br i1 %15, label %16, label %29
16: ; preds = %10
%17 = load i32, ptr %7, align 4
%18 = load i32, ptr %5, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %24, label %20
20: ; preds = %16
%21 = load i32, ptr %7, align 4
%22 = load i32, ptr %6, align 4
%23 = icmp sgt i32 %21, %22
br i1 %23, label %24, label %28
24: ; preds = %20, %16
%25 = load i32, ptr %5, align 4
%26 = load i32, ptr %6, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %25, i32 noundef %26)
store i32 1, ptr %8, align 4
br label %28
28: ; preds = %24, %20
br label %34
29: ; preds = %10
%30 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3)
%31 = load i32, ptr %5, align 4
%32 = load i32, ptr %6, align 4
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %31, i32 noundef %32)
store i32 1, ptr %8, align 4
br label %34
34: ; preds = %29, %28
br label %35
35: ; preds = %34
%36 = load i32, ptr %8, align 4
%37 = icmp ne i32 %36, 0
br i1 %37, label %10, label %38, !llvm.loop !6
38: ; preds = %35
%39 = load i32, ptr %7, align 4
ret i32 %39
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgrlel44q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [9 x i8] c"%d%*[^\0A]\00", align 1
@.str.2 = private unnamed_addr constant [58 x i8] c"Sie m\C3\BCssen eine ganze Zahl zwischen %d und %d eingeben!\0A\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"%*[^\0A]\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @erfasse_ganze_zahl(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %10
10: ; preds = %35, %3
%11 = load ptr, ptr %4, align 8
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %11)
%13 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %7)
store i32 %13, ptr %9, align 4
%14 = load i32, ptr %9, align 4
%15 = icmp eq i32 %14, 1
br i1 %15, label %16, label %29
16: ; preds = %10
%17 = load i32, ptr %7, align 4
%18 = load i32, ptr %5, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %24, label %20
20: ; preds = %16
%21 = load i32, ptr %7, align 4
%22 = load i32, ptr %6, align 4
%23 = icmp sgt i32 %21, %22
br i1 %23, label %24, label %28
24: ; preds = %20, %16
%25 = load i32, ptr %5, align 4
%26 = load i32, ptr %6, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %25, i32 noundef %26)
store i32 1, ptr %8, align 4
br label %28
28: ; preds = %24, %20
br label %34
29: ; preds = %10
%30 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3)
%31 = load i32, ptr %5, align 4
%32 = load i32, ptr %6, align 4
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %31, i32 noundef %32)
store i32 1, ptr %8, align 4
br label %34
34: ; preds = %29, %28
br label %35
35: ; preds = %34
%36 = load i32, ptr %8, align 4
%37 = icmp ne i32 %36, 0
br i1 %37, label %10, label %38, !llvm.loop !6
38: ; preds = %35
%39 = load i32, ptr %7, align 4
ret i32 %39
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpoccn7yrv.c'
source_filename = "/tmp/tmpoccn7yrv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @kstrchr(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
br label %5
5: ; preds = %20, %2
%6 = load ptr, ptr %3, align 8
%7 = load i8, ptr %6, align 1
%8 = sext i8 %7 to i32
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %18
10: ; preds = %5
%11 = load ptr, ptr %3, align 8
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = load i32, ptr %4, align 4
%15 = trunc i32 %14 to i8
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %13, %16
br label %18
18: ; preds = %10, %5
%19 = phi i1 [ false, %5 ], [ %17, %10 ]
br i1 %19, label %20, label %23
20: ; preds = %18
%21 = load ptr, ptr %3, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %3, align 8
br label %5, !llvm.loop !6
23: ; preds = %18
%24 = load ptr, ptr %3, align 8
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = load i32, ptr %4, align 4
%28 = trunc i32 %27 to i8
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %26, %29
br i1 %30, label %31, label %33
31: ; preds = %23
%32 = load ptr, ptr %3, align 8
br label %34
33: ; preds = %23
br label %34
34: ; preds = %33, %31
%35 = phi ptr [ %32, %31 ], [ null, %33 ]
ret ptr %35
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpoccn7yrv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @kstrchr(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
br label %5
5: ; preds = %20, %2
%6 = load ptr, ptr %3, align 8
%7 = load i8, ptr %6, align 1
%8 = sext i8 %7 to i32
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %18
10: ; preds = %5
%11 = load ptr, ptr %3, align 8
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = load i32, ptr %4, align 4
%15 = trunc i32 %14 to i8
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %13, %16
br label %18
18: ; preds = %10, %5
%19 = phi i1 [ false, %5 ], [ %17, %10 ]
br i1 %19, label %20, label %23
20: ; preds = %18
%21 = load ptr, ptr %3, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %3, align 8
br label %5, !llvm.loop !6
23: ; preds = %18
%24 = load ptr, ptr %3, align 8
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = load i32, ptr %4, align 4
%28 = trunc i32 %27 to i8
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %26, %29
br i1 %30, label %31, label %33
31: ; preds = %23
%32 = load ptr, ptr %3, align 8
br label %34
33: ; preds = %23
br label %34
34: ; preds = %33, %31
%35 = phi ptr [ %32, %31 ], [ null, %33 ]
ret ptr %35
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp4boedgz5.c'
source_filename = "/tmp/tmp4boedgz5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Z80_AcknowledgeInterrupt() #0 {
%1 = call i32 (...) @GateArray_AcknowledgeInterrupt()
%2 = call i32 (...) @ASIC_AcknowledgeInterrupt()
%3 = call i32 (...) @Z80_ClearInterruptRequest()
%4 = call i32 (...) @KCC_AcknowledgeInterrupt()
ret void
}
declare i32 @GateArray_AcknowledgeInterrupt(...) #1
declare i32 @ASIC_AcknowledgeInterrupt(...) #1
declare i32 @Z80_ClearInterruptRequest(...) #1
declare i32 @KCC_AcknowledgeInterrupt(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4boedgz5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Z80_AcknowledgeInterrupt() #0 {
%1 = call i32 (...) @GateArray_AcknowledgeInterrupt()
%2 = call i32 (...) @ASIC_AcknowledgeInterrupt()
%3 = call i32 (...) @Z80_ClearInterruptRequest()
%4 = call i32 (...) @KCC_AcknowledgeInterrupt()
ret void
}
declare i32 @GateArray_AcknowledgeInterrupt(...) #1
declare i32 @ASIC_AcknowledgeInterrupt(...) #1
declare i32 @Z80_ClearInterruptRequest(...) #1
declare i32 @KCC_AcknowledgeInterrupt(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpc0f5pejz.c'
source_filename = "/tmp/tmpc0f5pejz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0AUnmatch double quotes\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @inside_string() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 @putchar(i32 noundef 34)
br label %4
4: ; preds = %21, %0
%5 = call i32 (...) @getchar()
store i32 %5, ptr %2, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %22
7: ; preds = %4
%8 = load i32, ptr %2, align 4
switch i32 %8, label %18 [
i32 92, label %9
i32 34, label %11
i32 128, label %14
]
9: ; preds = %7
%10 = call i32 (...) @escape_sequence()
br label %21
11: ; preds = %7
%12 = load i32, ptr %2, align 4
%13 = call i32 @putchar(i32 noundef %12)
store i32 0, ptr %1, align 4
br label %23
14: ; preds = %7
%15 = call i32 @printf(ptr noundef @.str)
%16 = load i32, ptr @EXIT_FAILURE, align 4
%17 = call i32 @exit(i32 noundef %16) #3
unreachable
18: ; preds = %7
%19 = load i32, ptr %2, align 4
%20 = call i32 @putchar(i32 noundef %19)
br label %21
21: ; preds = %18, %9
br label %4, !llvm.loop !6
22: ; preds = %4
store i32 0, ptr %1, align 4
br label %23
23: ; preds = %22, %11
%24 = load i32, ptr %1, align 4
ret i32 %24
}
declare i32 @putchar(i32 noundef) #1
declare i32 @getchar(...) #1
declare i32 @escape_sequence(...) #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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc0f5pejz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0AUnmatch double quotes\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @inside_string() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 @putchar(i32 noundef 34)
%4 = call i32 (...) @getchar()
store i32 %4, ptr %2, align 4
%5 = icmp ne i32 %4, 0
br i1 %5, label %.lr.ph, label %23
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %20
%7 = load i32, ptr %2, align 4
switch i32 %7, label %17 [
i32 92, label %8
i32 34, label %10
i32 128, label %13
]
8: ; preds = %6
%9 = call i32 (...) @escape_sequence()
br label %20
10: ; preds = %6
%11 = load i32, ptr %2, align 4
%12 = call i32 @putchar(i32 noundef %11)
store i32 0, ptr %1, align 4
br label %24
13: ; preds = %6
%14 = call i32 @printf(ptr noundef @.str)
%15 = load i32, ptr @EXIT_FAILURE, align 4
%16 = call i32 @exit(i32 noundef %15) #3
unreachable
17: ; preds = %6
%18 = load i32, ptr %2, align 4
%19 = call i32 @putchar(i32 noundef %18)
br label %20
20: ; preds = %17, %8
%21 = call i32 (...) @getchar()
store i32 %21, ptr %2, align 4
%22 = icmp ne i32 %21, 0
br i1 %22, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %23
23: ; preds = %._crit_edge, %0
store i32 0, ptr %1, align 4
br label %24
24: ; preds = %23, %10
%25 = load i32, ptr %1, align 4
ret i32 %25
}
declare i32 @putchar(i32 noundef) #1
declare i32 @getchar(...) #1
declare i32 @escape_sequence(...) #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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp2jvg01gb.c'
source_filename = "/tmp/tmp2jvg01gb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @table(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 1, ptr %4, align 4
br label %5
5: ; preds = %29, %1
%6 = load i32, ptr %4, align 4
%7 = icmp slt i32 %6, 11
br i1 %7, label %8, label %32
8: ; preds = %5
store i32 1, ptr %3, align 4
br label %9
9: ; preds = %25, %8
%10 = load i32, ptr %3, align 4
%11 = icmp slt i32 %10, 5
br i1 %11, label %12, label %28
12: ; preds = %9
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %3, align 4
%15 = call i32 @pwr(i32 noundef %13, i32 noundef %14)
%16 = load ptr, ptr %2, align 8
%17 = load i32, ptr %3, align 4
%18 = sub nsw i32 %17, 1
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [10 x i32], ptr %16, i64 %19
%21 = load i32, ptr %4, align 4
%22 = sub nsw i32 %21, 1
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [10 x i32], ptr %20, i64 0, i64 %23
store i32 %15, ptr %24, align 4
br label %25
25: ; preds = %12
%26 = load i32, ptr %3, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %3, align 4
br label %9, !llvm.loop !6
28: ; preds = %9
br label %29
29: ; preds = %28
%30 = load i32, ptr %4, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %4, align 4
br label %5, !llvm.loop !8
32: ; preds = %5
ret void
}
declare i32 @pwr(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2jvg01gb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @table(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp slt i32 %5, 11
br i1 %6, label %.lr.ph2, label %34
.lr.ph2: ; preds = %1
br label %7
7: ; preds = %.lr.ph2, %29
store i32 1, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 5
br i1 %9, label %.lr.ph, label %28
.lr.ph: ; preds = %7
br label %10
10: ; preds = %.lr.ph, %23
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %3, align 4
%13 = call i32 @pwr(i32 noundef %11, i32 noundef %12)
%14 = load ptr, ptr %2, align 8
%15 = load i32, ptr %3, align 4
%16 = sub nsw i32 %15, 1
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [10 x i32], ptr %14, i64 %17
%19 = load i32, ptr %4, align 4
%20 = sub nsw i32 %19, 1
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [10 x i32], ptr %18, i64 0, i64 %21
store i32 %13, ptr %22, align 4
br label %23
23: ; preds = %10
%24 = load i32, ptr %3, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %3, align 4
%26 = load i32, ptr %3, align 4
%27 = icmp slt i32 %26, 5
br i1 %27, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %28
28: ; preds = %._crit_edge, %7
br label %29
29: ; preds = %28
%30 = load i32, ptr %4, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %4, align 4
%32 = load i32, ptr %4, align 4
%33 = icmp slt i32 %32, 11
br i1 %33, label %7, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %29
br label %34
34: ; preds = %._crit_edge3, %1
ret void
}
declare i32 @pwr(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp1l3fux8a.c'
source_filename = "/tmp/tmp1l3fux8a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = 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/tmp1l3fux8a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = 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/tmp8gjh2g1u.c'
source_filename = "/tmp/tmp8gjh2g1u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @LopMes_OFILM() #0 {
%1 = call i32 @ClrGyr_OFILM(i32 noundef 4096, i32 noundef 2)
%2 = call i32 @RamWrite32A_Ofilm(i32 noundef 4161, i32 noundef 0)
%3 = call i32 @RamWrite32A_Ofilm(i32 noundef 4417, i32 noundef 0)
%4 = call i32 @RegWriteA_Ofilm(i32 noundef 403, i32 noundef 4)
%5 = call i32 @RegWriteA_Ofilm(i32 noundef 402, i32 noundef 0)
%6 = call i32 @RamWrite32A_Ofilm(i32 noundef 4656, i32 noundef 981467136)
%7 = call i32 @RegWriteA_Ofilm(i32 noundef 408, i32 noundef 1)
%8 = call i32 @RegWriteA_Ofilm(i32 noundef 409, i32 noundef 0)
%9 = call i32 @BsyWit_OFILM(i32 noundef 400, i32 noundef 1)
ret void
}
declare i32 @ClrGyr_OFILM(i32 noundef, i32 noundef) #1
declare i32 @RamWrite32A_Ofilm(i32 noundef, i32 noundef) #1
declare i32 @RegWriteA_Ofilm(i32 noundef, i32 noundef) #1
declare i32 @BsyWit_OFILM(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/tmp8gjh2g1u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @LopMes_OFILM() #0 {
%1 = call i32 @ClrGyr_OFILM(i32 noundef 4096, i32 noundef 2)
%2 = call i32 @RamWrite32A_Ofilm(i32 noundef 4161, i32 noundef 0)
%3 = call i32 @RamWrite32A_Ofilm(i32 noundef 4417, i32 noundef 0)
%4 = call i32 @RegWriteA_Ofilm(i32 noundef 403, i32 noundef 4)
%5 = call i32 @RegWriteA_Ofilm(i32 noundef 402, i32 noundef 0)
%6 = call i32 @RamWrite32A_Ofilm(i32 noundef 4656, i32 noundef 981467136)
%7 = call i32 @RegWriteA_Ofilm(i32 noundef 408, i32 noundef 1)
%8 = call i32 @RegWriteA_Ofilm(i32 noundef 409, i32 noundef 0)
%9 = call i32 @BsyWit_OFILM(i32 noundef 400, i32 noundef 1)
ret void
}
declare i32 @ClrGyr_OFILM(i32 noundef, i32 noundef) #1
declare i32 @RamWrite32A_Ofilm(i32 noundef, i32 noundef) #1
declare i32 @RegWriteA_Ofilm(i32 noundef, i32 noundef) #1
declare i32 @BsyWit_OFILM(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/tmp237_oqc1.c'
source_filename = "/tmp/tmp237_oqc1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @combinetime(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 %0, ptr %8, align 4
store i32 %1, ptr %9, align 4
store i32 %2, ptr %10, align 4
store i32 %3, ptr %11, align 4
store i32 %4, ptr %12, align 4
store i32 %5, ptr %13, align 4
%15 = load i32, ptr %13, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %26, label %17
17: ; preds = %6
%18 = load i32, ptr %12, align 4
%19 = icmp slt i32 %18, 0
br i1 %19, label %26, label %20
20: ; preds = %17
%21 = load i32, ptr %11, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %26, label %23
23: ; preds = %20
%24 = load i32, ptr %10, align 4
%25 = icmp slt i32 %24, 1
br i1 %25, label %26, label %27
26: ; preds = %23, %20, %17, %6
store i32 -1, ptr %7, align 4
br label %156
27: ; preds = %23
%28 = load i32, ptr %13, align 4
%29 = load i32, ptr %12, align 4
%30 = mul nsw i32 %29, 60
%31 = add nsw i32 %28, %30
%32 = load i32, ptr %11, align 4
%33 = mul nsw i32 %32, 3600
%34 = add nsw i32 %31, %33
%35 = load i32, ptr %10, align 4
%36 = sub nsw i32 %35, 1
%37 = mul nsw i32 %36, 86400
%38 = add nsw i32 %34, %37
store i32 %38, ptr %14, align 4
%39 = load i32, ptr %8, align 4
%40 = icmp slt i32 %39, 70
br i1 %40, label %41, label %44
41: ; preds = %27
%42 = load i32, ptr %8, align 4
%43 = add nsw i32 %42, 2000
store i32 %43, ptr %8, align 4
br label %51
44: ; preds = %27
%45 = load i32, ptr %8, align 4
%46 = icmp slt i32 %45, 1900
br i1 %46, label %47, label %50
47: ; preds = %44
%48 = load i32, ptr %8, align 4
%49 = add nsw i32 %48, 1900
store i32 %49, ptr %8, align 4
br label %50
50: ; preds = %47, %44
br label %51
51: ; preds = %50, %41
%52 = load i32, ptr %9, align 4
%53 = icmp sgt i32 %52, 1
br i1 %53, label %54, label %57
54: ; preds = %51
%55 = load i32, ptr %14, align 4
%56 = add nsw i32 %55, 2678400
store i32 %56, ptr %14, align 4
br label %57
57: ; preds = %54, %51
%58 = load i32, ptr %9, align 4
%59 = icmp sgt i32 %58, 2
br i1 %59, label %60, label %78
60: ; preds = %57
%61 = load i32, ptr %8, align 4
%62 = srem i32 %61, 100
%63 = icmp ne i32 %62, 0
br i1 %63, label %64, label %66
64: ; preds = %60
%65 = load i32, ptr %8, align 4
br label %69
66: ; preds = %60
%67 = load i32, ptr %8, align 4
%68 = sdiv i32 %67, 100
br label %69
69: ; preds = %66, %64
%70 = phi i32 [ %65, %64 ], [ %68, %66 ]
%71 = srem i32 %70, 4
%72 = icmp eq i32 %71, 0
%73 = zext i1 %72 to i64
%74 = select i1 %72, i32 29, i32 28
%75 = mul nsw i32 86400, %74
%76 = load i32, ptr %14, align 4
%77 = add nsw i32 %76, %75
store i32 %77, ptr %14, align 4
br label %78
78: ; preds = %69, %57
%79 = load i32, ptr %9, align 4
%80 = icmp sgt i32 %79, 3
br i1 %80, label %81, label %84
81: ; preds = %78
%82 = load i32, ptr %14, align 4
%83 = add nsw i32 %82, 2678400
store i32 %83, ptr %14, align 4
br label %84
84: ; preds = %81, %78
%85 = load i32, ptr %9, align 4
%86 = icmp sgt i32 %85, 4
br i1 %86, label %87, label %90
87: ; preds = %84
%88 = load i32, ptr %14, align 4
%89 = add nsw i32 %88, 2592000
store i32 %89, ptr %14, align 4
br label %90
90: ; preds = %87, %84
%91 = load i32, ptr %9, align 4
%92 = icmp sgt i32 %91, 5
br i1 %92, label %93, label %96
93: ; preds = %90
%94 = load i32, ptr %14, align 4
%95 = add nsw i32 %94, 2678400
store i32 %95, ptr %14, align 4
br label %96
96: ; preds = %93, %90
%97 = load i32, ptr %9, align 4
%98 = icmp sgt i32 %97, 6
br i1 %98, label %99, label %102
99: ; preds = %96
%100 = load i32, ptr %14, align 4
%101 = add nsw i32 %100, 2592000
store i32 %101, ptr %14, align 4
br label %102
102: ; preds = %99, %96
%103 = load i32, ptr %9, align 4
%104 = icmp sgt i32 %103, 7
br i1 %104, label %105, label %108
105: ; preds = %102
%106 = load i32, ptr %14, align 4
%107 = add nsw i32 %106, 2678400
store i32 %107, ptr %14, align 4
br label %108
108: ; preds = %105, %102
%109 = load i32, ptr %9, align 4
%110 = icmp sgt i32 %109, 8
br i1 %110, label %111, label %114
111: ; preds = %108
%112 = load i32, ptr %14, align 4
%113 = add nsw i32 %112, 2678400
store i32 %113, ptr %14, align 4
br label %114
114: ; preds = %111, %108
%115 = load i32, ptr %9, align 4
%116 = icmp sgt i32 %115, 9
br i1 %116, label %117, label %120
117: ; preds = %114
%118 = load i32, ptr %14, align 4
%119 = add nsw i32 %118, 2592000
store i32 %119, ptr %14, align 4
br label %120
120: ; preds = %117, %114
%121 = load i32, ptr %9, align 4
%122 = icmp sgt i32 %121, 10
br i1 %122, label %123, label %126
123: ; preds = %120
%124 = load i32, ptr %14, align 4
%125 = add nsw i32 %124, 2678400
store i32 %125, ptr %14, align 4
br label %126
126: ; preds = %123, %120
%127 = load i32, ptr %9, align 4
%128 = icmp sgt i32 %127, 11
br i1 %128, label %129, label %132
129: ; preds = %126
%130 = load i32, ptr %14, align 4
%131 = add nsw i32 %130, 2592000
store i32 %131, ptr %14, align 4
br label %132
132: ; preds = %129, %126
%133 = load i32, ptr %8, align 4
%134 = sub nsw i32 %133, 1900
store i32 %134, ptr %8, align 4
%135 = load i32, ptr %8, align 4
%136 = sub nsw i32 %135, 70
%137 = mul nsw i32 %136, 31536000
%138 = load i32, ptr %8, align 4
%139 = sub nsw i32 %138, 69
%140 = sdiv i32 %139, 4
%141 = mul nsw i32 %140, 86400
%142 = add nsw i32 %137, %141
%143 = load i32, ptr %8, align 4
%144 = sub nsw i32 %143, 1
%145 = sdiv i32 %144, 100
%146 = mul nsw i32 %145, 86400
%147 = sub nsw i32 %142, %146
%148 = load i32, ptr %8, align 4
%149 = add nsw i32 %148, 299
%150 = sdiv i32 %149, 400
%151 = mul nsw i32 %150, 86400
%152 = add nsw i32 %147, %151
%153 = load i32, ptr %14, align 4
%154 = add nsw i32 %153, %152
store i32 %154, ptr %14, align 4
%155 = load i32, ptr %14, align 4
store i32 %155, ptr %7, align 4
br label %156
156: ; preds = %132, %26
%157 = load i32, ptr %7, align 4
ret i32 %157
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp237_oqc1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @combinetime(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 %0, ptr %8, align 4
store i32 %1, ptr %9, align 4
store i32 %2, ptr %10, align 4
store i32 %3, ptr %11, align 4
store i32 %4, ptr %12, align 4
store i32 %5, ptr %13, align 4
%15 = load i32, ptr %13, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %26, label %17
17: ; preds = %6
%18 = load i32, ptr %12, align 4
%19 = icmp slt i32 %18, 0
br i1 %19, label %26, label %20
20: ; preds = %17
%21 = load i32, ptr %11, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %26, label %23
23: ; preds = %20
%24 = load i32, ptr %10, align 4
%25 = icmp slt i32 %24, 1
br i1 %25, label %26, label %27
26: ; preds = %23, %20, %17, %6
store i32 -1, ptr %7, align 4
br label %156
27: ; preds = %23
%28 = load i32, ptr %13, align 4
%29 = load i32, ptr %12, align 4
%30 = mul nsw i32 %29, 60
%31 = add nsw i32 %28, %30
%32 = load i32, ptr %11, align 4
%33 = mul nsw i32 %32, 3600
%34 = add nsw i32 %31, %33
%35 = load i32, ptr %10, align 4
%36 = sub nsw i32 %35, 1
%37 = mul nsw i32 %36, 86400
%38 = add nsw i32 %34, %37
store i32 %38, ptr %14, align 4
%39 = load i32, ptr %8, align 4
%40 = icmp slt i32 %39, 70
br i1 %40, label %41, label %44
41: ; preds = %27
%42 = load i32, ptr %8, align 4
%43 = add nsw i32 %42, 2000
store i32 %43, ptr %8, align 4
br label %51
44: ; preds = %27
%45 = load i32, ptr %8, align 4
%46 = icmp slt i32 %45, 1900
br i1 %46, label %47, label %50
47: ; preds = %44
%48 = load i32, ptr %8, align 4
%49 = add nsw i32 %48, 1900
store i32 %49, ptr %8, align 4
br label %50
50: ; preds = %47, %44
br label %51
51: ; preds = %50, %41
%52 = load i32, ptr %9, align 4
%53 = icmp sgt i32 %52, 1
br i1 %53, label %54, label %57
54: ; preds = %51
%55 = load i32, ptr %14, align 4
%56 = add nsw i32 %55, 2678400
store i32 %56, ptr %14, align 4
br label %57
57: ; preds = %54, %51
%58 = load i32, ptr %9, align 4
%59 = icmp sgt i32 %58, 2
br i1 %59, label %60, label %78
60: ; preds = %57
%61 = load i32, ptr %8, align 4
%62 = srem i32 %61, 100
%63 = icmp ne i32 %62, 0
br i1 %63, label %64, label %66
64: ; preds = %60
%65 = load i32, ptr %8, align 4
br label %69
66: ; preds = %60
%67 = load i32, ptr %8, align 4
%68 = sdiv i32 %67, 100
br label %69
69: ; preds = %66, %64
%70 = phi i32 [ %65, %64 ], [ %68, %66 ]
%71 = srem i32 %70, 4
%72 = icmp eq i32 %71, 0
%73 = zext i1 %72 to i64
%74 = select i1 %72, i32 29, i32 28
%75 = mul nsw i32 86400, %74
%76 = load i32, ptr %14, align 4
%77 = add nsw i32 %76, %75
store i32 %77, ptr %14, align 4
br label %78
78: ; preds = %69, %57
%79 = load i32, ptr %9, align 4
%80 = icmp sgt i32 %79, 3
br i1 %80, label %81, label %84
81: ; preds = %78
%82 = load i32, ptr %14, align 4
%83 = add nsw i32 %82, 2678400
store i32 %83, ptr %14, align 4
br label %84
84: ; preds = %81, %78
%85 = load i32, ptr %9, align 4
%86 = icmp sgt i32 %85, 4
br i1 %86, label %87, label %90
87: ; preds = %84
%88 = load i32, ptr %14, align 4
%89 = add nsw i32 %88, 2592000
store i32 %89, ptr %14, align 4
br label %90
90: ; preds = %87, %84
%91 = load i32, ptr %9, align 4
%92 = icmp sgt i32 %91, 5
br i1 %92, label %93, label %96
93: ; preds = %90
%94 = load i32, ptr %14, align 4
%95 = add nsw i32 %94, 2678400
store i32 %95, ptr %14, align 4
br label %96
96: ; preds = %93, %90
%97 = load i32, ptr %9, align 4
%98 = icmp sgt i32 %97, 6
br i1 %98, label %99, label %102
99: ; preds = %96
%100 = load i32, ptr %14, align 4
%101 = add nsw i32 %100, 2592000
store i32 %101, ptr %14, align 4
br label %102
102: ; preds = %99, %96
%103 = load i32, ptr %9, align 4
%104 = icmp sgt i32 %103, 7
br i1 %104, label %105, label %108
105: ; preds = %102
%106 = load i32, ptr %14, align 4
%107 = add nsw i32 %106, 2678400
store i32 %107, ptr %14, align 4
br label %108
108: ; preds = %105, %102
%109 = load i32, ptr %9, align 4
%110 = icmp sgt i32 %109, 8
br i1 %110, label %111, label %114
111: ; preds = %108
%112 = load i32, ptr %14, align 4
%113 = add nsw i32 %112, 2678400
store i32 %113, ptr %14, align 4
br label %114
114: ; preds = %111, %108
%115 = load i32, ptr %9, align 4
%116 = icmp sgt i32 %115, 9
br i1 %116, label %117, label %120
117: ; preds = %114
%118 = load i32, ptr %14, align 4
%119 = add nsw i32 %118, 2592000
store i32 %119, ptr %14, align 4
br label %120
120: ; preds = %117, %114
%121 = load i32, ptr %9, align 4
%122 = icmp sgt i32 %121, 10
br i1 %122, label %123, label %126
123: ; preds = %120
%124 = load i32, ptr %14, align 4
%125 = add nsw i32 %124, 2678400
store i32 %125, ptr %14, align 4
br label %126
126: ; preds = %123, %120
%127 = load i32, ptr %9, align 4
%128 = icmp sgt i32 %127, 11
br i1 %128, label %129, label %132
129: ; preds = %126
%130 = load i32, ptr %14, align 4
%131 = add nsw i32 %130, 2592000
store i32 %131, ptr %14, align 4
br label %132
132: ; preds = %129, %126
%133 = load i32, ptr %8, align 4
%134 = sub nsw i32 %133, 1900
store i32 %134, ptr %8, align 4
%135 = load i32, ptr %8, align 4
%136 = sub nsw i32 %135, 70
%137 = mul nsw i32 %136, 31536000
%138 = load i32, ptr %8, align 4
%139 = sub nsw i32 %138, 69
%140 = sdiv i32 %139, 4
%141 = mul nsw i32 %140, 86400
%142 = add nsw i32 %137, %141
%143 = load i32, ptr %8, align 4
%144 = sub nsw i32 %143, 1
%145 = sdiv i32 %144, 100
%146 = mul nsw i32 %145, 86400
%147 = sub nsw i32 %142, %146
%148 = load i32, ptr %8, align 4
%149 = add nsw i32 %148, 299
%150 = sdiv i32 %149, 400
%151 = mul nsw i32 %150, 86400
%152 = add nsw i32 %147, %151
%153 = load i32, ptr %14, align 4
%154 = add nsw i32 %153, %152
store i32 %154, ptr %14, align 4
%155 = load i32, ptr %14, align 4
store i32 %155, ptr %7, align 4
br label %156
156: ; preds = %132, %26
%157 = load i32, ptr %7, align 4
ret i32 %157
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxghw3hr3.c'
source_filename = "/tmp/tmpxghw3hr3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @s_move(ptr noundef %0, i8 noundef signext %1, i8 noundef signext %2, i8 noundef signext %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca i8, align 1
%8 = alloca ptr, align 8
%9 = alloca i8, align 1
%10 = alloca i8, align 1
%11 = alloca i8, align 1
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca [64 x i8], align 16
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
store ptr %0, ptr %8, align 8
store i8 %1, ptr %9, align 1
store i8 %2, ptr %10, align 1
store i8 %3, ptr %11, align 1
store i32 %4, ptr %12, align 4
store i32 %5, ptr %13, align 4
%23 = getelementptr inbounds [64 x i8], ptr %14, i64 0, i64 0
%24 = load ptr, ptr %8, align 8
%25 = call i32 @cpybrd(ptr noundef %23, ptr noundef %24)
%26 = getelementptr inbounds [64 x i8], ptr %14, i64 0, i64 0
%27 = load i8, ptr %9, align 1
%28 = load i32, ptr %12, align 4
%29 = load i32, ptr %13, align 4
%30 = call i32 @putmov(ptr noundef %26, i8 noundef signext %27, i32 noundef %28, i32 noundef %29)
store i32 0, ptr %19, align 4
%31 = load i32, ptr %12, align 4
%32 = icmp eq i32 %31, 0
br i1 %32, label %36, label %33
33: ; preds = %6
%34 = load i32, ptr %12, align 4
%35 = icmp eq i32 %34, 7
br i1 %35, label %36, label %39
36: ; preds = %33, %6
%37 = load i32, ptr %19, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %19, align 4
br label %39
39: ; preds = %36, %33
%40 = load i32, ptr %13, align 4
%41 = icmp eq i32 %40, 0
br i1 %41, label %45, label %42
42: ; preds = %39
%43 = load i32, ptr %13, align 4
%44 = icmp eq i32 %43, 7
br i1 %44, label %45, label %48
45: ; preds = %42, %39
%46 = load i32, ptr %19, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %19, align 4
br label %48
48: ; preds = %45, %42
store i32 0, ptr %16, align 4
store i32 0, ptr %15, align 4
%49 = load i32, ptr %19, align 4
%50 = icmp eq i32 %49, 2
br i1 %50, label %60, label %51
51: ; preds = %48
%52 = load ptr, ptr %8, align 8
%53 = load i8, ptr %9, align 1
%54 = load i8, ptr %10, align 1
%55 = load i8, ptr %11, align 1
%56 = load i32, ptr %12, align 4
%57 = load i32, ptr %13, align 4
%58 = call i64 @notake(ptr noundef %52, i8 noundef signext %53, i8 noundef signext %54, i8 noundef signext %55, i32 noundef %56, i32 noundef %57)
%59 = icmp ne i64 %58, 0
br i1 %59, label %60, label %63
60: ; preds = %51, %48
%61 = load i32, ptr %15, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %15, align 4
br label %63
63: ; preds = %60, %51
store i32 0, ptr %20, align 4
store i32 0, ptr %17, align 4
br label %64
64: ; preds = %137, %63
%65 = load i32, ptr %17, align 4
%66 = icmp slt i32 %65, 8
br i1 %66, label %67, label %140
67: ; preds = %64
store i32 0, ptr %18, align 4
br label %68
68: ; preds = %133, %67
%69 = load i32, ptr %18, align 4
%70 = icmp slt i32 %69, 8
br i1 %70, label %71, label %136
71: ; preds = %68
%72 = getelementptr inbounds [64 x i8], ptr %14, i64 0, i64 0
%73 = load i8, ptr %10, align 1
%74 = load i32, ptr %17, align 4
%75 = load i32, ptr %18, align 4
%76 = call i32 @chkmov(ptr noundef %72, i8 noundef signext %73, i32 noundef %74, i32 noundef %75)
store i32 %76, ptr %21, align 4
%77 = load i32, ptr %21, align 4
%78 = icmp eq i32 %77, 0
br i1 %78, label %79, label %80
79: ; preds = %71
br label %133
80: ; preds = %71
store i32 1, ptr %22, align 4
%81 = load i32, ptr %17, align 4
%82 = icmp eq i32 %81, 0
br i1 %82, label %86, label %83
83: ; preds = %80
%84 = load i32, ptr %17, align 4
%85 = icmp eq i32 %84, 7
br i1 %85, label %86, label %91
86: ; preds = %83, %80
%87 = load i32, ptr %22, align 4
%88 = add nsw i32 %87, 2
store i32 %88, ptr %22, align 4
%89 = load i32, ptr %20, align 4
%90 = or i32 %89, 4
store i32 %90, ptr %20, align 4
br label %91
91: ; preds = %86, %83
%92 = load i32, ptr %18, align 4
%93 = icmp eq i32 %92, 0
br i1 %93, label %97, label %94
94: ; preds = %91
%95 = load i32, ptr %18, align 4
%96 = icmp eq i32 %95, 7
br i1 %96, label %97, label %102
97: ; preds = %94, %91
%98 = load i32, ptr %22, align 4
%99 = add nsw i32 %98, 2
store i32 %99, ptr %22, align 4
%100 = load i32, ptr %20, align 4
%101 = or i32 %100, 4
store i32 %101, ptr %20, align 4
br label %102
102: ; preds = %97, %94
%103 = load i32, ptr %22, align 4
%104 = icmp eq i32 %103, 5
br i1 %104, label %105, label %108
105: ; preds = %102
store i32 10, ptr %22, align 4
%106 = load i32, ptr %20, align 4
%107 = or i32 %106, 16
store i32 %107, ptr %20, align 4
br label %119
108: ; preds = %102
%109 = getelementptr inbounds [64 x i8], ptr %14, i64 0, i64 0
%110 = load i8, ptr %10, align 1
%111 = load i8, ptr %9, align 1
%112 = load i8, ptr %11, align 1
%113 = load i32, ptr %17, align 4
%114 = load i32, ptr %18, align 4
%115 = call i64 @notake(ptr noundef %109, i8 noundef signext %110, i8 noundef signext %111, i8 noundef signext %112, i32 noundef %113, i32 noundef %114)
%116 = icmp ne i64 %115, 0
br i1 %116, label %118, label %117
117: ; preds = %108
br label %133
118: ; preds = %108
br label %119
119: ; preds = %118, %105
%120 = load i32, ptr %20, align 4
%121 = or i32 %120, 1
store i32 %121, ptr %20, align 4
%122 = load i32, ptr %22, align 4
%123 = load i32, ptr %16, align 4
%124 = sub nsw i32 %123, %122
store i32 %124, ptr %16, align 4
%125 = load i32, ptr %21, align 4
%126 = icmp sge i32 %125, 10
br i1 %126, label %127, label %132
127: ; preds = %119
%128 = load i32, ptr %16, align 4
%129 = sub nsw i32 %128, 4
store i32 %129, ptr %16, align 4
%130 = load i32, ptr %20, align 4
%131 = or i32 %130, 8
store i32 %131, ptr %20, align 4
br label %132
132: ; preds = %127, %119
br label %133
133: ; preds = %132, %117, %79
%134 = load i32, ptr %18, align 4
%135 = add nsw i32 %134, 1
store i32 %135, ptr %18, align 4
br label %68, !llvm.loop !6
136: ; preds = %68
br label %137
137: ; preds = %136
%138 = load i32, ptr %17, align 4
%139 = add nsw i32 %138, 1
store i32 %139, ptr %17, align 4
br label %64, !llvm.loop !8
140: ; preds = %64
%141 = load i32, ptr %16, align 4
%142 = load i32, ptr %20, align 4
%143 = sub nsw i32 0, %142
%144 = icmp slt i32 %141, %143
br i1 %144, label %145, label %148
145: ; preds = %140
%146 = load i32, ptr %20, align 4
%147 = sub nsw i32 0, %146
store i32 %147, ptr %16, align 4
br label %148
148: ; preds = %145, %140
%149 = load i32, ptr %19, align 4
%150 = icmp sgt i32 %149, 0
br i1 %150, label %151, label %160
151: ; preds = %148
%152 = load i32, ptr %16, align 4
%153 = load i32, ptr %19, align 4
%154 = add nsw i32 %152, %153
%155 = sub nsw i32 %154, 7
%156 = load i32, ptr %15, align 4
%157 = mul nsw i32 10, %156
%158 = add nsw i32 %155, %157
%159 = trunc i32 %158 to i8
store i8 %159, ptr %7, align 1
br label %209
160: ; preds = %148
%161 = load i32, ptr %12, align 4
%162 = icmp eq i32 %161, 1
br i1 %162, label %166, label %163
163: ; preds = %160
%164 = load i32, ptr %12, align 4
%165 = icmp eq i32 %164, 6
br i1 %165, label %166, label %171
166: ; preds = %163, %160
%167 = load i32, ptr %16, align 4
%168 = add nsw i32 %167, -1
store i32 %168, ptr %16, align 4
%169 = load i32, ptr %19, align 4
%170 = add nsw i32 %169, 1
store i32 %170, ptr %19, align 4
br label %171
171: ; preds = %166, %163
%172 = load i32, ptr %13, align 4
%173 = icmp eq i32 %172, 1
br i1 %173, label %177, label %174
174: ; preds = %171
%175 = load i32, ptr %13, align 4
%176 = icmp eq i32 %175, 6
br i1 %176, label %177, label %182
177: ; preds = %174, %171
%178 = load i32, ptr %16, align 4
%179 = add nsw i32 %178, -1
store i32 %179, ptr %16, align 4
%180 = load i32, ptr %19, align 4
%181 = add nsw i32 %180, 1
store i32 %181, ptr %19, align 4
br label %182
182: ; preds = %177, %174
%183 = load i32, ptr %19, align 4
%184 = icmp sgt i32 %183, 0
br i1 %184, label %185, label %188
185: ; preds = %182
%186 = load i32, ptr %16, align 4
%187 = trunc i32 %186 to i8
store i8 %187, ptr %7, align 1
br label %209
188: ; preds = %182
%189 = load i32, ptr %12, align 4
%190 = icmp eq i32 %189, 2
br i1 %190, label %194, label %191
191: ; preds = %188
%192 = load i32, ptr %12, align 4
%193 = icmp eq i32 %192, 5
br i1 %193, label %194, label %197
194: ; preds = %191, %188
%195 = load i32, ptr %16, align 4
%196 = add nsw i32 %195, 1
store i32 %196, ptr %16, align 4
br label %197
197: ; preds = %194, %191
%198 = load i32, ptr %13, align 4
%199 = icmp eq i32 %198, 2
br i1 %199, label %203, label %200
200: ; preds = %197
%201 = load i32, ptr %13, align 4
%202 = icmp eq i32 %201, 5
br i1 %202, label %203, label %206
203: ; preds = %200, %197
%204 = load i32, ptr %16, align 4
%205 = add nsw i32 %204, 1
store i32 %205, ptr %16, align 4
br label %206
206: ; preds = %203, %200
%207 = load i32, ptr %16, align 4
%208 = trunc i32 %207 to i8
store i8 %208, ptr %7, align 1
br label %209
209: ; preds = %206, %185, %151
%210 = load i8, ptr %7, align 1
ret i8 %210
}
declare i32 @cpybrd(ptr noundef, ptr noundef) #1
declare i32 @putmov(ptr noundef, i8 noundef signext, i32 noundef, i32 noundef) #1
declare i64 @notake(ptr noundef, i8 noundef signext, i8 noundef signext, i8 noundef signext, i32 noundef, i32 noundef) #1
declare i32 @chkmov(ptr noundef, i8 noundef signext, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxghw3hr3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @s_move(ptr noundef %0, i8 noundef signext %1, i8 noundef signext %2, i8 noundef signext %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca i8, align 1
%8 = alloca ptr, align 8
%9 = alloca i8, align 1
%10 = alloca i8, align 1
%11 = alloca i8, align 1
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca [64 x i8], align 16
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
store ptr %0, ptr %8, align 8
store i8 %1, ptr %9, align 1
store i8 %2, ptr %10, align 1
store i8 %3, ptr %11, align 1
store i32 %4, ptr %12, align 4
store i32 %5, ptr %13, align 4
%23 = getelementptr inbounds [64 x i8], ptr %14, i64 0, i64 0
%24 = load ptr, ptr %8, align 8
%25 = call i32 @cpybrd(ptr noundef %23, ptr noundef %24)
%26 = getelementptr inbounds [64 x i8], ptr %14, i64 0, i64 0
%27 = load i8, ptr %9, align 1
%28 = load i32, ptr %12, align 4
%29 = load i32, ptr %13, align 4
%30 = call i32 @putmov(ptr noundef %26, i8 noundef signext %27, i32 noundef %28, i32 noundef %29)
store i32 0, ptr %19, align 4
%31 = load i32, ptr %12, align 4
%32 = icmp eq i32 %31, 0
br i1 %32, label %36, label %33
33: ; preds = %6
%34 = load i32, ptr %12, align 4
%35 = icmp eq i32 %34, 7
br i1 %35, label %36, label %39
36: ; preds = %33, %6
%37 = load i32, ptr %19, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %19, align 4
br label %39
39: ; preds = %36, %33
%40 = load i32, ptr %13, align 4
%41 = icmp eq i32 %40, 0
br i1 %41, label %45, label %42
42: ; preds = %39
%43 = load i32, ptr %13, align 4
%44 = icmp eq i32 %43, 7
br i1 %44, label %45, label %48
45: ; preds = %42, %39
%46 = load i32, ptr %19, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %19, align 4
br label %48
48: ; preds = %45, %42
store i32 0, ptr %16, align 4
store i32 0, ptr %15, align 4
%49 = load i32, ptr %19, align 4
%50 = icmp eq i32 %49, 2
br i1 %50, label %60, label %51
51: ; preds = %48
%52 = load ptr, ptr %8, align 8
%53 = load i8, ptr %9, align 1
%54 = load i8, ptr %10, align 1
%55 = load i8, ptr %11, align 1
%56 = load i32, ptr %12, align 4
%57 = load i32, ptr %13, align 4
%58 = call i64 @notake(ptr noundef %52, i8 noundef signext %53, i8 noundef signext %54, i8 noundef signext %55, i32 noundef %56, i32 noundef %57)
%59 = icmp ne i64 %58, 0
br i1 %59, label %60, label %63
60: ; preds = %51, %48
%61 = load i32, ptr %15, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %15, align 4
br label %63
63: ; preds = %60, %51
store i32 0, ptr %20, align 4
store i32 0, ptr %17, align 4
%64 = load i32, ptr %17, align 4
%65 = icmp slt i32 %64, 8
br i1 %65, label %.lr.ph2, label %142
.lr.ph2: ; preds = %63
br label %66
66: ; preds = %.lr.ph2, %137
store i32 0, ptr %18, align 4
%67 = load i32, ptr %18, align 4
%68 = icmp slt i32 %67, 8
br i1 %68, label %.lr.ph, label %136
.lr.ph: ; preds = %66
br label %69
69: ; preds = %.lr.ph, %131
%70 = getelementptr inbounds [64 x i8], ptr %14, i64 0, i64 0
%71 = load i8, ptr %10, align 1
%72 = load i32, ptr %17, align 4
%73 = load i32, ptr %18, align 4
%74 = call i32 @chkmov(ptr noundef %70, i8 noundef signext %71, i32 noundef %72, i32 noundef %73)
store i32 %74, ptr %21, align 4
%75 = load i32, ptr %21, align 4
%76 = icmp eq i32 %75, 0
br i1 %76, label %77, label %78
77: ; preds = %69
br label %131
78: ; preds = %69
store i32 1, ptr %22, align 4
%79 = load i32, ptr %17, align 4
%80 = icmp eq i32 %79, 0
br i1 %80, label %84, label %81
81: ; preds = %78
%82 = load i32, ptr %17, align 4
%83 = icmp eq i32 %82, 7
br i1 %83, label %84, label %89
84: ; preds = %81, %78
%85 = load i32, ptr %22, align 4
%86 = add nsw i32 %85, 2
store i32 %86, ptr %22, align 4
%87 = load i32, ptr %20, align 4
%88 = or i32 %87, 4
store i32 %88, ptr %20, align 4
br label %89
89: ; preds = %84, %81
%90 = load i32, ptr %18, align 4
%91 = icmp eq i32 %90, 0
br i1 %91, label %95, label %92
92: ; preds = %89
%93 = load i32, ptr %18, align 4
%94 = icmp eq i32 %93, 7
br i1 %94, label %95, label %100
95: ; preds = %92, %89
%96 = load i32, ptr %22, align 4
%97 = add nsw i32 %96, 2
store i32 %97, ptr %22, align 4
%98 = load i32, ptr %20, align 4
%99 = or i32 %98, 4
store i32 %99, ptr %20, align 4
br label %100
100: ; preds = %95, %92
%101 = load i32, ptr %22, align 4
%102 = icmp eq i32 %101, 5
br i1 %102, label %103, label %106
103: ; preds = %100
store i32 10, ptr %22, align 4
%104 = load i32, ptr %20, align 4
%105 = or i32 %104, 16
store i32 %105, ptr %20, align 4
br label %117
106: ; preds = %100
%107 = getelementptr inbounds [64 x i8], ptr %14, i64 0, i64 0
%108 = load i8, ptr %10, align 1
%109 = load i8, ptr %9, align 1
%110 = load i8, ptr %11, align 1
%111 = load i32, ptr %17, align 4
%112 = load i32, ptr %18, align 4
%113 = call i64 @notake(ptr noundef %107, i8 noundef signext %108, i8 noundef signext %109, i8 noundef signext %110, i32 noundef %111, i32 noundef %112)
%114 = icmp ne i64 %113, 0
br i1 %114, label %116, label %115
115: ; preds = %106
br label %131
116: ; preds = %106
br label %117
117: ; preds = %116, %103
%118 = load i32, ptr %20, align 4
%119 = or i32 %118, 1
store i32 %119, ptr %20, align 4
%120 = load i32, ptr %22, align 4
%121 = load i32, ptr %16, align 4
%122 = sub nsw i32 %121, %120
store i32 %122, ptr %16, align 4
%123 = load i32, ptr %21, align 4
%124 = icmp sge i32 %123, 10
br i1 %124, label %125, label %130
125: ; preds = %117
%126 = load i32, ptr %16, align 4
%127 = sub nsw i32 %126, 4
store i32 %127, ptr %16, align 4
%128 = load i32, ptr %20, align 4
%129 = or i32 %128, 8
store i32 %129, ptr %20, align 4
br label %130
130: ; preds = %125, %117
br label %131
131: ; preds = %130, %115, %77
%132 = load i32, ptr %18, align 4
%133 = add nsw i32 %132, 1
store i32 %133, ptr %18, align 4
%134 = load i32, ptr %18, align 4
%135 = icmp slt i32 %134, 8
br i1 %135, label %69, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %131
br label %136
136: ; preds = %._crit_edge, %66
br label %137
137: ; preds = %136
%138 = load i32, ptr %17, align 4
%139 = add nsw i32 %138, 1
store i32 %139, ptr %17, align 4
%140 = load i32, ptr %17, align 4
%141 = icmp slt i32 %140, 8
br i1 %141, label %66, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %137
br label %142
142: ; preds = %._crit_edge3, %63
%143 = load i32, ptr %16, align 4
%144 = load i32, ptr %20, align 4
%145 = sub nsw i32 0, %144
%146 = icmp slt i32 %143, %145
br i1 %146, label %147, label %150
147: ; preds = %142
%148 = load i32, ptr %20, align 4
%149 = sub nsw i32 0, %148
store i32 %149, ptr %16, align 4
br label %150
150: ; preds = %147, %142
%151 = load i32, ptr %19, align 4
%152 = icmp sgt i32 %151, 0
br i1 %152, label %153, label %162
153: ; preds = %150
%154 = load i32, ptr %16, align 4
%155 = load i32, ptr %19, align 4
%156 = add nsw i32 %154, %155
%157 = sub nsw i32 %156, 7
%158 = load i32, ptr %15, align 4
%159 = mul nsw i32 10, %158
%160 = add nsw i32 %157, %159
%161 = trunc i32 %160 to i8
store i8 %161, ptr %7, align 1
br label %211
162: ; preds = %150
%163 = load i32, ptr %12, align 4
%164 = icmp eq i32 %163, 1
br i1 %164, label %168, label %165
165: ; preds = %162
%166 = load i32, ptr %12, align 4
%167 = icmp eq i32 %166, 6
br i1 %167, label %168, label %173
168: ; preds = %165, %162
%169 = load i32, ptr %16, align 4
%170 = add nsw i32 %169, -1
store i32 %170, ptr %16, align 4
%171 = load i32, ptr %19, align 4
%172 = add nsw i32 %171, 1
store i32 %172, ptr %19, align 4
br label %173
173: ; preds = %168, %165
%174 = load i32, ptr %13, align 4
%175 = icmp eq i32 %174, 1
br i1 %175, label %179, label %176
176: ; preds = %173
%177 = load i32, ptr %13, align 4
%178 = icmp eq i32 %177, 6
br i1 %178, label %179, label %184
179: ; preds = %176, %173
%180 = load i32, ptr %16, align 4
%181 = add nsw i32 %180, -1
store i32 %181, ptr %16, align 4
%182 = load i32, ptr %19, align 4
%183 = add nsw i32 %182, 1
store i32 %183, ptr %19, align 4
br label %184
184: ; preds = %179, %176
%185 = load i32, ptr %19, align 4
%186 = icmp sgt i32 %185, 0
br i1 %186, label %187, label %190
187: ; preds = %184
%188 = load i32, ptr %16, align 4
%189 = trunc i32 %188 to i8
store i8 %189, ptr %7, align 1
br label %211
190: ; preds = %184
%191 = load i32, ptr %12, align 4
%192 = icmp eq i32 %191, 2
br i1 %192, label %196, label %193
193: ; preds = %190
%194 = load i32, ptr %12, align 4
%195 = icmp eq i32 %194, 5
br i1 %195, label %196, label %199
196: ; preds = %193, %190
%197 = load i32, ptr %16, align 4
%198 = add nsw i32 %197, 1
store i32 %198, ptr %16, align 4
br label %199
199: ; preds = %196, %193
%200 = load i32, ptr %13, align 4
%201 = icmp eq i32 %200, 2
br i1 %201, label %205, label %202
202: ; preds = %199
%203 = load i32, ptr %13, align 4
%204 = icmp eq i32 %203, 5
br i1 %204, label %205, label %208
205: ; preds = %202, %199
%206 = load i32, ptr %16, align 4
%207 = add nsw i32 %206, 1
store i32 %207, ptr %16, align 4
br label %208
208: ; preds = %205, %202
%209 = load i32, ptr %16, align 4
%210 = trunc i32 %209 to i8
store i8 %210, ptr %7, align 1
br label %211
211: ; preds = %208, %187, %153
%212 = load i8, ptr %7, align 1
ret i8 %212
}
declare i32 @cpybrd(ptr noundef, ptr noundef) #1
declare i32 @putmov(ptr noundef, i8 noundef signext, i32 noundef, i32 noundef) #1
declare i64 @notake(ptr noundef, i8 noundef signext, i8 noundef signext, i8 noundef signext, i32 noundef, i32 noundef) #1
declare i32 @chkmov(ptr noundef, i8 noundef signext, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp1zl6n_b9.c'
source_filename = "/tmp/tmp1zl6n_b9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @parse_uint(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i32 -1, ptr %4, align 4
store i64 0, ptr %5, align 8
br label %6
6: ; preds = %22, %1
%7 = load ptr, ptr %3, align 8
%8 = load i64, ptr %5, align 8
%9 = getelementptr inbounds i8, ptr %7, i64 %8
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 32
br i1 %12, label %20, label %13
13: ; preds = %6
%14 = load ptr, ptr %3, align 8
%15 = load i64, ptr %5, align 8
%16 = getelementptr inbounds i8, ptr %14, i64 %15
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 9
br label %20
20: ; preds = %13, %6
%21 = phi i1 [ true, %6 ], [ %19, %13 ]
br i1 %21, label %22, label %25
22: ; preds = %20
%23 = load i64, ptr %5, align 8
%24 = add i64 %23, 1
store i64 %24, ptr %5, align 8
br label %6, !llvm.loop !6
25: ; preds = %20
%26 = load ptr, ptr %3, align 8
%27 = load i64, ptr %5, align 8
%28 = getelementptr inbounds i8, ptr %26, i64 %27
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp slt i32 %30, 48
br i1 %31, label %39, label %32
32: ; preds = %25
%33 = load ptr, ptr %3, align 8
%34 = load i64, ptr %5, align 8
%35 = getelementptr inbounds i8, ptr %33, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp sgt i32 %37, 57
br i1 %38, label %39, label %40
39: ; preds = %32, %25
store i32 -1, ptr %2, align 4
br label %106
40: ; preds = %32
%41 = load ptr, ptr %3, align 8
%42 = load i64, ptr %5, align 8
%43 = getelementptr inbounds i8, ptr %41, i64 %42
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = sub nsw i32 %45, 48
store i32 %46, ptr %4, align 4
br label %47
47: ; preds = %40
br label %48
48: ; preds = %64, %47
%49 = load ptr, ptr %3, align 8
%50 = load i64, ptr %5, align 8
%51 = getelementptr inbounds i8, ptr %49, i64 %50
%52 = load i8, ptr %51, align 1
%53 = sext i8 %52 to i32
%54 = icmp sge i32 %53, 48
br i1 %54, label %55, label %62
55: ; preds = %48
%56 = load ptr, ptr %3, align 8
%57 = load i64, ptr %5, align 8
%58 = getelementptr inbounds i8, ptr %56, i64 %57
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = icmp sle i32 %60, 57
br label %62
62: ; preds = %55, %48
%63 = phi i1 [ false, %48 ], [ %61, %55 ]
br i1 %63, label %64, label %75
64: ; preds = %62
%65 = load i32, ptr %4, align 4
%66 = mul nsw i32 %65, 10
store i32 %66, ptr %4, align 4
%67 = load ptr, ptr %3, align 8
%68 = load i64, ptr %5, align 8
%69 = getelementptr inbounds i8, ptr %67, i64 %68
%70 = load i8, ptr %69, align 1
%71 = sext i8 %70 to i32
%72 = sub nsw i32 %71, 48
%73 = load i32, ptr %4, align 4
%74 = add nsw i32 %73, %72
store i32 %74, ptr %4, align 4
br label %48, !llvm.loop !8
75: ; preds = %62
%76 = load ptr, ptr %3, align 8
%77 = load i64, ptr %5, align 8
%78 = getelementptr inbounds i8, ptr %76, i64 %77
%79 = load i8, ptr %78, align 1
%80 = sext i8 %79 to i32
%81 = icmp ne i32 %80, 32
br i1 %81, label %82, label %104
82: ; preds = %75
%83 = load ptr, ptr %3, align 8
%84 = load i64, ptr %5, align 8
%85 = getelementptr inbounds i8, ptr %83, i64 %84
%86 = load i8, ptr %85, align 1
%87 = sext i8 %86 to i32
%88 = icmp ne i32 %87, 9
br i1 %88, label %89, label %104
89: ; preds = %82
%90 = load ptr, ptr %3, align 8
%91 = load i64, ptr %5, align 8
%92 = getelementptr inbounds i8, ptr %90, i64 %91
%93 = load i8, ptr %92, align 1
%94 = sext i8 %93 to i32
%95 = icmp ne i32 %94, 10
br i1 %95, label %96, label %104
96: ; preds = %89
%97 = load ptr, ptr %3, align 8
%98 = load i64, ptr %5, align 8
%99 = getelementptr inbounds i8, ptr %97, i64 %98
%100 = load i8, ptr %99, align 1
%101 = sext i8 %100 to i32
%102 = icmp ne i32 %101, 0
br i1 %102, label %103, label %104
103: ; preds = %96
store i32 -1, ptr %2, align 4
br label %106
104: ; preds = %96, %89, %82, %75
%105 = load i32, ptr %4, align 4
store i32 %105, ptr %2, align 4
br label %106
106: ; preds = %104, %103, %39
%107 = load i32, ptr %2, align 4
ret i32 %107
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp1zl6n_b9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @parse_uint(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i32 -1, ptr %4, align 4
store i64 0, ptr %5, align 8
br label %6
6: ; preds = %22, %1
%7 = load ptr, ptr %3, align 8
%8 = load i64, ptr %5, align 8
%9 = getelementptr inbounds i8, ptr %7, i64 %8
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 32
br i1 %12, label %20, label %13
13: ; preds = %6
%14 = load ptr, ptr %3, align 8
%15 = load i64, ptr %5, align 8
%16 = getelementptr inbounds i8, ptr %14, i64 %15
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 9
br label %20
20: ; preds = %13, %6
%21 = phi i1 [ true, %6 ], [ %19, %13 ]
br i1 %21, label %22, label %25
22: ; preds = %20
%23 = load i64, ptr %5, align 8
%24 = add i64 %23, 1
store i64 %24, ptr %5, align 8
br label %6, !llvm.loop !6
25: ; preds = %20
%26 = load ptr, ptr %3, align 8
%27 = load i64, ptr %5, align 8
%28 = getelementptr inbounds i8, ptr %26, i64 %27
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp slt i32 %30, 48
br i1 %31, label %39, label %32
32: ; preds = %25
%33 = load ptr, ptr %3, align 8
%34 = load i64, ptr %5, align 8
%35 = getelementptr inbounds i8, ptr %33, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp sgt i32 %37, 57
br i1 %38, label %39, label %40
39: ; preds = %32, %25
store i32 -1, ptr %2, align 4
br label %106
40: ; preds = %32
%41 = load ptr, ptr %3, align 8
%42 = load i64, ptr %5, align 8
%43 = getelementptr inbounds i8, ptr %41, i64 %42
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = sub nsw i32 %45, 48
store i32 %46, ptr %4, align 4
br label %47
47: ; preds = %40
br label %48
48: ; preds = %64, %47
%49 = load ptr, ptr %3, align 8
%50 = load i64, ptr %5, align 8
%51 = getelementptr inbounds i8, ptr %49, i64 %50
%52 = load i8, ptr %51, align 1
%53 = sext i8 %52 to i32
%54 = icmp sge i32 %53, 48
br i1 %54, label %55, label %62
55: ; preds = %48
%56 = load ptr, ptr %3, align 8
%57 = load i64, ptr %5, align 8
%58 = getelementptr inbounds i8, ptr %56, i64 %57
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = icmp sle i32 %60, 57
br label %62
62: ; preds = %55, %48
%63 = phi i1 [ false, %48 ], [ %61, %55 ]
br i1 %63, label %64, label %75
64: ; preds = %62
%65 = load i32, ptr %4, align 4
%66 = mul nsw i32 %65, 10
store i32 %66, ptr %4, align 4
%67 = load ptr, ptr %3, align 8
%68 = load i64, ptr %5, align 8
%69 = getelementptr inbounds i8, ptr %67, i64 %68
%70 = load i8, ptr %69, align 1
%71 = sext i8 %70 to i32
%72 = sub nsw i32 %71, 48
%73 = load i32, ptr %4, align 4
%74 = add nsw i32 %73, %72
store i32 %74, ptr %4, align 4
br label %48, !llvm.loop !8
75: ; preds = %62
%76 = load ptr, ptr %3, align 8
%77 = load i64, ptr %5, align 8
%78 = getelementptr inbounds i8, ptr %76, i64 %77
%79 = load i8, ptr %78, align 1
%80 = sext i8 %79 to i32
%81 = icmp ne i32 %80, 32
br i1 %81, label %82, label %104
82: ; preds = %75
%83 = load ptr, ptr %3, align 8
%84 = load i64, ptr %5, align 8
%85 = getelementptr inbounds i8, ptr %83, i64 %84
%86 = load i8, ptr %85, align 1
%87 = sext i8 %86 to i32
%88 = icmp ne i32 %87, 9
br i1 %88, label %89, label %104
89: ; preds = %82
%90 = load ptr, ptr %3, align 8
%91 = load i64, ptr %5, align 8
%92 = getelementptr inbounds i8, ptr %90, i64 %91
%93 = load i8, ptr %92, align 1
%94 = sext i8 %93 to i32
%95 = icmp ne i32 %94, 10
br i1 %95, label %96, label %104
96: ; preds = %89
%97 = load ptr, ptr %3, align 8
%98 = load i64, ptr %5, align 8
%99 = getelementptr inbounds i8, ptr %97, i64 %98
%100 = load i8, ptr %99, align 1
%101 = sext i8 %100 to i32
%102 = icmp ne i32 %101, 0
br i1 %102, label %103, label %104
103: ; preds = %96
store i32 -1, ptr %2, align 4
br label %106
104: ; preds = %96, %89, %82, %75
%105 = load i32, ptr %4, align 4
store i32 %105, ptr %2, align 4
br label %106
106: ; preds = %104, %103, %39
%107 = load i32, ptr %2, align 4
ret i32 %107
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpf9e_3qt0.c'
source_filename = "/tmp/tmpf9e_3qt0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"aerosol_size \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @f_aerosol_size(i32 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca ptr, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
store i32 %0, ptr %8, align 4
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store i32 %3, ptr %11, align 4
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
%19 = load i32, ptr %8, align 4
%20 = icmp sge i32 %19, 0
br i1 %20, label %21, label %104
21: ; preds = %6
%22 = load ptr, ptr %9, align 8
%23 = call i32 @code_table_4_0(ptr noundef %22)
store i32 %23, ptr %14, align 4
%24 = load i32, ptr %14, align 4
%25 = icmp slt i32 %24, 44
br i1 %25, label %29, label %26
26: ; preds = %21
%27 = load i32, ptr %14, align 4
%28 = icmp sgt i32 %27, 48
br i1 %28, label %29, label %30
29: ; preds = %26, %21
store i32 0, ptr %7, align 4
br label %105
30: ; preds = %26
%31 = load ptr, ptr %9, align 8
%32 = call i32 @code_table_4_91(ptr noundef %31)
store i32 %32, ptr %15, align 4
%33 = load i32, ptr %15, align 4
%34 = icmp eq i32 %33, 255
br i1 %34, label %35, label %36
35: ; preds = %30
store i32 0, ptr %7, align 4
br label %105
36: ; preds = %30
%37 = load ptr, ptr %9, align 8
%38 = getelementptr inbounds ptr, ptr %37, i64 4
%39 = load ptr, ptr %38, align 8
store ptr %39, ptr %16, align 8
%40 = load ptr, ptr %16, align 8
%41 = getelementptr inbounds i8, ptr %40, i64 14
%42 = load i8, ptr %41, align 1
%43 = zext i8 %42 to i32
%44 = and i32 %43, 128
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %53
46: ; preds = %36
%47 = load ptr, ptr %16, align 8
%48 = getelementptr inbounds i8, ptr %47, i64 14
%49 = load i8, ptr %48, align 1
%50 = zext i8 %49 to i32
%51 = and i32 %50, 127
%52 = sub nsw i32 0, %51
br label %59
53: ; preds = %36
%54 = load ptr, ptr %16, align 8
%55 = getelementptr inbounds i8, ptr %54, i64 14
%56 = load i8, ptr %55, align 1
%57 = zext i8 %56 to i32
%58 = and i32 %57, 127
br label %59
59: ; preds = %53, %46
%60 = phi i32 [ %52, %46 ], [ %58, %53 ]
%61 = load ptr, ptr %16, align 8
%62 = getelementptr inbounds i8, ptr %61, i64 15
%63 = call i32 @int4(ptr noundef %62)
%64 = call double @scaled2dbl(i32 noundef %60, i32 noundef %63)
store double %64, ptr %17, align 8
%65 = load ptr, ptr %16, align 8
%66 = getelementptr inbounds i8, ptr %65, i64 19
%67 = load i8, ptr %66, align 1
%68 = zext i8 %67 to i32
%69 = and i32 %68, 128
%70 = icmp ne i32 %69, 0
br i1 %70, label %71, label %78
71: ; preds = %59
%72 = load ptr, ptr %16, align 8
%73 = getelementptr inbounds i8, ptr %72, i64 19
%74 = load i8, ptr %73, align 1
%75 = zext i8 %74 to i32
%76 = and i32 %75, 127
%77 = sub nsw i32 0, %76
br label %84
78: ; preds = %59
%79 = load ptr, ptr %16, align 8
%80 = getelementptr inbounds i8, ptr %79, i64 19
%81 = load i8, ptr %80, align 1
%82 = zext i8 %81 to i32
%83 = and i32 %82, 127
br label %84
84: ; preds = %78, %71
%85 = phi i32 [ %77, %71 ], [ %83, %78 ]
%86 = load ptr, ptr %16, align 8
%87 = getelementptr inbounds i8, ptr %86, i64 20
%88 = call i32 @int4(ptr noundef %87)
%89 = call double @scaled2dbl(i32 noundef %85, i32 noundef %88)
store double %89, ptr %18, align 8
%90 = load ptr, ptr %12, align 8
%91 = call i32 @sprintf(ptr noundef %90, ptr noundef @.str)
%92 = load ptr, ptr %12, align 8
%93 = call i32 @strlen(ptr noundef %92)
%94 = load ptr, ptr %12, align 8
%95 = sext i32 %93 to i64
%96 = getelementptr inbounds i8, ptr %94, i64 %95
store ptr %96, ptr %12, align 8
%97 = load ptr, ptr %9, align 8
%98 = call i32 @code_table_4_91(ptr noundef %97)
store i32 %98, ptr %15, align 4
%99 = load i32, ptr %15, align 4
%100 = load double, ptr %17, align 8
%101 = load double, ptr %18, align 8
%102 = load ptr, ptr %12, align 8
%103 = call i32 @prt_code_table_4_91(i32 noundef %99, double noundef %100, double noundef %101, ptr noundef %102)
br label %104
104: ; preds = %84, %6
store i32 0, ptr %7, align 4
br label %105
105: ; preds = %104, %35, %29
%106 = load i32, ptr %7, align 4
ret i32 %106
}
declare i32 @code_table_4_0(ptr noundef) #1
declare i32 @code_table_4_91(ptr noundef) #1
declare double @scaled2dbl(i32 noundef, i32 noundef) #1
declare i32 @int4(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @prt_code_table_4_91(i32 noundef, double noundef, double 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/tmpf9e_3qt0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"aerosol_size \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @f_aerosol_size(i32 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca ptr, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
store i32 %0, ptr %8, align 4
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store i32 %3, ptr %11, align 4
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
%19 = load i32, ptr %8, align 4
%20 = icmp sge i32 %19, 0
br i1 %20, label %21, label %104
21: ; preds = %6
%22 = load ptr, ptr %9, align 8
%23 = call i32 @code_table_4_0(ptr noundef %22)
store i32 %23, ptr %14, align 4
%24 = load i32, ptr %14, align 4
%25 = icmp slt i32 %24, 44
br i1 %25, label %29, label %26
26: ; preds = %21
%27 = load i32, ptr %14, align 4
%28 = icmp sgt i32 %27, 48
br i1 %28, label %29, label %30
29: ; preds = %26, %21
store i32 0, ptr %7, align 4
br label %105
30: ; preds = %26
%31 = load ptr, ptr %9, align 8
%32 = call i32 @code_table_4_91(ptr noundef %31)
store i32 %32, ptr %15, align 4
%33 = load i32, ptr %15, align 4
%34 = icmp eq i32 %33, 255
br i1 %34, label %35, label %36
35: ; preds = %30
store i32 0, ptr %7, align 4
br label %105
36: ; preds = %30
%37 = load ptr, ptr %9, align 8
%38 = getelementptr inbounds ptr, ptr %37, i64 4
%39 = load ptr, ptr %38, align 8
store ptr %39, ptr %16, align 8
%40 = load ptr, ptr %16, align 8
%41 = getelementptr inbounds i8, ptr %40, i64 14
%42 = load i8, ptr %41, align 1
%43 = zext i8 %42 to i32
%44 = and i32 %43, 128
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %53
46: ; preds = %36
%47 = load ptr, ptr %16, align 8
%48 = getelementptr inbounds i8, ptr %47, i64 14
%49 = load i8, ptr %48, align 1
%50 = zext i8 %49 to i32
%51 = and i32 %50, 127
%52 = sub nsw i32 0, %51
br label %59
53: ; preds = %36
%54 = load ptr, ptr %16, align 8
%55 = getelementptr inbounds i8, ptr %54, i64 14
%56 = load i8, ptr %55, align 1
%57 = zext i8 %56 to i32
%58 = and i32 %57, 127
br label %59
59: ; preds = %53, %46
%60 = phi i32 [ %52, %46 ], [ %58, %53 ]
%61 = load ptr, ptr %16, align 8
%62 = getelementptr inbounds i8, ptr %61, i64 15
%63 = call i32 @int4(ptr noundef %62)
%64 = call double @scaled2dbl(i32 noundef %60, i32 noundef %63)
store double %64, ptr %17, align 8
%65 = load ptr, ptr %16, align 8
%66 = getelementptr inbounds i8, ptr %65, i64 19
%67 = load i8, ptr %66, align 1
%68 = zext i8 %67 to i32
%69 = and i32 %68, 128
%70 = icmp ne i32 %69, 0
br i1 %70, label %71, label %78
71: ; preds = %59
%72 = load ptr, ptr %16, align 8
%73 = getelementptr inbounds i8, ptr %72, i64 19
%74 = load i8, ptr %73, align 1
%75 = zext i8 %74 to i32
%76 = and i32 %75, 127
%77 = sub nsw i32 0, %76
br label %84
78: ; preds = %59
%79 = load ptr, ptr %16, align 8
%80 = getelementptr inbounds i8, ptr %79, i64 19
%81 = load i8, ptr %80, align 1
%82 = zext i8 %81 to i32
%83 = and i32 %82, 127
br label %84
84: ; preds = %78, %71
%85 = phi i32 [ %77, %71 ], [ %83, %78 ]
%86 = load ptr, ptr %16, align 8
%87 = getelementptr inbounds i8, ptr %86, i64 20
%88 = call i32 @int4(ptr noundef %87)
%89 = call double @scaled2dbl(i32 noundef %85, i32 noundef %88)
store double %89, ptr %18, align 8
%90 = load ptr, ptr %12, align 8
%91 = call i32 @sprintf(ptr noundef %90, ptr noundef @.str)
%92 = load ptr, ptr %12, align 8
%93 = call i32 @strlen(ptr noundef %92)
%94 = load ptr, ptr %12, align 8
%95 = sext i32 %93 to i64
%96 = getelementptr inbounds i8, ptr %94, i64 %95
store ptr %96, ptr %12, align 8
%97 = load ptr, ptr %9, align 8
%98 = call i32 @code_table_4_91(ptr noundef %97)
store i32 %98, ptr %15, align 4
%99 = load i32, ptr %15, align 4
%100 = load double, ptr %17, align 8
%101 = load double, ptr %18, align 8
%102 = load ptr, ptr %12, align 8
%103 = call i32 @prt_code_table_4_91(i32 noundef %99, double noundef %100, double noundef %101, ptr noundef %102)
br label %104
104: ; preds = %84, %6
store i32 0, ptr %7, align 4
br label %105
105: ; preds = %104, %35, %29
%106 = load i32, ptr %7, align 4
ret i32 %106
}
declare i32 @code_table_4_0(ptr noundef) #1
declare i32 @code_table_4_91(ptr noundef) #1
declare double @scaled2dbl(i32 noundef, i32 noundef) #1
declare i32 @int4(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @prt_code_table_4_91(i32 noundef, double noundef, double 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/tmpx47v7v85.c'
source_filename = "/tmp/tmpx47v7v85.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"about to terminate the child\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"child %d terminated \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sig_chld(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @wait(ptr noundef %4)
store i32 %6, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %7)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @wait(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx47v7v85.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"about to terminate the child\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"child %d terminated \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sig_chld(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @wait(ptr noundef %4)
store i32 %6, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %7)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @wait(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4vlaw9eh.c'
source_filename = "/tmp/tmp4vlaw9eh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%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
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%8 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %5)
%9 = load i32, ptr %3, align 4
%10 = mul nsw i32 %9, 2
%11 = sdiv i32 %10, 100
store i32 %11, ptr %4, align 4
br label %12
12: ; preds = %27, %0
%13 = load i32, ptr %2, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %32
15: ; preds = %12
%16 = load i32, ptr %7, align 4
%17 = load i32, ptr %5, align 4
%18 = icmp eq i32 %16, %17
br i1 %18, label %19, label %23
19: ; preds = %15
%20 = load i32, ptr %3, align 4
%21 = load i32, ptr %4, align 4
%22 = sub nsw i32 %20, %21
store i32 %22, ptr %3, align 4
store i32 0, ptr %7, align 4
br label %23
23: ; preds = %19, %15
%24 = load i32, ptr %6, align 4
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %24, %25
store i32 %26, ptr %6, align 4
br label %27
27: ; preds = %23
%28 = load i32, ptr %2, align 4
%29 = add nsw i32 %28, -1
store i32 %29, ptr %2, align 4
%30 = load i32, ptr %7, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %7, align 4
br label %12, !llvm.loop !6
32: ; preds = %12
%33 = load i32, ptr %6, align 4
%34 = call i32 @printf(ptr noundef @.str.1, i32 noundef %33)
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4vlaw9eh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%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
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%8 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %5)
%9 = load i32, ptr %3, align 4
%10 = mul nsw i32 %9, 2
%11 = sdiv i32 %10, 100
store i32 %11, ptr %4, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp ne i32 %12, 0
br i1 %13, label %.lr.ph, label %33
.lr.ph: ; preds = %0
br label %14
14: ; preds = %.lr.ph, %26
%15 = load i32, ptr %7, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp eq i32 %15, %16
br i1 %17, label %18, label %22
18: ; preds = %14
%19 = load i32, ptr %3, align 4
%20 = load i32, ptr %4, align 4
%21 = sub nsw i32 %19, %20
store i32 %21, ptr %3, align 4
store i32 0, ptr %7, align 4
br label %22
22: ; preds = %18, %14
%23 = load i32, ptr %6, align 4
%24 = load i32, ptr %3, align 4
%25 = add nsw i32 %23, %24
store i32 %25, ptr %6, align 4
br label %26
26: ; preds = %22
%27 = load i32, ptr %2, align 4
%28 = add nsw i32 %27, -1
store i32 %28, ptr %2, align 4
%29 = load i32, ptr %7, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %7, align 4
%31 = load i32, ptr %2, align 4
%32 = icmp ne i32 %31, 0
br i1 %32, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %33
33: ; preds = %._crit_edge, %0
%34 = load i32, ptr %6, align 4
%35 = call i32 @printf(ptr noundef @.str.1, i32 noundef %34)
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmphmfqnor8.c'
source_filename = "/tmp/tmphmfqnor8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @checkPoint(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %3, align 4
%7 = call i32 @abs(i32 noundef %6) #2
%8 = icmp sle i32 %7, 3
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = load i32, ptr %4, align 4
%11 = call i32 @abs(i32 noundef %10) #2
%12 = icmp sle i32 %11, 5
br i1 %12, label %13, label %14
13: ; preds = %9
store i32 1, ptr %5, align 4
br label %34
14: ; preds = %9, %2
%15 = load i32, ptr %3, align 4
%16 = call i32 @abs(i32 noundef %15) #2
%17 = icmp sle i32 %16, 4
br i1 %17, label %18, label %23
18: ; preds = %14
%19 = load i32, ptr %4, align 4
%20 = call i32 @abs(i32 noundef %19) #2
%21 = icmp sle i32 %20, 3
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 1, ptr %5, align 4
br label %33
23: ; preds = %18, %14
%24 = load i32, ptr %3, align 4
%25 = call i32 @abs(i32 noundef %24) #2
%26 = icmp sle i32 %25, 5
br i1 %26, label %27, label %32
27: ; preds = %23
%28 = load i32, ptr %4, align 4
%29 = call i32 @abs(i32 noundef %28) #2
%30 = icmp sle i32 %29, 1
br i1 %30, label %31, label %32
31: ; preds = %27
store i32 1, ptr %5, align 4
br label %32
32: ; preds = %31, %27, %23
br label %33
33: ; preds = %32, %22
br label %34
34: ; preds = %33, %13
%35 = load i32, ptr %5, align 4
ret i32 %35
}
; Function Attrs: nounwind willreturn memory(none)
declare i32 @abs(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 = { nounwind willreturn memory(none) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(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/tmphmfqnor8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @checkPoint(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %3, align 4
%7 = call i32 @abs(i32 noundef %6) #2
%8 = icmp sle i32 %7, 3
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = load i32, ptr %4, align 4
%11 = call i32 @abs(i32 noundef %10) #2
%12 = icmp sle i32 %11, 5
br i1 %12, label %13, label %14
13: ; preds = %9
store i32 1, ptr %5, align 4
br label %34
14: ; preds = %9, %2
%15 = load i32, ptr %3, align 4
%16 = call i32 @abs(i32 noundef %15) #2
%17 = icmp sle i32 %16, 4
br i1 %17, label %18, label %23
18: ; preds = %14
%19 = load i32, ptr %4, align 4
%20 = call i32 @abs(i32 noundef %19) #2
%21 = icmp sle i32 %20, 3
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 1, ptr %5, align 4
br label %33
23: ; preds = %18, %14
%24 = load i32, ptr %3, align 4
%25 = call i32 @abs(i32 noundef %24) #2
%26 = icmp sle i32 %25, 5
br i1 %26, label %27, label %32
27: ; preds = %23
%28 = load i32, ptr %4, align 4
%29 = call i32 @abs(i32 noundef %28) #2
%30 = icmp sle i32 %29, 1
br i1 %30, label %31, label %32
31: ; preds = %27
store i32 1, ptr %5, align 4
br label %32
32: ; preds = %31, %27, %23
br label %33
33: ; preds = %32, %22
br label %34
34: ; preds = %33, %13
%35 = load i32, ptr %5, align 4
ret i32 %35
}
; Function Attrs: nounwind willreturn memory(none)
declare i32 @abs(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 = { nounwind willreturn memory(none) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(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/tmpm4wluv56.c'
source_filename = "/tmp/tmpm4wluv56.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@.str.1 = private unnamed_addr constant [5 x i8] c"%ld\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\0A\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"%lu\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%f\0A\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"%x\0A\00", align 1
@.str.6 = private unnamed_addr constant [15 x i8] c"c as char: %c\0A\00", align 1
@.str.7 = private unnamed_addr constant [14 x i8] c"c as int: %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 i64, align 8
%4 = alloca i32, align 4
%5 = alloca i64, align 8
%6 = alloca double, align 8
%7 = alloca i32, align 4
%8 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i32 123, ptr %2, align 4
%9 = load i32, ptr %2, align 4
%10 = trunc i32 %9 to i8
%11 = call i32 @printf(ptr noundef @.str, i8 noundef signext %10)
store i64 123456789, ptr %3, align 8
%12 = load i64, ptr %3, align 8
%13 = trunc i64 %12 to i8
%14 = call i32 @printf(ptr noundef @.str.1, i8 noundef signext %13)
store i32 123, ptr %4, align 4
%15 = load i32, ptr %4, align 4
%16 = trunc i32 %15 to i8
%17 = call i32 @printf(ptr noundef @.str.2, i8 noundef signext %16)
store i64 123456789, ptr %5, align 8
%18 = load i64, ptr %5, align 8
%19 = trunc i64 %18 to i8
%20 = call i32 @printf(ptr noundef @.str.3, i8 noundef signext %19)
store double 1.230000e+00, ptr %6, align 8
%21 = load double, ptr %6, align 8
%22 = fptosi double %21 to i8
%23 = call i32 @printf(ptr noundef @.str.4, i8 noundef signext %22)
store i32 11045839, ptr %7, align 4
%24 = load i32, ptr %7, align 4
%25 = trunc i32 %24 to i8
%26 = call i32 @printf(ptr noundef @.str.5, i8 noundef signext %25)
store i8 65, ptr %8, align 1
%27 = load i8, ptr %8, align 1
%28 = call i32 @printf(ptr noundef @.str.6, i8 noundef signext %27)
%29 = load i8, ptr %8, align 1
%30 = call i32 @printf(ptr noundef @.str.7, i8 noundef signext %29)
ret i32 0
}
declare i32 @printf(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm4wluv56.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@.str.1 = private unnamed_addr constant [5 x i8] c"%ld\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\0A\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"%lu\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%f\0A\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"%x\0A\00", align 1
@.str.6 = private unnamed_addr constant [15 x i8] c"c as char: %c\0A\00", align 1
@.str.7 = private unnamed_addr constant [14 x i8] c"c as int: %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 i64, align 8
%4 = alloca i32, align 4
%5 = alloca i64, align 8
%6 = alloca double, align 8
%7 = alloca i32, align 4
%8 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i32 123, ptr %2, align 4
%9 = load i32, ptr %2, align 4
%10 = trunc i32 %9 to i8
%11 = call i32 @printf(ptr noundef @.str, i8 noundef signext %10)
store i64 123456789, ptr %3, align 8
%12 = load i64, ptr %3, align 8
%13 = trunc i64 %12 to i8
%14 = call i32 @printf(ptr noundef @.str.1, i8 noundef signext %13)
store i32 123, ptr %4, align 4
%15 = load i32, ptr %4, align 4
%16 = trunc i32 %15 to i8
%17 = call i32 @printf(ptr noundef @.str.2, i8 noundef signext %16)
store i64 123456789, ptr %5, align 8
%18 = load i64, ptr %5, align 8
%19 = trunc i64 %18 to i8
%20 = call i32 @printf(ptr noundef @.str.3, i8 noundef signext %19)
store double 1.230000e+00, ptr %6, align 8
%21 = load double, ptr %6, align 8
%22 = fptosi double %21 to i8
%23 = call i32 @printf(ptr noundef @.str.4, i8 noundef signext %22)
store i32 11045839, ptr %7, align 4
%24 = load i32, ptr %7, align 4
%25 = trunc i32 %24 to i8
%26 = call i32 @printf(ptr noundef @.str.5, i8 noundef signext %25)
store i8 65, ptr %8, align 1
%27 = load i8, ptr %8, align 1
%28 = call i32 @printf(ptr noundef @.str.6, i8 noundef signext %27)
%29 = load i8, ptr %8, align 1
%30 = call i32 @printf(ptr noundef @.str.7, i8 noundef signext %29)
ret i32 0
}
declare i32 @printf(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsx269f_4.c'
source_filename = "/tmp/tmpsx269f_4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"Enter the three string:\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"Order string:\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca [3 x [80 x i8]], align 16
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = getelementptr inbounds [3 x [80 x i8]], ptr %1, i64 0, i64 0
store ptr %4, ptr %2, align 8
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %6
6: ; preds = %15, %0
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 3
br i1 %8, label %9, label %18
9: ; preds = %6
%10 = load ptr, ptr %2, align 8
%11 = getelementptr inbounds [80 x i8], ptr %10, i64 0, i64 0
%12 = call i32 @gets(ptr noundef %11)
%13 = load ptr, ptr %2, align 8
%14 = getelementptr inbounds [80 x i8], ptr %13, i32 1
store ptr %14, ptr %2, align 8
br label %15
15: ; preds = %9
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %3, align 4
br label %6, !llvm.loop !6
18: ; preds = %6
%19 = getelementptr inbounds [3 x [80 x i8]], ptr %1, i64 0, i64 0
store ptr %19, ptr %2, align 8
%20 = getelementptr inbounds [3 x [80 x i8]], ptr %1, i64 0, i64 0
%21 = call i32 @sort(ptr noundef %20, i32 noundef 3)
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %3, align 4
br label %23
23: ; preds = %32, %18
%24 = load i32, ptr %3, align 4
%25 = icmp slt i32 %24, 3
br i1 %25, label %26, label %35
26: ; preds = %23
%27 = load i32, ptr %3, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [3 x [80 x i8]], ptr %1, i64 0, i64 %28
%30 = getelementptr inbounds [80 x i8], ptr %29, i64 0, i64 0
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %30)
br label %32
32: ; preds = %26
%33 = load i32, ptr %3, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %3, align 4
br label %23, !llvm.loop !8
35: ; preds = %23
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @gets(ptr noundef) #1
declare i32 @sort(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsx269f_4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"Enter the three string:\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"Order string:\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca [3 x [80 x i8]], align 16
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = getelementptr inbounds [3 x [80 x i8]], ptr %1, i64 0, i64 0
store ptr %4, ptr %2, align 8
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 3
br i1 %7, label %.lr.ph, label %19
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %14
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds [80 x i8], ptr %9, i64 0, i64 0
%11 = call i32 @gets(ptr noundef %10)
%12 = load ptr, ptr %2, align 8
%13 = getelementptr inbounds [80 x i8], ptr %12, i32 1
store ptr %13, ptr %2, align 8
br label %14
14: ; preds = %8
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %3, align 4
%17 = load i32, ptr %3, align 4
%18 = icmp slt i32 %17, 3
br i1 %18, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %19
19: ; preds = %._crit_edge, %0
%20 = getelementptr inbounds [3 x [80 x i8]], ptr %1, i64 0, i64 0
store ptr %20, ptr %2, align 8
%21 = getelementptr inbounds [3 x [80 x i8]], ptr %1, i64 0, i64 0
%22 = call i32 @sort(ptr noundef %21, i32 noundef 3)
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %3, align 4
%24 = load i32, ptr %3, align 4
%25 = icmp slt i32 %24, 3
br i1 %25, label %.lr.ph2, label %37
.lr.ph2: ; preds = %19
br label %26
26: ; preds = %.lr.ph2, %32
%27 = load i32, ptr %3, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [3 x [80 x i8]], ptr %1, i64 0, i64 %28
%30 = getelementptr inbounds [80 x i8], ptr %29, i64 0, i64 0
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %30)
br label %32
32: ; preds = %26
%33 = load i32, ptr %3, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %3, align 4
%35 = load i32, ptr %3, align 4
%36 = icmp slt i32 %35, 3
br i1 %36, label %26, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %32
br label %37
37: ; preds = %._crit_edge3, %19
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @gets(ptr noundef) #1
declare i32 @sort(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpvklc_3vv.c'
source_filename = "/tmp/tmpvklc_3vv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @timlib_character_exists(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @exists_character(ptr noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @exists_character(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/tmpvklc_3vv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @timlib_character_exists(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @exists_character(ptr noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @exists_character(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/tmpyvl6u9ez.c'
source_filename = "/tmp/tmpyvl6u9ez.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @b_setline(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [999 x i8], align 16
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = getelementptr inbounds [999 x i8], ptr %4, i64 0, i64 0
%7 = call i32 @b_gets(i32 noundef %5, ptr noundef %6)
store i32 0, ptr %3, align 4
br label %8
8: ; preds = %16, %1
%9 = load i32, ptr %3, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [999 x i8], ptr %4, i64 0, i64 %10
%12 = load i8, ptr %11, align 1
%13 = call i64 @isspace(i8 noundef signext %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %8
br label %16
16: ; preds = %15
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %3, align 4
br label %8, !llvm.loop !6
19: ; preds = %8
%20 = load i32, ptr %3, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [999 x i8], ptr %4, i64 0, i64 %21
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %36
26: ; preds = %19
%27 = load i32, ptr %3, align 4
%28 = sub nsw i32 %27, 1
%29 = icmp sgt i32 %28, 0
br i1 %29, label %30, label %33
30: ; preds = %26
%31 = load i32, ptr %3, align 4
%32 = sub nsw i32 %31, 1
br label %34
33: ; preds = %26
br label %34
34: ; preds = %33, %30
%35 = phi i32 [ %32, %30 ], [ 0, %33 ]
store i32 %35, ptr %3, align 4
br label %36
36: ; preds = %34, %19
%37 = load i32, ptr %2, align 4
%38 = load i32, ptr %3, align 4
%39 = call i32 @b_setcur(i32 noundef %37, i32 noundef %38)
ret void
}
declare i32 @b_gets(i32 noundef, ptr noundef) #1
declare i64 @isspace(i8 noundef signext) #1
declare i32 @b_setcur(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/tmpyvl6u9ez.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @b_setline(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [999 x i8], align 16
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = getelementptr inbounds [999 x i8], ptr %4, i64 0, i64 0
%7 = call i32 @b_gets(i32 noundef %5, ptr noundef %6)
store i32 0, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [999 x i8], ptr %4, i64 0, i64 %9
%11 = load i8, ptr %10, align 1
%12 = call i64 @isspace(i8 noundef signext %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %.lr.ph, label %24
.lr.ph: ; preds = %1
br label %14
14: ; preds = %.lr.ph, %15
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
%18 = load i32, ptr %3, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [999 x i8], ptr %4, i64 0, i64 %19
%21 = load i8, ptr %20, align 1
%22 = call i64 @isspace(i8 noundef signext %21)
%23 = icmp ne i64 %22, 0
br i1 %23, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %24
24: ; preds = %._crit_edge, %1
%25 = load i32, ptr %3, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [999 x i8], ptr %4, i64 0, i64 %26
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %41
31: ; preds = %24
%32 = load i32, ptr %3, align 4
%33 = sub nsw i32 %32, 1
%34 = icmp sgt i32 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = load i32, ptr %3, align 4
%37 = sub nsw i32 %36, 1
br label %39
38: ; preds = %31
br label %39
39: ; preds = %38, %35
%40 = phi i32 [ %37, %35 ], [ 0, %38 ]
store i32 %40, ptr %3, align 4
br label %41
41: ; preds = %39, %24
%42 = load i32, ptr %2, align 4
%43 = load i32, ptr %3, align 4
%44 = call i32 @b_setcur(i32 noundef %42, i32 noundef %43)
ret void
}
declare i32 @b_gets(i32 noundef, ptr noundef) #1
declare i64 @isspace(i8 noundef signext) #1
declare i32 @b_setcur(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/tmpddoznaka.c'
source_filename = "/tmp/tmpddoznaka.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Enter a value for the x coordinate: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"Slope is %f\0A\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"Enter the radius of a circle: \00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"The area is %f\0A\00", align 1
@.str.5 = private unnamed_addr constant [25 x i8] c"The circumference is %f\0A\00", align 1
@.str.6 = private unnamed_addr constant [24 x i8] c"The y coordinate is %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca float, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1)
%10 = load float, ptr %2, align 4
store float %10, ptr %4, align 4
%11 = load float, ptr %1, align 4
%12 = load float, ptr %4, align 4
%13 = fmul float %12, %11
store float %13, ptr %4, align 4
%14 = load float, ptr %3, align 4
%15 = load float, ptr %4, align 4
%16 = fadd float %15, %14
store float %16, ptr %4, align 4
%17 = load float, ptr %4, align 4
%18 = fpext float %17 to double
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %18)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%21 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
store float 0x40091EB860000000, ptr %6, align 4
%22 = load float, ptr %5, align 4
%23 = load float, ptr %6, align 4
%24 = fmul float %23, %22
store float %24, ptr %6, align 4
%25 = load float, ptr %5, align 4
%26 = load float, ptr %6, align 4
%27 = fmul float %26, %25
store float %27, ptr %6, align 4
store float 2.000000e+00, ptr %7, align 4
%28 = load float, ptr %7, align 4
%29 = fpext float %28 to double
%30 = fmul double %29, 3.140000e+00
%31 = fptrunc double %30 to float
store float %31, ptr %7, align 4
%32 = load float, ptr %5, align 4
%33 = load float, ptr %7, align 4
%34 = fmul float %33, %32
store float %34, ptr %7, align 4
%35 = load float, ptr %6, align 4
%36 = fpext float %35 to double
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %36)
%38 = load float, ptr %7, align 4
%39 = fpext float %38 to double
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %39)
%41 = load float, ptr %4, align 4
%42 = fpext float %41 to double
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %42)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpddoznaka.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Enter a value for the x coordinate: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"Slope is %f\0A\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"Enter the radius of a circle: \00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"The area is %f\0A\00", align 1
@.str.5 = private unnamed_addr constant [25 x i8] c"The circumference is %f\0A\00", align 1
@.str.6 = private unnamed_addr constant [24 x i8] c"The y coordinate is %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca float, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1)
%10 = load float, ptr %2, align 4
store float %10, ptr %4, align 4
%11 = load float, ptr %1, align 4
%12 = load float, ptr %4, align 4
%13 = fmul float %12, %11
store float %13, ptr %4, align 4
%14 = load float, ptr %3, align 4
%15 = load float, ptr %4, align 4
%16 = fadd float %15, %14
store float %16, ptr %4, align 4
%17 = load float, ptr %4, align 4
%18 = fpext float %17 to double
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %18)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%21 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
store float 0x40091EB860000000, ptr %6, align 4
%22 = load float, ptr %5, align 4
%23 = load float, ptr %6, align 4
%24 = fmul float %23, %22
store float %24, ptr %6, align 4
%25 = load float, ptr %5, align 4
%26 = load float, ptr %6, align 4
%27 = fmul float %26, %25
store float %27, ptr %6, align 4
store float 2.000000e+00, ptr %7, align 4
%28 = load float, ptr %7, align 4
%29 = fpext float %28 to double
%30 = fmul double %29, 3.140000e+00
%31 = fptrunc double %30 to float
store float %31, ptr %7, align 4
%32 = load float, ptr %5, align 4
%33 = load float, ptr %7, align 4
%34 = fmul float %33, %32
store float %34, ptr %7, align 4
%35 = load float, ptr %6, align 4
%36 = fpext float %35 to double
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %36)
%38 = load float, ptr %7, align 4
%39 = fpext float %38 to double
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %39)
%41 = load float, ptr %4, align 4
%42 = fpext float %41 to double
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %42)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvtb2fft7.c'
source_filename = "/tmp/tmpvtb2fft7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Cyc_AP_subi(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i32 8, ptr %5, align 4
%11 = load i32, ptr %5, align 4
store i32 %11, ptr %6, align 4
%12 = load i32, ptr %6, align 4
%13 = call ptr @Cyc_mk(i32 noundef %12)
store ptr %13, ptr %10, align 8
%14 = load ptr, ptr %3, align 8
store ptr %14, ptr %7, align 8
%15 = load ptr, ptr %10, align 8
%16 = load i64, ptr %4, align 8
%17 = call ptr @Cyc_set(ptr noundef %15, i64 noundef %16)
store ptr %17, ptr %8, align 8
%18 = load ptr, ptr %7, align 8
%19 = load ptr, ptr %8, align 8
%20 = call ptr @Cyc_AP_sub(ptr noundef %18, ptr noundef %19)
store ptr %20, ptr %9, align 8
%21 = load ptr, ptr %9, align 8
ret ptr %21
}
declare ptr @Cyc_mk(i32 noundef) #1
declare ptr @Cyc_set(ptr noundef, i64 noundef) #1
declare ptr @Cyc_AP_sub(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/tmpvtb2fft7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Cyc_AP_subi(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i32 8, ptr %5, align 4
%11 = load i32, ptr %5, align 4
store i32 %11, ptr %6, align 4
%12 = load i32, ptr %6, align 4
%13 = call ptr @Cyc_mk(i32 noundef %12)
store ptr %13, ptr %10, align 8
%14 = load ptr, ptr %3, align 8
store ptr %14, ptr %7, align 8
%15 = load ptr, ptr %10, align 8
%16 = load i64, ptr %4, align 8
%17 = call ptr @Cyc_set(ptr noundef %15, i64 noundef %16)
store ptr %17, ptr %8, align 8
%18 = load ptr, ptr %7, align 8
%19 = load ptr, ptr %8, align 8
%20 = call ptr @Cyc_AP_sub(ptr noundef %18, ptr noundef %19)
store ptr %20, ptr %9, align 8
%21 = load ptr, ptr %9, align 8
ret ptr %21
}
declare ptr @Cyc_mk(i32 noundef) #1
declare ptr @Cyc_set(ptr noundef, i64 noundef) #1
declare ptr @Cyc_AP_sub(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/tmppm83o7fd.c'
source_filename = "/tmp/tmppm83o7fd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%union.anon = type { [4 x i32] }
@ipv4_bindstring.buffer = internal global [32 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [20 x i8] c"%hhu.%hhu.%hhu.%hhu\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"%08X:%04X\00", align 1
@LOG_DEBUG = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [17 x i8] c"Bindstring \22%s\22\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ipv4_bindstring(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca %union.anon, 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 [4 x i32], ptr %5, i64 0, i64 0
%8 = getelementptr inbounds [4 x i32], ptr %5, i64 0, i64 1
%9 = getelementptr inbounds [4 x i32], ptr %5, i64 0, i64 2
%10 = getelementptr inbounds [4 x i32], ptr %5, i64 0, i64 3
%11 = call i32 @sscanf(ptr noundef %6, ptr noundef @.str, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10)
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %4, align 4
%14 = call i32 @sprintf(ptr noundef @ipv4_bindstring.buffer, ptr noundef @.str.1, i32 noundef %12, i32 noundef %13)
%15 = load i32, ptr @LOG_DEBUG, align 4
%16 = call i32 @debugLog(i32 noundef %15, ptr noundef @.str.2, ptr noundef @ipv4_bindstring.buffer)
ret ptr @ipv4_bindstring.buffer
}
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @debugLog(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppm83o7fd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%union.anon = type { [4 x i32] }
@ipv4_bindstring.buffer = internal global [32 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [20 x i8] c"%hhu.%hhu.%hhu.%hhu\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"%08X:%04X\00", align 1
@LOG_DEBUG = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [17 x i8] c"Bindstring \22%s\22\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ipv4_bindstring(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca %union.anon, 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 [4 x i32], ptr %5, i64 0, i64 0
%8 = getelementptr inbounds [4 x i32], ptr %5, i64 0, i64 1
%9 = getelementptr inbounds [4 x i32], ptr %5, i64 0, i64 2
%10 = getelementptr inbounds [4 x i32], ptr %5, i64 0, i64 3
%11 = call i32 @sscanf(ptr noundef %6, ptr noundef @.str, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10)
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %4, align 4
%14 = call i32 @sprintf(ptr noundef @ipv4_bindstring.buffer, ptr noundef @.str.1, i32 noundef %12, i32 noundef %13)
%15 = load i32, ptr @LOG_DEBUG, align 4
%16 = call i32 @debugLog(i32 noundef %15, ptr noundef @.str.2, ptr noundef @ipv4_bindstring.buffer)
ret ptr @ipv4_bindstring.buffer
}
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @debugLog(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpik7qumhj.c'
source_filename = "/tmp/tmpik7qumhj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @console_write(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 @addstr(ptr noundef %3)
ret void
}
declare i32 @addstr(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpik7qumhj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @console_write(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 @addstr(ptr noundef %3)
ret void
}
declare i32 @addstr(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy2vps621.c'
source_filename = "/tmp/tmpy2vps621.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @slPairFreeValsAndList(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i32 @slPairFreeVals(ptr noundef %4)
%6 = load ptr, ptr %2, align 8
%7 = call i32 @slPairFreeList(ptr noundef %6)
ret void
}
declare i32 @slPairFreeVals(ptr noundef) #1
declare i32 @slPairFreeList(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy2vps621.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @slPairFreeValsAndList(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i32 @slPairFreeVals(ptr noundef %4)
%6 = load ptr, ptr %2, align 8
%7 = call i32 @slPairFreeList(ptr noundef %6)
ret void
}
declare i32 @slPairFreeVals(ptr noundef) #1
declare i32 @slPairFreeList(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnp2wvbt_.c'
source_filename = "/tmp/tmpnp2wvbt_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"Hello!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 10, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnp2wvbt_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"Hello!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 10, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4wr2t0z1.c'
source_filename = "/tmp/tmp4wr2t0z1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"Enter message: \00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"In B1FF-speak: \00", align 1
@.str.2 = private unnamed_addr constant [10 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 i8, align 1
%3 = alloca [50 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 @printf(ptr noundef @.str)
store i32 0, ptr %4, align 4
br label %7
7: ; preds = %25, %0
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 50
br i1 %9, label %10, label %28
10: ; preds = %7
%11 = call signext i8 (...) @getchar()
store i8 %11, ptr %2, align 1
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 10
br i1 %13, label %14, label %19
14: ; preds = %10
%15 = load i8, ptr %2, align 1
%16 = load i32, ptr %4, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 %17
store i8 %15, ptr %18, align 1
br label %28
19: ; preds = %10
%20 = load i8, ptr %2, align 1
%21 = call signext i8 @toupper(i8 noundef signext %20)
%22 = load i32, ptr %4, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 %23
store i8 %21, ptr %24, align 1
br label %25
25: ; preds = %19
%26 = load i32, ptr %4, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %4, align 4
br label %7, !llvm.loop !6
28: ; preds = %14, %7
%29 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %4, align 4
br label %30
30: ; preds = %50, %28
%31 = load i32, ptr %4, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 %32
%34 = load i8, ptr %33, align 1
store i8 %34, ptr %2, align 1
%35 = sext i8 %34 to i32
%36 = icmp ne i32 %35, 10
br i1 %36, label %37, label %53
37: ; preds = %30
%38 = load i8, ptr %2, align 1
%39 = sext i8 %38 to i32
switch i32 %39, label %46 [
i32 65, label %40
i32 66, label %41
i32 69, label %42
i32 73, label %43
i32 79, label %44
i32 83, label %45
]
40: ; preds = %37
store i8 52, ptr %2, align 1
br label %47
41: ; preds = %37
store i8 56, ptr %2, align 1
br label %47
42: ; preds = %37
store i8 51, ptr %2, align 1
br label %47
43: ; preds = %37
store i8 49, ptr %2, align 1
br label %47
44: ; preds = %37
store i8 48, ptr %2, align 1
br label %47
45: ; preds = %37
store i8 53, ptr %2, align 1
br label %47
46: ; preds = %37
br label %47
47: ; preds = %46, %45, %44, %43, %42, %41, %40
%48 = load i8, ptr %2, align 1
%49 = call i32 @putchar(i8 noundef signext %48)
br label %50
50: ; preds = %47
%51 = load i32, ptr %4, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %4, align 4
br label %30, !llvm.loop !8
53: ; preds = %30
%54 = call i32 @printf(ptr noundef @.str.2)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare signext i8 @getchar(...) #1
declare signext i8 @toupper(i8 noundef signext) #1
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4wr2t0z1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"Enter message: \00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"In B1FF-speak: \00", align 1
@.str.2 = private unnamed_addr constant [10 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 i8, align 1
%3 = alloca [50 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 @printf(ptr noundef @.str)
store i32 0, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 50
br i1 %8, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %24
%10 = call signext i8 (...) @getchar()
store i8 %10, ptr %2, align 1
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 10
br i1 %12, label %13, label %18
13: ; preds = %9
%14 = load i8, ptr %2, align 1
%15 = load i32, ptr %4, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 %16
store i8 %14, ptr %17, align 1
br label %29
18: ; preds = %9
%19 = load i8, ptr %2, align 1
%20 = call signext i8 @toupper(i8 noundef signext %19)
%21 = load i32, ptr %4, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 %22
store i8 %20, ptr %23, align 1
br label %24
24: ; preds = %18
%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 = icmp slt i32 %27, 50
br i1 %28, label %9, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %24
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %0
br label %29
29: ; preds = %.loopexit, %13
%30 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %4, align 4
%31 = load i32, ptr %4, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 %32
%34 = load i8, ptr %33, align 1
store i8 %34, ptr %2, align 1
%35 = sext i8 %34 to i32
%36 = icmp ne i32 %35, 10
br i1 %36, label %.lr.ph1, label %59
.lr.ph1: ; preds = %29
br label %37
37: ; preds = %.lr.ph1, %50
%38 = load i8, ptr %2, align 1
%39 = sext i8 %38 to i32
switch i32 %39, label %46 [
i32 65, label %40
i32 66, label %41
i32 69, label %42
i32 73, label %43
i32 79, label %44
i32 83, label %45
]
40: ; preds = %37
store i8 52, ptr %2, align 1
br label %47
41: ; preds = %37
store i8 56, ptr %2, align 1
br label %47
42: ; preds = %37
store i8 51, ptr %2, align 1
br label %47
43: ; preds = %37
store i8 49, ptr %2, align 1
br label %47
44: ; preds = %37
store i8 48, ptr %2, align 1
br label %47
45: ; preds = %37
store i8 53, ptr %2, align 1
br label %47
46: ; preds = %37
br label %47
47: ; preds = %46, %45, %44, %43, %42, %41, %40
%48 = load i8, ptr %2, align 1
%49 = call i32 @putchar(i8 noundef signext %48)
br label %50
50: ; preds = %47
%51 = load i32, ptr %4, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %4, align 4
%53 = load i32, ptr %4, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 %54
%56 = load i8, ptr %55, align 1
store i8 %56, ptr %2, align 1
%57 = sext i8 %56 to i32
%58 = icmp ne i32 %57, 10
br i1 %58, label %37, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %50
br label %59
59: ; preds = %._crit_edge, %29
%60 = call i32 @printf(ptr noundef @.str.2)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare signext i8 @getchar(...) #1
declare signext i8 @toupper(i8 noundef signext) #1
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpzn5ra7_h.c'
source_filename = "/tmp/tmpzn5ra7_h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @create_shape(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store ptr null, ptr %5, align 8
store ptr null, ptr %6, align 8
%7 = call i64 (...) @__VERIFIER_nondet_int()
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %2
%10 = call i32 @create_list(ptr noundef %5, ptr noundef null)
%11 = load ptr, ptr %5, align 8
%12 = call i32 @create_list(ptr noundef %6, ptr noundef %11)
br label %15
13: ; preds = %2
%14 = call i32 @create_list(ptr noundef %5, ptr noundef null)
br label %15
15: ; preds = %13, %9
%16 = load ptr, ptr %5, align 8
%17 = load ptr, ptr %3, align 8
store ptr %16, ptr %17, align 8
%18 = load ptr, ptr %6, align 8
%19 = load ptr, ptr %4, align 8
store ptr %18, ptr %19, align 8
ret void
}
declare i64 @__VERIFIER_nondet_int(...) #1
declare i32 @create_list(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/tmpzn5ra7_h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @create_shape(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store ptr null, ptr %5, align 8
store ptr null, ptr %6, align 8
%7 = call i64 (...) @__VERIFIER_nondet_int()
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %2
%10 = call i32 @create_list(ptr noundef %5, ptr noundef null)
%11 = load ptr, ptr %5, align 8
%12 = call i32 @create_list(ptr noundef %6, ptr noundef %11)
br label %15
13: ; preds = %2
%14 = call i32 @create_list(ptr noundef %5, ptr noundef null)
br label %15
15: ; preds = %13, %9
%16 = load ptr, ptr %5, align 8
%17 = load ptr, ptr %3, align 8
store ptr %16, ptr %17, align 8
%18 = load ptr, ptr %6, align 8
%19 = load ptr, ptr %4, align 8
store ptr %18, ptr %19, align 8
ret void
}
declare i64 @__VERIFIER_nondet_int(...) #1
declare i32 @create_list(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/tmp365x7hin.c'
source_filename = "/tmp/tmp365x7hin.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"%c%c%c%c%c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca i8, align 1
%4 = alloca i8, align 1
%5 = alloca i8, align 1
%6 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i8 67, ptr %2, align 1
store i8 104, ptr %3, align 1
store i8 105, ptr %4, align 1
store i8 110, ptr %5, align 1
store i8 97, ptr %6, align 1
%7 = load i8, ptr %2, align 1
%8 = sext i8 %7 to i32
%9 = add nsw i32 %8, 4
%10 = trunc i32 %9 to i8
store i8 %10, ptr %2, align 1
%11 = load i8, ptr %3, align 1
%12 = sext i8 %11 to i32
%13 = add nsw i32 %12, 4
%14 = trunc i32 %13 to i8
store i8 %14, ptr %3, align 1
%15 = load i8, ptr %4, align 1
%16 = sext i8 %15 to i32
%17 = add nsw i32 %16, 4
%18 = trunc i32 %17 to i8
store i8 %18, ptr %4, align 1
%19 = load i8, ptr %5, align 1
%20 = sext i8 %19 to i32
%21 = add nsw i32 %20, 4
%22 = trunc i32 %21 to i8
store i8 %22, ptr %5, align 1
%23 = load i8, ptr %6, align 1
%24 = sext i8 %23 to i32
%25 = add nsw i32 %24, 4
%26 = trunc i32 %25 to i8
store i8 %26, ptr %6, align 1
%27 = load i8, ptr %2, align 1
%28 = load i8, ptr %3, align 1
%29 = load i8, ptr %4, align 1
%30 = load i8, ptr %5, align 1
%31 = load i8, ptr %6, align 1
%32 = call i32 @printf(ptr noundef @.str, i8 noundef signext %27, i8 noundef signext %28, i8 noundef signext %29, i8 noundef signext %30, i8 noundef signext %31)
ret i32 0
}
declare i32 @printf(ptr noundef, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp365x7hin.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"%c%c%c%c%c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca i8, align 1
%4 = alloca i8, align 1
%5 = alloca i8, align 1
%6 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i8 67, ptr %2, align 1
store i8 104, ptr %3, align 1
store i8 105, ptr %4, align 1
store i8 110, ptr %5, align 1
store i8 97, ptr %6, align 1
%7 = load i8, ptr %2, align 1
%8 = sext i8 %7 to i32
%9 = add nsw i32 %8, 4
%10 = trunc i32 %9 to i8
store i8 %10, ptr %2, align 1
%11 = load i8, ptr %3, align 1
%12 = sext i8 %11 to i32
%13 = add nsw i32 %12, 4
%14 = trunc i32 %13 to i8
store i8 %14, ptr %3, align 1
%15 = load i8, ptr %4, align 1
%16 = sext i8 %15 to i32
%17 = add nsw i32 %16, 4
%18 = trunc i32 %17 to i8
store i8 %18, ptr %4, align 1
%19 = load i8, ptr %5, align 1
%20 = sext i8 %19 to i32
%21 = add nsw i32 %20, 4
%22 = trunc i32 %21 to i8
store i8 %22, ptr %5, align 1
%23 = load i8, ptr %6, align 1
%24 = sext i8 %23 to i32
%25 = add nsw i32 %24, 4
%26 = trunc i32 %25 to i8
store i8 %26, ptr %6, align 1
%27 = load i8, ptr %2, align 1
%28 = load i8, ptr %3, align 1
%29 = load i8, ptr %4, align 1
%30 = load i8, ptr %5, align 1
%31 = load i8, ptr %6, align 1
%32 = call i32 @printf(ptr noundef @.str, i8 noundef signext %27, i8 noundef signext %28, i8 noundef signext %29, i8 noundef signext %30, i8 noundef signext %31)
ret i32 0
}
declare i32 @printf(ptr noundef, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdzxva7o3.c'
source_filename = "/tmp/tmpdzxva7o3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" %c\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c" %lf\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"%0.1lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [12 x [12 x double]], align 16
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i8, align 1
store i32 0, ptr %1, align 4
store double 0.000000e+00, ptr %3, align 8
store double 0.000000e+00, ptr %4, align 8
%9 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %8)
store i32 0, ptr %5, align 4
br label %10
10: ; preds = %46, %0
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %11, 12
br i1 %12, label %13, label %49
13: ; preds = %10
store i32 0, ptr %6, align 4
br label %14
14: ; preds = %42, %13
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %15, 12
br i1 %16, label %17, label %45
17: ; preds = %14
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [12 x [12 x double]], ptr %2, i64 0, i64 %19
%21 = load i32, ptr %6, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [12 x double], ptr %20, i64 0, i64 %22
%24 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %23)
%25 = load i32, ptr %6, align 4
%26 = load i32, ptr %5, align 4
%27 = sub nsw i32 11, %26
%28 = icmp sgt i32 %25, %27
br i1 %28, label %29, label %41
29: ; preds = %17
%30 = load i32, ptr %5, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [12 x [12 x double]], ptr %2, i64 0, i64 %31
%33 = load i32, ptr %6, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [12 x double], ptr %32, i64 0, i64 %34
%36 = load double, ptr %35, align 8
%37 = load double, ptr %3, align 8
%38 = fadd double %37, %36
store double %38, ptr %3, align 8
%39 = load double, ptr %4, align 8
%40 = fadd double %39, 1.000000e+00
store double %40, ptr %4, align 8
br label %41
41: ; preds = %29, %17
br label %42
42: ; preds = %41
%43 = load i32, ptr %6, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %6, align 4
br label %14, !llvm.loop !6
45: ; preds = %14
br label %46
46: ; preds = %45
%47 = load i32, ptr %5, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %5, align 4
br label %10, !llvm.loop !8
49: ; preds = %10
%50 = load i8, ptr %8, align 1
%51 = sext i8 %50 to i32
switch i32 %51, label %60 [
i32 83, label %52
i32 77, label %55
]
52: ; preds = %49
%53 = load double, ptr %3, align 8
%54 = call i32 @printf(ptr noundef @.str.2, double noundef %53)
br label %60
55: ; preds = %49
%56 = load double, ptr %3, align 8
%57 = load double, ptr %4, align 8
%58 = fdiv double %56, %57
%59 = call i32 @printf(ptr noundef @.str.2, double noundef %58)
br label %60
60: ; preds = %49, %55, %52
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @printf(ptr 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/tmpdzxva7o3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" %c\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c" %lf\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"%0.1lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [12 x [12 x double]], align 16
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i8, align 1
store i32 0, ptr %1, align 4
store double 0.000000e+00, ptr %3, align 8
store double 0.000000e+00, ptr %4, align 8
%9 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %8)
store i32 0, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp slt i32 %10, 12
br i1 %11, label %.lr.ph2, label %51
.lr.ph2: ; preds = %0
br label %12
12: ; preds = %.lr.ph2, %46
store i32 0, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%14 = icmp slt i32 %13, 12
br i1 %14, label %.lr.ph, label %45
.lr.ph: ; preds = %12
br label %15
15: ; preds = %.lr.ph, %40
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [12 x [12 x double]], ptr %2, i64 0, i64 %17
%19 = load i32, ptr %6, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [12 x double], ptr %18, i64 0, i64 %20
%22 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %21)
%23 = load i32, ptr %6, align 4
%24 = load i32, ptr %5, align 4
%25 = sub nsw i32 11, %24
%26 = icmp sgt i32 %23, %25
br i1 %26, label %27, label %39
27: ; preds = %15
%28 = load i32, ptr %5, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [12 x [12 x double]], ptr %2, i64 0, i64 %29
%31 = load i32, ptr %6, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [12 x double], ptr %30, i64 0, i64 %32
%34 = load double, ptr %33, align 8
%35 = load double, ptr %3, align 8
%36 = fadd double %35, %34
store double %36, ptr %3, align 8
%37 = load double, ptr %4, align 8
%38 = fadd double %37, 1.000000e+00
store double %38, ptr %4, align 8
br label %39
39: ; preds = %27, %15
br label %40
40: ; preds = %39
%41 = load i32, ptr %6, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %6, align 4
%43 = load i32, ptr %6, align 4
%44 = icmp slt i32 %43, 12
br i1 %44, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %40
br label %45
45: ; preds = %._crit_edge, %12
br label %46
46: ; preds = %45
%47 = load i32, ptr %5, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %5, align 4
%49 = load i32, ptr %5, align 4
%50 = icmp slt i32 %49, 12
br i1 %50, label %12, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %46
br label %51
51: ; preds = %._crit_edge3, %0
%52 = load i8, ptr %8, align 1
%53 = sext i8 %52 to i32
switch i32 %53, label %62 [
i32 83, label %54
i32 77, label %57
]
54: ; preds = %51
%55 = load double, ptr %3, align 8
%56 = call i32 @printf(ptr noundef @.str.2, double noundef %55)
br label %62
57: ; preds = %51
%58 = load double, ptr %3, align 8
%59 = load double, ptr %4, align 8
%60 = fdiv double %58, %59
%61 = call i32 @printf(ptr noundef @.str.2, double noundef %60)
br label %62
62: ; preds = %57, %54, %51
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @printf(ptr 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/tmpgwc1y9_k.c'
source_filename = "/tmp/tmpgwc1y9_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"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgwc1y9_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"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuz6re24s.c'
source_filename = "/tmp/tmpuz6re24s.c"
target datalayout = "e-m:e-p270: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/tmpuz6re24s.c"
target datalayout = "e-m:e-p270: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/tmpyeepyb2r.c'
source_filename = "/tmp/tmpyeepyb2r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"Please enter 3 numbers separated by spaces > \00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%d%d%d\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"%d is the median\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp sgt i32 %7, %8
br i1 %9, label %10, label %14
10: ; preds = %0
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %22, label %14
14: ; preds = %10, %0
%15 = load i32, ptr %2, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %25
18: ; preds = %14
%19 = load i32, ptr %2, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp sgt i32 %19, %20
br i1 %21, label %22, label %25
22: ; preds = %18, %10
%23 = load i32, ptr %2, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %23)
br label %65
25: ; preds = %18, %14
%26 = load i32, ptr %3, align 4
%27 = load i32, ptr %2, align 4
%28 = icmp sgt i32 %26, %27
br i1 %28, label %29, label %33
29: ; preds = %25
%30 = load i32, ptr %3, align 4
%31 = load i32, ptr %4, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %41, label %33
33: ; preds = %29, %25
%34 = load i32, ptr %3, align 4
%35 = load i32, ptr %2, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %44
37: ; preds = %33
%38 = load i32, ptr %3, align 4
%39 = load i32, ptr %4, align 4
%40 = icmp sgt i32 %38, %39
br i1 %40, label %41, label %44
41: ; preds = %37, %29
%42 = load i32, ptr %3, align 4
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %42)
br label %64
44: ; preds = %37, %33
%45 = load i32, ptr %4, align 4
%46 = load i32, ptr %2, align 4
%47 = icmp sgt i32 %45, %46
br i1 %47, label %48, label %52
48: ; preds = %44
%49 = load i32, ptr %4, align 4
%50 = load i32, ptr %3, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %60, label %52
52: ; preds = %48, %44
%53 = load i32, ptr %4, align 4
%54 = load i32, ptr %2, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %56, label %63
56: ; preds = %52
%57 = load i32, ptr %4, align 4
%58 = load i32, ptr %3, align 4
%59 = icmp sgt i32 %57, %58
br i1 %59, label %60, label %63
60: ; preds = %56, %48
%61 = load i32, ptr %4, align 4
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %61)
br label %63
63: ; preds = %60, %56, %52
br label %64
64: ; preds = %63, %41
br label %65
65: ; preds = %64, %22
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(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/tmpyeepyb2r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"Please enter 3 numbers separated by spaces > \00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%d%d%d\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"%d is the median\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp sgt i32 %7, %8
br i1 %9, label %10, label %14
10: ; preds = %0
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %22, label %14
14: ; preds = %10, %0
%15 = load i32, ptr %2, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %25
18: ; preds = %14
%19 = load i32, ptr %2, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp sgt i32 %19, %20
br i1 %21, label %22, label %25
22: ; preds = %18, %10
%23 = load i32, ptr %2, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %23)
br label %65
25: ; preds = %18, %14
%26 = load i32, ptr %3, align 4
%27 = load i32, ptr %2, align 4
%28 = icmp sgt i32 %26, %27
br i1 %28, label %29, label %33
29: ; preds = %25
%30 = load i32, ptr %3, align 4
%31 = load i32, ptr %4, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %41, label %33
33: ; preds = %29, %25
%34 = load i32, ptr %3, align 4
%35 = load i32, ptr %2, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %44
37: ; preds = %33
%38 = load i32, ptr %3, align 4
%39 = load i32, ptr %4, align 4
%40 = icmp sgt i32 %38, %39
br i1 %40, label %41, label %44
41: ; preds = %37, %29
%42 = load i32, ptr %3, align 4
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %42)
br label %64
44: ; preds = %37, %33
%45 = load i32, ptr %4, align 4
%46 = load i32, ptr %2, align 4
%47 = icmp sgt i32 %45, %46
br i1 %47, label %48, label %52
48: ; preds = %44
%49 = load i32, ptr %4, align 4
%50 = load i32, ptr %3, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %60, label %52
52: ; preds = %48, %44
%53 = load i32, ptr %4, align 4
%54 = load i32, ptr %2, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %56, label %63
56: ; preds = %52
%57 = load i32, ptr %4, align 4
%58 = load i32, ptr %3, align 4
%59 = icmp sgt i32 %57, %58
br i1 %59, label %60, label %63
60: ; preds = %56, %48
%61 = load i32, ptr %4, align 4
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %61)
br label %63
63: ; preds = %60, %56, %52
br label %64
64: ; preds = %63, %41
br label %65
65: ; preds = %64, %22
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(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/tmpmyh4wynk.c'
source_filename = "/tmp/tmpmyh4wynk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @parse_ff_past(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 %3, align 8
%7 = load ptr, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i64 @strcspn(ptr noundef %7, ptr noundef %8)
%10 = add nsw i64 %9, 1
%11 = call i32 @parse_ff(ptr noundef %5, i64 noundef %10)
ret i32 %11
}
declare i32 @parse_ff(ptr noundef, i64 noundef) #1
declare i64 @strcspn(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/tmpmyh4wynk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @parse_ff_past(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 %3, align 8
%7 = load ptr, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i64 @strcspn(ptr noundef %7, ptr noundef %8)
%10 = add nsw i64 %9, 1
%11 = call i32 @parse_ff(ptr noundef %5, i64 noundef %10)
ret i32 %11
}
declare i32 @parse_ff(ptr noundef, i64 noundef) #1
declare i64 @strcspn(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/tmprqoxbn3i.c'
source_filename = "/tmp/tmprqoxbn3i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = 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/headius/jato/refs/heads/master/test/unit/vm/parse-test.c\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"32\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_parse_bytes() #0 {
%1 = call i32 @parse_long(ptr noundef @.str.1)
%2 = call i32 @__assert_int_equals(ptr noundef @.str, i32 noundef 13, i32 noundef 32, i32 noundef %1)
ret void
}
declare i32 @__assert_int_equals(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @parse_long(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprqoxbn3i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = 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/headius/jato/refs/heads/master/test/unit/vm/parse-test.c\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"32\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_parse_bytes() #0 {
%1 = call i32 @parse_long(ptr noundef @.str.1)
%2 = call i32 @__assert_int_equals(ptr noundef @.str, i32 noundef 13, i32 noundef 32, i32 noundef %1)
ret void
}
declare i32 @__assert_int_equals(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @parse_long(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphf8jxhee.c'
source_filename = "/tmp/tmphf8jxhee.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
%4 = call i32 @foo(ptr noundef %2, ptr noundef %3)
ret i32 0
}
declare i32 @foo(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/tmphf8jxhee.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
%4 = call i32 @foo(ptr noundef %2, ptr noundef %3)
ret i32 0
}
declare i32 @foo(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/tmpdh7_h760.c'
source_filename = "/tmp/tmpdh7_h760.c"
target datalayout = "e-m:e-p270: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 [21 x i8] c"pure virtual called\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @__cxa_pure_virtual() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdh7_h760.c"
target datalayout = "e-m:e-p270: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 [21 x i8] c"pure virtual called\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @__cxa_pure_virtual() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpd007gdj1.c'
source_filename = "/tmp/tmpd007gdj1.c"
target datalayout = "e-m:e-p270: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 [326 x i8] c"syntax: psxdump -d <device> -f <output file>\0A\0A -d <device> give device name\0A -f <output file> file to put track dump\0A -F force the program to proceed even if it's not a PSX disk\0A -T test type of disc (PSX or non) and report it as exit code\0A -h display this banner :-)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd007gdj1.c"
target datalayout = "e-m:e-p270: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 [326 x i8] c"syntax: psxdump -d <device> -f <output file>\0A\0A -d <device> give device name\0A -f <output file> file to put track dump\0A -F force the program to proceed even if it's not a PSX disk\0A -T test type of disc (PSX or non) and report it as exit code\0A -h display this banner :-)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps1octhyq.c'
source_filename = "/tmp/tmps1octhyq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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",$\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @num_of_exprs_in_str(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca [2048 x i8], align 16
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 2048, i1 false)
%6 = getelementptr inbounds [2048 x i8], ptr %5, i64 0, i64 0
%7 = load ptr, ptr %2, align 8
%8 = call i32 @strcpy(ptr noundef %6, ptr noundef %7)
%9 = getelementptr inbounds [2048 x i8], ptr %5, i64 0, i64 0
%10 = call ptr @strtok(ptr noundef %9, ptr noundef @.str)
store ptr %10, ptr %4, align 8
br label %11
11: ; preds = %17, %1
%12 = load ptr, ptr %4, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %19
14: ; preds = %11
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %3, align 4
br label %17
17: ; preds = %14
%18 = call ptr @strtok(ptr noundef null, ptr noundef @.str)
store ptr %18, ptr %4, align 8
br label %11, !llvm.loop !6
19: ; preds = %11
%20 = load i32, ptr %3, align 4
ret i32 %20
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare ptr @strtok(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: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps1octhyq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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",$\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @num_of_exprs_in_str(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca [2048 x i8], align 16
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 2048, i1 false)
%6 = getelementptr inbounds [2048 x i8], ptr %5, i64 0, i64 0
%7 = load ptr, ptr %2, align 8
%8 = call i32 @strcpy(ptr noundef %6, ptr noundef %7)
%9 = getelementptr inbounds [2048 x i8], ptr %5, i64 0, i64 0
%10 = call ptr @strtok(ptr noundef %9, ptr noundef @.str)
store ptr %10, ptr %4, align 8
%11 = load ptr, ptr %4, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %.lr.ph, label %20
.lr.ph: ; preds = %1
br label %13
13: ; preds = %.lr.ph, %16
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %3, align 4
br label %16
16: ; preds = %13
%17 = call ptr @strtok(ptr noundef null, ptr noundef @.str)
store ptr %17, ptr %4, align 8
%18 = load ptr, ptr %4, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %20
20: ; preds = %._crit_edge, %1
%21 = load i32, ptr %3, align 4
ret i32 %21
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare ptr @strtok(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: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpt2r74dn4.c'
source_filename = "/tmp/tmpt2r74dn4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Usage: %s [FILE]\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [6 x i8] c"%d,%d\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"NULL\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 i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = 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
store i32 0, ptr %8, align 4
store i32 32, ptr %9, align 4
%15 = load i32, ptr %9, align 4
%16 = zext i32 %15 to i64
%17 = mul i64 %16, 4
%18 = trunc i64 %17 to i32
%19 = call ptr @malloc(i32 noundef %18)
store ptr %19, ptr %13, align 8
%20 = load i32, ptr %4, align 4
%21 = icmp ne i32 %20, 2
br i1 %21, label %22, label %27
22: ; preds = %2
%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 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %25)
store i32 1, ptr %3, align 4
br label %158
27: ; preds = %2
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i32 1
store ptr %29, ptr %5, align 8
%30 = load ptr, ptr %29, align 8
%31 = call ptr @fopen(ptr noundef %30, ptr noundef @.str.1)
store ptr %31, ptr %6, align 8
br label %32
32: ; preds = %154, %27
%33 = load ptr, ptr %6, align 8
%34 = call i64 @fscanf(ptr noundef %33, ptr noundef @.str.2, ptr noundef %7)
%35 = load i64, ptr @EOF, align 8
%36 = icmp ne i64 %34, %35
br i1 %36, label %37, label %155
37: ; preds = %32
%38 = load i32, ptr %8, align 4
%39 = load i32, ptr %9, align 4
%40 = icmp eq i32 %38, %39
br i1 %40, label %41, label %52
41: ; preds = %37
%42 = load i32, ptr %9, align 4
%43 = udiv i32 %42, 2
%44 = load i32, ptr %9, align 4
%45 = add i32 %44, %43
store i32 %45, ptr %9, align 4
%46 = load ptr, ptr %13, align 8
%47 = load i32, ptr %9, align 4
%48 = zext i32 %47 to i64
%49 = mul i64 %48, 4
%50 = trunc i64 %49 to i32
%51 = call ptr @realloc(ptr noundef %46, i32 noundef %50)
store ptr %51, ptr %13, align 8
br label %52
52: ; preds = %41, %37
%53 = load i32, ptr %7, align 4
%54 = load ptr, ptr %13, align 8
%55 = load i32, ptr %8, align 4
%56 = add i32 %55, 1
store i32 %56, ptr %8, align 4
%57 = zext i32 %55 to i64
%58 = getelementptr inbounds i32, ptr %54, i64 %57
store i32 %53, ptr %58, align 4
%59 = load ptr, ptr %6, align 8
%60 = call signext i8 @getc(ptr noundef %59)
store i8 %60, ptr %14, align 1
%61 = sext i8 %60 to i32
%62 = icmp eq i32 %61, 59
br i1 %62, label %63, label %154
63: ; preds = %52
%64 = load ptr, ptr %6, align 8
%65 = call i64 @fscanf(ptr noundef %64, ptr noundef @.str.2, ptr noundef %7)
store i32 0, ptr %12, align 4
store i32 0, ptr %10, align 4
br label %66
66: ; preds = %144, %63
%67 = load i32, ptr %10, align 4
%68 = load i32, ptr %8, align 4
%69 = sub i32 %68, 1
%70 = icmp ult i32 %67, %69
br i1 %70, label %71, label %80
71: ; preds = %66
%72 = load ptr, ptr %13, align 8
%73 = load i32, ptr %10, align 4
%74 = zext i32 %73 to i64
%75 = getelementptr inbounds i32, ptr %72, i64 %74
%76 = load i32, ptr %75, align 4
%77 = mul i32 2, %76
%78 = load i32, ptr %7, align 4
%79 = icmp ult i32 %77, %78
br label %80
80: ; preds = %71, %66
%81 = phi i1 [ false, %66 ], [ %79, %71 ]
br i1 %81, label %82, label %147
82: ; preds = %80
%83 = load i32, ptr %8, align 4
%84 = sub i32 %83, 1
store i32 %84, ptr %11, align 4
br label %85
85: ; preds = %140, %82
%86 = load i32, ptr %11, align 4
%87 = load i32, ptr %10, align 4
%88 = icmp ugt i32 %86, %87
br i1 %88, label %89, label %103
89: ; preds = %85
%90 = load ptr, ptr %13, align 8
%91 = load i32, ptr %10, align 4
%92 = zext i32 %91 to i64
%93 = getelementptr inbounds i32, ptr %90, i64 %92
%94 = load i32, ptr %93, align 4
%95 = load ptr, ptr %13, align 8
%96 = load i32, ptr %11, align 4
%97 = zext i32 %96 to i64
%98 = getelementptr inbounds i32, ptr %95, i64 %97
%99 = load i32, ptr %98, align 4
%100 = add i32 %94, %99
%101 = load i32, ptr %7, align 4
%102 = icmp uge i32 %100, %101
br label %103
103: ; preds = %89, %85
%104 = phi i1 [ false, %85 ], [ %102, %89 ]
br i1 %104, label %105, label %143
105: ; preds = %103
%106 = load i32, ptr %8, align 4
%107 = add i32 %106, -1
store i32 %107, ptr %8, align 4
%108 = load ptr, ptr %13, align 8
%109 = load i32, ptr %10, align 4
%110 = zext i32 %109 to i64
%111 = getelementptr inbounds i32, ptr %108, i64 %110
%112 = load i32, ptr %111, align 4
%113 = load ptr, ptr %13, align 8
%114 = load i32, ptr %11, align 4
%115 = zext i32 %114 to i64
%116 = getelementptr inbounds i32, ptr %113, i64 %115
%117 = load i32, ptr %116, align 4
%118 = add i32 %112, %117
%119 = load i32, ptr %7, align 4
%120 = icmp eq i32 %118, %119
br i1 %120, label %121, label %139
121: ; preds = %105
%122 = load i32, ptr %12, align 4
%123 = add i32 %122, 1
store i32 %123, ptr %12, align 4
%124 = icmp ugt i32 %122, 0
br i1 %124, label %125, label %127
125: ; preds = %121
%126 = call i32 @putchar(i8 noundef signext 59)
br label %127
127: ; preds = %125, %121
%128 = load ptr, ptr %13, align 8
%129 = load i32, ptr %10, align 4
%130 = zext i32 %129 to i64
%131 = getelementptr inbounds i32, ptr %128, i64 %130
%132 = load i32, ptr %131, align 4
%133 = load ptr, ptr %13, align 8
%134 = load i32, ptr %11, align 4
%135 = zext i32 %134 to i64
%136 = getelementptr inbounds i32, ptr %133, i64 %135
%137 = load i32, ptr %136, align 4
%138 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %132, i32 noundef %137)
br label %139
139: ; preds = %127, %105
br label %140
140: ; preds = %139
%141 = load i32, ptr %11, align 4
%142 = add i32 %141, -1
store i32 %142, ptr %11, align 4
br label %85, !llvm.loop !6
143: ; preds = %103
br label %144
144: ; preds = %143
%145 = load i32, ptr %10, align 4
%146 = add i32 %145, 1
store i32 %146, ptr %10, align 4
br label %66, !llvm.loop !8
147: ; preds = %80
%148 = load i32, ptr %12, align 4
%149 = icmp eq i32 %148, 0
br i1 %149, label %150, label %152
150: ; preds = %147
%151 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %152
152: ; preds = %150, %147
%153 = call i32 @putchar(i8 noundef signext 10)
store i32 0, ptr %8, align 4
br label %154
154: ; preds = %152, %52
br label %32, !llvm.loop !9
155: ; preds = %32
%156 = load ptr, ptr %13, align 8
%157 = call i32 @free(ptr noundef %156)
store i32 0, ptr %3, align 4
br label %158
158: ; preds = %155, %22
%159 = load i32, ptr %3, align 4
ret i32 %159
}
declare ptr @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare signext i8 @getc(ptr noundef) #1
declare i32 @putchar(i8 noundef signext) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt2r74dn4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Usage: %s [FILE]\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [6 x i8] c"%d,%d\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"NULL\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 i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = 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
store i32 0, ptr %8, align 4
store i32 32, ptr %9, align 4
%15 = load i32, ptr %9, align 4
%16 = zext i32 %15 to i64
%17 = mul i64 %16, 4
%18 = trunc i64 %17 to i32
%19 = call ptr @malloc(i32 noundef %18)
store ptr %19, ptr %13, align 8
%20 = load i32, ptr %4, align 4
%21 = icmp ne i32 %20, 2
br i1 %21, label %22, label %27
22: ; preds = %2
%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 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %25)
store i32 1, ptr %3, align 4
br label %161
27: ; preds = %2
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i32 1
store ptr %29, ptr %5, align 8
%30 = load ptr, ptr %29, align 8
%31 = call ptr @fopen(ptr noundef %30, ptr noundef @.str.1)
store ptr %31, ptr %6, align 8
%32 = load ptr, ptr %6, align 8
%33 = call i64 @fscanf(ptr noundef %32, ptr noundef @.str.2, ptr noundef %7)
%34 = load i64, ptr @EOF, align 8
%35 = icmp ne i64 %33, %34
br i1 %35, label %.lr.ph, label %158
.lr.ph: ; preds = %27
br label %36
36: ; preds = %.lr.ph, %153
%37 = load i32, ptr %8, align 4
%38 = load i32, ptr %9, align 4
%39 = icmp eq i32 %37, %38
br i1 %39, label %40, label %51
40: ; preds = %36
%41 = load i32, ptr %9, align 4
%42 = udiv i32 %41, 2
%43 = load i32, ptr %9, align 4
%44 = add i32 %43, %42
store i32 %44, ptr %9, align 4
%45 = load ptr, ptr %13, align 8
%46 = load i32, ptr %9, align 4
%47 = zext i32 %46 to i64
%48 = mul i64 %47, 4
%49 = trunc i64 %48 to i32
%50 = call ptr @realloc(ptr noundef %45, i32 noundef %49)
store ptr %50, ptr %13, align 8
br label %51
51: ; preds = %40, %36
%52 = load i32, ptr %7, align 4
%53 = load ptr, ptr %13, align 8
%54 = load i32, ptr %8, align 4
%55 = add i32 %54, 1
store i32 %55, ptr %8, align 4
%56 = zext i32 %54 to i64
%57 = getelementptr inbounds i32, ptr %53, i64 %56
store i32 %52, ptr %57, align 4
%58 = load ptr, ptr %6, align 8
%59 = call signext i8 @getc(ptr noundef %58)
store i8 %59, ptr %14, align 1
%60 = sext i8 %59 to i32
%61 = icmp eq i32 %60, 59
br i1 %61, label %62, label %153
62: ; preds = %51
%63 = load ptr, ptr %6, align 8
%64 = call i64 @fscanf(ptr noundef %63, ptr noundef @.str.2, ptr noundef %7)
store i32 0, ptr %12, align 4
store i32 0, ptr %10, align 4
br label %65
65: ; preds = %143, %62
%66 = load i32, ptr %10, align 4
%67 = load i32, ptr %8, align 4
%68 = sub i32 %67, 1
%69 = icmp ult i32 %66, %68
br i1 %69, label %70, label %79
70: ; preds = %65
%71 = load ptr, ptr %13, align 8
%72 = load i32, ptr %10, align 4
%73 = zext i32 %72 to i64
%74 = getelementptr inbounds i32, ptr %71, i64 %73
%75 = load i32, ptr %74, align 4
%76 = mul i32 2, %75
%77 = load i32, ptr %7, align 4
%78 = icmp ult i32 %76, %77
br label %79
79: ; preds = %70, %65
%80 = phi i1 [ false, %65 ], [ %78, %70 ]
br i1 %80, label %81, label %146
81: ; preds = %79
%82 = load i32, ptr %8, align 4
%83 = sub i32 %82, 1
store i32 %83, ptr %11, align 4
br label %84
84: ; preds = %139, %81
%85 = load i32, ptr %11, align 4
%86 = load i32, ptr %10, align 4
%87 = icmp ugt i32 %85, %86
br i1 %87, label %88, label %102
88: ; preds = %84
%89 = load ptr, ptr %13, align 8
%90 = load i32, ptr %10, align 4
%91 = zext i32 %90 to i64
%92 = getelementptr inbounds i32, ptr %89, i64 %91
%93 = load i32, ptr %92, align 4
%94 = load ptr, ptr %13, align 8
%95 = load i32, ptr %11, align 4
%96 = zext i32 %95 to i64
%97 = getelementptr inbounds i32, ptr %94, i64 %96
%98 = load i32, ptr %97, align 4
%99 = add i32 %93, %98
%100 = load i32, ptr %7, align 4
%101 = icmp uge i32 %99, %100
br label %102
102: ; preds = %88, %84
%103 = phi i1 [ false, %84 ], [ %101, %88 ]
br i1 %103, label %104, label %142
104: ; preds = %102
%105 = load i32, ptr %8, align 4
%106 = add i32 %105, -1
store i32 %106, ptr %8, align 4
%107 = load ptr, ptr %13, align 8
%108 = load i32, ptr %10, align 4
%109 = zext i32 %108 to i64
%110 = getelementptr inbounds i32, ptr %107, i64 %109
%111 = load i32, ptr %110, align 4
%112 = load ptr, ptr %13, align 8
%113 = load i32, ptr %11, align 4
%114 = zext i32 %113 to i64
%115 = getelementptr inbounds i32, ptr %112, i64 %114
%116 = load i32, ptr %115, align 4
%117 = add i32 %111, %116
%118 = load i32, ptr %7, align 4
%119 = icmp eq i32 %117, %118
br i1 %119, label %120, label %138
120: ; preds = %104
%121 = load i32, ptr %12, align 4
%122 = add i32 %121, 1
store i32 %122, ptr %12, align 4
%123 = icmp ugt i32 %121, 0
br i1 %123, label %124, label %126
124: ; preds = %120
%125 = call i32 @putchar(i8 noundef signext 59)
br label %126
126: ; preds = %124, %120
%127 = load ptr, ptr %13, align 8
%128 = load i32, ptr %10, align 4
%129 = zext i32 %128 to i64
%130 = getelementptr inbounds i32, ptr %127, i64 %129
%131 = load i32, ptr %130, align 4
%132 = load ptr, ptr %13, align 8
%133 = load i32, ptr %11, align 4
%134 = zext i32 %133 to i64
%135 = getelementptr inbounds i32, ptr %132, i64 %134
%136 = load i32, ptr %135, align 4
%137 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %131, i32 noundef %136)
br label %138
138: ; preds = %126, %104
br label %139
139: ; preds = %138
%140 = load i32, ptr %11, align 4
%141 = add i32 %140, -1
store i32 %141, ptr %11, align 4
br label %84, !llvm.loop !6
142: ; preds = %102
br label %143
143: ; preds = %142
%144 = load i32, ptr %10, align 4
%145 = add i32 %144, 1
store i32 %145, ptr %10, align 4
br label %65, !llvm.loop !8
146: ; preds = %79
%147 = load i32, ptr %12, align 4
%148 = icmp eq i32 %147, 0
br i1 %148, label %149, label %151
149: ; preds = %146
%150 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %151
151: ; preds = %149, %146
%152 = call i32 @putchar(i8 noundef signext 10)
store i32 0, ptr %8, align 4
br label %153
153: ; preds = %151, %51
%154 = load ptr, ptr %6, align 8
%155 = call i64 @fscanf(ptr noundef %154, ptr noundef @.str.2, ptr noundef %7)
%156 = load i64, ptr @EOF, align 8
%157 = icmp ne i64 %155, %156
br i1 %157, label %36, label %._crit_edge, !llvm.loop !9
._crit_edge: ; preds = %153
br label %158
158: ; preds = %._crit_edge, %27
%159 = load ptr, ptr %13, align 8
%160 = call i32 @free(ptr noundef %159)
store i32 0, ptr %3, align 4
br label %161
161: ; preds = %158, %22
%162 = load i32, ptr %3, align 4
ret i32 %162
}
declare ptr @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare signext i8 @getc(ptr noundef) #1
declare i32 @putchar(i8 noundef signext) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpwr3zhr8c.c'
source_filename = "/tmp/tmpwr3zhr8c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tubeWrite(i8 noundef zeroext %0, i8 noundef zeroext %1) #0 {
%3 = alloca i8, align 1
%4 = alloca i8, align 1
store i8 %0, ptr %3, align 1
store i8 %1, ptr %4, align 1
%5 = load i8, ptr %3, align 1
%6 = load i8, ptr %4, align 1
%7 = call i32 @tubeCmd(i32 noundef 128, i8 noundef zeroext %5, i8 noundef zeroext %6)
ret void
}
declare i32 @tubeCmd(i32 noundef, i8 noundef zeroext, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwr3zhr8c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tubeWrite(i8 noundef zeroext %0, i8 noundef zeroext %1) #0 {
%3 = alloca i8, align 1
%4 = alloca i8, align 1
store i8 %0, ptr %3, align 1
store i8 %1, ptr %4, align 1
%5 = load i8, ptr %3, align 1
%6 = load i8, ptr %4, align 1
%7 = call i32 @tubeCmd(i32 noundef 128, i8 noundef zeroext %5, i8 noundef zeroext %6)
ret void
}
declare i32 @tubeCmd(i32 noundef, i8 noundef zeroext, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1k02ev5o.c'
source_filename = "/tmp/tmp1k02ev5o.c"
target datalayout = "e-m:e-p270: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/tmp1k02ev5o.c"
target datalayout = "e-m:e-p270: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/tmpqdc90tig.c'
source_filename = "/tmp/tmpqdc90tig.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"The original string is: \00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"reversing...\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"The reversed string is: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call ptr @malloc(i32 noundef 100)
store ptr %6, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
store ptr %7, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %8
8: ; preds = %17, %0
%9 = load i32, ptr %5, align 4
%10 = icmp slt i32 %9, 99
br i1 %10, label %11, label %15
11: ; preds = %8
%12 = call signext i8 (...) @getchar()
store i8 %12, ptr %3, align 1
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 10
br label %15
15: ; preds = %11, %8
%16 = phi i1 [ false, %8 ], [ %14, %11 ]
br i1 %16, label %17, label %23
17: ; preds = %15
%18 = load i8, ptr %3, align 1
%19 = load ptr, ptr %2, align 8
%20 = getelementptr inbounds i8, ptr %19, i32 1
store ptr %20, ptr %2, align 8
store i8 %18, ptr %19, align 1
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %5, align 4
br label %8, !llvm.loop !6
23: ; preds = %15
%24 = load ptr, ptr %2, align 8
store i8 0, ptr %24, align 1
%25 = call i32 @printf(ptr noundef @.str)
%26 = load ptr, ptr %4, align 8
%27 = call i32 @printStr(ptr noundef %26)
%28 = call i32 @printf(ptr noundef @.str.1)
%29 = load ptr, ptr %4, align 8
%30 = call i32 @reverse(ptr noundef %29)
%31 = call i32 @printf(ptr noundef @.str.2)
%32 = load ptr, ptr %4, align 8
%33 = call i32 @printStr(ptr noundef %32)
%34 = load i32, ptr %1, align 4
ret i32 %34
}
declare ptr @malloc(i32 noundef) #1
declare signext i8 @getchar(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @printStr(ptr noundef) #1
declare i32 @reverse(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpqdc90tig.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"The original string is: \00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"reversing...\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"The reversed string is: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call ptr @malloc(i32 noundef 100)
store ptr %6, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
store ptr %7, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %8
8: ; preds = %17, %0
%9 = load i32, ptr %5, align 4
%10 = icmp slt i32 %9, 99
br i1 %10, label %11, label %15
11: ; preds = %8
%12 = call signext i8 (...) @getchar()
store i8 %12, ptr %3, align 1
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 10
br label %15
15: ; preds = %11, %8
%16 = phi i1 [ false, %8 ], [ %14, %11 ]
br i1 %16, label %17, label %23
17: ; preds = %15
%18 = load i8, ptr %3, align 1
%19 = load ptr, ptr %2, align 8
%20 = getelementptr inbounds i8, ptr %19, i32 1
store ptr %20, ptr %2, align 8
store i8 %18, ptr %19, align 1
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %5, align 4
br label %8, !llvm.loop !6
23: ; preds = %15
%24 = load ptr, ptr %2, align 8
store i8 0, ptr %24, align 1
%25 = call i32 @printf(ptr noundef @.str)
%26 = load ptr, ptr %4, align 8
%27 = call i32 @printStr(ptr noundef %26)
%28 = call i32 @printf(ptr noundef @.str.1)
%29 = load ptr, ptr %4, align 8
%30 = call i32 @reverse(ptr noundef %29)
%31 = call i32 @printf(ptr noundef @.str.2)
%32 = load ptr, ptr %4, align 8
%33 = call i32 @printStr(ptr noundef %32)
%34 = load i32, ptr %1, align 4
ret i32 %34
}
declare ptr @malloc(i32 noundef) #1
declare signext i8 @getchar(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @printStr(ptr noundef) #1
declare i32 @reverse(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp59cbelm9.c'
source_filename = "/tmp/tmp59cbelm9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@_SC_NPROCESSORS_ONLN = 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/tmp59cbelm9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@_SC_NPROCESSORS_ONLN = 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/tmpt0l9fh0a.c'
source_filename = "/tmp/tmpt0l9fh0a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @elf_get_interp(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = load ptr, ptr %4, align 8
%7 = call i32 @elf_interp(i32 noundef %5, i32 noundef 0, ptr noundef %6)
ret i32 %7
}
declare i32 @elf_interp(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt0l9fh0a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @elf_get_interp(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = load ptr, ptr %4, align 8
%7 = call i32 @elf_interp(i32 noundef %5, i32 noundef 0, ptr noundef %6)
ret i32 %7
}
declare i32 @elf_interp(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpph0ojley.c'
source_filename = "/tmp/tmpph0ojley.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strcat(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
br label %5
5: ; preds = %10, %2
%6 = load ptr, ptr %3, align 8
%7 = load i8, ptr %6, align 1
%8 = sext i8 %7 to i32
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %5
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %3, align 8
br label %5, !llvm.loop !6
13: ; preds = %5
br label %14
14: ; preds = %19, %13
%15 = load ptr, ptr %4, align 8
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %25
19: ; preds = %14
%20 = load ptr, ptr %4, align 8
%21 = getelementptr inbounds i8, ptr %20, i32 1
store ptr %21, ptr %4, align 8
%22 = load i8, ptr %20, align 1
%23 = load ptr, ptr %3, align 8
%24 = getelementptr inbounds i8, ptr %23, i32 1
store ptr %24, ptr %3, align 8
store i8 %22, ptr %23, align 1
br label %14, !llvm.loop !8
25: ; preds = %14
%26 = load ptr, ptr %3, align 8
store i8 0, ptr %26, align 1
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpph0ojley.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strcat(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 i8, ptr %5, align 1
%7 = sext i8 %6 to i32
%8 = icmp ne i32 %7, 0
br i1 %8, label %.lr.ph, label %16
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %9
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds i8, ptr %10, i32 1
store ptr %11, ptr %3, align 8
%12 = load ptr, ptr %3, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br i1 %15, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %16
16: ; preds = %._crit_edge, %2
%17 = load ptr, ptr %4, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %19, 0
br i1 %20, label %.lr.ph2, label %31
.lr.ph2: ; preds = %16
br label %21
21: ; preds = %.lr.ph2, %21
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 1
store ptr %23, ptr %4, align 8
%24 = load i8, ptr %22, align 1
%25 = load ptr, ptr %3, align 8
%26 = getelementptr inbounds i8, ptr %25, i32 1
store ptr %26, ptr %3, align 8
store i8 %24, ptr %25, align 1
%27 = load ptr, ptr %4, align 8
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp ne i32 %29, 0
br i1 %30, label %21, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %21
br label %31
31: ; preds = %._crit_edge3, %16
%32 = load ptr, ptr %3, align 8
store i8 0, ptr %32, align 1
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpiqveh8jy.c'
source_filename = "/tmp/tmpiqveh8jy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test11() #0 {
%1 = alloca ptr, align 8
%2 = call i64 @alloca(i32 noundef 4)
%3 = inttoptr i64 %2 to ptr
store ptr %3, ptr %1, align 8
%4 = load ptr, ptr %1, align 8
%5 = call i32 @test11a(ptr noundef %4)
ret void
}
declare i64 @alloca(i32 noundef) #1
declare i32 @test11a(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiqveh8jy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test11() #0 {
%1 = alloca ptr, align 8
%2 = call i64 @alloca(i32 noundef 4)
%3 = inttoptr i64 %2 to ptr
store ptr %3, ptr %1, align 8
%4 = load ptr, ptr %1, align 8
%5 = call i32 @test11a(ptr noundef %4)
ret void
}
declare i64 @alloca(i32 noundef) #1
declare i32 @test11a(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprwnbdlue.c'
source_filename = "/tmp/tmprwnbdlue.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"XDG_CONFIG_HOME\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"HOME\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c".config/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @get_user_config_folder(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%12 = load ptr, ptr %4, align 8
store ptr %12, ptr %7, align 8
%13 = call ptr @getenv(ptr noundef @.str)
store ptr %13, ptr %8, align 8
store i32 0, ptr %9, align 4
%14 = load ptr, ptr %8, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %25, label %16
16: ; preds = %3
%17 = call ptr @getenv(ptr noundef @.str.1)
store ptr %17, ptr %8, align 8
%18 = load ptr, ptr %8, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %23, label %20
20: ; preds = %16
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 0
store i8 0, ptr %22, align 1
br label %84
23: ; preds = %16
%24 = call i32 @strlen(ptr noundef @.str.2)
store i32 %24, ptr %9, align 4
br label %25
25: ; preds = %23, %3
%26 = load ptr, ptr %8, align 8
%27 = call i32 @strlen(ptr noundef %26)
store i32 %27, ptr %10, align 4
%28 = load ptr, ptr %6, align 8
%29 = call i32 @strlen(ptr noundef %28)
store i32 %29, ptr %11, align 4
%30 = load i32, ptr %10, align 4
%31 = add i32 %30, 1
%32 = load i32, ptr %9, align 4
%33 = add i32 %31, %32
%34 = load i32, ptr %11, align 4
%35 = add i32 %33, %34
%36 = add i32 %35, 1
%37 = add i32 %36, 1
%38 = load i32, ptr %5, align 4
%39 = icmp ugt i32 %37, %38
br i1 %39, label %40, label %43
40: ; preds = %25
%41 = load ptr, ptr %4, align 8
%42 = getelementptr inbounds i8, ptr %41, i64 0
store i8 0, ptr %42, align 1
br label %84
43: ; preds = %25
%44 = load ptr, ptr %4, align 8
%45 = load ptr, ptr %8, align 8
%46 = load i32, ptr %10, align 4
%47 = call i32 @memcpy(ptr noundef %44, ptr noundef %45, i32 noundef %46)
%48 = load i32, ptr %10, align 4
%49 = load ptr, ptr %4, align 8
%50 = zext i32 %48 to i64
%51 = getelementptr inbounds i8, ptr %49, i64 %50
store ptr %51, ptr %4, align 8
%52 = load ptr, ptr %4, align 8
store i8 47, ptr %52, align 1
%53 = load ptr, ptr %4, align 8
%54 = getelementptr inbounds i8, ptr %53, i32 1
store ptr %54, ptr %4, align 8
%55 = load i32, ptr %9, align 4
%56 = icmp ne i32 %55, 0
br i1 %56, label %57, label %68
57: ; preds = %43
%58 = load ptr, ptr %4, align 8
%59 = load i32, ptr %9, align 4
%60 = call i32 @memcpy(ptr noundef %58, ptr noundef @.str.2, i32 noundef %59)
%61 = load i32, ptr %9, align 4
%62 = load ptr, ptr %4, align 8
%63 = zext i32 %61 to i64
%64 = getelementptr inbounds i8, ptr %62, i64 %63
store ptr %64, ptr %4, align 8
%65 = load ptr, ptr %4, align 8
store i8 0, ptr %65, align 1
%66 = load ptr, ptr %7, align 8
%67 = call i32 @mkdir(ptr noundef %66, i32 noundef 493)
br label %68
68: ; preds = %57, %43
%69 = load ptr, ptr %4, align 8
%70 = load ptr, ptr %6, align 8
%71 = load i32, ptr %11, align 4
%72 = call i32 @memcpy(ptr noundef %69, ptr noundef %70, i32 noundef %71)
%73 = load i32, ptr %11, align 4
%74 = load ptr, ptr %4, align 8
%75 = zext i32 %73 to i64
%76 = getelementptr inbounds i8, ptr %74, i64 %75
store ptr %76, ptr %4, align 8
%77 = load ptr, ptr %4, align 8
store i8 0, ptr %77, align 1
%78 = load ptr, ptr %7, align 8
%79 = call i32 @mkdir(ptr noundef %78, i32 noundef 493)
%80 = load ptr, ptr %4, align 8
store i8 47, ptr %80, align 1
%81 = load ptr, ptr %4, align 8
%82 = getelementptr inbounds i8, ptr %81, i32 1
store ptr %82, ptr %4, align 8
%83 = load ptr, ptr %4, align 8
store i8 0, ptr %83, align 1
br label %84
84: ; preds = %68, %40, %20
ret void
}
declare ptr @getenv(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @mkdir(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/tmprwnbdlue.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"XDG_CONFIG_HOME\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"HOME\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c".config/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @get_user_config_folder(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%12 = load ptr, ptr %4, align 8
store ptr %12, ptr %7, align 8
%13 = call ptr @getenv(ptr noundef @.str)
store ptr %13, ptr %8, align 8
store i32 0, ptr %9, align 4
%14 = load ptr, ptr %8, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %25, label %16
16: ; preds = %3
%17 = call ptr @getenv(ptr noundef @.str.1)
store ptr %17, ptr %8, align 8
%18 = load ptr, ptr %8, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %23, label %20
20: ; preds = %16
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 0
store i8 0, ptr %22, align 1
br label %84
23: ; preds = %16
%24 = call i32 @strlen(ptr noundef @.str.2)
store i32 %24, ptr %9, align 4
br label %25
25: ; preds = %23, %3
%26 = load ptr, ptr %8, align 8
%27 = call i32 @strlen(ptr noundef %26)
store i32 %27, ptr %10, align 4
%28 = load ptr, ptr %6, align 8
%29 = call i32 @strlen(ptr noundef %28)
store i32 %29, ptr %11, align 4
%30 = load i32, ptr %10, align 4
%31 = add i32 %30, 1
%32 = load i32, ptr %9, align 4
%33 = add i32 %31, %32
%34 = load i32, ptr %11, align 4
%35 = add i32 %33, %34
%36 = add i32 %35, 1
%37 = add i32 %36, 1
%38 = load i32, ptr %5, align 4
%39 = icmp ugt i32 %37, %38
br i1 %39, label %40, label %43
40: ; preds = %25
%41 = load ptr, ptr %4, align 8
%42 = getelementptr inbounds i8, ptr %41, i64 0
store i8 0, ptr %42, align 1
br label %84
43: ; preds = %25
%44 = load ptr, ptr %4, align 8
%45 = load ptr, ptr %8, align 8
%46 = load i32, ptr %10, align 4
%47 = call i32 @memcpy(ptr noundef %44, ptr noundef %45, i32 noundef %46)
%48 = load i32, ptr %10, align 4
%49 = load ptr, ptr %4, align 8
%50 = zext i32 %48 to i64
%51 = getelementptr inbounds i8, ptr %49, i64 %50
store ptr %51, ptr %4, align 8
%52 = load ptr, ptr %4, align 8
store i8 47, ptr %52, align 1
%53 = load ptr, ptr %4, align 8
%54 = getelementptr inbounds i8, ptr %53, i32 1
store ptr %54, ptr %4, align 8
%55 = load i32, ptr %9, align 4
%56 = icmp ne i32 %55, 0
br i1 %56, label %57, label %68
57: ; preds = %43
%58 = load ptr, ptr %4, align 8
%59 = load i32, ptr %9, align 4
%60 = call i32 @memcpy(ptr noundef %58, ptr noundef @.str.2, i32 noundef %59)
%61 = load i32, ptr %9, align 4
%62 = load ptr, ptr %4, align 8
%63 = zext i32 %61 to i64
%64 = getelementptr inbounds i8, ptr %62, i64 %63
store ptr %64, ptr %4, align 8
%65 = load ptr, ptr %4, align 8
store i8 0, ptr %65, align 1
%66 = load ptr, ptr %7, align 8
%67 = call i32 @mkdir(ptr noundef %66, i32 noundef 493)
br label %68
68: ; preds = %57, %43
%69 = load ptr, ptr %4, align 8
%70 = load ptr, ptr %6, align 8
%71 = load i32, ptr %11, align 4
%72 = call i32 @memcpy(ptr noundef %69, ptr noundef %70, i32 noundef %71)
%73 = load i32, ptr %11, align 4
%74 = load ptr, ptr %4, align 8
%75 = zext i32 %73 to i64
%76 = getelementptr inbounds i8, ptr %74, i64 %75
store ptr %76, ptr %4, align 8
%77 = load ptr, ptr %4, align 8
store i8 0, ptr %77, align 1
%78 = load ptr, ptr %7, align 8
%79 = call i32 @mkdir(ptr noundef %78, i32 noundef 493)
%80 = load ptr, ptr %4, align 8
store i8 47, ptr %80, align 1
%81 = load ptr, ptr %4, align 8
%82 = getelementptr inbounds i8, ptr %81, i32 1
store ptr %82, ptr %4, align 8
%83 = load ptr, ptr %4, align 8
store i8 0, ptr %83, align 1
br label %84
84: ; preds = %68, %40, %20
ret void
}
declare ptr @getenv(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @mkdir(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/tmp96qn00q_.c'
source_filename = "/tmp/tmp96qn00q_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%10d\09\09\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_row(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %19, %2
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 5
br i1 %8, label %9, label %22
9: ; preds = %6
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [5 x i32], ptr %10, i64 %12
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [5 x i32], ptr %13, i64 0, i64 %15
%17 = load i32, ptr %16, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %17)
br label %19
19: ; preds = %9
%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 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp96qn00q_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%10d\09\09\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_row(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = icmp slt i32 %6, 5
br i1 %7, label %.lr.ph, label %23
.lr.ph: ; preds = %2
br label %8
8: ; preds = %.lr.ph, %18
%9 = load ptr, ptr %4, align 8
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [5 x i32], ptr %9, i64 %11
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [5 x i32], ptr %12, i64 0, i64 %14
%16 = load i32, ptr %15, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %16)
br label %18
18: ; preds = %8
%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 = icmp slt i32 %21, 5
br i1 %22, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %23
23: ; preds = %._crit_edge, %2
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpriof5273.c'
source_filename = "/tmp/tmpriof5273.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"out of memory\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cbhsort(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%15 = load ptr, ptr %5, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %17, label %26
17: ; preds = %4
%18 = load i32, ptr %6, align 4
%19 = icmp sge i32 %18, 0
br i1 %19, label %20, label %26
20: ; preds = %17
%21 = load i32, ptr %7, align 4
%22 = icmp sgt i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %20
%24 = load ptr, ptr %8, align 8
%25 = icmp ne ptr %24, null
br label %26
26: ; preds = %23, %20, %17, %4
%27 = phi i1 [ false, %20 ], [ false, %17 ], [ false, %4 ], [ %25, %23 ]
%28 = zext i1 %27 to i32
%29 = call i32 @assert(i32 noundef %28)
%30 = load ptr, ptr %5, align 8
store ptr %30, ptr %9, align 8
%31 = load i32, ptr %6, align 4
%32 = add nsw i32 %31, -1
store i32 %32, ptr %6, align 4
%33 = load i32, ptr %6, align 4
%34 = sdiv i32 %33, 2
%35 = add nsw i32 %34, 1
store i32 %35, ptr %12, align 4
%36 = load i32, ptr %6, align 4
store i32 %36, ptr %11, align 4
%37 = load i32, ptr %7, align 4
%38 = call ptr @malloc(i32 noundef %37)
store ptr %38, ptr %10, align 8
%39 = icmp ne ptr %38, null
br i1 %39, label %40, label %42
40: ; preds = %26
%41 = load ptr, ptr %10, align 8
br label %44
42: ; preds = %26
%43 = call ptr @cbmyfatal(ptr noundef @.str)
br label %44
44: ; preds = %42, %40
%45 = phi ptr [ %41, %40 ], [ %43, %42 ]
br label %46
46: ; preds = %136, %44
%47 = load i32, ptr %12, align 4
%48 = icmp sgt i32 %47, 0
br i1 %48, label %49, label %137
49: ; preds = %46
%50 = load i32, ptr %12, align 4
%51 = add nsw i32 %50, -1
store i32 %51, ptr %12, align 4
%52 = load i32, ptr %12, align 4
store i32 %52, ptr %13, align 4
%53 = load i32, ptr %13, align 4
%54 = mul nsw i32 2, %53
store i32 %54, ptr %14, align 4
br label %55
55: ; preds = %100, %49
%56 = load i32, ptr %14, align 4
%57 = load i32, ptr %11, align 4
%58 = icmp sle i32 %56, %57
br i1 %58, label %59, label %136
59: ; preds = %55
%60 = load i32, ptr %14, align 4
%61 = load i32, ptr %11, align 4
%62 = icmp slt i32 %60, %61
br i1 %62, label %63, label %83
63: ; preds = %59
%64 = load ptr, ptr %8, align 8
%65 = load ptr, ptr %9, align 8
%66 = load i32, ptr %14, align 4
%67 = add nsw i32 %66, 1
%68 = load i32, ptr %7, align 4
%69 = mul nsw i32 %67, %68
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, ptr %65, i64 %70
%72 = load ptr, ptr %9, align 8
%73 = load i32, ptr %14, align 4
%74 = load i32, ptr %7, align 4
%75 = mul nsw i32 %73, %74
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8, ptr %72, i64 %76
%78 = call i32 %64(ptr noundef %71, ptr noundef %77)
%79 = icmp sgt i32 %78, 0
br i1 %79, label %80, label %83
80: ; preds = %63
%81 = load i32, ptr %14, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %14, align 4
br label %83
83: ; preds = %80, %63, %59
%84 = load ptr, ptr %8, align 8
%85 = load ptr, ptr %9, align 8
%86 = load i32, ptr %13, align 4
%87 = load i32, ptr %7, align 4
%88 = mul nsw i32 %86, %87
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i8, ptr %85, i64 %89
%91 = load ptr, ptr %9, align 8
%92 = load i32, ptr %14, align 4
%93 = load i32, ptr %7, align 4
%94 = mul nsw i32 %92, %93
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i8, ptr %91, i64 %95
%97 = call i32 %84(ptr noundef %90, ptr noundef %96)
%98 = icmp sge i32 %97, 0
br i1 %98, label %99, label %100
99: ; preds = %83
br label %136
100: ; preds = %83
%101 = load ptr, ptr %10, align 8
%102 = load ptr, ptr %9, align 8
%103 = load i32, ptr %13, align 4
%104 = load i32, ptr %7, align 4
%105 = mul nsw i32 %103, %104
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i8, ptr %102, i64 %106
%108 = load i32, ptr %7, align 4
%109 = call i32 @memcpy(ptr noundef %101, ptr noundef %107, i32 noundef %108)
%110 = load ptr, ptr %9, align 8
%111 = load i32, ptr %13, align 4
%112 = load i32, ptr %7, align 4
%113 = mul nsw i32 %111, %112
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds i8, ptr %110, i64 %114
%116 = load ptr, ptr %9, align 8
%117 = load i32, ptr %14, align 4
%118 = load i32, ptr %7, align 4
%119 = mul nsw i32 %117, %118
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds i8, ptr %116, i64 %120
%122 = load i32, ptr %7, align 4
%123 = call i32 @memcpy(ptr noundef %115, ptr noundef %121, i32 noundef %122)
%124 = load ptr, ptr %9, align 8
%125 = load i32, ptr %14, align 4
%126 = load i32, ptr %7, align 4
%127 = mul nsw i32 %125, %126
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds i8, ptr %124, i64 %128
%130 = load ptr, ptr %10, align 8
%131 = load i32, ptr %7, align 4
%132 = call i32 @memcpy(ptr noundef %129, ptr noundef %130, i32 noundef %131)
%133 = load i32, ptr %14, align 4
store i32 %133, ptr %13, align 4
%134 = load i32, ptr %13, align 4
%135 = mul nsw i32 2, %134
store i32 %135, ptr %14, align 4
br label %55, !llvm.loop !6
136: ; preds = %99, %55
br label %46, !llvm.loop !8
137: ; preds = %46
br label %138
138: ; preds = %250, %137
%139 = load i32, ptr %11, align 4
%140 = icmp sgt i32 %139, 0
br i1 %140, label %141, label %251
141: ; preds = %138
%142 = load ptr, ptr %10, align 8
%143 = load ptr, ptr %9, align 8
%144 = load i32, ptr %7, align 4
%145 = call i32 @memcpy(ptr noundef %142, ptr noundef %143, i32 noundef %144)
%146 = load ptr, ptr %9, align 8
%147 = load ptr, ptr %9, align 8
%148 = load i32, ptr %11, align 4
%149 = load i32, ptr %7, align 4
%150 = mul nsw i32 %148, %149
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds i8, ptr %147, i64 %151
%153 = load i32, ptr %7, align 4
%154 = call i32 @memcpy(ptr noundef %146, ptr noundef %152, i32 noundef %153)
%155 = load ptr, ptr %9, align 8
%156 = load i32, ptr %11, align 4
%157 = load i32, ptr %7, align 4
%158 = mul nsw i32 %156, %157
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds i8, ptr %155, i64 %159
%161 = load ptr, ptr %10, align 8
%162 = load i32, ptr %7, align 4
%163 = call i32 @memcpy(ptr noundef %160, ptr noundef %161, i32 noundef %162)
%164 = load i32, ptr %11, align 4
%165 = add nsw i32 %164, -1
store i32 %165, ptr %11, align 4
%166 = load i32, ptr %12, align 4
store i32 %166, ptr %13, align 4
%167 = load i32, ptr %13, align 4
%168 = mul nsw i32 2, %167
store i32 %168, ptr %14, align 4
br label %169
169: ; preds = %214, %141
%170 = load i32, ptr %14, align 4
%171 = load i32, ptr %11, align 4
%172 = icmp sle i32 %170, %171
br i1 %172, label %173, label %250
173: ; preds = %169
%174 = load i32, ptr %14, align 4
%175 = load i32, ptr %11, align 4
%176 = icmp slt i32 %174, %175
br i1 %176, label %177, label %197
177: ; preds = %173
%178 = load ptr, ptr %8, align 8
%179 = load ptr, ptr %9, align 8
%180 = load i32, ptr %14, align 4
%181 = add nsw i32 %180, 1
%182 = load i32, ptr %7, align 4
%183 = mul nsw i32 %181, %182
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds i8, ptr %179, i64 %184
%186 = load ptr, ptr %9, align 8
%187 = load i32, ptr %14, align 4
%188 = load i32, ptr %7, align 4
%189 = mul nsw i32 %187, %188
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds i8, ptr %186, i64 %190
%192 = call i32 %178(ptr noundef %185, ptr noundef %191)
%193 = icmp sgt i32 %192, 0
br i1 %193, label %194, label %197
194: ; preds = %177
%195 = load i32, ptr %14, align 4
%196 = add nsw i32 %195, 1
store i32 %196, ptr %14, align 4
br label %197
197: ; preds = %194, %177, %173
%198 = load ptr, ptr %8, align 8
%199 = load ptr, ptr %9, align 8
%200 = load i32, ptr %13, align 4
%201 = load i32, ptr %7, align 4
%202 = mul nsw i32 %200, %201
%203 = sext i32 %202 to i64
%204 = getelementptr inbounds i8, ptr %199, i64 %203
%205 = load ptr, ptr %9, align 8
%206 = load i32, ptr %14, align 4
%207 = load i32, ptr %7, align 4
%208 = mul nsw i32 %206, %207
%209 = sext i32 %208 to i64
%210 = getelementptr inbounds i8, ptr %205, i64 %209
%211 = call i32 %198(ptr noundef %204, ptr noundef %210)
%212 = icmp sge i32 %211, 0
br i1 %212, label %213, label %214
213: ; preds = %197
br label %250
214: ; preds = %197
%215 = load ptr, ptr %10, align 8
%216 = load ptr, ptr %9, align 8
%217 = load i32, ptr %13, align 4
%218 = load i32, ptr %7, align 4
%219 = mul nsw i32 %217, %218
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds i8, ptr %216, i64 %220
%222 = load i32, ptr %7, align 4
%223 = call i32 @memcpy(ptr noundef %215, ptr noundef %221, i32 noundef %222)
%224 = load ptr, ptr %9, align 8
%225 = load i32, ptr %13, align 4
%226 = load i32, ptr %7, align 4
%227 = mul nsw i32 %225, %226
%228 = sext i32 %227 to i64
%229 = getelementptr inbounds i8, ptr %224, i64 %228
%230 = load ptr, ptr %9, align 8
%231 = load i32, ptr %14, align 4
%232 = load i32, ptr %7, align 4
%233 = mul nsw i32 %231, %232
%234 = sext i32 %233 to i64
%235 = getelementptr inbounds i8, ptr %230, i64 %234
%236 = load i32, ptr %7, align 4
%237 = call i32 @memcpy(ptr noundef %229, ptr noundef %235, i32 noundef %236)
%238 = load ptr, ptr %9, align 8
%239 = load i32, ptr %14, align 4
%240 = load i32, ptr %7, align 4
%241 = mul nsw i32 %239, %240
%242 = sext i32 %241 to i64
%243 = getelementptr inbounds i8, ptr %238, i64 %242
%244 = load ptr, ptr %10, align 8
%245 = load i32, ptr %7, align 4
%246 = call i32 @memcpy(ptr noundef %243, ptr noundef %244, i32 noundef %245)
%247 = load i32, ptr %14, align 4
store i32 %247, ptr %13, align 4
%248 = load i32, ptr %13, align 4
%249 = mul nsw i32 2, %248
store i32 %249, ptr %14, align 4
br label %169, !llvm.loop !9
250: ; preds = %213, %169
br label %138, !llvm.loop !10
251: ; preds = %138
%252 = load ptr, ptr %10, align 8
%253 = call i32 @free(ptr noundef %252)
ret void
}
declare i32 @assert(i32 noundef) #1
declare ptr @malloc(i32 noundef) #1
declare ptr @cbmyfatal(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!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/tmpriof5273.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"out of memory\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cbhsort(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%15 = load ptr, ptr %5, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %17, label %26
17: ; preds = %4
%18 = load i32, ptr %6, align 4
%19 = icmp sge i32 %18, 0
br i1 %19, label %20, label %26
20: ; preds = %17
%21 = load i32, ptr %7, align 4
%22 = icmp sgt i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %20
%24 = load ptr, ptr %8, align 8
%25 = icmp ne ptr %24, null
br label %26
26: ; preds = %23, %20, %17, %4
%27 = phi i1 [ false, %20 ], [ false, %17 ], [ false, %4 ], [ %25, %23 ]
%28 = zext i1 %27 to i32
%29 = call i32 @assert(i32 noundef %28)
%30 = load ptr, ptr %5, align 8
store ptr %30, ptr %9, align 8
%31 = load i32, ptr %6, align 4
%32 = add nsw i32 %31, -1
store i32 %32, ptr %6, align 4
%33 = load i32, ptr %6, align 4
%34 = sdiv i32 %33, 2
%35 = add nsw i32 %34, 1
store i32 %35, ptr %12, align 4
%36 = load i32, ptr %6, align 4
store i32 %36, ptr %11, align 4
%37 = load i32, ptr %7, align 4
%38 = call ptr @malloc(i32 noundef %37)
store ptr %38, ptr %10, align 8
%39 = icmp ne ptr %38, null
br i1 %39, label %40, label %42
40: ; preds = %26
%41 = load ptr, ptr %10, align 8
br label %44
42: ; preds = %26
%43 = call ptr @cbmyfatal(ptr noundef @.str)
br label %44
44: ; preds = %42, %40
%45 = phi ptr [ %41, %40 ], [ %43, %42 ]
%46 = load i32, ptr %12, align 4
%47 = icmp sgt i32 %46, 0
br i1 %47, label %.lr.ph2, label %140
.lr.ph2: ; preds = %44
br label %48
48: ; preds = %.lr.ph2, %137
%49 = load i32, ptr %12, align 4
%50 = add nsw i32 %49, -1
store i32 %50, ptr %12, align 4
%51 = load i32, ptr %12, align 4
store i32 %51, ptr %13, align 4
%52 = load i32, ptr %13, align 4
%53 = mul nsw i32 2, %52
store i32 %53, ptr %14, align 4
%54 = load i32, ptr %14, align 4
%55 = load i32, ptr %11, align 4
%56 = icmp sle i32 %54, %55
br i1 %56, label %.lr.ph, label %.loopexit1
.lr.ph: ; preds = %48
br label %57
57: ; preds = %.lr.ph, %98
%58 = load i32, ptr %14, align 4
%59 = load i32, ptr %11, align 4
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %81
61: ; preds = %57
%62 = load ptr, ptr %8, align 8
%63 = load ptr, ptr %9, align 8
%64 = load i32, ptr %14, align 4
%65 = add nsw i32 %64, 1
%66 = load i32, ptr %7, align 4
%67 = mul nsw i32 %65, %66
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i8, ptr %63, i64 %68
%70 = load ptr, ptr %9, align 8
%71 = load i32, ptr %14, align 4
%72 = load i32, ptr %7, align 4
%73 = mul nsw i32 %71, %72
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i8, ptr %70, i64 %74
%76 = call i32 %62(ptr noundef %69, ptr noundef %75)
%77 = icmp sgt i32 %76, 0
br i1 %77, label %78, label %81
78: ; preds = %61
%79 = load i32, ptr %14, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %14, align 4
br label %81
81: ; preds = %78, %61, %57
%82 = load ptr, ptr %8, align 8
%83 = load ptr, ptr %9, align 8
%84 = load i32, ptr %13, align 4
%85 = load i32, ptr %7, align 4
%86 = mul nsw i32 %84, %85
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i8, ptr %83, i64 %87
%89 = load ptr, ptr %9, align 8
%90 = load i32, ptr %14, align 4
%91 = load i32, ptr %7, align 4
%92 = mul nsw i32 %90, %91
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i8, ptr %89, i64 %93
%95 = call i32 %82(ptr noundef %88, ptr noundef %94)
%96 = icmp sge i32 %95, 0
br i1 %96, label %97, label %98
97: ; preds = %81
br label %137
98: ; preds = %81
%99 = load ptr, ptr %10, align 8
%100 = load ptr, ptr %9, align 8
%101 = load i32, ptr %13, align 4
%102 = load i32, ptr %7, align 4
%103 = mul nsw i32 %101, %102
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds i8, ptr %100, i64 %104
%106 = load i32, ptr %7, align 4
%107 = call i32 @memcpy(ptr noundef %99, ptr noundef %105, i32 noundef %106)
%108 = load ptr, ptr %9, align 8
%109 = load i32, ptr %13, align 4
%110 = load i32, ptr %7, align 4
%111 = mul nsw i32 %109, %110
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds i8, ptr %108, i64 %112
%114 = load ptr, ptr %9, align 8
%115 = load i32, ptr %14, align 4
%116 = load i32, ptr %7, align 4
%117 = mul nsw i32 %115, %116
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds i8, ptr %114, i64 %118
%120 = load i32, ptr %7, align 4
%121 = call i32 @memcpy(ptr noundef %113, ptr noundef %119, i32 noundef %120)
%122 = load ptr, ptr %9, align 8
%123 = load i32, ptr %14, align 4
%124 = load i32, ptr %7, align 4
%125 = mul nsw i32 %123, %124
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds i8, ptr %122, i64 %126
%128 = load ptr, ptr %10, align 8
%129 = load i32, ptr %7, align 4
%130 = call i32 @memcpy(ptr noundef %127, ptr noundef %128, i32 noundef %129)
%131 = load i32, ptr %14, align 4
store i32 %131, ptr %13, align 4
%132 = load i32, ptr %13, align 4
%133 = mul nsw i32 2, %132
store i32 %133, ptr %14, align 4
%134 = load i32, ptr %14, align 4
%135 = load i32, ptr %11, align 4
%136 = icmp sle i32 %134, %135
br i1 %136, label %57, label %..loopexit1_crit_edge, !llvm.loop !6
..loopexit1_crit_edge: ; preds = %98
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %48
br label %137
137: ; preds = %.loopexit1, %97
%138 = load i32, ptr %12, align 4
%139 = icmp sgt i32 %138, 0
br i1 %139, label %48, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %137
br label %140
140: ; preds = %._crit_edge, %44
%141 = load i32, ptr %11, align 4
%142 = icmp sgt i32 %141, 0
br i1 %142, label %.lr.ph6, label %257
.lr.ph6: ; preds = %140
br label %143
143: ; preds = %.lr.ph6, %254
%144 = load ptr, ptr %10, align 8
%145 = load ptr, ptr %9, align 8
%146 = load i32, ptr %7, align 4
%147 = call i32 @memcpy(ptr noundef %144, ptr noundef %145, i32 noundef %146)
%148 = load ptr, ptr %9, align 8
%149 = load ptr, ptr %9, align 8
%150 = load i32, ptr %11, align 4
%151 = load i32, ptr %7, align 4
%152 = mul nsw i32 %150, %151
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds i8, ptr %149, i64 %153
%155 = load i32, ptr %7, align 4
%156 = call i32 @memcpy(ptr noundef %148, ptr noundef %154, i32 noundef %155)
%157 = load ptr, ptr %9, align 8
%158 = load i32, ptr %11, align 4
%159 = load i32, ptr %7, align 4
%160 = mul nsw i32 %158, %159
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds i8, ptr %157, i64 %161
%163 = load ptr, ptr %10, align 8
%164 = load i32, ptr %7, align 4
%165 = call i32 @memcpy(ptr noundef %162, ptr noundef %163, i32 noundef %164)
%166 = load i32, ptr %11, align 4
%167 = add nsw i32 %166, -1
store i32 %167, ptr %11, align 4
%168 = load i32, ptr %12, align 4
store i32 %168, ptr %13, align 4
%169 = load i32, ptr %13, align 4
%170 = mul nsw i32 2, %169
store i32 %170, ptr %14, align 4
%171 = load i32, ptr %14, align 4
%172 = load i32, ptr %11, align 4
%173 = icmp sle i32 %171, %172
br i1 %173, label %.lr.ph4, label %.loopexit
.lr.ph4: ; preds = %143
br label %174
174: ; preds = %.lr.ph4, %215
%175 = load i32, ptr %14, align 4
%176 = load i32, ptr %11, align 4
%177 = icmp slt i32 %175, %176
br i1 %177, label %178, label %198
178: ; preds = %174
%179 = load ptr, ptr %8, align 8
%180 = load ptr, ptr %9, align 8
%181 = load i32, ptr %14, align 4
%182 = add nsw i32 %181, 1
%183 = load i32, ptr %7, align 4
%184 = mul nsw i32 %182, %183
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds i8, ptr %180, i64 %185
%187 = load ptr, ptr %9, align 8
%188 = load i32, ptr %14, align 4
%189 = load i32, ptr %7, align 4
%190 = mul nsw i32 %188, %189
%191 = sext i32 %190 to i64
%192 = getelementptr inbounds i8, ptr %187, i64 %191
%193 = call i32 %179(ptr noundef %186, ptr noundef %192)
%194 = icmp sgt i32 %193, 0
br i1 %194, label %195, label %198
195: ; preds = %178
%196 = load i32, ptr %14, align 4
%197 = add nsw i32 %196, 1
store i32 %197, ptr %14, align 4
br label %198
198: ; preds = %195, %178, %174
%199 = load ptr, ptr %8, align 8
%200 = load ptr, ptr %9, align 8
%201 = load i32, ptr %13, align 4
%202 = load i32, ptr %7, align 4
%203 = mul nsw i32 %201, %202
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds i8, ptr %200, i64 %204
%206 = load ptr, ptr %9, align 8
%207 = load i32, ptr %14, align 4
%208 = load i32, ptr %7, align 4
%209 = mul nsw i32 %207, %208
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds i8, ptr %206, i64 %210
%212 = call i32 %199(ptr noundef %205, ptr noundef %211)
%213 = icmp sge i32 %212, 0
br i1 %213, label %214, label %215
214: ; preds = %198
br label %254
215: ; preds = %198
%216 = load ptr, ptr %10, align 8
%217 = load ptr, ptr %9, align 8
%218 = load i32, ptr %13, align 4
%219 = load i32, ptr %7, align 4
%220 = mul nsw i32 %218, %219
%221 = sext i32 %220 to i64
%222 = getelementptr inbounds i8, ptr %217, i64 %221
%223 = load i32, ptr %7, align 4
%224 = call i32 @memcpy(ptr noundef %216, ptr noundef %222, i32 noundef %223)
%225 = load ptr, ptr %9, align 8
%226 = load i32, ptr %13, align 4
%227 = load i32, ptr %7, align 4
%228 = mul nsw i32 %226, %227
%229 = sext i32 %228 to i64
%230 = getelementptr inbounds i8, ptr %225, i64 %229
%231 = load ptr, ptr %9, align 8
%232 = load i32, ptr %14, align 4
%233 = load i32, ptr %7, align 4
%234 = mul nsw i32 %232, %233
%235 = sext i32 %234 to i64
%236 = getelementptr inbounds i8, ptr %231, i64 %235
%237 = load i32, ptr %7, align 4
%238 = call i32 @memcpy(ptr noundef %230, ptr noundef %236, i32 noundef %237)
%239 = load ptr, ptr %9, align 8
%240 = load i32, ptr %14, align 4
%241 = load i32, ptr %7, align 4
%242 = mul nsw i32 %240, %241
%243 = sext i32 %242 to i64
%244 = getelementptr inbounds i8, ptr %239, i64 %243
%245 = load ptr, ptr %10, align 8
%246 = load i32, ptr %7, align 4
%247 = call i32 @memcpy(ptr noundef %244, ptr noundef %245, i32 noundef %246)
%248 = load i32, ptr %14, align 4
store i32 %248, ptr %13, align 4
%249 = load i32, ptr %13, align 4
%250 = mul nsw i32 2, %249
store i32 %250, ptr %14, align 4
%251 = load i32, ptr %14, align 4
%252 = load i32, ptr %11, align 4
%253 = icmp sle i32 %251, %252
br i1 %253, label %174, label %..loopexit_crit_edge, !llvm.loop !9
..loopexit_crit_edge: ; preds = %215
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %143
br label %254
254: ; preds = %.loopexit, %214
%255 = load i32, ptr %11, align 4
%256 = icmp sgt i32 %255, 0
br i1 %256, label %143, label %._crit_edge7, !llvm.loop !10
._crit_edge7: ; preds = %254
br label %257
257: ; preds = %._crit_edge7, %140
%258 = load ptr, ptr %10, align 8
%259 = call i32 @free(ptr noundef %258)
ret void
}
declare i32 @assert(i32 noundef) #1
declare ptr @malloc(i32 noundef) #1
declare ptr @cbmyfatal(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpg96moe3x.c'
source_filename = "/tmp/tmpg96moe3x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FindKthMin(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
%14 = load i32, ptr %8, align 4
%15 = load i32, ptr %10, align 4
%16 = icmp sgt i32 %14, %15
br i1 %16, label %17, label %24
17: ; preds = %5
%18 = load ptr, ptr %9, align 8
%19 = load i32, ptr %10, align 4
%20 = load ptr, ptr %7, align 8
%21 = load i32, ptr %8, align 4
%22 = load i32, ptr %11, align 4
%23 = call i32 @FindKthMin(ptr noundef %18, i32 noundef %19, ptr noundef %20, i32 noundef %21, i32 noundef %22)
store i32 %23, ptr %6, align 4
br label %89
24: ; preds = %5
%25 = load i32, ptr %8, align 4
%26 = icmp ne i32 %25, 0
br i1 %26, label %34, label %27
27: ; preds = %24
%28 = load ptr, ptr %9, align 8
%29 = load i32, ptr %11, align 4
%30 = sub nsw i32 %29, 1
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %28, i64 %31
%33 = load i32, ptr %32, align 4
store i32 %33, ptr %6, align 4
br label %89
34: ; preds = %24
%35 = load i32, ptr %11, align 4
%36 = icmp eq i32 %35, 1
br i1 %36, label %37, label %45
37: ; preds = %34
%38 = load ptr, ptr %7, align 8
%39 = getelementptr inbounds i32, ptr %38, i64 0
%40 = load i32, ptr %39, align 4
%41 = load ptr, ptr %9, align 8
%42 = getelementptr inbounds i32, ptr %41, i64 0
%43 = load i32, ptr %42, align 4
%44 = call i32 @fmin(i32 noundef %40, i32 noundef %43)
store i32 %44, ptr %6, align 4
br label %89
45: ; preds = %34
%46 = load i32, ptr %8, align 4
%47 = add nsw i32 %46, 1
%48 = ashr i32 %47, 1
store i32 %48, ptr %12, align 4
%49 = load i32, ptr %11, align 4
%50 = load i32, ptr %12, align 4
%51 = sub nsw i32 %49, %50
store i32 %51, ptr %13, align 4
%52 = load ptr, ptr %7, align 8
%53 = load i32, ptr %12, align 4
%54 = sub nsw i32 %53, 1
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i32, ptr %52, i64 %55
%57 = load i32, ptr %56, align 4
%58 = load ptr, ptr %9, align 8
%59 = load i32, ptr %13, align 4
%60 = sub nsw i32 %59, 1
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i32, ptr %58, i64 %61
%63 = load i32, ptr %62, align 4
%64 = icmp sgt i32 %57, %63
br i1 %64, label %65, label %77
65: ; preds = %45
%66 = load ptr, ptr %7, align 8
%67 = load i32, ptr %12, align 4
%68 = load ptr, ptr %9, align 8
%69 = load i32, ptr %13, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i32, ptr %68, i64 %70
%72 = load i32, ptr %10, align 4
%73 = load i32, ptr %13, align 4
%74 = sub nsw i32 %72, %73
%75 = load i32, ptr %12, align 4
%76 = call i32 @FindKthMin(ptr noundef %66, i32 noundef %67, ptr noundef %71, i32 noundef %74, i32 noundef %75)
store i32 %76, ptr %6, align 4
br label %89
77: ; preds = %45
%78 = load ptr, ptr %7, align 8
%79 = load i32, ptr %12, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i32, ptr %78, i64 %80
%82 = load i32, ptr %8, align 4
%83 = load i32, ptr %12, align 4
%84 = sub nsw i32 %82, %83
%85 = load ptr, ptr %9, align 8
%86 = load i32, ptr %13, align 4
%87 = load i32, ptr %13, align 4
%88 = call i32 @FindKthMin(ptr noundef %81, i32 noundef %84, ptr noundef %85, i32 noundef %86, i32 noundef %87)
store i32 %88, ptr %6, align 4
br label %89
89: ; preds = %77, %65, %37, %27, %17
%90 = load i32, ptr %6, align 4
ret i32 %90
}
declare i32 @fmin(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/tmpg96moe3x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FindKthMin(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
%14 = load i32, ptr %8, align 4
%15 = load i32, ptr %10, align 4
%16 = icmp sgt i32 %14, %15
br i1 %16, label %17, label %24
17: ; preds = %5
%18 = load ptr, ptr %9, align 8
%19 = load i32, ptr %10, align 4
%20 = load ptr, ptr %7, align 8
%21 = load i32, ptr %8, align 4
%22 = load i32, ptr %11, align 4
%23 = call i32 @FindKthMin(ptr noundef %18, i32 noundef %19, ptr noundef %20, i32 noundef %21, i32 noundef %22)
store i32 %23, ptr %6, align 4
br label %89
24: ; preds = %5
%25 = load i32, ptr %8, align 4
%26 = icmp ne i32 %25, 0
br i1 %26, label %34, label %27
27: ; preds = %24
%28 = load ptr, ptr %9, align 8
%29 = load i32, ptr %11, align 4
%30 = sub nsw i32 %29, 1
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %28, i64 %31
%33 = load i32, ptr %32, align 4
store i32 %33, ptr %6, align 4
br label %89
34: ; preds = %24
%35 = load i32, ptr %11, align 4
%36 = icmp eq i32 %35, 1
br i1 %36, label %37, label %45
37: ; preds = %34
%38 = load ptr, ptr %7, align 8
%39 = getelementptr inbounds i32, ptr %38, i64 0
%40 = load i32, ptr %39, align 4
%41 = load ptr, ptr %9, align 8
%42 = getelementptr inbounds i32, ptr %41, i64 0
%43 = load i32, ptr %42, align 4
%44 = call i32 @fmin(i32 noundef %40, i32 noundef %43)
store i32 %44, ptr %6, align 4
br label %89
45: ; preds = %34
%46 = load i32, ptr %8, align 4
%47 = add nsw i32 %46, 1
%48 = ashr i32 %47, 1
store i32 %48, ptr %12, align 4
%49 = load i32, ptr %11, align 4
%50 = load i32, ptr %12, align 4
%51 = sub nsw i32 %49, %50
store i32 %51, ptr %13, align 4
%52 = load ptr, ptr %7, align 8
%53 = load i32, ptr %12, align 4
%54 = sub nsw i32 %53, 1
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i32, ptr %52, i64 %55
%57 = load i32, ptr %56, align 4
%58 = load ptr, ptr %9, align 8
%59 = load i32, ptr %13, align 4
%60 = sub nsw i32 %59, 1
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i32, ptr %58, i64 %61
%63 = load i32, ptr %62, align 4
%64 = icmp sgt i32 %57, %63
br i1 %64, label %65, label %77
65: ; preds = %45
%66 = load ptr, ptr %7, align 8
%67 = load i32, ptr %12, align 4
%68 = load ptr, ptr %9, align 8
%69 = load i32, ptr %13, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i32, ptr %68, i64 %70
%72 = load i32, ptr %10, align 4
%73 = load i32, ptr %13, align 4
%74 = sub nsw i32 %72, %73
%75 = load i32, ptr %12, align 4
%76 = call i32 @FindKthMin(ptr noundef %66, i32 noundef %67, ptr noundef %71, i32 noundef %74, i32 noundef %75)
store i32 %76, ptr %6, align 4
br label %89
77: ; preds = %45
%78 = load ptr, ptr %7, align 8
%79 = load i32, ptr %12, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i32, ptr %78, i64 %80
%82 = load i32, ptr %8, align 4
%83 = load i32, ptr %12, align 4
%84 = sub nsw i32 %82, %83
%85 = load ptr, ptr %9, align 8
%86 = load i32, ptr %13, align 4
%87 = load i32, ptr %13, align 4
%88 = call i32 @FindKthMin(ptr noundef %81, i32 noundef %84, ptr noundef %85, i32 noundef %86, i32 noundef %87)
store i32 %88, ptr %6, align 4
br label %89
89: ; preds = %77, %65, %37, %27, %17
%90 = load i32, ptr %6, align 4
ret i32 %90
}
declare i32 @fmin(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/tmp6i_o_mss.c'
source_filename = "/tmp/tmp6i_o_mss.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bbm_com_tuner_read(ptr noundef %0, i8 noundef zeroext %1, i8 noundef zeroext %2, ptr noundef %3, i8 noundef zeroext %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i8, align 1
%8 = alloca i8, align 1
%9 = alloca ptr, align 8
%10 = alloca i8, align 1
%11 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i8 %1, ptr %7, align 1
store i8 %2, ptr %8, align 1
store ptr %3, ptr %9, align 8
store i8 %4, ptr %10, align 1
%12 = load ptr, ptr %6, align 8
%13 = load i8, ptr %7, align 1
%14 = load i8, ptr %8, align 1
%15 = load ptr, ptr %9, align 8
%16 = load i8, ptr %10, align 1
%17 = call i32 @tuner_i2c_read(ptr noundef %12, i8 noundef zeroext %13, i8 noundef zeroext %14, ptr noundef %15, i8 noundef zeroext %16)
store i32 %17, ptr %11, align 4
%18 = load i32, ptr %11, align 4
ret i32 %18
}
declare i32 @tuner_i2c_read(ptr noundef, i8 noundef zeroext, i8 noundef zeroext, ptr noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6i_o_mss.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bbm_com_tuner_read(ptr noundef %0, i8 noundef zeroext %1, i8 noundef zeroext %2, ptr noundef %3, i8 noundef zeroext %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i8, align 1
%8 = alloca i8, align 1
%9 = alloca ptr, align 8
%10 = alloca i8, align 1
%11 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i8 %1, ptr %7, align 1
store i8 %2, ptr %8, align 1
store ptr %3, ptr %9, align 8
store i8 %4, ptr %10, align 1
%12 = load ptr, ptr %6, align 8
%13 = load i8, ptr %7, align 1
%14 = load i8, ptr %8, align 1
%15 = load ptr, ptr %9, align 8
%16 = load i8, ptr %10, align 1
%17 = call i32 @tuner_i2c_read(ptr noundef %12, i8 noundef zeroext %13, i8 noundef zeroext %14, ptr noundef %15, i8 noundef zeroext %16)
store i32 %17, ptr %11, align 4
%18 = load i32, ptr %11, align 4
ret i32 %18
}
declare i32 @tuner_i2c_read(ptr noundef, i8 noundef zeroext, i8 noundef zeroext, ptr noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpext0rbe3.c'
source_filename = "/tmp/tmpext0rbe3.c"
target datalayout = "e-m:e-p270: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.t = private unnamed_addr constant [4 x i32] [i32 -1, i32 -1, i32 -1, i32 -1], align 16
@.str = private unnamed_addr constant [45 x i8] c"GMP ..... Library: %-12s Header: %d.%d.%d\0A\00", align 1
@gmp_version = dso_local global ptr null, align 8
@__GNU_MP_VERSION = dso_local global i32 0, align 4
@__GNU_MP_VERSION_MINOR = dso_local global i32 0, align 4
@__GNU_MP_VERSION_PATCHLEVEL = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [59 x i8] c"MPFR .... Library: %-12s Header: %s (based on %d.%d.%d)\0A\00", align 1
@MPFR_VERSION_STRING = dso_local global ptr null, align 8
@MPFR_VERSION_MAJOR = dso_local global i32 0, align 4
@MPFR_VERSION_MINOR = dso_local global i32 0, align 4
@MPFR_VERSION_PATCHLEVEL = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [19 x i8] c"MPFR patches: %s\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"GMP_LIMB_BITS = %d\0A\00", align 1
@GMP_LIMB_BITS = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [24 x i8] c"GMP_NAIL_BITS = %d\0A\00", align 1
@GMP_NAIL_BITS = dso_local global i64 0, align 8
@.str.5 = private unnamed_addr constant [24 x i8] c"GMP_NUMB_BITS = %d\0A\00", align 1
@GMP_NUMB_BITS = dso_local global i64 0, align 8
@.str.6 = private unnamed_addr constant [24 x i8] c"mp_bits_per_limb = %d\0A\00", align 1
@mp_bits_per_limb = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [24 x i8] c"sizeof(mp_limb_t) = %d\0A\00", align 1
@.str.8 = private unnamed_addr constant [44 x i8] c"Warning! mp_bits_per_limb != GMP_LIMB_BITS\0A\00", align 1
@CHAR_BIT = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [56 x i8] c"Warning! GMP_LIMB_BITS != sizeof(mp_limb_t) * CHAR_BIT\0A\00", align 1
@.str.10 = private unnamed_addr constant [50 x i8] c"The GMP library expects %lu bits in a mp_limb_t.\0A\00", align 1
@.str.11 = private unnamed_addr constant [95 x i8] c"Warning! This is different from GMP_LIMB_BITS!\0ADifferent ABI caused by a GMP library upgrade?\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca [4 x i32], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.t, i64 16, i1 false)
%4 = load ptr, ptr @gmp_version, align 8
%5 = load i32, ptr @__GNU_MP_VERSION, align 4
%6 = load i32, ptr @__GNU_MP_VERSION_MINOR, align 4
%7 = load i32, ptr @__GNU_MP_VERSION_PATCHLEVEL, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7)
%9 = call ptr (...) @mpfr_get_version()
%10 = load ptr, ptr @MPFR_VERSION_STRING, align 8
%11 = load i32, ptr @MPFR_VERSION_MAJOR, align 4
%12 = load i32, ptr @MPFR_VERSION_MINOR, align 4
%13 = load i32, ptr @MPFR_VERSION_PATCHLEVEL, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %9, ptr noundef %10, i32 noundef %11, i32 noundef %12, i32 noundef %13)
%15 = call ptr (...) @mpfr_get_patches()
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %15)
%17 = load i32, ptr @GMP_LIMB_BITS, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %17)
%19 = load i64, ptr @GMP_NAIL_BITS, align 8
%20 = trunc i64 %19 to i32
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %20)
%22 = load i64, ptr @GMP_NUMB_BITS, align 8
%23 = trunc i64 %22 to i32
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %23)
%25 = load i32, ptr @mp_bits_per_limb, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %25)
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef 4)
%28 = load i32, ptr @mp_bits_per_limb, align 4
%29 = load i32, ptr @GMP_LIMB_BITS, align 4
%30 = icmp ne i32 %28, %29
br i1 %30, label %31, label %33
31: ; preds = %0
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %33
33: ; preds = %31, %0
%34 = load i32, ptr @GMP_LIMB_BITS, align 4
%35 = sext i32 %34 to i64
%36 = load i32, ptr @CHAR_BIT, align 4
%37 = sext i32 %36 to i64
%38 = mul i64 4, %37
%39 = icmp ne i64 %35, %38
br i1 %39, label %40, label %42
40: ; preds = %33
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %42
42: ; preds = %40, %33
%43 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 0
%44 = call i64 @mpn_popcount(ptr noundef %43, i32 noundef 1)
store i64 %44, ptr %2, align 8
%45 = load i64, ptr %2, align 8
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i64 noundef %45)
%47 = load i64, ptr %2, align 8
%48 = load i32, ptr @GMP_LIMB_BITS, align 4
%49 = sext i32 %48 to i64
%50 = icmp ne i64 %47, %49
br i1 %50, label %51, label %53
51: ; preds = %42
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
br label %53
53: ; preds = %51, %42
%54 = call i32 (...) @failure_test()
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 ptr @mpfr_get_version(...) #2
declare ptr @mpfr_get_patches(...) #2
declare i64 @mpn_popcount(ptr noundef, i32 noundef) #2
declare i32 @failure_test(...) #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/tmpext0rbe3.c"
target datalayout = "e-m:e-p270: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.t = private unnamed_addr constant [4 x i32] [i32 -1, i32 -1, i32 -1, i32 -1], align 16
@.str = private unnamed_addr constant [45 x i8] c"GMP ..... Library: %-12s Header: %d.%d.%d\0A\00", align 1
@gmp_version = dso_local global ptr null, align 8
@__GNU_MP_VERSION = dso_local global i32 0, align 4
@__GNU_MP_VERSION_MINOR = dso_local global i32 0, align 4
@__GNU_MP_VERSION_PATCHLEVEL = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [59 x i8] c"MPFR .... Library: %-12s Header: %s (based on %d.%d.%d)\0A\00", align 1
@MPFR_VERSION_STRING = dso_local global ptr null, align 8
@MPFR_VERSION_MAJOR = dso_local global i32 0, align 4
@MPFR_VERSION_MINOR = dso_local global i32 0, align 4
@MPFR_VERSION_PATCHLEVEL = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [19 x i8] c"MPFR patches: %s\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"GMP_LIMB_BITS = %d\0A\00", align 1
@GMP_LIMB_BITS = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [24 x i8] c"GMP_NAIL_BITS = %d\0A\00", align 1
@GMP_NAIL_BITS = dso_local global i64 0, align 8
@.str.5 = private unnamed_addr constant [24 x i8] c"GMP_NUMB_BITS = %d\0A\00", align 1
@GMP_NUMB_BITS = dso_local global i64 0, align 8
@.str.6 = private unnamed_addr constant [24 x i8] c"mp_bits_per_limb = %d\0A\00", align 1
@mp_bits_per_limb = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [24 x i8] c"sizeof(mp_limb_t) = %d\0A\00", align 1
@.str.8 = private unnamed_addr constant [44 x i8] c"Warning! mp_bits_per_limb != GMP_LIMB_BITS\0A\00", align 1
@CHAR_BIT = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [56 x i8] c"Warning! GMP_LIMB_BITS != sizeof(mp_limb_t) * CHAR_BIT\0A\00", align 1
@.str.10 = private unnamed_addr constant [50 x i8] c"The GMP library expects %lu bits in a mp_limb_t.\0A\00", align 1
@.str.11 = private unnamed_addr constant [95 x i8] c"Warning! This is different from GMP_LIMB_BITS!\0ADifferent ABI caused by a GMP library upgrade?\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca [4 x i32], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.t, i64 16, i1 false)
%4 = load ptr, ptr @gmp_version, align 8
%5 = load i32, ptr @__GNU_MP_VERSION, align 4
%6 = load i32, ptr @__GNU_MP_VERSION_MINOR, align 4
%7 = load i32, ptr @__GNU_MP_VERSION_PATCHLEVEL, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7)
%9 = call ptr (...) @mpfr_get_version()
%10 = load ptr, ptr @MPFR_VERSION_STRING, align 8
%11 = load i32, ptr @MPFR_VERSION_MAJOR, align 4
%12 = load i32, ptr @MPFR_VERSION_MINOR, align 4
%13 = load i32, ptr @MPFR_VERSION_PATCHLEVEL, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %9, ptr noundef %10, i32 noundef %11, i32 noundef %12, i32 noundef %13)
%15 = call ptr (...) @mpfr_get_patches()
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %15)
%17 = load i32, ptr @GMP_LIMB_BITS, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %17)
%19 = load i64, ptr @GMP_NAIL_BITS, align 8
%20 = trunc i64 %19 to i32
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %20)
%22 = load i64, ptr @GMP_NUMB_BITS, align 8
%23 = trunc i64 %22 to i32
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %23)
%25 = load i32, ptr @mp_bits_per_limb, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %25)
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef 4)
%28 = load i32, ptr @mp_bits_per_limb, align 4
%29 = load i32, ptr @GMP_LIMB_BITS, align 4
%30 = icmp ne i32 %28, %29
br i1 %30, label %31, label %33
31: ; preds = %0
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %33
33: ; preds = %31, %0
%34 = load i32, ptr @GMP_LIMB_BITS, align 4
%35 = sext i32 %34 to i64
%36 = load i32, ptr @CHAR_BIT, align 4
%37 = sext i32 %36 to i64
%38 = mul i64 4, %37
%39 = icmp ne i64 %35, %38
br i1 %39, label %40, label %42
40: ; preds = %33
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %42
42: ; preds = %40, %33
%43 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 0
%44 = call i64 @mpn_popcount(ptr noundef %43, i32 noundef 1)
store i64 %44, ptr %2, align 8
%45 = load i64, ptr %2, align 8
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i64 noundef %45)
%47 = load i64, ptr %2, align 8
%48 = load i32, ptr @GMP_LIMB_BITS, align 4
%49 = sext i32 %48 to i64
%50 = icmp ne i64 %47, %49
br i1 %50, label %51, label %53
51: ; preds = %42
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
br label %53
53: ; preds = %51, %42
%54 = call i32 (...) @failure_test()
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 ptr @mpfr_get_version(...) #2
declare ptr @mpfr_get_patches(...) #2
declare i64 @mpn_popcount(ptr noundef, i32 noundef) #2
declare i32 @failure_test(...) #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/tmp5jbjskh9.c'
source_filename = "/tmp/tmp5jbjskh9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"prova\00", align 1
@.str.1 = private unnamed_addr constant [5 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 [1024 x i32], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %6, align 4
store i32 0, ptr %7, align 4
%9 = call i32 @bmount(ptr noundef @.str)
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 1
%12 = load ptr, ptr %11, align 8
%13 = call i32 @bread(ptr noundef %12, ptr noundef %8)
store i32 0, ptr %6, align 4
br label %14
14: ; preds = %23, %2
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %15, 1024
br i1 %16, label %17, label %26
17: ; preds = %14
%18 = load i32, ptr %6, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [1024 x i32], ptr %8, i64 0, i64 %19
%21 = load i32, ptr %20, align 4
%22 = call i32 @printf(ptr noundef @.str.1, i32 noundef %21)
br label %23
23: ; preds = %17
%24 = load i32, ptr %6, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %6, align 4
br label %14, !llvm.loop !6
26: ; preds = %14
%27 = call i32 @bumount(ptr noundef @.str)
ret i32 1
}
declare i32 @bmount(ptr noundef) #1
declare i32 @bread(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @bumount(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp5jbjskh9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"prova\00", align 1
@.str.1 = private unnamed_addr constant [5 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 [1024 x i32], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %6, align 4
store i32 0, ptr %7, align 4
%9 = call i32 @bmount(ptr noundef @.str)
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 1
%12 = load ptr, ptr %11, align 8
%13 = call i32 @bread(ptr noundef %12, ptr noundef %8)
store i32 0, ptr %6, align 4
%14 = load i32, ptr %6, align 4
%15 = icmp slt i32 %14, 1024
br i1 %15, label %.lr.ph, label %27
.lr.ph: ; preds = %2
br label %16
16: ; preds = %.lr.ph, %22
%17 = load i32, ptr %6, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [1024 x i32], ptr %8, i64 0, i64 %18
%20 = load i32, ptr %19, align 4
%21 = call i32 @printf(ptr noundef @.str.1, i32 noundef %20)
br label %22
22: ; preds = %16
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %6, align 4
%26 = icmp slt i32 %25, 1024
br i1 %26, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %27
27: ; preds = %._crit_edge, %2
%28 = call i32 @bumount(ptr noundef @.str)
ret i32 1
}
declare i32 @bmount(ptr noundef) #1
declare i32 @bread(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @bumount(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpep792k7h.c'
source_filename = "/tmp/tmpep792k7h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"Introduza o n de inteiros a ler: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"Maximo elemento: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"Minimo elemento: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [80 x i32], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %13, %0
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
br label %7
7: ; preds = %4
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 1
br i1 %9, label %13, label %10
10: ; preds = %7
%11 = load i32, ptr %3, align 4
%12 = icmp sge i32 %11, 80
br label %13
13: ; preds = %10, %7
%14 = phi i1 [ true, %7 ], [ %12, %10 ]
br i1 %14, label %4, label %15, !llvm.loop !6
15: ; preds = %13
%16 = getelementptr inbounds [80 x i32], ptr %2, i64 0, i64 0
%17 = load i32, ptr %3, align 4
%18 = call i32 @leVETOR(ptr noundef %16, i32 noundef %17)
%19 = getelementptr inbounds [80 x i32], ptr %2, i64 0, i64 0
%20 = load i32, ptr %3, align 4
%21 = call i32 @maximoVETOR(ptr noundef %19, i32 noundef %20)
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %21)
%23 = getelementptr inbounds [80 x i32], ptr %2, i64 0, i64 0
%24 = load i32, ptr %3, align 4
%25 = call i32 @minimoVETOR(ptr noundef %23, i32 noundef %24)
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %25)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @leVETOR(ptr noundef, i32 noundef) #1
declare i32 @maximoVETOR(ptr noundef, i32 noundef) #1
declare i32 @minimoVETOR(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/tmpep792k7h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"Introduza o n de inteiros a ler: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"Maximo elemento: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"Minimo elemento: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [80 x i32], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %13, %0
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
br label %7
7: ; preds = %4
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 1
br i1 %9, label %13, label %10
10: ; preds = %7
%11 = load i32, ptr %3, align 4
%12 = icmp sge i32 %11, 80
br label %13
13: ; preds = %10, %7
%14 = phi i1 [ true, %7 ], [ %12, %10 ]
br i1 %14, label %4, label %15, !llvm.loop !6
15: ; preds = %13
%16 = getelementptr inbounds [80 x i32], ptr %2, i64 0, i64 0
%17 = load i32, ptr %3, align 4
%18 = call i32 @leVETOR(ptr noundef %16, i32 noundef %17)
%19 = getelementptr inbounds [80 x i32], ptr %2, i64 0, i64 0
%20 = load i32, ptr %3, align 4
%21 = call i32 @maximoVETOR(ptr noundef %19, i32 noundef %20)
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %21)
%23 = getelementptr inbounds [80 x i32], ptr %2, i64 0, i64 0
%24 = load i32, ptr %3, align 4
%25 = call i32 @minimoVETOR(ptr noundef %23, i32 noundef %24)
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %25)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @leVETOR(ptr noundef, i32 noundef) #1
declare i32 @maximoVETOR(ptr noundef, i32 noundef) #1
declare i32 @minimoVETOR(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/tmpjwyetw_4.c'
source_filename = "/tmp/tmpjwyetw_4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"n : \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
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = call i32 @nbsum(i32 noundef %5)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @nbsum(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/tmpjwyetw_4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"n : \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
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = call i32 @nbsum(i32 noundef %5)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @nbsum(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/tmprf1mwosb.c'
source_filename = "/tmp/tmprf1mwosb.c"
target datalayout = "e-m:e-p270: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/tmprf1mwosb.c"
target datalayout = "e-m:e-p270: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/tmpj9urokcl.c'
source_filename = "/tmp/tmpj9urokcl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_start(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = getelementptr inbounds ptr, ptr %2, i64 -1
%5 = load i32, ptr %4, align 4
%6 = call i32 @__start(i32 noundef %5, ptr noundef %2)
store i32 %6, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 @__exit(i32 noundef %7)
%9 = load i32, ptr %3, align 4
ret i32 %9
}
declare i32 @__start(i32 noundef, ptr noundef) #1
declare i32 @__exit(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/tmpj9urokcl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_start(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = getelementptr inbounds ptr, ptr %2, i64 -1
%5 = load i32, ptr %4, align 4
%6 = call i32 @__start(i32 noundef %5, ptr noundef %2)
store i32 %6, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 @__exit(i32 noundef %7)
%9 = load i32, ptr %3, align 4
ret i32 %9
}
declare i32 @__start(i32 noundef, ptr noundef) #1
declare i32 @__exit(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/tmp7iv3afpg.c'
source_filename = "/tmp/tmp7iv3afpg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mbstrcasecmp(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 @mbstrncasecmp(ptr noundef %5, ptr noundef %6, i64 noundef 9223372036854775807)
ret i32 %7
}
declare i32 @mbstrncasecmp(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7iv3afpg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mbstrcasecmp(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 @mbstrncasecmp(ptr noundef %5, ptr noundef %6, i64 noundef 9223372036854775807)
ret i32 %7
}
declare i32 @mbstrncasecmp(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpi1zdvaqv.c'
source_filename = "/tmp/tmpi1zdvaqv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_GETFL = dso_local global i32 0, align 4
@F_SETFL = dso_local global i32 0, align 4
@O_NONBLOCK = 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/tmpi1zdvaqv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_GETFL = dso_local global i32 0, align 4
@F_SETFL = dso_local global i32 0, align 4
@O_NONBLOCK = 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/tmpwghpo05l.c'
source_filename = "/tmp/tmpwghpo05l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ComputeTotalTime(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca double, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %8, align 8
%14 = call i32 @GetElapsedTime(ptr noundef %11, ptr noundef %12, ptr noundef %13)
%15 = load ptr, ptr %6, align 8
%16 = load ptr, ptr %9, align 8
%17 = load ptr, ptr %10, align 8
%18 = call i32 @GetElapsedTime(ptr noundef %15, ptr noundef %16, ptr noundef %17)
%19 = load double, ptr %11, align 8
%20 = load ptr, ptr %6, align 8
%21 = load double, ptr %20, align 8
%22 = fadd double %21, %19
store double %22, ptr %20, align 8
ret void
}
declare i32 @GetElapsedTime(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/tmpwghpo05l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ComputeTotalTime(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca double, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %8, align 8
%14 = call i32 @GetElapsedTime(ptr noundef %11, ptr noundef %12, ptr noundef %13)
%15 = load ptr, ptr %6, align 8
%16 = load ptr, ptr %9, align 8
%17 = load ptr, ptr %10, align 8
%18 = call i32 @GetElapsedTime(ptr noundef %15, ptr noundef %16, ptr noundef %17)
%19 = load double, ptr %11, align 8
%20 = load ptr, ptr %6, align 8
%21 = load double, ptr %20, align 8
%22 = fadd double %21, %19
store double %22, ptr %20, align 8
ret void
}
declare i32 @GetElapsedTime(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/tmp9m3ki5ry.c'
source_filename = "/tmp/tmp9m3ki5ry.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_osc_pattern(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%11 = load ptr, ptr %5, align 8
store ptr %11, ptr %8, align 8
%12 = load ptr, ptr %6, align 8
store ptr %12, ptr %9, align 8
store i32 0, ptr %10, align 4
br label %13
13: ; preds = %37, %3
%14 = load ptr, ptr %8, align 8
%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 %23
18: ; preds = %13
%19 = load ptr, ptr %9, align 8
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %21, 0
br label %23
23: ; preds = %18, %13
%24 = phi i1 [ false, %13 ], [ %22, %18 ]
br i1 %24, label %25, label %40
25: ; preds = %23
%26 = load ptr, ptr %8, align 8
%27 = getelementptr inbounds i8, ptr %26, i32 1
store ptr %27, ptr %8, align 8
%28 = load i8, ptr %26, align 1
%29 = sext i8 %28 to i32
%30 = load ptr, ptr %9, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 1
store ptr %31, ptr %9, align 8
%32 = load i8, ptr %30, align 1
%33 = sext i8 %32 to i32
%34 = icmp ne i32 %29, %33
br i1 %34, label %35, label %36
35: ; preds = %25
store i32 0, ptr %4, align 4
br label %63
36: ; preds = %25
br label %37
37: ; preds = %36
%38 = load i32, ptr %10, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %10, align 4
br label %13, !llvm.loop !6
40: ; preds = %23
%41 = load ptr, ptr %8, align 8
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = load ptr, ptr %9, align 8
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp ne i32 %43, %46
br i1 %47, label %61, label %48
48: ; preds = %40
%49 = load ptr, ptr %7, align 8
%50 = load ptr, ptr %5, align 8
%51 = load i32, ptr %10, align 4
%52 = add nsw i32 %51, 4
%53 = load i32, ptr %10, align 4
%54 = and i32 %53, 3
%55 = sub nsw i32 %52, %54
%56 = sext i32 %55 to i64
%57 = getelementptr i8, ptr %50, i64 %56
%58 = getelementptr i8, ptr %57, i64 1
%59 = call i64 @strcmp(ptr noundef %49, ptr noundef %58)
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %62
61: ; preds = %48, %40
store i32 0, ptr %4, align 4
br label %63
62: ; preds = %48
store i32 1, ptr %4, align 4
br label %63
63: ; preds = %62, %61, %35
%64 = load i32, ptr %4, align 4
ret i32 %64
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9m3ki5ry.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_osc_pattern(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%11 = load ptr, ptr %5, align 8
store ptr %11, ptr %8, align 8
%12 = load ptr, ptr %6, align 8
store ptr %12, ptr %9, align 8
store i32 0, ptr %10, align 4
br label %13
13: ; preds = %37, %3
%14 = load ptr, ptr %8, align 8
%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 %23
18: ; preds = %13
%19 = load ptr, ptr %9, align 8
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %21, 0
br label %23
23: ; preds = %18, %13
%24 = phi i1 [ false, %13 ], [ %22, %18 ]
br i1 %24, label %25, label %40
25: ; preds = %23
%26 = load ptr, ptr %8, align 8
%27 = getelementptr inbounds i8, ptr %26, i32 1
store ptr %27, ptr %8, align 8
%28 = load i8, ptr %26, align 1
%29 = sext i8 %28 to i32
%30 = load ptr, ptr %9, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 1
store ptr %31, ptr %9, align 8
%32 = load i8, ptr %30, align 1
%33 = sext i8 %32 to i32
%34 = icmp ne i32 %29, %33
br i1 %34, label %35, label %36
35: ; preds = %25
store i32 0, ptr %4, align 4
br label %63
36: ; preds = %25
br label %37
37: ; preds = %36
%38 = load i32, ptr %10, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %10, align 4
br label %13, !llvm.loop !6
40: ; preds = %23
%41 = load ptr, ptr %8, align 8
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = load ptr, ptr %9, align 8
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp ne i32 %43, %46
br i1 %47, label %61, label %48
48: ; preds = %40
%49 = load ptr, ptr %7, align 8
%50 = load ptr, ptr %5, align 8
%51 = load i32, ptr %10, align 4
%52 = add nsw i32 %51, 4
%53 = load i32, ptr %10, align 4
%54 = and i32 %53, 3
%55 = sub nsw i32 %52, %54
%56 = sext i32 %55 to i64
%57 = getelementptr i8, ptr %50, i64 %56
%58 = getelementptr i8, ptr %57, i64 1
%59 = call i64 @strcmp(ptr noundef %49, ptr noundef %58)
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %62
61: ; preds = %48, %40
store i32 0, ptr %4, align 4
br label %63
62: ; preds = %48
store i32 1, ptr %4, align 4
br label %63
63: ; preds = %62, %61, %35
%64 = load i32, ptr %4, align 4
ret i32 %64
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmptcye3c6p.c'
source_filename = "/tmp/tmptcye3c6p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @palette8tobgr16(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
store i32 0, ptr %9, align 4
br label %10
10: ; preds = %40, %4
%11 = load i32, ptr %9, align 4
%12 = load i32, ptr %7, align 4
%13 = icmp ult i32 %11, %12
br i1 %13, label %14, label %43
14: ; preds = %10
%15 = load ptr, ptr %8, align 8
%16 = load ptr, ptr %5, align 8
%17 = load i32, ptr %9, align 4
%18 = zext i32 %17 to i64
%19 = getelementptr inbounds i64, ptr %16, i64 %18
%20 = load i64, ptr %19, align 8
%21 = getelementptr inbounds i32, ptr %15, i64 %20
%22 = load i32, ptr %21, align 4
%23 = and i32 %22, 255
%24 = shl i32 %23, 8
%25 = load ptr, ptr %8, align 8
%26 = load ptr, ptr %5, align 8
%27 = load i32, ptr %9, align 4
%28 = zext i32 %27 to i64
%29 = getelementptr inbounds i64, ptr %26, i64 %28
%30 = load i64, ptr %29, align 8
%31 = getelementptr inbounds i32, ptr %25, i64 %30
%32 = load i32, ptr %31, align 4
%33 = and i32 %32, 65280
%34 = ashr i32 %33, 8
%35 = or i32 %24, %34
%36 = load ptr, ptr %6, align 8
%37 = load i32, ptr %9, align 4
%38 = zext i32 %37 to i64
%39 = getelementptr inbounds i32, ptr %36, i64 %38
store i32 %35, ptr %39, align 4
br label %40
40: ; preds = %14
%41 = load i32, ptr %9, align 4
%42 = add i32 %41, 1
store i32 %42, ptr %9, align 4
br label %10, !llvm.loop !6
43: ; preds = %10
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptcye3c6p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @palette8tobgr16(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
store i32 0, ptr %9, align 4
%10 = load i32, ptr %9, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp ult i32 %10, %11
br i1 %12, label %.lr.ph, label %45
.lr.ph: ; preds = %4
br label %13
13: ; preds = %.lr.ph, %39
%14 = load ptr, ptr %8, align 8
%15 = load ptr, ptr %5, align 8
%16 = load i32, ptr %9, align 4
%17 = zext i32 %16 to i64
%18 = getelementptr inbounds i64, ptr %15, i64 %17
%19 = load i64, ptr %18, align 8
%20 = getelementptr inbounds i32, ptr %14, i64 %19
%21 = load i32, ptr %20, align 4
%22 = and i32 %21, 255
%23 = shl i32 %22, 8
%24 = load ptr, ptr %8, align 8
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %9, align 4
%27 = zext i32 %26 to i64
%28 = getelementptr inbounds i64, ptr %25, i64 %27
%29 = load i64, ptr %28, align 8
%30 = getelementptr inbounds i32, ptr %24, i64 %29
%31 = load i32, ptr %30, align 4
%32 = and i32 %31, 65280
%33 = ashr i32 %32, 8
%34 = or i32 %23, %33
%35 = load ptr, ptr %6, align 8
%36 = load i32, ptr %9, align 4
%37 = zext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %35, i64 %37
store i32 %34, ptr %38, align 4
br label %39
39: ; preds = %13
%40 = load i32, ptr %9, align 4
%41 = add i32 %40, 1
store i32 %41, ptr %9, align 4
%42 = load i32, ptr %9, align 4
%43 = load i32, ptr %7, align 4
%44 = icmp ult i32 %42, %43
br i1 %44, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %39
br label %45
45: ; preds = %._crit_edge, %4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpfgwcx0md.c'
source_filename = "/tmp/tmpfgwcx0md.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @toutf8(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
store i64 %0, ptr %2, align 8
store ptr null, ptr %3, align 8
%4 = load i64, ptr %2, align 8
%5 = icmp ule i64 %4, 127
br i1 %5, label %6, label %16
6: ; preds = %1
%7 = call i64 @malloc(i32 noundef 2)
%8 = inttoptr i64 %7 to ptr
store ptr %8, ptr %3, align 8
%9 = load i64, ptr %2, align 8
%10 = urem i64 %9, 128
%11 = trunc i64 %10 to i8
%12 = load ptr, ptr %3, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 0
store i8 %11, ptr %13, align 1
%14 = load ptr, ptr %3, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 1
store i8 0, ptr %15, align 1
br label %196
16: ; preds = %1
%17 = load i64, ptr %2, align 8
%18 = icmp ule i64 %17, 2047
br i1 %18, label %19, label %37
19: ; preds = %16
%20 = call i64 @malloc(i32 noundef 3)
%21 = inttoptr i64 %20 to ptr
store ptr %21, ptr %3, align 8
%22 = load i64, ptr %2, align 8
%23 = lshr i64 %22, 6
%24 = urem i64 %23, 32
%25 = add i64 192, %24
%26 = trunc i64 %25 to i8
%27 = load ptr, ptr %3, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 0
store i8 %26, ptr %28, align 1
%29 = load i64, ptr %2, align 8
%30 = urem i64 %29, 64
%31 = add i64 128, %30
%32 = trunc i64 %31 to i8
%33 = load ptr, ptr %3, align 8
%34 = getelementptr inbounds i8, ptr %33, i64 1
store i8 %32, ptr %34, align 1
%35 = load ptr, ptr %3, align 8
%36 = getelementptr inbounds i8, ptr %35, i64 2
store i8 0, ptr %36, align 1
br label %195
37: ; preds = %16
%38 = load i64, ptr %2, align 8
%39 = icmp ule i64 %38, 65535
br i1 %39, label %40, label %65
40: ; preds = %37
%41 = call i64 @malloc(i32 noundef 4)
%42 = inttoptr i64 %41 to ptr
store ptr %42, ptr %3, align 8
%43 = load i64, ptr %2, align 8
%44 = lshr i64 %43, 12
%45 = urem i64 %44, 16
%46 = add i64 224, %45
%47 = trunc i64 %46 to i8
%48 = load ptr, ptr %3, align 8
%49 = getelementptr inbounds i8, ptr %48, i64 0
store i8 %47, ptr %49, align 1
%50 = load i64, ptr %2, align 8
%51 = lshr i64 %50, 6
%52 = urem i64 %51, 64
%53 = add i64 128, %52
%54 = trunc i64 %53 to i8
%55 = load ptr, ptr %3, align 8
%56 = getelementptr inbounds i8, ptr %55, i64 1
store i8 %54, ptr %56, align 1
%57 = load i64, ptr %2, align 8
%58 = urem i64 %57, 64
%59 = add i64 128, %58
%60 = trunc i64 %59 to i8
%61 = load ptr, ptr %3, align 8
%62 = getelementptr inbounds i8, ptr %61, i64 2
store i8 %60, ptr %62, align 1
%63 = load ptr, ptr %3, align 8
%64 = getelementptr inbounds i8, ptr %63, i64 3
store i8 0, ptr %64, align 1
br label %194
65: ; preds = %37
%66 = load i64, ptr %2, align 8
%67 = icmp ule i64 %66, 2097151
br i1 %67, label %68, label %100
68: ; preds = %65
%69 = call i64 @malloc(i32 noundef 5)
%70 = inttoptr i64 %69 to ptr
store ptr %70, ptr %3, align 8
%71 = load i64, ptr %2, align 8
%72 = lshr i64 %71, 18
%73 = urem i64 %72, 8
%74 = add i64 240, %73
%75 = trunc i64 %74 to i8
%76 = load ptr, ptr %3, align 8
%77 = getelementptr inbounds i8, ptr %76, i64 0
store i8 %75, ptr %77, align 1
%78 = load i64, ptr %2, align 8
%79 = lshr i64 %78, 12
%80 = urem i64 %79, 64
%81 = add i64 128, %80
%82 = trunc i64 %81 to i8
%83 = load ptr, ptr %3, align 8
%84 = getelementptr inbounds i8, ptr %83, i64 1
store i8 %82, ptr %84, align 1
%85 = load i64, ptr %2, align 8
%86 = lshr i64 %85, 6
%87 = urem i64 %86, 64
%88 = add i64 128, %87
%89 = trunc i64 %88 to i8
%90 = load ptr, ptr %3, align 8
%91 = getelementptr inbounds i8, ptr %90, i64 2
store i8 %89, ptr %91, align 1
%92 = load i64, ptr %2, align 8
%93 = urem i64 %92, 64
%94 = add i64 128, %93
%95 = trunc i64 %94 to i8
%96 = load ptr, ptr %3, align 8
%97 = getelementptr inbounds i8, ptr %96, i64 3
store i8 %95, ptr %97, align 1
%98 = load ptr, ptr %3, align 8
%99 = getelementptr inbounds i8, ptr %98, i64 4
store i8 0, ptr %99, align 1
br label %193
100: ; preds = %65
%101 = load i64, ptr %2, align 8
%102 = icmp ule i64 %101, 67108863
br i1 %102, label %103, label %142
103: ; preds = %100
%104 = call i64 @malloc(i32 noundef 6)
%105 = inttoptr i64 %104 to ptr
store ptr %105, ptr %3, align 8
%106 = load i64, ptr %2, align 8
%107 = lshr i64 %106, 24
%108 = urem i64 %107, 4
%109 = add i64 248, %108
%110 = trunc i64 %109 to i8
%111 = load ptr, ptr %3, align 8
%112 = getelementptr inbounds i8, ptr %111, i64 0
store i8 %110, ptr %112, align 1
%113 = load i64, ptr %2, align 8
%114 = lshr i64 %113, 18
%115 = urem i64 %114, 64
%116 = add i64 128, %115
%117 = trunc i64 %116 to i8
%118 = load ptr, ptr %3, align 8
%119 = getelementptr inbounds i8, ptr %118, i64 1
store i8 %117, ptr %119, align 1
%120 = load i64, ptr %2, align 8
%121 = lshr i64 %120, 12
%122 = urem i64 %121, 64
%123 = add i64 128, %122
%124 = trunc i64 %123 to i8
%125 = load ptr, ptr %3, align 8
%126 = getelementptr inbounds i8, ptr %125, i64 2
store i8 %124, ptr %126, align 1
%127 = load i64, ptr %2, align 8
%128 = lshr i64 %127, 6
%129 = urem i64 %128, 64
%130 = add i64 128, %129
%131 = trunc i64 %130 to i8
%132 = load ptr, ptr %3, align 8
%133 = getelementptr inbounds i8, ptr %132, i64 3
store i8 %131, ptr %133, align 1
%134 = load i64, ptr %2, align 8
%135 = urem i64 %134, 64
%136 = add i64 128, %135
%137 = trunc i64 %136 to i8
%138 = load ptr, ptr %3, align 8
%139 = getelementptr inbounds i8, ptr %138, i64 4
store i8 %137, ptr %139, align 1
%140 = load ptr, ptr %3, align 8
%141 = getelementptr inbounds i8, ptr %140, i64 5
store i8 0, ptr %141, align 1
br label %192
142: ; preds = %100
%143 = load i64, ptr %2, align 8
%144 = icmp ule i64 %143, 2147483647
br i1 %144, label %145, label %191
145: ; preds = %142
%146 = call i64 @malloc(i32 noundef 7)
%147 = inttoptr i64 %146 to ptr
store ptr %147, ptr %3, align 8
%148 = load i64, ptr %2, align 8
%149 = lshr i64 %148, 30
%150 = urem i64 %149, 2
%151 = add i64 252, %150
%152 = trunc i64 %151 to i8
%153 = load ptr, ptr %3, align 8
%154 = getelementptr inbounds i8, ptr %153, i64 0
store i8 %152, ptr %154, align 1
%155 = load i64, ptr %2, align 8
%156 = lshr i64 %155, 24
%157 = urem i64 %156, 64
%158 = add i64 128, %157
%159 = trunc i64 %158 to i8
%160 = load ptr, ptr %3, align 8
%161 = getelementptr inbounds i8, ptr %160, i64 1
store i8 %159, ptr %161, align 1
%162 = load i64, ptr %2, align 8
%163 = lshr i64 %162, 18
%164 = urem i64 %163, 64
%165 = add i64 128, %164
%166 = trunc i64 %165 to i8
%167 = load ptr, ptr %3, align 8
%168 = getelementptr inbounds i8, ptr %167, i64 2
store i8 %166, ptr %168, align 1
%169 = load i64, ptr %2, align 8
%170 = lshr i64 %169, 12
%171 = urem i64 %170, 64
%172 = add i64 128, %171
%173 = trunc i64 %172 to i8
%174 = load ptr, ptr %3, align 8
%175 = getelementptr inbounds i8, ptr %174, i64 3
store i8 %173, ptr %175, align 1
%176 = load i64, ptr %2, align 8
%177 = lshr i64 %176, 6
%178 = urem i64 %177, 64
%179 = add i64 128, %178
%180 = trunc i64 %179 to i8
%181 = load ptr, ptr %3, align 8
%182 = getelementptr inbounds i8, ptr %181, i64 4
store i8 %180, ptr %182, align 1
%183 = load i64, ptr %2, align 8
%184 = urem i64 %183, 64
%185 = add i64 128, %184
%186 = trunc i64 %185 to i8
%187 = load ptr, ptr %3, align 8
%188 = getelementptr inbounds i8, ptr %187, i64 5
store i8 %186, ptr %188, align 1
%189 = load ptr, ptr %3, align 8
%190 = getelementptr inbounds i8, ptr %189, i64 6
store i8 0, ptr %190, align 1
br label %191
191: ; preds = %145, %142
br label %192
192: ; preds = %191, %103
br label %193
193: ; preds = %192, %68
br label %194
194: ; preds = %193, %40
br label %195
195: ; preds = %194, %19
br label %196
196: ; preds = %195, %6
%197 = load ptr, ptr %3, align 8
ret ptr %197
}
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfgwcx0md.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @toutf8(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
store i64 %0, ptr %2, align 8
store ptr null, ptr %3, align 8
%4 = load i64, ptr %2, align 8
%5 = icmp ule i64 %4, 127
br i1 %5, label %6, label %16
6: ; preds = %1
%7 = call i64 @malloc(i32 noundef 2)
%8 = inttoptr i64 %7 to ptr
store ptr %8, ptr %3, align 8
%9 = load i64, ptr %2, align 8
%10 = urem i64 %9, 128
%11 = trunc i64 %10 to i8
%12 = load ptr, ptr %3, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 0
store i8 %11, ptr %13, align 1
%14 = load ptr, ptr %3, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 1
store i8 0, ptr %15, align 1
br label %196
16: ; preds = %1
%17 = load i64, ptr %2, align 8
%18 = icmp ule i64 %17, 2047
br i1 %18, label %19, label %37
19: ; preds = %16
%20 = call i64 @malloc(i32 noundef 3)
%21 = inttoptr i64 %20 to ptr
store ptr %21, ptr %3, align 8
%22 = load i64, ptr %2, align 8
%23 = lshr i64 %22, 6
%24 = urem i64 %23, 32
%25 = add i64 192, %24
%26 = trunc i64 %25 to i8
%27 = load ptr, ptr %3, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 0
store i8 %26, ptr %28, align 1
%29 = load i64, ptr %2, align 8
%30 = urem i64 %29, 64
%31 = add i64 128, %30
%32 = trunc i64 %31 to i8
%33 = load ptr, ptr %3, align 8
%34 = getelementptr inbounds i8, ptr %33, i64 1
store i8 %32, ptr %34, align 1
%35 = load ptr, ptr %3, align 8
%36 = getelementptr inbounds i8, ptr %35, i64 2
store i8 0, ptr %36, align 1
br label %195
37: ; preds = %16
%38 = load i64, ptr %2, align 8
%39 = icmp ule i64 %38, 65535
br i1 %39, label %40, label %65
40: ; preds = %37
%41 = call i64 @malloc(i32 noundef 4)
%42 = inttoptr i64 %41 to ptr
store ptr %42, ptr %3, align 8
%43 = load i64, ptr %2, align 8
%44 = lshr i64 %43, 12
%45 = urem i64 %44, 16
%46 = add i64 224, %45
%47 = trunc i64 %46 to i8
%48 = load ptr, ptr %3, align 8
%49 = getelementptr inbounds i8, ptr %48, i64 0
store i8 %47, ptr %49, align 1
%50 = load i64, ptr %2, align 8
%51 = lshr i64 %50, 6
%52 = urem i64 %51, 64
%53 = add i64 128, %52
%54 = trunc i64 %53 to i8
%55 = load ptr, ptr %3, align 8
%56 = getelementptr inbounds i8, ptr %55, i64 1
store i8 %54, ptr %56, align 1
%57 = load i64, ptr %2, align 8
%58 = urem i64 %57, 64
%59 = add i64 128, %58
%60 = trunc i64 %59 to i8
%61 = load ptr, ptr %3, align 8
%62 = getelementptr inbounds i8, ptr %61, i64 2
store i8 %60, ptr %62, align 1
%63 = load ptr, ptr %3, align 8
%64 = getelementptr inbounds i8, ptr %63, i64 3
store i8 0, ptr %64, align 1
br label %194
65: ; preds = %37
%66 = load i64, ptr %2, align 8
%67 = icmp ule i64 %66, 2097151
br i1 %67, label %68, label %100
68: ; preds = %65
%69 = call i64 @malloc(i32 noundef 5)
%70 = inttoptr i64 %69 to ptr
store ptr %70, ptr %3, align 8
%71 = load i64, ptr %2, align 8
%72 = lshr i64 %71, 18
%73 = urem i64 %72, 8
%74 = add i64 240, %73
%75 = trunc i64 %74 to i8
%76 = load ptr, ptr %3, align 8
%77 = getelementptr inbounds i8, ptr %76, i64 0
store i8 %75, ptr %77, align 1
%78 = load i64, ptr %2, align 8
%79 = lshr i64 %78, 12
%80 = urem i64 %79, 64
%81 = add i64 128, %80
%82 = trunc i64 %81 to i8
%83 = load ptr, ptr %3, align 8
%84 = getelementptr inbounds i8, ptr %83, i64 1
store i8 %82, ptr %84, align 1
%85 = load i64, ptr %2, align 8
%86 = lshr i64 %85, 6
%87 = urem i64 %86, 64
%88 = add i64 128, %87
%89 = trunc i64 %88 to i8
%90 = load ptr, ptr %3, align 8
%91 = getelementptr inbounds i8, ptr %90, i64 2
store i8 %89, ptr %91, align 1
%92 = load i64, ptr %2, align 8
%93 = urem i64 %92, 64
%94 = add i64 128, %93
%95 = trunc i64 %94 to i8
%96 = load ptr, ptr %3, align 8
%97 = getelementptr inbounds i8, ptr %96, i64 3
store i8 %95, ptr %97, align 1
%98 = load ptr, ptr %3, align 8
%99 = getelementptr inbounds i8, ptr %98, i64 4
store i8 0, ptr %99, align 1
br label %193
100: ; preds = %65
%101 = load i64, ptr %2, align 8
%102 = icmp ule i64 %101, 67108863
br i1 %102, label %103, label %142
103: ; preds = %100
%104 = call i64 @malloc(i32 noundef 6)
%105 = inttoptr i64 %104 to ptr
store ptr %105, ptr %3, align 8
%106 = load i64, ptr %2, align 8
%107 = lshr i64 %106, 24
%108 = urem i64 %107, 4
%109 = add i64 248, %108
%110 = trunc i64 %109 to i8
%111 = load ptr, ptr %3, align 8
%112 = getelementptr inbounds i8, ptr %111, i64 0
store i8 %110, ptr %112, align 1
%113 = load i64, ptr %2, align 8
%114 = lshr i64 %113, 18
%115 = urem i64 %114, 64
%116 = add i64 128, %115
%117 = trunc i64 %116 to i8
%118 = load ptr, ptr %3, align 8
%119 = getelementptr inbounds i8, ptr %118, i64 1
store i8 %117, ptr %119, align 1
%120 = load i64, ptr %2, align 8
%121 = lshr i64 %120, 12
%122 = urem i64 %121, 64
%123 = add i64 128, %122
%124 = trunc i64 %123 to i8
%125 = load ptr, ptr %3, align 8
%126 = getelementptr inbounds i8, ptr %125, i64 2
store i8 %124, ptr %126, align 1
%127 = load i64, ptr %2, align 8
%128 = lshr i64 %127, 6
%129 = urem i64 %128, 64
%130 = add i64 128, %129
%131 = trunc i64 %130 to i8
%132 = load ptr, ptr %3, align 8
%133 = getelementptr inbounds i8, ptr %132, i64 3
store i8 %131, ptr %133, align 1
%134 = load i64, ptr %2, align 8
%135 = urem i64 %134, 64
%136 = add i64 128, %135
%137 = trunc i64 %136 to i8
%138 = load ptr, ptr %3, align 8
%139 = getelementptr inbounds i8, ptr %138, i64 4
store i8 %137, ptr %139, align 1
%140 = load ptr, ptr %3, align 8
%141 = getelementptr inbounds i8, ptr %140, i64 5
store i8 0, ptr %141, align 1
br label %192
142: ; preds = %100
%143 = load i64, ptr %2, align 8
%144 = icmp ule i64 %143, 2147483647
br i1 %144, label %145, label %191
145: ; preds = %142
%146 = call i64 @malloc(i32 noundef 7)
%147 = inttoptr i64 %146 to ptr
store ptr %147, ptr %3, align 8
%148 = load i64, ptr %2, align 8
%149 = lshr i64 %148, 30
%150 = urem i64 %149, 2
%151 = add i64 252, %150
%152 = trunc i64 %151 to i8
%153 = load ptr, ptr %3, align 8
%154 = getelementptr inbounds i8, ptr %153, i64 0
store i8 %152, ptr %154, align 1
%155 = load i64, ptr %2, align 8
%156 = lshr i64 %155, 24
%157 = urem i64 %156, 64
%158 = add i64 128, %157
%159 = trunc i64 %158 to i8
%160 = load ptr, ptr %3, align 8
%161 = getelementptr inbounds i8, ptr %160, i64 1
store i8 %159, ptr %161, align 1
%162 = load i64, ptr %2, align 8
%163 = lshr i64 %162, 18
%164 = urem i64 %163, 64
%165 = add i64 128, %164
%166 = trunc i64 %165 to i8
%167 = load ptr, ptr %3, align 8
%168 = getelementptr inbounds i8, ptr %167, i64 2
store i8 %166, ptr %168, align 1
%169 = load i64, ptr %2, align 8
%170 = lshr i64 %169, 12
%171 = urem i64 %170, 64
%172 = add i64 128, %171
%173 = trunc i64 %172 to i8
%174 = load ptr, ptr %3, align 8
%175 = getelementptr inbounds i8, ptr %174, i64 3
store i8 %173, ptr %175, align 1
%176 = load i64, ptr %2, align 8
%177 = lshr i64 %176, 6
%178 = urem i64 %177, 64
%179 = add i64 128, %178
%180 = trunc i64 %179 to i8
%181 = load ptr, ptr %3, align 8
%182 = getelementptr inbounds i8, ptr %181, i64 4
store i8 %180, ptr %182, align 1
%183 = load i64, ptr %2, align 8
%184 = urem i64 %183, 64
%185 = add i64 128, %184
%186 = trunc i64 %185 to i8
%187 = load ptr, ptr %3, align 8
%188 = getelementptr inbounds i8, ptr %187, i64 5
store i8 %186, ptr %188, align 1
%189 = load ptr, ptr %3, align 8
%190 = getelementptr inbounds i8, ptr %189, i64 6
store i8 0, ptr %190, align 1
br label %191
191: ; preds = %145, %142
br label %192
192: ; preds = %191, %103
br label %193
193: ; preds = %192, %68
br label %194
194: ; preds = %193, %40
br label %195
195: ; preds = %194, %19
br label %196
196: ; preds = %195, %6
%197 = load ptr, ptr %3, align 8
ret ptr %197
}
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"}
|
; ModuleID = '/tmp/tmp1fk1fvzu.c'
source_filename = "/tmp/tmp1fk1fvzu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @F3_cc_nu_n(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%5 = load double, ptr %3, align 8
%6 = load double, ptr %4, align 8
%7 = call i32 @uv(double noundef %5, double noundef %6)
%8 = load double, ptr %3, align 8
%9 = load double, ptr %4, align 8
%10 = call i32 @sb(double noundef %8, double noundef %9)
%11 = add nsw i32 %7, %10
%12 = load double, ptr %3, align 8
%13 = load double, ptr %4, align 8
%14 = call i32 @ubar(double noundef %12, double noundef %13)
%15 = add nsw i32 %11, %14
%16 = load double, ptr %3, align 8
%17 = load double, ptr %4, align 8
%18 = call i32 @dbar(double noundef %16, double noundef %17)
%19 = sub nsw i32 %15, %18
%20 = mul nsw i32 2, %19
%21 = sitofp i32 %20 to double
%22 = load double, ptr %3, align 8
%23 = fdiv double %21, %22
ret double %23
}
declare i32 @uv(double noundef, double noundef) #1
declare i32 @sb(double noundef, double noundef) #1
declare i32 @ubar(double noundef, double noundef) #1
declare i32 @dbar(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1fk1fvzu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @F3_cc_nu_n(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%5 = load double, ptr %3, align 8
%6 = load double, ptr %4, align 8
%7 = call i32 @uv(double noundef %5, double noundef %6)
%8 = load double, ptr %3, align 8
%9 = load double, ptr %4, align 8
%10 = call i32 @sb(double noundef %8, double noundef %9)
%11 = add nsw i32 %7, %10
%12 = load double, ptr %3, align 8
%13 = load double, ptr %4, align 8
%14 = call i32 @ubar(double noundef %12, double noundef %13)
%15 = add nsw i32 %11, %14
%16 = load double, ptr %3, align 8
%17 = load double, ptr %4, align 8
%18 = call i32 @dbar(double noundef %16, double noundef %17)
%19 = sub nsw i32 %15, %18
%20 = mul nsw i32 2, %19
%21 = sitofp i32 %20 to double
%22 = load double, ptr %3, align 8
%23 = fdiv double %21, %22
ret double %23
}
declare i32 @uv(double noundef, double noundef) #1
declare i32 @sb(double noundef, double noundef) #1
declare i32 @ubar(double noundef, double noundef) #1
declare i32 @dbar(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"}
|
; ModuleID = '/tmp/tmpm15pyqht.c'
source_filename = "/tmp/tmpm15pyqht.c"
target datalayout = "e-m:e-p270: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/tmpm15pyqht.c"
target datalayout = "e-m:e-p270: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/tmpzbxcgkrd.c'
source_filename = "/tmp/tmpzbxcgkrd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"sleep_well\00", align 1
@O_TRUNC = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [21 x i8] c"/dev/cu.usbmodem1411\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"%d,%d,%d,%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
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = 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 %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 100, ptr %11, align 4
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
%20 = load i32, ptr @O_TRUNC, align 4
%21 = load i32, ptr @O_CREAT, align 4
%22 = or i32 %20, %21
%23 = call i32 @open(ptr noundef @.str, i32 noundef %22)
store i32 %23, ptr %2, align 4
%24 = call ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.2)
store ptr %24, ptr %15, align 8
store ptr null, ptr %16, align 8
store i32 0, ptr %17, align 4
br label %25
25: ; preds = %79, %0
%26 = load i32, ptr %9, align 4
%27 = icmp slt i32 %26, 25000000
br i1 %27, label %28, label %80
28: ; preds = %25
store i32 0, ptr %8, align 4
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
br label %29
29: ; preds = %32, %28
%30 = load i32, ptr %8, align 4
%31 = icmp slt i32 %30, 850
br i1 %31, label %32, label %67
32: ; preds = %29
%33 = load i32, ptr %8, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %8, align 4
%35 = load ptr, ptr %15, align 8
%36 = call i32 @getline(ptr noundef %16, ptr noundef %17, ptr noundef %35)
store i32 %36, ptr %18, align 4
%37 = load ptr, ptr %16, align 8
%38 = call i32 @printf(ptr noundef @.str.3, ptr noundef %37)
%39 = load ptr, ptr %16, align 8
%40 = getelementptr inbounds i8, ptr %39, i64 0
%41 = call i32 @atoi(ptr noundef %40)
%42 = mul nsw i32 10, %41
%43 = load ptr, ptr %16, align 8
%44 = getelementptr inbounds i8, ptr %43, i64 1
%45 = call i32 @atoi(ptr noundef %44)
%46 = add nsw i32 %42, %45
store i32 %46, ptr %5, align 4
%47 = load ptr, ptr %16, align 8
%48 = getelementptr inbounds i8, ptr %47, i64 3
%49 = call i32 @atoi(ptr noundef %48)
store i32 %49, ptr %6, align 4
%50 = load ptr, ptr %16, align 8
%51 = getelementptr inbounds i8, ptr %50, i64 5
%52 = call i32 @atoi(ptr noundef %51)
store i32 %52, ptr %7, align 4
%53 = load i32, ptr %6, align 4
%54 = sitofp i32 %53 to double
%55 = fsub double %54, 5.000000e-01
%56 = call double @llvm.fmuladd.f64(double %55, double -1.000000e+00, double 5.000000e-01)
%57 = fptosi double %56 to i32
store i32 %57, ptr %6, align 4
%58 = load i32, ptr %6, align 4
%59 = load i32, ptr %13, align 4
%60 = add nsw i32 %59, %58
store i32 %60, ptr %13, align 4
%61 = load i32, ptr %7, align 4
%62 = load i32, ptr %14, align 4
%63 = add nsw i32 %62, %61
store i32 %63, ptr %14, align 4
%64 = load i32, ptr %5, align 4
%65 = load i32, ptr %10, align 4
%66 = add nsw i32 %65, %64
store i32 %66, ptr %10, align 4
br label %29, !llvm.loop !6
67: ; preds = %29
%68 = load i32, ptr %14, align 4
%69 = icmp sgt i32 %68, 25
br i1 %69, label %70, label %73
70: ; preds = %67
%71 = load i32, ptr %4, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %4, align 4
br label %73
73: ; preds = %70, %67
%74 = load i32, ptr %13, align 4
%75 = icmp sgt i32 %74, 50
br i1 %75, label %76, label %79
76: ; preds = %73
%77 = load i32, ptr %3, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %3, align 4
br label %79
79: ; preds = %76, %73
br label %25, !llvm.loop !8
80: ; preds = %25
%81 = load i32, ptr %10, align 4
%82 = sdiv i32 %81, 25000000
store i32 %82, ptr %19, align 4
%83 = load i32, ptr %2, align 4
%84 = load i32, ptr %12, align 4
%85 = load i32, ptr %11, align 4
%86 = load i32, ptr %19, align 4
%87 = load i32, ptr %3, align 4
%88 = load i32, ptr %4, align 4
%89 = call i32 @dprintf(i32 noundef %83, ptr noundef @.str.4, i32 noundef %84, i32 noundef %85, i32 noundef %86, i32 noundef %87, i32 noundef %88)
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @getline(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare i32 @dprintf(i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzbxcgkrd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"sleep_well\00", align 1
@O_TRUNC = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [21 x i8] c"/dev/cu.usbmodem1411\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"%d,%d,%d,%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
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = 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 %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 100, ptr %11, align 4
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
%20 = load i32, ptr @O_TRUNC, align 4
%21 = load i32, ptr @O_CREAT, align 4
%22 = or i32 %20, %21
%23 = call i32 @open(ptr noundef @.str, i32 noundef %22)
store i32 %23, ptr %2, align 4
%24 = call ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.2)
store ptr %24, ptr %15, align 8
store ptr null, ptr %16, align 8
store i32 0, ptr %17, align 4
%25 = load i32, ptr %9, align 4
%26 = icmp slt i32 %25, 25000000
br i1 %26, label %.lr.ph2, label %82
.lr.ph2: ; preds = %0
br label %27
27: ; preds = %.lr.ph2, %79
store i32 0, ptr %8, align 4
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
%28 = load i32, ptr %8, align 4
%29 = icmp slt i32 %28, 850
br i1 %29, label %.lr.ph, label %67
.lr.ph: ; preds = %27
br label %30
30: ; preds = %.lr.ph, %30
%31 = load i32, ptr %8, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %8, align 4
%33 = load ptr, ptr %15, align 8
%34 = call i32 @getline(ptr noundef %16, ptr noundef %17, ptr noundef %33)
store i32 %34, ptr %18, align 4
%35 = load ptr, ptr %16, align 8
%36 = call i32 @printf(ptr noundef @.str.3, ptr noundef %35)
%37 = load ptr, ptr %16, align 8
%38 = getelementptr inbounds i8, ptr %37, i64 0
%39 = call i32 @atoi(ptr noundef %38)
%40 = mul nsw i32 10, %39
%41 = load ptr, ptr %16, align 8
%42 = getelementptr inbounds i8, ptr %41, i64 1
%43 = call i32 @atoi(ptr noundef %42)
%44 = add nsw i32 %40, %43
store i32 %44, ptr %5, align 4
%45 = load ptr, ptr %16, align 8
%46 = getelementptr inbounds i8, ptr %45, i64 3
%47 = call i32 @atoi(ptr noundef %46)
store i32 %47, ptr %6, align 4
%48 = load ptr, ptr %16, align 8
%49 = getelementptr inbounds i8, ptr %48, i64 5
%50 = call i32 @atoi(ptr noundef %49)
store i32 %50, ptr %7, align 4
%51 = load i32, ptr %6, align 4
%52 = sitofp i32 %51 to double
%53 = fsub double %52, 5.000000e-01
%54 = call double @llvm.fmuladd.f64(double %53, double -1.000000e+00, double 5.000000e-01)
%55 = fptosi double %54 to i32
store i32 %55, ptr %6, align 4
%56 = load i32, ptr %6, align 4
%57 = load i32, ptr %13, align 4
%58 = add nsw i32 %57, %56
store i32 %58, ptr %13, align 4
%59 = load i32, ptr %7, align 4
%60 = load i32, ptr %14, align 4
%61 = add nsw i32 %60, %59
store i32 %61, ptr %14, align 4
%62 = load i32, ptr %5, align 4
%63 = load i32, ptr %10, align 4
%64 = add nsw i32 %63, %62
store i32 %64, ptr %10, align 4
%65 = load i32, ptr %8, align 4
%66 = icmp slt i32 %65, 850
br i1 %66, label %30, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %67
67: ; preds = %._crit_edge, %27
%68 = load i32, ptr %14, align 4
%69 = icmp sgt i32 %68, 25
br i1 %69, label %70, label %73
70: ; preds = %67
%71 = load i32, ptr %4, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %4, align 4
br label %73
73: ; preds = %70, %67
%74 = load i32, ptr %13, align 4
%75 = icmp sgt i32 %74, 50
br i1 %75, label %76, label %79
76: ; preds = %73
%77 = load i32, ptr %3, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %3, align 4
br label %79
79: ; preds = %76, %73
%80 = load i32, ptr %9, align 4
%81 = icmp slt i32 %80, 25000000
br i1 %81, label %27, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %79
br label %82
82: ; preds = %._crit_edge3, %0
%83 = load i32, ptr %10, align 4
%84 = sdiv i32 %83, 25000000
store i32 %84, ptr %19, align 4
%85 = load i32, ptr %2, align 4
%86 = load i32, ptr %12, align 4
%87 = load i32, ptr %11, align 4
%88 = load i32, ptr %19, align 4
%89 = load i32, ptr %3, align 4
%90 = load i32, ptr %4, align 4
%91 = call i32 @dprintf(i32 noundef %85, ptr noundef @.str.4, i32 noundef %86, i32 noundef %87, i32 noundef %88, i32 noundef %89, i32 noundef %90)
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @getline(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare i32 @dprintf(i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpjt_9eqeb.c'
source_filename = "/tmp/tmpjt_9eqeb.c"
target datalayout = "e-m:e-p270: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/tmpjt_9eqeb.c"
target datalayout = "e-m:e-p270: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/tmpktazwgy_.c'
source_filename = "/tmp/tmpktazwgy_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_rssi(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
store ptr %4, ptr %3, align 8
ret i32 1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpktazwgy_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_rssi(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
store ptr %4, ptr %3, align 8
ret i32 1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprayhix0g.c'
source_filename = "/tmp/tmprayhix0g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%.2f \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printMatrix(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %41, %2
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %44
11: ; preds = %7
store i32 0, ptr %6, align 4
br label %12
12: ; preds = %37, %11
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp sle i32 %13, %14
br i1 %15, label %16, label %40
16: ; preds = %12
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %4, align 4
%19 = mul nsw i32 %17, %18
%20 = load i32, ptr %6, align 4
%21 = add nsw i32 %19, %20
%22 = srem i32 %21, 20
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %16
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %26
26: ; preds = %24, %16
%27 = load ptr, ptr %3, align 8
%28 = load i32, ptr %5, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds ptr, ptr %27, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = load i32, ptr %6, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds double, ptr %31, i64 %33
%35 = load double, ptr %34, align 8
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %35)
br label %37
37: ; preds = %26
%38 = load i32, ptr %6, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %6, align 4
br label %12, !llvm.loop !6
40: ; preds = %12
br label %41
41: ; preds = %40
%42 = load i32, ptr %5, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %5, align 4
br label %7, !llvm.loop !8
44: ; preds = %7
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprayhix0g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%.2f \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printMatrix(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph2, label %48
.lr.ph2: ; preds = %2
br label %10
10: ; preds = %.lr.ph2, %42
store i32 0, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp sle i32 %11, %12
br i1 %13, label %.lr.ph, label %41
.lr.ph: ; preds = %10
br label %14
14: ; preds = %.lr.ph, %35
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr %4, align 4
%17 = mul nsw i32 %15, %16
%18 = load i32, ptr %6, align 4
%19 = add nsw i32 %17, %18
%20 = srem i32 %19, 20
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %14
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %24
24: ; preds = %22, %14
%25 = load ptr, ptr %3, align 8
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds ptr, ptr %25, i64 %27
%29 = load ptr, ptr %28, align 8
%30 = load i32, ptr %6, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds double, ptr %29, i64 %31
%33 = load double, ptr %32, align 8
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %33)
br label %35
35: ; preds = %24
%36 = load i32, ptr %6, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %6, align 4
%38 = load i32, ptr %6, align 4
%39 = load i32, ptr %5, align 4
%40 = icmp sle i32 %38, %39
br i1 %40, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %41
41: ; preds = %._crit_edge, %10
br label %42
42: ; preds = %41
%43 = load i32, ptr %5, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %5, align 4
%45 = load i32, ptr %5, align 4
%46 = load i32, ptr %4, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %10, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %42
br label %48
48: ; preds = %._crit_edge3, %2
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp84wp54nk.c'
source_filename = "/tmp/tmp84wp54nk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @calc(i32 noundef 99)
%3 = call i32 @printf(ptr noundef @.str, i32 noundef %2)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @calc(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/tmp84wp54nk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @calc(i32 noundef 99)
%3 = call i32 @printf(ptr noundef @.str, i32 noundef %2)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @calc(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/tmpmlebnyzd.c'
source_filename = "/tmp/tmpmlebnyzd.c"
target datalayout = "e-m:e-p270: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/tmpmlebnyzd.c"
target datalayout = "e-m:e-p270: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/tmp26jfmw2q.c'
source_filename = "/tmp/tmp26jfmw2q.c"
target datalayout = "e-m:e-p270: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 [42 x i8] c"tcping, (C) 2003 [email protected]\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"hostname\09hostname (e.g. localhost)\0A\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c"-p portnr\09portnumber (e.g. 80)\0A\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"-c count\09how many times to connect\0A\00", align 1
@.str.4 = private unnamed_addr constant [40 x i8] c"-i interval\09delay between each connect\0A\00", align 1
@.str.5 = private unnamed_addr constant [31 x i8] c"-f\09\09flood connect (no delays)\0A\00", align 1
@.str.6 = private unnamed_addr constant [29 x i8] c"-q\09\09quiet, only returncode\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str.1)
%5 = load i32, ptr @stderr, align 4
%6 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str.2)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str.3)
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str.4)
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.5)
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.6)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp26jfmw2q.c"
target datalayout = "e-m:e-p270: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 [42 x i8] c"tcping, (C) 2003 [email protected]\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"hostname\09hostname (e.g. localhost)\0A\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c"-p portnr\09portnumber (e.g. 80)\0A\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"-c count\09how many times to connect\0A\00", align 1
@.str.4 = private unnamed_addr constant [40 x i8] c"-i interval\09delay between each connect\0A\00", align 1
@.str.5 = private unnamed_addr constant [31 x i8] c"-f\09\09flood connect (no delays)\0A\00", align 1
@.str.6 = private unnamed_addr constant [29 x i8] c"-q\09\09quiet, only returncode\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str.1)
%5 = load i32, ptr @stderr, align 4
%6 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str.2)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str.3)
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str.4)
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.5)
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.6)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0exahg1b.c'
source_filename = "/tmp/tmp0exahg1b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strcat(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 %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds i8, ptr %5, i64 %8
%10 = load ptr, ptr %4, align 8
%11 = call ptr @strcpy(ptr noundef %9, ptr noundef %10)
ret ptr %11
}
declare ptr @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0exahg1b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strcat(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 %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds i8, ptr %5, i64 %8
%10 = load ptr, ptr %4, align 8
%11 = call ptr @strcpy(ptr noundef %9, ptr noundef %10)
ret ptr %11
}
declare ptr @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbc83y0lt.c'
source_filename = "/tmp/tmpbc83y0lt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mergeSort(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = sub nsw i32 %6, 1
%8 = call i32 @sortSubArray(ptr noundef %5, i32 noundef 0, i32 noundef %7)
ret void
}
declare i32 @sortSubArray(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/tmpbc83y0lt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mergeSort(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = sub nsw i32 %6, 1
%8 = call i32 @sortSubArray(ptr noundef %5, i32 noundef 0, i32 noundef %7)
ret void
}
declare i32 @sortSubArray(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/tmpe6kmn_ts.c'
source_filename = "/tmp/tmpe6kmn_ts.c"
target datalayout = "e-m:e-p270: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/tmpe6kmn_ts.c"
target datalayout = "e-m:e-p270: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/tmpl59xlw84.c'
source_filename = "/tmp/tmpl59xlw84.c"
target datalayout = "e-m:e-p270: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 [12 x i8] c"\0AValue:%f\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca [50 x i8], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca double, align 8
store i32 0, ptr %3, align 4
br label %5
5: ; preds = %14, %0
%6 = call i32 (...) @getchar()
store i32 %6, ptr %2, align 4
%7 = load i32, ptr @EOF, align 4
%8 = icmp ne i32 %6, %7
br i1 %8, label %9, label %12
9: ; preds = %5
%10 = load i32, ptr %2, align 4
%11 = icmp ne i32 %10, 10
br label %12
12: ; preds = %9, %5
%13 = phi i1 [ false, %5 ], [ %11, %9 ]
br i1 %13, label %14, label %21
14: ; preds = %12
%15 = load i32, ptr %2, align 4
%16 = trunc i32 %15 to i8
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %3, align 4
%19 = sext i32 %17 to i64
%20 = getelementptr inbounds [50 x i8], ptr %1, i64 0, i64 %19
store i8 %16, ptr %20, align 1
br label %5, !llvm.loop !6
21: ; preds = %12
%22 = load i32, ptr %2, align 4
%23 = icmp eq i32 %22, 10
br i1 %23, label %24, label %29
24: ; preds = %21
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %3, align 4
%27 = sext i32 %25 to i64
%28 = getelementptr inbounds [50 x i8], ptr %1, i64 0, i64 %27
store i8 10, ptr %28, align 1
br label %29
29: ; preds = %24, %21
%30 = load i32, ptr %3, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [50 x i8], ptr %1, i64 0, i64 %31
store i8 0, ptr %32, align 1
%33 = getelementptr inbounds [50 x i8], ptr %1, i64 0, i64 0
%34 = call double @atof(ptr noundef %33)
store double %34, ptr %4, align 8
%35 = load double, ptr %4, align 8
%36 = call i32 @printf(ptr noundef @.str, double noundef %35)
ret void
}
declare i32 @getchar(...) #1
declare double @atof(ptr noundef) #1
declare i32 @printf(ptr 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl59xlw84.c"
target datalayout = "e-m:e-p270: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 [12 x i8] c"\0AValue:%f\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca [50 x i8], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca double, align 8
store i32 0, ptr %3, align 4
br label %5
5: ; preds = %14, %0
%6 = call i32 (...) @getchar()
store i32 %6, ptr %2, align 4
%7 = load i32, ptr @EOF, align 4
%8 = icmp ne i32 %6, %7
br i1 %8, label %9, label %12
9: ; preds = %5
%10 = load i32, ptr %2, align 4
%11 = icmp ne i32 %10, 10
br label %12
12: ; preds = %9, %5
%13 = phi i1 [ false, %5 ], [ %11, %9 ]
br i1 %13, label %14, label %21
14: ; preds = %12
%15 = load i32, ptr %2, align 4
%16 = trunc i32 %15 to i8
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %3, align 4
%19 = sext i32 %17 to i64
%20 = getelementptr inbounds [50 x i8], ptr %1, i64 0, i64 %19
store i8 %16, ptr %20, align 1
br label %5, !llvm.loop !6
21: ; preds = %12
%22 = load i32, ptr %2, align 4
%23 = icmp eq i32 %22, 10
br i1 %23, label %24, label %29
24: ; preds = %21
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %3, align 4
%27 = sext i32 %25 to i64
%28 = getelementptr inbounds [50 x i8], ptr %1, i64 0, i64 %27
store i8 10, ptr %28, align 1
br label %29
29: ; preds = %24, %21
%30 = load i32, ptr %3, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [50 x i8], ptr %1, i64 0, i64 %31
store i8 0, ptr %32, align 1
%33 = getelementptr inbounds [50 x i8], ptr %1, i64 0, i64 0
%34 = call double @atof(ptr noundef %33)
store double %34, ptr %4, align 8
%35 = load double, ptr %4, align 8
%36 = call i32 @printf(ptr noundef @.str, double noundef %35)
ret void
}
declare i32 @getchar(...) #1
declare double @atof(ptr noundef) #1
declare i32 @printf(ptr 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"}
|
; ModuleID = '/tmp/tmp0v__d976.c'
source_filename = "/tmp/tmp0v__d976.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isPalindrome(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i32 @strlen(ptr noundef %8)
store i32 %9, ptr %4, align 4
store i32 0, ptr %5, align 4
%10 = load i32, ptr %4, align 4
%11 = sub nsw i32 %10, 1
store i32 %11, ptr %6, align 4
br label %12
12: ; preds = %130, %1
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %6, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %131
16: ; preds = %12
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i8, ptr %20, align 1
%22 = call i32 @valid(i8 noundef signext %21)
%23 = icmp ne i32 %22, 0
br i1 %23, label %27, label %24
24: ; preds = %16
%25 = load i32, ptr %5, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %5, align 4
br label %130
27: ; preds = %16
%28 = load ptr, ptr %3, align 8
%29 = load i32, ptr %6, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
%32 = load i8, ptr %31, align 1
%33 = call i32 @valid(i8 noundef signext %32)
%34 = icmp ne i32 %33, 0
br i1 %34, label %38, label %35
35: ; preds = %27
%36 = load i32, ptr %6, align 4
%37 = add nsw i32 %36, -1
store i32 %37, ptr %6, align 4
br label %129
38: ; preds = %27
%39 = load ptr, ptr %3, align 8
%40 = load i32, ptr %5, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, ptr %39, i64 %41
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = load ptr, ptr %3, align 8
%46 = load i32, ptr %6, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, ptr %45, i64 %47
%49 = load i8, ptr %48, align 1
%50 = sext i8 %49 to i32
%51 = icmp eq i32 %44, %50
br i1 %51, label %52, label %57
52: ; preds = %38
%53 = load i32, ptr %5, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %5, align 4
%55 = load i32, ptr %6, align 4
%56 = add nsw i32 %55, -1
store i32 %56, ptr %6, align 4
br label %128
57: ; preds = %38
%58 = load ptr, ptr %3, align 8
%59 = load i32, ptr %5, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i8, ptr %58, i64 %60
%62 = load i8, ptr %61, align 1
%63 = call i64 @isalpha(i8 noundef signext %62)
%64 = icmp ne i64 %63, 0
br i1 %64, label %65, label %126
65: ; preds = %57
%66 = load ptr, ptr %3, align 8
%67 = load i32, ptr %6, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i8, ptr %66, i64 %68
%70 = load i8, ptr %69, align 1
%71 = call i64 @isalpha(i8 noundef signext %70)
%72 = icmp ne i64 %71, 0
br i1 %72, label %73, label %126
73: ; preds = %65
%74 = load ptr, ptr %3, align 8
%75 = load i32, ptr %5, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8, ptr %74, i64 %76
%78 = load i8, ptr %77, align 1
%79 = sext i8 %78 to i32
%80 = load ptr, ptr %3, align 8
%81 = load i32, ptr %6, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i8, ptr %80, i64 %82
%84 = load i8, ptr %83, align 1
%85 = sext i8 %84 to i32
%86 = icmp sgt i32 %79, %85
br i1 %86, label %87, label %101
87: ; preds = %73
%88 = load ptr, ptr %3, align 8
%89 = load i32, ptr %5, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i8, ptr %88, i64 %90
%92 = load i8, ptr %91, align 1
%93 = sext i8 %92 to i32
%94 = load ptr, ptr %3, align 8
%95 = load i32, ptr %6, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds i8, ptr %94, i64 %96
%98 = load i8, ptr %97, align 1
%99 = sext i8 %98 to i32
%100 = sub nsw i32 %93, %99
br label %115
101: ; preds = %73
%102 = load ptr, ptr %3, align 8
%103 = load i32, ptr %6, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds i8, ptr %102, i64 %104
%106 = load i8, ptr %105, align 1
%107 = sext i8 %106 to i32
%108 = load ptr, ptr %3, align 8
%109 = load i32, ptr %5, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8, ptr %108, i64 %110
%112 = load i8, ptr %111, align 1
%113 = sext i8 %112 to i32
%114 = sub nsw i32 %107, %113
br label %115
115: ; preds = %101, %87
%116 = phi i32 [ %100, %87 ], [ %114, %101 ]
store i32 %116, ptr %7, align 4
%117 = load i32, ptr %7, align 4
%118 = icmp eq i32 %117, 32
br i1 %118, label %119, label %124
119: ; preds = %115
%120 = load i32, ptr %5, align 4
%121 = add nsw i32 %120, 1
store i32 %121, ptr %5, align 4
%122 = load i32, ptr %6, align 4
%123 = add nsw i32 %122, -1
store i32 %123, ptr %6, align 4
br label %125
124: ; preds = %115
store i32 0, ptr %2, align 4
br label %136
125: ; preds = %119
br label %127
126: ; preds = %65, %57
store i32 0, ptr %2, align 4
br label %136
127: ; preds = %125
br label %128
128: ; preds = %127, %52
br label %129
129: ; preds = %128, %35
br label %130
130: ; preds = %129, %24
br label %12, !llvm.loop !6
131: ; preds = %12
%132 = load i32, ptr %5, align 4
%133 = load i32, ptr %6, align 4
%134 = icmp sge i32 %132, %133
%135 = zext i1 %134 to i32
store i32 %135, ptr %2, align 4
br label %136
136: ; preds = %131, %126, %124
%137 = load i32, ptr %2, align 4
ret i32 %137
}
declare i32 @strlen(ptr noundef) #1
declare i32 @valid(i8 noundef signext) #1
declare i64 @isalpha(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/tmp0v__d976.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isPalindrome(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i32 @strlen(ptr noundef %8)
store i32 %9, ptr %4, align 4
store i32 0, ptr %5, align 4
%10 = load i32, ptr %4, align 4
%11 = sub nsw i32 %10, 1
store i32 %11, ptr %6, align 4
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %6, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %.lr.ph, label %133
.lr.ph: ; preds = %1
br label %15
15: ; preds = %.lr.ph, %129
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %5, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i8, ptr %19, align 1
%21 = call i32 @valid(i8 noundef signext %20)
%22 = icmp ne i32 %21, 0
br i1 %22, label %26, label %23
23: ; preds = %15
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %5, align 4
br label %129
26: ; preds = %15
%27 = load ptr, ptr %3, align 8
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = load i8, ptr %30, align 1
%32 = call i32 @valid(i8 noundef signext %31)
%33 = icmp ne i32 %32, 0
br i1 %33, label %37, label %34
34: ; preds = %26
%35 = load i32, ptr %6, align 4
%36 = add nsw i32 %35, -1
store i32 %36, ptr %6, align 4
br label %128
37: ; preds = %26
%38 = load ptr, ptr %3, align 8
%39 = load i32, ptr %5, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %38, i64 %40
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = load ptr, ptr %3, align 8
%45 = load i32, ptr %6, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %44, i64 %46
%48 = load i8, ptr %47, align 1
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %43, %49
br i1 %50, label %51, label %56
51: ; preds = %37
%52 = load i32, ptr %5, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %5, align 4
%54 = load i32, ptr %6, align 4
%55 = add nsw i32 %54, -1
store i32 %55, ptr %6, align 4
br label %127
56: ; preds = %37
%57 = load ptr, ptr %3, align 8
%58 = load i32, ptr %5, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8, ptr %57, i64 %59
%61 = load i8, ptr %60, align 1
%62 = call i64 @isalpha(i8 noundef signext %61)
%63 = icmp ne i64 %62, 0
br i1 %63, label %64, label %125
64: ; preds = %56
%65 = load ptr, ptr %3, align 8
%66 = load i32, ptr %6, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8, ptr %65, i64 %67
%69 = load i8, ptr %68, align 1
%70 = call i64 @isalpha(i8 noundef signext %69)
%71 = icmp ne i64 %70, 0
br i1 %71, label %72, label %125
72: ; preds = %64
%73 = load ptr, ptr %3, align 8
%74 = load i32, ptr %5, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i8, ptr %73, i64 %75
%77 = load i8, ptr %76, align 1
%78 = sext i8 %77 to i32
%79 = load ptr, ptr %3, align 8
%80 = load i32, ptr %6, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i8, ptr %79, i64 %81
%83 = load i8, ptr %82, align 1
%84 = sext i8 %83 to i32
%85 = icmp sgt i32 %78, %84
br i1 %85, label %86, label %100
86: ; preds = %72
%87 = load ptr, ptr %3, align 8
%88 = load i32, ptr %5, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i8, ptr %87, i64 %89
%91 = load i8, ptr %90, align 1
%92 = sext i8 %91 to i32
%93 = load ptr, ptr %3, align 8
%94 = load i32, ptr %6, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i8, ptr %93, i64 %95
%97 = load i8, ptr %96, align 1
%98 = sext i8 %97 to i32
%99 = sub nsw i32 %92, %98
br label %114
100: ; preds = %72
%101 = load ptr, ptr %3, align 8
%102 = load i32, ptr %6, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i8, ptr %101, i64 %103
%105 = load i8, ptr %104, align 1
%106 = sext i8 %105 to i32
%107 = load ptr, ptr %3, align 8
%108 = load i32, ptr %5, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i8, ptr %107, i64 %109
%111 = load i8, ptr %110, align 1
%112 = sext i8 %111 to i32
%113 = sub nsw i32 %106, %112
br label %114
114: ; preds = %100, %86
%115 = phi i32 [ %99, %86 ], [ %113, %100 ]
store i32 %115, ptr %7, align 4
%116 = load i32, ptr %7, align 4
%117 = icmp eq i32 %116, 32
br i1 %117, label %118, label %123
118: ; preds = %114
%119 = load i32, ptr %5, align 4
%120 = add nsw i32 %119, 1
store i32 %120, ptr %5, align 4
%121 = load i32, ptr %6, align 4
%122 = add nsw i32 %121, -1
store i32 %122, ptr %6, align 4
br label %124
123: ; preds = %114
store i32 0, ptr %2, align 4
br label %138
124: ; preds = %118
br label %126
125: ; preds = %64, %56
store i32 0, ptr %2, align 4
br label %138
126: ; preds = %124
br label %127
127: ; preds = %126, %51
br label %128
128: ; preds = %127, %34
br label %129
129: ; preds = %128, %23
%130 = load i32, ptr %5, align 4
%131 = load i32, ptr %6, align 4
%132 = icmp slt i32 %130, %131
br i1 %132, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %129
br label %133
133: ; preds = %._crit_edge, %1
%134 = load i32, ptr %5, align 4
%135 = load i32, ptr %6, align 4
%136 = icmp sge i32 %134, %135
%137 = zext i1 %136 to i32
store i32 %137, ptr %2, align 4
br label %138
138: ; preds = %133, %125, %123
%139 = load i32, ptr %2, align 4
ret i32 %139
}
declare i32 @strlen(ptr noundef) #1
declare i32 @valid(i8 noundef signext) #1
declare i64 @isalpha(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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.