llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmpgm46pksp.c'
source_filename = "/tmp/tmpgm46pksp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"haha\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] 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 ptr, align 8
store i32 0, ptr %1, align 4
store ptr @.str, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i8, ptr %3, align 1
%5 = load ptr, ptr %2, align 8
%6 = load i8, ptr %5, align 1
%7 = sext i8 %6 to i32
%8 = sub nsw i32 %7, 32
%9 = trunc i32 %8 to i8
%10 = call i32 @printf(ptr noundef @.str.1, i8 noundef signext %4, i8 noundef signext %9)
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 1
%13 = load i8, ptr %12, align 1
%14 = load ptr, ptr %2, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 1
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = sub nsw i32 %17, 32
%19 = trunc i32 %18 to i8
%20 = call i32 @printf(ptr noundef @.str.1, i8 noundef signext %13, i8 noundef signext %19)
ret i32 0
}
declare i32 @printf(ptr noundef, 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/tmpgm46pksp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"haha\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] 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 ptr, align 8
store i32 0, ptr %1, align 4
store ptr @.str, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i8, ptr %3, align 1
%5 = load ptr, ptr %2, align 8
%6 = load i8, ptr %5, align 1
%7 = sext i8 %6 to i32
%8 = sub nsw i32 %7, 32
%9 = trunc i32 %8 to i8
%10 = call i32 @printf(ptr noundef @.str.1, i8 noundef signext %4, i8 noundef signext %9)
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 1
%13 = load i8, ptr %12, align 1
%14 = load ptr, ptr %2, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 1
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = sub nsw i32 %17, 32
%19 = trunc i32 %18 to i8
%20 = call i32 @printf(ptr noundef @.str.1, i8 noundef signext %13, i8 noundef signext %19)
ret i32 0
}
declare i32 @printf(ptr noundef, 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/tmpsbewgg7r.c'
source_filename = "/tmp/tmpsbewgg7r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @shutdown_hardware() #0 {
%1 = call i32 (...) @shutdown_gpio()
ret void
}
declare i32 @shutdown_gpio(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsbewgg7r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @shutdown_hardware() #0 {
%1 = call i32 (...) @shutdown_gpio()
ret void
}
declare i32 @shutdown_gpio(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_0tpp7dt.c'
source_filename = "/tmp/tmp_0tpp7dt.c"
target datalayout = "e-m:e-p270: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.hiddev_report_info = type { i32, i32, i32, i32, i32 }
%struct.hiddev_usage_ref = type { i32, i32, i32, i32, i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [54 x i8] c"Control 0x%x is hidden because it's probably broken.\0A\00", align 1
@HIDIOCSUSAGE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [52 x i8] c"HIDIOCSUSAGE failed - unable to set control value.\0A\00", align 1
@HIDIOCSREPORT = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [53 x i8] c"HIDIOCSREPORT failed - unable to set control value.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @set_control_value(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 %struct.hiddev_report_info, align 4
%15 = alloca %struct.hiddev_usage_ref, 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
%16 = load i32, ptr %10, align 4
%17 = call i64 @control_hidden(i32 noundef %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %23
19: ; preds = %6
%20 = load i32, ptr @stderr, align 4
%21 = load i32, ptr %10, align 4
%22 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %20, ptr noundef @.str, i32 noundef %21)
store i32 0, ptr %7, align 4
br label %57
23: ; preds = %6
%24 = getelementptr inbounds %struct.hiddev_report_info, ptr %14, i32 0, i32 0
%25 = load i32, ptr %9, align 4
store i32 %25, ptr %24, align 4
%26 = getelementptr inbounds %struct.hiddev_report_info, ptr %14, i32 0, i32 1
%27 = load i32, ptr %10, align 4
store i32 %27, ptr %26, align 4
%28 = getelementptr inbounds %struct.hiddev_report_info, ptr %14, i32 0, i32 2
store i32 0, ptr %28, align 4
%29 = getelementptr inbounds %struct.hiddev_report_info, ptr %14, i32 0, i32 3
store i32 0, ptr %29, align 4
%30 = getelementptr inbounds %struct.hiddev_report_info, ptr %14, i32 0, i32 4
store i32 0, ptr %30, align 4
%31 = getelementptr inbounds %struct.hiddev_usage_ref, ptr %15, i32 0, i32 0
%32 = load i32, ptr %9, align 4
store i32 %32, ptr %31, align 4
%33 = getelementptr inbounds %struct.hiddev_usage_ref, ptr %15, i32 0, i32 1
%34 = load i32, ptr %10, align 4
store i32 %34, ptr %33, align 4
%35 = getelementptr inbounds %struct.hiddev_usage_ref, ptr %15, i32 0, i32 2
%36 = load i32, ptr %11, align 4
store i32 %36, ptr %35, align 4
%37 = getelementptr inbounds %struct.hiddev_usage_ref, ptr %15, i32 0, i32 3
%38 = load i32, ptr %12, align 4
store i32 %38, ptr %37, align 4
%39 = getelementptr inbounds %struct.hiddev_usage_ref, ptr %15, i32 0, i32 4
%40 = load i32, ptr %13, align 4
store i32 %40, ptr %39, align 4
%41 = load i32, ptr %8, align 4
%42 = load i32, ptr @HIDIOCSUSAGE, align 4
%43 = call i64 @ioctl(i32 noundef %41, i32 noundef %42, ptr noundef %15)
%44 = icmp slt i64 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %23
%46 = load i32, ptr @stderr, align 4
%47 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %46, ptr noundef @.str.1)
store i32 0, ptr %7, align 4
br label %57
48: ; preds = %23
%49 = load i32, ptr %8, align 4
%50 = load i32, ptr @HIDIOCSREPORT, align 4
%51 = call i64 @ioctl(i32 noundef %49, i32 noundef %50, ptr noundef %14)
%52 = icmp slt i64 %51, 0
br i1 %52, label %53, label %56
53: ; preds = %48
%54 = load i32, ptr @stderr, align 4
%55 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %54, ptr noundef @.str.2)
store i32 0, ptr %7, align 4
br label %57
56: ; preds = %48
store i32 1, ptr %7, align 4
br label %57
57: ; preds = %56, %53, %45, %19
%58 = load i32, ptr %7, align 4
ret i32 %58
}
declare i64 @control_hidden(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i64 @ioctl(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/tmp_0tpp7dt.c"
target datalayout = "e-m:e-p270: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.hiddev_report_info = type { i32, i32, i32, i32, i32 }
%struct.hiddev_usage_ref = type { i32, i32, i32, i32, i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [54 x i8] c"Control 0x%x is hidden because it's probably broken.\0A\00", align 1
@HIDIOCSUSAGE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [52 x i8] c"HIDIOCSUSAGE failed - unable to set control value.\0A\00", align 1
@HIDIOCSREPORT = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [53 x i8] c"HIDIOCSREPORT failed - unable to set control value.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @set_control_value(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 %struct.hiddev_report_info, align 4
%15 = alloca %struct.hiddev_usage_ref, 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
%16 = load i32, ptr %10, align 4
%17 = call i64 @control_hidden(i32 noundef %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %23
19: ; preds = %6
%20 = load i32, ptr @stderr, align 4
%21 = load i32, ptr %10, align 4
%22 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %20, ptr noundef @.str, i32 noundef %21)
store i32 0, ptr %7, align 4
br label %57
23: ; preds = %6
%24 = getelementptr inbounds %struct.hiddev_report_info, ptr %14, i32 0, i32 0
%25 = load i32, ptr %9, align 4
store i32 %25, ptr %24, align 4
%26 = getelementptr inbounds %struct.hiddev_report_info, ptr %14, i32 0, i32 1
%27 = load i32, ptr %10, align 4
store i32 %27, ptr %26, align 4
%28 = getelementptr inbounds %struct.hiddev_report_info, ptr %14, i32 0, i32 2
store i32 0, ptr %28, align 4
%29 = getelementptr inbounds %struct.hiddev_report_info, ptr %14, i32 0, i32 3
store i32 0, ptr %29, align 4
%30 = getelementptr inbounds %struct.hiddev_report_info, ptr %14, i32 0, i32 4
store i32 0, ptr %30, align 4
%31 = getelementptr inbounds %struct.hiddev_usage_ref, ptr %15, i32 0, i32 0
%32 = load i32, ptr %9, align 4
store i32 %32, ptr %31, align 4
%33 = getelementptr inbounds %struct.hiddev_usage_ref, ptr %15, i32 0, i32 1
%34 = load i32, ptr %10, align 4
store i32 %34, ptr %33, align 4
%35 = getelementptr inbounds %struct.hiddev_usage_ref, ptr %15, i32 0, i32 2
%36 = load i32, ptr %11, align 4
store i32 %36, ptr %35, align 4
%37 = getelementptr inbounds %struct.hiddev_usage_ref, ptr %15, i32 0, i32 3
%38 = load i32, ptr %12, align 4
store i32 %38, ptr %37, align 4
%39 = getelementptr inbounds %struct.hiddev_usage_ref, ptr %15, i32 0, i32 4
%40 = load i32, ptr %13, align 4
store i32 %40, ptr %39, align 4
%41 = load i32, ptr %8, align 4
%42 = load i32, ptr @HIDIOCSUSAGE, align 4
%43 = call i64 @ioctl(i32 noundef %41, i32 noundef %42, ptr noundef %15)
%44 = icmp slt i64 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %23
%46 = load i32, ptr @stderr, align 4
%47 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %46, ptr noundef @.str.1)
store i32 0, ptr %7, align 4
br label %57
48: ; preds = %23
%49 = load i32, ptr %8, align 4
%50 = load i32, ptr @HIDIOCSREPORT, align 4
%51 = call i64 @ioctl(i32 noundef %49, i32 noundef %50, ptr noundef %14)
%52 = icmp slt i64 %51, 0
br i1 %52, label %53, label %56
53: ; preds = %48
%54 = load i32, ptr @stderr, align 4
%55 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %54, ptr noundef @.str.2)
store i32 0, ptr %7, align 4
br label %57
56: ; preds = %48
store i32 1, ptr %7, align 4
br label %57
57: ; preds = %56, %53, %45, %19
%58 = load i32, ptr %7, align 4
ret i32 %58
}
declare i64 @control_hidden(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i64 @ioctl(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/tmpurap9qxm.c'
source_filename = "/tmp/tmpurap9qxm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @insertion(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 ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%10 = load i32, ptr %5, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %7, align 4
br label %12
12: ; preds = %58, %3
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %6, align 4
%15 = icmp sle i32 %13, %14
br i1 %15, label %16, label %61
16: ; preds = %12
%17 = load i32, ptr %7, align 4
%18 = sub nsw i32 %17, 1
store i32 %18, ptr %8, align 4
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds ptr, ptr %19, i64 %21
%23 = load ptr, ptr %22, align 8
store ptr %23, ptr %9, align 8
br label %24
24: ; preds = %38, %16
%25 = load i32, ptr %8, align 4
%26 = icmp sge i32 %25, 0
br i1 %26, label %27, label %36
27: ; preds = %24
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %8, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds ptr, ptr %28, i64 %30
%32 = load ptr, ptr %31, align 8
%33 = load ptr, ptr %9, align 8
%34 = call i64 @strcmp(ptr noundef %32, ptr noundef %33)
%35 = icmp sgt i64 %34, 0
br label %36
36: ; preds = %27, %24
%37 = phi i1 [ false, %24 ], [ %35, %27 ]
br i1 %37, label %38, label %51
38: ; preds = %36
%39 = load ptr, ptr %4, align 8
%40 = load i32, ptr %8, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds ptr, ptr %39, i64 %41
%43 = load ptr, ptr %42, align 8
%44 = load ptr, ptr %4, align 8
%45 = load i32, ptr %8, align 4
%46 = add nsw i32 %45, 1
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds ptr, ptr %44, i64 %47
store ptr %43, ptr %48, align 8
%49 = load i32, ptr %8, align 4
%50 = add nsw i32 %49, -1
store i32 %50, ptr %8, align 4
br label %24, !llvm.loop !6
51: ; preds = %36
%52 = load ptr, ptr %9, align 8
%53 = load ptr, ptr %4, align 8
%54 = load i32, ptr %8, align 4
%55 = add nsw i32 %54, 1
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds ptr, ptr %53, i64 %56
store ptr %52, ptr %57, align 8
br label %58
58: ; preds = %51
%59 = load i32, ptr %7, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %7, align 4
br label %12, !llvm.loop !8
61: ; preds = %12
ret void
}
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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpurap9qxm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @insertion(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 ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%10 = load i32, ptr %5, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %6, align 4
%14 = icmp sle i32 %12, %13
br i1 %14, label %.lr.ph, label %63
.lr.ph: ; preds = %3
br label %15
15: ; preds = %.lr.ph, %57
%16 = load i32, ptr %7, align 4
%17 = sub nsw i32 %16, 1
store i32 %17, ptr %8, align 4
%18 = load ptr, ptr %4, align 8
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds ptr, ptr %18, i64 %20
%22 = load ptr, ptr %21, align 8
store ptr %22, ptr %9, align 8
br label %23
23: ; preds = %37, %15
%24 = load i32, ptr %8, align 4
%25 = icmp sge i32 %24, 0
br i1 %25, label %26, label %35
26: ; preds = %23
%27 = load ptr, ptr %4, align 8
%28 = load i32, ptr %8, 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 ptr, ptr %9, align 8
%33 = call i64 @strcmp(ptr noundef %31, ptr noundef %32)
%34 = icmp sgt i64 %33, 0
br label %35
35: ; preds = %26, %23
%36 = phi i1 [ false, %23 ], [ %34, %26 ]
br i1 %36, label %37, label %50
37: ; preds = %35
%38 = load ptr, ptr %4, align 8
%39 = load i32, ptr %8, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds ptr, ptr %38, i64 %40
%42 = load ptr, ptr %41, align 8
%43 = load ptr, ptr %4, align 8
%44 = load i32, ptr %8, align 4
%45 = add nsw i32 %44, 1
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds ptr, ptr %43, i64 %46
store ptr %42, ptr %47, align 8
%48 = load i32, ptr %8, align 4
%49 = add nsw i32 %48, -1
store i32 %49, ptr %8, align 4
br label %23, !llvm.loop !6
50: ; preds = %35
%51 = load ptr, ptr %9, align 8
%52 = load ptr, ptr %4, align 8
%53 = load i32, ptr %8, align 4
%54 = add nsw i32 %53, 1
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds ptr, ptr %52, i64 %55
store ptr %51, ptr %56, align 8
br label %57
57: ; preds = %50
%58 = load i32, ptr %7, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %7, align 4
%60 = load i32, ptr %7, align 4
%61 = load i32, ptr %6, align 4
%62 = icmp sle i32 %60, %61
br i1 %62, label %15, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %57
br label %63
63: ; preds = %._crit_edge, %3
ret void
}
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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpe28jussc.c'
source_filename = "/tmp/tmpe28jussc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @CatPath(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
store i32 %7, ptr %5, align 4
%8 = load ptr, ptr %4, align 8
%9 = getelementptr inbounds i8, ptr %8, i64 1
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 58
br i1 %12, label %13, label %14
13: ; preds = %2
store i32 0, ptr %5, align 4
br label %14
14: ; preds = %13, %2
%15 = load ptr, ptr %4, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 0
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 47
br i1 %19, label %29, label %20
20: ; preds = %14
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 0
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 46
br i1 %25, label %29, label %26
26: ; preds = %20
%27 = load i32, ptr %5, align 4
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %33
29: ; preds = %26, %20, %14
%30 = load ptr, ptr %3, align 8
%31 = load ptr, ptr %4, align 8
%32 = call i32 @strcpy(ptr noundef %30, ptr noundef %31)
br label %56
33: ; preds = %26
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %5, align 4
%36 = sub nsw i32 %35, 1
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %34, i64 %37
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp ne i32 %40, 47
br i1 %41, label %42, label %52
42: ; preds = %33
%43 = load ptr, ptr %3, align 8
%44 = load i32, ptr %5, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %5, align 4
%46 = sext i32 %44 to i64
%47 = getelementptr inbounds i8, ptr %43, i64 %46
store i8 47, ptr %47, align 1
%48 = load ptr, ptr %3, align 8
%49 = load i32, ptr %5, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i8, ptr %48, i64 %50
store i8 0, ptr %51, align 1
br label %52
52: ; preds = %42, %33
%53 = load ptr, ptr %3, align 8
%54 = load ptr, ptr %4, align 8
%55 = call i32 @strcat(ptr noundef %53, ptr noundef %54)
br label %56
56: ; preds = %52, %29
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(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/tmpe28jussc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @CatPath(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
store i32 %7, ptr %5, align 4
%8 = load ptr, ptr %4, align 8
%9 = getelementptr inbounds i8, ptr %8, i64 1
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 58
br i1 %12, label %13, label %14
13: ; preds = %2
store i32 0, ptr %5, align 4
br label %14
14: ; preds = %13, %2
%15 = load ptr, ptr %4, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 0
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 47
br i1 %19, label %29, label %20
20: ; preds = %14
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 0
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 46
br i1 %25, label %29, label %26
26: ; preds = %20
%27 = load i32, ptr %5, align 4
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %33
29: ; preds = %26, %20, %14
%30 = load ptr, ptr %3, align 8
%31 = load ptr, ptr %4, align 8
%32 = call i32 @strcpy(ptr noundef %30, ptr noundef %31)
br label %56
33: ; preds = %26
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %5, align 4
%36 = sub nsw i32 %35, 1
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %34, i64 %37
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp ne i32 %40, 47
br i1 %41, label %42, label %52
42: ; preds = %33
%43 = load ptr, ptr %3, align 8
%44 = load i32, ptr %5, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %5, align 4
%46 = sext i32 %44 to i64
%47 = getelementptr inbounds i8, ptr %43, i64 %46
store i8 47, ptr %47, align 1
%48 = load ptr, ptr %3, align 8
%49 = load i32, ptr %5, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i8, ptr %48, i64 %50
store i8 0, ptr %51, align 1
br label %52
52: ; preds = %42, %33
%53 = load ptr, ptr %3, align 8
%54 = load ptr, ptr %4, align 8
%55 = call i32 @strcat(ptr noundef %53, ptr noundef %54)
br label %56
56: ; preds = %52, %29
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(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/tmpxzjxf5b6.c'
source_filename = "/tmp/tmpxzjxf5b6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lexer_append_tokens(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = call i32 @cctools_list_first_item(ptr noundef %7)
br label %9
9: ; preds = %13, %2
%10 = load ptr, ptr %4, align 8
%11 = call ptr @cctools_list_pop_head(ptr noundef %10)
store ptr %11, ptr %5, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %19
13: ; preds = %9
%14 = load ptr, ptr %3, align 8
%15 = load ptr, ptr %5, align 8
%16 = call i32 @lexer_push_token(ptr noundef %14, ptr noundef %15)
%17 = load i32, ptr %6, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %6, align 4
br label %9, !llvm.loop !6
19: ; preds = %9
%20 = load i32, ptr %6, align 4
ret i32 %20
}
declare i32 @cctools_list_first_item(ptr noundef) #1
declare ptr @cctools_list_pop_head(ptr noundef) #1
declare i32 @lexer_push_token(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/tmpxzjxf5b6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lexer_append_tokens(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = call i32 @cctools_list_first_item(ptr noundef %7)
%9 = load ptr, ptr %4, align 8
%10 = call ptr @cctools_list_pop_head(ptr noundef %9)
store ptr %10, ptr %5, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %.lr.ph, label %21
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %12
%13 = load ptr, ptr %3, align 8
%14 = load ptr, ptr %5, align 8
%15 = call i32 @lexer_push_token(ptr noundef %13, ptr noundef %14)
%16 = load i32, ptr %6, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %6, align 4
%18 = load ptr, ptr %4, align 8
%19 = call ptr @cctools_list_pop_head(ptr noundef %18)
store ptr %19, ptr %5, align 8
%20 = icmp ne ptr %19, null
br i1 %20, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %21
21: ; preds = %._crit_edge, %2
%22 = load i32, ptr %6, align 4
ret i32 %22
}
declare i32 @cctools_list_first_item(ptr noundef) #1
declare ptr @cctools_list_pop_head(ptr noundef) #1
declare i32 @lexer_push_token(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/tmpatpyq966.c'
source_filename = "/tmp/tmpatpyq966.c"
target datalayout = "e-m:e-p270: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 { ptr }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @hashbig(ptr noundef %0, i64 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca %union.anon, align 8
%12 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%13 = load i64, ptr %6, align 8
%14 = trunc i64 %13 to i32
%15 = add i32 -559038737, %14
%16 = load i32, ptr %7, align 4
%17 = add i32 %15, %16
store i32 %17, ptr %10, align 4
store i32 %17, ptr %9, align 4
store i32 %17, ptr %8, align 4
%18 = load ptr, ptr %5, align 8
store ptr %18, ptr %11, align 8
%19 = load ptr, ptr %5, align 8
store ptr %19, ptr %12, align 8
br label %20
20: ; preds = %23, %3
%21 = load i64, ptr %6, align 8
%22 = icmp ugt i64 %21, 12
br i1 %22, label %23, label %187
23: ; preds = %20
%24 = load ptr, ptr %12, align 8
%25 = getelementptr inbounds i64, ptr %24, i64 0
%26 = load i64, ptr %25, align 8
%27 = trunc i64 %26 to i32
%28 = shl i32 %27, 24
%29 = load i32, ptr %8, align 4
%30 = add nsw i32 %29, %28
store i32 %30, ptr %8, align 4
%31 = load ptr, ptr %12, align 8
%32 = getelementptr inbounds i64, ptr %31, i64 1
%33 = load i64, ptr %32, align 8
%34 = trunc i64 %33 to i32
%35 = shl i32 %34, 16
%36 = load i32, ptr %8, align 4
%37 = add nsw i32 %36, %35
store i32 %37, ptr %8, align 4
%38 = load ptr, ptr %12, align 8
%39 = getelementptr inbounds i64, ptr %38, i64 2
%40 = load i64, ptr %39, align 8
%41 = trunc i64 %40 to i32
%42 = shl i32 %41, 8
%43 = load i32, ptr %8, align 4
%44 = add nsw i32 %43, %42
store i32 %44, ptr %8, align 4
%45 = load ptr, ptr %12, align 8
%46 = getelementptr inbounds i64, ptr %45, i64 3
%47 = load i64, ptr %46, align 8
%48 = trunc i64 %47 to i32
%49 = load i32, ptr %8, align 4
%50 = add nsw i32 %49, %48
store i32 %50, ptr %8, align 4
%51 = load ptr, ptr %12, align 8
%52 = getelementptr inbounds i64, ptr %51, i64 4
%53 = load i64, ptr %52, align 8
%54 = trunc i64 %53 to i32
%55 = shl i32 %54, 24
%56 = load i32, ptr %9, align 4
%57 = add nsw i32 %56, %55
store i32 %57, ptr %9, align 4
%58 = load ptr, ptr %12, align 8
%59 = getelementptr inbounds i64, ptr %58, i64 5
%60 = load i64, ptr %59, align 8
%61 = trunc i64 %60 to i32
%62 = shl i32 %61, 16
%63 = load i32, ptr %9, align 4
%64 = add nsw i32 %63, %62
store i32 %64, ptr %9, align 4
%65 = load ptr, ptr %12, align 8
%66 = getelementptr inbounds i64, ptr %65, i64 6
%67 = load i64, ptr %66, align 8
%68 = trunc i64 %67 to i32
%69 = shl i32 %68, 8
%70 = load i32, ptr %9, align 4
%71 = add nsw i32 %70, %69
store i32 %71, ptr %9, align 4
%72 = load ptr, ptr %12, align 8
%73 = getelementptr inbounds i64, ptr %72, i64 7
%74 = load i64, ptr %73, align 8
%75 = trunc i64 %74 to i32
%76 = load i32, ptr %9, align 4
%77 = add nsw i32 %76, %75
store i32 %77, ptr %9, align 4
%78 = load ptr, ptr %12, align 8
%79 = getelementptr inbounds i64, ptr %78, i64 8
%80 = load i64, ptr %79, align 8
%81 = trunc i64 %80 to i32
%82 = shl i32 %81, 24
%83 = load i32, ptr %10, align 4
%84 = add nsw i32 %83, %82
store i32 %84, ptr %10, align 4
%85 = load ptr, ptr %12, align 8
%86 = getelementptr inbounds i64, ptr %85, i64 9
%87 = load i64, ptr %86, align 8
%88 = trunc i64 %87 to i32
%89 = shl i32 %88, 16
%90 = load i32, ptr %10, align 4
%91 = add nsw i32 %90, %89
store i32 %91, ptr %10, align 4
%92 = load ptr, ptr %12, align 8
%93 = getelementptr inbounds i64, ptr %92, i64 10
%94 = load i64, ptr %93, align 8
%95 = trunc i64 %94 to i32
%96 = shl i32 %95, 8
%97 = load i32, ptr %10, align 4
%98 = add nsw i32 %97, %96
store i32 %98, ptr %10, align 4
%99 = load ptr, ptr %12, align 8
%100 = getelementptr inbounds i64, ptr %99, i64 11
%101 = load i64, ptr %100, align 8
%102 = trunc i64 %101 to i32
%103 = load i32, ptr %10, align 4
%104 = add nsw i32 %103, %102
store i32 %104, ptr %10, align 4
%105 = load i32, ptr %10, align 4
%106 = load i32, ptr %8, align 4
%107 = sub nsw i32 %106, %105
store i32 %107, ptr %8, align 4
%108 = load i32, ptr %10, align 4
%109 = shl i32 %108, 4
%110 = load i32, ptr %10, align 4
%111 = ashr i32 %110, 28
%112 = or i32 %109, %111
%113 = load i32, ptr %8, align 4
%114 = xor i32 %113, %112
store i32 %114, ptr %8, align 4
%115 = load i32, ptr %9, align 4
%116 = load i32, ptr %10, align 4
%117 = add nsw i32 %116, %115
store i32 %117, ptr %10, align 4
%118 = load i32, ptr %8, align 4
%119 = load i32, ptr %9, align 4
%120 = sub nsw i32 %119, %118
store i32 %120, ptr %9, align 4
%121 = load i32, ptr %8, align 4
%122 = shl i32 %121, 6
%123 = load i32, ptr %8, align 4
%124 = ashr i32 %123, 26
%125 = or i32 %122, %124
%126 = load i32, ptr %9, align 4
%127 = xor i32 %126, %125
store i32 %127, ptr %9, align 4
%128 = load i32, ptr %10, align 4
%129 = load i32, ptr %8, align 4
%130 = add nsw i32 %129, %128
store i32 %130, ptr %8, align 4
%131 = load i32, ptr %9, align 4
%132 = load i32, ptr %10, align 4
%133 = sub nsw i32 %132, %131
store i32 %133, ptr %10, align 4
%134 = load i32, ptr %9, align 4
%135 = shl i32 %134, 8
%136 = load i32, ptr %9, align 4
%137 = ashr i32 %136, 24
%138 = or i32 %135, %137
%139 = load i32, ptr %10, align 4
%140 = xor i32 %139, %138
store i32 %140, ptr %10, align 4
%141 = load i32, ptr %8, align 4
%142 = load i32, ptr %9, align 4
%143 = add nsw i32 %142, %141
store i32 %143, ptr %9, align 4
%144 = load i32, ptr %10, align 4
%145 = load i32, ptr %8, align 4
%146 = sub nsw i32 %145, %144
store i32 %146, ptr %8, align 4
%147 = load i32, ptr %10, align 4
%148 = shl i32 %147, 16
%149 = load i32, ptr %10, align 4
%150 = ashr i32 %149, 16
%151 = or i32 %148, %150
%152 = load i32, ptr %8, align 4
%153 = xor i32 %152, %151
store i32 %153, ptr %8, align 4
%154 = load i32, ptr %9, align 4
%155 = load i32, ptr %10, align 4
%156 = add nsw i32 %155, %154
store i32 %156, ptr %10, align 4
%157 = load i32, ptr %8, align 4
%158 = load i32, ptr %9, align 4
%159 = sub nsw i32 %158, %157
store i32 %159, ptr %9, align 4
%160 = load i32, ptr %8, align 4
%161 = shl i32 %160, 19
%162 = load i32, ptr %8, align 4
%163 = ashr i32 %162, 13
%164 = or i32 %161, %163
%165 = load i32, ptr %9, align 4
%166 = xor i32 %165, %164
store i32 %166, ptr %9, align 4
%167 = load i32, ptr %10, align 4
%168 = load i32, ptr %8, align 4
%169 = add nsw i32 %168, %167
store i32 %169, ptr %8, align 4
%170 = load i32, ptr %9, align 4
%171 = load i32, ptr %10, align 4
%172 = sub nsw i32 %171, %170
store i32 %172, ptr %10, align 4
%173 = load i32, ptr %9, align 4
%174 = shl i32 %173, 4
%175 = load i32, ptr %9, align 4
%176 = ashr i32 %175, 28
%177 = or i32 %174, %176
%178 = load i32, ptr %10, align 4
%179 = xor i32 %178, %177
store i32 %179, ptr %10, align 4
%180 = load i32, ptr %8, align 4
%181 = load i32, ptr %9, align 4
%182 = add nsw i32 %181, %180
store i32 %182, ptr %9, align 4
%183 = load i64, ptr %6, align 8
%184 = sub i64 %183, 12
store i64 %184, ptr %6, align 8
%185 = load ptr, ptr %12, align 8
%186 = getelementptr inbounds i64, ptr %185, i64 12
store ptr %186, ptr %12, align 8
br label %20, !llvm.loop !6
187: ; preds = %20
%188 = load i64, ptr %6, align 8
switch i64 %188, label %287 [
i64 12, label %189
i64 11, label %197
i64 10, label %205
i64 9, label %213
i64 8, label %221
i64 7, label %229
i64 6, label %237
i64 5, label %245
i64 4, label %253
i64 3, label %261
i64 2, label %269
i64 1, label %277
i64 0, label %285
]
189: ; preds = %187
%190 = load ptr, ptr %12, align 8
%191 = getelementptr inbounds i64, ptr %190, i64 11
%192 = load i64, ptr %191, align 8
%193 = load i32, ptr %10, align 4
%194 = sext i32 %193 to i64
%195 = add nsw i64 %194, %192
%196 = trunc i64 %195 to i32
store i32 %196, ptr %10, align 4
br label %197
197: ; preds = %187, %189
%198 = load ptr, ptr %12, align 8
%199 = getelementptr inbounds i64, ptr %198, i64 10
%200 = load i64, ptr %199, align 8
%201 = trunc i64 %200 to i32
%202 = shl i32 %201, 8
%203 = load i32, ptr %10, align 4
%204 = add nsw i32 %203, %202
store i32 %204, ptr %10, align 4
br label %205
205: ; preds = %187, %197
%206 = load ptr, ptr %12, align 8
%207 = getelementptr inbounds i64, ptr %206, i64 9
%208 = load i64, ptr %207, align 8
%209 = trunc i64 %208 to i32
%210 = shl i32 %209, 16
%211 = load i32, ptr %10, align 4
%212 = add nsw i32 %211, %210
store i32 %212, ptr %10, align 4
br label %213
213: ; preds = %187, %205
%214 = load ptr, ptr %12, align 8
%215 = getelementptr inbounds i64, ptr %214, i64 8
%216 = load i64, ptr %215, align 8
%217 = trunc i64 %216 to i32
%218 = shl i32 %217, 24
%219 = load i32, ptr %10, align 4
%220 = add nsw i32 %219, %218
store i32 %220, ptr %10, align 4
br label %221
221: ; preds = %187, %213
%222 = load ptr, ptr %12, align 8
%223 = getelementptr inbounds i64, ptr %222, i64 7
%224 = load i64, ptr %223, align 8
%225 = load i32, ptr %9, align 4
%226 = sext i32 %225 to i64
%227 = add nsw i64 %226, %224
%228 = trunc i64 %227 to i32
store i32 %228, ptr %9, align 4
br label %229
229: ; preds = %187, %221
%230 = load ptr, ptr %12, align 8
%231 = getelementptr inbounds i64, ptr %230, i64 6
%232 = load i64, ptr %231, align 8
%233 = trunc i64 %232 to i32
%234 = shl i32 %233, 8
%235 = load i32, ptr %9, align 4
%236 = add nsw i32 %235, %234
store i32 %236, ptr %9, align 4
br label %237
237: ; preds = %187, %229
%238 = load ptr, ptr %12, align 8
%239 = getelementptr inbounds i64, ptr %238, i64 5
%240 = load i64, ptr %239, align 8
%241 = trunc i64 %240 to i32
%242 = shl i32 %241, 16
%243 = load i32, ptr %9, align 4
%244 = add nsw i32 %243, %242
store i32 %244, ptr %9, align 4
br label %245
245: ; preds = %187, %237
%246 = load ptr, ptr %12, align 8
%247 = getelementptr inbounds i64, ptr %246, i64 4
%248 = load i64, ptr %247, align 8
%249 = trunc i64 %248 to i32
%250 = shl i32 %249, 24
%251 = load i32, ptr %9, align 4
%252 = add nsw i32 %251, %250
store i32 %252, ptr %9, align 4
br label %253
253: ; preds = %187, %245
%254 = load ptr, ptr %12, align 8
%255 = getelementptr inbounds i64, ptr %254, i64 3
%256 = load i64, ptr %255, align 8
%257 = load i32, ptr %8, align 4
%258 = sext i32 %257 to i64
%259 = add nsw i64 %258, %256
%260 = trunc i64 %259 to i32
store i32 %260, ptr %8, align 4
br label %261
261: ; preds = %187, %253
%262 = load ptr, ptr %12, align 8
%263 = getelementptr inbounds i64, ptr %262, i64 2
%264 = load i64, ptr %263, align 8
%265 = trunc i64 %264 to i32
%266 = shl i32 %265, 8
%267 = load i32, ptr %8, align 4
%268 = add nsw i32 %267, %266
store i32 %268, ptr %8, align 4
br label %269
269: ; preds = %187, %261
%270 = load ptr, ptr %12, align 8
%271 = getelementptr inbounds i64, ptr %270, i64 1
%272 = load i64, ptr %271, align 8
%273 = trunc i64 %272 to i32
%274 = shl i32 %273, 16
%275 = load i32, ptr %8, align 4
%276 = add nsw i32 %275, %274
store i32 %276, ptr %8, align 4
br label %277
277: ; preds = %187, %269
%278 = load ptr, ptr %12, align 8
%279 = getelementptr inbounds i64, ptr %278, i64 0
%280 = load i64, ptr %279, align 8
%281 = trunc i64 %280 to i32
%282 = shl i32 %281, 24
%283 = load i32, ptr %8, align 4
%284 = add nsw i32 %283, %282
store i32 %284, ptr %8, align 4
br label %287
285: ; preds = %187
%286 = load i32, ptr %10, align 4
store i32 %286, ptr %4, align 4
br label %359
287: ; preds = %187, %277
%288 = load i32, ptr %9, align 4
%289 = load i32, ptr %10, align 4
%290 = xor i32 %289, %288
store i32 %290, ptr %10, align 4
%291 = load i32, ptr %9, align 4
%292 = shl i32 %291, 14
%293 = load i32, ptr %9, align 4
%294 = ashr i32 %293, 18
%295 = or i32 %292, %294
%296 = load i32, ptr %10, align 4
%297 = sub nsw i32 %296, %295
store i32 %297, ptr %10, align 4
%298 = load i32, ptr %10, align 4
%299 = load i32, ptr %8, align 4
%300 = xor i32 %299, %298
store i32 %300, ptr %8, align 4
%301 = load i32, ptr %10, align 4
%302 = shl i32 %301, 11
%303 = load i32, ptr %10, align 4
%304 = ashr i32 %303, 21
%305 = or i32 %302, %304
%306 = load i32, ptr %8, align 4
%307 = sub nsw i32 %306, %305
store i32 %307, ptr %8, align 4
%308 = load i32, ptr %8, align 4
%309 = load i32, ptr %9, align 4
%310 = xor i32 %309, %308
store i32 %310, ptr %9, align 4
%311 = load i32, ptr %8, align 4
%312 = shl i32 %311, 25
%313 = load i32, ptr %8, align 4
%314 = ashr i32 %313, 7
%315 = or i32 %312, %314
%316 = load i32, ptr %9, align 4
%317 = sub nsw i32 %316, %315
store i32 %317, ptr %9, align 4
%318 = load i32, ptr %9, align 4
%319 = load i32, ptr %10, align 4
%320 = xor i32 %319, %318
store i32 %320, ptr %10, align 4
%321 = load i32, ptr %9, align 4
%322 = shl i32 %321, 16
%323 = load i32, ptr %9, align 4
%324 = ashr i32 %323, 16
%325 = or i32 %322, %324
%326 = load i32, ptr %10, align 4
%327 = sub nsw i32 %326, %325
store i32 %327, ptr %10, align 4
%328 = load i32, ptr %10, align 4
%329 = load i32, ptr %8, align 4
%330 = xor i32 %329, %328
store i32 %330, ptr %8, align 4
%331 = load i32, ptr %10, align 4
%332 = shl i32 %331, 4
%333 = load i32, ptr %10, align 4
%334 = ashr i32 %333, 28
%335 = or i32 %332, %334
%336 = load i32, ptr %8, align 4
%337 = sub nsw i32 %336, %335
store i32 %337, ptr %8, align 4
%338 = load i32, ptr %8, align 4
%339 = load i32, ptr %9, align 4
%340 = xor i32 %339, %338
store i32 %340, ptr %9, align 4
%341 = load i32, ptr %8, align 4
%342 = shl i32 %341, 14
%343 = load i32, ptr %8, align 4
%344 = ashr i32 %343, 18
%345 = or i32 %342, %344
%346 = load i32, ptr %9, align 4
%347 = sub nsw i32 %346, %345
store i32 %347, ptr %9, align 4
%348 = load i32, ptr %9, align 4
%349 = load i32, ptr %10, align 4
%350 = xor i32 %349, %348
store i32 %350, ptr %10, align 4
%351 = load i32, ptr %9, align 4
%352 = shl i32 %351, 24
%353 = load i32, ptr %9, align 4
%354 = ashr i32 %353, 8
%355 = or i32 %352, %354
%356 = load i32, ptr %10, align 4
%357 = sub nsw i32 %356, %355
store i32 %357, ptr %10, align 4
%358 = load i32, ptr %10, align 4
store i32 %358, ptr %4, align 4
br label %359
359: ; preds = %287, %285
%360 = load i32, ptr %4, align 4
ret i32 %360
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpatpyq966.c"
target datalayout = "e-m:e-p270: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 { ptr }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @hashbig(ptr noundef %0, i64 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca %union.anon, align 8
%12 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%13 = load i64, ptr %6, align 8
%14 = trunc i64 %13 to i32
%15 = add i32 -559038737, %14
%16 = load i32, ptr %7, align 4
%17 = add i32 %15, %16
store i32 %17, ptr %10, align 4
store i32 %17, ptr %9, align 4
store i32 %17, ptr %8, align 4
%18 = load ptr, ptr %5, align 8
store ptr %18, ptr %11, align 8
%19 = load ptr, ptr %5, align 8
store ptr %19, ptr %12, align 8
%20 = load i64, ptr %6, align 8
%21 = icmp ugt i64 %20, 12
br i1 %21, label %.lr.ph, label %188
.lr.ph: ; preds = %3
br label %22
22: ; preds = %.lr.ph, %22
%23 = load ptr, ptr %12, align 8
%24 = getelementptr inbounds i64, ptr %23, i64 0
%25 = load i64, ptr %24, align 8
%26 = trunc i64 %25 to i32
%27 = shl i32 %26, 24
%28 = load i32, ptr %8, align 4
%29 = add nsw i32 %28, %27
store i32 %29, ptr %8, align 4
%30 = load ptr, ptr %12, align 8
%31 = getelementptr inbounds i64, ptr %30, i64 1
%32 = load i64, ptr %31, align 8
%33 = trunc i64 %32 to i32
%34 = shl i32 %33, 16
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %35, %34
store i32 %36, ptr %8, align 4
%37 = load ptr, ptr %12, align 8
%38 = getelementptr inbounds i64, ptr %37, i64 2
%39 = load i64, ptr %38, align 8
%40 = trunc i64 %39 to i32
%41 = shl i32 %40, 8
%42 = load i32, ptr %8, align 4
%43 = add nsw i32 %42, %41
store i32 %43, ptr %8, align 4
%44 = load ptr, ptr %12, align 8
%45 = getelementptr inbounds i64, ptr %44, i64 3
%46 = load i64, ptr %45, align 8
%47 = trunc i64 %46 to i32
%48 = load i32, ptr %8, align 4
%49 = add nsw i32 %48, %47
store i32 %49, ptr %8, align 4
%50 = load ptr, ptr %12, align 8
%51 = getelementptr inbounds i64, ptr %50, i64 4
%52 = load i64, ptr %51, align 8
%53 = trunc i64 %52 to i32
%54 = shl i32 %53, 24
%55 = load i32, ptr %9, align 4
%56 = add nsw i32 %55, %54
store i32 %56, ptr %9, align 4
%57 = load ptr, ptr %12, align 8
%58 = getelementptr inbounds i64, ptr %57, i64 5
%59 = load i64, ptr %58, align 8
%60 = trunc i64 %59 to i32
%61 = shl i32 %60, 16
%62 = load i32, ptr %9, align 4
%63 = add nsw i32 %62, %61
store i32 %63, ptr %9, align 4
%64 = load ptr, ptr %12, align 8
%65 = getelementptr inbounds i64, ptr %64, i64 6
%66 = load i64, ptr %65, align 8
%67 = trunc i64 %66 to i32
%68 = shl i32 %67, 8
%69 = load i32, ptr %9, align 4
%70 = add nsw i32 %69, %68
store i32 %70, ptr %9, align 4
%71 = load ptr, ptr %12, align 8
%72 = getelementptr inbounds i64, ptr %71, i64 7
%73 = load i64, ptr %72, align 8
%74 = trunc i64 %73 to i32
%75 = load i32, ptr %9, align 4
%76 = add nsw i32 %75, %74
store i32 %76, ptr %9, align 4
%77 = load ptr, ptr %12, align 8
%78 = getelementptr inbounds i64, ptr %77, i64 8
%79 = load i64, ptr %78, align 8
%80 = trunc i64 %79 to i32
%81 = shl i32 %80, 24
%82 = load i32, ptr %10, align 4
%83 = add nsw i32 %82, %81
store i32 %83, ptr %10, align 4
%84 = load ptr, ptr %12, align 8
%85 = getelementptr inbounds i64, ptr %84, i64 9
%86 = load i64, ptr %85, align 8
%87 = trunc i64 %86 to i32
%88 = shl i32 %87, 16
%89 = load i32, ptr %10, align 4
%90 = add nsw i32 %89, %88
store i32 %90, ptr %10, align 4
%91 = load ptr, ptr %12, align 8
%92 = getelementptr inbounds i64, ptr %91, i64 10
%93 = load i64, ptr %92, align 8
%94 = trunc i64 %93 to i32
%95 = shl i32 %94, 8
%96 = load i32, ptr %10, align 4
%97 = add nsw i32 %96, %95
store i32 %97, ptr %10, align 4
%98 = load ptr, ptr %12, align 8
%99 = getelementptr inbounds i64, ptr %98, i64 11
%100 = load i64, ptr %99, align 8
%101 = trunc i64 %100 to i32
%102 = load i32, ptr %10, align 4
%103 = add nsw i32 %102, %101
store i32 %103, ptr %10, align 4
%104 = load i32, ptr %10, align 4
%105 = load i32, ptr %8, align 4
%106 = sub nsw i32 %105, %104
store i32 %106, ptr %8, align 4
%107 = load i32, ptr %10, align 4
%108 = shl i32 %107, 4
%109 = load i32, ptr %10, align 4
%110 = ashr i32 %109, 28
%111 = or i32 %108, %110
%112 = load i32, ptr %8, align 4
%113 = xor i32 %112, %111
store i32 %113, ptr %8, align 4
%114 = load i32, ptr %9, align 4
%115 = load i32, ptr %10, align 4
%116 = add nsw i32 %115, %114
store i32 %116, ptr %10, align 4
%117 = load i32, ptr %8, align 4
%118 = load i32, ptr %9, align 4
%119 = sub nsw i32 %118, %117
store i32 %119, ptr %9, align 4
%120 = load i32, ptr %8, align 4
%121 = shl i32 %120, 6
%122 = load i32, ptr %8, align 4
%123 = ashr i32 %122, 26
%124 = or i32 %121, %123
%125 = load i32, ptr %9, align 4
%126 = xor i32 %125, %124
store i32 %126, ptr %9, align 4
%127 = load i32, ptr %10, align 4
%128 = load i32, ptr %8, align 4
%129 = add nsw i32 %128, %127
store i32 %129, ptr %8, align 4
%130 = load i32, ptr %9, align 4
%131 = load i32, ptr %10, align 4
%132 = sub nsw i32 %131, %130
store i32 %132, ptr %10, align 4
%133 = load i32, ptr %9, align 4
%134 = shl i32 %133, 8
%135 = load i32, ptr %9, align 4
%136 = ashr i32 %135, 24
%137 = or i32 %134, %136
%138 = load i32, ptr %10, align 4
%139 = xor i32 %138, %137
store i32 %139, ptr %10, align 4
%140 = load i32, ptr %8, align 4
%141 = load i32, ptr %9, align 4
%142 = add nsw i32 %141, %140
store i32 %142, ptr %9, align 4
%143 = load i32, ptr %10, align 4
%144 = load i32, ptr %8, align 4
%145 = sub nsw i32 %144, %143
store i32 %145, ptr %8, align 4
%146 = load i32, ptr %10, align 4
%147 = shl i32 %146, 16
%148 = load i32, ptr %10, align 4
%149 = ashr i32 %148, 16
%150 = or i32 %147, %149
%151 = load i32, ptr %8, align 4
%152 = xor i32 %151, %150
store i32 %152, ptr %8, align 4
%153 = load i32, ptr %9, align 4
%154 = load i32, ptr %10, align 4
%155 = add nsw i32 %154, %153
store i32 %155, ptr %10, align 4
%156 = load i32, ptr %8, align 4
%157 = load i32, ptr %9, align 4
%158 = sub nsw i32 %157, %156
store i32 %158, ptr %9, align 4
%159 = load i32, ptr %8, align 4
%160 = shl i32 %159, 19
%161 = load i32, ptr %8, align 4
%162 = ashr i32 %161, 13
%163 = or i32 %160, %162
%164 = load i32, ptr %9, align 4
%165 = xor i32 %164, %163
store i32 %165, ptr %9, align 4
%166 = load i32, ptr %10, align 4
%167 = load i32, ptr %8, align 4
%168 = add nsw i32 %167, %166
store i32 %168, ptr %8, align 4
%169 = load i32, ptr %9, align 4
%170 = load i32, ptr %10, align 4
%171 = sub nsw i32 %170, %169
store i32 %171, ptr %10, align 4
%172 = load i32, ptr %9, align 4
%173 = shl i32 %172, 4
%174 = load i32, ptr %9, align 4
%175 = ashr i32 %174, 28
%176 = or i32 %173, %175
%177 = load i32, ptr %10, align 4
%178 = xor i32 %177, %176
store i32 %178, ptr %10, align 4
%179 = load i32, ptr %8, align 4
%180 = load i32, ptr %9, align 4
%181 = add nsw i32 %180, %179
store i32 %181, ptr %9, align 4
%182 = load i64, ptr %6, align 8
%183 = sub i64 %182, 12
store i64 %183, ptr %6, align 8
%184 = load ptr, ptr %12, align 8
%185 = getelementptr inbounds i64, ptr %184, i64 12
store ptr %185, ptr %12, align 8
%186 = load i64, ptr %6, align 8
%187 = icmp ugt i64 %186, 12
br i1 %187, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %188
188: ; preds = %._crit_edge, %3
%189 = load i64, ptr %6, align 8
switch i64 %189, label %288 [
i64 12, label %190
i64 11, label %198
i64 10, label %206
i64 9, label %214
i64 8, label %222
i64 7, label %230
i64 6, label %238
i64 5, label %246
i64 4, label %254
i64 3, label %262
i64 2, label %270
i64 1, label %278
i64 0, label %286
]
190: ; preds = %188
%191 = load ptr, ptr %12, align 8
%192 = getelementptr inbounds i64, ptr %191, i64 11
%193 = load i64, ptr %192, align 8
%194 = load i32, ptr %10, align 4
%195 = sext i32 %194 to i64
%196 = add nsw i64 %195, %193
%197 = trunc i64 %196 to i32
store i32 %197, ptr %10, align 4
br label %198
198: ; preds = %190, %188
%199 = load ptr, ptr %12, align 8
%200 = getelementptr inbounds i64, ptr %199, i64 10
%201 = load i64, ptr %200, align 8
%202 = trunc i64 %201 to i32
%203 = shl i32 %202, 8
%204 = load i32, ptr %10, align 4
%205 = add nsw i32 %204, %203
store i32 %205, ptr %10, align 4
br label %206
206: ; preds = %198, %188
%207 = load ptr, ptr %12, align 8
%208 = getelementptr inbounds i64, ptr %207, i64 9
%209 = load i64, ptr %208, align 8
%210 = trunc i64 %209 to i32
%211 = shl i32 %210, 16
%212 = load i32, ptr %10, align 4
%213 = add nsw i32 %212, %211
store i32 %213, ptr %10, align 4
br label %214
214: ; preds = %206, %188
%215 = load ptr, ptr %12, align 8
%216 = getelementptr inbounds i64, ptr %215, i64 8
%217 = load i64, ptr %216, align 8
%218 = trunc i64 %217 to i32
%219 = shl i32 %218, 24
%220 = load i32, ptr %10, align 4
%221 = add nsw i32 %220, %219
store i32 %221, ptr %10, align 4
br label %222
222: ; preds = %214, %188
%223 = load ptr, ptr %12, align 8
%224 = getelementptr inbounds i64, ptr %223, i64 7
%225 = load i64, ptr %224, align 8
%226 = load i32, ptr %9, align 4
%227 = sext i32 %226 to i64
%228 = add nsw i64 %227, %225
%229 = trunc i64 %228 to i32
store i32 %229, ptr %9, align 4
br label %230
230: ; preds = %222, %188
%231 = load ptr, ptr %12, align 8
%232 = getelementptr inbounds i64, ptr %231, i64 6
%233 = load i64, ptr %232, align 8
%234 = trunc i64 %233 to i32
%235 = shl i32 %234, 8
%236 = load i32, ptr %9, align 4
%237 = add nsw i32 %236, %235
store i32 %237, ptr %9, align 4
br label %238
238: ; preds = %230, %188
%239 = load ptr, ptr %12, align 8
%240 = getelementptr inbounds i64, ptr %239, i64 5
%241 = load i64, ptr %240, align 8
%242 = trunc i64 %241 to i32
%243 = shl i32 %242, 16
%244 = load i32, ptr %9, align 4
%245 = add nsw i32 %244, %243
store i32 %245, ptr %9, align 4
br label %246
246: ; preds = %238, %188
%247 = load ptr, ptr %12, align 8
%248 = getelementptr inbounds i64, ptr %247, i64 4
%249 = load i64, ptr %248, align 8
%250 = trunc i64 %249 to i32
%251 = shl i32 %250, 24
%252 = load i32, ptr %9, align 4
%253 = add nsw i32 %252, %251
store i32 %253, ptr %9, align 4
br label %254
254: ; preds = %246, %188
%255 = load ptr, ptr %12, align 8
%256 = getelementptr inbounds i64, ptr %255, i64 3
%257 = load i64, ptr %256, align 8
%258 = load i32, ptr %8, align 4
%259 = sext i32 %258 to i64
%260 = add nsw i64 %259, %257
%261 = trunc i64 %260 to i32
store i32 %261, ptr %8, align 4
br label %262
262: ; preds = %254, %188
%263 = load ptr, ptr %12, align 8
%264 = getelementptr inbounds i64, ptr %263, i64 2
%265 = load i64, ptr %264, align 8
%266 = trunc i64 %265 to i32
%267 = shl i32 %266, 8
%268 = load i32, ptr %8, align 4
%269 = add nsw i32 %268, %267
store i32 %269, ptr %8, align 4
br label %270
270: ; preds = %262, %188
%271 = load ptr, ptr %12, align 8
%272 = getelementptr inbounds i64, ptr %271, i64 1
%273 = load i64, ptr %272, align 8
%274 = trunc i64 %273 to i32
%275 = shl i32 %274, 16
%276 = load i32, ptr %8, align 4
%277 = add nsw i32 %276, %275
store i32 %277, ptr %8, align 4
br label %278
278: ; preds = %270, %188
%279 = load ptr, ptr %12, align 8
%280 = getelementptr inbounds i64, ptr %279, i64 0
%281 = load i64, ptr %280, align 8
%282 = trunc i64 %281 to i32
%283 = shl i32 %282, 24
%284 = load i32, ptr %8, align 4
%285 = add nsw i32 %284, %283
store i32 %285, ptr %8, align 4
br label %288
286: ; preds = %188
%287 = load i32, ptr %10, align 4
store i32 %287, ptr %4, align 4
br label %360
288: ; preds = %278, %188
%289 = load i32, ptr %9, align 4
%290 = load i32, ptr %10, align 4
%291 = xor i32 %290, %289
store i32 %291, ptr %10, align 4
%292 = load i32, ptr %9, align 4
%293 = shl i32 %292, 14
%294 = load i32, ptr %9, align 4
%295 = ashr i32 %294, 18
%296 = or i32 %293, %295
%297 = load i32, ptr %10, align 4
%298 = sub nsw i32 %297, %296
store i32 %298, ptr %10, align 4
%299 = load i32, ptr %10, align 4
%300 = load i32, ptr %8, align 4
%301 = xor i32 %300, %299
store i32 %301, ptr %8, align 4
%302 = load i32, ptr %10, align 4
%303 = shl i32 %302, 11
%304 = load i32, ptr %10, align 4
%305 = ashr i32 %304, 21
%306 = or i32 %303, %305
%307 = load i32, ptr %8, align 4
%308 = sub nsw i32 %307, %306
store i32 %308, ptr %8, align 4
%309 = load i32, ptr %8, align 4
%310 = load i32, ptr %9, align 4
%311 = xor i32 %310, %309
store i32 %311, ptr %9, align 4
%312 = load i32, ptr %8, align 4
%313 = shl i32 %312, 25
%314 = load i32, ptr %8, align 4
%315 = ashr i32 %314, 7
%316 = or i32 %313, %315
%317 = load i32, ptr %9, align 4
%318 = sub nsw i32 %317, %316
store i32 %318, ptr %9, align 4
%319 = load i32, ptr %9, align 4
%320 = load i32, ptr %10, align 4
%321 = xor i32 %320, %319
store i32 %321, ptr %10, align 4
%322 = load i32, ptr %9, align 4
%323 = shl i32 %322, 16
%324 = load i32, ptr %9, align 4
%325 = ashr i32 %324, 16
%326 = or i32 %323, %325
%327 = load i32, ptr %10, align 4
%328 = sub nsw i32 %327, %326
store i32 %328, ptr %10, align 4
%329 = load i32, ptr %10, align 4
%330 = load i32, ptr %8, align 4
%331 = xor i32 %330, %329
store i32 %331, ptr %8, align 4
%332 = load i32, ptr %10, align 4
%333 = shl i32 %332, 4
%334 = load i32, ptr %10, align 4
%335 = ashr i32 %334, 28
%336 = or i32 %333, %335
%337 = load i32, ptr %8, align 4
%338 = sub nsw i32 %337, %336
store i32 %338, ptr %8, align 4
%339 = load i32, ptr %8, align 4
%340 = load i32, ptr %9, align 4
%341 = xor i32 %340, %339
store i32 %341, ptr %9, align 4
%342 = load i32, ptr %8, align 4
%343 = shl i32 %342, 14
%344 = load i32, ptr %8, align 4
%345 = ashr i32 %344, 18
%346 = or i32 %343, %345
%347 = load i32, ptr %9, align 4
%348 = sub nsw i32 %347, %346
store i32 %348, ptr %9, align 4
%349 = load i32, ptr %9, align 4
%350 = load i32, ptr %10, align 4
%351 = xor i32 %350, %349
store i32 %351, ptr %10, align 4
%352 = load i32, ptr %9, align 4
%353 = shl i32 %352, 24
%354 = load i32, ptr %9, align 4
%355 = ashr i32 %354, 8
%356 = or i32 %353, %355
%357 = load i32, ptr %10, align 4
%358 = sub nsw i32 %357, %356
store i32 %358, ptr %10, align 4
%359 = load i32, ptr %10, align 4
store i32 %359, ptr %4, align 4
br label %360
360: ; preds = %288, %286
%361 = load i32, ptr %4, align 4
ret i32 %361
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpqk_37bxu.c'
source_filename = "/tmp/tmpqk_37bxu.c"
target datalayout = "e-m:e-p270: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 [13 x i8] c"readlink %s:\00", align 1
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.2 = private unnamed_addr constant [45 x i8] c"readlink %s: symlink name too long, ignored\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @writesymlink(ptr noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca [52 x i8], align 16
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%11 = load ptr, ptr %6, align 8
%12 = getelementptr inbounds [52 x i8], ptr %9, i64 0, i64 0
%13 = call i32 @readlink(ptr noundef %11, ptr noundef %12, i32 noundef 52)
store i32 %13, ptr %10, align 4
%14 = icmp eq i32 %13, -1
br i1 %14, label %15, label %21
15: ; preds = %4
%16 = load i32, ptr @stderr, align 4
%17 = load ptr, ptr %6, align 8
%18 = call i32 @fprintf(i32 noundef %16, ptr noundef @.str, ptr noundef %17)
%19 = call i32 @perror(ptr noundef @.str.1)
%20 = call i32 (...) @abort() #3
unreachable
21: ; preds = %4
%22 = load i32, ptr %10, align 4
%23 = icmp sgt i32 %22, 51
br i1 %23, label %24, label %28
24: ; preds = %21
%25 = load i32, ptr @stderr, align 4
%26 = load ptr, ptr %6, align 8
%27 = call i32 @fprintf(i32 noundef %25, ptr noundef @.str.2, ptr noundef %26)
br label %39
28: ; preds = %21
br label %29
29: ; preds = %28
%30 = load i32, ptr %10, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [52 x i8], ptr %9, i64 0, i64 %31
store i8 0, ptr %32, align 1
%33 = load ptr, ptr %5, align 8
%34 = load ptr, ptr %6, align 8
%35 = getelementptr inbounds [52 x i8], ptr %9, i64 0, i64 0
%36 = load i64, ptr %7, align 8
%37 = load i32, ptr %8, align 4
%38 = call i32 @addsymlink(ptr noundef %33, ptr noundef %34, ptr noundef %35, i64 noundef %36, i32 noundef %37)
br label %39
39: ; preds = %29, %24
ret void
}
declare i32 @readlink(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i32 @addsymlink(ptr noundef, ptr noundef, ptr noundef, i64 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpqk_37bxu.c"
target datalayout = "e-m:e-p270: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 [13 x i8] c"readlink %s:\00", align 1
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.2 = private unnamed_addr constant [45 x i8] c"readlink %s: symlink name too long, ignored\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @writesymlink(ptr noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca [52 x i8], align 16
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%11 = load ptr, ptr %6, align 8
%12 = getelementptr inbounds [52 x i8], ptr %9, i64 0, i64 0
%13 = call i32 @readlink(ptr noundef %11, ptr noundef %12, i32 noundef 52)
store i32 %13, ptr %10, align 4
%14 = icmp eq i32 %13, -1
br i1 %14, label %15, label %21
15: ; preds = %4
%16 = load i32, ptr @stderr, align 4
%17 = load ptr, ptr %6, align 8
%18 = call i32 @fprintf(i32 noundef %16, ptr noundef @.str, ptr noundef %17)
%19 = call i32 @perror(ptr noundef @.str.1)
%20 = call i32 (...) @abort() #3
unreachable
21: ; preds = %4
%22 = load i32, ptr %10, align 4
%23 = icmp sgt i32 %22, 51
br i1 %23, label %24, label %28
24: ; preds = %21
%25 = load i32, ptr @stderr, align 4
%26 = load ptr, ptr %6, align 8
%27 = call i32 @fprintf(i32 noundef %25, ptr noundef @.str.2, ptr noundef %26)
br label %39
28: ; preds = %21
br label %29
29: ; preds = %28
%30 = load i32, ptr %10, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [52 x i8], ptr %9, i64 0, i64 %31
store i8 0, ptr %32, align 1
%33 = load ptr, ptr %5, align 8
%34 = load ptr, ptr %6, align 8
%35 = getelementptr inbounds [52 x i8], ptr %9, i64 0, i64 0
%36 = load i64, ptr %7, align 8
%37 = load i32, ptr %8, align 4
%38 = call i32 @addsymlink(ptr noundef %33, ptr noundef %34, ptr noundef %35, i64 noundef %36, i32 noundef %37)
br label %39
39: ; preds = %29, %24
ret void
}
declare i32 @readlink(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i32 @addsymlink(ptr noundef, ptr noundef, ptr noundef, i64 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpadf83ju3.c'
source_filename = "/tmp/tmpadf83ju3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @string_equal(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i64 @strlen(ptr noundef %5)
%7 = load ptr, ptr %4, align 8
%8 = call i64 @strlen(ptr noundef %7)
%9 = icmp eq i64 %6, %8
br i1 %9, label %10, label %15
10: ; preds = %2
%11 = load ptr, ptr %3, align 8
%12 = load ptr, ptr %4, align 8
%13 = call i64 @strcmp(ptr noundef %11, ptr noundef %12)
%14 = icmp eq i64 %13, 0
br label %15
15: ; preds = %10, %2
%16 = phi i1 [ false, %2 ], [ %14, %10 ]
%17 = zext i1 %16 to i32
ret i32 %17
}
declare i64 @strlen(ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpadf83ju3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @string_equal(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i64 @strlen(ptr noundef %5)
%7 = load ptr, ptr %4, align 8
%8 = call i64 @strlen(ptr noundef %7)
%9 = icmp eq i64 %6, %8
br i1 %9, label %10, label %15
10: ; preds = %2
%11 = load ptr, ptr %3, align 8
%12 = load ptr, ptr %4, align 8
%13 = call i64 @strcmp(ptr noundef %11, ptr noundef %12)
%14 = icmp eq i64 %13, 0
br label %15
15: ; preds = %10, %2
%16 = phi i1 [ false, %2 ], [ %14, %10 ]
%17 = zext i1 %16 to i32
ret i32 %17
}
declare i64 @strlen(ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpt4mjkk9l.c'
source_filename = "/tmp/tmpt4mjkk9l.c"
target datalayout = "e-m:e-p270: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/tmpt4mjkk9l.c"
target datalayout = "e-m:e-p270: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/tmp1qgdbxgk.c'
source_filename = "/tmp/tmp1qgdbxgk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"Enter A: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"Enter B: \00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"%d is saved in array\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c" %d is not saved in array\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca [5 x i32], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 1, ptr %5, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %15, %0
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 5
br i1 %9, label %10, label %18
10: ; preds = %7
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [5 x i32], ptr %1, i64 0, i64 %12
%14 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %13)
br label %15
15: ; preds = %10
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %3, align 4
br label %7, !llvm.loop !6
18: ; preds = %7
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%20 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
store i32 0, ptr %3, align 4
br label %21
21: ; preds = %33, %18
%22 = load i32, ptr %3, align 4
%23 = icmp slt i32 %22, 5
br i1 %23, label %24, label %36
24: ; preds = %21
%25 = load i32, ptr %2, align 4
%26 = load i32, ptr %3, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [5 x i32], ptr %1, i64 0, i64 %27
%29 = load i32, ptr %28, align 4
%30 = icmp eq i32 %25, %29
br i1 %30, label %31, label %32
31: ; preds = %24
store i32 0, ptr %5, align 4
br label %32
32: ; preds = %31, %24
br label %33
33: ; preds = %32
%34 = load i32, ptr %3, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %3, align 4
br label %21, !llvm.loop !8
36: ; preds = %21
%37 = load i32, ptr %5, align 4
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %36
%40 = load i32, ptr %2, align 4
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %40)
br label %45
42: ; preds = %36
%43 = load i32, ptr %2, align 4
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %43)
br label %45
45: ; preds = %42, %39
ret void
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1qgdbxgk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"Enter A: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"Enter B: \00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"%d is saved in array\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c" %d is not saved in array\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca [5 x i32], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 1, ptr %5, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 5
br i1 %8, label %.lr.ph, label %19
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %14
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [5 x i32], ptr %1, i64 0, i64 %11
%13 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %12)
br label %14
14: ; preds = %9
%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, 5
br i1 %18, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %19
19: ; preds = %._crit_edge, %0
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%21 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
store i32 0, ptr %3, align 4
%22 = load i32, ptr %3, align 4
%23 = icmp slt i32 %22, 5
br i1 %23, label %.lr.ph2, label %38
.lr.ph2: ; preds = %19
br label %24
24: ; preds = %.lr.ph2, %33
%25 = load i32, ptr %2, align 4
%26 = load i32, ptr %3, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [5 x i32], ptr %1, i64 0, i64 %27
%29 = load i32, ptr %28, align 4
%30 = icmp eq i32 %25, %29
br i1 %30, label %31, label %32
31: ; preds = %24
store i32 0, ptr %5, align 4
br label %32
32: ; preds = %31, %24
br label %33
33: ; preds = %32
%34 = load i32, ptr %3, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %3, align 4
%36 = load i32, ptr %3, align 4
%37 = icmp slt i32 %36, 5
br i1 %37, label %24, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %33
br label %38
38: ; preds = %._crit_edge3, %19
%39 = load i32, ptr %5, align 4
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %44
41: ; preds = %38
%42 = load i32, ptr %2, align 4
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %42)
br label %47
44: ; preds = %38
%45 = load i32, ptr %2, align 4
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %45)
br label %47
47: ; preds = %44, %41
ret void
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp2ilp75ak.c'
source_filename = "/tmp/tmp2ilp75ak.c"
target datalayout = "e-m:e-p270: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/tmp2ilp75ak.c"
target datalayout = "e-m:e-p270: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/tmpjprvf77u.c'
source_filename = "/tmp/tmpjprvf77u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mint_skip_space(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
store ptr %0, ptr %2, align 8
br label %4
4: ; preds = %36, %1
%5 = load ptr, ptr %2, align 8
%6 = call signext i8 @fgetc(ptr noundef %5)
store i8 %6, ptr %3, align 1
%7 = load i8, ptr %3, align 1
%8 = sext i8 %7 to i32
%9 = icmp eq i32 %8, 35
br i1 %9, label %10, label %26
10: ; preds = %4
br label %11
11: ; preds = %23, %10
%12 = load ptr, ptr %2, align 8
%13 = call signext i8 @fgetc(ptr noundef %12)
store i8 %13, ptr %3, align 1
br label %14
14: ; preds = %11
%15 = load i8, ptr %3, align 1
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %16, 10
br i1 %17, label %18, label %23
18: ; preds = %14
%19 = load ptr, ptr %2, align 8
%20 = call i32 @feof(ptr noundef %19)
%21 = icmp ne i32 %20, 0
%22 = xor i1 %21, true
br label %23
23: ; preds = %18, %14
%24 = phi i1 [ false, %14 ], [ %22, %18 ]
br i1 %24, label %11, label %25, !llvm.loop !6
25: ; preds = %23
br label %26
26: ; preds = %25, %4
br label %27
27: ; preds = %26
%28 = load i8, ptr %3, align 1
%29 = call i64 @isspace(i8 noundef signext %28)
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %36
31: ; preds = %27
%32 = load ptr, ptr %2, align 8
%33 = call i32 @feof(ptr noundef %32)
%34 = icmp ne i32 %33, 0
%35 = xor i1 %34, true
br label %36
36: ; preds = %31, %27
%37 = phi i1 [ false, %27 ], [ %35, %31 ]
br i1 %37, label %4, label %38, !llvm.loop !8
38: ; preds = %36
%39 = load i8, ptr %3, align 1
%40 = load ptr, ptr %2, align 8
%41 = call i32 @ungetc(i8 noundef signext %39, ptr noundef %40)
%42 = load i8, ptr %3, align 1
%43 = sext i8 %42 to i32
ret i32 %43
}
declare signext i8 @fgetc(ptr noundef) #1
declare i32 @feof(ptr noundef) #1
declare i64 @isspace(i8 noundef signext) #1
declare i32 @ungetc(i8 noundef signext, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjprvf77u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mint_skip_space(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
store ptr %0, ptr %2, align 8
br label %4
4: ; preds = %36, %1
%5 = load ptr, ptr %2, align 8
%6 = call signext i8 @fgetc(ptr noundef %5)
store i8 %6, ptr %3, align 1
%7 = load i8, ptr %3, align 1
%8 = sext i8 %7 to i32
%9 = icmp eq i32 %8, 35
br i1 %9, label %10, label %26
10: ; preds = %4
br label %11
11: ; preds = %23, %10
%12 = load ptr, ptr %2, align 8
%13 = call signext i8 @fgetc(ptr noundef %12)
store i8 %13, ptr %3, align 1
br label %14
14: ; preds = %11
%15 = load i8, ptr %3, align 1
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %16, 10
br i1 %17, label %18, label %23
18: ; preds = %14
%19 = load ptr, ptr %2, align 8
%20 = call i32 @feof(ptr noundef %19)
%21 = icmp ne i32 %20, 0
%22 = xor i1 %21, true
br label %23
23: ; preds = %18, %14
%24 = phi i1 [ false, %14 ], [ %22, %18 ]
br i1 %24, label %11, label %25, !llvm.loop !6
25: ; preds = %23
br label %26
26: ; preds = %25, %4
br label %27
27: ; preds = %26
%28 = load i8, ptr %3, align 1
%29 = call i64 @isspace(i8 noundef signext %28)
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %36
31: ; preds = %27
%32 = load ptr, ptr %2, align 8
%33 = call i32 @feof(ptr noundef %32)
%34 = icmp ne i32 %33, 0
%35 = xor i1 %34, true
br label %36
36: ; preds = %31, %27
%37 = phi i1 [ false, %27 ], [ %35, %31 ]
br i1 %37, label %4, label %38, !llvm.loop !8
38: ; preds = %36
%39 = load i8, ptr %3, align 1
%40 = load ptr, ptr %2, align 8
%41 = call i32 @ungetc(i8 noundef signext %39, ptr noundef %40)
%42 = load i8, ptr %3, align 1
%43 = sext i8 %42 to i32
ret i32 %43
}
declare signext i8 @fgetc(ptr noundef) #1
declare i32 @feof(ptr noundef) #1
declare i64 @isspace(i8 noundef signext) #1
declare i32 @ungetc(i8 noundef signext, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp7ymntbjn.c'
source_filename = "/tmp/tmp7ymntbjn.c"
target datalayout = "e-m:e-p270: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/tmp7ymntbjn.c"
target datalayout = "e-m:e-p270: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/tmpti8_yt54.c'
source_filename = "/tmp/tmpti8_yt54.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i8 @cpu_get_l(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 zeroext i8 @cpu_get_r8(ptr noundef %3, i32 noundef 6)
ret i8 %4
}
declare zeroext i8 @cpu_get_r8(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/tmpti8_yt54.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i8 @cpu_get_l(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 zeroext i8 @cpu_get_r8(ptr noundef %3, i32 noundef 6)
ret i8 %4
}
declare zeroext i8 @cpu_get_r8(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/tmp6ltbvy39.c'
source_filename = "/tmp/tmp6ltbvy39.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [15 x i8] c"socket() error\00", align 1
@AF_INET = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [16 x i8] c"connect() error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @socket_connect(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca %struct.sockaddr_in, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 -1, ptr %5, align 4
%7 = load i32, ptr @PF_INET, align 4
%8 = load i32, ptr @SOCK_STREAM, align 4
%9 = call i32 @socket(i32 noundef %7, i32 noundef %8, i32 noundef 0)
store i32 %9, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp eq i32 %10, -1
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 @error_handling(ptr noundef @.str)
br label %14
14: ; preds = %12, %2
%15 = call i32 @memset(ptr noundef %6, i32 noundef 0, i32 noundef 12)
%16 = load i32, ptr @AF_INET, align 4
%17 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 2
store i32 %16, ptr %17, align 4
%18 = load ptr, ptr %3, align 8
%19 = call i32 @inet_addr(ptr noundef %18)
%20 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 1
%21 = getelementptr inbounds %struct.TYPE_2__, ptr %20, i32 0, i32 0
store i32 %19, ptr %21, align 4
%22 = load i32, ptr %4, align 4
%23 = call i32 @htons(i32 noundef %22)
%24 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 0
store i32 %23, ptr %24, align 4
%25 = load i32, ptr %5, align 4
%26 = call i32 @connect(i32 noundef %25, ptr noundef %6, i32 noundef 12)
%27 = icmp eq i32 %26, -1
br i1 %27, label %28, label %30
28: ; preds = %14
%29 = call i32 @error_handling(ptr noundef @.str.1)
br label %30
30: ; preds = %28, %14
%31 = load i32, ptr %5, align 4
ret i32 %31
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @error_handling(ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6ltbvy39.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [15 x i8] c"socket() error\00", align 1
@AF_INET = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [16 x i8] c"connect() error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @socket_connect(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca %struct.sockaddr_in, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 -1, ptr %5, align 4
%7 = load i32, ptr @PF_INET, align 4
%8 = load i32, ptr @SOCK_STREAM, align 4
%9 = call i32 @socket(i32 noundef %7, i32 noundef %8, i32 noundef 0)
store i32 %9, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp eq i32 %10, -1
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 @error_handling(ptr noundef @.str)
br label %14
14: ; preds = %12, %2
%15 = call i32 @memset(ptr noundef %6, i32 noundef 0, i32 noundef 12)
%16 = load i32, ptr @AF_INET, align 4
%17 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 2
store i32 %16, ptr %17, align 4
%18 = load ptr, ptr %3, align 8
%19 = call i32 @inet_addr(ptr noundef %18)
%20 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 1
%21 = getelementptr inbounds %struct.TYPE_2__, ptr %20, i32 0, i32 0
store i32 %19, ptr %21, align 4
%22 = load i32, ptr %4, align 4
%23 = call i32 @htons(i32 noundef %22)
%24 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 0
store i32 %23, ptr %24, align 4
%25 = load i32, ptr %5, align 4
%26 = call i32 @connect(i32 noundef %25, ptr noundef %6, i32 noundef 12)
%27 = icmp eq i32 %26, -1
br i1 %27, label %28, label %30
28: ; preds = %14
%29 = call i32 @error_handling(ptr noundef @.str.1)
br label %30
30: ; preds = %28, %14
%31 = load i32, ptr %5, align 4
ret i32 %31
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @error_handling(ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7q39o64z.c'
source_filename = "/tmp/tmp7q39o64z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @merge(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca 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 i32 %3, ptr %8, align 4
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %6, align 4
%21 = sub nsw i32 %19, %20
%22 = add nsw i32 %21, 1
store i32 %22, ptr %9, align 4
%23 = load i32, ptr %9, align 4
%24 = call i64 @calloc(i32 noundef %23, i32 noundef 4)
%25 = inttoptr i64 %24 to ptr
store ptr %25, ptr %12, align 8
%26 = load i32, ptr %6, align 4
store i32 %26, ptr %13, align 4
%27 = load i32, ptr %8, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %14, align 4
store i32 0, ptr %15, align 4
store i32 0, ptr %16, align 4
store i32 0, ptr %17, align 4
%29 = load i32, ptr %8, align 4
%30 = load i32, ptr %6, align 4
%31 = sub nsw i32 %29, %30
%32 = add nsw i32 %31, 1
store i32 %32, ptr %18, align 4
store i32 0, ptr %10, align 4
br label %33
33: ; preds = %116, %4
%34 = load i32, ptr %10, align 4
%35 = load i32, ptr %9, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %119
37: ; preds = %33
%38 = load i32, ptr %16, align 4
%39 = icmp ne i32 %38, 0
br i1 %39, label %55, label %40
40: ; preds = %37
%41 = load ptr, ptr %5, align 8
%42 = load i32, ptr %13, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
%45 = load i32, ptr %44, align 4
%46 = load ptr, ptr %5, align 8
%47 = load i32, ptr %14, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i32, ptr %46, i64 %48
%50 = load i32, ptr %49, align 4
%51 = icmp sle i32 %45, %50
br i1 %51, label %52, label %73
52: ; preds = %40
%53 = load i32, ptr %15, align 4
%54 = icmp ne i32 %53, 0
br i1 %54, label %73, label %55
55: ; preds = %52, %37
%56 = load ptr, ptr %5, align 8
%57 = load i32, ptr %13, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %13, align 4
%59 = sext i32 %57 to i64
%60 = getelementptr inbounds i32, ptr %56, i64 %59
%61 = load i32, ptr %60, align 4
%62 = load ptr, ptr %12, align 8
%63 = load i32, ptr %10, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i32, ptr %62, i64 %64
store i32 %61, ptr %65, align 4
%66 = load i32, ptr %18, align 4
%67 = add nsw i32 %66, -1
store i32 %67, ptr %18, align 4
%68 = load i32, ptr %13, align 4
%69 = load i32, ptr %8, align 4
%70 = icmp sgt i32 %68, %69
br i1 %70, label %71, label %72
71: ; preds = %55
store i32 1, ptr %15, align 4
br label %72
72: ; preds = %71, %55
br label %115
73: ; preds = %52, %40
%74 = load i32, ptr %15, align 4
%75 = icmp ne i32 %74, 0
br i1 %75, label %91, label %76
76: ; preds = %73
%77 = load ptr, ptr %5, align 8
%78 = load i32, ptr %14, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i32, ptr %77, i64 %79
%81 = load i32, ptr %80, align 4
%82 = load ptr, ptr %5, align 8
%83 = load i32, ptr %13, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i32, ptr %82, i64 %84
%86 = load i32, ptr %85, align 4
%87 = icmp slt i32 %81, %86
br i1 %87, label %88, label %114
88: ; preds = %76
%89 = load i32, ptr %16, align 4
%90 = icmp ne i32 %89, 0
br i1 %90, label %114, label %91
91: ; preds = %88, %73
%92 = load ptr, ptr %5, align 8
%93 = load i32, ptr %14, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %14, align 4
%95 = sext i32 %93 to i64
%96 = getelementptr inbounds i32, ptr %92, i64 %95
%97 = load i32, ptr %96, align 4
%98 = load ptr, ptr %12, align 8
%99 = load i32, ptr %10, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i32, ptr %98, i64 %100
store i32 %97, ptr %101, align 4
%102 = load i32, ptr %14, align 4
%103 = load i32, ptr %7, align 4
%104 = icmp sgt i32 %102, %103
br i1 %104, label %105, label %106
105: ; preds = %91
store i32 1, ptr %16, align 4
br label %106
106: ; preds = %105, %91
%107 = load i32, ptr %15, align 4
%108 = icmp ne i32 %107, 0
br i1 %108, label %113, label %109
109: ; preds = %106
%110 = load i32, ptr %17, align 4
%111 = load i32, ptr %18, align 4
%112 = add nsw i32 %110, %111
store i32 %112, ptr %17, align 4
br label %113
113: ; preds = %109, %106
br label %114
114: ; preds = %113, %88, %76
br label %115
115: ; preds = %114, %72
br label %116
116: ; preds = %115
%117 = load i32, ptr %10, align 4
%118 = add nsw i32 %117, 1
store i32 %118, ptr %10, align 4
br label %33, !llvm.loop !6
119: ; preds = %33
store i32 0, ptr %10, align 4
%120 = load i32, ptr %6, align 4
store i32 %120, ptr %11, align 4
br label %121
121: ; preds = %135, %119
%122 = load i32, ptr %10, align 4
%123 = load i32, ptr %9, align 4
%124 = icmp slt i32 %122, %123
br i1 %124, label %125, label %140
125: ; preds = %121
%126 = load ptr, ptr %12, align 8
%127 = load i32, ptr %10, align 4
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds i32, ptr %126, i64 %128
%130 = load i32, ptr %129, align 4
%131 = load ptr, ptr %5, align 8
%132 = load i32, ptr %11, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds i32, ptr %131, i64 %133
store i32 %130, ptr %134, align 4
br label %135
135: ; preds = %125
%136 = load i32, ptr %10, align 4
%137 = add nsw i32 %136, 1
store i32 %137, ptr %10, align 4
%138 = load i32, ptr %11, align 4
%139 = add nsw i32 %138, 1
store i32 %139, ptr %11, align 4
br label %121, !llvm.loop !8
140: ; preds = %121
%141 = load ptr, ptr %12, align 8
%142 = call i32 @free(ptr noundef %141)
%143 = load i32, ptr %17, align 4
ret i32 %143
}
declare i64 @calloc(i32 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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7q39o64z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @merge(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca 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 i32 %3, ptr %8, align 4
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %6, align 4
%21 = sub nsw i32 %19, %20
%22 = add nsw i32 %21, 1
store i32 %22, ptr %9, align 4
%23 = load i32, ptr %9, align 4
%24 = call i64 @calloc(i32 noundef %23, i32 noundef 4)
%25 = inttoptr i64 %24 to ptr
store ptr %25, ptr %12, align 8
%26 = load i32, ptr %6, align 4
store i32 %26, ptr %13, align 4
%27 = load i32, ptr %8, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %14, align 4
store i32 0, ptr %15, align 4
store i32 0, ptr %16, align 4
store i32 0, ptr %17, align 4
%29 = load i32, ptr %8, align 4
%30 = load i32, ptr %6, align 4
%31 = sub nsw i32 %29, %30
%32 = add nsw i32 %31, 1
store i32 %32, ptr %18, align 4
store i32 0, ptr %10, align 4
%33 = load i32, ptr %10, align 4
%34 = load i32, ptr %9, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %.lr.ph, label %121
.lr.ph: ; preds = %4
br label %36
36: ; preds = %.lr.ph, %115
%37 = load i32, ptr %16, align 4
%38 = icmp ne i32 %37, 0
br i1 %38, label %54, label %39
39: ; preds = %36
%40 = load ptr, ptr %5, align 8
%41 = load i32, ptr %13, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %40, i64 %42
%44 = load i32, ptr %43, align 4
%45 = load ptr, ptr %5, align 8
%46 = load i32, ptr %14, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i32, ptr %45, i64 %47
%49 = load i32, ptr %48, align 4
%50 = icmp sle i32 %44, %49
br i1 %50, label %51, label %72
51: ; preds = %39
%52 = load i32, ptr %15, align 4
%53 = icmp ne i32 %52, 0
br i1 %53, label %72, label %54
54: ; preds = %51, %36
%55 = load ptr, ptr %5, align 8
%56 = load i32, ptr %13, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %13, align 4
%58 = sext i32 %56 to i64
%59 = getelementptr inbounds i32, ptr %55, i64 %58
%60 = load i32, ptr %59, align 4
%61 = load ptr, ptr %12, align 8
%62 = load i32, ptr %10, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i32, ptr %61, i64 %63
store i32 %60, ptr %64, align 4
%65 = load i32, ptr %18, align 4
%66 = add nsw i32 %65, -1
store i32 %66, ptr %18, align 4
%67 = load i32, ptr %13, align 4
%68 = load i32, ptr %8, align 4
%69 = icmp sgt i32 %67, %68
br i1 %69, label %70, label %71
70: ; preds = %54
store i32 1, ptr %15, align 4
br label %71
71: ; preds = %70, %54
br label %114
72: ; preds = %51, %39
%73 = load i32, ptr %15, align 4
%74 = icmp ne i32 %73, 0
br i1 %74, label %90, label %75
75: ; preds = %72
%76 = load ptr, ptr %5, align 8
%77 = load i32, ptr %14, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i32, ptr %76, i64 %78
%80 = load i32, ptr %79, align 4
%81 = load ptr, ptr %5, align 8
%82 = load i32, ptr %13, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i32, ptr %81, i64 %83
%85 = load i32, ptr %84, align 4
%86 = icmp slt i32 %80, %85
br i1 %86, label %87, label %113
87: ; preds = %75
%88 = load i32, ptr %16, align 4
%89 = icmp ne i32 %88, 0
br i1 %89, label %113, label %90
90: ; preds = %87, %72
%91 = load ptr, ptr %5, align 8
%92 = load i32, ptr %14, align 4
%93 = add nsw i32 %92, 1
store i32 %93, ptr %14, align 4
%94 = sext i32 %92 to i64
%95 = getelementptr inbounds i32, ptr %91, i64 %94
%96 = load i32, ptr %95, align 4
%97 = load ptr, ptr %12, align 8
%98 = load i32, ptr %10, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i32, ptr %97, i64 %99
store i32 %96, ptr %100, align 4
%101 = load i32, ptr %14, align 4
%102 = load i32, ptr %7, align 4
%103 = icmp sgt i32 %101, %102
br i1 %103, label %104, label %105
104: ; preds = %90
store i32 1, ptr %16, align 4
br label %105
105: ; preds = %104, %90
%106 = load i32, ptr %15, align 4
%107 = icmp ne i32 %106, 0
br i1 %107, label %112, label %108
108: ; preds = %105
%109 = load i32, ptr %17, align 4
%110 = load i32, ptr %18, align 4
%111 = add nsw i32 %109, %110
store i32 %111, ptr %17, align 4
br label %112
112: ; preds = %108, %105
br label %113
113: ; preds = %112, %87, %75
br label %114
114: ; preds = %113, %71
br label %115
115: ; preds = %114
%116 = load i32, ptr %10, align 4
%117 = add nsw i32 %116, 1
store i32 %117, ptr %10, align 4
%118 = load i32, ptr %10, align 4
%119 = load i32, ptr %9, align 4
%120 = icmp slt i32 %118, %119
br i1 %120, label %36, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %115
br label %121
121: ; preds = %._crit_edge, %4
store i32 0, ptr %10, align 4
%122 = load i32, ptr %6, align 4
store i32 %122, ptr %11, align 4
%123 = load i32, ptr %10, align 4
%124 = load i32, ptr %9, align 4
%125 = icmp slt i32 %123, %124
br i1 %125, label %.lr.ph2, label %144
.lr.ph2: ; preds = %121
br label %126
126: ; preds = %.lr.ph2, %136
%127 = load ptr, ptr %12, align 8
%128 = load i32, ptr %10, align 4
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds i32, ptr %127, i64 %129
%131 = load i32, ptr %130, align 4
%132 = load ptr, ptr %5, align 8
%133 = load i32, ptr %11, align 4
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds i32, ptr %132, i64 %134
store i32 %131, ptr %135, align 4
br label %136
136: ; preds = %126
%137 = load i32, ptr %10, align 4
%138 = add nsw i32 %137, 1
store i32 %138, ptr %10, align 4
%139 = load i32, ptr %11, align 4
%140 = add nsw i32 %139, 1
store i32 %140, ptr %11, align 4
%141 = load i32, ptr %10, align 4
%142 = load i32, ptr %9, align 4
%143 = icmp slt i32 %141, %142
br i1 %143, label %126, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %136
br label %144
144: ; preds = %._crit_edge3, %121
%145 = load ptr, ptr %12, align 8
%146 = call i32 @free(ptr noundef %145)
%147 = load i32, ptr %17, align 4
ret i32 %147
}
declare i64 @calloc(i32 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}
|
; ModuleID = '/tmp/tmpn796q09c.c'
source_filename = "/tmp/tmpn796q09c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"p\00", align 1
@.str.1 = private unnamed_addr constant [132 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/megabajt/trurlib/refs/heads/master/nstr.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @n_str_strip_ws(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
store ptr %8, ptr %2, align 8
br label %49
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
store ptr %10, ptr %4, align 8
br label %11
11: ; preds = %16, %9
%12 = load ptr, ptr %4, align 8
%13 = load i8, ptr %12, align 1
%14 = call i64 @isspace(i8 noundef signext %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %11
%17 = load ptr, ptr %4, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %4, align 8
br label %11, !llvm.loop !6
19: ; preds = %11
%20 = load ptr, ptr %4, align 8
store ptr %20, ptr %3, align 8
%21 = load ptr, ptr %3, align 8
%22 = call ptr @strchr(ptr noundef %21, i8 noundef signext 0)
store ptr %22, ptr %4, align 8
%23 = load ptr, ptr %4, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %25, label %26
25: ; preds = %19
br label %28
26: ; preds = %19
%27 = call i64 @n_assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 22)
br label %28
28: ; preds = %26, %25
%29 = phi i32 [ 0, %25 ], [ 0, %26 ]
%30 = load ptr, ptr %4, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 -1
store ptr %31, ptr %4, align 8
br label %32
32: ; preds = %43, %28
%33 = load ptr, ptr %4, align 8
%34 = load ptr, ptr %3, align 8
%35 = icmp ne ptr %33, %34
br i1 %35, label %36, label %41
36: ; preds = %32
%37 = load ptr, ptr %4, align 8
%38 = load i8, ptr %37, align 1
%39 = call i64 @isspace(i8 noundef signext %38)
%40 = icmp ne i64 %39, 0
br label %41
41: ; preds = %36, %32
%42 = phi i1 [ false, %32 ], [ %40, %36 ]
br i1 %42, label %43, label %47
43: ; preds = %41
%44 = load ptr, ptr %4, align 8
store i8 0, ptr %44, align 1
%45 = load ptr, ptr %4, align 8
%46 = getelementptr inbounds i8, ptr %45, i32 -1
store ptr %46, ptr %4, align 8
br label %32, !llvm.loop !8
47: ; preds = %41
%48 = load ptr, ptr %3, align 8
store ptr %48, ptr %2, align 8
br label %49
49: ; preds = %47, %7
%50 = load ptr, ptr %2, align 8
ret ptr %50
}
declare i64 @isspace(i8 noundef signext) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i64 @n_assert_fail(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn796q09c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"p\00", align 1
@.str.1 = private unnamed_addr constant [132 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/megabajt/trurlib/refs/heads/master/nstr.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @n_str_strip_ws(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
store ptr %8, ptr %2, align 8
br label %52
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
store ptr %10, ptr %4, align 8
%11 = load ptr, ptr %4, align 8
%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 %.lr.ph, label %22
.lr.ph: ; preds = %9
br label %15
15: ; preds = %.lr.ph, %15
%16 = load ptr, ptr %4, align 8
%17 = getelementptr inbounds i8, ptr %16, i32 1
store ptr %17, ptr %4, align 8
%18 = load ptr, ptr %4, align 8
%19 = load i8, ptr %18, align 1
%20 = call i64 @isspace(i8 noundef signext %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %22
22: ; preds = %._crit_edge, %9
%23 = load ptr, ptr %4, align 8
store ptr %23, ptr %3, align 8
%24 = load ptr, ptr %3, align 8
%25 = call ptr @strchr(ptr noundef %24, i8 noundef signext 0)
store ptr %25, ptr %4, align 8
%26 = load ptr, ptr %4, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %28, label %29
28: ; preds = %22
br label %31
29: ; preds = %22
%30 = call i64 @n_assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 22)
br label %31
31: ; preds = %29, %28
%32 = phi i32 [ 0, %28 ], [ 0, %29 ]
%33 = load ptr, ptr %4, align 8
%34 = getelementptr inbounds i8, ptr %33, i32 -1
store ptr %34, ptr %4, align 8
br label %35
35: ; preds = %46, %31
%36 = load ptr, ptr %4, align 8
%37 = load ptr, ptr %3, align 8
%38 = icmp ne ptr %36, %37
br i1 %38, label %39, label %44
39: ; preds = %35
%40 = load ptr, ptr %4, align 8
%41 = load i8, ptr %40, align 1
%42 = call i64 @isspace(i8 noundef signext %41)
%43 = icmp ne i64 %42, 0
br label %44
44: ; preds = %39, %35
%45 = phi i1 [ false, %35 ], [ %43, %39 ]
br i1 %45, label %46, label %50
46: ; preds = %44
%47 = load ptr, ptr %4, align 8
store i8 0, ptr %47, align 1
%48 = load ptr, ptr %4, align 8
%49 = getelementptr inbounds i8, ptr %48, i32 -1
store ptr %49, ptr %4, align 8
br label %35, !llvm.loop !8
50: ; preds = %44
%51 = load ptr, ptr %3, align 8
store ptr %51, ptr %2, align 8
br label %52
52: ; preds = %50, %7
%53 = load ptr, ptr %2, align 8
ret ptr %53
}
declare i64 @isspace(i8 noundef signext) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i64 @n_assert_fail(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpg1x2xpth.c'
source_filename = "/tmp/tmpg1x2xpth.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hf_md5_generic(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [16 x i32], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%9 = load ptr, ptr %4, align 8
%10 = load i32, ptr %6, align 4
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds [16 x i32], ptr %8, i64 0, i64 0
%13 = call i32 @hmac_md5(i32 noundef %10, ptr noundef %11, ptr noundef %12)
%14 = getelementptr inbounds [16 x i32], ptr %8, i64 0, i64 0
%15 = load i32, ptr %14, align 16
store i32 %15, ptr %7, align 4
%16 = load i32, ptr %7, align 4
ret i32 %16
}
declare i32 @hmac_md5(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/tmpg1x2xpth.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hf_md5_generic(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [16 x i32], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%9 = load ptr, ptr %4, align 8
%10 = load i32, ptr %6, align 4
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds [16 x i32], ptr %8, i64 0, i64 0
%13 = call i32 @hmac_md5(i32 noundef %10, ptr noundef %11, ptr noundef %12)
%14 = getelementptr inbounds [16 x i32], ptr %8, i64 0, i64 0
%15 = load i32, ptr %14, align 16
store i32 %15, ptr %7, align 4
%16 = load i32, ptr %7, align 4
ret i32 %16
}
declare i32 @hmac_md5(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/tmps3psecl4.c'
source_filename = "/tmp/tmps3psecl4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Enter an expression: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"Value of expression: %.2f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca i8, align 1
store i32 0, ptr %1, align 4
store float 0.000000e+00, ptr %2, align 4
store float 0.000000e+00, ptr %3, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
br label %7
7: ; preds = %35, %34, %0
%8 = call signext i8 (...) @getchar()
store i8 %8, ptr %4, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 10
br i1 %10, label %11, label %36
11: ; preds = %7
%12 = load i8, ptr %4, align 1
%13 = sext i8 %12 to i32
switch i32 %13, label %34 [
i32 43, label %14
i32 45, label %19
i32 42, label %24
i32 47, label %29
]
14: ; preds = %11
%15 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%16 = load float, ptr %2, align 4
%17 = load float, ptr %3, align 4
%18 = fadd float %17, %16
store float %18, ptr %3, align 4
br label %35
19: ; preds = %11
%20 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%21 = load float, ptr %2, align 4
%22 = load float, ptr %3, align 4
%23 = fsub float %22, %21
store float %23, ptr %3, align 4
br label %35
24: ; preds = %11
%25 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%26 = load float, ptr %2, align 4
%27 = load float, ptr %3, align 4
%28 = fmul float %27, %26
store float %28, ptr %3, align 4
br label %35
29: ; preds = %11
%30 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%31 = load float, ptr %2, align 4
%32 = load float, ptr %3, align 4
%33 = fdiv float %32, %31
store float %33, ptr %3, align 4
br label %35
34: ; preds = %11
br label %7, !llvm.loop !6
35: ; preds = %29, %24, %19, %14
br label %7, !llvm.loop !6
36: ; preds = %7
%37 = load float, ptr %3, align 4
%38 = fpext float %37 to double
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %38)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare signext i8 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps3psecl4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Enter an expression: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"Value of expression: %.2f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca i8, align 1
store i32 0, ptr %1, align 4
store float 0.000000e+00, ptr %2, align 4
store float 0.000000e+00, ptr %3, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%7 = call signext i8 (...) @getchar()
store i8 %7, ptr %4, align 1
%8 = sext i8 %7 to i32
%9 = icmp ne i32 %8, 10
br i1 %9, label %.lr.ph, label %38
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %.backedge
%11 = load i8, ptr %4, align 1
%12 = sext i8 %11 to i32
switch i32 %12, label %33 [
i32 43, label %13
i32 45, label %18
i32 42, label %23
i32 47, label %28
]
13: ; preds = %10
%14 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%15 = load float, ptr %2, align 4
%16 = load float, ptr %3, align 4
%17 = fadd float %16, %15
store float %17, ptr %3, align 4
br label %37
18: ; preds = %10
%19 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%20 = load float, ptr %2, align 4
%21 = load float, ptr %3, align 4
%22 = fsub float %21, %20
store float %22, ptr %3, align 4
br label %37
23: ; preds = %10
%24 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%25 = load float, ptr %2, align 4
%26 = load float, ptr %3, align 4
%27 = fmul float %26, %25
store float %27, ptr %3, align 4
br label %37
28: ; preds = %10
%29 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%30 = load float, ptr %2, align 4
%31 = load float, ptr %3, align 4
%32 = fdiv float %31, %30
store float %32, ptr %3, align 4
br label %37
33: ; preds = %10
br label %.backedge
.backedge: ; preds = %33, %37
%34 = call signext i8 (...) @getchar()
store i8 %34, ptr %4, align 1
%35 = sext i8 %34 to i32
%36 = icmp ne i32 %35, 10
br i1 %36, label %10, label %._crit_edge, !llvm.loop !6
37: ; preds = %28, %23, %18, %13
br label %.backedge
._crit_edge: ; preds = %.backedge
br label %38
38: ; preds = %._crit_edge, %0
%39 = load float, ptr %3, align 4
%40 = fpext float %39 to double
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %40)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare signext i8 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpjnrul715.c'
source_filename = "/tmp/tmpjnrul715.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @f(i32 noundef 0)
store i32 %8, ptr %3, align 4
store i32 0, ptr %4, align 4
br label %9
9: ; preds = %7, %0
ret i32 0
}
declare i32 @f(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/tmpjnrul715.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @f(i32 noundef 0)
store i32 %8, ptr %3, align 4
store i32 0, ptr %4, align 4
br label %9
9: ; preds = %7, %0
ret i32 0
}
declare i32 @f(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/tmpkqbfejq4.c'
source_filename = "/tmp/tmpkqbfejq4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\07\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
ret i32 -1
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkqbfejq4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\07\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
ret i32 -1
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpclysxuwd.c'
source_filename = "/tmp/tmpclysxuwd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getRandomCharacter() #0 {
%1 = call i32 (...) @rand()
%2 = and i32 %1, 127
%3 = trunc i32 %2 to i8
ret i8 %3
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpclysxuwd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getRandomCharacter() #0 {
%1 = call i32 (...) @rand()
%2 = and i32 %1, 127
%3 = trunc i32 %2 to i8
ret i8 %3
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmby79v0z.c'
source_filename = "/tmp/tmpmby79v0z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"connect error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Connect(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call i64 @connect(i32 noundef %7, ptr noundef %8, i32 noundef %9)
%11 = icmp slt i64 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %3
%13 = call i32 @err_sys(ptr noundef @.str)
br label %14
14: ; preds = %12, %3
ret void
}
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @err_sys(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmby79v0z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"connect error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Connect(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call i64 @connect(i32 noundef %7, ptr noundef %8, i32 noundef %9)
%11 = icmp slt i64 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %3
%13 = call i32 @err_sys(ptr noundef @.str)
br label %14
14: ; preds = %12, %3
ret void
}
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @err_sys(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqp_9w44z.c'
source_filename = "/tmp/tmpqp_9w44z.c"
target datalayout = "e-m:e-p270: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 [13 x i8] c"hello %s %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr @stderr, align 4
%7 = load ptr, ptr %5, align 8
%8 = load ptr, ptr %7, align 8
%9 = load i32, ptr %4, align 4
%10 = call i32 @fprintf(i32 noundef %6, ptr noundef @.str, ptr noundef %8, i32 noundef %9)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqp_9w44z.c"
target datalayout = "e-m:e-p270: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 [13 x i8] c"hello %s %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr @stderr, align 4
%7 = load ptr, ptr %5, align 8
%8 = load ptr, ptr %7, align 8
%9 = load i32, ptr %4, align 4
%10 = call i32 @fprintf(i32 noundef %6, ptr noundef @.str, ptr noundef %8, i32 noundef %9)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3f2604md.c'
source_filename = "/tmp/tmp3f2604md.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%%0%dd\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @int2bcd(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [20 x i8], align 16
%8 = alloca [20 x i8], align 16
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%9 = getelementptr inbounds [20 x i8], ptr %8, i64 0, i64 0
%10 = load i32, ptr %6, align 4
%11 = call i32 @sprintf(ptr noundef %9, ptr noundef @.str, i32 noundef %10)
%12 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%13 = getelementptr inbounds [20 x i8], ptr %8, i64 0, i64 0
%14 = load i32, ptr %4, align 4
%15 = call i32 @sprintf(ptr noundef %12, ptr noundef %13, i32 noundef %14)
%16 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr %6, align 4
%19 = sdiv i32 %18, 2
%20 = call i32 @asc2hex(ptr noundef %16, ptr noundef %17, i32 noundef %19)
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @asc2hex(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3f2604md.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%%0%dd\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @int2bcd(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [20 x i8], align 16
%8 = alloca [20 x i8], align 16
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%9 = getelementptr inbounds [20 x i8], ptr %8, i64 0, i64 0
%10 = load i32, ptr %6, align 4
%11 = call i32 @sprintf(ptr noundef %9, ptr noundef @.str, i32 noundef %10)
%12 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%13 = getelementptr inbounds [20 x i8], ptr %8, i64 0, i64 0
%14 = load i32, ptr %4, align 4
%15 = call i32 @sprintf(ptr noundef %12, ptr noundef %13, i32 noundef %14)
%16 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr %6, align 4
%19 = sdiv i32 %18, 2
%20 = call i32 @asc2hex(ptr noundef %16, ptr noundef %17, i32 noundef %19)
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @asc2hex(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp12a6yguj.c'
source_filename = "/tmp/tmp12a6yguj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"arith: %Ld %Ld %Ld\0A\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"arith1: %Ld %Ld\0A\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"bin: %Ld %Ld %Ld\0A\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"test: %d %d %d %d %d %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c"utest: %d %d %d %d %d %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"arith2: %Ld %Ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @lloptest(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%7 = load i64, ptr %3, align 8
store i64 %7, ptr %5, align 8
%8 = load i64, ptr %4, align 8
store i64 %8, ptr %6, align 8
%9 = load i64, ptr %3, align 8
%10 = load i64, ptr %4, align 8
%11 = add nsw i64 %9, %10
%12 = load i64, ptr %3, align 8
%13 = load i64, ptr %4, align 8
%14 = sub nsw i64 %12, %13
%15 = load i64, ptr %3, align 8
%16 = load i64, ptr %4, align 8
%17 = mul nsw i64 %15, %16
%18 = call i32 (ptr, i64, i64, ...) @printf(ptr noundef @.str, i64 noundef %11, i64 noundef %14, i64 noundef %17)
%19 = load i64, ptr %4, align 8
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %29
21: ; preds = %2
%22 = load i64, ptr %3, align 8
%23 = load i64, ptr %4, align 8
%24 = sdiv i64 %22, %23
%25 = load i64, ptr %3, align 8
%26 = load i64, ptr %4, align 8
%27 = srem i64 %25, %26
%28 = call i32 (ptr, i64, i64, ...) @printf(ptr noundef @.str.1, i64 noundef %24, i64 noundef %27)
br label %29
29: ; preds = %21, %2
%30 = load i64, ptr %3, align 8
%31 = load i64, ptr %4, align 8
%32 = and i64 %30, %31
%33 = load i64, ptr %3, align 8
%34 = load i64, ptr %4, align 8
%35 = or i64 %33, %34
%36 = load i64, ptr %3, align 8
%37 = load i64, ptr %4, align 8
%38 = xor i64 %36, %37
%39 = call i32 (ptr, i64, i64, ...) @printf(ptr noundef @.str.2, i64 noundef %32, i64 noundef %35, i64 noundef %38)
%40 = load i64, ptr %3, align 8
%41 = load i64, ptr %4, align 8
%42 = icmp eq i64 %40, %41
%43 = zext i1 %42 to i32
%44 = sext i32 %43 to i64
%45 = load i64, ptr %3, align 8
%46 = load i64, ptr %4, align 8
%47 = icmp ne i64 %45, %46
%48 = zext i1 %47 to i32
%49 = sext i32 %48 to i64
%50 = load i64, ptr %3, align 8
%51 = load i64, ptr %4, align 8
%52 = icmp slt i64 %50, %51
%53 = zext i1 %52 to i32
%54 = load i64, ptr %3, align 8
%55 = load i64, ptr %4, align 8
%56 = icmp sgt i64 %54, %55
%57 = zext i1 %56 to i32
%58 = load i64, ptr %3, align 8
%59 = load i64, ptr %4, align 8
%60 = icmp sge i64 %58, %59
%61 = zext i1 %60 to i32
%62 = load i64, ptr %3, align 8
%63 = load i64, ptr %4, align 8
%64 = icmp sle i64 %62, %63
%65 = zext i1 %64 to i32
%66 = call i32 (ptr, i64, i64, ...) @printf(ptr noundef @.str.3, i64 noundef %44, i64 noundef %49, i32 noundef %53, i32 noundef %57, i32 noundef %61, i32 noundef %65)
%67 = load i64, ptr %5, align 8
%68 = load i64, ptr %6, align 8
%69 = icmp eq i64 %67, %68
%70 = zext i1 %69 to i32
%71 = sext i32 %70 to i64
%72 = load i64, ptr %5, align 8
%73 = load i64, ptr %6, align 8
%74 = icmp ne i64 %72, %73
%75 = zext i1 %74 to i32
%76 = sext i32 %75 to i64
%77 = load i64, ptr %5, align 8
%78 = load i64, ptr %6, align 8
%79 = icmp ult i64 %77, %78
%80 = zext i1 %79 to i32
%81 = load i64, ptr %5, align 8
%82 = load i64, ptr %6, align 8
%83 = icmp ugt i64 %81, %82
%84 = zext i1 %83 to i32
%85 = load i64, ptr %5, align 8
%86 = load i64, ptr %6, align 8
%87 = icmp uge i64 %85, %86
%88 = zext i1 %87 to i32
%89 = load i64, ptr %5, align 8
%90 = load i64, ptr %6, align 8
%91 = icmp ule i64 %89, %90
%92 = zext i1 %91 to i32
%93 = call i32 (ptr, i64, i64, ...) @printf(ptr noundef @.str.4, i64 noundef %71, i64 noundef %76, i32 noundef %80, i32 noundef %84, i32 noundef %88, i32 noundef %92)
%94 = load i64, ptr %3, align 8
%95 = add nsw i64 %94, 1
store i64 %95, ptr %3, align 8
%96 = load i64, ptr %4, align 8
%97 = add nsw i64 %96, 1
store i64 %97, ptr %4, align 8
%98 = load i64, ptr %3, align 8
%99 = load i64, ptr %4, align 8
%100 = call i32 (ptr, i64, i64, ...) @printf(ptr noundef @.str.5, i64 noundef %98, i64 noundef %99)
%101 = load i64, ptr %3, align 8
%102 = add nsw i64 %101, 1
store i64 %102, ptr %3, align 8
%103 = load i64, ptr %4, align 8
%104 = add nsw i64 %103, 1
store i64 %104, ptr %4, align 8
%105 = call i32 (ptr, i64, i64, ...) @printf(ptr noundef @.str.5, i64 noundef %101, i64 noundef %103)
%106 = load i64, ptr %3, align 8
%107 = add nsw i64 %106, -1
store i64 %107, ptr %3, align 8
%108 = load i64, ptr %4, align 8
%109 = add nsw i64 %108, -1
store i64 %109, ptr %4, align 8
%110 = call i32 (ptr, i64, i64, ...) @printf(ptr noundef @.str.5, i64 noundef %107, i64 noundef %109)
%111 = load i64, ptr %3, align 8
%112 = load i64, ptr %4, align 8
%113 = call i32 (ptr, i64, i64, ...) @printf(ptr noundef @.str.5, i64 noundef %111, i64 noundef %112)
ret void
}
declare i32 @printf(ptr noundef, i64 noundef, i64 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp12a6yguj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"arith: %Ld %Ld %Ld\0A\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"arith1: %Ld %Ld\0A\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"bin: %Ld %Ld %Ld\0A\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"test: %d %d %d %d %d %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c"utest: %d %d %d %d %d %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"arith2: %Ld %Ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @lloptest(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%7 = load i64, ptr %3, align 8
store i64 %7, ptr %5, align 8
%8 = load i64, ptr %4, align 8
store i64 %8, ptr %6, align 8
%9 = load i64, ptr %3, align 8
%10 = load i64, ptr %4, align 8
%11 = add nsw i64 %9, %10
%12 = load i64, ptr %3, align 8
%13 = load i64, ptr %4, align 8
%14 = sub nsw i64 %12, %13
%15 = load i64, ptr %3, align 8
%16 = load i64, ptr %4, align 8
%17 = mul nsw i64 %15, %16
%18 = call i32 (ptr, i64, i64, ...) @printf(ptr noundef @.str, i64 noundef %11, i64 noundef %14, i64 noundef %17)
%19 = load i64, ptr %4, align 8
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %29
21: ; preds = %2
%22 = load i64, ptr %3, align 8
%23 = load i64, ptr %4, align 8
%24 = sdiv i64 %22, %23
%25 = load i64, ptr %3, align 8
%26 = load i64, ptr %4, align 8
%27 = srem i64 %25, %26
%28 = call i32 (ptr, i64, i64, ...) @printf(ptr noundef @.str.1, i64 noundef %24, i64 noundef %27)
br label %29
29: ; preds = %21, %2
%30 = load i64, ptr %3, align 8
%31 = load i64, ptr %4, align 8
%32 = and i64 %30, %31
%33 = load i64, ptr %3, align 8
%34 = load i64, ptr %4, align 8
%35 = or i64 %33, %34
%36 = load i64, ptr %3, align 8
%37 = load i64, ptr %4, align 8
%38 = xor i64 %36, %37
%39 = call i32 (ptr, i64, i64, ...) @printf(ptr noundef @.str.2, i64 noundef %32, i64 noundef %35, i64 noundef %38)
%40 = load i64, ptr %3, align 8
%41 = load i64, ptr %4, align 8
%42 = icmp eq i64 %40, %41
%43 = zext i1 %42 to i32
%44 = sext i32 %43 to i64
%45 = load i64, ptr %3, align 8
%46 = load i64, ptr %4, align 8
%47 = icmp ne i64 %45, %46
%48 = zext i1 %47 to i32
%49 = sext i32 %48 to i64
%50 = load i64, ptr %3, align 8
%51 = load i64, ptr %4, align 8
%52 = icmp slt i64 %50, %51
%53 = zext i1 %52 to i32
%54 = load i64, ptr %3, align 8
%55 = load i64, ptr %4, align 8
%56 = icmp sgt i64 %54, %55
%57 = zext i1 %56 to i32
%58 = load i64, ptr %3, align 8
%59 = load i64, ptr %4, align 8
%60 = icmp sge i64 %58, %59
%61 = zext i1 %60 to i32
%62 = load i64, ptr %3, align 8
%63 = load i64, ptr %4, align 8
%64 = icmp sle i64 %62, %63
%65 = zext i1 %64 to i32
%66 = call i32 (ptr, i64, i64, ...) @printf(ptr noundef @.str.3, i64 noundef %44, i64 noundef %49, i32 noundef %53, i32 noundef %57, i32 noundef %61, i32 noundef %65)
%67 = load i64, ptr %5, align 8
%68 = load i64, ptr %6, align 8
%69 = icmp eq i64 %67, %68
%70 = zext i1 %69 to i32
%71 = sext i32 %70 to i64
%72 = load i64, ptr %5, align 8
%73 = load i64, ptr %6, align 8
%74 = icmp ne i64 %72, %73
%75 = zext i1 %74 to i32
%76 = sext i32 %75 to i64
%77 = load i64, ptr %5, align 8
%78 = load i64, ptr %6, align 8
%79 = icmp ult i64 %77, %78
%80 = zext i1 %79 to i32
%81 = load i64, ptr %5, align 8
%82 = load i64, ptr %6, align 8
%83 = icmp ugt i64 %81, %82
%84 = zext i1 %83 to i32
%85 = load i64, ptr %5, align 8
%86 = load i64, ptr %6, align 8
%87 = icmp uge i64 %85, %86
%88 = zext i1 %87 to i32
%89 = load i64, ptr %5, align 8
%90 = load i64, ptr %6, align 8
%91 = icmp ule i64 %89, %90
%92 = zext i1 %91 to i32
%93 = call i32 (ptr, i64, i64, ...) @printf(ptr noundef @.str.4, i64 noundef %71, i64 noundef %76, i32 noundef %80, i32 noundef %84, i32 noundef %88, i32 noundef %92)
%94 = load i64, ptr %3, align 8
%95 = add nsw i64 %94, 1
store i64 %95, ptr %3, align 8
%96 = load i64, ptr %4, align 8
%97 = add nsw i64 %96, 1
store i64 %97, ptr %4, align 8
%98 = load i64, ptr %3, align 8
%99 = load i64, ptr %4, align 8
%100 = call i32 (ptr, i64, i64, ...) @printf(ptr noundef @.str.5, i64 noundef %98, i64 noundef %99)
%101 = load i64, ptr %3, align 8
%102 = add nsw i64 %101, 1
store i64 %102, ptr %3, align 8
%103 = load i64, ptr %4, align 8
%104 = add nsw i64 %103, 1
store i64 %104, ptr %4, align 8
%105 = call i32 (ptr, i64, i64, ...) @printf(ptr noundef @.str.5, i64 noundef %101, i64 noundef %103)
%106 = load i64, ptr %3, align 8
%107 = add nsw i64 %106, -1
store i64 %107, ptr %3, align 8
%108 = load i64, ptr %4, align 8
%109 = add nsw i64 %108, -1
store i64 %109, ptr %4, align 8
%110 = call i32 (ptr, i64, i64, ...) @printf(ptr noundef @.str.5, i64 noundef %107, i64 noundef %109)
%111 = load i64, ptr %3, align 8
%112 = load i64, ptr %4, align 8
%113 = call i32 (ptr, i64, i64, ...) @printf(ptr noundef @.str.5, i64 noundef %111, i64 noundef %112)
ret void
}
declare i32 @printf(ptr noundef, i64 noundef, i64 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwjewvjef.c'
source_filename = "/tmp/tmpwjewvjef.c"
target datalayout = "e-m:e-p270: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/tmpwjewvjef.c"
target datalayout = "e-m:e-p270: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/tmpryoun7_s.c'
source_filename = "/tmp/tmpryoun7_s.c"
target datalayout = "e-m:e-p270: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/tmpryoun7_s.c"
target datalayout = "e-m:e-p270: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/tmp6nghfiqx.c'
source_filename = "/tmp/tmp6nghfiqx.c"
target datalayout = "e-m:e-p270: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/tmp6nghfiqx.c"
target datalayout = "e-m:e-p270: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/tmpggz5r34w.c'
source_filename = "/tmp/tmpggz5r34w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"Have One at 0\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"Have One at 1\0A\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"%d, %x\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%.2f\0A\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"%x\0A\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.7 = private unnamed_addr constant [6 x i8] c"0x%x\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i16, align 2
%7 = alloca i8, align 1
%8 = alloca i16, align 2
%9 = alloca i16, align 2
%10 = alloca float, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i16 0, ptr %6, align 2
%16 = load i16, ptr %6, align 2
%17 = sext i16 %16 to i32
%18 = call i32 @printINT16(i32 noundef %17)
%19 = load i16, ptr %6, align 2
%20 = sext i16 %19 to i32
%21 = and i32 %20, 1
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %2
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %25
25: ; preds = %23, %2
%26 = load i16, ptr %6, align 2
%27 = sext i16 %26 to i32
%28 = or i32 %27, 1
%29 = trunc i32 %28 to i16
store i16 %29, ptr %6, align 2
%30 = load i16, ptr %6, align 2
%31 = sext i16 %30 to i32
%32 = call i32 @printINT16(i32 noundef %31)
%33 = load i16, ptr %6, align 2
%34 = sext i16 %33 to i32
%35 = and i32 %34, 1
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %25
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %39
39: ; preds = %37, %25
%40 = load i16, ptr %6, align 2
%41 = sext i16 %40 to i32
%42 = or i32 %41, 2
%43 = trunc i32 %42 to i16
store i16 %43, ptr %6, align 2
%44 = load i16, ptr %6, align 2
%45 = sext i16 %44 to i32
%46 = call i32 @printINT16(i32 noundef %45)
%47 = load i16, ptr %6, align 2
%48 = sext i16 %47 to i32
%49 = and i32 %48, 2
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %39
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %53
53: ; preds = %51, %39
%54 = load i16, ptr %6, align 2
%55 = call i32 @bitINT16(i16 noundef signext %54, i32 noundef 1)
%56 = icmp eq i32 %55, 1
br i1 %56, label %57, label %59
57: ; preds = %53
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %59
59: ; preds = %57, %53
%60 = load i16, ptr %6, align 2
%61 = sext i16 %60 to i32
%62 = and i32 %61, -3
%63 = trunc i32 %62 to i16
store i16 %63, ptr %6, align 2
%64 = load i16, ptr %6, align 2
%65 = sext i16 %64 to i32
%66 = call i32 @printINT16(i32 noundef %65)
%67 = load i16, ptr %6, align 2
%68 = sext i16 %67 to i32
%69 = and i32 %68, 2
%70 = icmp ne i32 %69, 0
br i1 %70, label %71, label %73
71: ; preds = %59
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %73
73: ; preds = %71, %59
%74 = call i32 @printINT16(i32 noundef 2)
%75 = load i16, ptr %6, align 2
%76 = call i32 @bitINT16(i16 noundef signext %75, i32 noundef 1)
%77 = icmp eq i32 %76, 1
br i1 %77, label %78, label %80
78: ; preds = %73
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %80
80: ; preds = %78, %73
%81 = call i32 @printINT16(i32 noundef 104)
%82 = call i32 @printINT16(i32 noundef 175)
%83 = call i32 @printINT16(i32 noundef 5890)
%84 = call i32 @printINT16(i32 noundef 511)
%85 = call i32 @printINT16(i32 noundef 58594)
%86 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 58594, i32 noundef 58594)
%87 = call i32 @printINT16(i32 noundef 8)
%88 = call i32 @printINT16(i32 noundef 35)
store i8 0, ptr %7, align 1
%89 = load i8, ptr %7, align 1
%90 = sext i8 %89 to i32
%91 = call i32 @printINT16(i32 noundef %90)
%92 = load i8, ptr %7, align 1
%93 = sext i8 %92 to i32
%94 = or i32 %93, 24
%95 = trunc i32 %94 to i8
store i8 %95, ptr %7, align 1
%96 = load i8, ptr %7, align 1
%97 = sext i8 %96 to i32
%98 = call i32 @printINT16(i32 noundef %97)
%99 = load i8, ptr %7, align 1
%100 = sext i8 %99 to i32
%101 = shl i32 %100, 3
%102 = trunc i32 %101 to i8
store i8 %102, ptr %7, align 1
%103 = load i8, ptr %7, align 1
%104 = sext i8 %103 to i32
%105 = call i32 @printINT16(i32 noundef %104)
%106 = load i8, ptr %7, align 1
%107 = sext i8 %106 to i16
store i16 %107, ptr %8, align 2
%108 = load i16, ptr %8, align 2
%109 = zext i16 %108 to i32
%110 = call i32 @printINT16(i32 noundef %109)
%111 = load i16, ptr %8, align 2
%112 = zext i16 %111 to i32
%113 = shl i32 %112, 8
%114 = trunc i32 %113 to i16
store i16 %114, ptr %8, align 2
%115 = load i16, ptr %8, align 2
%116 = zext i16 %115 to i32
%117 = call i32 @printINT16(i32 noundef %116)
store i16 -16277, ptr %9, align 2
%118 = load i16, ptr %9, align 2
%119 = zext i16 %118 to i32
%120 = call i32 @printINT16(i32 noundef %119)
%121 = load i16, ptr %9, align 2
%122 = zext i16 %121 to i32
%123 = shl i32 %122, 3
%124 = trunc i32 %123 to i16
store i16 %124, ptr %9, align 2
%125 = load i16, ptr %9, align 2
%126 = zext i16 %125 to i32
%127 = call i32 @printINT16(i32 noundef %126)
%128 = load i16, ptr %9, align 2
%129 = zext i16 %128 to i32
%130 = ashr i32 %129, 1
%131 = trunc i32 %130 to i16
store i16 %131, ptr %9, align 2
%132 = load i16, ptr %9, align 2
%133 = zext i16 %132 to i32
%134 = call i32 @printINT16(i32 noundef %133)
%135 = load i16, ptr %9, align 2
%136 = zext i16 %135 to i32
%137 = sitofp i32 %136 to double
%138 = fmul double %137, 3.300000e+03
%139 = fdiv double %138, 1.024000e+03
%140 = fptrunc double %139 to float
store float %140, ptr %10, align 4
%141 = load float, ptr %10, align 4
%142 = fpext float %141 to double
%143 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %142)
%144 = load float, ptr %10, align 4
%145 = fpext float %144 to double
%146 = fsub double %145, 1.000000e+02
%147 = fdiv double %146, 1.000000e+01
%148 = fsub double %147, 4.000000e+01
%149 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %148)
%150 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef 1155596288, i32 noundef 1155598336)
%151 = call i32 @printINT32(i32 noundef 1155596288)
%152 = call i32 @printINT32(i32 noundef 1155598336)
store i32 1, ptr %11, align 4
%153 = load i32, ptr %11, align 4
%154 = call i32 @printINT32(i32 noundef %153)
%155 = load i32, ptr %11, align 4
%156 = add nsw i32 %155, 1
%157 = call i32 @printINT32(i32 noundef %156)
%158 = load i32, ptr %11, align 4
%159 = shl i32 %158, 2
%160 = call i32 @printINT32(i32 noundef %159)
%161 = call i32 @printINT32(i32 noundef 2)
%162 = call i32 @printINT32(i32 noundef 4)
%163 = call i32 @printINT16(i32 noundef 0)
%164 = call i32 @printINT16(i32 noundef 7)
%165 = call i32 @printINT16(i32 noundef 39)
%166 = call i32 @printINT16(i32 noundef 55)
%167 = call i32 @printINT16(i32 noundef 39)
%168 = call i32 @printINT16(i32 noundef 8191)
%169 = call i32 @printINT16(i32 noundef 255)
%170 = call i32 @printINT32(i32 noundef 2)
%171 = call i32 @printINT32(i32 noundef 262144)
%172 = call i32 @printINT16(i32 noundef 16)
%173 = call i32 @printINT16(i32 noundef 31)
store i32 1, ptr %12, align 4
%174 = load i32, ptr %12, align 4
%175 = call i32 @printINT32(i32 noundef %174)
%176 = load i32, ptr %12, align 4
%177 = ashr i32 %176, 0
%178 = call i32 @printINT32(i32 noundef %177)
%179 = load i32, ptr %12, align 4
%180 = ashr i32 %179, 1
%181 = call i32 @printINT32(i32 noundef %180)
%182 = load i32, ptr %12, align 4
%183 = ashr i32 %182, 22
%184 = call i32 @printINT32(i32 noundef %183)
store i32 29360128, ptr %13, align 4
%185 = call i32 @printINT32(i32 noundef 7)
%186 = load i32, ptr %13, align 4
%187 = call i32 @printINT32(i32 noundef %186)
%188 = load i32, ptr %13, align 4
%189 = load i32, ptr %13, align 4
%190 = xor i32 %188, %189
%191 = call i32 @printINT32(i32 noundef %190)
store i32 0, ptr %14, align 4
store i32 1, ptr %13, align 4
%192 = load i32, ptr %13, align 4
%193 = load i32, ptr %14, align 4
%194 = and i32 %193, 31
%195 = shl i32 %192, %194
store i32 %195, ptr %13, align 4
%196 = load i32, ptr %13, align 4
%197 = call i32 @printINT32(i32 noundef %196)
%198 = load i32, ptr %13, align 4
%199 = shl i32 %198, 22
store i32 %199, ptr %13, align 4
%200 = load i32, ptr %13, align 4
%201 = call i32 @printINT32(i32 noundef %200)
store i32 0, ptr %15, align 4
%202 = load i32, ptr %15, align 4
%203 = load i32, ptr %13, align 4
%204 = or i32 %202, %203
store i32 %204, ptr %15, align 4
%205 = load i32, ptr %15, align 4
%206 = call i32 @printINT32(i32 noundef %205)
%207 = load i32, ptr %14, align 4
%208 = add nsw i32 %207, 1
store i32 %208, ptr %14, align 4
store i32 1, ptr %13, align 4
%209 = load i32, ptr %13, align 4
%210 = load i32, ptr %14, align 4
%211 = and i32 %210, 31
%212 = shl i32 %209, %211
store i32 %212, ptr %13, align 4
%213 = load i32, ptr %13, align 4
%214 = shl i32 %213, 22
store i32 %214, ptr %13, align 4
%215 = load i32, ptr %15, align 4
%216 = load i32, ptr %13, align 4
%217 = or i32 %215, %216
store i32 %217, ptr %15, align 4
%218 = load i32, ptr %15, align 4
%219 = call i32 @printINT32(i32 noundef %218)
%220 = load i32, ptr %14, align 4
%221 = add nsw i32 %220, 1
store i32 %221, ptr %14, align 4
store i32 1, ptr %13, align 4
%222 = load i32, ptr %13, align 4
%223 = load i32, ptr %14, align 4
%224 = and i32 %223, 31
%225 = shl i32 %222, %224
store i32 %225, ptr %13, align 4
%226 = load i32, ptr %13, align 4
%227 = shl i32 %226, 22
store i32 %227, ptr %13, align 4
%228 = load i32, ptr %15, align 4
%229 = load i32, ptr %13, align 4
%230 = or i32 %228, %229
store i32 %230, ptr %15, align 4
%231 = load i32, ptr %15, align 4
%232 = call i32 @printINT32(i32 noundef %231)
%233 = call i32 @printINT32(i32 noundef 8191)
%234 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef 8191)
%235 = call i32 @printINT32(i32 noundef 25165824)
%236 = call i32 @printINT32(i32 noundef 7864320)
%237 = call i32 @printINT32(i32 noundef 131)
%238 = call i32 @printINT32(i32 noundef 643)
%239 = call i32 @printINT32(i32 noundef 128)
%240 = call i32 @printINT32(i32 noundef 4096)
%241 = call i32 @BITPOS(i32 noundef 4096)
%242 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %241)
%243 = call i32 @printINT32(i32 noundef 1711276259)
%244 = call i32 @printINT32(i32 noundef 16000000)
%245 = call i32 @printINT32(i32 noundef 50000000)
%246 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef 100000000)
%247 = call i32 @printINT32(i32 noundef 1)
%248 = call i32 @printINT32(i32 noundef 2)
%249 = call i32 @printINT32(i32 noundef 4)
%250 = call i32 @printINT32(i32 noundef 20)
ret i32 0
}
declare i32 @printINT16(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @bitINT16(i16 noundef signext, i32 noundef) #1
declare i32 @printINT32(i32 noundef) #1
declare i32 @BITPOS(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/tmpggz5r34w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"Have One at 0\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"Have One at 1\0A\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"%d, %x\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%.2f\0A\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"%x\0A\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.7 = private unnamed_addr constant [6 x i8] c"0x%x\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i16, align 2
%7 = alloca i8, align 1
%8 = alloca i16, align 2
%9 = alloca i16, align 2
%10 = alloca float, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i16 0, ptr %6, align 2
%16 = load i16, ptr %6, align 2
%17 = sext i16 %16 to i32
%18 = call i32 @printINT16(i32 noundef %17)
%19 = load i16, ptr %6, align 2
%20 = sext i16 %19 to i32
%21 = and i32 %20, 1
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %2
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %25
25: ; preds = %23, %2
%26 = load i16, ptr %6, align 2
%27 = sext i16 %26 to i32
%28 = or i32 %27, 1
%29 = trunc i32 %28 to i16
store i16 %29, ptr %6, align 2
%30 = load i16, ptr %6, align 2
%31 = sext i16 %30 to i32
%32 = call i32 @printINT16(i32 noundef %31)
%33 = load i16, ptr %6, align 2
%34 = sext i16 %33 to i32
%35 = and i32 %34, 1
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %25
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %39
39: ; preds = %37, %25
%40 = load i16, ptr %6, align 2
%41 = sext i16 %40 to i32
%42 = or i32 %41, 2
%43 = trunc i32 %42 to i16
store i16 %43, ptr %6, align 2
%44 = load i16, ptr %6, align 2
%45 = sext i16 %44 to i32
%46 = call i32 @printINT16(i32 noundef %45)
%47 = load i16, ptr %6, align 2
%48 = sext i16 %47 to i32
%49 = and i32 %48, 2
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %39
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %53
53: ; preds = %51, %39
%54 = load i16, ptr %6, align 2
%55 = call i32 @bitINT16(i16 noundef signext %54, i32 noundef 1)
%56 = icmp eq i32 %55, 1
br i1 %56, label %57, label %59
57: ; preds = %53
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %59
59: ; preds = %57, %53
%60 = load i16, ptr %6, align 2
%61 = sext i16 %60 to i32
%62 = and i32 %61, -3
%63 = trunc i32 %62 to i16
store i16 %63, ptr %6, align 2
%64 = load i16, ptr %6, align 2
%65 = sext i16 %64 to i32
%66 = call i32 @printINT16(i32 noundef %65)
%67 = load i16, ptr %6, align 2
%68 = sext i16 %67 to i32
%69 = and i32 %68, 2
%70 = icmp ne i32 %69, 0
br i1 %70, label %71, label %73
71: ; preds = %59
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %73
73: ; preds = %71, %59
%74 = call i32 @printINT16(i32 noundef 2)
%75 = load i16, ptr %6, align 2
%76 = call i32 @bitINT16(i16 noundef signext %75, i32 noundef 1)
%77 = icmp eq i32 %76, 1
br i1 %77, label %78, label %80
78: ; preds = %73
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %80
80: ; preds = %78, %73
%81 = call i32 @printINT16(i32 noundef 104)
%82 = call i32 @printINT16(i32 noundef 175)
%83 = call i32 @printINT16(i32 noundef 5890)
%84 = call i32 @printINT16(i32 noundef 511)
%85 = call i32 @printINT16(i32 noundef 58594)
%86 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 58594, i32 noundef 58594)
%87 = call i32 @printINT16(i32 noundef 8)
%88 = call i32 @printINT16(i32 noundef 35)
store i8 0, ptr %7, align 1
%89 = load i8, ptr %7, align 1
%90 = sext i8 %89 to i32
%91 = call i32 @printINT16(i32 noundef %90)
%92 = load i8, ptr %7, align 1
%93 = sext i8 %92 to i32
%94 = or i32 %93, 24
%95 = trunc i32 %94 to i8
store i8 %95, ptr %7, align 1
%96 = load i8, ptr %7, align 1
%97 = sext i8 %96 to i32
%98 = call i32 @printINT16(i32 noundef %97)
%99 = load i8, ptr %7, align 1
%100 = sext i8 %99 to i32
%101 = shl i32 %100, 3
%102 = trunc i32 %101 to i8
store i8 %102, ptr %7, align 1
%103 = load i8, ptr %7, align 1
%104 = sext i8 %103 to i32
%105 = call i32 @printINT16(i32 noundef %104)
%106 = load i8, ptr %7, align 1
%107 = sext i8 %106 to i16
store i16 %107, ptr %8, align 2
%108 = load i16, ptr %8, align 2
%109 = zext i16 %108 to i32
%110 = call i32 @printINT16(i32 noundef %109)
%111 = load i16, ptr %8, align 2
%112 = zext i16 %111 to i32
%113 = shl i32 %112, 8
%114 = trunc i32 %113 to i16
store i16 %114, ptr %8, align 2
%115 = load i16, ptr %8, align 2
%116 = zext i16 %115 to i32
%117 = call i32 @printINT16(i32 noundef %116)
store i16 -16277, ptr %9, align 2
%118 = load i16, ptr %9, align 2
%119 = zext i16 %118 to i32
%120 = call i32 @printINT16(i32 noundef %119)
%121 = load i16, ptr %9, align 2
%122 = zext i16 %121 to i32
%123 = shl i32 %122, 3
%124 = trunc i32 %123 to i16
store i16 %124, ptr %9, align 2
%125 = load i16, ptr %9, align 2
%126 = zext i16 %125 to i32
%127 = call i32 @printINT16(i32 noundef %126)
%128 = load i16, ptr %9, align 2
%129 = zext i16 %128 to i32
%130 = ashr i32 %129, 1
%131 = trunc i32 %130 to i16
store i16 %131, ptr %9, align 2
%132 = load i16, ptr %9, align 2
%133 = zext i16 %132 to i32
%134 = call i32 @printINT16(i32 noundef %133)
%135 = load i16, ptr %9, align 2
%136 = zext i16 %135 to i32
%137 = sitofp i32 %136 to double
%138 = fmul double %137, 3.300000e+03
%139 = fdiv double %138, 1.024000e+03
%140 = fptrunc double %139 to float
store float %140, ptr %10, align 4
%141 = load float, ptr %10, align 4
%142 = fpext float %141 to double
%143 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %142)
%144 = load float, ptr %10, align 4
%145 = fpext float %144 to double
%146 = fsub double %145, 1.000000e+02
%147 = fdiv double %146, 1.000000e+01
%148 = fsub double %147, 4.000000e+01
%149 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %148)
%150 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef 1155596288, i32 noundef 1155598336)
%151 = call i32 @printINT32(i32 noundef 1155596288)
%152 = call i32 @printINT32(i32 noundef 1155598336)
store i32 1, ptr %11, align 4
%153 = load i32, ptr %11, align 4
%154 = call i32 @printINT32(i32 noundef %153)
%155 = load i32, ptr %11, align 4
%156 = add nsw i32 %155, 1
%157 = call i32 @printINT32(i32 noundef %156)
%158 = load i32, ptr %11, align 4
%159 = shl i32 %158, 2
%160 = call i32 @printINT32(i32 noundef %159)
%161 = call i32 @printINT32(i32 noundef 2)
%162 = call i32 @printINT32(i32 noundef 4)
%163 = call i32 @printINT16(i32 noundef 0)
%164 = call i32 @printINT16(i32 noundef 7)
%165 = call i32 @printINT16(i32 noundef 39)
%166 = call i32 @printINT16(i32 noundef 55)
%167 = call i32 @printINT16(i32 noundef 39)
%168 = call i32 @printINT16(i32 noundef 8191)
%169 = call i32 @printINT16(i32 noundef 255)
%170 = call i32 @printINT32(i32 noundef 2)
%171 = call i32 @printINT32(i32 noundef 262144)
%172 = call i32 @printINT16(i32 noundef 16)
%173 = call i32 @printINT16(i32 noundef 31)
store i32 1, ptr %12, align 4
%174 = load i32, ptr %12, align 4
%175 = call i32 @printINT32(i32 noundef %174)
%176 = load i32, ptr %12, align 4
%177 = ashr i32 %176, 0
%178 = call i32 @printINT32(i32 noundef %177)
%179 = load i32, ptr %12, align 4
%180 = ashr i32 %179, 1
%181 = call i32 @printINT32(i32 noundef %180)
%182 = load i32, ptr %12, align 4
%183 = ashr i32 %182, 22
%184 = call i32 @printINT32(i32 noundef %183)
store i32 29360128, ptr %13, align 4
%185 = call i32 @printINT32(i32 noundef 7)
%186 = load i32, ptr %13, align 4
%187 = call i32 @printINT32(i32 noundef %186)
%188 = load i32, ptr %13, align 4
%189 = load i32, ptr %13, align 4
%190 = xor i32 %188, %189
%191 = call i32 @printINT32(i32 noundef %190)
store i32 0, ptr %14, align 4
store i32 1, ptr %13, align 4
%192 = load i32, ptr %13, align 4
%193 = load i32, ptr %14, align 4
%194 = and i32 %193, 31
%195 = shl i32 %192, %194
store i32 %195, ptr %13, align 4
%196 = load i32, ptr %13, align 4
%197 = call i32 @printINT32(i32 noundef %196)
%198 = load i32, ptr %13, align 4
%199 = shl i32 %198, 22
store i32 %199, ptr %13, align 4
%200 = load i32, ptr %13, align 4
%201 = call i32 @printINT32(i32 noundef %200)
store i32 0, ptr %15, align 4
%202 = load i32, ptr %15, align 4
%203 = load i32, ptr %13, align 4
%204 = or i32 %202, %203
store i32 %204, ptr %15, align 4
%205 = load i32, ptr %15, align 4
%206 = call i32 @printINT32(i32 noundef %205)
%207 = load i32, ptr %14, align 4
%208 = add nsw i32 %207, 1
store i32 %208, ptr %14, align 4
store i32 1, ptr %13, align 4
%209 = load i32, ptr %13, align 4
%210 = load i32, ptr %14, align 4
%211 = and i32 %210, 31
%212 = shl i32 %209, %211
store i32 %212, ptr %13, align 4
%213 = load i32, ptr %13, align 4
%214 = shl i32 %213, 22
store i32 %214, ptr %13, align 4
%215 = load i32, ptr %15, align 4
%216 = load i32, ptr %13, align 4
%217 = or i32 %215, %216
store i32 %217, ptr %15, align 4
%218 = load i32, ptr %15, align 4
%219 = call i32 @printINT32(i32 noundef %218)
%220 = load i32, ptr %14, align 4
%221 = add nsw i32 %220, 1
store i32 %221, ptr %14, align 4
store i32 1, ptr %13, align 4
%222 = load i32, ptr %13, align 4
%223 = load i32, ptr %14, align 4
%224 = and i32 %223, 31
%225 = shl i32 %222, %224
store i32 %225, ptr %13, align 4
%226 = load i32, ptr %13, align 4
%227 = shl i32 %226, 22
store i32 %227, ptr %13, align 4
%228 = load i32, ptr %15, align 4
%229 = load i32, ptr %13, align 4
%230 = or i32 %228, %229
store i32 %230, ptr %15, align 4
%231 = load i32, ptr %15, align 4
%232 = call i32 @printINT32(i32 noundef %231)
%233 = call i32 @printINT32(i32 noundef 8191)
%234 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef 8191)
%235 = call i32 @printINT32(i32 noundef 25165824)
%236 = call i32 @printINT32(i32 noundef 7864320)
%237 = call i32 @printINT32(i32 noundef 131)
%238 = call i32 @printINT32(i32 noundef 643)
%239 = call i32 @printINT32(i32 noundef 128)
%240 = call i32 @printINT32(i32 noundef 4096)
%241 = call i32 @BITPOS(i32 noundef 4096)
%242 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %241)
%243 = call i32 @printINT32(i32 noundef 1711276259)
%244 = call i32 @printINT32(i32 noundef 16000000)
%245 = call i32 @printINT32(i32 noundef 50000000)
%246 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef 100000000)
%247 = call i32 @printINT32(i32 noundef 1)
%248 = call i32 @printINT32(i32 noundef 2)
%249 = call i32 @printINT32(i32 noundef 4)
%250 = call i32 @printINT32(i32 noundef 20)
ret i32 0
}
declare i32 @printINT16(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @bitINT16(i16 noundef signext, i32 noundef) #1
declare i32 @printINT32(i32 noundef) #1
declare i32 @BITPOS(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/tmpnr8krdh2.c'
source_filename = "/tmp/tmpnr8krdh2.c"
target datalayout = "e-m:e-p270: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/tmpnr8krdh2.c"
target datalayout = "e-m:e-p270: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/tmpgpfrkytv.c'
source_filename = "/tmp/tmpgpfrkytv.c"
target datalayout = "e-m:e-p270: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/tmpgpfrkytv.c"
target datalayout = "e-m:e-p270: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/tmpgcgeojki.c'
source_filename = "/tmp/tmpgcgeojki.c"
target datalayout = "e-m:e-p270: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/tmpgcgeojki.c"
target datalayout = "e-m:e-p270: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/tmptlwy_ka8.c'
source_filename = "/tmp/tmptlwy_ka8.c"
target datalayout = "e-m:e-p270: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/tmptlwy_ka8.c"
target datalayout = "e-m:e-p270: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/tmphslj6t8w.c'
source_filename = "/tmp/tmphslj6t8w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@randomize.RB = internal global [16 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [13 x i8] c"/dev/urandom\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @randomize() #0 {
%1 = alloca i32, align 4
%2 = load i32, ptr @O_RDONLY, align 4
%3 = call i32 @open(ptr noundef @.str, i32 noundef %2)
store i32 %3, ptr %1, align 4
%4 = load i32, ptr %1, align 4
%5 = call i32 @read(i32 noundef %4, ptr noundef @randomize.RB, i32 noundef 8)
%6 = sext i32 %5 to i64
%7 = icmp eq i64 %6, 8
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 noundef %8)
%10 = load i64, ptr @randomize.RB, align 16
%11 = call i32 @srand48(i64 noundef %10)
ret void
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @srand48(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/tmphslj6t8w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@randomize.RB = internal global [16 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [13 x i8] c"/dev/urandom\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @randomize() #0 {
%1 = alloca i32, align 4
%2 = load i32, ptr @O_RDONLY, align 4
%3 = call i32 @open(ptr noundef @.str, i32 noundef %2)
store i32 %3, ptr %1, align 4
%4 = load i32, ptr %1, align 4
%5 = call i32 @read(i32 noundef %4, ptr noundef @randomize.RB, i32 noundef 8)
%6 = sext i32 %5 to i64
%7 = icmp eq i64 %6, 8
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 noundef %8)
%10 = load i64, ptr @randomize.RB, align 16
%11 = call i32 @srand48(i64 noundef %10)
ret void
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @srand48(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/tmpvp2ozabe.c'
source_filename = "/tmp/tmpvp2ozabe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @baz_bar_loop(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %8
8: ; preds = %33, %3
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %36
12: ; preds = %8
%13 = load ptr, ptr %5, align 8
%14 = load i32, ptr %7, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds float, ptr %13, i64 %15
%17 = load float, ptr %16, align 4
%18 = call double @baz(float noundef %17)
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds double, ptr %19, i64 %21
store double %18, ptr %22, align 8
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %7, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds double, ptr %23, i64 %25
%27 = load double, ptr %26, align 8
%28 = call float @bar(double noundef %27)
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %7, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds float, ptr %29, i64 %31
store float %28, ptr %32, align 4
br label %33
33: ; preds = %12
%34 = load i32, ptr %7, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %7, align 4
br label %8, !llvm.loop !6
36: ; preds = %8
ret void
}
declare double @baz(float noundef) #1
declare float @bar(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/tmpvp2ozabe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @baz_bar_loop(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %38
.lr.ph: ; preds = %3
br label %11
11: ; preds = %.lr.ph, %32
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr %7, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds float, ptr %12, i64 %14
%16 = load float, ptr %15, align 4
%17 = call double @baz(float noundef %16)
%18 = load ptr, ptr %4, align 8
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds double, ptr %18, i64 %20
store double %17, ptr %21, align 8
%22 = load ptr, ptr %4, align 8
%23 = load i32, ptr %7, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds double, ptr %22, i64 %24
%26 = load double, ptr %25, align 8
%27 = call float @bar(double noundef %26)
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %7, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds float, ptr %28, i64 %30
store float %27, ptr %31, align 4
br label %32
32: ; preds = %11
%33 = load i32, ptr %7, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %7, align 4
%35 = load i32, ptr %7, align 4
%36 = load i32, ptr %6, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %38
38: ; preds = %._crit_edge, %3
ret void
}
declare double @baz(float noundef) #1
declare float @bar(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/tmp4jvc39ch.c'
source_filename = "/tmp/tmp4jvc39ch.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @upcase(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 = %9, %2
%6 = load i32, ptr %4, align 4
%7 = add nsw i32 %6, -1
store i32 %7, ptr %4, align 4
%8 = icmp ne i32 %6, 0
br i1 %8, label %9, label %16
9: ; preds = %5
%10 = load ptr, ptr %3, align 8
%11 = load i8, ptr %10, align 1
%12 = call signext i8 @toupper(i8 noundef signext %11)
%13 = load ptr, ptr %3, align 8
store i8 %12, ptr %13, align 1
%14 = load ptr, ptr %3, align 8
%15 = getelementptr inbounds i8, ptr %14, i32 1
store ptr %15, ptr %3, align 8
br label %5, !llvm.loop !6
16: ; preds = %5
ret void
}
declare signext i8 @toupper(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4jvc39ch.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @upcase(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = add nsw i32 %5, -1
store i32 %6, ptr %4, align 4
%7 = icmp ne i32 %5, 0
br i1 %7, label %.lr.ph, label %18
.lr.ph: ; preds = %2
br label %8
8: ; preds = %.lr.ph, %8
%9 = load ptr, ptr %3, align 8
%10 = load i8, ptr %9, align 1
%11 = call signext i8 @toupper(i8 noundef signext %10)
%12 = load ptr, ptr %3, align 8
store i8 %11, ptr %12, align 1
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds i8, ptr %13, i32 1
store ptr %14, ptr %3, align 8
%15 = load i32, ptr %4, align 4
%16 = add nsw i32 %15, -1
store i32 %16, ptr %4, align 4
%17 = icmp ne i32 %15, 0
br i1 %17, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %8
br label %18
18: ; preds = %._crit_edge, %2
ret void
}
declare signext i8 @toupper(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4xgvl9jl.c'
source_filename = "/tmp/tmp4xgvl9jl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @flip(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
br label %10
10: ; preds = %58, %3
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %61
14: ; preds = %10
store i32 0, ptr %8, align 4
br label %15
15: ; preds = %20, %14
%16 = load i32, ptr %8, align 4
%17 = load i32, ptr %6, align 4
%18 = sdiv i32 %17, 2
%19 = icmp slt i32 %16, %18
br i1 %19, label %20, label %58
20: ; preds = %15
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %7, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds ptr, ptr %21, i64 %23
%25 = load ptr, ptr %24, align 8
%26 = load i32, ptr %8, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, ptr %25, i64 %27
%29 = load i32, ptr %28, align 4
store i32 %29, ptr %9, align 4
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds ptr, ptr %30, i64 %32
%34 = load ptr, ptr %33, align 8
%35 = load i32, ptr %7, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %34, i64 %36
%38 = load i32, ptr %37, align 4
%39 = load ptr, ptr %4, align 8
%40 = load i32, ptr %7, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds ptr, ptr %39, i64 %41
%43 = load ptr, ptr %42, align 8
%44 = load i32, ptr %8, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i32, ptr %43, i64 %45
store i32 %38, ptr %46, align 4
%47 = load i32, ptr %9, align 4
%48 = load ptr, ptr %4, align 8
%49 = load i32, ptr %8, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds ptr, ptr %48, i64 %50
%52 = load ptr, ptr %51, align 8
%53 = load i32, ptr %7, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i32, ptr %52, i64 %54
store i32 %47, ptr %55, align 4
%56 = load i32, ptr %8, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %8, align 4
br label %15, !llvm.loop !6
58: ; preds = %15
%59 = load i32, ptr %7, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %7, align 4
br label %10, !llvm.loop !8
61: ; 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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4xgvl9jl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @flip(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
%10 = load i32, ptr %7, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph2, label %66
.lr.ph2: ; preds = %3
br label %13
13: ; preds = %.lr.ph2, %60
store i32 0, ptr %8, align 4
%14 = load i32, ptr %8, align 4
%15 = load i32, ptr %6, align 4
%16 = sdiv i32 %15, 2
%17 = icmp slt i32 %14, %16
br i1 %17, label %.lr.ph, label %60
.lr.ph: ; preds = %13
br label %18
18: ; preds = %.lr.ph, %18
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds ptr, ptr %19, i64 %21
%23 = load ptr, ptr %22, align 8
%24 = load i32, ptr %8, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %23, i64 %25
%27 = load i32, ptr %26, align 4
store i32 %27, ptr %9, align 4
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %8, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds ptr, ptr %28, i64 %30
%32 = load ptr, ptr %31, align 8
%33 = load i32, ptr %7, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %32, i64 %34
%36 = load i32, ptr %35, align 4
%37 = load ptr, ptr %4, align 8
%38 = load i32, ptr %7, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds ptr, ptr %37, i64 %39
%41 = load ptr, ptr %40, align 8
%42 = load i32, ptr %8, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
store i32 %36, ptr %44, align 4
%45 = load i32, ptr %9, align 4
%46 = load ptr, ptr %4, align 8
%47 = load i32, ptr %8, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds ptr, ptr %46, i64 %48
%50 = load ptr, ptr %49, align 8
%51 = load i32, ptr %7, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i32, ptr %50, i64 %52
store i32 %45, ptr %53, align 4
%54 = load i32, ptr %8, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %8, align 4
%56 = load i32, ptr %8, align 4
%57 = load i32, ptr %6, align 4
%58 = sdiv i32 %57, 2
%59 = icmp slt i32 %56, %58
br i1 %59, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %60
60: ; preds = %._crit_edge, %13
%61 = load i32, ptr %7, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %7, align 4
%63 = load i32, ptr %7, align 4
%64 = load i32, ptr %5, align 4
%65 = icmp slt i32 %63, %64
br i1 %65, label %13, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %60
br label %66
66: ; preds = %._crit_edge3, %3
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/tmpy7iwlc2v.c'
source_filename = "/tmp/tmpy7iwlc2v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGQUIT = dso_local global i32 0, align 4
@SIG_DFL = dso_local global i32 0, align 4
@SIG_ERR = dso_local global i64 0, align 8
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy7iwlc2v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGQUIT = dso_local global i32 0, align 4
@SIG_DFL = dso_local global i32 0, align 4
@SIG_ERR = dso_local global i64 0, align 8
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbtwde4ed.c'
source_filename = "/tmp/tmpbtwde4ed.c"
target datalayout = "e-m:e-p270: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/tmpbtwde4ed.c"
target datalayout = "e-m:e-p270: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/tmpmqlc_3w0.c'
source_filename = "/tmp/tmpmqlc_3w0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"Test Int\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test1() #0 {
%1 = call i32 @initTestCase(ptr noundef @.str)
%2 = call i32 @assertInt(i32 noundef 10, i32 noundef 10)
%3 = call i32 (...) @produceOne()
%4 = call i32 @assertInt(i32 noundef 1, i32 noundef %3)
%5 = call i32 (...) @finishTestCase()
ret i32 %5
}
declare i32 @initTestCase(ptr noundef) #1
declare i32 @assertInt(i32 noundef, i32 noundef) #1
declare i32 @produceOne(...) #1
declare i32 @finishTestCase(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmqlc_3w0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"Test Int\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test1() #0 {
%1 = call i32 @initTestCase(ptr noundef @.str)
%2 = call i32 @assertInt(i32 noundef 10, i32 noundef 10)
%3 = call i32 (...) @produceOne()
%4 = call i32 @assertInt(i32 noundef 1, i32 noundef %3)
%5 = call i32 (...) @finishTestCase()
ret i32 %5
}
declare i32 @initTestCase(ptr noundef) #1
declare i32 @assertInt(i32 noundef, i32 noundef) #1
declare i32 @produceOne(...) #1
declare i32 @finishTestCase(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgf6qpyi4.c'
source_filename = "/tmp/tmpgf6qpyi4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s: expected <meshfile> <mshffile> <casedir>\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [14 x i8] c"%s: error %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [256 x i8], align 16
%8 = alloca [256 x i8], align 16
%9 = alloca [256 x i8], align 16
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp slt i32 %13, 3
br i1 %14, label %15, label %20
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 0
%18 = load ptr, ptr %17, align 8
%19 = call i32 @printf(ptr noundef @.str, ptr noundef %18)
store i32 1, ptr %6, align 4
br label %46
20: ; preds = %2
%21 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i32 @strcpy(ptr noundef %21, ptr noundef %24)
%26 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%27 = call i32 @strlen(ptr noundef %26)
store i32 %27, ptr %10, align 4
%28 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 2
%31 = load ptr, ptr %30, align 8
%32 = call i32 @strcpy(ptr noundef %28, ptr noundef %31)
%33 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%34 = call i32 @strlen(ptr noundef %33)
store i32 %34, ptr %11, align 4
%35 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds ptr, ptr %36, i64 3
%38 = load ptr, ptr %37, align 8
%39 = call i32 @strcpy(ptr noundef %35, ptr noundef %38)
%40 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%41 = call i32 @strlen(ptr noundef %40)
store i32 %41, ptr %12, align 4
%42 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%43 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%44 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%45 = call i32 @gpde_main_(ptr noundef %10, ptr noundef %42, ptr noundef %11, ptr noundef %43, ptr noundef %12, ptr noundef %44)
br label %46
46: ; preds = %20, %15
%47 = load i32, ptr %6, align 4
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %56
49: ; preds = %46
%50 = load i32, ptr @stderr, align 4
%51 = load ptr, ptr %5, align 8
%52 = getelementptr inbounds ptr, ptr %51, i64 0
%53 = load ptr, ptr %52, align 8
%54 = load i32, ptr %6, align 4
%55 = call i32 @fprintf(i32 noundef %50, ptr noundef @.str.1, ptr noundef %53, i32 noundef %54)
br label %56
56: ; preds = %49, %46
%57 = load i32, ptr %6, align 4
ret i32 %57
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @gpde_main_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgf6qpyi4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s: expected <meshfile> <mshffile> <casedir>\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [14 x i8] c"%s: error %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [256 x i8], align 16
%8 = alloca [256 x i8], align 16
%9 = alloca [256 x i8], align 16
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp slt i32 %13, 3
br i1 %14, label %15, label %20
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 0
%18 = load ptr, ptr %17, align 8
%19 = call i32 @printf(ptr noundef @.str, ptr noundef %18)
store i32 1, ptr %6, align 4
br label %46
20: ; preds = %2
%21 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i32 @strcpy(ptr noundef %21, ptr noundef %24)
%26 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%27 = call i32 @strlen(ptr noundef %26)
store i32 %27, ptr %10, align 4
%28 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 2
%31 = load ptr, ptr %30, align 8
%32 = call i32 @strcpy(ptr noundef %28, ptr noundef %31)
%33 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%34 = call i32 @strlen(ptr noundef %33)
store i32 %34, ptr %11, align 4
%35 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds ptr, ptr %36, i64 3
%38 = load ptr, ptr %37, align 8
%39 = call i32 @strcpy(ptr noundef %35, ptr noundef %38)
%40 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%41 = call i32 @strlen(ptr noundef %40)
store i32 %41, ptr %12, align 4
%42 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%43 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%44 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%45 = call i32 @gpde_main_(ptr noundef %10, ptr noundef %42, ptr noundef %11, ptr noundef %43, ptr noundef %12, ptr noundef %44)
br label %46
46: ; preds = %20, %15
%47 = load i32, ptr %6, align 4
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %56
49: ; preds = %46
%50 = load i32, ptr @stderr, align 4
%51 = load ptr, ptr %5, align 8
%52 = getelementptr inbounds ptr, ptr %51, i64 0
%53 = load ptr, ptr %52, align 8
%54 = load i32, ptr %6, align 4
%55 = call i32 @fprintf(i32 noundef %50, ptr noundef @.str.1, ptr noundef %53, i32 noundef %54)
br label %56
56: ; preds = %49, %46
%57 = load i32, ptr %6, align 4
ret i32 %57
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @gpde_main_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp281ohcmw.c'
source_filename = "/tmp/tmp281ohcmw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @arch_benchmarks() #0 {
%1 = call i32 (...) @dbg_break()
ret void
}
declare i32 @dbg_break(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp281ohcmw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @arch_benchmarks() #0 {
%1 = call i32 (...) @dbg_break()
ret void
}
declare i32 @dbg_break(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpz79wsed5.c'
source_filename = "/tmp/tmpz79wsed5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SubstringBetween(ptr noundef %0, i8 noundef signext %1, i8 noundef signext %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i8 %1, ptr %6, align 1
store i8 %2, ptr %7, align 1
%12 = load ptr, ptr %5, align 8
%13 = load i8, ptr %6, align 1
%14 = call i32 @IndexOf(ptr noundef %12, i8 noundef signext %13)
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %9, align 4
%16 = icmp eq i32 %15, -1
br i1 %16, label %23, label %17
17: ; preds = %3
%18 = load i32, ptr %9, align 4
%19 = load ptr, ptr %5, align 8
%20 = call i32 @strlen(ptr noundef %19)
%21 = sub nsw i32 %20, 1
%22 = icmp eq i32 %18, %21
br i1 %22, label %23, label %24
23: ; preds = %17, %3
store ptr null, ptr %4, align 8
br label %55
24: ; preds = %17
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %9, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = getelementptr inbounds i8, ptr %28, i64 1
store ptr %29, ptr %10, align 8
%30 = load ptr, ptr %10, align 8
%31 = load i8, ptr %7, align 1
%32 = call i32 @IndexOf(ptr noundef %30, i8 noundef signext %31)
store i32 %32, ptr %11, align 4
%33 = load i32, ptr %11, align 4
%34 = icmp eq i32 %33, -1
br i1 %34, label %35, label %43
35: ; preds = %24
%36 = load ptr, ptr %10, align 8
%37 = call i32 @strlen(ptr noundef %36)
%38 = add nsw i32 %37, 1
%39 = call ptr @malloc(i32 noundef %38)
store ptr %39, ptr %8, align 8
%40 = load ptr, ptr %8, align 8
%41 = load ptr, ptr %10, align 8
%42 = call ptr @strcpy(ptr noundef %40, ptr noundef %41)
store ptr %42, ptr %4, align 8
br label %55
43: ; preds = %24
%44 = load i32, ptr %11, align 4
%45 = add nsw i32 %44, 1
%46 = call ptr @malloc(i32 noundef %45)
store ptr %46, ptr %8, align 8
%47 = load ptr, ptr %8, align 8
%48 = load i32, ptr %11, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, ptr %47, i64 %49
store i8 0, ptr %50, align 1
%51 = load ptr, ptr %8, align 8
%52 = load ptr, ptr %10, align 8
%53 = load i32, ptr %11, align 4
%54 = call ptr @strncpy(ptr noundef %51, ptr noundef %52, i32 noundef %53)
store ptr %54, ptr %4, align 8
br label %55
55: ; preds = %43, %35, %23
%56 = load ptr, ptr %4, align 8
ret ptr %56
}
declare i32 @IndexOf(ptr noundef, i8 noundef signext) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare ptr @strcpy(ptr noundef, ptr noundef) #1
declare ptr @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz79wsed5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SubstringBetween(ptr noundef %0, i8 noundef signext %1, i8 noundef signext %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i8 %1, ptr %6, align 1
store i8 %2, ptr %7, align 1
%12 = load ptr, ptr %5, align 8
%13 = load i8, ptr %6, align 1
%14 = call i32 @IndexOf(ptr noundef %12, i8 noundef signext %13)
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %9, align 4
%16 = icmp eq i32 %15, -1
br i1 %16, label %23, label %17
17: ; preds = %3
%18 = load i32, ptr %9, align 4
%19 = load ptr, ptr %5, align 8
%20 = call i32 @strlen(ptr noundef %19)
%21 = sub nsw i32 %20, 1
%22 = icmp eq i32 %18, %21
br i1 %22, label %23, label %24
23: ; preds = %17, %3
store ptr null, ptr %4, align 8
br label %55
24: ; preds = %17
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %9, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = getelementptr inbounds i8, ptr %28, i64 1
store ptr %29, ptr %10, align 8
%30 = load ptr, ptr %10, align 8
%31 = load i8, ptr %7, align 1
%32 = call i32 @IndexOf(ptr noundef %30, i8 noundef signext %31)
store i32 %32, ptr %11, align 4
%33 = load i32, ptr %11, align 4
%34 = icmp eq i32 %33, -1
br i1 %34, label %35, label %43
35: ; preds = %24
%36 = load ptr, ptr %10, align 8
%37 = call i32 @strlen(ptr noundef %36)
%38 = add nsw i32 %37, 1
%39 = call ptr @malloc(i32 noundef %38)
store ptr %39, ptr %8, align 8
%40 = load ptr, ptr %8, align 8
%41 = load ptr, ptr %10, align 8
%42 = call ptr @strcpy(ptr noundef %40, ptr noundef %41)
store ptr %42, ptr %4, align 8
br label %55
43: ; preds = %24
%44 = load i32, ptr %11, align 4
%45 = add nsw i32 %44, 1
%46 = call ptr @malloc(i32 noundef %45)
store ptr %46, ptr %8, align 8
%47 = load ptr, ptr %8, align 8
%48 = load i32, ptr %11, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, ptr %47, i64 %49
store i8 0, ptr %50, align 1
%51 = load ptr, ptr %8, align 8
%52 = load ptr, ptr %10, align 8
%53 = load i32, ptr %11, align 4
%54 = call ptr @strncpy(ptr noundef %51, ptr noundef %52, i32 noundef %53)
store ptr %54, ptr %4, align 8
br label %55
55: ; preds = %43, %35, %23
%56 = load ptr, ptr %4, align 8
ret ptr %56
}
declare i32 @IndexOf(ptr noundef, i8 noundef signext) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare ptr @strcpy(ptr noundef, ptr noundef) #1
declare ptr @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgkg630eh.c'
source_filename = "/tmp/tmpgkg630eh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"Usage: q <queue cmd> [<queue cmd args>]\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [19 x i8] c" queue commands:\0A\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c" q quit daemon\0A\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c" l list queue\0A\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c" i queue info\0A\00", align 1
@.str.5 = private unnamed_addr constant [25 x i8] c" s stop queue\0A\00", align 1
@.str.6 = private unnamed_addr constant [24 x i8] c" r run queue\0A\00", align 1
@.str.7 = private unnamed_addr constant [27 x i8] c" 8 repeat queue\0A\00", align 1
@.str.8 = private unnamed_addr constant [26 x i8] c" f flush queue\0A\00", align 1
@.str.9 = private unnamed_addr constant [40 x i8] c" d <n> delete n-th item in queue\0A\00", align 1
@.str.10 = private unnamed_addr constant [31 x i8] c" a <cmd> add cmd to queue\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fputs(ptr noundef @.str, i32 noundef %1)
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @fputs(ptr noundef @.str.1, i32 noundef %3)
%5 = load i32, ptr @stderr, align 4
%6 = call i32 @fputs(ptr noundef @.str.2, i32 noundef %5)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fputs(ptr noundef @.str.3, i32 noundef %7)
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fputs(ptr noundef @.str.4, i32 noundef %9)
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fputs(ptr noundef @.str.5, i32 noundef %11)
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fputs(ptr noundef @.str.6, i32 noundef %13)
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fputs(ptr noundef @.str.7, i32 noundef %15)
%17 = load i32, ptr @stderr, align 4
%18 = call i32 @fputs(ptr noundef @.str.8, i32 noundef %17)
%19 = load i32, ptr @stderr, align 4
%20 = call i32 @fputs(ptr noundef @.str.9, i32 noundef %19)
%21 = load i32, ptr @stderr, align 4
%22 = call i32 @fputs(ptr noundef @.str.10, i32 noundef %21)
ret void
}
declare i32 @fputs(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/tmpgkg630eh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"Usage: q <queue cmd> [<queue cmd args>]\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [19 x i8] c" queue commands:\0A\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c" q quit daemon\0A\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c" l list queue\0A\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c" i queue info\0A\00", align 1
@.str.5 = private unnamed_addr constant [25 x i8] c" s stop queue\0A\00", align 1
@.str.6 = private unnamed_addr constant [24 x i8] c" r run queue\0A\00", align 1
@.str.7 = private unnamed_addr constant [27 x i8] c" 8 repeat queue\0A\00", align 1
@.str.8 = private unnamed_addr constant [26 x i8] c" f flush queue\0A\00", align 1
@.str.9 = private unnamed_addr constant [40 x i8] c" d <n> delete n-th item in queue\0A\00", align 1
@.str.10 = private unnamed_addr constant [31 x i8] c" a <cmd> add cmd to queue\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fputs(ptr noundef @.str, i32 noundef %1)
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @fputs(ptr noundef @.str.1, i32 noundef %3)
%5 = load i32, ptr @stderr, align 4
%6 = call i32 @fputs(ptr noundef @.str.2, i32 noundef %5)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fputs(ptr noundef @.str.3, i32 noundef %7)
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fputs(ptr noundef @.str.4, i32 noundef %9)
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fputs(ptr noundef @.str.5, i32 noundef %11)
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fputs(ptr noundef @.str.6, i32 noundef %13)
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fputs(ptr noundef @.str.7, i32 noundef %15)
%17 = load i32, ptr @stderr, align 4
%18 = call i32 @fputs(ptr noundef @.str.8, i32 noundef %17)
%19 = load i32, ptr @stderr, align 4
%20 = call i32 @fputs(ptr noundef @.str.9, i32 noundef %19)
%21 = load i32, ptr @stderr, align 4
%22 = call i32 @fputs(ptr noundef @.str.10, i32 noundef %21)
ret void
}
declare i32 @fputs(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/tmprk88za2p.c'
source_filename = "/tmp/tmprk88za2p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @relativeSortArray(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca [1000 x i32], align 16
%12 = alloca [1000 x i32], align 16
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%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 %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 4000, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %12, i8 0, i64 4000, i1 false)
store i32 0, ptr %13, align 4
%23 = load i32, ptr %7, align 4
%24 = sext i32 %23 to i64
%25 = mul i64 4, %24
%26 = trunc i64 %25 to i32
%27 = call i64 @malloc(i32 noundef %26)
%28 = inttoptr i64 %27 to ptr
store ptr %28, ptr %14, align 8
%29 = load i32, ptr %7, align 4
%30 = load ptr, ptr %10, align 8
store i32 %29, ptr %30, align 4
store i32 0, ptr %15, align 4
br label %31
31: ; preds = %43, %5
%32 = load i32, ptr %15, align 4
%33 = load i32, ptr %9, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %46
35: ; preds = %31
%36 = load ptr, ptr %8, align 8
%37 = load i32, ptr %15, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i32, ptr %36, i64 %38
%40 = load i32, ptr %39, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [1000 x i32], ptr %11, i64 0, i64 %41
store i32 1, ptr %42, align 4
br label %43
43: ; preds = %35
%44 = load i32, ptr %15, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %15, align 4
br label %31, !llvm.loop !6
46: ; preds = %31
store i32 0, ptr %16, align 4
br label %47
47: ; preds = %81, %46
%48 = load i32, ptr %16, align 4
%49 = load i32, ptr %7, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %51, label %84
51: ; preds = %47
%52 = load ptr, ptr %6, align 8
%53 = load i32, ptr %16, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i32, ptr %52, i64 %54
%56 = load i32, ptr %55, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [1000 x i32], ptr %11, i64 0, i64 %57
%59 = load i32, ptr %58, align 4
%60 = icmp sgt i32 %59, 0
br i1 %60, label %61, label %71
61: ; preds = %51
%62 = load ptr, ptr %6, align 8
%63 = load i32, ptr %16, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i32, ptr %62, i64 %64
%66 = load i32, ptr %65, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [1000 x i32], ptr %11, i64 0, i64 %67
%69 = load i32, ptr %68, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %68, align 4
br label %81
71: ; preds = %51
%72 = load ptr, ptr %6, align 8
%73 = load i32, ptr %16, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i32, ptr %72, i64 %74
%76 = load i32, ptr %75, align 4
%77 = load i32, ptr %13, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %13, align 4
%79 = sext i32 %77 to i64
%80 = getelementptr inbounds [1000 x i32], ptr %12, i64 0, i64 %79
store i32 %76, ptr %80, align 4
br label %81
81: ; preds = %71, %61
%82 = load i32, ptr %16, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %16, align 4
br label %47, !llvm.loop !8
84: ; preds = %47
store i32 0, ptr %17, align 4
br label %85
85: ; preds = %131, %84
%86 = load i32, ptr %17, align 4
%87 = load i32, ptr %13, align 4
%88 = icmp slt i32 %86, %87
br i1 %88, label %89, label %134
89: ; preds = %85
store i32 0, ptr %18, align 4
br label %90
90: ; preds = %127, %89
%91 = load i32, ptr %18, align 4
%92 = load i32, ptr %13, align 4
%93 = load i32, ptr %17, align 4
%94 = sub nsw i32 %92, %93
%95 = sub nsw i32 %94, 1
%96 = icmp slt i32 %91, %95
br i1 %96, label %97, label %130
97: ; preds = %90
%98 = load i32, ptr %18, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [1000 x i32], ptr %12, i64 0, i64 %99
%101 = load i32, ptr %100, align 4
%102 = load i32, ptr %18, align 4
%103 = add nsw i32 %102, 1
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds [1000 x i32], ptr %12, i64 0, i64 %104
%106 = load i32, ptr %105, align 4
%107 = icmp sgt i32 %101, %106
br i1 %107, label %108, label %126
108: ; preds = %97
%109 = load i32, ptr %18, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [1000 x i32], ptr %12, i64 0, i64 %110
%112 = load i32, ptr %111, align 4
store i32 %112, ptr %19, align 4
%113 = load i32, ptr %18, align 4
%114 = add nsw i32 %113, 1
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [1000 x i32], ptr %12, i64 0, i64 %115
%117 = load i32, ptr %116, align 4
%118 = load i32, ptr %18, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds [1000 x i32], ptr %12, i64 0, i64 %119
store i32 %117, ptr %120, align 4
%121 = load i32, ptr %19, align 4
%122 = load i32, ptr %18, align 4
%123 = add nsw i32 %122, 1
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds [1000 x i32], ptr %12, i64 0, i64 %124
store i32 %121, ptr %125, align 4
br label %126
126: ; preds = %108, %97
br label %127
127: ; preds = %126
%128 = load i32, ptr %18, align 4
%129 = add nsw i32 %128, 1
store i32 %129, ptr %18, align 4
br label %90, !llvm.loop !9
130: ; preds = %90
br label %131
131: ; preds = %130
%132 = load i32, ptr %17, align 4
%133 = add nsw i32 %132, 1
store i32 %133, ptr %17, align 4
br label %85, !llvm.loop !10
134: ; preds = %85
store i32 0, ptr %20, align 4
store i32 0, ptr %21, align 4
br label %135
135: ; preds = %163, %134
%136 = load i32, ptr %21, align 4
%137 = load i32, ptr %9, align 4
%138 = icmp slt i32 %136, %137
br i1 %138, label %139, label %166
139: ; preds = %135
br label %140
140: ; preds = %151, %139
%141 = load ptr, ptr %8, align 8
%142 = load i32, ptr %21, align 4
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds i32, ptr %141, i64 %143
%145 = load i32, ptr %144, align 4
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds [1000 x i32], ptr %11, i64 0, i64 %146
%148 = load i32, ptr %147, align 4
%149 = add nsw i32 %148, -1
store i32 %149, ptr %147, align 4
%150 = icmp sgt i32 %148, 1
br i1 %150, label %151, label %162
151: ; preds = %140
%152 = load ptr, ptr %8, align 8
%153 = load i32, ptr %21, align 4
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds i32, ptr %152, i64 %154
%156 = load i32, ptr %155, align 4
%157 = load ptr, ptr %14, align 8
%158 = load i32, ptr %20, align 4
%159 = add nsw i32 %158, 1
store i32 %159, ptr %20, align 4
%160 = sext i32 %158 to i64
%161 = getelementptr inbounds i32, ptr %157, i64 %160
store i32 %156, ptr %161, align 4
br label %140, !llvm.loop !11
162: ; preds = %140
br label %163
163: ; preds = %162
%164 = load i32, ptr %21, align 4
%165 = add nsw i32 %164, 1
store i32 %165, ptr %21, align 4
br label %135, !llvm.loop !12
166: ; preds = %135
store i32 0, ptr %22, align 4
br label %167
167: ; preds = %181, %166
%168 = load i32, ptr %22, align 4
%169 = load i32, ptr %13, align 4
%170 = icmp slt i32 %168, %169
br i1 %170, label %171, label %184
171: ; preds = %167
%172 = load i32, ptr %22, align 4
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds [1000 x i32], ptr %12, i64 0, i64 %173
%175 = load i32, ptr %174, align 4
%176 = load ptr, ptr %14, align 8
%177 = load i32, ptr %20, align 4
%178 = add nsw i32 %177, 1
store i32 %178, ptr %20, align 4
%179 = sext i32 %177 to i64
%180 = getelementptr inbounds i32, ptr %176, i64 %179
store i32 %175, ptr %180, align 4
br label %181
181: ; preds = %171
%182 = load i32, ptr %22, align 4
%183 = add nsw i32 %182, 1
store i32 %183, ptr %22, align 4
br label %167, !llvm.loop !13
184: ; preds = %167
%185 = load ptr, ptr %14, align 8
ret ptr %185
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i64 @malloc(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: 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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprk88za2p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @relativeSortArray(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca [1000 x i32], align 16
%12 = alloca [1000 x i32], align 16
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%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 %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 4000, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %12, i8 0, i64 4000, i1 false)
store i32 0, ptr %13, align 4
%23 = load i32, ptr %7, align 4
%24 = sext i32 %23 to i64
%25 = mul i64 4, %24
%26 = trunc i64 %25 to i32
%27 = call i64 @malloc(i32 noundef %26)
%28 = inttoptr i64 %27 to ptr
store ptr %28, ptr %14, align 8
%29 = load i32, ptr %7, align 4
%30 = load ptr, ptr %10, align 8
store i32 %29, ptr %30, align 4
store i32 0, ptr %15, align 4
%31 = load i32, ptr %15, align 4
%32 = load i32, ptr %9, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %.lr.ph, label %48
.lr.ph: ; preds = %5
br label %34
34: ; preds = %.lr.ph, %42
%35 = load ptr, ptr %8, align 8
%36 = load i32, ptr %15, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %35, i64 %37
%39 = load i32, ptr %38, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [1000 x i32], ptr %11, i64 0, i64 %40
store i32 1, ptr %41, align 4
br label %42
42: ; preds = %34
%43 = load i32, ptr %15, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %15, align 4
%45 = load i32, ptr %15, align 4
%46 = load i32, ptr %9, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %34, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %42
br label %48
48: ; preds = %._crit_edge, %5
store i32 0, ptr %16, align 4
%49 = load i32, ptr %16, align 4
%50 = load i32, ptr %7, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %.lr.ph2, label %88
.lr.ph2: ; preds = %48
br label %52
52: ; preds = %.lr.ph2, %82
%53 = load ptr, ptr %6, align 8
%54 = load i32, ptr %16, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i32, ptr %53, i64 %55
%57 = load i32, ptr %56, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [1000 x i32], ptr %11, i64 0, i64 %58
%60 = load i32, ptr %59, align 4
%61 = icmp sgt i32 %60, 0
br i1 %61, label %62, label %72
62: ; preds = %52
%63 = load ptr, ptr %6, align 8
%64 = load i32, ptr %16, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i32, ptr %63, i64 %65
%67 = load i32, ptr %66, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [1000 x i32], ptr %11, i64 0, i64 %68
%70 = load i32, ptr %69, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %69, align 4
br label %82
72: ; preds = %52
%73 = load ptr, ptr %6, align 8
%74 = load i32, ptr %16, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i32, ptr %73, i64 %75
%77 = load i32, ptr %76, align 4
%78 = load i32, ptr %13, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %13, align 4
%80 = sext i32 %78 to i64
%81 = getelementptr inbounds [1000 x i32], ptr %12, i64 0, i64 %80
store i32 %77, ptr %81, align 4
br label %82
82: ; preds = %72, %62
%83 = load i32, ptr %16, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %16, align 4
%85 = load i32, ptr %16, align 4
%86 = load i32, ptr %7, align 4
%87 = icmp slt i32 %85, %86
br i1 %87, label %52, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %82
br label %88
88: ; preds = %._crit_edge3, %48
store i32 0, ptr %17, align 4
%89 = load i32, ptr %17, align 4
%90 = load i32, ptr %13, align 4
%91 = icmp slt i32 %89, %90
br i1 %91, label %.lr.ph8, label %145
.lr.ph8: ; preds = %88
br label %92
92: ; preds = %.lr.ph8, %139
store i32 0, ptr %18, align 4
%93 = load i32, ptr %18, align 4
%94 = load i32, ptr %13, align 4
%95 = load i32, ptr %17, align 4
%96 = sub nsw i32 %94, %95
%97 = sub nsw i32 %96, 1
%98 = icmp slt i32 %93, %97
br i1 %98, label %.lr.ph5, label %138
.lr.ph5: ; preds = %92
br label %99
99: ; preds = %.lr.ph5, %129
%100 = load i32, ptr %18, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [1000 x i32], ptr %12, i64 0, i64 %101
%103 = load i32, ptr %102, align 4
%104 = load i32, ptr %18, align 4
%105 = add nsw i32 %104, 1
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [1000 x i32], ptr %12, i64 0, i64 %106
%108 = load i32, ptr %107, align 4
%109 = icmp sgt i32 %103, %108
br i1 %109, label %110, label %128
110: ; preds = %99
%111 = load i32, ptr %18, align 4
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds [1000 x i32], ptr %12, i64 0, i64 %112
%114 = load i32, ptr %113, align 4
store i32 %114, ptr %19, align 4
%115 = load i32, ptr %18, align 4
%116 = add nsw i32 %115, 1
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds [1000 x i32], ptr %12, i64 0, i64 %117
%119 = load i32, ptr %118, align 4
%120 = load i32, ptr %18, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds [1000 x i32], ptr %12, i64 0, i64 %121
store i32 %119, ptr %122, align 4
%123 = load i32, ptr %19, align 4
%124 = load i32, ptr %18, align 4
%125 = add nsw i32 %124, 1
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds [1000 x i32], ptr %12, i64 0, i64 %126
store i32 %123, ptr %127, align 4
br label %128
128: ; preds = %110, %99
br label %129
129: ; preds = %128
%130 = load i32, ptr %18, align 4
%131 = add nsw i32 %130, 1
store i32 %131, ptr %18, align 4
%132 = load i32, ptr %18, align 4
%133 = load i32, ptr %13, align 4
%134 = load i32, ptr %17, align 4
%135 = sub nsw i32 %133, %134
%136 = sub nsw i32 %135, 1
%137 = icmp slt i32 %132, %136
br i1 %137, label %99, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %129
br label %138
138: ; preds = %._crit_edge6, %92
br label %139
139: ; preds = %138
%140 = load i32, ptr %17, align 4
%141 = add nsw i32 %140, 1
store i32 %141, ptr %17, align 4
%142 = load i32, ptr %17, align 4
%143 = load i32, ptr %13, align 4
%144 = icmp slt i32 %142, %143
br i1 %144, label %92, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %139
br label %145
145: ; preds = %._crit_edge9, %88
store i32 0, ptr %20, align 4
store i32 0, ptr %21, align 4
%146 = load i32, ptr %21, align 4
%147 = load i32, ptr %9, align 4
%148 = icmp slt i32 %146, %147
br i1 %148, label %.lr.ph14, label %188
.lr.ph14: ; preds = %145
br label %149
149: ; preds = %.lr.ph14, %182
%150 = load ptr, ptr %8, align 8
%151 = load i32, ptr %21, align 4
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds i32, ptr %150, i64 %152
%154 = load i32, ptr %153, align 4
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds [1000 x i32], ptr %11, i64 0, i64 %155
%157 = load i32, ptr %156, align 4
%158 = add nsw i32 %157, -1
store i32 %158, ptr %156, align 4
%159 = icmp sgt i32 %157, 1
br i1 %159, label %.lr.ph11, label %181
.lr.ph11: ; preds = %149
br label %160
160: ; preds = %.lr.ph11, %160
%161 = load ptr, ptr %8, align 8
%162 = load i32, ptr %21, align 4
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds i32, ptr %161, i64 %163
%165 = load i32, ptr %164, align 4
%166 = load ptr, ptr %14, align 8
%167 = load i32, ptr %20, align 4
%168 = add nsw i32 %167, 1
store i32 %168, ptr %20, align 4
%169 = sext i32 %167 to i64
%170 = getelementptr inbounds i32, ptr %166, i64 %169
store i32 %165, ptr %170, align 4
%171 = load ptr, ptr %8, align 8
%172 = load i32, ptr %21, align 4
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds i32, ptr %171, i64 %173
%175 = load i32, ptr %174, align 4
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds [1000 x i32], ptr %11, i64 0, i64 %176
%178 = load i32, ptr %177, align 4
%179 = add nsw i32 %178, -1
store i32 %179, ptr %177, align 4
%180 = icmp sgt i32 %178, 1
br i1 %180, label %160, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %160
br label %181
181: ; preds = %._crit_edge12, %149
br label %182
182: ; preds = %181
%183 = load i32, ptr %21, align 4
%184 = add nsw i32 %183, 1
store i32 %184, ptr %21, align 4
%185 = load i32, ptr %21, align 4
%186 = load i32, ptr %9, align 4
%187 = icmp slt i32 %185, %186
br i1 %187, label %149, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %182
br label %188
188: ; preds = %._crit_edge15, %145
store i32 0, ptr %22, align 4
%189 = load i32, ptr %22, align 4
%190 = load i32, ptr %13, align 4
%191 = icmp slt i32 %189, %190
br i1 %191, label %.lr.ph17, label %208
.lr.ph17: ; preds = %188
br label %192
192: ; preds = %.lr.ph17, %202
%193 = load i32, ptr %22, align 4
%194 = sext i32 %193 to i64
%195 = getelementptr inbounds [1000 x i32], ptr %12, i64 0, i64 %194
%196 = load i32, ptr %195, align 4
%197 = load ptr, ptr %14, align 8
%198 = load i32, ptr %20, align 4
%199 = add nsw i32 %198, 1
store i32 %199, ptr %20, align 4
%200 = sext i32 %198 to i64
%201 = getelementptr inbounds i32, ptr %197, i64 %200
store i32 %196, ptr %201, align 4
br label %202
202: ; preds = %192
%203 = load i32, ptr %22, align 4
%204 = add nsw i32 %203, 1
store i32 %204, ptr %22, align 4
%205 = load i32, ptr %22, align 4
%206 = load i32, ptr %13, align 4
%207 = icmp slt i32 %205, %206
br i1 %207, label %192, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %202
br label %208
208: ; preds = %._crit_edge18, %188
%209 = load ptr, ptr %14, align 8
ret ptr %209
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i64 @malloc(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: 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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
|
; ModuleID = '/tmp/tmpx0lhcuix.c'
source_filename = "/tmp/tmpx0lhcuix.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sort_merge(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %12, 2
br i1 %13, label %14, label %15
14: ; preds = %2
br label %162
15: ; preds = %2
%16 = load i32, ptr %4, align 4
%17 = sdiv i32 %16, 2
store i32 %17, ptr %6, align 4
%18 = load i32, ptr %4, align 4
%19 = load i32, ptr %6, align 4
%20 = sub nsw i32 %18, %19
store i32 %20, ptr %5, align 4
%21 = load i32, ptr %6, align 4
%22 = sext i32 %21 to i64
%23 = mul i64 4, %22
%24 = trunc i64 %23 to i32
%25 = call ptr @malloc(i32 noundef %24)
store ptr %25, ptr %10, align 8
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = mul i64 4, %27
%29 = trunc i64 %28 to i32
%30 = call ptr @malloc(i32 noundef %29)
store ptr %30, ptr %11, align 8
store i32 0, ptr %9, align 4
store i32 0, ptr %7, align 4
br label %31
31: ; preds = %45, %15
%32 = load i32, ptr %7, align 4
%33 = load i32, ptr %6, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %50
35: ; preds = %31
%36 = load ptr, ptr %3, align 8
%37 = load i32, ptr %9, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i32, ptr %36, i64 %38
%40 = load i32, ptr %39, align 4
%41 = load ptr, ptr %10, align 8
%42 = load i32, ptr %7, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
store i32 %40, ptr %44, align 4
br label %45
45: ; preds = %35
%46 = load i32, ptr %7, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %7, align 4
%48 = load i32, ptr %9, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %9, align 4
br label %31, !llvm.loop !6
50: ; preds = %31
store i32 0, ptr %8, align 4
br label %51
51: ; preds = %65, %50
%52 = load i32, ptr %8, align 4
%53 = load i32, ptr %5, align 4
%54 = icmp slt i32 %52, %53
br i1 %54, label %55, label %70
55: ; preds = %51
%56 = load ptr, ptr %3, align 8
%57 = load i32, ptr %9, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i32, ptr %56, i64 %58
%60 = load i32, ptr %59, align 4
%61 = load ptr, ptr %11, align 8
%62 = load i32, ptr %8, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i32, ptr %61, i64 %63
store i32 %60, ptr %64, align 4
br label %65
65: ; preds = %55
%66 = load i32, ptr %8, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %8, align 4
%68 = load i32, ptr %9, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %9, align 4
br label %51, !llvm.loop !8
70: ; preds = %51
%71 = load ptr, ptr %10, align 8
%72 = load i32, ptr %6, align 4
call void @sort_merge(ptr noundef %71, i32 noundef %72)
%73 = load ptr, ptr %11, align 8
%74 = load i32, ptr %5, align 4
call void @sort_merge(ptr noundef %73, i32 noundef %74)
store i32 0, ptr %9, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %7, align 4
br label %75
75: ; preds = %120, %70
%76 = load i32, ptr %7, align 4
%77 = load i32, ptr %6, align 4
%78 = icmp slt i32 %76, %77
br i1 %78, label %79, label %83
79: ; preds = %75
%80 = load i32, ptr %8, align 4
%81 = load i32, ptr %5, align 4
%82 = icmp slt i32 %80, %81
br label %83
83: ; preds = %79, %75
%84 = phi i1 [ false, %75 ], [ %82, %79 ]
br i1 %84, label %85, label %123
85: ; preds = %83
%86 = load ptr, ptr %10, align 8
%87 = load i32, ptr %7, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i32, ptr %86, i64 %88
%90 = load i32, ptr %89, align 4
%91 = load ptr, ptr %11, align 8
%92 = load i32, ptr %8, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i32, ptr %91, i64 %93
%95 = load i32, ptr %94, align 4
%96 = icmp sle i32 %90, %95
br i1 %96, label %97, label %108
97: ; preds = %85
%98 = load ptr, ptr %10, align 8
%99 = load i32, ptr %7, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %7, align 4
%101 = sext i32 %99 to i64
%102 = getelementptr inbounds i32, ptr %98, i64 %101
%103 = load i32, ptr %102, align 4
%104 = load ptr, ptr %3, align 8
%105 = load i32, ptr %9, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i32, ptr %104, i64 %106
store i32 %103, ptr %107, align 4
br label %119
108: ; preds = %85
%109 = load ptr, ptr %11, align 8
%110 = load i32, ptr %8, align 4
%111 = add nsw i32 %110, 1
store i32 %111, ptr %8, align 4
%112 = sext i32 %110 to i64
%113 = getelementptr inbounds i32, ptr %109, i64 %112
%114 = load i32, ptr %113, align 4
%115 = load ptr, ptr %3, align 8
%116 = load i32, ptr %9, align 4
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds i32, ptr %115, i64 %117
store i32 %114, ptr %118, align 4
br label %119
119: ; preds = %108, %97
br label %120
120: ; preds = %119
%121 = load i32, ptr %9, align 4
%122 = add nsw i32 %121, 1
store i32 %122, ptr %9, align 4
br label %75, !llvm.loop !9
123: ; preds = %83
br label %124
124: ; preds = %128, %123
%125 = load i32, ptr %7, align 4
%126 = load i32, ptr %6, align 4
%127 = icmp slt i32 %125, %126
br i1 %127, label %128, label %140
128: ; preds = %124
%129 = load ptr, ptr %10, align 8
%130 = load i32, ptr %7, align 4
%131 = add nsw i32 %130, 1
store i32 %131, ptr %7, align 4
%132 = sext i32 %130 to i64
%133 = getelementptr inbounds i32, ptr %129, i64 %132
%134 = load i32, ptr %133, align 4
%135 = load ptr, ptr %3, align 8
%136 = load i32, ptr %9, align 4
%137 = add nsw i32 %136, 1
store i32 %137, ptr %9, align 4
%138 = sext i32 %136 to i64
%139 = getelementptr inbounds i32, ptr %135, i64 %138
store i32 %134, ptr %139, align 4
br label %124, !llvm.loop !10
140: ; preds = %124
br label %141
141: ; preds = %145, %140
%142 = load i32, ptr %8, align 4
%143 = load i32, ptr %5, align 4
%144 = icmp slt i32 %142, %143
br i1 %144, label %145, label %157
145: ; preds = %141
%146 = load ptr, ptr %11, align 8
%147 = load i32, ptr %8, align 4
%148 = add nsw i32 %147, 1
store i32 %148, ptr %8, align 4
%149 = sext i32 %147 to i64
%150 = getelementptr inbounds i32, ptr %146, i64 %149
%151 = load i32, ptr %150, align 4
%152 = load ptr, ptr %3, align 8
%153 = load i32, ptr %9, align 4
%154 = add nsw i32 %153, 1
store i32 %154, ptr %9, align 4
%155 = sext i32 %153 to i64
%156 = getelementptr inbounds i32, ptr %152, i64 %155
store i32 %151, ptr %156, align 4
br label %141, !llvm.loop !11
157: ; preds = %141
%158 = load ptr, ptr %10, align 8
%159 = call i32 @free(ptr noundef %158)
%160 = load ptr, ptr %11, align 8
%161 = call i32 @free(ptr noundef %160)
br label %162
162: ; preds = %157, %14
ret void
}
declare ptr @malloc(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}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx0lhcuix.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sort_merge(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %12, 2
br i1 %13, label %14, label %15
14: ; preds = %2
br label %170
15: ; preds = %2
%16 = load i32, ptr %4, align 4
%17 = sdiv i32 %16, 2
store i32 %17, ptr %6, align 4
%18 = load i32, ptr %4, align 4
%19 = load i32, ptr %6, align 4
%20 = sub nsw i32 %18, %19
store i32 %20, ptr %5, align 4
%21 = load i32, ptr %6, align 4
%22 = sext i32 %21 to i64
%23 = mul i64 4, %22
%24 = trunc i64 %23 to i32
%25 = call ptr @malloc(i32 noundef %24)
store ptr %25, ptr %10, align 8
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = mul i64 4, %27
%29 = trunc i64 %28 to i32
%30 = call ptr @malloc(i32 noundef %29)
store ptr %30, ptr %11, align 8
store i32 0, ptr %9, align 4
store i32 0, ptr %7, align 4
%31 = load i32, ptr %7, align 4
%32 = load i32, ptr %6, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %.lr.ph, label %52
.lr.ph: ; preds = %15
br label %34
34: ; preds = %.lr.ph, %44
%35 = load ptr, ptr %3, align 8
%36 = load i32, ptr %9, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %35, i64 %37
%39 = load i32, ptr %38, align 4
%40 = load ptr, ptr %10, align 8
%41 = load i32, ptr %7, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %40, i64 %42
store i32 %39, ptr %43, align 4
br label %44
44: ; preds = %34
%45 = load i32, ptr %7, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %7, align 4
%47 = load i32, ptr %9, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %9, align 4
%49 = load i32, ptr %7, align 4
%50 = load i32, ptr %6, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %34, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %44
br label %52
52: ; preds = %._crit_edge, %15
store i32 0, ptr %8, align 4
%53 = load i32, ptr %8, align 4
%54 = load i32, ptr %5, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %.lr.ph2, label %74
.lr.ph2: ; preds = %52
br label %56
56: ; preds = %.lr.ph2, %66
%57 = load ptr, ptr %3, align 8
%58 = load i32, ptr %9, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i32, ptr %57, i64 %59
%61 = load i32, ptr %60, align 4
%62 = load ptr, ptr %11, align 8
%63 = load i32, ptr %8, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i32, ptr %62, i64 %64
store i32 %61, ptr %65, align 4
br label %66
66: ; preds = %56
%67 = load i32, ptr %8, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %8, align 4
%69 = load i32, ptr %9, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %9, align 4
%71 = load i32, ptr %8, align 4
%72 = load i32, ptr %5, align 4
%73 = icmp slt i32 %71, %72
br i1 %73, label %56, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %66
br label %74
74: ; preds = %._crit_edge3, %52
%75 = load ptr, ptr %10, align 8
%76 = load i32, ptr %6, align 4
call void @sort_merge(ptr noundef %75, i32 noundef %76)
%77 = load ptr, ptr %11, align 8
%78 = load i32, ptr %5, align 4
call void @sort_merge(ptr noundef %77, i32 noundef %78)
store i32 0, ptr %9, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %7, align 4
br label %79
79: ; preds = %124, %74
%80 = load i32, ptr %7, align 4
%81 = load i32, ptr %6, align 4
%82 = icmp slt i32 %80, %81
br i1 %82, label %83, label %87
83: ; preds = %79
%84 = load i32, ptr %8, align 4
%85 = load i32, ptr %5, align 4
%86 = icmp slt i32 %84, %85
br label %87
87: ; preds = %83, %79
%88 = phi i1 [ false, %79 ], [ %86, %83 ]
br i1 %88, label %89, label %127
89: ; preds = %87
%90 = load ptr, ptr %10, align 8
%91 = load i32, ptr %7, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i32, ptr %90, i64 %92
%94 = load i32, ptr %93, align 4
%95 = load ptr, ptr %11, align 8
%96 = load i32, ptr %8, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i32, ptr %95, i64 %97
%99 = load i32, ptr %98, align 4
%100 = icmp sle i32 %94, %99
br i1 %100, label %101, label %112
101: ; preds = %89
%102 = load ptr, ptr %10, align 8
%103 = load i32, ptr %7, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %7, align 4
%105 = sext i32 %103 to i64
%106 = getelementptr inbounds i32, ptr %102, i64 %105
%107 = load i32, ptr %106, align 4
%108 = load ptr, ptr %3, align 8
%109 = load i32, ptr %9, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i32, ptr %108, i64 %110
store i32 %107, ptr %111, align 4
br label %123
112: ; preds = %89
%113 = load ptr, ptr %11, align 8
%114 = load i32, ptr %8, align 4
%115 = add nsw i32 %114, 1
store i32 %115, ptr %8, align 4
%116 = sext i32 %114 to i64
%117 = getelementptr inbounds i32, ptr %113, i64 %116
%118 = load i32, ptr %117, align 4
%119 = load ptr, ptr %3, align 8
%120 = load i32, ptr %9, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds i32, ptr %119, i64 %121
store i32 %118, ptr %122, align 4
br label %123
123: ; preds = %112, %101
br label %124
124: ; preds = %123
%125 = load i32, ptr %9, align 4
%126 = add nsw i32 %125, 1
store i32 %126, ptr %9, align 4
br label %79, !llvm.loop !9
127: ; preds = %87
%128 = load i32, ptr %7, align 4
%129 = load i32, ptr %6, align 4
%130 = icmp slt i32 %128, %129
br i1 %130, label %.lr.ph5, label %146
.lr.ph5: ; preds = %127
br label %131
131: ; preds = %.lr.ph5, %131
%132 = load ptr, ptr %10, align 8
%133 = load i32, ptr %7, align 4
%134 = add nsw i32 %133, 1
store i32 %134, ptr %7, align 4
%135 = sext i32 %133 to i64
%136 = getelementptr inbounds i32, ptr %132, i64 %135
%137 = load i32, ptr %136, align 4
%138 = load ptr, ptr %3, align 8
%139 = load i32, ptr %9, align 4
%140 = add nsw i32 %139, 1
store i32 %140, ptr %9, align 4
%141 = sext i32 %139 to i64
%142 = getelementptr inbounds i32, ptr %138, i64 %141
store i32 %137, ptr %142, align 4
%143 = load i32, ptr %7, align 4
%144 = load i32, ptr %6, align 4
%145 = icmp slt i32 %143, %144
br i1 %145, label %131, label %._crit_edge6, !llvm.loop !10
._crit_edge6: ; preds = %131
br label %146
146: ; preds = %._crit_edge6, %127
%147 = load i32, ptr %8, align 4
%148 = load i32, ptr %5, align 4
%149 = icmp slt i32 %147, %148
br i1 %149, label %.lr.ph8, label %165
.lr.ph8: ; preds = %146
br label %150
150: ; preds = %.lr.ph8, %150
%151 = load ptr, ptr %11, align 8
%152 = load i32, ptr %8, align 4
%153 = add nsw i32 %152, 1
store i32 %153, ptr %8, align 4
%154 = sext i32 %152 to i64
%155 = getelementptr inbounds i32, ptr %151, i64 %154
%156 = load i32, ptr %155, align 4
%157 = load ptr, ptr %3, align 8
%158 = load i32, ptr %9, align 4
%159 = add nsw i32 %158, 1
store i32 %159, ptr %9, align 4
%160 = sext i32 %158 to i64
%161 = getelementptr inbounds i32, ptr %157, i64 %160
store i32 %156, ptr %161, align 4
%162 = load i32, ptr %8, align 4
%163 = load i32, ptr %5, align 4
%164 = icmp slt i32 %162, %163
br i1 %164, label %150, label %._crit_edge9, !llvm.loop !11
._crit_edge9: ; preds = %150
br label %165
165: ; preds = %._crit_edge9, %146
%166 = load ptr, ptr %10, align 8
%167 = call i32 @free(ptr noundef %166)
%168 = load ptr, ptr %11, align 8
%169 = call i32 @free(ptr noundef %168)
br label %170
170: ; preds = %165, %14
ret void
}
declare ptr @malloc(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}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmp7_udjdum.c'
source_filename = "/tmp/tmp7_udjdum.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fgets_null_check_Bad() #0 {
%1 = alloca [100 x i8], align 16
br label %2
2: ; preds = %7, %0
%3 = getelementptr inbounds [100 x i8], ptr %1, i64 0, i64 0
%4 = load i32, ptr @stdin, align 4
%5 = call i64 @fgets(ptr noundef %3, i32 noundef 100, i32 noundef %4)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %13
7: ; preds = %2
%8 = getelementptr inbounds [100 x i8], ptr %1, i64 0, i64 0
%9 = call i32 @strlen(ptr noundef %8)
%10 = sub nsw i32 %9, 2
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [100 x i8], ptr %1, i64 0, i64 %11
store i8 0, ptr %12, align 1
br label %2, !llvm.loop !6
13: ; preds = %2
ret void
}
declare i64 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7_udjdum.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fgets_null_check_Bad() #0 {
%1 = alloca [100 x i8], align 16
%2 = getelementptr inbounds [100 x i8], ptr %1, i64 0, i64 0
%3 = load i32, ptr @stdin, align 4
%4 = call i64 @fgets(ptr noundef %2, i32 noundef 100, i32 noundef %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %.lr.ph, label %15
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %6
%7 = getelementptr inbounds [100 x i8], ptr %1, i64 0, i64 0
%8 = call i32 @strlen(ptr noundef %7)
%9 = sub nsw i32 %8, 2
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [100 x i8], ptr %1, i64 0, i64 %10
store i8 0, ptr %11, align 1
%12 = load i32, ptr @stdin, align 4
%13 = call i64 @fgets(ptr noundef %2, i32 noundef 100, i32 noundef %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %6
br label %15
15: ; preds = %._crit_edge, %0
ret void
}
declare i64 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpcf05zqd_.c'
source_filename = "/tmp/tmpcf05zqd_.c"
target datalayout = "e-m:e-p270: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/tmpcf05zqd_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_xyyasnf.c'
source_filename = "/tmp/tmp_xyyasnf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_xyyasnf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7m21w7yy.c'
source_filename = "/tmp/tmp7m21w7yy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @add1(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = fadd float %3, 1.000000e+00
%5 = load float, ptr %2, align 4
%6 = fsub float %5, 1.000000e+00
%7 = call float @add2(float noundef %4, float noundef %6)
ret float %7
}
declare float @add2(float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7m21w7yy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @add1(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = fadd float %3, 1.000000e+00
%5 = load float, ptr %2, align 4
%6 = fsub float %5, 1.000000e+00
%7 = call float @add2(float noundef %4, float noundef %6)
ret float %7
}
declare float @add2(float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyc9ydovf.c'
source_filename = "/tmp/tmpyc9ydovf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GL_PROJECTION = dso_local global i32 0, align 4
@GL_MODELVIEW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @reshape(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @glViewport(i32 noundef 0, i32 noundef 0, i32 noundef %5, i32 noundef %6)
%8 = load i32, ptr @GL_PROJECTION, align 4
%9 = call i32 @glMatrixMode(i32 noundef %8)
%10 = call i32 (...) @glLoadIdentity()
%11 = call i32 @gluOrtho2D(double noundef -2.000000e+00, double noundef 2.000000e+00, double noundef -2.000000e+00, double noundef 2.000000e+00)
%12 = load i32, ptr @GL_MODELVIEW, align 4
%13 = call i32 @glMatrixMode(i32 noundef %12)
ret void
}
declare i32 @glViewport(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @glMatrixMode(i32 noundef) #1
declare i32 @glLoadIdentity(...) #1
declare i32 @gluOrtho2D(double noundef, double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyc9ydovf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GL_PROJECTION = dso_local global i32 0, align 4
@GL_MODELVIEW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @reshape(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @glViewport(i32 noundef 0, i32 noundef 0, i32 noundef %5, i32 noundef %6)
%8 = load i32, ptr @GL_PROJECTION, align 4
%9 = call i32 @glMatrixMode(i32 noundef %8)
%10 = call i32 (...) @glLoadIdentity()
%11 = call i32 @gluOrtho2D(double noundef -2.000000e+00, double noundef 2.000000e+00, double noundef -2.000000e+00, double noundef 2.000000e+00)
%12 = load i32, ptr @GL_MODELVIEW, align 4
%13 = call i32 @glMatrixMode(i32 noundef %12)
ret void
}
declare i32 @glViewport(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @glMatrixMode(i32 noundef) #1
declare i32 @glLoadIdentity(...) #1
declare i32 @gluOrtho2D(double noundef, double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpo117asox.c'
source_filename = "/tmp/tmpo117asox.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lu %lu\00", align 1
@STDIN_FILENO = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [4 x i8] c" %s\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cksumfile(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca [4096 x i8], align 16
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca [256 x i32], align 16
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %10, align 4
br label %12
12: ; preds = %38, %2
%13 = load i32, ptr %10, align 4
%14 = icmp slt i32 %13, 256
br i1 %14, label %15, label %41
15: ; preds = %12
%16 = load i32, ptr %10, align 4
%17 = shl i32 %16, 24
store i32 %17, ptr %9, align 4
store i32 0, ptr %11, align 4
br label %18
18: ; preds = %30, %15
%19 = load i32, ptr %11, align 4
%20 = icmp slt i32 %19, 8
br i1 %20, label %21, label %33
21: ; preds = %18
%22 = load i32, ptr %9, align 4
%23 = shl i32 %22, 1
%24 = load i32, ptr %9, align 4
%25 = and i32 %24, -2147483648
%26 = icmp ne i32 %25, 0
%27 = zext i1 %26 to i64
%28 = select i1 %26, i32 79764919, i32 0
%29 = xor i32 %23, %28
store i32 %29, ptr %9, align 4
br label %30
30: ; preds = %21
%31 = load i32, ptr %11, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %11, align 4
br label %18, !llvm.loop !6
33: ; preds = %18
%34 = load i32, ptr %9, align 4
%35 = load i32, ptr %10, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [256 x i32], ptr %8, i64 0, i64 %36
store i32 %34, ptr %37, align 4
br label %38
38: ; preds = %33
%39 = load i32, ptr %10, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %10, align 4
br label %12, !llvm.loop !8
41: ; preds = %12
store i32 0, ptr %9, align 4
store i64 0, ptr %6, align 8
br label %42
42: ; preds = %75, %41
%43 = load i32, ptr %3, align 4
%44 = getelementptr inbounds [4096 x i8], ptr %5, i64 0, i64 0
%45 = call i64 @read(i32 noundef %43, ptr noundef %44, i32 noundef 4096)
store i64 %45, ptr %7, align 8
%46 = icmp sgt i64 %45, 0
br i1 %46, label %47, label %76
47: ; preds = %42
%48 = load i64, ptr %7, align 8
%49 = load i64, ptr %6, align 8
%50 = add nsw i64 %49, %48
store i64 %50, ptr %6, align 8
store i32 0, ptr %10, align 4
br label %51
51: ; preds = %72, %47
%52 = load i32, ptr %10, align 4
%53 = sext i32 %52 to i64
%54 = load i64, ptr %7, align 8
%55 = icmp ult i64 %53, %54
br i1 %55, label %56, label %75
56: ; preds = %51
%57 = load i32, ptr %9, align 4
%58 = ashr i32 %57, 24
%59 = load i32, ptr %10, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [4096 x i8], ptr %5, i64 0, i64 %60
%62 = load i8, ptr %61, align 1
%63 = zext i8 %62 to i32
%64 = xor i32 %58, %63
%65 = and i32 %64, 255
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [256 x i32], ptr %8, i64 0, i64 %66
%68 = load i32, ptr %67, align 4
%69 = load i32, ptr %9, align 4
%70 = shl i32 %69, 8
%71 = xor i32 %68, %70
store i32 %71, ptr %9, align 4
br label %72
72: ; preds = %56
%73 = load i32, ptr %10, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %10, align 4
br label %51, !llvm.loop !9
75: ; preds = %51
br label %42, !llvm.loop !10
76: ; preds = %42
%77 = load i64, ptr %7, align 8
%78 = icmp slt i64 %77, 0
br i1 %78, label %79, label %82
79: ; preds = %76
%80 = load ptr, ptr %4, align 8
%81 = call i32 @error(ptr noundef %80)
br label %117
82: ; preds = %76
%83 = load i64, ptr %6, align 8
%84 = trunc i64 %83 to i32
store i32 %84, ptr %10, align 4
br label %85
85: ; preds = %100, %82
%86 = load i32, ptr %10, align 4
%87 = icmp ne i32 %86, 0
br i1 %87, label %88, label %103
88: ; preds = %85
%89 = load i32, ptr %9, align 4
%90 = ashr i32 %89, 24
%91 = load i32, ptr %10, align 4
%92 = xor i32 %90, %91
%93 = and i32 %92, 255
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [256 x i32], ptr %8, i64 0, i64 %94
%96 = load i32, ptr %95, align 4
%97 = load i32, ptr %9, align 4
%98 = shl i32 %97, 8
%99 = xor i32 %96, %98
store i32 %99, ptr %9, align 4
br label %100
100: ; preds = %88
%101 = load i32, ptr %10, align 4
%102 = ashr i32 %101, 8
store i32 %102, ptr %10, align 4
br label %85, !llvm.loop !11
103: ; preds = %85
%104 = load i32, ptr %9, align 4
%105 = xor i32 %104, -1
%106 = sext i32 %105 to i64
%107 = load i64, ptr %6, align 8
%108 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef %106, i64 noundef %107)
%109 = load i32, ptr %3, align 4
%110 = load i32, ptr @STDIN_FILENO, align 4
%111 = icmp ne i32 %109, %110
br i1 %111, label %112, label %115
112: ; preds = %103
%113 = load ptr, ptr %4, align 8
%114 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %113)
br label %115
115: ; preds = %112, %103
%116 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %117
117: ; preds = %115, %79
ret void
}
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @error(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo117asox.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lu %lu\00", align 1
@STDIN_FILENO = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [4 x i8] c" %s\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cksumfile(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca [4096 x i8], align 16
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca [256 x i32], align 16
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %10, align 4
%12 = load i32, ptr %10, align 4
%13 = icmp slt i32 %12, 256
br i1 %13, label %.lr.ph2, label %43
.lr.ph2: ; preds = %2
br label %14
14: ; preds = %.lr.ph2, %38
%15 = load i32, ptr %10, align 4
%16 = shl i32 %15, 24
store i32 %16, ptr %9, align 4
store i32 0, ptr %11, align 4
%17 = load i32, ptr %11, align 4
%18 = icmp slt i32 %17, 8
br i1 %18, label %.lr.ph, label %33
.lr.ph: ; preds = %14
br label %19
19: ; preds = %.lr.ph, %28
%20 = load i32, ptr %9, align 4
%21 = shl i32 %20, 1
%22 = load i32, ptr %9, align 4
%23 = and i32 %22, -2147483648
%24 = icmp ne i32 %23, 0
%25 = zext i1 %24 to i64
%26 = select i1 %24, i32 79764919, i32 0
%27 = xor i32 %21, %26
store i32 %27, ptr %9, align 4
br label %28
28: ; preds = %19
%29 = load i32, ptr %11, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %11, align 4
%31 = load i32, ptr %11, align 4
%32 = icmp slt i32 %31, 8
br i1 %32, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %33
33: ; preds = %._crit_edge, %14
%34 = load i32, ptr %9, align 4
%35 = load i32, ptr %10, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [256 x i32], ptr %8, i64 0, i64 %36
store i32 %34, ptr %37, align 4
br label %38
38: ; preds = %33
%39 = load i32, ptr %10, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %10, align 4
%41 = load i32, ptr %10, align 4
%42 = icmp slt i32 %41, 256
br i1 %42, label %14, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %38
br label %43
43: ; preds = %._crit_edge3, %2
store i32 0, ptr %9, align 4
store i64 0, ptr %6, align 8
%44 = load i32, ptr %3, align 4
%45 = getelementptr inbounds [4096 x i8], ptr %5, i64 0, i64 0
%46 = call i64 @read(i32 noundef %44, ptr noundef %45, i32 noundef 4096)
store i64 %46, ptr %7, align 8
%47 = icmp sgt i64 %46, 0
br i1 %47, label %.lr.ph8, label %83
.lr.ph8: ; preds = %43
br label %48
48: ; preds = %.lr.ph8, %79
%49 = load i64, ptr %7, align 8
%50 = load i64, ptr %6, align 8
%51 = add nsw i64 %50, %49
store i64 %51, ptr %6, align 8
store i32 0, ptr %10, align 4
%52 = load i32, ptr %10, align 4
%53 = sext i32 %52 to i64
%54 = load i64, ptr %7, align 8
%55 = icmp ult i64 %53, %54
br i1 %55, label %.lr.ph5, label %79
.lr.ph5: ; preds = %48
br label %56
56: ; preds = %.lr.ph5, %72
%57 = load i32, ptr %9, align 4
%58 = ashr i32 %57, 24
%59 = load i32, ptr %10, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [4096 x i8], ptr %5, i64 0, i64 %60
%62 = load i8, ptr %61, align 1
%63 = zext i8 %62 to i32
%64 = xor i32 %58, %63
%65 = and i32 %64, 255
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [256 x i32], ptr %8, i64 0, i64 %66
%68 = load i32, ptr %67, align 4
%69 = load i32, ptr %9, align 4
%70 = shl i32 %69, 8
%71 = xor i32 %68, %70
store i32 %71, ptr %9, align 4
br label %72
72: ; preds = %56
%73 = load i32, ptr %10, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %10, align 4
%75 = load i32, ptr %10, align 4
%76 = sext i32 %75 to i64
%77 = load i64, ptr %7, align 8
%78 = icmp ult i64 %76, %77
br i1 %78, label %56, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %72
br label %79
79: ; preds = %._crit_edge6, %48
%80 = load i32, ptr %3, align 4
%81 = call i64 @read(i32 noundef %80, ptr noundef %45, i32 noundef 4096)
store i64 %81, ptr %7, align 8
%82 = icmp sgt i64 %81, 0
br i1 %82, label %48, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %79
br label %83
83: ; preds = %._crit_edge9, %43
%84 = load i64, ptr %7, align 8
%85 = icmp slt i64 %84, 0
br i1 %85, label %86, label %89
86: ; preds = %83
%87 = load ptr, ptr %4, align 8
%88 = call i32 @error(ptr noundef %87)
br label %125
89: ; preds = %83
%90 = load i64, ptr %6, align 8
%91 = trunc i64 %90 to i32
store i32 %91, ptr %10, align 4
%92 = load i32, ptr %10, align 4
%93 = icmp ne i32 %92, 0
br i1 %93, label %.lr.ph11, label %111
.lr.ph11: ; preds = %89
br label %94
94: ; preds = %.lr.ph11, %106
%95 = load i32, ptr %9, align 4
%96 = ashr i32 %95, 24
%97 = load i32, ptr %10, align 4
%98 = xor i32 %96, %97
%99 = and i32 %98, 255
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [256 x i32], ptr %8, i64 0, i64 %100
%102 = load i32, ptr %101, align 4
%103 = load i32, ptr %9, align 4
%104 = shl i32 %103, 8
%105 = xor i32 %102, %104
store i32 %105, ptr %9, align 4
br label %106
106: ; preds = %94
%107 = load i32, ptr %10, align 4
%108 = ashr i32 %107, 8
store i32 %108, ptr %10, align 4
%109 = load i32, ptr %10, align 4
%110 = icmp ne i32 %109, 0
br i1 %110, label %94, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %106
br label %111
111: ; preds = %._crit_edge12, %89
%112 = load i32, ptr %9, align 4
%113 = xor i32 %112, -1
%114 = sext i32 %113 to i64
%115 = load i64, ptr %6, align 8
%116 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef %114, i64 noundef %115)
%117 = load i32, ptr %3, align 4
%118 = load i32, ptr @STDIN_FILENO, align 4
%119 = icmp ne i32 %117, %118
br i1 %119, label %120, label %123
120: ; preds = %111
%121 = load ptr, ptr %4, align 8
%122 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %121)
br label %123
123: ; preds = %120, %111
%124 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %125
125: ; preds = %123, %86
ret void
}
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @error(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmp2pixkqjb.c'
source_filename = "/tmp/tmp2pixkqjb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Please enter string: \00", align 1
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @readln(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @printf(ptr noundef @.str)
%4 = load ptr, ptr %2, align 8
%5 = load i32, ptr @stdin, align 4
%6 = call i32 @fgets(ptr noundef %4, i32 noundef 1024, i32 noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = load ptr, ptr %2, align 8
%9 = call i32 @strlen(ptr noundef %8)
%10 = sub nsw i32 %9, 1
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %7, i64 %11
store i8 0, ptr %12, align 1
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 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/tmp2pixkqjb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Please enter string: \00", align 1
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @readln(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @printf(ptr noundef @.str)
%4 = load ptr, ptr %2, align 8
%5 = load i32, ptr @stdin, align 4
%6 = call i32 @fgets(ptr noundef %4, i32 noundef 1024, i32 noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = load ptr, ptr %2, align 8
%9 = call i32 @strlen(ptr noundef %8)
%10 = sub nsw i32 %9, 1
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %7, i64 %11
store i8 0, ptr %12, align 1
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 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/tmphovyf9w9.c'
source_filename = "/tmp/tmphovyf9w9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\09db\09\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"\09dw\09\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c" %+d\00", align 1
@.str.3 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @GenAddrData(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %6, align 4
%8 = call i32 @truncInt(i32 noundef %7)
store i32 %8, ptr %6, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %13
11: ; preds = %3
%12 = call i32 (ptr, ...) @printf2(ptr noundef @.str)
br label %19
13: ; preds = %3
%14 = load i32, ptr %4, align 4
%15 = icmp eq i32 %14, 2
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 (ptr, ...) @printf2(ptr noundef @.str.1)
br label %18
18: ; preds = %16, %13
br label %19
19: ; preds = %18, %11
%20 = load ptr, ptr %5, align 8
%21 = call i32 @GenPrintLabel(ptr noundef %20)
%22 = load i32, ptr %6, align 4
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %19
%25 = load i32, ptr %6, align 4
%26 = call i32 (ptr, ...) @printf2(ptr noundef @.str.2, i32 noundef %25)
br label %27
27: ; preds = %24, %19
%28 = call i32 @puts2(ptr noundef @.str.3)
%29 = load ptr, ptr %5, align 8
%30 = load i8, ptr %29, align 1
%31 = call i32 @isdigit(i8 noundef signext %30)
%32 = icmp ne i32 %31, 0
br i1 %32, label %36, label %33
33: ; preds = %27
%34 = load ptr, ptr %5, align 8
%35 = call i32 @GenAddGlobal(ptr noundef %34, i32 noundef 2)
br label %36
36: ; preds = %33, %27
ret void
}
declare i32 @truncInt(i32 noundef) #1
declare i32 @printf2(ptr noundef, ...) #1
declare i32 @GenPrintLabel(ptr noundef) #1
declare i32 @puts2(ptr noundef) #1
declare i32 @isdigit(i8 noundef signext) #1
declare i32 @GenAddGlobal(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/tmphovyf9w9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\09db\09\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"\09dw\09\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c" %+d\00", align 1
@.str.3 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @GenAddrData(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %6, align 4
%8 = call i32 @truncInt(i32 noundef %7)
store i32 %8, ptr %6, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %13
11: ; preds = %3
%12 = call i32 (ptr, ...) @printf2(ptr noundef @.str)
br label %19
13: ; preds = %3
%14 = load i32, ptr %4, align 4
%15 = icmp eq i32 %14, 2
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 (ptr, ...) @printf2(ptr noundef @.str.1)
br label %18
18: ; preds = %16, %13
br label %19
19: ; preds = %18, %11
%20 = load ptr, ptr %5, align 8
%21 = call i32 @GenPrintLabel(ptr noundef %20)
%22 = load i32, ptr %6, align 4
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %19
%25 = load i32, ptr %6, align 4
%26 = call i32 (ptr, ...) @printf2(ptr noundef @.str.2, i32 noundef %25)
br label %27
27: ; preds = %24, %19
%28 = call i32 @puts2(ptr noundef @.str.3)
%29 = load ptr, ptr %5, align 8
%30 = load i8, ptr %29, align 1
%31 = call i32 @isdigit(i8 noundef signext %30)
%32 = icmp ne i32 %31, 0
br i1 %32, label %36, label %33
33: ; preds = %27
%34 = load ptr, ptr %5, align 8
%35 = call i32 @GenAddGlobal(ptr noundef %34, i32 noundef 2)
br label %36
36: ; preds = %33, %27
ret void
}
declare i32 @truncInt(i32 noundef) #1
declare i32 @printf2(ptr noundef, ...) #1
declare i32 @GenPrintLabel(ptr noundef) #1
declare i32 @puts2(ptr noundef) #1
declare i32 @isdigit(i8 noundef signext) #1
declare i32 @GenAddGlobal(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/tmp9jpgub1a.c'
source_filename = "/tmp/tmp9jpgub1a.c"
target datalayout = "e-m:e-p270: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/tmp9jpgub1a.c"
target datalayout = "e-m:e-p270: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/tmp45ttrebj.c'
source_filename = "/tmp/tmp45ttrebj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Digite o valor do raio: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"\0AArea = %lf\0APerimetro = %lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store i32 0, ptr %1, align 4
store double 0x400921FB5A7ED197, ptr %5, align 8
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = load double, ptr %5, align 8
%9 = load float, ptr %2, align 4
%10 = fpext float %9 to double
%11 = fmul double %8, %10
%12 = load float, ptr %2, align 4
%13 = fpext float %12 to double
%14 = fmul double %11, %13
store double %14, ptr %3, align 8
%15 = load double, ptr %5, align 8
%16 = fmul double 2.000000e+00, %15
%17 = load float, ptr %2, align 4
%18 = fpext float %17 to double
%19 = fmul double %16, %18
store double %19, ptr %4, align 8
%20 = load double, ptr %3, align 8
%21 = load double, ptr %4, align 8
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %20, double noundef %21)
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/tmp45ttrebj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Digite o valor do raio: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"\0AArea = %lf\0APerimetro = %lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store i32 0, ptr %1, align 4
store double 0x400921FB5A7ED197, ptr %5, align 8
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = load double, ptr %5, align 8
%9 = load float, ptr %2, align 4
%10 = fpext float %9 to double
%11 = fmul double %8, %10
%12 = load float, ptr %2, align 4
%13 = fpext float %12 to double
%14 = fmul double %11, %13
store double %14, ptr %3, align 8
%15 = load double, ptr %5, align 8
%16 = fmul double 2.000000e+00, %15
%17 = load float, ptr %2, align 4
%18 = fpext float %17 to double
%19 = fmul double %16, %18
store double %19, ptr %4, align 8
%20 = load double, ptr %3, align 8
%21 = load double, ptr %4, align 8
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %20, double noundef %21)
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/tmp2vk2j36w.c'
source_filename = "/tmp/tmp2vk2j36w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @argvdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %9, label %8
8: ; preds = %1
store ptr null, ptr %2, align 8
br label %47
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = call i32 @argvlen(ptr noundef %10)
store i32 %11, ptr %4, align 4
%12 = load i32, ptr %4, align 4
%13 = sext i32 %12 to i64
%14 = mul i64 8, %13
%15 = add i64 %14, 1
%16 = trunc i64 %15 to i32
%17 = call ptr @realloc(i32 noundef 0, i32 noundef %16)
store ptr %17, ptr %5, align 8
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %4, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds ptr, ptr %18, i64 %20
store ptr null, ptr %21, align 8
br label %22
22: ; preds = %26, %9
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, -1
store i32 %24, ptr %4, align 4
%25 = icmp ne i32 %23, 0
br i1 %25, label %26, label %45
26: ; preds = %22
%27 = load ptr, ptr %3, align 8
%28 = load i32, ptr %4, 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 ptr, ptr %3, align 8
%33 = load i32, ptr %4, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds ptr, ptr %32, i64 %34
%36 = load ptr, ptr %35, align 8
%37 = call i64 @strlen(ptr noundef %36)
%38 = add nsw i64 %37, 1
%39 = call i64 @malcpy(ptr noundef %31, i64 noundef %38)
%40 = inttoptr i64 %39 to ptr
%41 = load ptr, ptr %5, align 8
%42 = load i32, ptr %4, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds ptr, ptr %41, i64 %43
store ptr %40, ptr %44, align 8
br label %22, !llvm.loop !6
45: ; preds = %22
%46 = load ptr, ptr %5, align 8
store ptr %46, ptr %2, align 8
br label %47
47: ; preds = %45, %8
%48 = load ptr, ptr %2, align 8
ret ptr %48
}
declare i32 @argvlen(ptr noundef) #1
declare ptr @realloc(i32 noundef, i32 noundef) #1
declare i64 @malcpy(ptr noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2vk2j36w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @argvdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %9, label %8
8: ; preds = %1
store ptr null, ptr %2, align 8
br label %49
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = call i32 @argvlen(ptr noundef %10)
store i32 %11, ptr %4, align 4
%12 = load i32, ptr %4, align 4
%13 = sext i32 %12 to i64
%14 = mul i64 8, %13
%15 = add i64 %14, 1
%16 = trunc i64 %15 to i32
%17 = call ptr @realloc(i32 noundef 0, i32 noundef %16)
store ptr %17, ptr %5, align 8
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %4, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds ptr, ptr %18, i64 %20
store ptr null, ptr %21, align 8
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, -1
store i32 %23, ptr %4, align 4
%24 = icmp ne i32 %22, 0
br i1 %24, label %.lr.ph, label %47
.lr.ph: ; preds = %9
br label %25
25: ; preds = %.lr.ph, %25
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %4, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds ptr, ptr %26, i64 %28
%30 = load ptr, ptr %29, align 8
%31 = load ptr, ptr %3, align 8
%32 = load i32, ptr %4, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds ptr, ptr %31, i64 %33
%35 = load ptr, ptr %34, align 8
%36 = call i64 @strlen(ptr noundef %35)
%37 = add nsw i64 %36, 1
%38 = call i64 @malcpy(ptr noundef %30, i64 noundef %37)
%39 = inttoptr i64 %38 to ptr
%40 = load ptr, ptr %5, align 8
%41 = load i32, ptr %4, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds ptr, ptr %40, i64 %42
store ptr %39, ptr %43, align 8
%44 = load i32, ptr %4, align 4
%45 = add nsw i32 %44, -1
store i32 %45, ptr %4, align 4
%46 = icmp ne i32 %44, 0
br i1 %46, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %47
47: ; preds = %._crit_edge, %9
%48 = load ptr, ptr %5, align 8
store ptr %48, ptr %2, align 8
br label %49
49: ; preds = %47, %8
%50 = load ptr, ptr %2, align 8
ret ptr %50
}
declare i32 @argvlen(ptr noundef) #1
declare ptr @realloc(i32 noundef, i32 noundef) #1
declare i64 @malcpy(ptr noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpxw7f8p43.c'
source_filename = "/tmp/tmpxw7f8p43.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @genAnimMenu(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
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %6, %7
br i1 %8, label %9, label %97
9: ; preds = %2
%10 = load i32, ptr %3, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %30
12: ; preds = %9
%13 = load i32, ptr %4, align 4
%14 = icmp eq i32 %13, 1
br i1 %14, label %15, label %30
15: ; preds = %12
%16 = call i32 @limpOut(i32 noundef 22)
store i32 1, ptr %5, align 4
br label %17
17: ; preds = %25, %15
%18 = load i32, ptr %5, align 4
%19 = icmp sle i32 %18, 6
br i1 %19, label %20, label %28
20: ; preds = %17
%21 = load i32, ptr %5, align 4
%22 = call i32 @impFotograma(i32 noundef %21)
%23 = call i32 (...) @minisleep()
%24 = call i32 @limpOut(i32 noundef 22)
br label %25
25: ; preds = %20
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %5, align 4
br label %17, !llvm.loop !6
28: ; preds = %17
%29 = call i32 @impFotograma(i32 noundef 6)
br label %96
30: ; preds = %12, %9
%31 = load i32, ptr %3, align 4
%32 = icmp eq i32 %31, 1
br i1 %32, label %33, label %51
33: ; preds = %30
%34 = load i32, ptr %4, align 4
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %51
36: ; preds = %33
%37 = call i32 @limpOut(i32 noundef 22)
store i32 6, ptr %5, align 4
br label %38
38: ; preds = %46, %36
%39 = load i32, ptr %5, align 4
%40 = icmp sle i32 %39, 11
br i1 %40, label %41, label %49
41: ; preds = %38
%42 = load i32, ptr %5, align 4
%43 = call i32 @impFotograma(i32 noundef %42)
%44 = call i32 (...) @minisleep()
%45 = call i32 @limpOut(i32 noundef 22)
br label %46
46: ; preds = %41
%47 = load i32, ptr %5, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %5, align 4
br label %38, !llvm.loop !8
49: ; preds = %38
%50 = call i32 @impFotograma(i32 noundef 11)
br label %95
51: ; preds = %33, %30
%52 = load i32, ptr %3, align 4
%53 = icmp eq i32 %52, 1
br i1 %53, label %54, label %72
54: ; preds = %51
%55 = load i32, ptr %4, align 4
%56 = icmp eq i32 %55, 2
br i1 %56, label %57, label %72
57: ; preds = %54
%58 = call i32 @limpOut(i32 noundef 22)
store i32 14, ptr %5, align 4
br label %59
59: ; preds = %67, %57
%60 = load i32, ptr %5, align 4
%61 = icmp sle i32 %60, 19
br i1 %61, label %62, label %70
62: ; preds = %59
%63 = load i32, ptr %5, align 4
%64 = call i32 @impFotograma(i32 noundef %63)
%65 = call i32 (...) @minisleep()
%66 = call i32 @limpOut(i32 noundef 22)
br label %67
67: ; preds = %62
%68 = load i32, ptr %5, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %5, align 4
br label %59, !llvm.loop !9
70: ; preds = %59
%71 = call i32 @impFotograma(i32 noundef 19)
br label %94
72: ; preds = %54, %51
%73 = load i32, ptr %3, align 4
%74 = icmp eq i32 %73, 2
br i1 %74, label %75, label %93
75: ; preds = %72
%76 = load i32, ptr %4, align 4
%77 = icmp eq i32 %76, 1
br i1 %77, label %78, label %93
78: ; preds = %75
%79 = call i32 @limpOut(i32 noundef 22)
store i32 19, ptr %5, align 4
br label %80
80: ; preds = %88, %78
%81 = load i32, ptr %5, align 4
%82 = icmp sle i32 %81, 23
br i1 %82, label %83, label %91
83: ; preds = %80
%84 = load i32, ptr %5, align 4
%85 = call i32 @impFotograma(i32 noundef %84)
%86 = call i32 (...) @minisleep()
%87 = call i32 @limpOut(i32 noundef 22)
br label %88
88: ; preds = %83
%89 = load i32, ptr %5, align 4
%90 = add nsw i32 %89, 1
store i32 %90, ptr %5, align 4
br label %80, !llvm.loop !10
91: ; preds = %80
%92 = call i32 @impFotograma(i32 noundef 23)
br label %93
93: ; preds = %91, %75, %72
br label %94
94: ; preds = %93, %70
br label %95
95: ; preds = %94, %49
br label %96
96: ; preds = %95, %28
br label %130
97: ; preds = %2
%98 = load i32, ptr %3, align 4
%99 = icmp eq i32 %98, 0
br i1 %99, label %100, label %107
100: ; preds = %97
%101 = call i32 @limpOut(i32 noundef 22)
%102 = call i32 @impFotograma(i32 noundef 12)
%103 = call i32 (...) @minisleep()
%104 = call i32 (...) @minisleep()
%105 = call i32 @limpOut(i32 noundef 22)
%106 = call i32 @impFotograma(i32 noundef 1)
br label %129
107: ; preds = %97
%108 = load i32, ptr %3, align 4
%109 = icmp eq i32 %108, 1
br i1 %109, label %110, label %117
110: ; preds = %107
%111 = call i32 @limpOut(i32 noundef 22)
%112 = call i32 @impFotograma(i32 noundef 13)
%113 = call i32 (...) @minisleep()
%114 = call i32 (...) @minisleep()
%115 = call i32 @limpOut(i32 noundef 22)
%116 = call i32 @impFotograma(i32 noundef 6)
br label %128
117: ; preds = %107
%118 = load i32, ptr %3, align 4
%119 = icmp eq i32 %118, 2
br i1 %119, label %120, label %127
120: ; preds = %117
%121 = call i32 @limpOut(i32 noundef 22)
%122 = call i32 @impFotograma(i32 noundef 25)
%123 = call i32 (...) @minisleep()
%124 = call i32 (...) @minisleep()
%125 = call i32 @limpOut(i32 noundef 22)
%126 = call i32 @impFotograma(i32 noundef 19)
br label %127
127: ; preds = %120, %117
br label %128
128: ; preds = %127, %110
br label %129
129: ; preds = %128, %100
br label %130
130: ; preds = %129, %96
ret void
}
declare i32 @limpOut(i32 noundef) #1
declare i32 @impFotograma(i32 noundef) #1
declare i32 @minisleep(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpxw7f8p43.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @genAnimMenu(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
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %6, %7
br i1 %8, label %9, label %101
9: ; preds = %2
%10 = load i32, ptr %3, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %31
12: ; preds = %9
%13 = load i32, ptr %4, align 4
%14 = icmp eq i32 %13, 1
br i1 %14, label %15, label %31
15: ; preds = %12
%16 = call i32 @limpOut(i32 noundef 22)
store i32 1, ptr %5, align 4
%17 = load i32, ptr %5, align 4
%18 = icmp sle i32 %17, 6
br i1 %18, label %.lr.ph8, label %29
.lr.ph8: ; preds = %15
br label %19
19: ; preds = %.lr.ph8, %24
%20 = load i32, ptr %5, align 4
%21 = call i32 @impFotograma(i32 noundef %20)
%22 = call i32 (...) @minisleep()
%23 = call i32 @limpOut(i32 noundef 22)
br label %24
24: ; preds = %19
%25 = load i32, ptr %5, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %5, align 4
%27 = load i32, ptr %5, align 4
%28 = icmp sle i32 %27, 6
br i1 %28, label %19, label %._crit_edge9, !llvm.loop !6
._crit_edge9: ; preds = %24
br label %29
29: ; preds = %._crit_edge9, %15
%30 = call i32 @impFotograma(i32 noundef 6)
br label %100
31: ; preds = %12, %9
%32 = load i32, ptr %3, align 4
%33 = icmp eq i32 %32, 1
br i1 %33, label %34, label %53
34: ; preds = %31
%35 = load i32, ptr %4, align 4
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %53
37: ; preds = %34
%38 = call i32 @limpOut(i32 noundef 22)
store i32 6, ptr %5, align 4
%39 = load i32, ptr %5, align 4
%40 = icmp sle i32 %39, 11
br i1 %40, label %.lr.ph5, label %51
.lr.ph5: ; preds = %37
br label %41
41: ; preds = %.lr.ph5, %46
%42 = load i32, ptr %5, align 4
%43 = call i32 @impFotograma(i32 noundef %42)
%44 = call i32 (...) @minisleep()
%45 = call i32 @limpOut(i32 noundef 22)
br label %46
46: ; preds = %41
%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 sle i32 %49, 11
br i1 %50, label %41, label %._crit_edge6, !llvm.loop !8
._crit_edge6: ; preds = %46
br label %51
51: ; preds = %._crit_edge6, %37
%52 = call i32 @impFotograma(i32 noundef 11)
br label %99
53: ; preds = %34, %31
%54 = load i32, ptr %3, align 4
%55 = icmp eq i32 %54, 1
br i1 %55, label %56, label %75
56: ; preds = %53
%57 = load i32, ptr %4, align 4
%58 = icmp eq i32 %57, 2
br i1 %58, label %59, label %75
59: ; preds = %56
%60 = call i32 @limpOut(i32 noundef 22)
store i32 14, ptr %5, align 4
%61 = load i32, ptr %5, align 4
%62 = icmp sle i32 %61, 19
br i1 %62, label %.lr.ph2, label %73
.lr.ph2: ; preds = %59
br label %63
63: ; preds = %.lr.ph2, %68
%64 = load i32, ptr %5, align 4
%65 = call i32 @impFotograma(i32 noundef %64)
%66 = call i32 (...) @minisleep()
%67 = call i32 @limpOut(i32 noundef 22)
br label %68
68: ; preds = %63
%69 = load i32, ptr %5, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %5, align 4
%71 = load i32, ptr %5, align 4
%72 = icmp sle i32 %71, 19
br i1 %72, label %63, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %68
br label %73
73: ; preds = %._crit_edge3, %59
%74 = call i32 @impFotograma(i32 noundef 19)
br label %98
75: ; preds = %56, %53
%76 = load i32, ptr %3, align 4
%77 = icmp eq i32 %76, 2
br i1 %77, label %78, label %97
78: ; preds = %75
%79 = load i32, ptr %4, align 4
%80 = icmp eq i32 %79, 1
br i1 %80, label %81, label %97
81: ; preds = %78
%82 = call i32 @limpOut(i32 noundef 22)
store i32 19, ptr %5, align 4
%83 = load i32, ptr %5, align 4
%84 = icmp sle i32 %83, 23
br i1 %84, label %.lr.ph, label %95
.lr.ph: ; preds = %81
br label %85
85: ; preds = %.lr.ph, %90
%86 = load i32, ptr %5, align 4
%87 = call i32 @impFotograma(i32 noundef %86)
%88 = call i32 (...) @minisleep()
%89 = call i32 @limpOut(i32 noundef 22)
br label %90
90: ; preds = %85
%91 = load i32, ptr %5, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %5, align 4
%93 = load i32, ptr %5, align 4
%94 = icmp sle i32 %93, 23
br i1 %94, label %85, label %._crit_edge, !llvm.loop !10
._crit_edge: ; preds = %90
br label %95
95: ; preds = %._crit_edge, %81
%96 = call i32 @impFotograma(i32 noundef 23)
br label %97
97: ; preds = %95, %78, %75
br label %98
98: ; preds = %97, %73
br label %99
99: ; preds = %98, %51
br label %100
100: ; preds = %99, %29
br label %134
101: ; preds = %2
%102 = load i32, ptr %3, align 4
%103 = icmp eq i32 %102, 0
br i1 %103, label %104, label %111
104: ; preds = %101
%105 = call i32 @limpOut(i32 noundef 22)
%106 = call i32 @impFotograma(i32 noundef 12)
%107 = call i32 (...) @minisleep()
%108 = call i32 (...) @minisleep()
%109 = call i32 @limpOut(i32 noundef 22)
%110 = call i32 @impFotograma(i32 noundef 1)
br label %133
111: ; preds = %101
%112 = load i32, ptr %3, align 4
%113 = icmp eq i32 %112, 1
br i1 %113, label %114, label %121
114: ; preds = %111
%115 = call i32 @limpOut(i32 noundef 22)
%116 = call i32 @impFotograma(i32 noundef 13)
%117 = call i32 (...) @minisleep()
%118 = call i32 (...) @minisleep()
%119 = call i32 @limpOut(i32 noundef 22)
%120 = call i32 @impFotograma(i32 noundef 6)
br label %132
121: ; preds = %111
%122 = load i32, ptr %3, align 4
%123 = icmp eq i32 %122, 2
br i1 %123, label %124, label %131
124: ; preds = %121
%125 = call i32 @limpOut(i32 noundef 22)
%126 = call i32 @impFotograma(i32 noundef 25)
%127 = call i32 (...) @minisleep()
%128 = call i32 (...) @minisleep()
%129 = call i32 @limpOut(i32 noundef 22)
%130 = call i32 @impFotograma(i32 noundef 19)
br label %131
131: ; preds = %124, %121
br label %132
132: ; preds = %131, %114
br label %133
133: ; preds = %132, %104
br label %134
134: ; preds = %133, %100
ret void
}
declare i32 @limpOut(i32 noundef) #1
declare i32 @impFotograma(i32 noundef) #1
declare i32 @minisleep(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpd0lozbaa.c'
source_filename = "/tmp/tmpd0lozbaa.c"
target datalayout = "e-m:e-p270: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/tmpd0lozbaa.c"
target datalayout = "e-m:e-p270: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/tmpi_i0tf7q.c'
source_filename = "/tmp/tmpi_i0tf7q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"Romset%s\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @romset_file_list(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%7 = call ptr @lib_stralloc(ptr noundef @.str)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %2, align 8
%9 = getelementptr inbounds ptr, ptr %8, i32 1
store ptr %9, ptr %2, align 8
%10 = load ptr, ptr %8, align 8
store ptr %10, ptr %4, align 8
br label %11
11: ; preds = %24, %1
%12 = load ptr, ptr %4, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %28
14: ; preds = %11
%15 = load ptr, ptr %4, align 8
%16 = call i32 @resources_get_int_sprintf(ptr noundef @.str.1, ptr noundef %5, ptr noundef %15)
%17 = load ptr, ptr %4, align 8
%18 = call ptr @resources_write_item_to_string(ptr noundef %17, ptr noundef @.str.2)
store ptr %18, ptr %6, align 8
%19 = load ptr, ptr %6, align 8
%20 = icmp ne ptr %19, null
br i1 %20, label %21, label %24
21: ; preds = %14
%22 = load ptr, ptr %6, align 8
%23 = call i32 @util_addline_free(ptr noundef %3, ptr noundef %22)
br label %24
24: ; preds = %21, %14
%25 = load ptr, ptr %2, align 8
%26 = getelementptr inbounds ptr, ptr %25, i32 1
store ptr %26, ptr %2, align 8
%27 = load ptr, ptr %25, align 8
store ptr %27, ptr %4, align 8
br label %11, !llvm.loop !6
28: ; preds = %11
%29 = load ptr, ptr %3, align 8
ret ptr %29
}
declare ptr @lib_stralloc(ptr noundef) #1
declare i32 @resources_get_int_sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @resources_write_item_to_string(ptr noundef, ptr noundef) #1
declare i32 @util_addline_free(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/tmpi_i0tf7q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"Romset%s\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @romset_file_list(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%7 = call ptr @lib_stralloc(ptr noundef @.str)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %2, align 8
%9 = getelementptr inbounds ptr, ptr %8, i32 1
store ptr %9, ptr %2, align 8
%10 = load ptr, ptr %8, align 8
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 %29
.lr.ph: ; preds = %1
br label %13
13: ; preds = %.lr.ph, %23
%14 = load ptr, ptr %4, align 8
%15 = call i32 @resources_get_int_sprintf(ptr noundef @.str.1, ptr noundef %5, ptr noundef %14)
%16 = load ptr, ptr %4, align 8
%17 = call ptr @resources_write_item_to_string(ptr noundef %16, ptr noundef @.str.2)
store ptr %17, ptr %6, align 8
%18 = load ptr, ptr %6, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %20, label %23
20: ; preds = %13
%21 = load ptr, ptr %6, align 8
%22 = call i32 @util_addline_free(ptr noundef %3, ptr noundef %21)
br label %23
23: ; preds = %20, %13
%24 = load ptr, ptr %2, align 8
%25 = getelementptr inbounds ptr, ptr %24, i32 1
store ptr %25, ptr %2, align 8
%26 = load ptr, ptr %24, align 8
store ptr %26, ptr %4, align 8
%27 = load ptr, ptr %4, align 8
%28 = icmp ne ptr %27, null
br i1 %28, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %29
29: ; preds = %._crit_edge, %1
%30 = load ptr, ptr %3, align 8
ret ptr %30
}
declare ptr @lib_stralloc(ptr noundef) #1
declare i32 @resources_get_int_sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @resources_write_item_to_string(ptr noundef, ptr noundef) #1
declare i32 @util_addline_free(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/tmpa91mknur.c'
source_filename = "/tmp/tmpa91mknur.c"
target datalayout = "e-m:e-p270: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/tmpa91mknur.c"
target datalayout = "e-m:e-p270: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/tmpqyb7idcz.c'
source_filename = "/tmp/tmpqyb7idcz.c"
target datalayout = "e-m:e-p270: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/tmpqyb7idcz.c"
target datalayout = "e-m:e-p270: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/tmplj8gzmh0.c'
source_filename = "/tmp/tmplj8gzmh0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; 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 %3)
store i32 0, ptr %2, align 4
br label %6
6: ; preds = %15, %0
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %18
10: ; preds = %6
%11 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%12 = load i32, ptr %4, align 4
%13 = add nsw i32 %12, 1
%14 = call i32 @printf(ptr noundef @.str.1, i32 noundef %13)
br label %15
15: ; preds = %10
%16 = load i32, ptr %2, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %2, align 4
br label %6, !llvm.loop !6
18: ; preds = %6
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/tmplj8gzmh0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; 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 %3)
store i32 0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %20
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %14
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%11 = load i32, ptr %4, align 4
%12 = add nsw i32 %11, 1
%13 = call i32 @printf(ptr noundef @.str.1, i32 noundef %12)
br label %14
14: ; preds = %9
%15 = load i32, ptr %2, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %2, align 4
%17 = load i32, ptr %2, align 4
%18 = load i32, ptr %3, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %20
20: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp0et8b5ml.c'
source_filename = "/tmp/tmp0et8b5ml.c"
target datalayout = "e-m:e-p270: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.cg_read_lc.delim = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @cg_read_lc(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [4096 x i8], align 16
%7 = alloca [2 x i8], align 1
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.cg_read_lc.delim, i64 2, i1 false)
store i64 0, ptr %9, align 8
%10 = load ptr, ptr %4, align 8
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%13 = call i64 @cg_read(ptr noundef %10, ptr noundef %11, ptr noundef %12, i32 noundef 4096)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %2
store i64 -1, ptr %3, align 8
br label %31
16: ; preds = %2
%17 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%18 = getelementptr inbounds [2 x i8], ptr %7, i64 0, i64 0
%19 = call ptr @strtok(ptr noundef %17, ptr noundef %18)
store ptr %19, ptr %8, align 8
br label %20
20: ; preds = %26, %16
%21 = load ptr, ptr %8, align 8
%22 = icmp ne ptr %21, null
br i1 %22, label %23, label %29
23: ; preds = %20
%24 = load i64, ptr %9, align 8
%25 = add nsw i64 %24, 1
store i64 %25, ptr %9, align 8
br label %26
26: ; preds = %23
%27 = getelementptr inbounds [2 x i8], ptr %7, i64 0, i64 0
%28 = call ptr @strtok(ptr noundef null, ptr noundef %27)
store ptr %28, ptr %8, align 8
br label %20, !llvm.loop !6
29: ; preds = %20
%30 = load i64, ptr %9, align 8
store i64 %30, ptr %3, align 8
br label %31
31: ; preds = %29, %15
%32 = load i64, ptr %3, align 8
ret i64 %32
}
; 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 @cg_read(ptr noundef, ptr noundef, ptr noundef, i32 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: 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/tmp0et8b5ml.c"
target datalayout = "e-m:e-p270: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.cg_read_lc.delim = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @cg_read_lc(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [4096 x i8], align 16
%7 = alloca [2 x i8], align 1
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.cg_read_lc.delim, i64 2, i1 false)
store i64 0, ptr %9, align 8
%10 = load ptr, ptr %4, align 8
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%13 = call i64 @cg_read(ptr noundef %10, ptr noundef %11, ptr noundef %12, i32 noundef 4096)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %2
store i64 -1, ptr %3, align 8
br label %32
16: ; preds = %2
%17 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%18 = getelementptr inbounds [2 x i8], ptr %7, i64 0, i64 0
%19 = call ptr @strtok(ptr noundef %17, ptr noundef %18)
store ptr %19, ptr %8, align 8
%20 = load ptr, ptr %8, align 8
%21 = icmp ne ptr %20, null
br i1 %21, label %.lr.ph, label %30
.lr.ph: ; preds = %16
%22 = getelementptr inbounds [2 x i8], ptr %7, i64 0, i64 0
br label %23
23: ; preds = %.lr.ph, %26
%24 = load i64, ptr %9, align 8
%25 = add nsw i64 %24, 1
store i64 %25, ptr %9, align 8
br label %26
26: ; preds = %23
%27 = call ptr @strtok(ptr noundef null, ptr noundef %22)
store ptr %27, ptr %8, align 8
%28 = load ptr, ptr %8, align 8
%29 = icmp ne ptr %28, null
br i1 %29, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %30
30: ; preds = %._crit_edge, %16
%31 = load i64, ptr %9, align 8
store i64 %31, ptr %3, align 8
br label %32
32: ; preds = %30, %15
%33 = load i64, ptr %3, align 8
ret i64 %33
}
; 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 @cg_read(ptr noundef, ptr noundef, ptr noundef, i32 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: 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/tmp7552j0ih.c'
source_filename = "/tmp/tmp7552j0ih.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"mklocale: Version %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"0.0.1\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @version() #0 {
%1 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7552j0ih.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"mklocale: Version %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"0.0.1\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @version() #0 {
%1 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7wmi7maa.c'
source_filename = "/tmp/tmp7wmi7maa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @creanumero(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca float, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store float 0.000000e+00, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%8 = load i32, ptr %4, align 4
%9 = sub nsw i32 %8, 1
store i32 %9, ptr %6, align 4
br label %10
10: ; preds = %26, %2
%11 = load i32, ptr %6, align 4
%12 = icmp sge i32 %11, 0
br i1 %12, label %13, label %29
13: ; preds = %10
%14 = load float, ptr %5, align 4
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %6, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = load i8, ptr %18, align 1
%20 = call float @numero(i8 noundef signext %19)
%21 = load i32, ptr %7, align 4
%22 = call float @elevazione(i32 noundef 10, i32 noundef %21)
%23 = call float @llvm.fmuladd.f32(float %20, float %22, float %14)
store float %23, ptr %5, align 4
%24 = load i32, ptr %7, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %7, align 4
br label %26
26: ; preds = %13
%27 = load i32, ptr %6, align 4
%28 = add nsw i32 %27, -1
store i32 %28, ptr %6, align 4
br label %10, !llvm.loop !6
29: ; preds = %10
%30 = load float, ptr %5, align 4
ret float %30
}
declare float @numero(i8 noundef signext) #1
declare float @elevazione(i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7wmi7maa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @creanumero(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca float, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store float 0.000000e+00, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%8 = load i32, ptr %4, align 4
%9 = sub nsw i32 %8, 1
store i32 %9, ptr %6, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp sge i32 %10, 0
br i1 %11, label %.lr.ph, label %30
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %25
%13 = load float, ptr %5, align 4
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %6, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
%19 = call float @numero(i8 noundef signext %18)
%20 = load i32, ptr %7, align 4
%21 = call float @elevazione(i32 noundef 10, i32 noundef %20)
%22 = call float @llvm.fmuladd.f32(float %19, float %21, float %13)
store float %22, ptr %5, align 4
%23 = load i32, ptr %7, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %7, align 4
br label %25
25: ; preds = %12
%26 = load i32, ptr %6, align 4
%27 = add nsw i32 %26, -1
store i32 %27, ptr %6, align 4
%28 = load i32, ptr %6, align 4
%29 = icmp sge i32 %28, 0
br i1 %29, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %30
30: ; preds = %._crit_edge, %2
%31 = load float, ptr %5, align 4
ret float %31
}
declare float @numero(i8 noundef signext) #1
declare float @elevazione(i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpslkr0t3v.c'
source_filename = "/tmp/tmpslkr0t3v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rand_signed64() #0 {
%1 = alloca [8 x i8], align 1
%2 = alloca i32, align 4
store i32 0, ptr %2, align 4
br label %3
3: ; preds = %11, %0
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 8
br i1 %5, label %6, label %14
6: ; preds = %3
%7 = call signext i8 (...) @rand()
%8 = load i32, ptr %2, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 %9
store i8 %7, ptr %10, align 1
br label %11
11: ; preds = %6
%12 = load i32, ptr %2, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %2, align 4
br label %3, !llvm.loop !6
14: ; preds = %3
%15 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 0
%16 = load i32, ptr %15, align 1
ret i32 %16
}
declare signext i8 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpslkr0t3v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rand_signed64() #0 {
%1 = alloca [8 x i8], align 1
%2 = alloca i32, align 4
store i32 0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp slt i32 %3, 8
br i1 %4, label %.lr.ph, label %15
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %10
%6 = call signext i8 (...) @rand()
%7 = load i32, ptr %2, align 4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 %8
store i8 %6, ptr %9, align 1
br label %10
10: ; preds = %5
%11 = load i32, ptr %2, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %2, align 4
%13 = load i32, ptr %2, align 4
%14 = icmp slt i32 %13, 8
br i1 %14, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %15
15: ; preds = %._crit_edge, %0
%16 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 0
%17 = load i32, ptr %16, align 1
ret i32 %17
}
declare signext i8 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpu8qy9rwv.c'
source_filename = "/tmp/tmpu8qy9rwv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"popl\09%edx\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cgpopptr() #0 {
%1 = call i32 @gen(ptr noundef @.str)
ret void
}
declare i32 @gen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu8qy9rwv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"popl\09%edx\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cgpopptr() #0 {
%1 = call i32 @gen(ptr noundef @.str)
ret void
}
declare i32 @gen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdpkdb_gh.c'
source_filename = "/tmp/tmpdpkdb_gh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FALSE = dso_local global i32 0, align 4
@TRUE = 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/tmpdpkdb_gh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FALSE = dso_local global i32 0, align 4
@TRUE = 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/tmpjvcv0zhg.c'
source_filename = "/tmp/tmpjvcv0zhg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @freads(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
%14 = load i32, ptr %8, align 4
store i32 %14, ptr %12, align 4
store i32 0, ptr %10, align 4
br label %15
15: ; preds = %44, %4
%16 = load i32, ptr %10, align 4
%17 = load i32, ptr %8, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %47
19: ; preds = %15
%20 = load i32, ptr %6, align 4
%21 = load ptr, ptr %7, align 8
%22 = load i32, ptr %10, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
%25 = call i32 @read(i32 noundef %20, ptr noundef %24, i32 noundef 1)
store i32 %25, ptr %11, align 4
%26 = icmp slt i32 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %19
store ptr null, ptr %5, align 8
br label %106
28: ; preds = %19
%29 = load i32, ptr %11, align 4
%30 = icmp eq i32 %29, 0
br i1 %30, label %39, label %31
31: ; preds = %28
%32 = load ptr, ptr %7, align 8
%33 = load i32, ptr %10, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 10
br i1 %38, label %39, label %43
39: ; preds = %31, %28
%40 = load i32, ptr %10, align 4
%41 = load ptr, ptr %9, align 8
store i32 %40, ptr %41, align 4
%42 = load ptr, ptr %7, align 8
store ptr %42, ptr %5, align 8
br label %106
43: ; preds = %31
br label %44
44: ; preds = %43
%45 = load i32, ptr %10, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %10, align 4
br label %15, !llvm.loop !6
47: ; preds = %15
%48 = load i32, ptr %12, align 4
%49 = shl i32 %48, 1
store i32 %49, ptr %12, align 4
%50 = call i64 @calloc(i32 noundef %49, i32 noundef 1)
%51 = inttoptr i64 %50 to ptr
store ptr %51, ptr %13, align 8
%52 = icmp eq ptr %51, null
br i1 %52, label %53, label %54
53: ; preds = %47
store ptr null, ptr %5, align 8
br label %106
54: ; preds = %47
%55 = load ptr, ptr %13, align 8
%56 = load ptr, ptr %7, align 8
%57 = load i32, ptr %8, align 4
%58 = call i32 @memcpy(ptr noundef %55, ptr noundef %56, i32 noundef %57)
br label %59
59: ; preds = %95, %54
%60 = load i32, ptr %6, align 4
%61 = load ptr, ptr %13, align 8
%62 = load i32, ptr %10, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i8, ptr %61, i64 %63
%65 = call i32 @read(i32 noundef %60, ptr noundef %64, i32 noundef 1)
store i32 %65, ptr %11, align 4
%66 = icmp eq i32 %65, 1
br i1 %66, label %67, label %75
67: ; preds = %59
%68 = load ptr, ptr %13, align 8
%69 = load i32, ptr %10, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, ptr %68, i64 %70
%72 = load i8, ptr %71, align 1
%73 = sext i8 %72 to i32
%74 = icmp ne i32 %73, 10
br label %75
75: ; preds = %67, %59
%76 = phi i1 [ false, %59 ], [ %74, %67 ]
br i1 %76, label %77, label %96
77: ; preds = %75
%78 = load i32, ptr %10, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %10, align 4
%80 = load i32, ptr %10, align 4
%81 = load i32, ptr %12, align 4
%82 = icmp eq i32 %80, %81
br i1 %82, label %83, label %95
83: ; preds = %77
%84 = load ptr, ptr %13, align 8
%85 = load i32, ptr %12, align 4
%86 = shl i32 %85, 1
store i32 %86, ptr %12, align 4
%87 = call i64 @realloc(ptr noundef %84, i32 noundef %86)
%88 = inttoptr i64 %87 to ptr
store ptr %88, ptr %13, align 8
%89 = load ptr, ptr %13, align 8
%90 = icmp eq ptr %89, null
br i1 %90, label %91, label %94
91: ; preds = %83
%92 = load ptr, ptr %13, align 8
%93 = call i32 @free(ptr noundef %92)
store ptr null, ptr %5, align 8
br label %106
94: ; preds = %83
br label %95
95: ; preds = %94, %77
br label %59, !llvm.loop !8
96: ; preds = %75
%97 = load i32, ptr %11, align 4
%98 = icmp slt i32 %97, 0
br i1 %98, label %99, label %102
99: ; preds = %96
%100 = load ptr, ptr %13, align 8
%101 = call i32 @free(ptr noundef %100)
store ptr null, ptr %5, align 8
br label %106
102: ; preds = %96
%103 = load i32, ptr %10, align 4
%104 = load ptr, ptr %9, align 8
store i32 %103, ptr %104, align 4
%105 = load ptr, ptr %13, align 8
store ptr %105, ptr %5, align 8
br label %106
106: ; preds = %102, %99, %91, %53, %39, %27
%107 = load ptr, ptr %5, align 8
ret ptr %107
}
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @realloc(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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjvcv0zhg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @freads(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
%14 = load i32, ptr %8, align 4
store i32 %14, ptr %12, align 4
store i32 0, ptr %10, align 4
%15 = load i32, ptr %10, align 4
%16 = load i32, ptr %8, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %49
.lr.ph: ; preds = %4
br label %18
18: ; preds = %.lr.ph, %43
%19 = load i32, ptr %6, align 4
%20 = load ptr, ptr %7, align 8
%21 = load i32, ptr %10, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = call i32 @read(i32 noundef %19, ptr noundef %23, i32 noundef 1)
store i32 %24, ptr %11, align 4
%25 = icmp slt i32 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %18
store ptr null, ptr %5, align 8
br label %108
27: ; preds = %18
%28 = load i32, ptr %11, align 4
%29 = icmp eq i32 %28, 0
br i1 %29, label %38, label %30
30: ; preds = %27
%31 = load ptr, ptr %7, align 8
%32 = load i32, ptr %10, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, i64 %33
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %36, 10
br i1 %37, label %38, label %42
38: ; preds = %30, %27
%39 = load i32, ptr %10, align 4
%40 = load ptr, ptr %9, align 8
store i32 %39, ptr %40, align 4
%41 = load ptr, ptr %7, align 8
store ptr %41, ptr %5, align 8
br label %108
42: ; preds = %30
br label %43
43: ; preds = %42
%44 = load i32, ptr %10, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %10, align 4
%46 = load i32, ptr %10, align 4
%47 = load i32, ptr %8, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %43
br label %49
49: ; preds = %._crit_edge, %4
%50 = load i32, ptr %12, align 4
%51 = shl i32 %50, 1
store i32 %51, ptr %12, align 4
%52 = call i64 @calloc(i32 noundef %51, i32 noundef 1)
%53 = inttoptr i64 %52 to ptr
store ptr %53, ptr %13, align 8
%54 = icmp eq ptr %53, null
br i1 %54, label %55, label %56
55: ; preds = %49
store ptr null, ptr %5, align 8
br label %108
56: ; preds = %49
%57 = load ptr, ptr %13, align 8
%58 = load ptr, ptr %7, align 8
%59 = load i32, ptr %8, align 4
%60 = call i32 @memcpy(ptr noundef %57, ptr noundef %58, i32 noundef %59)
br label %61
61: ; preds = %97, %56
%62 = load i32, ptr %6, align 4
%63 = load ptr, ptr %13, align 8
%64 = load i32, ptr %10, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i8, ptr %63, i64 %65
%67 = call i32 @read(i32 noundef %62, ptr noundef %66, i32 noundef 1)
store i32 %67, ptr %11, align 4
%68 = icmp eq i32 %67, 1
br i1 %68, label %69, label %77
69: ; preds = %61
%70 = load ptr, ptr %13, align 8
%71 = load i32, ptr %10, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8, ptr %70, i64 %72
%74 = load i8, ptr %73, align 1
%75 = sext i8 %74 to i32
%76 = icmp ne i32 %75, 10
br label %77
77: ; preds = %69, %61
%78 = phi i1 [ false, %61 ], [ %76, %69 ]
br i1 %78, label %79, label %98
79: ; preds = %77
%80 = load i32, ptr %10, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %10, align 4
%82 = load i32, ptr %10, align 4
%83 = load i32, ptr %12, align 4
%84 = icmp eq i32 %82, %83
br i1 %84, label %85, label %97
85: ; preds = %79
%86 = load ptr, ptr %13, align 8
%87 = load i32, ptr %12, align 4
%88 = shl i32 %87, 1
store i32 %88, ptr %12, align 4
%89 = call i64 @realloc(ptr noundef %86, i32 noundef %88)
%90 = inttoptr i64 %89 to ptr
store ptr %90, ptr %13, align 8
%91 = load ptr, ptr %13, align 8
%92 = icmp eq ptr %91, null
br i1 %92, label %93, label %96
93: ; preds = %85
%94 = load ptr, ptr %13, align 8
%95 = call i32 @free(ptr noundef %94)
store ptr null, ptr %5, align 8
br label %108
96: ; preds = %85
br label %97
97: ; preds = %96, %79
br label %61, !llvm.loop !8
98: ; preds = %77
%99 = load i32, ptr %11, align 4
%100 = icmp slt i32 %99, 0
br i1 %100, label %101, label %104
101: ; preds = %98
%102 = load ptr, ptr %13, align 8
%103 = call i32 @free(ptr noundef %102)
store ptr null, ptr %5, align 8
br label %108
104: ; preds = %98
%105 = load i32, ptr %10, align 4
%106 = load ptr, ptr %9, align 8
store i32 %105, ptr %106, align 4
%107 = load ptr, ptr %13, align 8
store ptr %107, ptr %5, align 8
br label %108
108: ; preds = %104, %101, %93, %55, %38, %26
%109 = load ptr, ptr %5, align 8
ret ptr %109
}
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @realloc(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}
|
; ModuleID = '/tmp/tmperz5yh8m.c'
source_filename = "/tmp/tmperz5yh8m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @slaDh2e(double noundef %0, double noundef %1, double noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
store double %0, ptr %6, align 8
store double %1, ptr %7, align 8
store double %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%16 = load double, ptr %6, align 8
store double %16, ptr %11, align 8
%17 = load double, ptr %7, align 8
store double %17, ptr %12, align 8
%18 = load double, ptr %8, align 8
store double %18, ptr %13, align 8
%19 = call i32 @sla_dh2e_(ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15)
%20 = load double, ptr %14, align 8
%21 = load ptr, ptr %9, align 8
store double %20, ptr %21, align 8
%22 = load double, ptr %15, align 8
%23 = load ptr, ptr %10, align 8
store double %22, ptr %23, align 8
ret void
}
declare i32 @sla_dh2e_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmperz5yh8m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @slaDh2e(double noundef %0, double noundef %1, double noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
store double %0, ptr %6, align 8
store double %1, ptr %7, align 8
store double %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%16 = load double, ptr %6, align 8
store double %16, ptr %11, align 8
%17 = load double, ptr %7, align 8
store double %17, ptr %12, align 8
%18 = load double, ptr %8, align 8
store double %18, ptr %13, align 8
%19 = call i32 @sla_dh2e_(ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15)
%20 = load double, ptr %14, align 8
%21 = load ptr, ptr %9, align 8
store double %20, ptr %21, align 8
%22 = load double, ptr %15, align 8
%23 = load ptr, ptr %10, align 8
store double %22, ptr %23, align 8
ret void
}
declare i32 @sla_dh2e_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8tz0w7qg.c'
source_filename = "/tmp/tmp8tz0w7qg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@StaticColor = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8tz0w7qg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@StaticColor = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpb9fmmak5.c'
source_filename = "/tmp/tmpb9fmmak5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"check\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"perf\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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = call i32 (...) @checktv()
%11 = call i32 (...) @perftv()
br label %42
12: ; preds = %2
store i32 1, ptr %6, align 4
br label %13
13: ; preds = %38, %12
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %41
17: ; preds = %13
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %6, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds ptr, ptr %18, i64 %20
%22 = load ptr, ptr %21, align 8
%23 = call i32 @strcmp(ptr noundef %22, ptr noundef @.str)
%24 = icmp ne i32 %23, 0
br i1 %24, label %27, label %25
25: ; preds = %17
%26 = call i32 (...) @checktv()
br label %27
27: ; preds = %25, %17
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %6, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds ptr, ptr %28, i64 %30
%32 = load ptr, ptr %31, align 8
%33 = call i32 @strcmp(ptr noundef %32, ptr noundef @.str.1)
%34 = icmp ne i32 %33, 0
br i1 %34, label %37, label %35
35: ; preds = %27
%36 = call i32 (...) @perftv()
br label %37
37: ; preds = %35, %27
br label %38
38: ; preds = %37
%39 = load i32, ptr %6, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %6, align 4
br label %13, !llvm.loop !6
41: ; preds = %13
br label %42
42: ; preds = %41, %9
ret i32 0
}
declare i32 @checktv(...) #1
declare i32 @perftv(...) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb9fmmak5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"check\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"perf\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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = call i32 (...) @checktv()
%11 = call i32 (...) @perftv()
br label %44
12: ; preds = %2
store i32 1, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %43
.lr.ph: ; preds = %12
br label %16
16: ; preds = %.lr.ph, %37
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr %6, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds ptr, ptr %17, i64 %19
%21 = load ptr, ptr %20, align 8
%22 = call i32 @strcmp(ptr noundef %21, ptr noundef @.str)
%23 = icmp ne i32 %22, 0
br i1 %23, label %26, label %24
24: ; preds = %16
%25 = call i32 (...) @checktv()
br label %26
26: ; preds = %24, %16
%27 = load ptr, ptr %5, align 8
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds ptr, ptr %27, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = call i32 @strcmp(ptr noundef %31, ptr noundef @.str.1)
%33 = icmp ne i32 %32, 0
br i1 %33, label %36, label %34
34: ; preds = %26
%35 = call i32 (...) @perftv()
br label %36
36: ; preds = %34, %26
br label %37
37: ; preds = %36
%38 = load i32, ptr %6, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %6, align 4
%40 = load i32, ptr %6, align 4
%41 = load i32, ptr %4, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %43
43: ; preds = %._crit_edge, %12
br label %44
44: ; preds = %43, %9
ret i32 0
}
declare i32 @checktv(...) #1
declare i32 @perftv(...) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpprfycrh4.c'
source_filename = "/tmp/tmpprfycrh4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"output\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"fopen\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [15 x i8] c"pathname = %s\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [24 x i8] c"completed successfully\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca [1024 x i8], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
br label %5
5: ; preds = %24, %0
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 30
br i1 %7, label %8, label %27
8: ; preds = %5
%9 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %9, ptr %2, align 8
%10 = load ptr, ptr %2, align 8
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %20
12: ; preds = %8
%13 = call i32 @perror(ptr noundef @.str.2)
%14 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%15 = call i32 @getcwd(ptr noundef %14, i32 noundef 1024)
%16 = load i32, ptr @stderr, align 4
%17 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%18 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %16, ptr noundef @.str.3, ptr noundef %17)
%19 = call i32 (...) @abort() #3
unreachable
20: ; preds = %8
%21 = call i32 @sleep(i32 noundef 5)
%22 = load ptr, ptr %2, align 8
%23 = call i32 @fclose(ptr noundef %22)
br label %24
24: ; preds = %20
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %3, align 4
br label %5, !llvm.loop !6
27: ; preds = %5
%28 = load i32, ptr @stdout, align 4
%29 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %28, ptr noundef @.str.4)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @getcwd(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i32 @sleep(i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpprfycrh4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"output\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"fopen\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [15 x i8] c"pathname = %s\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [24 x i8] c"completed successfully\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca [1024 x i8], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, 30
br i1 %6, label %.lr.ph, label %28
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %23
%8 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %8, ptr %2, align 8
%9 = load ptr, ptr %2, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %19
11: ; preds = %7
%12 = call i32 @perror(ptr noundef @.str.2)
%13 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%14 = call i32 @getcwd(ptr noundef %13, i32 noundef 1024)
%15 = load i32, ptr @stderr, align 4
%16 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%17 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %15, ptr noundef @.str.3, ptr noundef %16)
%18 = call i32 (...) @abort() #3
unreachable
19: ; preds = %7
%20 = call i32 @sleep(i32 noundef 5)
%21 = load ptr, ptr %2, align 8
%22 = call i32 @fclose(ptr noundef %21)
br label %23
23: ; preds = %19
%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, 30
br i1 %27, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %28
28: ; preds = %._crit_edge, %0
%29 = load i32, ptr @stdout, align 4
%30 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %29, ptr noundef @.str.4)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @getcwd(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i32 @sleep(i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp2xj7enzg.c'
source_filename = "/tmp/tmp2xj7enzg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"foo.txt\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"c1\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"opened the fd = % d\0A\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"closed the fd.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = load i32, ptr @O_RDONLY, align 4
%4 = load i32, ptr @O_CREAT, align 4
%5 = or i32 %3, %4
%6 = call i32 @open(ptr noundef @.str, i32 noundef %5)
store i32 %6, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %0
%10 = call i32 @perror(ptr noundef @.str.1)
%11 = call i32 @exit(i32 noundef 1) #3
unreachable
12: ; preds = %0
%13 = load i32, ptr %2, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %13)
%15 = load i32, ptr %2, align 4
%16 = call i64 @close(i32 noundef %15)
%17 = icmp slt i64 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %12
%19 = call i32 @perror(ptr noundef @.str.1)
%20 = call i32 @exit(i32 noundef 1) #3
unreachable
21: ; preds = %12
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #1
declare i64 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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/tmp2xj7enzg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"foo.txt\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"c1\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"opened the fd = % d\0A\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"closed the fd.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = load i32, ptr @O_RDONLY, align 4
%4 = load i32, ptr @O_CREAT, align 4
%5 = or i32 %3, %4
%6 = call i32 @open(ptr noundef @.str, i32 noundef %5)
store i32 %6, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %0
%10 = call i32 @perror(ptr noundef @.str.1)
%11 = call i32 @exit(i32 noundef 1) #3
unreachable
12: ; preds = %0
%13 = load i32, ptr %2, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %13)
%15 = load i32, ptr %2, align 4
%16 = call i64 @close(i32 noundef %15)
%17 = icmp slt i64 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %12
%19 = call i32 @perror(ptr noundef @.str.1)
%20 = call i32 @exit(i32 noundef 1) #3
unreachable
21: ; preds = %12
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #1
declare i64 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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/tmpxdwwf691.c'
source_filename = "/tmp/tmpxdwwf691.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @getmouseabsx() #0 {
%1 = call i64 (...) @GetMouseAbsX286()
ret i64 %1
}
declare i64 @GetMouseAbsX286(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxdwwf691.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @getmouseabsx() #0 {
%1 = call i64 (...) @GetMouseAbsX286()
ret i64 %1
}
declare i64 @GetMouseAbsX286(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqywliy20.c'
source_filename = "/tmp/tmpqywliy20.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca [1000000 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr @stdin, align 4
%12 = call i32 @fflush(i32 noundef %11)
br label %13
13: ; preds = %60, %2
%14 = getelementptr inbounds [1000000 x i8], ptr %10, i64 0, i64 0
%15 = call ptr @gets(ptr noundef %14)
%16 = icmp ne ptr %15, null
br i1 %16, label %17, label %63
17: ; preds = %13
store i32 0, ptr %9, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %6, align 4
br label %18
18: ; preds = %45, %17
%19 = load i32, ptr %6, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [1000000 x i8], ptr %10, i64 0, i64 %20
%22 = load i8, ptr %21, align 1
%23 = icmp ne i8 %22, 0
br i1 %23, label %24, label %48
24: ; preds = %18
%25 = load i32, ptr %6, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [1000000 x i8], ptr %10, i64 0, i64 %26
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 32
br i1 %30, label %31, label %34
31: ; preds = %24
%32 = load i32, ptr %8, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %8, align 4
br label %44
34: ; preds = %24
%35 = load i32, ptr %7, align 4
%36 = load i32, ptr %8, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %38, label %40
38: ; preds = %34
%39 = load i32, ptr %8, align 4
br label %42
40: ; preds = %34
%41 = load i32, ptr %7, align 4
br label %42
42: ; preds = %40, %38
%43 = phi i32 [ %39, %38 ], [ %41, %40 ]
store i32 %43, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %44
44: ; preds = %42, %31
br label %45
45: ; preds = %44
%46 = load i32, ptr %6, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %6, align 4
br label %18, !llvm.loop !6
48: ; preds = %18
br label %49
49: ; preds = %52, %48
%50 = load i32, ptr %7, align 4
%51 = icmp ne i32 %50, 1
br i1 %51, label %52, label %60
52: ; preds = %49
%53 = load i32, ptr %7, align 4
%54 = sdiv i32 %53, 2
%55 = load i32, ptr %7, align 4
%56 = srem i32 %55, 2
%57 = add nsw i32 %54, %56
store i32 %57, ptr %7, align 4
%58 = load i32, ptr %9, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %9, align 4
br label %49, !llvm.loop !8
60: ; preds = %49
%61 = load i32, ptr %9, align 4
%62 = call i32 @printf(ptr noundef @.str, i32 noundef %61)
br label %13, !llvm.loop !9
63: ; preds = %13
ret i32 0
}
declare i32 @fflush(i32 noundef) #1
declare ptr @gets(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqywliy20.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca [1000000 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr @stdin, align 4
%12 = call i32 @fflush(i32 noundef %11)
%13 = getelementptr inbounds [1000000 x i8], ptr %10, i64 0, i64 0
%14 = call ptr @gets(ptr noundef %13)
%15 = icmp ne ptr %14, null
br i1 %15, label %.lr.ph5, label %69
.lr.ph5: ; preds = %2
br label %16
16: ; preds = %.lr.ph5, %64
store i32 0, ptr %9, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [1000000 x i8], ptr %10, i64 0, i64 %18
%20 = load i8, ptr %19, align 1
%21 = icmp ne i8 %20, 0
br i1 %21, label %.lr.ph, label %51
.lr.ph: ; preds = %16
br label %22
22: ; preds = %.lr.ph, %43
%23 = load i32, ptr %6, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [1000000 x i8], ptr %10, i64 0, i64 %24
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 32
br i1 %28, label %29, label %32
29: ; preds = %22
%30 = load i32, ptr %8, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %8, align 4
br label %42
32: ; preds = %22
%33 = load i32, ptr %7, align 4
%34 = load i32, ptr %8, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %36, label %38
36: ; preds = %32
%37 = load i32, ptr %8, align 4
br label %40
38: ; preds = %32
%39 = load i32, ptr %7, align 4
br label %40
40: ; preds = %38, %36
%41 = phi i32 [ %37, %36 ], [ %39, %38 ]
store i32 %41, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %42
42: ; preds = %40, %29
br label %43
43: ; preds = %42
%44 = load i32, ptr %6, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %6, align 4
%46 = load i32, ptr %6, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [1000000 x i8], ptr %10, i64 0, i64 %47
%49 = load i8, ptr %48, align 1
%50 = icmp ne i8 %49, 0
br i1 %50, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %43
br label %51
51: ; preds = %._crit_edge, %16
%52 = load i32, ptr %7, align 4
%53 = icmp ne i32 %52, 1
br i1 %53, label %.lr.ph2, label %64
.lr.ph2: ; preds = %51
br label %54
54: ; preds = %.lr.ph2, %54
%55 = load i32, ptr %7, align 4
%56 = sdiv i32 %55, 2
%57 = load i32, ptr %7, align 4
%58 = srem i32 %57, 2
%59 = add nsw i32 %56, %58
store i32 %59, ptr %7, align 4
%60 = load i32, ptr %9, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %9, align 4
%62 = load i32, ptr %7, align 4
%63 = icmp ne i32 %62, 1
br i1 %63, label %54, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %54
br label %64
64: ; preds = %._crit_edge3, %51
%65 = load i32, ptr %9, align 4
%66 = call i32 @printf(ptr noundef @.str, i32 noundef %65)
%67 = call ptr @gets(ptr noundef %13)
%68 = icmp ne ptr %67, null
br i1 %68, label %16, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %64
br label %69
69: ; preds = %._crit_edge6, %2
ret i32 0
}
declare i32 @fflush(i32 noundef) #1
declare ptr @gets(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpj7i_d9ee.c'
source_filename = "/tmp/tmpj7i_d9ee.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"p5600\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"mips\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @get_libname() #0 {
%1 = call i32 (...) @detect()
%2 = icmp eq i32 %1, 1
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = call i32 @printf(ptr noundef @.str)
br label %7
5: ; preds = %0
%6 = call i32 @printf(ptr noundef @.str.1)
br label %7
7: ; preds = %5, %3
ret void
}
declare i32 @detect(...) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj7i_d9ee.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"p5600\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"mips\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @get_libname() #0 {
%1 = call i32 (...) @detect()
%2 = icmp eq i32 %1, 1
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = call i32 @printf(ptr noundef @.str)
br label %7
5: ; preds = %0
%6 = call i32 @printf(ptr noundef @.str.1)
br label %7
7: ; preds = %5, %3
ret void
}
declare i32 @detect(...) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpw1u8o8ri.c'
source_filename = "/tmp/tmpw1u8o8ri.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_4__ = type { i64, ptr }
@PATH_MAX = dso_local global i64 0, align 8
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"cosm_lookup: cwd NULL, abort.\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"/\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"[._][Cc]osm\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"%s/%s/%s\00", align 1
@GLOB_PERIOD = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @cosm_lookup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca %struct.TYPE_4__, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
store ptr %0, ptr %2, align 8
%12 = load i64, ptr @PATH_MAX, align 8
store i64 %12, ptr %3, align 8
%13 = load i64, ptr %3, align 8
%14 = mul i64 1, %13
%15 = trunc i64 %14 to i32
%16 = call ptr @malloc(i32 noundef %15)
store ptr %16, ptr %4, align 8
%17 = load i64, ptr %3, align 8
%18 = mul i64 1, %17
%19 = trunc i64 %18 to i32
%20 = call ptr @malloc(i32 noundef %19)
store ptr %20, ptr %5, align 8
store ptr null, ptr %10, align 8
store i64 0, ptr %11, align 8
%21 = load ptr, ptr %4, align 8
%22 = load i64, ptr %3, align 8
%23 = call ptr @getcwd(ptr noundef %21, i64 noundef %22)
%24 = icmp eq ptr %23, null
br i1 %24, label %25, label %29
25: ; preds = %1
%26 = load i32, ptr @stderr, align 4
%27 = call i32 @fprintf(i32 noundef %26, ptr noundef @.str)
%28 = call i32 @exit(i32 noundef -1) #3
unreachable
29: ; preds = %1
%30 = load ptr, ptr %4, align 8
store ptr %30, ptr %8, align 8
br label %31
31: ; preds = %80, %29
%32 = load ptr, ptr %8, align 8
%33 = call i64 @strncmp(ptr noundef %32, ptr noundef @.str.1, i32 noundef 2)
%34 = icmp ne i64 %33, 0
br i1 %34, label %35, label %84
35: ; preds = %31
%36 = load ptr, ptr %8, align 8
%37 = call i32 @strlen(ptr noundef %36)
%38 = call i32 @strlen(ptr noundef @.str.2)
%39 = add nsw i32 %37, %38
%40 = load ptr, ptr %2, align 8
%41 = call i32 @strlen(ptr noundef %40)
%42 = add nsw i32 %39, %41
%43 = add nsw i32 %42, 3
%44 = sext i32 %43 to i64
store i64 %44, ptr %6, align 8
%45 = load ptr, ptr %5, align 8
%46 = load i64, ptr %6, align 8
%47 = load ptr, ptr %8, align 8
%48 = load ptr, ptr %2, align 8
%49 = call i32 @snprintf(ptr noundef %45, i64 noundef %46, ptr noundef @.str.3, ptr noundef %47, ptr noundef @.str.2, ptr noundef %48)
%50 = load ptr, ptr %5, align 8
%51 = load i32, ptr @GLOB_PERIOD, align 4
%52 = call i32 @glob(ptr noundef %50, i32 noundef %51, ptr noundef null, ptr noundef %7)
%53 = getelementptr inbounds %struct.TYPE_4__, ptr %7, i32 0, i32 0
%54 = load i64, ptr %53, align 8
%55 = icmp ne i64 %54, 0
br i1 %55, label %56, label %61
56: ; preds = %35
%57 = getelementptr inbounds %struct.TYPE_4__, ptr %7, i32 0, i32 1
%58 = load ptr, ptr %57, align 8
%59 = getelementptr inbounds ptr, ptr %58, i64 0
%60 = load ptr, ptr %59, align 8
store ptr %60, ptr %9, align 8
br label %62
61: ; preds = %35
store ptr null, ptr %9, align 8
br label %62
62: ; preds = %61, %56
%63 = load ptr, ptr %9, align 8
%64 = icmp ne ptr %63, null
br i1 %64, label %65, label %80
65: ; preds = %62
%66 = load ptr, ptr %9, align 8
%67 = load i64, ptr @PATH_MAX, align 8
%68 = call i32 @strnlen(ptr noundef %66, i64 noundef %67)
%69 = add nsw i32 %68, 1
%70 = sext i32 %69 to i64
store i64 %70, ptr %11, align 8
%71 = load i64, ptr %11, align 8
%72 = mul i64 1, %71
%73 = trunc i64 %72 to i32
%74 = call ptr @malloc(i32 noundef %73)
store ptr %74, ptr %10, align 8
%75 = load ptr, ptr %10, align 8
%76 = load ptr, ptr %9, align 8
%77 = load i64, ptr %11, align 8
%78 = call i32 @strncpy(ptr noundef %75, ptr noundef %76, i64 noundef %77)
%79 = call i32 @globfree(ptr noundef %7)
br label %84
80: ; preds = %62
%81 = call i32 @globfree(ptr noundef %7)
%82 = load ptr, ptr %8, align 8
%83 = call ptr @dirname(ptr noundef %82)
store ptr %83, ptr %8, align 8
br label %31, !llvm.loop !6
84: ; preds = %65, %31
%85 = load ptr, ptr %4, align 8
%86 = call i32 @free(ptr noundef %85)
%87 = load ptr, ptr %5, align 8
%88 = call i32 @free(ptr noundef %87)
%89 = load ptr, ptr %10, align 8
ret ptr %89
}
declare ptr @malloc(i32 noundef) #1
declare ptr @getcwd(ptr noundef, i64 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @glob(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @strnlen(ptr noundef, i64 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @globfree(ptr noundef) #1
declare ptr @dirname(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpw1u8o8ri.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_4__ = type { i64, ptr }
@PATH_MAX = dso_local global i64 0, align 8
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"cosm_lookup: cwd NULL, abort.\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"/\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"[._][Cc]osm\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"%s/%s/%s\00", align 1
@GLOB_PERIOD = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @cosm_lookup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca %struct.TYPE_4__, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
store ptr %0, ptr %2, align 8
%12 = load i64, ptr @PATH_MAX, align 8
store i64 %12, ptr %3, align 8
%13 = load i64, ptr %3, align 8
%14 = mul i64 1, %13
%15 = trunc i64 %14 to i32
%16 = call ptr @malloc(i32 noundef %15)
store ptr %16, ptr %4, align 8
%17 = load i64, ptr %3, align 8
%18 = mul i64 1, %17
%19 = trunc i64 %18 to i32
%20 = call ptr @malloc(i32 noundef %19)
store ptr %20, ptr %5, align 8
store ptr null, ptr %10, align 8
store i64 0, ptr %11, align 8
%21 = load ptr, ptr %4, align 8
%22 = load i64, ptr %3, align 8
%23 = call ptr @getcwd(ptr noundef %21, i64 noundef %22)
%24 = icmp eq ptr %23, null
br i1 %24, label %25, label %29
25: ; preds = %1
%26 = load i32, ptr @stderr, align 4
%27 = call i32 @fprintf(i32 noundef %26, ptr noundef @.str)
%28 = call i32 @exit(i32 noundef -1) #3
unreachable
29: ; preds = %1
%30 = load ptr, ptr %4, align 8
store ptr %30, ptr %8, align 8
%31 = load ptr, ptr %8, align 8
%32 = call i64 @strncmp(ptr noundef %31, ptr noundef @.str.1, i32 noundef 2)
%33 = icmp ne i64 %32, 0
br i1 %33, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %29
br label %34
34: ; preds = %.lr.ph, %79
%35 = load ptr, ptr %8, align 8
%36 = call i32 @strlen(ptr noundef %35)
%37 = call i32 @strlen(ptr noundef @.str.2)
%38 = add nsw i32 %36, %37
%39 = load ptr, ptr %2, align 8
%40 = call i32 @strlen(ptr noundef %39)
%41 = add nsw i32 %38, %40
%42 = add nsw i32 %41, 3
%43 = sext i32 %42 to i64
store i64 %43, ptr %6, align 8
%44 = load ptr, ptr %5, align 8
%45 = load i64, ptr %6, align 8
%46 = load ptr, ptr %8, align 8
%47 = load ptr, ptr %2, align 8
%48 = call i32 @snprintf(ptr noundef %44, i64 noundef %45, ptr noundef @.str.3, ptr noundef %46, ptr noundef @.str.2, ptr noundef %47)
%49 = load ptr, ptr %5, align 8
%50 = load i32, ptr @GLOB_PERIOD, align 4
%51 = call i32 @glob(ptr noundef %49, i32 noundef %50, ptr noundef null, ptr noundef %7)
%52 = getelementptr inbounds %struct.TYPE_4__, ptr %7, i32 0, i32 0
%53 = load i64, ptr %52, align 8
%54 = icmp ne i64 %53, 0
br i1 %54, label %55, label %60
55: ; preds = %34
%56 = getelementptr inbounds %struct.TYPE_4__, ptr %7, i32 0, i32 1
%57 = load ptr, ptr %56, align 8
%58 = getelementptr inbounds ptr, ptr %57, i64 0
%59 = load ptr, ptr %58, align 8
store ptr %59, ptr %9, align 8
br label %61
60: ; preds = %34
store ptr null, ptr %9, align 8
br label %61
61: ; preds = %60, %55
%62 = load ptr, ptr %9, align 8
%63 = icmp ne ptr %62, null
br i1 %63, label %64, label %79
64: ; preds = %61
%65 = load ptr, ptr %9, align 8
%66 = load i64, ptr @PATH_MAX, align 8
%67 = call i32 @strnlen(ptr noundef %65, i64 noundef %66)
%68 = add nsw i32 %67, 1
%69 = sext i32 %68 to i64
store i64 %69, ptr %11, align 8
%70 = load i64, ptr %11, align 8
%71 = mul i64 1, %70
%72 = trunc i64 %71 to i32
%73 = call ptr @malloc(i32 noundef %72)
store ptr %73, ptr %10, align 8
%74 = load ptr, ptr %10, align 8
%75 = load ptr, ptr %9, align 8
%76 = load i64, ptr %11, align 8
%77 = call i32 @strncpy(ptr noundef %74, ptr noundef %75, i64 noundef %76)
%78 = call i32 @globfree(ptr noundef %7)
br label %86
79: ; preds = %61
%80 = call i32 @globfree(ptr noundef %7)
%81 = load ptr, ptr %8, align 8
%82 = call ptr @dirname(ptr noundef %81)
store ptr %82, ptr %8, align 8
%83 = load ptr, ptr %8, align 8
%84 = call i64 @strncmp(ptr noundef %83, ptr noundef @.str.1, i32 noundef 2)
%85 = icmp ne i64 %84, 0
br i1 %85, label %34, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %79
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %29
br label %86
86: ; preds = %.loopexit, %64
%87 = load ptr, ptr %4, align 8
%88 = call i32 @free(ptr noundef %87)
%89 = load ptr, ptr %5, align 8
%90 = call i32 @free(ptr noundef %89)
%91 = load ptr, ptr %10, align 8
ret ptr %91
}
declare ptr @malloc(i32 noundef) #1
declare ptr @getcwd(ptr noundef, i64 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @glob(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @strnlen(ptr noundef, i64 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @globfree(ptr noundef) #1
declare ptr @dirname(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpf5ags_b2.c'
source_filename = "/tmp/tmpf5ags_b2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf5ags_b2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2530jud4.c'
source_filename = "/tmp/tmp2530jud4.c"
target datalayout = "e-m:e-p270: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/tmp2530jud4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_g_len04.c'
source_filename = "/tmp/tmp_g_len04.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_iscntrl.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"iscntrl should be 0 for M\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_iscntrl_0x4d() #0 {
%1 = call i64 @iscntrl(i32 noundef 77)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 390, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @iscntrl(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_g_len04.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_iscntrl.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"iscntrl should be 0 for M\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_iscntrl_0x4d() #0 {
%1 = call i64 @iscntrl(i32 noundef 77)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 390, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @iscntrl(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpi710ktqq.c'
source_filename = "/tmp/tmpi710ktqq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Random_init() #0 {
%1 = call i64 @time(ptr noundef null)
%2 = trunc i64 %1 to i32
%3 = call i32 @srand(i32 noundef %2)
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i64 @time(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi710ktqq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Random_init() #0 {
%1 = call i64 @time(ptr noundef null)
%2 = trunc i64 %1 to i32
%3 = call i32 @srand(i32 noundef %2)
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i64 @time(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdd94h0uh.c'
source_filename = "/tmp/tmpdd94h0uh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"The bad result is %gf\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 double, align 8
%4 = alloca double, align 8
store i32 0, ptr %1, align 4
store i32 10, ptr %2, align 4
store double 3.141590e+00, ptr %3, align 8
%5 = load i32, ptr %2, align 4
%6 = load double, ptr %3, align 8
%7 = call double @testfunc(i32 noundef %5, double noundef %6)
store double %7, ptr %4, align 8
%8 = load double, ptr %4, align 8
%9 = call i32 @printf(ptr noundef @.str, double noundef %8)
ret i32 0
}
declare double @testfunc(i32 noundef, double 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdd94h0uh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"The bad result is %gf\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 double, align 8
%4 = alloca double, align 8
store i32 0, ptr %1, align 4
store i32 10, ptr %2, align 4
store double 3.141590e+00, ptr %3, align 8
%5 = load i32, ptr %2, align 4
%6 = load double, ptr %3, align 8
%7 = call double @testfunc(i32 noundef %5, double noundef %6)
store double %7, ptr %4, align 8
%8 = load double, ptr %4, align 8
%9 = call i32 @printf(ptr noundef @.str, double noundef %8)
ret i32 0
}
declare double @testfunc(i32 noundef, double 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"}
|
; ModuleID = '/tmp/tmpbyh_dbb8.c'
source_filename = "/tmp/tmpbyh_dbb8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.termios = type { ptr, i32, i32 }
@.str = private unnamed_addr constant [12 x i8] c"tcsetattr()\00", align 1
@ICANON = dso_local global i32 0, align 4
@ECHO = dso_local global i32 0, align 4
@VMIN = dso_local global i64 0, align 8
@VTIME = dso_local global i64 0, align 8
@TCSANOW = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [17 x i8] c"tcsetattr ICANON\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"read()\00", align 1
@TCSADRAIN = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [18 x i8] c"tcsetattr ~ICANON\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @getch() #0 {
%1 = alloca i8, align 1
%2 = alloca %struct.termios, align 8
store i8 0, ptr %1, align 1
call void @llvm.memset.p0.i64(ptr align 8 %2, i8 0, i64 16, i1 false)
%3 = call i64 @tcgetattr(i32 noundef 0, ptr noundef %2)
%4 = icmp slt i64 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = call i32 @perror(ptr noundef @.str)
br label %7
7: ; preds = %5, %0
%8 = load i32, ptr @ICANON, align 4
%9 = xor i32 %8, -1
%10 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 1
%11 = load i32, ptr %10, align 8
%12 = and i32 %11, %9
store i32 %12, ptr %10, align 8
%13 = load i32, ptr @ECHO, align 4
%14 = xor i32 %13, -1
%15 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 1
%16 = load i32, ptr %15, align 8
%17 = and i32 %16, %14
store i32 %17, ptr %15, align 8
%18 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 0
%19 = load ptr, ptr %18, align 8
%20 = load i64, ptr @VMIN, align 8
%21 = getelementptr inbounds i32, ptr %19, i64 %20
store i32 1, ptr %21, align 4
%22 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 0
%23 = load ptr, ptr %22, align 8
%24 = load i64, ptr @VTIME, align 8
%25 = getelementptr inbounds i32, ptr %23, i64 %24
store i32 0, ptr %25, align 4
%26 = load i32, ptr @TCSANOW, align 4
%27 = call i64 @tcsetattr(i32 noundef 0, i32 noundef %26, ptr noundef %2)
%28 = icmp slt i64 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %7
%30 = call i32 @perror(ptr noundef @.str.1)
br label %31
31: ; preds = %29, %7
%32 = call i64 @read(i32 noundef 0, ptr noundef %1, i32 noundef 1)
%33 = icmp slt i64 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = call i32 @perror(ptr noundef @.str.2)
br label %36
36: ; preds = %34, %31
%37 = load i32, ptr @ICANON, align 4
%38 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 1
%39 = load i32, ptr %38, align 8
%40 = or i32 %39, %37
store i32 %40, ptr %38, align 8
%41 = load i32, ptr @ECHO, align 4
%42 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 1
%43 = load i32, ptr %42, align 8
%44 = or i32 %43, %41
store i32 %44, ptr %42, align 8
%45 = load i32, ptr @TCSADRAIN, align 4
%46 = call i64 @tcsetattr(i32 noundef 0, i32 noundef %45, ptr noundef %2)
%47 = icmp slt i64 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %36
%49 = call i32 @perror(ptr noundef @.str.3)
br label %50
50: ; preds = %48, %36
%51 = load i8, ptr %1, align 1
ret i8 %51
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i64 @tcgetattr(i32 noundef, ptr noundef) #2
declare i32 @perror(ptr noundef) #2
declare i64 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #2
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbyh_dbb8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.termios = type { ptr, i32, i32 }
@.str = private unnamed_addr constant [12 x i8] c"tcsetattr()\00", align 1
@ICANON = dso_local global i32 0, align 4
@ECHO = dso_local global i32 0, align 4
@VMIN = dso_local global i64 0, align 8
@VTIME = dso_local global i64 0, align 8
@TCSANOW = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [17 x i8] c"tcsetattr ICANON\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"read()\00", align 1
@TCSADRAIN = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [18 x i8] c"tcsetattr ~ICANON\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @getch() #0 {
%1 = alloca i8, align 1
%2 = alloca %struct.termios, align 8
store i8 0, ptr %1, align 1
call void @llvm.memset.p0.i64(ptr align 8 %2, i8 0, i64 16, i1 false)
%3 = call i64 @tcgetattr(i32 noundef 0, ptr noundef %2)
%4 = icmp slt i64 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = call i32 @perror(ptr noundef @.str)
br label %7
7: ; preds = %5, %0
%8 = load i32, ptr @ICANON, align 4
%9 = xor i32 %8, -1
%10 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 1
%11 = load i32, ptr %10, align 8
%12 = and i32 %11, %9
store i32 %12, ptr %10, align 8
%13 = load i32, ptr @ECHO, align 4
%14 = xor i32 %13, -1
%15 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 1
%16 = load i32, ptr %15, align 8
%17 = and i32 %16, %14
store i32 %17, ptr %15, align 8
%18 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 0
%19 = load ptr, ptr %18, align 8
%20 = load i64, ptr @VMIN, align 8
%21 = getelementptr inbounds i32, ptr %19, i64 %20
store i32 1, ptr %21, align 4
%22 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 0
%23 = load ptr, ptr %22, align 8
%24 = load i64, ptr @VTIME, align 8
%25 = getelementptr inbounds i32, ptr %23, i64 %24
store i32 0, ptr %25, align 4
%26 = load i32, ptr @TCSANOW, align 4
%27 = call i64 @tcsetattr(i32 noundef 0, i32 noundef %26, ptr noundef %2)
%28 = icmp slt i64 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %7
%30 = call i32 @perror(ptr noundef @.str.1)
br label %31
31: ; preds = %29, %7
%32 = call i64 @read(i32 noundef 0, ptr noundef %1, i32 noundef 1)
%33 = icmp slt i64 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = call i32 @perror(ptr noundef @.str.2)
br label %36
36: ; preds = %34, %31
%37 = load i32, ptr @ICANON, align 4
%38 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 1
%39 = load i32, ptr %38, align 8
%40 = or i32 %39, %37
store i32 %40, ptr %38, align 8
%41 = load i32, ptr @ECHO, align 4
%42 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 1
%43 = load i32, ptr %42, align 8
%44 = or i32 %43, %41
store i32 %44, ptr %42, align 8
%45 = load i32, ptr @TCSADRAIN, align 4
%46 = call i64 @tcsetattr(i32 noundef 0, i32 noundef %45, ptr noundef %2)
%47 = icmp slt i64 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %36
%49 = call i32 @perror(ptr noundef @.str.3)
br label %50
50: ; preds = %48, %36
%51 = load i8, ptr %1, align 1
ret i8 %51
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i64 @tcgetattr(i32 noundef, ptr noundef) #2
declare i32 @perror(ptr noundef) #2
declare i64 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #2
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7g82c0pm.c'
source_filename = "/tmp/tmp7g82c0pm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"disconnect with clifd:%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @fun(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [1024 x i8], align 16
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = load i32, ptr %6, align 4
store i32 %7, ptr %3, align 4
br label %8
8: ; preds = %29, %1
%9 = load i32, ptr %3, align 4
%10 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%11 = call i32 @recv(i32 noundef %9, ptr noundef %10, i32 noundef 1024, i32 noundef 0)
store i32 %11, ptr %4, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %8
br label %30
15: ; preds = %8
%16 = load i32, ptr %4, align 4
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %23
18: ; preds = %15
%19 = load i32, ptr %3, align 4
%20 = call i32 @close(i32 noundef %19)
%21 = load i32, ptr %3, align 4
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %21)
br label %30
23: ; preds = %15
%24 = load i32, ptr %4, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 %25
store i8 0, ptr %26, align 1
%27 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %27)
br label %29
29: ; preds = %23
br label %8
30: ; preds = %18, %14
ret ptr null
}
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7g82c0pm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"disconnect with clifd:%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @fun(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [1024 x i8], align 16
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = load i32, ptr %6, align 4
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%10 = call i32 @recv(i32 noundef %8, ptr noundef %9, i32 noundef 1024, i32 noundef 0)
store i32 %10, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %.lr.ph
.lr.ph: ; preds = %1
br label %14
._crit_edge: ; preds = %28
br label %13
13: ; preds = %._crit_edge, %1
br label %33
14: ; preds = %.lr.ph, %28
%15 = load i32, ptr %4, align 4
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %22
17: ; preds = %14
%18 = load i32, ptr %3, align 4
%19 = call i32 @close(i32 noundef %18)
%20 = load i32, ptr %3, align 4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %20)
br label %33
22: ; preds = %14
%23 = load i32, ptr %4, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 %24
store i8 0, ptr %25, align 1
%26 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %26)
br label %28
28: ; preds = %22
%29 = load i32, ptr %3, align 4
%30 = call i32 @recv(i32 noundef %29, ptr noundef %9, i32 noundef 1024, i32 noundef 0)
store i32 %30, ptr %4, align 4
%31 = load i32, ptr %4, align 4
%32 = icmp slt i32 %31, 0
br i1 %32, label %._crit_edge, label %14
33: ; preds = %17, %13
ret ptr null
}
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg_ktltoq.c'
source_filename = "/tmp/tmpg_ktltoq.c"
target datalayout = "e-m:e-p270: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.addrinfo = type { i32, i32, i32, i32, i32 }
@AF_UNSPEC = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"43\00", align 1
@.str.1 = private unnamed_addr constant [45 x i8] c"connect failed when trying to do whois query\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%s\0D\0A\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"send failed\00", align 1
@.str.4 = private unnamed_addr constant [15 x i8] c"realloc failed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @whois_query(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 [100 x i8], align 16
%9 = alloca [1500 x i8], align 16
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca %struct.addrinfo, align 4
%15 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 0, ptr %11, align 4
%16 = call i32 @memset(ptr noundef %14, i32 noundef 0, i32 noundef 20)
%17 = load i32, ptr @AF_UNSPEC, align 4
%18 = getelementptr inbounds %struct.addrinfo, ptr %14, i32 0, i32 4
store i32 %17, ptr %18, align 4
%19 = load i32, ptr @SOCK_STREAM, align 4
%20 = getelementptr inbounds %struct.addrinfo, ptr %14, i32 0, i32 3
store i32 %19, ptr %20, align 4
%21 = load ptr, ptr %5, align 8
%22 = call i32 @getaddrinfo(ptr noundef %21, ptr noundef @.str, ptr noundef %14, ptr noundef %15)
store i32 %22, ptr %12, align 4
%23 = load i32, ptr %12, align 4
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %3
%26 = load i32, ptr %12, align 4
store i32 %26, ptr %4, align 4
br label %106
27: ; preds = %3
%28 = load ptr, ptr %15, align 8
%29 = getelementptr inbounds %struct.addrinfo, ptr %28, i32 0, i32 4
%30 = load i32, ptr %29, align 4
%31 = load ptr, ptr %15, align 8
%32 = getelementptr inbounds %struct.addrinfo, ptr %31, i32 0, i32 3
%33 = load i32, ptr %32, align 4
%34 = load ptr, ptr %15, align 8
%35 = getelementptr inbounds %struct.addrinfo, ptr %34, i32 0, i32 2
%36 = load i32, ptr %35, align 4
%37 = call i32 @socket(i32 noundef %30, i32 noundef %33, i32 noundef %36)
store i32 %37, ptr %13, align 4
%38 = load i32, ptr %13, align 4
%39 = load ptr, ptr %15, align 8
%40 = getelementptr inbounds %struct.addrinfo, ptr %39, i32 0, i32 1
%41 = load i32, ptr %40, align 4
%42 = load ptr, ptr %15, align 8
%43 = getelementptr inbounds %struct.addrinfo, ptr %42, i32 0, i32 0
%44 = load i32, ptr %43, align 4
%45 = call i64 @connect(i32 noundef %38, i32 noundef %41, i32 noundef %44)
%46 = icmp slt i64 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %27
%48 = call i32 @perror(ptr noundef @.str.1)
br label %49
49: ; preds = %47, %27
%50 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
%51 = load ptr, ptr %6, align 8
%52 = call i32 @sprintf(ptr noundef %50, ptr noundef @.str.2, ptr noundef %51)
%53 = load i32, ptr %13, align 4
%54 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
%55 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
%56 = call i32 @strlen(ptr noundef %55)
%57 = call i64 @send(i32 noundef %53, ptr noundef %54, i32 noundef %56, i32 noundef 0)
%58 = icmp slt i64 %57, 0
br i1 %58, label %59, label %61
59: ; preds = %49
%60 = call i32 @perror(ptr noundef @.str.3)
br label %61
61: ; preds = %59, %49
br label %62
62: ; preds = %80, %61
%63 = load i32, ptr %13, align 4
%64 = getelementptr inbounds [1500 x i8], ptr %9, i64 0, i64 0
%65 = call i32 @recv(i32 noundef %63, ptr noundef %64, i32 noundef 1500, i32 noundef 0)
store i32 %65, ptr %10, align 4
%66 = icmp ne i32 %65, 0
br i1 %66, label %67, label %92
67: ; preds = %62
%68 = load ptr, ptr %7, align 8
%69 = load ptr, ptr %68, align 8
%70 = load i32, ptr %10, align 4
%71 = load i32, ptr %11, align 4
%72 = add nsw i32 %70, %71
%73 = call ptr @realloc(ptr noundef %69, i32 noundef %72)
%74 = load ptr, ptr %7, align 8
store ptr %73, ptr %74, align 8
%75 = load ptr, ptr %7, align 8
%76 = load ptr, ptr %75, align 8
%77 = icmp eq ptr %76, null
br i1 %77, label %78, label %80
78: ; preds = %67
%79 = call i32 @printf(ptr noundef @.str.4)
br label %80
80: ; preds = %78, %67
%81 = load ptr, ptr %7, align 8
%82 = load ptr, ptr %81, align 8
%83 = load i32, ptr %11, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i8, ptr %82, i64 %84
%86 = getelementptr inbounds [1500 x i8], ptr %9, i64 0, i64 0
%87 = load i32, ptr %10, align 4
%88 = call i32 @memcpy(ptr noundef %85, ptr noundef %86, i32 noundef %87)
%89 = load i32, ptr %10, align 4
%90 = load i32, ptr %11, align 4
%91 = add nsw i32 %90, %89
store i32 %91, ptr %11, align 4
br label %62, !llvm.loop !6
92: ; preds = %62
%93 = load ptr, ptr %7, align 8
%94 = load ptr, ptr %93, align 8
%95 = load i32, ptr %11, align 4
%96 = add nsw i32 %95, 1
%97 = call ptr @realloc(ptr noundef %94, i32 noundef %96)
%98 = load ptr, ptr %7, align 8
store ptr %97, ptr %98, align 8
%99 = load ptr, ptr %7, align 8
%100 = load ptr, ptr %99, align 8
%101 = load i32, ptr %11, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i8, ptr %100, i64 %102
store i8 0, ptr %103, align 1
%104 = load i32, ptr %13, align 4
%105 = call i32 @close(i32 noundef %104)
store i32 0, ptr %4, align 4
br label %106
106: ; preds = %92, %25
%107 = load i32, ptr %4, align 4
ret i32 %107
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @connect(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg_ktltoq.c"
target datalayout = "e-m:e-p270: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.addrinfo = type { i32, i32, i32, i32, i32 }
@AF_UNSPEC = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"43\00", align 1
@.str.1 = private unnamed_addr constant [45 x i8] c"connect failed when trying to do whois query\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%s\0D\0A\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"send failed\00", align 1
@.str.4 = private unnamed_addr constant [15 x i8] c"realloc failed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @whois_query(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 [100 x i8], align 16
%9 = alloca [1500 x i8], align 16
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca %struct.addrinfo, align 4
%15 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 0, ptr %11, align 4
%16 = call i32 @memset(ptr noundef %14, i32 noundef 0, i32 noundef 20)
%17 = load i32, ptr @AF_UNSPEC, align 4
%18 = getelementptr inbounds %struct.addrinfo, ptr %14, i32 0, i32 4
store i32 %17, ptr %18, align 4
%19 = load i32, ptr @SOCK_STREAM, align 4
%20 = getelementptr inbounds %struct.addrinfo, ptr %14, i32 0, i32 3
store i32 %19, ptr %20, align 4
%21 = load ptr, ptr %5, align 8
%22 = call i32 @getaddrinfo(ptr noundef %21, ptr noundef @.str, ptr noundef %14, ptr noundef %15)
store i32 %22, ptr %12, align 4
%23 = load i32, ptr %12, align 4
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %3
%26 = load i32, ptr %12, align 4
store i32 %26, ptr %4, align 4
br label %108
27: ; preds = %3
%28 = load ptr, ptr %15, align 8
%29 = getelementptr inbounds %struct.addrinfo, ptr %28, i32 0, i32 4
%30 = load i32, ptr %29, align 4
%31 = load ptr, ptr %15, align 8
%32 = getelementptr inbounds %struct.addrinfo, ptr %31, i32 0, i32 3
%33 = load i32, ptr %32, align 4
%34 = load ptr, ptr %15, align 8
%35 = getelementptr inbounds %struct.addrinfo, ptr %34, i32 0, i32 2
%36 = load i32, ptr %35, align 4
%37 = call i32 @socket(i32 noundef %30, i32 noundef %33, i32 noundef %36)
store i32 %37, ptr %13, align 4
%38 = load i32, ptr %13, align 4
%39 = load ptr, ptr %15, align 8
%40 = getelementptr inbounds %struct.addrinfo, ptr %39, i32 0, i32 1
%41 = load i32, ptr %40, align 4
%42 = load ptr, ptr %15, align 8
%43 = getelementptr inbounds %struct.addrinfo, ptr %42, i32 0, i32 0
%44 = load i32, ptr %43, align 4
%45 = call i64 @connect(i32 noundef %38, i32 noundef %41, i32 noundef %44)
%46 = icmp slt i64 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %27
%48 = call i32 @perror(ptr noundef @.str.1)
br label %49
49: ; preds = %47, %27
%50 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
%51 = load ptr, ptr %6, align 8
%52 = call i32 @sprintf(ptr noundef %50, ptr noundef @.str.2, ptr noundef %51)
%53 = load i32, ptr %13, align 4
%54 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
%55 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
%56 = call i32 @strlen(ptr noundef %55)
%57 = call i64 @send(i32 noundef %53, ptr noundef %54, i32 noundef %56, i32 noundef 0)
%58 = icmp slt i64 %57, 0
br i1 %58, label %59, label %61
59: ; preds = %49
%60 = call i32 @perror(ptr noundef @.str.3)
br label %61
61: ; preds = %59, %49
%62 = load i32, ptr %13, align 4
%63 = getelementptr inbounds [1500 x i8], ptr %9, i64 0, i64 0
%64 = call i32 @recv(i32 noundef %62, ptr noundef %63, i32 noundef 1500, i32 noundef 0)
store i32 %64, ptr %10, align 4
%65 = icmp ne i32 %64, 0
br i1 %65, label %.lr.ph, label %94
.lr.ph: ; preds = %61
br label %66
66: ; preds = %.lr.ph, %79
%67 = load ptr, ptr %7, align 8
%68 = load ptr, ptr %67, align 8
%69 = load i32, ptr %10, align 4
%70 = load i32, ptr %11, align 4
%71 = add nsw i32 %69, %70
%72 = call ptr @realloc(ptr noundef %68, i32 noundef %71)
%73 = load ptr, ptr %7, align 8
store ptr %72, ptr %73, align 8
%74 = load ptr, ptr %7, align 8
%75 = load ptr, ptr %74, align 8
%76 = icmp eq ptr %75, null
br i1 %76, label %77, label %79
77: ; preds = %66
%78 = call i32 @printf(ptr noundef @.str.4)
br label %79
79: ; preds = %77, %66
%80 = load ptr, ptr %7, align 8
%81 = load ptr, ptr %80, align 8
%82 = load i32, ptr %11, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i8, ptr %81, i64 %83
%85 = getelementptr inbounds [1500 x i8], ptr %9, i64 0, i64 0
%86 = load i32, ptr %10, align 4
%87 = call i32 @memcpy(ptr noundef %84, ptr noundef %85, i32 noundef %86)
%88 = load i32, ptr %10, align 4
%89 = load i32, ptr %11, align 4
%90 = add nsw i32 %89, %88
store i32 %90, ptr %11, align 4
%91 = load i32, ptr %13, align 4
%92 = call i32 @recv(i32 noundef %91, ptr noundef %63, i32 noundef 1500, i32 noundef 0)
store i32 %92, ptr %10, align 4
%93 = icmp ne i32 %92, 0
br i1 %93, label %66, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %79
br label %94
94: ; preds = %._crit_edge, %61
%95 = load ptr, ptr %7, align 8
%96 = load ptr, ptr %95, align 8
%97 = load i32, ptr %11, align 4
%98 = add nsw i32 %97, 1
%99 = call ptr @realloc(ptr noundef %96, i32 noundef %98)
%100 = load ptr, ptr %7, align 8
store ptr %99, ptr %100, align 8
%101 = load ptr, ptr %7, align 8
%102 = load ptr, ptr %101, align 8
%103 = load i32, ptr %11, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds i8, ptr %102, i64 %104
store i8 0, ptr %105, align 1
%106 = load i32, ptr %13, align 4
%107 = call i32 @close(i32 noundef %106)
store i32 0, ptr %4, align 4
br label %108
108: ; preds = %94, %25
%109 = load i32, ptr %4, align 4
ret i32 %109
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @connect(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9fd_zrtu.c'
source_filename = "/tmp/tmp9fd_zrtu.c"
target datalayout = "e-m:e-p270: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.in_addr = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @inet_aton(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %7, align 4
%10 = load ptr, ptr %4, align 8
store ptr %10, ptr %8, align 8
store i32 24, ptr %6, align 4
br label %11
11: ; preds = %47, %2
%12 = load ptr, ptr %8, align 8
%13 = call i64 @strtoul(ptr noundef %12, ptr noundef %8, i32 noundef 0)
store i64 %13, ptr %9, align 8
%14 = load ptr, ptr %8, align 8
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %24
18: ; preds = %11
%19 = load i64, ptr %9, align 8
%20 = load i32, ptr %7, align 4
%21 = zext i32 %20 to i64
%22 = or i64 %21, %19
%23 = trunc i64 %22 to i32
store i32 %23, ptr %7, align 4
br label %52
24: ; preds = %11
%25 = load ptr, ptr %8, align 8
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 46
br i1 %28, label %29, label %50
29: ; preds = %24
%30 = load i64, ptr %9, align 8
%31 = icmp sgt i64 %30, 255
br i1 %31, label %32, label %33
32: ; preds = %29
store i32 0, ptr %3, align 4
br label %57
33: ; preds = %29
%34 = load i64, ptr %9, align 8
%35 = load i32, ptr %6, align 4
%36 = zext i32 %35 to i64
%37 = shl i64 %34, %36
%38 = load i32, ptr %7, align 4
%39 = zext i32 %38 to i64
%40 = or i64 %39, %37
%41 = trunc i64 %40 to i32
store i32 %41, ptr %7, align 4
%42 = load i32, ptr %6, align 4
%43 = icmp sgt i32 %42, 0
br i1 %43, label %44, label %47
44: ; preds = %33
%45 = load i32, ptr %6, align 4
%46 = sub nsw i32 %45, 8
store i32 %46, ptr %6, align 4
br label %47
47: ; preds = %44, %33
%48 = load ptr, ptr %8, align 8
%49 = getelementptr inbounds i8, ptr %48, i32 1
store ptr %49, ptr %8, align 8
br label %11
50: ; preds = %24
br label %51
51: ; preds = %50
store i32 0, ptr %3, align 4
br label %57
52: ; preds = %18
%53 = load i32, ptr %7, align 4
%54 = call i32 @htonl(i32 noundef %53)
%55 = load ptr, ptr %5, align 8
%56 = getelementptr inbounds %struct.in_addr, ptr %55, i32 0, i32 0
store i32 %54, ptr %56, align 4
store i32 1, ptr %3, align 4
br label %57
57: ; preds = %52, %51, %32
%58 = load i32, ptr %3, align 4
ret i32 %58
}
declare i64 @strtoul(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @htonl(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/tmp9fd_zrtu.c"
target datalayout = "e-m:e-p270: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.in_addr = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @inet_aton(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %7, align 4
%10 = load ptr, ptr %4, align 8
store ptr %10, ptr %8, align 8
store i32 24, ptr %6, align 4
%11 = load ptr, ptr %8, align 8
%12 = call i64 @strtoul(ptr noundef %11, ptr noundef %8, i32 noundef 0)
store i64 %12, ptr %9, align 8
%13 = load ptr, ptr %8, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %.lr.ph
.lr.ph: ; preds = %2
br label %23
._crit_edge: ; preds = %46
br label %17
17: ; preds = %._crit_edge, %2
%18 = load i64, ptr %9, align 8
%19 = load i32, ptr %7, align 4
%20 = zext i32 %19 to i64
%21 = or i64 %20, %18
%22 = trunc i64 %21 to i32
store i32 %22, ptr %7, align 4
br label %57
23: ; preds = %.lr.ph, %46
%24 = load ptr, ptr %8, align 8
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 46
br i1 %27, label %28, label %55
28: ; preds = %23
%29 = load i64, ptr %9, align 8
%30 = icmp sgt i64 %29, 255
br i1 %30, label %31, label %32
31: ; preds = %28
store i32 0, ptr %3, align 4
br label %62
32: ; preds = %28
%33 = load i64, ptr %9, align 8
%34 = load i32, ptr %6, align 4
%35 = zext i32 %34 to i64
%36 = shl i64 %33, %35
%37 = load i32, ptr %7, align 4
%38 = zext i32 %37 to i64
%39 = or i64 %38, %36
%40 = trunc i64 %39 to i32
store i32 %40, ptr %7, align 4
%41 = load i32, ptr %6, align 4
%42 = icmp sgt i32 %41, 0
br i1 %42, label %43, label %46
43: ; preds = %32
%44 = load i32, ptr %6, align 4
%45 = sub nsw i32 %44, 8
store i32 %45, ptr %6, align 4
br label %46
46: ; preds = %43, %32
%47 = load ptr, ptr %8, align 8
%48 = getelementptr inbounds i8, ptr %47, i32 1
store ptr %48, ptr %8, align 8
%49 = load ptr, ptr %8, align 8
%50 = call i64 @strtoul(ptr noundef %49, ptr noundef %8, i32 noundef 0)
store i64 %50, ptr %9, align 8
%51 = load ptr, ptr %8, align 8
%52 = load i8, ptr %51, align 1
%53 = sext i8 %52 to i32
%54 = icmp eq i32 %53, 0
br i1 %54, label %._crit_edge, label %23
55: ; preds = %23
br label %56
56: ; preds = %55
store i32 0, ptr %3, align 4
br label %62
57: ; preds = %17
%58 = load i32, ptr %7, align 4
%59 = call i32 @htonl(i32 noundef %58)
%60 = load ptr, ptr %5, align 8
%61 = getelementptr inbounds %struct.in_addr, ptr %60, i32 0, i32 0
store i32 %59, ptr %61, align 4
store i32 1, ptr %3, align 4
br label %62
62: ; preds = %57, %56, %31
%63 = load i32, ptr %3, align 4
ret i32 %63
}
declare i64 @strtoul(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @htonl(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/tmp6kpwvwt2.c'
source_filename = "/tmp/tmp6kpwvwt2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
@EAGAIN = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [7 x i8] c"select\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"write\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @fdwrite(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%11 = load ptr, ptr %5, align 8
store ptr %11, ptr %10, align 8
%12 = load i64, ptr %6, align 8
store i64 %12, ptr %7, align 8
br label %13
13: ; preds = %44, %41, %26, %3
%14 = load i64, ptr %7, align 8
%15 = icmp ugt i64 %14, 0
br i1 %15, label %16, label %51
16: ; preds = %13
%17 = load i32, ptr %4, align 4
%18 = load ptr, ptr %10, align 8
%19 = load i64, ptr %7, align 8
%20 = call i64 @write(i32 noundef %17, ptr noundef %18, i64 noundef %19)
store i64 %20, ptr %8, align 8
%21 = icmp ule i64 %20, 0
br i1 %21, label %22, label %44
22: ; preds = %16
%23 = load i64, ptr @errno, align 8
%24 = load i64, ptr @EINTR, align 8
%25 = icmp eq i64 %23, %24
br i1 %25, label %26, label %27
26: ; preds = %22
br label %13, !llvm.loop !6
27: ; preds = %22
%28 = load i64, ptr @errno, align 8
%29 = load i64, ptr @EAGAIN, align 8
%30 = icmp eq i64 %28, %29
br i1 %30, label %31, label %42
31: ; preds = %27
%32 = call i32 @FD_ZERO(ptr noundef %9)
%33 = load i32, ptr %4, align 4
%34 = call i32 @FD_SET(i32 noundef %33, ptr noundef %9)
%35 = load i32, ptr %4, align 4
%36 = add nsw i32 %35, 1
%37 = call i64 @select(i32 noundef %36, ptr noundef null, ptr noundef %9, ptr noundef null, ptr noundef null)
%38 = icmp slt i64 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %31
%40 = call i32 @perror(ptr noundef @.str)
store i64 -1, ptr %6, align 8
br label %51
41: ; preds = %31
br label %13, !llvm.loop !6
42: ; preds = %27
%43 = call i32 @perror(ptr noundef @.str.1)
store i64 -1, ptr %6, align 8
br label %51
44: ; preds = %16
%45 = load i64, ptr %8, align 8
%46 = load i64, ptr %7, align 8
%47 = sub i64 %46, %45
store i64 %47, ptr %7, align 8
%48 = load i64, ptr %8, align 8
%49 = load ptr, ptr %10, align 8
%50 = getelementptr inbounds i8, ptr %49, i64 %48
store ptr %50, ptr %10, align 8
br label %13, !llvm.loop !6
51: ; preds = %42, %39, %13
%52 = load i64, ptr %6, align 8
ret i64 %52
}
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
declare i64 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6kpwvwt2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
@EAGAIN = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [7 x i8] c"select\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"write\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @fdwrite(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%11 = load ptr, ptr %5, align 8
store ptr %11, ptr %10, align 8
%12 = load i64, ptr %6, align 8
store i64 %12, ptr %7, align 8
%13 = load i64, ptr %7, align 8
%14 = icmp ugt i64 %13, 0
br i1 %14, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %3
br label %15
15: ; preds = %.lr.ph, %.backedge
%16 = load i32, ptr %4, align 4
%17 = load ptr, ptr %10, align 8
%18 = load i64, ptr %7, align 8
%19 = call i64 @write(i32 noundef %16, ptr noundef %17, i64 noundef %18)
store i64 %19, ptr %8, align 8
%20 = icmp ule i64 %19, 0
br i1 %20, label %21, label %45
21: ; preds = %15
%22 = load i64, ptr @errno, align 8
%23 = load i64, ptr @EINTR, align 8
%24 = icmp eq i64 %22, %23
br i1 %24, label %25, label %28
25: ; preds = %21
br label %.backedge
.backedge: ; preds = %25, %42, %45
%26 = load i64, ptr %7, align 8
%27 = icmp ugt i64 %26, 0
br i1 %27, label %15, label %..loopexit_crit_edge, !llvm.loop !6
28: ; preds = %21
%29 = load i64, ptr @errno, align 8
%30 = load i64, ptr @EAGAIN, align 8
%31 = icmp eq i64 %29, %30
br i1 %31, label %32, label %43
32: ; preds = %28
%33 = call i32 @FD_ZERO(ptr noundef %9)
%34 = load i32, ptr %4, align 4
%35 = call i32 @FD_SET(i32 noundef %34, ptr noundef %9)
%36 = load i32, ptr %4, align 4
%37 = add nsw i32 %36, 1
%38 = call i64 @select(i32 noundef %37, ptr noundef null, ptr noundef %9, ptr noundef null, ptr noundef null)
%39 = icmp slt i64 %38, 0
br i1 %39, label %40, label %42
40: ; preds = %32
%41 = call i32 @perror(ptr noundef @.str)
store i64 -1, ptr %6, align 8
br label %52
42: ; preds = %32
br label %.backedge
43: ; preds = %28
%44 = call i32 @perror(ptr noundef @.str.1)
store i64 -1, ptr %6, align 8
br label %52
45: ; preds = %15
%46 = load i64, ptr %8, align 8
%47 = load i64, ptr %7, align 8
%48 = sub i64 %47, %46
store i64 %48, ptr %7, align 8
%49 = load i64, ptr %8, align 8
%50 = load ptr, ptr %10, align 8
%51 = getelementptr inbounds i8, ptr %50, i64 %49
store ptr %51, ptr %10, align 8
br label %.backedge
..loopexit_crit_edge: ; preds = %.backedge
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %3
br label %52
52: ; preds = %.loopexit, %43, %40
%53 = load i64, ptr %6, align 8
ret i64 %53
}
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
declare i64 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmps3qo7lkw.c'
source_filename = "/tmp/tmps3qo7lkw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps3qo7lkw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp3791e90.c'
source_filename = "/tmp/tmpp3791e90.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s %s -c 1\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"ping\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [33 x i8] c"Failed to execute fping command\0A\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"1 received\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ping(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [1024 x i8], align 16
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr null, ptr %4, align 8
store i32 0, ptr %7, align 4
%8 = load ptr, ptr %3, align 8
%9 = call i32 @asprintf(ptr noundef %4, ptr noundef @.str, ptr noundef @.str.1, ptr noundef %8)
%10 = load ptr, ptr %4, align 8
%11 = call ptr @popen(ptr noundef %10, ptr noundef @.str.2)
store ptr %11, ptr %6, align 8
%12 = load ptr, ptr %6, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %19
14: ; preds = %1
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str.3)
%17 = load ptr, ptr %4, align 8
%18 = call i32 @free(ptr noundef %17)
store i32 -1, ptr %2, align 4
br label %38
19: ; preds = %1
br label %20
20: ; preds = %32, %19
%21 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%22 = load ptr, ptr %6, align 8
%23 = call i64 @fread(ptr noundef %21, i32 noundef 1, i32 noundef 1024, ptr noundef %22)
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %33
25: ; preds = %20
%26 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%27 = call i64 @strstr(ptr noundef %26, ptr noundef @.str.4)
%28 = icmp ne i64 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %25
%30 = load ptr, ptr %4, align 8
%31 = call i32 @free(ptr noundef %30)
store i32 0, ptr %2, align 4
br label %38
32: ; preds = %25
br label %20, !llvm.loop !6
33: ; preds = %20
%34 = load ptr, ptr %6, align 8
%35 = call i32 @pclose(ptr noundef %34)
store i32 %35, ptr %7, align 4
%36 = load ptr, ptr %4, align 8
%37 = call i32 @free(ptr noundef %36)
store i32 1, ptr %2, align 4
br label %38
38: ; preds = %33, %29, %14
%39 = load i32, ptr %2, align 4
ret i32 %39
}
declare i32 @asprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @popen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i64 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @strstr(ptr noundef, ptr noundef) #1
declare i32 @pclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpp3791e90.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s %s -c 1\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"ping\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [33 x i8] c"Failed to execute fping command\0A\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"1 received\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ping(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [1024 x i8], align 16
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr null, ptr %4, align 8
store i32 0, ptr %7, align 4
%8 = load ptr, ptr %3, align 8
%9 = call i32 @asprintf(ptr noundef %4, ptr noundef @.str, ptr noundef @.str.1, ptr noundef %8)
%10 = load ptr, ptr %4, align 8
%11 = call ptr @popen(ptr noundef %10, ptr noundef @.str.2)
store ptr %11, ptr %6, align 8
%12 = load ptr, ptr %6, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %19
14: ; preds = %1
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str.3)
%17 = load ptr, ptr %4, align 8
%18 = call i32 @free(ptr noundef %17)
store i32 -1, ptr %2, align 4
br label %40
19: ; preds = %1
%20 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%21 = load ptr, ptr %6, align 8
%22 = call i64 @fread(ptr noundef %20, i32 noundef 1, i32 noundef 1024, ptr noundef %21)
%23 = icmp ne i64 %22, 0
br i1 %23, label %.lr.ph, label %35
.lr.ph: ; preds = %19
br label %28
24: ; preds = %28
%25 = load ptr, ptr %6, align 8
%26 = call i64 @fread(ptr noundef %20, i32 noundef 1, i32 noundef 1024, ptr noundef %25)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %._crit_edge, !llvm.loop !6
28: ; preds = %.lr.ph, %24
%29 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%30 = call i64 @strstr(ptr noundef %29, ptr noundef @.str.4)
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %24
32: ; preds = %28
%33 = load ptr, ptr %4, align 8
%34 = call i32 @free(ptr noundef %33)
store i32 0, ptr %2, align 4
br label %40
._crit_edge: ; preds = %24
br label %35
35: ; preds = %._crit_edge, %19
%36 = load ptr, ptr %6, align 8
%37 = call i32 @pclose(ptr noundef %36)
store i32 %37, ptr %7, align 4
%38 = load ptr, ptr %4, align 8
%39 = call i32 @free(ptr noundef %38)
store i32 1, ptr %2, align 4
br label %40
40: ; preds = %35, %32, %14
%41 = load i32, ptr %2, align 4
ret i32 %41
}
declare i32 @asprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @popen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i64 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @strstr(ptr noundef, ptr noundef) #1
declare i32 @pclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp3m0b49_c.c'
source_filename = "/tmp/tmp3m0b49_c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getfloat(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 float, align 4
store ptr %0, ptr %3, align 8
br label %7
7: ; preds = %11, %1
%8 = call i32 (...) @getch()
store i32 %8, ptr %4, align 4
%9 = call i64 @isspace(i32 noundef %8)
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %7
br label %7, !llvm.loop !6
12: ; preds = %7
%13 = load i32, ptr %4, align 4
%14 = call i64 @isdigit(i32 noundef %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %32, label %16
16: ; preds = %12
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr @EOF, align 4
%19 = icmp ne i32 %17, %18
br i1 %19, label %20, label %32
20: ; preds = %16
%21 = load i32, ptr %4, align 4
%22 = icmp ne i32 %21, 43
br i1 %22, label %23, label %32
23: ; preds = %20
%24 = load i32, ptr %4, align 4
%25 = icmp ne i32 %24, 45
br i1 %25, label %26, label %32
26: ; preds = %23
%27 = load i32, ptr %4, align 4
%28 = icmp ne i32 %27, 46
br i1 %28, label %29, label %32
29: ; preds = %26
%30 = load i32, ptr %4, align 4
%31 = call i32 @ungetch(i32 noundef %30)
store i32 0, ptr %2, align 4
br label %104
32: ; preds = %26, %23, %20, %16, %12
%33 = load i32, ptr %4, align 4
%34 = icmp eq i32 %33, 45
%35 = zext i1 %34 to i64
%36 = select i1 %34, i32 -1, i32 1
store i32 %36, ptr %5, align 4
%37 = load i32, ptr %4, align 4
%38 = icmp eq i32 %37, 43
br i1 %38, label %42, label %39
39: ; preds = %32
%40 = load i32, ptr %4, align 4
%41 = icmp eq i32 %40, 45
br i1 %41, label %42, label %44
42: ; preds = %39, %32
%43 = call i32 (...) @getch()
store i32 %43, ptr %4, align 4
br label %44
44: ; preds = %42, %39
%45 = load ptr, ptr %3, align 8
store float 0.000000e+00, ptr %45, align 4
br label %46
46: ; preds = %60, %44
%47 = load i32, ptr %4, align 4
%48 = call i64 @isdigit(i32 noundef %47)
%49 = icmp ne i64 %48, 0
br i1 %49, label %50, label %62
50: ; preds = %46
%51 = load ptr, ptr %3, align 8
%52 = load float, ptr %51, align 4
%53 = fpext float %52 to double
%54 = load i32, ptr %4, align 4
%55 = sub nsw i32 %54, 48
%56 = sitofp i32 %55 to double
%57 = call double @llvm.fmuladd.f64(double 1.000000e+01, double %53, double %56)
%58 = fptrunc double %57 to float
%59 = load ptr, ptr %3, align 8
store float %58, ptr %59, align 4
br label %60
60: ; preds = %50
%61 = call i32 (...) @getch()
store i32 %61, ptr %4, align 4
br label %46, !llvm.loop !8
62: ; preds = %46
%63 = load i32, ptr %4, align 4
%64 = icmp eq i32 %63, 46
br i1 %64, label %65, label %67
65: ; preds = %62
%66 = call i32 (...) @getch()
store i32 %66, ptr %4, align 4
br label %67
67: ; preds = %65, %62
store float 1.000000e+00, ptr %6, align 4
br label %68
68: ; preds = %86, %67
%69 = load i32, ptr %4, align 4
%70 = call i64 @isdigit(i32 noundef %69)
%71 = icmp ne i64 %70, 0
br i1 %71, label %72, label %88
72: ; preds = %68
%73 = load ptr, ptr %3, align 8
%74 = load float, ptr %73, align 4
%75 = fpext float %74 to double
%76 = load i32, ptr %4, align 4
%77 = sub nsw i32 %76, 48
%78 = sitofp i32 %77 to double
%79 = call double @llvm.fmuladd.f64(double 1.000000e+01, double %75, double %78)
%80 = fptrunc double %79 to float
%81 = load ptr, ptr %3, align 8
store float %80, ptr %81, align 4
%82 = load float, ptr %6, align 4
%83 = fpext float %82 to double
%84 = fmul double %83, 1.000000e+01
%85 = fptrunc double %84 to float
store float %85, ptr %6, align 4
br label %86
86: ; preds = %72
%87 = call i32 (...) @getch()
store i32 %87, ptr %4, align 4
br label %68, !llvm.loop !9
88: ; preds = %68
%89 = load i32, ptr %5, align 4
%90 = sitofp i32 %89 to float
%91 = load float, ptr %6, align 4
%92 = fdiv float %90, %91
%93 = load ptr, ptr %3, align 8
%94 = load float, ptr %93, align 4
%95 = fmul float %94, %92
store float %95, ptr %93, align 4
%96 = load i32, ptr %4, align 4
%97 = load i32, ptr @EOF, align 4
%98 = icmp ne i32 %96, %97
br i1 %98, label %99, label %102
99: ; preds = %88
%100 = load i32, ptr %4, align 4
%101 = call i32 @ungetch(i32 noundef %100)
br label %102
102: ; preds = %99, %88
%103 = load i32, ptr %4, align 4
store i32 %103, ptr %2, align 4
br label %104
104: ; preds = %102, %29
%105 = load i32, ptr %2, align 4
ret i32 %105
}
declare i64 @isspace(i32 noundef) #1
declare i32 @getch(...) #1
declare i64 @isdigit(i32 noundef) #1
declare i32 @ungetch(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3m0b49_c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getfloat(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 float, align 4
store ptr %0, ptr %3, align 8
br label %7
7: ; preds = %7, %1
%8 = call i32 (...) @getch()
store i32 %8, ptr %4, align 4
%9 = call i64 @isspace(i32 noundef %8)
%10 = icmp ne i64 %9, 0
br i1 %10, label %7, label %11, !llvm.loop !6
11: ; preds = %7
%12 = load i32, ptr %4, align 4
%13 = call i64 @isdigit(i32 noundef %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %31, label %15
15: ; preds = %11
%16 = load i32, ptr %4, align 4
%17 = load i32, ptr @EOF, align 4
%18 = icmp ne i32 %16, %17
br i1 %18, label %19, label %31
19: ; preds = %15
%20 = load i32, ptr %4, align 4
%21 = icmp ne i32 %20, 43
br i1 %21, label %22, label %31
22: ; preds = %19
%23 = load i32, ptr %4, align 4
%24 = icmp ne i32 %23, 45
br i1 %24, label %25, label %31
25: ; preds = %22
%26 = load i32, ptr %4, align 4
%27 = icmp ne i32 %26, 46
br i1 %27, label %28, label %31
28: ; preds = %25
%29 = load i32, ptr %4, align 4
%30 = call i32 @ungetch(i32 noundef %29)
store i32 0, ptr %2, align 4
br label %107
31: ; preds = %25, %22, %19, %15, %11
%32 = load i32, ptr %4, align 4
%33 = icmp eq i32 %32, 45
%34 = zext i1 %33 to i64
%35 = select i1 %33, i32 -1, i32 1
store i32 %35, ptr %5, align 4
%36 = load i32, ptr %4, align 4
%37 = icmp eq i32 %36, 43
br i1 %37, label %41, label %38
38: ; preds = %31
%39 = load i32, ptr %4, align 4
%40 = icmp eq i32 %39, 45
br i1 %40, label %41, label %43
41: ; preds = %38, %31
%42 = call i32 (...) @getch()
store i32 %42, ptr %4, align 4
br label %43
43: ; preds = %41, %38
%44 = load ptr, ptr %3, align 8
store float 0.000000e+00, ptr %44, align 4
%45 = load i32, ptr %4, align 4
%46 = call i64 @isdigit(i32 noundef %45)
%47 = icmp ne i64 %46, 0
br i1 %47, label %.lr.ph, label %63
.lr.ph: ; preds = %43
br label %48
48: ; preds = %.lr.ph, %58
%49 = load ptr, ptr %3, align 8
%50 = load float, ptr %49, align 4
%51 = fpext float %50 to double
%52 = load i32, ptr %4, align 4
%53 = sub nsw i32 %52, 48
%54 = sitofp i32 %53 to double
%55 = call double @llvm.fmuladd.f64(double 1.000000e+01, double %51, double %54)
%56 = fptrunc double %55 to float
%57 = load ptr, ptr %3, align 8
store float %56, ptr %57, align 4
br label %58
58: ; preds = %48
%59 = call i32 (...) @getch()
store i32 %59, ptr %4, align 4
%60 = load i32, ptr %4, align 4
%61 = call i64 @isdigit(i32 noundef %60)
%62 = icmp ne i64 %61, 0
br i1 %62, label %48, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %58
br label %63
63: ; preds = %._crit_edge, %43
%64 = load i32, ptr %4, align 4
%65 = icmp eq i32 %64, 46
br i1 %65, label %66, label %68
66: ; preds = %63
%67 = call i32 (...) @getch()
store i32 %67, ptr %4, align 4
br label %68
68: ; preds = %66, %63
store float 1.000000e+00, ptr %6, align 4
%69 = load i32, ptr %4, align 4
%70 = call i64 @isdigit(i32 noundef %69)
%71 = icmp ne i64 %70, 0
br i1 %71, label %.lr.ph2, label %91
.lr.ph2: ; preds = %68
br label %72
72: ; preds = %.lr.ph2, %86
%73 = load ptr, ptr %3, align 8
%74 = load float, ptr %73, align 4
%75 = fpext float %74 to double
%76 = load i32, ptr %4, align 4
%77 = sub nsw i32 %76, 48
%78 = sitofp i32 %77 to double
%79 = call double @llvm.fmuladd.f64(double 1.000000e+01, double %75, double %78)
%80 = fptrunc double %79 to float
%81 = load ptr, ptr %3, align 8
store float %80, ptr %81, align 4
%82 = load float, ptr %6, align 4
%83 = fpext float %82 to double
%84 = fmul double %83, 1.000000e+01
%85 = fptrunc double %84 to float
store float %85, ptr %6, align 4
br label %86
86: ; preds = %72
%87 = call i32 (...) @getch()
store i32 %87, ptr %4, align 4
%88 = load i32, ptr %4, align 4
%89 = call i64 @isdigit(i32 noundef %88)
%90 = icmp ne i64 %89, 0
br i1 %90, label %72, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %86
br label %91
91: ; preds = %._crit_edge3, %68
%92 = load i32, ptr %5, align 4
%93 = sitofp i32 %92 to float
%94 = load float, ptr %6, align 4
%95 = fdiv float %93, %94
%96 = load ptr, ptr %3, align 8
%97 = load float, ptr %96, align 4
%98 = fmul float %97, %95
store float %98, ptr %96, align 4
%99 = load i32, ptr %4, align 4
%100 = load i32, ptr @EOF, align 4
%101 = icmp ne i32 %99, %100
br i1 %101, label %102, label %105
102: ; preds = %91
%103 = load i32, ptr %4, align 4
%104 = call i32 @ungetch(i32 noundef %103)
br label %105
105: ; preds = %102, %91
%106 = load i32, ptr %4, align 4
store i32 %106, ptr %2, align 4
br label %107
107: ; preds = %105, %28
%108 = load i32, ptr %2, align 4
ret i32 %108
}
declare i64 @isspace(i32 noundef) #1
declare i32 @getch(...) #1
declare i64 @isdigit(i32 noundef) #1
declare i32 @ungetch(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpobqvk7y7.c'
source_filename = "/tmp/tmpobqvk7y7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Radius: %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"Circumference: %f\0A\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"Area: %f\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 = load i32, ptr %2, align 4
%4 = sitofp i32 %3 to double
%5 = call i32 @printf(ptr noundef @.str, double noundef %4)
%6 = load i32, ptr %2, align 4
%7 = call double @circumf(i32 noundef %6)
%8 = call i32 @printf(ptr noundef @.str.1, double noundef %7)
%9 = load i32, ptr %2, align 4
%10 = call double @area(i32 noundef %9)
%11 = call i32 @printf(ptr noundef @.str.2, double noundef %10)
ret i32 0
}
declare i32 @printf(ptr noundef, double noundef) #1
declare double @circumf(i32 noundef) #1
declare double @area(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/tmpobqvk7y7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Radius: %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"Circumference: %f\0A\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"Area: %f\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 = load i32, ptr %2, align 4
%4 = sitofp i32 %3 to double
%5 = call i32 @printf(ptr noundef @.str, double noundef %4)
%6 = load i32, ptr %2, align 4
%7 = call double @circumf(i32 noundef %6)
%8 = call i32 @printf(ptr noundef @.str.1, double noundef %7)
%9 = load i32, ptr %2, align 4
%10 = call double @area(i32 noundef %9)
%11 = call i32 @printf(ptr noundef @.str.2, double noundef %10)
ret i32 0
}
declare i32 @printf(ptr noundef, double noundef) #1
declare double @circumf(i32 noundef) #1
declare double @area(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/tmppegf4k24.c'
source_filename = "/tmp/tmppegf4k24.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @reduce32(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 = and i32 %4, 8388607
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %2, align 4
%7 = ashr i32 %6, 23
store i32 %7, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = shl i32 %8, 13
%10 = load i32, ptr %2, align 4
%11 = sub nsw i32 %9, %10
%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
ret i32 %14
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppegf4k24.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @reduce32(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 = and i32 %4, 8388607
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %2, align 4
%7 = ashr i32 %6, 23
store i32 %7, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = shl i32 %8, 13
%10 = load i32, ptr %2, align 4
%11 = sub nsw i32 %9, %10
%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
ret i32 %14
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2mecxte_.c'
source_filename = "/tmp/tmp2mecxte_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i64, i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @get_1970_usec() #0 {
%1 = alloca %struct.timeval, align 8
call void @llvm.memset.p0.i64(ptr align 8 %1, i8 0, i64 24, i1 false)
%2 = call i32 @gettimeofday(ptr noundef %1, ptr noundef null)
%3 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 0
%4 = load i32, ptr %3, align 8
%5 = mul nsw i32 %4, 1000000
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 1
%8 = load i64, ptr %7, align 8
%9 = add nsw i64 %6, %8
ret i64 %9
}
; 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 @gettimeofday(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2mecxte_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i64, i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @get_1970_usec() #0 {
%1 = alloca %struct.timeval, align 8
call void @llvm.memset.p0.i64(ptr align 8 %1, i8 0, i64 24, i1 false)
%2 = call i32 @gettimeofday(ptr noundef %1, ptr noundef null)
%3 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 0
%4 = load i32, ptr %3, align 8
%5 = mul nsw i32 %4, 1000000
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 1
%8 = load i64, ptr %7, align 8
%9 = add nsw i64 %6, %8
ret i64 %9
}
; 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 @gettimeofday(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"}
|
; ModuleID = '/tmp/tmpt4v3a0bi.c'
source_filename = "/tmp/tmpt4v3a0bi.c"
target datalayout = "e-m:e-p270: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/tmpt4v3a0bi.c"
target datalayout = "e-m:e-p270: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/tmp27az5apv.c'
source_filename = "/tmp/tmp27az5apv.c"
target datalayout = "e-m:e-p270: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/tmp27az5apv.c"
target datalayout = "e-m:e-p270: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/tmpq67iajs4.c'
source_filename = "/tmp/tmpq67iajs4.c"
target datalayout = "e-m:e-p270: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/tmpq67iajs4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.