llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmp32eccua6.c'
source_filename = "/tmp/tmp32eccua6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @signal_sub_int(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %9, align 4
%11 = sext i32 %10 to i64
store i64 %11, ptr %7, align 8
%12 = load ptr, ptr %6, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %23
14: ; preds = %3
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %15, align 4
%17 = load i64, ptr %7, align 8
%18 = inttoptr i64 %17 to ptr
%19 = call i64 @signal(i32 noundef %16, ptr noundef %18)
store i64 %19, ptr %8, align 8
%20 = load i64, ptr %8, align 8
%21 = trunc i64 %20 to i32
%22 = load ptr, ptr %6, align 8
store i32 %21, ptr %22, align 4
br label %29
23: ; preds = %3
%24 = load ptr, ptr %4, align 8
%25 = load i32, ptr %24, align 4
%26 = load i64, ptr %7, align 8
%27 = inttoptr i64 %26 to ptr
%28 = call i64 @signal(i32 noundef %25, ptr noundef %27)
br label %29
29: ; preds = %23, %14
ret void
}
declare i64 @signal(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/tmp32eccua6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @signal_sub_int(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %9, align 4
%11 = sext i32 %10 to i64
store i64 %11, ptr %7, align 8
%12 = load ptr, ptr %6, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %23
14: ; preds = %3
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %15, align 4
%17 = load i64, ptr %7, align 8
%18 = inttoptr i64 %17 to ptr
%19 = call i64 @signal(i32 noundef %16, ptr noundef %18)
store i64 %19, ptr %8, align 8
%20 = load i64, ptr %8, align 8
%21 = trunc i64 %20 to i32
%22 = load ptr, ptr %6, align 8
store i32 %21, ptr %22, align 4
br label %29
23: ; preds = %3
%24 = load ptr, ptr %4, align 8
%25 = load i32, ptr %24, align 4
%26 = load i64, ptr %7, align 8
%27 = inttoptr i64 %26 to ptr
%28 = call i64 @signal(i32 noundef %25, ptr noundef %27)
br label %29
29: ; preds = %23, %14
ret void
}
declare i64 @signal(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/tmpk_zd1972.c'
source_filename = "/tmp/tmpk_zd1972.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strbld_array(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
%7 = load ptr, ptr %3, align 8
store ptr %7, ptr %5, align 8
store i32 0, ptr %6, align 4
br label %8
8: ; preds = %23, %2
%9 = load ptr, ptr %4, align 8
%10 = load i32, ptr %6, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds ptr, ptr %9, i64 %11
%13 = load ptr, ptr %12, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %26
15: ; preds = %8
%16 = load ptr, ptr %5, align 8
%17 = load ptr, ptr %4, 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 ptr @strbld(ptr noundef %16, ptr noundef %21)
store ptr %22, ptr %5, align 8
br label %23
23: ; preds = %15
%24 = load i32, ptr %6, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %6, align 4
br label %8, !llvm.loop !6
26: ; preds = %8
%27 = load ptr, ptr %5, align 8
ret ptr %27
}
declare ptr @strbld(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/tmpk_zd1972.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strbld_array(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
%7 = load ptr, ptr %3, align 8
store ptr %7, ptr %5, align 8
store i32 0, ptr %6, align 4
%8 = load ptr, ptr %4, align 8
%9 = load i32, ptr %6, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds ptr, ptr %8, i64 %10
%12 = load ptr, ptr %11, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %.lr.ph, label %31
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %22
%15 = load ptr, ptr %5, align 8
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %6, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds ptr, ptr %16, i64 %18
%20 = load ptr, ptr %19, align 8
%21 = call ptr @strbld(ptr noundef %15, ptr noundef %20)
store ptr %21, ptr %5, align 8
br label %22
22: ; preds = %14
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %6, align 4
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %6, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds ptr, ptr %25, i64 %27
%29 = load ptr, ptr %28, align 8
%30 = icmp ne ptr %29, null
br i1 %30, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %31
31: ; preds = %._crit_edge, %2
%32 = load ptr, ptr %5, align 8
ret ptr %32
}
declare ptr @strbld(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/tmpd4bulrsy.c'
source_filename = "/tmp/tmpd4bulrsy.c"
target datalayout = "e-m:e-p270: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/tmpd4bulrsy.c"
target datalayout = "e-m:e-p270: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/tmpaal6vwzw.c'
source_filename = "/tmp/tmpaal6vwzw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.text = private unnamed_addr constant [8 x i8] c"Testing\00", align 1
@.str = private unnamed_addr constant [9 x i8] c"test.txt\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"wb\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 [8 x i8], align 1
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.text, i64 8, i1 false)
%4 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %4, ptr %2, align 8
%5 = getelementptr inbounds [8 x i8], ptr %3, i64 0, i64 0
%6 = load ptr, ptr %2, align 8
%7 = call i32 @fwrite(ptr noundef %5, i32 noundef 8, i32 noundef 1, ptr noundef %6)
ret i32 1
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaal6vwzw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.text = private unnamed_addr constant [8 x i8] c"Testing\00", align 1
@.str = private unnamed_addr constant [9 x i8] c"test.txt\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"wb\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 [8 x i8], align 1
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.text, i64 8, i1 false)
%4 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %4, ptr %2, align 8
%5 = getelementptr inbounds [8 x i8], ptr %3, i64 0, i64 0
%6 = load ptr, ptr %2, align 8
%7 = call i32 @fwrite(ptr noundef %5, i32 noundef 8, i32 noundef 1, ptr noundef %6)
ret i32 1
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp43mffxwx.c'
source_filename = "/tmp/tmp43mffxwx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [157 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/camsci/meteor-pi/refs/heads/master/src/imageProjection/src/error.c\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"file read fail\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dcffread(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = load i64, ptr %7, align 8
%12 = load ptr, ptr %8, align 8
%13 = call i64 @fread(ptr noundef %9, i64 noundef %10, i64 noundef %11, ptr noundef %12)
%14 = load i64, ptr %7, align 8
%15 = icmp ne i64 %13, %14
br i1 %15, label %16, label %18
16: ; preds = %4
%17 = call i32 @gnom_fatal(ptr noundef @.str, i32 noundef 161, ptr noundef @.str.1)
br label %18
18: ; preds = %16, %4
ret void
}
declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1
declare i32 @gnom_fatal(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp43mffxwx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [157 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/camsci/meteor-pi/refs/heads/master/src/imageProjection/src/error.c\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"file read fail\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dcffread(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = load i64, ptr %7, align 8
%12 = load ptr, ptr %8, align 8
%13 = call i64 @fread(ptr noundef %9, i64 noundef %10, i64 noundef %11, ptr noundef %12)
%14 = load i64, ptr %7, align 8
%15 = icmp ne i64 %13, %14
br i1 %15, label %16, label %18
16: ; preds = %4
%17 = call i32 @gnom_fatal(ptr noundef @.str, i32 noundef 161, ptr noundef @.str.1)
br label %18
18: ; preds = %16, %4
ret void
}
declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1
declare i32 @gnom_fatal(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpix3z9okk.c'
source_filename = "/tmp/tmpix3z9okk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call ptr @malloc(i32 noundef 1024)
store ptr %7, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = call i32 @free(ptr noundef %8)
%10 = load ptr, ptr %6, align 8
%11 = call i32 @free(ptr noundef %10)
ret i32 0
}
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpix3z9okk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call ptr @malloc(i32 noundef 1024)
store ptr %7, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = call i32 @free(ptr noundef %8)
%10 = load ptr, ptr %6, align 8
%11 = call i32 @free(ptr noundef %10)
ret i32 0
}
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"}
|
; ModuleID = '/tmp/tmpmxa4q2md.c'
source_filename = "/tmp/tmpmxa4q2md.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@COLOR_RED = dso_local global i32 0, align 4
@COLOR_BLACK = dso_local global i32 0, align 4
@COLOR_BLUE = dso_local global i32 0, align 4
@COLOR_GREEN = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @inicializar_colores() #0 {
%1 = load i32, ptr @COLOR_RED, align 4
%2 = load i32, ptr @COLOR_BLACK, align 4
%3 = call i32 @init_pair(i32 noundef 1, i32 noundef %1, i32 noundef %2)
%4 = load i32, ptr @COLOR_BLACK, align 4
%5 = load i32, ptr @COLOR_RED, align 4
%6 = call i32 @init_pair(i32 noundef 2, i32 noundef %4, i32 noundef %5)
%7 = load i32, ptr @COLOR_BLUE, align 4
%8 = load i32, ptr @COLOR_BLACK, align 4
%9 = call i32 @init_pair(i32 noundef 3, i32 noundef %7, i32 noundef %8)
%10 = load i32, ptr @COLOR_GREEN, align 4
%11 = load i32, ptr @COLOR_BLACK, align 4
%12 = call i32 @init_pair(i32 noundef 4, i32 noundef %10, i32 noundef %11)
ret void
}
declare i32 @init_pair(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmxa4q2md.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@COLOR_RED = dso_local global i32 0, align 4
@COLOR_BLACK = dso_local global i32 0, align 4
@COLOR_BLUE = dso_local global i32 0, align 4
@COLOR_GREEN = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @inicializar_colores() #0 {
%1 = load i32, ptr @COLOR_RED, align 4
%2 = load i32, ptr @COLOR_BLACK, align 4
%3 = call i32 @init_pair(i32 noundef 1, i32 noundef %1, i32 noundef %2)
%4 = load i32, ptr @COLOR_BLACK, align 4
%5 = load i32, ptr @COLOR_RED, align 4
%6 = call i32 @init_pair(i32 noundef 2, i32 noundef %4, i32 noundef %5)
%7 = load i32, ptr @COLOR_BLUE, align 4
%8 = load i32, ptr @COLOR_BLACK, align 4
%9 = call i32 @init_pair(i32 noundef 3, i32 noundef %7, i32 noundef %8)
%10 = load i32, ptr @COLOR_GREEN, align 4
%11 = load i32, ptr @COLOR_BLACK, align 4
%12 = call i32 @init_pair(i32 noundef 4, i32 noundef %10, i32 noundef %11)
ret void
}
declare i32 @init_pair(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpajgiip67.c'
source_filename = "/tmp/tmpajgiip67.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Moto_AB1(i8 noundef signext %0, i8 noundef signext %1) #0 {
%3 = alloca i8, align 1
%4 = alloca i8, align 1
store i8 %0, ptr %3, align 1
store i8 %1, ptr %4, align 1
%5 = load i8, ptr %3, align 1
%6 = sext i8 %5 to i32
%7 = icmp sgt i32 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = call i32 @GPIO_SetIndex(i32 noundef 9, i32 noundef 1)
%10 = call i32 @GPIO_SetIndex(i32 noundef 11, i32 noundef 0)
br label %22
11: ; preds = %2
%12 = load i8, ptr %3, align 1
%13 = sext i8 %12 to i32
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %11
%16 = call i32 @GPIO_SetIndex(i32 noundef 9, i32 noundef 1)
%17 = call i32 @GPIO_SetIndex(i32 noundef 11, i32 noundef 1)
br label %21
18: ; preds = %11
%19 = call i32 @GPIO_SetIndex(i32 noundef 9, i32 noundef 0)
%20 = call i32 @GPIO_SetIndex(i32 noundef 11, i32 noundef 0)
br label %21
21: ; preds = %18, %15
br label %22
22: ; preds = %21, %8
%23 = load i8, ptr %4, align 1
%24 = sext i8 %23 to i32
%25 = icmp sgt i32 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %22
%27 = call i32 @GPIO_SetIndex(i32 noundef 8, i32 noundef 1)
%28 = call i32 @GPIO_SetIndex(i32 noundef 10, i32 noundef 1)
br label %40
29: ; preds = %22
%30 = load i8, ptr %4, align 1
%31 = sext i8 %30 to i32
%32 = icmp slt i32 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %29
%34 = call i32 @GPIO_SetIndex(i32 noundef 8, i32 noundef 1)
%35 = call i32 @GPIO_SetIndex(i32 noundef 10, i32 noundef 0)
br label %39
36: ; preds = %29
%37 = call i32 @GPIO_SetIndex(i32 noundef 8, i32 noundef 0)
%38 = call i32 @GPIO_SetIndex(i32 noundef 10, i32 noundef 1)
br label %39
39: ; preds = %36, %33
br label %40
40: ; preds = %39, %26
ret void
}
declare i32 @GPIO_SetIndex(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpajgiip67.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Moto_AB1(i8 noundef signext %0, i8 noundef signext %1) #0 {
%3 = alloca i8, align 1
%4 = alloca i8, align 1
store i8 %0, ptr %3, align 1
store i8 %1, ptr %4, align 1
%5 = load i8, ptr %3, align 1
%6 = sext i8 %5 to i32
%7 = icmp sgt i32 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = call i32 @GPIO_SetIndex(i32 noundef 9, i32 noundef 1)
%10 = call i32 @GPIO_SetIndex(i32 noundef 11, i32 noundef 0)
br label %22
11: ; preds = %2
%12 = load i8, ptr %3, align 1
%13 = sext i8 %12 to i32
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %11
%16 = call i32 @GPIO_SetIndex(i32 noundef 9, i32 noundef 1)
%17 = call i32 @GPIO_SetIndex(i32 noundef 11, i32 noundef 1)
br label %21
18: ; preds = %11
%19 = call i32 @GPIO_SetIndex(i32 noundef 9, i32 noundef 0)
%20 = call i32 @GPIO_SetIndex(i32 noundef 11, i32 noundef 0)
br label %21
21: ; preds = %18, %15
br label %22
22: ; preds = %21, %8
%23 = load i8, ptr %4, align 1
%24 = sext i8 %23 to i32
%25 = icmp sgt i32 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %22
%27 = call i32 @GPIO_SetIndex(i32 noundef 8, i32 noundef 1)
%28 = call i32 @GPIO_SetIndex(i32 noundef 10, i32 noundef 1)
br label %40
29: ; preds = %22
%30 = load i8, ptr %4, align 1
%31 = sext i8 %30 to i32
%32 = icmp slt i32 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %29
%34 = call i32 @GPIO_SetIndex(i32 noundef 8, i32 noundef 1)
%35 = call i32 @GPIO_SetIndex(i32 noundef 10, i32 noundef 0)
br label %39
36: ; preds = %29
%37 = call i32 @GPIO_SetIndex(i32 noundef 8, i32 noundef 0)
%38 = call i32 @GPIO_SetIndex(i32 noundef 10, i32 noundef 1)
br label %39
39: ; preds = %36, %33
br label %40
40: ; preds = %39, %26
ret void
}
declare i32 @GPIO_SetIndex(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpke4lrfyk.c'
source_filename = "/tmp/tmpke4lrfyk.c"
target datalayout = "e-m:e-p270: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 [40 x i8] c"Port number must be a positive integer\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @extract_port_number(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = getelementptr inbounds ptr, ptr %5, i64 1
%7 = load ptr, ptr %6, align 8
%8 = call i64 @strtol(ptr noundef %7, ptr noundef %4, i32 noundef 10)
%9 = trunc i64 %8 to i32
store i32 %9, ptr %3, align 4
%10 = load ptr, ptr %4, align 8
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %1
%15 = load i32, ptr %3, align 4
%16 = icmp sle i32 %15, 0
br i1 %16, label %17, label %22
17: ; preds = %14, %1
%18 = load i32, ptr @stderr, align 4
%19 = call i32 @fprintf(i32 noundef %18, ptr noundef @.str)
%20 = load i32, ptr @EXIT_FAILURE, align 4
%21 = call i32 @exit(i32 noundef %20) #3
unreachable
22: ; preds = %14
%23 = load i32, ptr %3, align 4
ret i32 %23
}
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpke4lrfyk.c"
target datalayout = "e-m:e-p270: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 [40 x i8] c"Port number must be a positive integer\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @extract_port_number(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = getelementptr inbounds ptr, ptr %5, i64 1
%7 = load ptr, ptr %6, align 8
%8 = call i64 @strtol(ptr noundef %7, ptr noundef %4, i32 noundef 10)
%9 = trunc i64 %8 to i32
store i32 %9, ptr %3, align 4
%10 = load ptr, ptr %4, align 8
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %1
%15 = load i32, ptr %3, align 4
%16 = icmp sle i32 %15, 0
br i1 %16, label %17, label %22
17: ; preds = %14, %1
%18 = load i32, ptr @stderr, align 4
%19 = call i32 @fprintf(i32 noundef %18, ptr noundef @.str)
%20 = load i32, ptr @EXIT_FAILURE, align 4
%21 = call i32 @exit(i32 noundef %20) #3
unreachable
22: ; preds = %14
%23 = load i32, ptr %3, align 4
ret i32 %23
}
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmh5c1uon.c'
source_filename = "/tmp/tmpmh5c1uon.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"%d deletion(s) between \00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"%s and %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printit(i32 noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca [30 x i8], align 16
store i32 %0, ptr %4, align 4
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%8 = load i32, ptr %4, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %8)
%10 = getelementptr inbounds [30 x i8], ptr %7, i64 0, i64 0
%11 = call ptr @ctime(ptr noundef %5)
%12 = call i32 @strncpy(ptr noundef %10, ptr noundef %11, i32 noundef 30)
%13 = getelementptr inbounds [30 x i8], ptr %7, i64 0, i64 24
store i8 0, ptr %13, align 8
%14 = getelementptr inbounds [30 x i8], ptr %7, i64 0, i64 0
%15 = call ptr @ctime(ptr noundef %6)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %14, ptr noundef %15)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @ctime(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmh5c1uon.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"%d deletion(s) between \00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"%s and %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printit(i32 noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca [30 x i8], align 16
store i32 %0, ptr %4, align 4
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%8 = load i32, ptr %4, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %8)
%10 = getelementptr inbounds [30 x i8], ptr %7, i64 0, i64 0
%11 = call ptr @ctime(ptr noundef %5)
%12 = call i32 @strncpy(ptr noundef %10, ptr noundef %11, i32 noundef 30)
%13 = getelementptr inbounds [30 x i8], ptr %7, i64 0, i64 24
store i8 0, ptr %13, align 8
%14 = getelementptr inbounds [30 x i8], ptr %7, i64 0, i64 0
%15 = call ptr @ctime(ptr noundef %6)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %14, ptr noundef %15)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @ctime(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1th1ktyq.c'
source_filename = "/tmp/tmp1th1ktyq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"ctrl-\\ pressed to quit\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @quitproc() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1th1ktyq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"ctrl-\\ pressed to quit\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @quitproc() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpj8gqjfz2.c'
source_filename = "/tmp/tmpj8gqjfz2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"Error opening file %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@EOF = dso_local global i8 0, align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_file(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i8, align 1
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call ptr @fopen(ptr noundef %6, ptr noundef @.str)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = load ptr, ptr %2, align 8
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %11)
br label %36
13: ; preds = %1
%14 = load ptr, ptr %2, align 8
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %14)
store i32 0, ptr %4, align 4
br label %16
16: ; preds = %28, %13
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %17, 30
br i1 %18, label %19, label %34
19: ; preds = %16
%20 = load ptr, ptr %3, align 8
%21 = call signext i8 @fgetc(ptr noundef %20)
store i8 %21, ptr %5, align 1
%22 = load i8, ptr %5, align 1
%23 = sext i8 %22 to i32
%24 = load i8, ptr @EOF, align 1
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %23, %25
br i1 %26, label %27, label %28
27: ; preds = %19
br label %34
28: ; preds = %19
%29 = load i8, ptr %5, align 1
%30 = sext i8 %29 to i32
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %30)
%32 = load i32, ptr %4, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %4, align 4
br label %16, !llvm.loop !6
34: ; preds = %27, %16
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %36
36: ; preds = %34, %10
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare signext i8 @fgetc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj8gqjfz2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"Error opening file %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@EOF = dso_local global i8 0, align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_file(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i8, align 1
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call ptr @fopen(ptr noundef %6, ptr noundef @.str)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = load ptr, ptr %2, align 8
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %11)
br label %37
13: ; preds = %1
%14 = load ptr, ptr %2, align 8
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %14)
store i32 0, ptr %4, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %16, 30
br i1 %17, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %13
br label %18
18: ; preds = %.lr.ph, %27
%19 = load ptr, ptr %3, align 8
%20 = call signext i8 @fgetc(ptr noundef %19)
store i8 %20, ptr %5, align 1
%21 = load i8, ptr %5, align 1
%22 = sext i8 %21 to i32
%23 = load i8, ptr @EOF, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %22, %24
br i1 %25, label %26, label %27
26: ; preds = %18
br label %35
27: ; preds = %18
%28 = load i8, ptr %5, align 1
%29 = sext i8 %28 to i32
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %29)
%31 = load i32, ptr %4, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %4, align 4
%33 = load i32, ptr %4, align 4
%34 = icmp slt i32 %33, 30
br i1 %34, label %18, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %27
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %13
br label %35
35: ; preds = %.loopexit, %26
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %37
37: ; preds = %35, %10
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare signext i8 @fgetc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp6gupm4rz.c'
source_filename = "/tmp/tmp6gupm4rz.c"
target datalayout = "e-m:e-p270: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 [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @die(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6gupm4rz.c"
target datalayout = "e-m:e-p270: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 [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @die(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3k99_jw2.c'
source_filename = "/tmp/tmp3k99_jw2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 i16 @checksum(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i64, align 8
%6 = alloca i16, align 2
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i64 0, ptr %5, align 8
store i16 0, ptr %6, align 2
%8 = load i32, ptr %4, align 4
store i32 %8, ptr %7, align 4
br label %9
9: ; preds = %12, %2
%10 = load i32, ptr %7, align 4
%11 = icmp sgt i32 %10, 0
br i1 %11, label %12, label %22
12: ; preds = %9
%13 = load ptr, ptr %3, align 8
%14 = load i16, ptr %13, align 2
%15 = zext i16 %14 to i64
%16 = load i64, ptr %5, align 8
%17 = add i64 %16, %15
store i64 %17, ptr %5, align 8
%18 = load ptr, ptr %3, align 8
%19 = getelementptr inbounds i16, ptr %18, i64 1
store ptr %19, ptr %3, align 8
%20 = load i32, ptr %7, align 4
%21 = sub nsw i32 %20, 2
store i32 %21, ptr %7, align 4
br label %9, !llvm.loop !6
22: ; preds = %9
%23 = load i64, ptr %5, align 8
%24 = lshr i64 %23, 16
%25 = load i64, ptr %5, align 8
%26 = call i64 @htonl(i32 noundef 65535)
%27 = and i64 %25, %26
%28 = add i64 %24, %27
store i64 %28, ptr %5, align 8
%29 = load i64, ptr %5, align 8
%30 = lshr i64 %29, 16
%31 = load i64, ptr %5, align 8
%32 = add i64 %31, %30
store i64 %32, ptr %5, align 8
%33 = load i64, ptr %5, align 8
%34 = xor i64 %33, -1
%35 = trunc i64 %34 to i16
ret i16 %35
}
declare i64 @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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3k99_jw2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 i16 @checksum(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i64, align 8
%6 = alloca i16, align 2
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i64 0, ptr %5, align 8
store i16 0, ptr %6, align 2
%8 = load i32, ptr %4, align 4
store i32 %8, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = icmp sgt i32 %9, 0
br i1 %10, label %.lr.ph, label %23
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %11
%12 = load ptr, ptr %3, align 8
%13 = load i16, ptr %12, align 2
%14 = zext i16 %13 to i64
%15 = load i64, ptr %5, align 8
%16 = add i64 %15, %14
store i64 %16, ptr %5, align 8
%17 = load ptr, ptr %3, align 8
%18 = getelementptr inbounds i16, ptr %17, i64 1
store ptr %18, ptr %3, align 8
%19 = load i32, ptr %7, align 4
%20 = sub nsw i32 %19, 2
store i32 %20, ptr %7, align 4
%21 = load i32, ptr %7, align 4
%22 = icmp sgt i32 %21, 0
br i1 %22, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %23
23: ; preds = %._crit_edge, %2
%24 = load i64, ptr %5, align 8
%25 = lshr i64 %24, 16
%26 = load i64, ptr %5, align 8
%27 = call i64 @htonl(i32 noundef 65535)
%28 = and i64 %26, %27
%29 = add i64 %25, %28
store i64 %29, ptr %5, align 8
%30 = load i64, ptr %5, align 8
%31 = lshr i64 %30, 16
%32 = load i64, ptr %5, align 8
%33 = add i64 %32, %31
store i64 %33, ptr %5, align 8
%34 = load i64, ptr %5, align 8
%35 = xor i64 %34, -1
%36 = trunc i64 %35 to i16
ret i16 %36
}
declare i64 @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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp7936tdrb.c'
source_filename = "/tmp/tmp7936tdrb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%2d \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 8, ptr %8, align 4
store i32 0, ptr %6, align 4
br label %9
9: ; preds = %28, %2
%10 = load i32, ptr %6, align 4
%11 = load i32, ptr %8, align 4
%12 = icmp sle i32 %10, %11
br i1 %12, label %13, label %31
13: ; preds = %9
store i32 0, ptr %7, align 4
br label %14
14: ; preds = %23, %13
%15 = load i32, ptr %7, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp sle i32 %15, %16
br i1 %17, label %18, label %26
18: ; preds = %14
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %7, align 4
%21 = call i32 @comb(i32 noundef %19, i32 noundef %20)
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %21)
br label %23
23: ; preds = %18
%24 = load i32, ptr %7, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %7, align 4
br label %14, !llvm.loop !6
26: ; preds = %14
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %28
28: ; preds = %26
%29 = load i32, ptr %6, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %6, align 4
br label %9, !llvm.loop !8
31: ; preds = %9
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @comb(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7936tdrb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%2d \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 8, ptr %8, align 4
store i32 0, ptr %6, align 4
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr %8, align 4
%11 = icmp sle i32 %9, %10
br i1 %11, label %.lr.ph2, label %35
.lr.ph2: ; preds = %2
br label %12
12: ; preds = %.lr.ph2, %29
store i32 0, ptr %7, align 4
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %6, align 4
%15 = icmp sle i32 %13, %14
br i1 %15, label %.lr.ph, label %27
.lr.ph: ; preds = %12
br label %16
16: ; preds = %.lr.ph, %21
%17 = load i32, ptr %6, align 4
%18 = load i32, ptr %7, align 4
%19 = call i32 @comb(i32 noundef %17, i32 noundef %18)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %19)
br label %21
21: ; preds = %16
%22 = load i32, ptr %7, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %7, align 4
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %6, align 4
%26 = icmp sle i32 %24, %25
br i1 %26, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %27
27: ; preds = %._crit_edge, %12
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %29
29: ; preds = %27
%30 = load i32, ptr %6, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %6, align 4
%32 = load i32, ptr %6, align 4
%33 = load i32, ptr %8, align 4
%34 = icmp sle i32 %32, %33
br i1 %34, label %12, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %29
br label %35
35: ; preds = %._crit_edge3, %2
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @comb(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpft87epsk.c'
source_filename = "/tmp/tmpft87epsk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mem_copy_to(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i64, ptr %6, align 8
%10 = call i32 @memcpy(ptr noundef %7, ptr noundef %8, i64 noundef %9)
ret i8 1
}
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpft87epsk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mem_copy_to(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i64, ptr %6, align 8
%10 = call i32 @memcpy(ptr noundef %7, ptr noundef %8, i64 noundef %9)
ret i8 1
}
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmvmj5rj8.c'
source_filename = "/tmp/tmpmvmj5rj8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ft_strswap(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i64 @ft_strlen(ptr noundef %6)
%8 = add nsw i64 %7, 1
%9 = call ptr @ft_strnew(i64 noundef %8)
store ptr %9, ptr %5, align 8
%10 = load ptr, ptr %5, align 8
%11 = load ptr, ptr %3, align 8
%12 = call ptr @ft_strcpy(ptr noundef %10, ptr noundef %11)
store ptr %12, ptr %5, align 8
%13 = load ptr, ptr %3, align 8
%14 = load ptr, ptr %4, align 8
%15 = call ptr @ft_strcpy(ptr noundef %13, ptr noundef %14)
store ptr %15, ptr %3, align 8
%16 = load ptr, ptr %4, align 8
%17 = load ptr, ptr %5, align 8
%18 = call ptr @ft_strcpy(ptr noundef %16, ptr noundef %17)
store ptr %18, ptr %4, align 8
ret void
}
declare ptr @ft_strnew(i64 noundef) #1
declare i64 @ft_strlen(ptr noundef) #1
declare ptr @ft_strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmvmj5rj8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ft_strswap(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i64 @ft_strlen(ptr noundef %6)
%8 = add nsw i64 %7, 1
%9 = call ptr @ft_strnew(i64 noundef %8)
store ptr %9, ptr %5, align 8
%10 = load ptr, ptr %5, align 8
%11 = load ptr, ptr %3, align 8
%12 = call ptr @ft_strcpy(ptr noundef %10, ptr noundef %11)
store ptr %12, ptr %5, align 8
%13 = load ptr, ptr %3, align 8
%14 = load ptr, ptr %4, align 8
%15 = call ptr @ft_strcpy(ptr noundef %13, ptr noundef %14)
store ptr %15, ptr %3, align 8
%16 = load ptr, ptr %4, align 8
%17 = load ptr, ptr %5, align 8
%18 = call ptr @ft_strcpy(ptr noundef %16, ptr noundef %17)
store ptr %18, ptr %4, align 8
ret void
}
declare ptr @ft_strnew(i64 noundef) #1
declare i64 @ft_strlen(ptr noundef) #1
declare ptr @ft_strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7wdoixgs.c'
source_filename = "/tmp/tmp7wdoixgs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @atoi(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %16, %1
%5 = load ptr, ptr %2, align 8
%6 = load i8, ptr %5, align 1
%7 = sext i8 %6 to i32
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %14
9: ; preds = %4
%10 = load ptr, ptr %2, align 8
%11 = load i8, ptr %10, align 1
%12 = call i64 @isdigit(i8 noundef signext %11)
%13 = icmp ne i64 %12, 0
br label %14
14: ; preds = %9, %4
%15 = phi i1 [ false, %4 ], [ %13, %9 ]
br i1 %15, label %16, label %25
16: ; preds = %14
%17 = load i32, ptr %3, align 4
%18 = mul nsw i32 %17, 10
%19 = load ptr, ptr %2, align 8
%20 = getelementptr inbounds i8, ptr %19, i32 1
store ptr %20, ptr %2, align 8
%21 = load i8, ptr %19, align 1
%22 = sext i8 %21 to i32
%23 = add nsw i32 %18, %22
%24 = sub nsw i32 %23, 48
store i32 %24, ptr %3, align 4
br label %4, !llvm.loop !6
25: ; preds = %14
%26 = load i32, ptr %3, align 4
ret i32 %26
}
declare i64 @isdigit(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/tmp7wdoixgs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @atoi(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %16, %1
%5 = load ptr, ptr %2, align 8
%6 = load i8, ptr %5, align 1
%7 = sext i8 %6 to i32
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %14
9: ; preds = %4
%10 = load ptr, ptr %2, align 8
%11 = load i8, ptr %10, align 1
%12 = call i64 @isdigit(i8 noundef signext %11)
%13 = icmp ne i64 %12, 0
br label %14
14: ; preds = %9, %4
%15 = phi i1 [ false, %4 ], [ %13, %9 ]
br i1 %15, label %16, label %25
16: ; preds = %14
%17 = load i32, ptr %3, align 4
%18 = mul nsw i32 %17, 10
%19 = load ptr, ptr %2, align 8
%20 = getelementptr inbounds i8, ptr %19, i32 1
store ptr %20, ptr %2, align 8
%21 = load i8, ptr %19, align 1
%22 = sext i8 %21 to i32
%23 = add nsw i32 %18, %22
%24 = sub nsw i32 %23, 48
store i32 %24, ptr %3, align 4
br label %4, !llvm.loop !6
25: ; preds = %14
%26 = load i32, ptr %3, align 4
ret i32 %26
}
declare i64 @isdigit(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/tmpxp33w2jx.c'
source_filename = "/tmp/tmpxp33w2jx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [47 x i8] c" The Two Inputs should be nonnegative and real\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @beta_log(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%6 = load double, ptr %3, align 8
%7 = fcmp olt double %6, 0.000000e+00
br i1 %7, label %11, label %8
8: ; preds = %2
%9 = load double, ptr %4, align 8
%10 = fcmp olt double %9, 0.000000e+00
br i1 %10, label %11, label %14
11: ; preds = %8, %2
%12 = call i32 @printf(ptr noundef @.str)
%13 = call i32 @exit(i32 noundef 1) #3
unreachable
14: ; preds = %8
%15 = load double, ptr %3, align 8
%16 = call double @gamma_log(double noundef %15)
%17 = load double, ptr %4, align 8
%18 = call double @gamma_log(double noundef %17)
%19 = fadd double %16, %18
%20 = load double, ptr %3, align 8
%21 = load double, ptr %4, align 8
%22 = fadd double %20, %21
%23 = call double @gamma_log(double noundef %22)
%24 = fsub double %19, %23
store double %24, ptr %5, align 8
%25 = load double, ptr %5, align 8
ret double %25
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare double @gamma_log(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" }
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/tmpxp33w2jx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [47 x i8] c" The Two Inputs should be nonnegative and real\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @beta_log(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%6 = load double, ptr %3, align 8
%7 = fcmp olt double %6, 0.000000e+00
br i1 %7, label %11, label %8
8: ; preds = %2
%9 = load double, ptr %4, align 8
%10 = fcmp olt double %9, 0.000000e+00
br i1 %10, label %11, label %14
11: ; preds = %8, %2
%12 = call i32 @printf(ptr noundef @.str)
%13 = call i32 @exit(i32 noundef 1) #3
unreachable
14: ; preds = %8
%15 = load double, ptr %3, align 8
%16 = call double @gamma_log(double noundef %15)
%17 = load double, ptr %4, align 8
%18 = call double @gamma_log(double noundef %17)
%19 = fadd double %16, %18
%20 = load double, ptr %3, align 8
%21 = load double, ptr %4, align 8
%22 = fadd double %20, %21
%23 = call double @gamma_log(double noundef %22)
%24 = fsub double %19, %23
store double %24, ptr %5, align 8
%25 = load double, ptr %5, align 8
ret double %25
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare double @gamma_log(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" }
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/tmp8kmv6z7z.c'
source_filename = "/tmp/tmp8kmv6z7z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"fubarbaz\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @call_counter() #0 {
%1 = alloca [20 x i32], align 16
%2 = getelementptr inbounds [20 x i32], ptr %1, i64 0, i64 0
%3 = call i32 @counter(ptr noundef %2, i32 noundef 20, ptr noundef @.str)
ret void
}
declare i32 @counter(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8kmv6z7z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"fubarbaz\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @call_counter() #0 {
%1 = alloca [20 x i32], align 16
%2 = getelementptr inbounds [20 x i32], ptr %1, i64 0, i64 0
%3 = call i32 @counter(ptr noundef %2, i32 noundef 20, ptr noundef @.str)
ret void
}
declare i32 @counter(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpz6nyjw05.c'
source_filename = "/tmp/tmpz6nyjw05.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"print array begin \0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printArray(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %18, %2
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %21
11: ; preds = %7
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i32, ptr %12, i64 %14
%16 = load i32, ptr %15, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %16)
br label %18
18: ; preds = %11
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4
br label %7, !llvm.loop !6
21: ; preds = %7
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz6nyjw05.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"print array begin \0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printArray(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph, label %23
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %17
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i32, ptr %11, i64 %13
%15 = load i32, ptr %14, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %15)
br label %17
17: ; preds = %10
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %23
23: ; preds = %._crit_edge, %2
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpucz_1piy.c'
source_filename = "/tmp/tmpucz_1piy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@BTF_KIND_TYPEDEF = 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/tmpucz_1piy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@BTF_KIND_TYPEDEF = 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/tmpump_b7j8.c'
source_filename = "/tmp/tmpump_b7j8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @I420toRGB8(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, ptr noundef %8, i32 noundef %9, i32 noundef %10, i32 noundef %11, i32 noundef %12, i32 noundef %13, i32 noundef %14, i32 noundef %15) #0 {
%17 = alloca ptr, align 8
%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
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca ptr, align 8
%26 = alloca i32, align 4
%27 = alloca i32, align 4
%28 = alloca i32, align 4
%29 = alloca i32, align 4
%30 = alloca i32, align 4
%31 = alloca i32, align 4
%32 = alloca i32, align 4
store ptr %0, ptr %17, align 8
store i32 %1, ptr %18, align 4
store i32 %2, ptr %19, align 4
store i32 %3, ptr %20, align 4
store i32 %4, ptr %21, align 4
store i32 %5, ptr %22, align 4
store i32 %6, ptr %23, align 4
store i32 %7, ptr %24, align 4
store ptr %8, ptr %25, align 8
store i32 %9, ptr %26, align 4
store i32 %10, ptr %27, align 4
store i32 %11, ptr %28, align 4
store i32 %12, ptr %29, align 4
store i32 %13, ptr %30, align 4
store i32 %14, ptr %31, align 4
store i32 %15, ptr %32, align 4
%33 = load ptr, ptr %17, align 8
%34 = load i32, ptr %18, align 4
%35 = load i32, ptr %19, align 4
%36 = load i32, ptr %20, align 4
%37 = load i32, ptr %21, align 4
%38 = load i32, ptr %22, align 4
%39 = load i32, ptr %23, align 4
%40 = load i32, ptr %24, align 4
%41 = load ptr, ptr %25, align 8
%42 = load i32, ptr %26, align 4
%43 = load i32, ptr %27, align 4
%44 = load i32, ptr %28, align 4
%45 = load i32, ptr %29, align 4
%46 = load i32, ptr %30, align 4
%47 = load i32, ptr %31, align 4
%48 = load i32, ptr %32, align 4
%49 = call i32 @I420toRGB(ptr noundef %33, i32 noundef %34, i32 noundef %35, i32 noundef %36, i32 noundef %37, i32 noundef %38, i32 noundef %39, i32 noundef %40, ptr noundef %41, i32 noundef %42, i32 noundef %43, i32 noundef %44, i32 noundef %45, i32 noundef %46, i32 noundef %47, i32 noundef %48, i32 noundef 4)
ret i32 %49
}
declare i32 @I420toRGB(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpump_b7j8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @I420toRGB8(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, ptr noundef %8, i32 noundef %9, i32 noundef %10, i32 noundef %11, i32 noundef %12, i32 noundef %13, i32 noundef %14, i32 noundef %15) #0 {
%17 = alloca ptr, align 8
%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
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca ptr, align 8
%26 = alloca i32, align 4
%27 = alloca i32, align 4
%28 = alloca i32, align 4
%29 = alloca i32, align 4
%30 = alloca i32, align 4
%31 = alloca i32, align 4
%32 = alloca i32, align 4
store ptr %0, ptr %17, align 8
store i32 %1, ptr %18, align 4
store i32 %2, ptr %19, align 4
store i32 %3, ptr %20, align 4
store i32 %4, ptr %21, align 4
store i32 %5, ptr %22, align 4
store i32 %6, ptr %23, align 4
store i32 %7, ptr %24, align 4
store ptr %8, ptr %25, align 8
store i32 %9, ptr %26, align 4
store i32 %10, ptr %27, align 4
store i32 %11, ptr %28, align 4
store i32 %12, ptr %29, align 4
store i32 %13, ptr %30, align 4
store i32 %14, ptr %31, align 4
store i32 %15, ptr %32, align 4
%33 = load ptr, ptr %17, align 8
%34 = load i32, ptr %18, align 4
%35 = load i32, ptr %19, align 4
%36 = load i32, ptr %20, align 4
%37 = load i32, ptr %21, align 4
%38 = load i32, ptr %22, align 4
%39 = load i32, ptr %23, align 4
%40 = load i32, ptr %24, align 4
%41 = load ptr, ptr %25, align 8
%42 = load i32, ptr %26, align 4
%43 = load i32, ptr %27, align 4
%44 = load i32, ptr %28, align 4
%45 = load i32, ptr %29, align 4
%46 = load i32, ptr %30, align 4
%47 = load i32, ptr %31, align 4
%48 = load i32, ptr %32, align 4
%49 = call i32 @I420toRGB(ptr noundef %33, i32 noundef %34, i32 noundef %35, i32 noundef %36, i32 noundef %37, i32 noundef %38, i32 noundef %39, i32 noundef %40, ptr noundef %41, i32 noundef %42, i32 noundef %43, i32 noundef %44, i32 noundef %45, i32 noundef %46, i32 noundef %47, i32 noundef %48, i32 noundef 4)
ret i32 %49
}
declare i32 @I420toRGB(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl1bi_x6s.c'
source_filename = "/tmp/tmpl1bi_x6s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @amr_file_read_frame(ptr noundef %0, ptr noundef %1, i32 noundef %2, i8 noundef zeroext %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i8, align 1
%10 = alloca i64, align 8
%11 = alloca i8, align 1
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i8 %3, ptr %9, align 1
store i64 0, ptr %10, align 8
br label %12
12: ; preds = %4, %26
%13 = load ptr, ptr %6, align 8
%14 = call i64 @fread(ptr noundef %11, i32 noundef 1, i32 noundef 1, ptr noundef %13)
store i64 %14, ptr %10, align 8
%15 = load ptr, ptr %6, align 8
%16 = call i64 @feof(ptr noundef %15)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %12
store i32 0, ptr %5, align 4
br label %45
19: ; preds = %12
%20 = load i8, ptr %11, align 1
%21 = zext i8 %20 to i32
%22 = load i8, ptr %9, align 1
%23 = zext i8 %22 to i32
%24 = icmp eq i32 %21, %23
br i1 %24, label %25, label %26
25: ; preds = %19
br label %27
26: ; preds = %19
br label %12
27: ; preds = %25
%28 = load i8, ptr %11, align 1
%29 = load ptr, ptr %7, align 8
%30 = getelementptr inbounds i8, ptr %29, i64 0
store i8 %28, ptr %30, align 1
%31 = load ptr, ptr %7, align 8
%32 = getelementptr inbounds i8, ptr %31, i64 1
%33 = load i32, ptr %8, align 4
%34 = sub nsw i32 %33, 1
%35 = sext i32 %34 to i64
%36 = mul i64 %35, 1
%37 = trunc i64 %36 to i32
%38 = load ptr, ptr %6, align 8
%39 = call i64 @fread(ptr noundef %32, i32 noundef 1, i32 noundef %37, ptr noundef %38)
store i64 %39, ptr %10, align 8
%40 = load ptr, ptr %6, align 8
%41 = call i64 @feof(ptr noundef %40)
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %44
43: ; preds = %27
store i32 0, ptr %5, align 4
br label %45
44: ; preds = %27
store i32 1, ptr %5, align 4
br label %45
45: ; preds = %44, %43, %18
%46 = load i32, ptr %5, align 4
ret i32 %46
}
declare i64 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @feof(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl1bi_x6s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @amr_file_read_frame(ptr noundef %0, ptr noundef %1, i32 noundef %2, i8 noundef zeroext %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i8, align 1
%10 = alloca i64, align 8
%11 = alloca i8, align 1
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i8 %3, ptr %9, align 1
store i64 0, ptr %10, align 8
%12 = load ptr, ptr %6, align 8
%13 = call i64 @fread(ptr noundef %11, i32 noundef 1, i32 noundef 1, ptr noundef %12)
store i64 %13, ptr %10, align 8
%14 = load ptr, ptr %6, align 8
%15 = call i64 @feof(ptr noundef %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %23, label %.lr.ph
.lr.ph: ; preds = %4
br label %24
17: ; preds = %24
%18 = load ptr, ptr %6, align 8
%19 = call i64 @fread(ptr noundef %11, i32 noundef 1, i32 noundef 1, ptr noundef %18)
store i64 %19, ptr %10, align 8
%20 = load ptr, ptr %6, align 8
%21 = call i64 @feof(ptr noundef %20)
%22 = icmp ne i64 %21, 0
br i1 %22, label %._crit_edge, label %24
._crit_edge: ; preds = %17
br label %23
23: ; preds = %._crit_edge, %4
store i32 0, ptr %5, align 4
br label %49
24: ; preds = %.lr.ph, %17
%25 = load i8, ptr %11, align 1
%26 = zext i8 %25 to i32
%27 = load i8, ptr %9, align 1
%28 = zext i8 %27 to i32
%29 = icmp eq i32 %26, %28
br i1 %29, label %30, label %17
30: ; preds = %24
br label %31
31: ; preds = %30
%32 = load i8, ptr %11, align 1
%33 = load ptr, ptr %7, align 8
%34 = getelementptr inbounds i8, ptr %33, i64 0
store i8 %32, ptr %34, align 1
%35 = load ptr, ptr %7, align 8
%36 = getelementptr inbounds i8, ptr %35, i64 1
%37 = load i32, ptr %8, align 4
%38 = sub nsw i32 %37, 1
%39 = sext i32 %38 to i64
%40 = mul i64 %39, 1
%41 = trunc i64 %40 to i32
%42 = load ptr, ptr %6, align 8
%43 = call i64 @fread(ptr noundef %36, i32 noundef 1, i32 noundef %41, ptr noundef %42)
store i64 %43, ptr %10, align 8
%44 = load ptr, ptr %6, align 8
%45 = call i64 @feof(ptr noundef %44)
%46 = icmp ne i64 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %31
store i32 0, ptr %5, align 4
br label %49
48: ; preds = %31
store i32 1, ptr %5, align 4
br label %49
49: ; preds = %48, %47, %23
%50 = load i32, ptr %5, align 4
ret i32 %50
}
declare i64 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @feof(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp48cj0h90.c'
source_filename = "/tmp/tmp48cj0h90.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"%d+%d=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @find(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
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
%12 = load i32, ptr %6, align 4
store i32 %12, ptr %9, align 4
%13 = load i32, ptr %7, align 4
store i32 %13, ptr %10, align 4
store i32 0, ptr %11, align 4
br label %14
14: ; preds = %4, %73
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %10, align 4
%17 = icmp sgt i32 %15, %16
br i1 %17, label %18, label %19
18: ; preds = %14
br label %74
19: ; preds = %14
%20 = load ptr, ptr %5, align 8
%21 = load i32, ptr %9, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %20, i64 %22
%24 = load i32, ptr %23, align 4
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %10, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, ptr %25, i64 %27
%29 = load i32, ptr %28, align 4
%30 = add nsw i32 %24, %29
%31 = load i32, ptr %8, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %36
33: ; preds = %19
%34 = load i32, ptr %9, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %9, align 4
br label %73
36: ; preds = %19
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %9, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i32, ptr %37, i64 %39
%41 = load i32, ptr %40, align 4
%42 = load ptr, ptr %5, align 8
%43 = load i32, ptr %10, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i32, ptr %42, i64 %44
%46 = load i32, ptr %45, align 4
%47 = add nsw i32 %41, %46
%48 = load i32, ptr %8, align 4
%49 = icmp sgt i32 %47, %48
br i1 %49, label %50, label %53
50: ; preds = %36
%51 = load i32, ptr %10, align 4
%52 = add nsw i32 %51, -1
store i32 %52, ptr %10, align 4
br label %72
53: ; preds = %36
%54 = load ptr, ptr %5, align 8
%55 = load i32, ptr %9, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i32, ptr %54, i64 %56
%58 = load i32, ptr %57, align 4
%59 = load ptr, ptr %5, align 8
%60 = load i32, ptr %10, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i32, ptr %59, i64 %61
%63 = load i32, ptr %62, align 4
%64 = load i32, ptr %8, align 4
%65 = call i32 @printf(ptr noundef @.str, i32 noundef %58, i32 noundef %63, i32 noundef %64)
%66 = load i32, ptr %9, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %9, align 4
%68 = load i32, ptr %10, align 4
%69 = add nsw i32 %68, -1
store i32 %69, ptr %10, align 4
%70 = load i32, ptr %11, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %11, align 4
br label %72
72: ; preds = %53, %50
br label %73
73: ; preds = %72, %33
br label %14
74: ; preds = %18
%75 = load i32, ptr %11, align 4
ret i32 %75
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp48cj0h90.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"%d+%d=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @find(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
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
%12 = load i32, ptr %6, align 4
store i32 %12, ptr %9, align 4
%13 = load i32, ptr %7, align 4
store i32 %13, ptr %10, align 4
store i32 0, ptr %11, align 4
%14 = load i32, ptr %9, align 4
%15 = load i32, ptr %10, align 4
%16 = icmp sgt i32 %14, %15
br i1 %16, label %17, label %.lr.ph
.lr.ph: ; preds = %4
br label %18
._crit_edge: ; preds = %72
br label %17
17: ; preds = %._crit_edge, %4
br label %76
18: ; preds = %.lr.ph, %72
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %9, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %19, i64 %21
%23 = load i32, ptr %22, align 4
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr %10, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %24, i64 %26
%28 = load i32, ptr %27, align 4
%29 = add nsw i32 %23, %28
%30 = load i32, ptr %8, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %32, label %35
32: ; preds = %18
%33 = load i32, ptr %9, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %9, align 4
br label %72
35: ; preds = %18
%36 = load ptr, ptr %5, 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 %5, align 8
%42 = load i32, ptr %10, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
%45 = load i32, ptr %44, align 4
%46 = add nsw i32 %40, %45
%47 = load i32, ptr %8, align 4
%48 = icmp sgt i32 %46, %47
br i1 %48, label %49, label %52
49: ; preds = %35
%50 = load i32, ptr %10, align 4
%51 = add nsw i32 %50, -1
store i32 %51, ptr %10, align 4
br label %71
52: ; preds = %35
%53 = load ptr, ptr %5, align 8
%54 = load i32, ptr %9, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i32, ptr %53, i64 %55
%57 = load i32, ptr %56, align 4
%58 = load ptr, ptr %5, align 8
%59 = load i32, ptr %10, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i32, ptr %58, i64 %60
%62 = load i32, ptr %61, align 4
%63 = load i32, ptr %8, align 4
%64 = call i32 @printf(ptr noundef @.str, i32 noundef %57, i32 noundef %62, i32 noundef %63)
%65 = load i32, ptr %9, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %9, align 4
%67 = load i32, ptr %10, align 4
%68 = add nsw i32 %67, -1
store i32 %68, ptr %10, align 4
%69 = load i32, ptr %11, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %11, align 4
br label %71
71: ; preds = %52, %49
br label %72
72: ; preds = %71, %32
%73 = load i32, ptr %9, align 4
%74 = load i32, ptr %10, align 4
%75 = icmp sgt i32 %73, %74
br i1 %75, label %._crit_edge, label %18
76: ; preds = %17
%77 = load i32, ptr %11, align 4
ret i32 %77
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsepi7y9b.c'
source_filename = "/tmp/tmpsepi7y9b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%s%s\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"/db/gargoyle_attack_detect.db\00", align 1
@SQLITE_OK = dso_local global i32 0, align 4
@LOG_INFO = dso_local global i32 0, align 4
@LOG_LOCAL6 = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [77 x i8] c"ERROR opening SQLite DB '%s' from function [sqlite_remove_detected_host]: %s\00", align 1
@.str.4 = private unnamed_addr constant [29 x i8] c"DELETE FROM %s WHERE ix = ?1\00", align 1
@.str.5 = private unnamed_addr constant [15 x i8] c"detected_hosts\00", align 1
@SQLITE_DONE = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [86 x i8] c"%s deleting data from function [sqlite_remove_detected_host] failed with this msg: %s\00", align 1
@.str.7 = private unnamed_addr constant [6 x i8] c"INFO:\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @sqlite_remove_detected_host(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca [256 x i8], align 16
%7 = alloca [513 x i8], align 16
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca [512 x i8], align 16
store i64 %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%12 = load ptr, ptr %5, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %18
14: ; preds = %2
%15 = getelementptr inbounds [513 x i8], ptr %7, i64 0, i64 0
%16 = load ptr, ptr %5, align 8
%17 = call i32 (ptr, i32, ptr, ptr, ...) @snprintf(ptr noundef %15, i32 noundef 512, ptr noundef @.str, ptr noundef %16)
br label %28
18: ; preds = %2
%19 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%20 = call ptr @getcwd(ptr noundef %19, i32 noundef 256)
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %23
22: ; preds = %18
store i64 1, ptr %3, align 8
br label %74
23: ; preds = %18
%24 = getelementptr inbounds [513 x i8], ptr %7, i64 0, i64 0
%25 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%26 = call i32 (ptr, i32, ptr, ptr, ...) @snprintf(ptr noundef %24, i32 noundef 512, ptr noundef @.str.1, ptr noundef %25, ptr noundef @.str.2)
br label %27
27: ; preds = %23
br label %28
28: ; preds = %27, %14
%29 = getelementptr inbounds [513 x i8], ptr %7, i64 0, i64 0
%30 = call i32 @sqlite3_open(ptr noundef %29, ptr noundef %8)
store i32 %30, ptr %10, align 4
%31 = load i32, ptr %10, align 4
%32 = load i32, ptr @SQLITE_OK, align 4
%33 = icmp ne i32 %31, %32
br i1 %33, label %34, label %42
34: ; preds = %28
%35 = load i32, ptr @LOG_INFO, align 4
%36 = load i32, ptr @LOG_LOCAL6, align 4
%37 = or i32 %35, %36
%38 = getelementptr inbounds [513 x i8], ptr %7, i64 0, i64 0
%39 = load ptr, ptr %8, align 8
%40 = call i32 @sqlite3_errmsg(ptr noundef %39)
%41 = call i32 @syslog(i32 noundef %37, ptr noundef @.str.3, ptr noundef %38, i32 noundef %40)
store i64 1, ptr %3, align 8
br label %74
42: ; preds = %28
%43 = getelementptr inbounds [512 x i8], ptr %11, i64 0, i64 0
%44 = call i32 (ptr, i32, ptr, ptr, ...) @snprintf(ptr noundef %43, i32 noundef 512, ptr noundef @.str.4, ptr noundef @.str.5)
%45 = load ptr, ptr %8, align 8
%46 = getelementptr inbounds [512 x i8], ptr %11, i64 0, i64 0
%47 = getelementptr inbounds [512 x i8], ptr %11, i64 0, i64 0
%48 = call i32 @strlen(ptr noundef %47)
%49 = call i32 @sqlite3_prepare_v2(ptr noundef %45, ptr noundef %46, i32 noundef %48, ptr noundef %9, ptr noundef null)
%50 = load ptr, ptr %9, align 8
%51 = load i64, ptr %4, align 8
%52 = call i32 @sqlite3_bind_int(ptr noundef %50, i32 noundef 1, i64 noundef %51)
%53 = load ptr, ptr %9, align 8
%54 = call i32 @sqlite3_step(ptr noundef %53)
store i32 %54, ptr %10, align 4
%55 = load i32, ptr %10, align 4
%56 = load i32, ptr @SQLITE_DONE, align 4
%57 = icmp ne i32 %55, %56
br i1 %57, label %58, label %69
58: ; preds = %42
%59 = load i32, ptr @LOG_INFO, align 4
%60 = load i32, ptr @LOG_LOCAL6, align 4
%61 = or i32 %59, %60
%62 = load ptr, ptr %8, align 8
%63 = call i32 @sqlite3_errmsg(ptr noundef %62)
%64 = call i32 @syslog(i32 noundef %61, ptr noundef @.str.6, ptr noundef @.str.7, i32 noundef %63)
%65 = load ptr, ptr %9, align 8
%66 = call i32 @sqlite3_finalize(ptr noundef %65)
%67 = load ptr, ptr %8, align 8
%68 = call i32 @sqlite3_close(ptr noundef %67)
store i64 2, ptr %3, align 8
br label %74
69: ; preds = %42
%70 = load ptr, ptr %9, align 8
%71 = call i32 @sqlite3_finalize(ptr noundef %70)
%72 = load ptr, ptr %8, align 8
%73 = call i32 @sqlite3_close(ptr noundef %72)
store i64 0, ptr %3, align 8
br label %74
74: ; preds = %69, %58, %34, %22
%75 = load i64, ptr %3, align 8
ret i64 %75
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) #1
declare ptr @getcwd(ptr noundef, i32 noundef) #1
declare i32 @sqlite3_open(ptr noundef, ptr noundef) #1
declare i32 @syslog(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @sqlite3_errmsg(ptr noundef) #1
declare i32 @sqlite3_prepare_v2(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @sqlite3_bind_int(ptr noundef, i32 noundef, i64 noundef) #1
declare i32 @sqlite3_step(ptr noundef) #1
declare i32 @sqlite3_finalize(ptr noundef) #1
declare i32 @sqlite3_close(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsepi7y9b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%s%s\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"/db/gargoyle_attack_detect.db\00", align 1
@SQLITE_OK = dso_local global i32 0, align 4
@LOG_INFO = dso_local global i32 0, align 4
@LOG_LOCAL6 = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [77 x i8] c"ERROR opening SQLite DB '%s' from function [sqlite_remove_detected_host]: %s\00", align 1
@.str.4 = private unnamed_addr constant [29 x i8] c"DELETE FROM %s WHERE ix = ?1\00", align 1
@.str.5 = private unnamed_addr constant [15 x i8] c"detected_hosts\00", align 1
@SQLITE_DONE = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [86 x i8] c"%s deleting data from function [sqlite_remove_detected_host] failed with this msg: %s\00", align 1
@.str.7 = private unnamed_addr constant [6 x i8] c"INFO:\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @sqlite_remove_detected_host(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca [256 x i8], align 16
%7 = alloca [513 x i8], align 16
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca [512 x i8], align 16
store i64 %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%12 = load ptr, ptr %5, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %18
14: ; preds = %2
%15 = getelementptr inbounds [513 x i8], ptr %7, i64 0, i64 0
%16 = load ptr, ptr %5, align 8
%17 = call i32 (ptr, i32, ptr, ptr, ...) @snprintf(ptr noundef %15, i32 noundef 512, ptr noundef @.str, ptr noundef %16)
br label %28
18: ; preds = %2
%19 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%20 = call ptr @getcwd(ptr noundef %19, i32 noundef 256)
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %23
22: ; preds = %18
store i64 1, ptr %3, align 8
br label %74
23: ; preds = %18
%24 = getelementptr inbounds [513 x i8], ptr %7, i64 0, i64 0
%25 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%26 = call i32 (ptr, i32, ptr, ptr, ...) @snprintf(ptr noundef %24, i32 noundef 512, ptr noundef @.str.1, ptr noundef %25, ptr noundef @.str.2)
br label %27
27: ; preds = %23
br label %28
28: ; preds = %27, %14
%29 = getelementptr inbounds [513 x i8], ptr %7, i64 0, i64 0
%30 = call i32 @sqlite3_open(ptr noundef %29, ptr noundef %8)
store i32 %30, ptr %10, align 4
%31 = load i32, ptr %10, align 4
%32 = load i32, ptr @SQLITE_OK, align 4
%33 = icmp ne i32 %31, %32
br i1 %33, label %34, label %42
34: ; preds = %28
%35 = load i32, ptr @LOG_INFO, align 4
%36 = load i32, ptr @LOG_LOCAL6, align 4
%37 = or i32 %35, %36
%38 = getelementptr inbounds [513 x i8], ptr %7, i64 0, i64 0
%39 = load ptr, ptr %8, align 8
%40 = call i32 @sqlite3_errmsg(ptr noundef %39)
%41 = call i32 @syslog(i32 noundef %37, ptr noundef @.str.3, ptr noundef %38, i32 noundef %40)
store i64 1, ptr %3, align 8
br label %74
42: ; preds = %28
%43 = getelementptr inbounds [512 x i8], ptr %11, i64 0, i64 0
%44 = call i32 (ptr, i32, ptr, ptr, ...) @snprintf(ptr noundef %43, i32 noundef 512, ptr noundef @.str.4, ptr noundef @.str.5)
%45 = load ptr, ptr %8, align 8
%46 = getelementptr inbounds [512 x i8], ptr %11, i64 0, i64 0
%47 = getelementptr inbounds [512 x i8], ptr %11, i64 0, i64 0
%48 = call i32 @strlen(ptr noundef %47)
%49 = call i32 @sqlite3_prepare_v2(ptr noundef %45, ptr noundef %46, i32 noundef %48, ptr noundef %9, ptr noundef null)
%50 = load ptr, ptr %9, align 8
%51 = load i64, ptr %4, align 8
%52 = call i32 @sqlite3_bind_int(ptr noundef %50, i32 noundef 1, i64 noundef %51)
%53 = load ptr, ptr %9, align 8
%54 = call i32 @sqlite3_step(ptr noundef %53)
store i32 %54, ptr %10, align 4
%55 = load i32, ptr %10, align 4
%56 = load i32, ptr @SQLITE_DONE, align 4
%57 = icmp ne i32 %55, %56
br i1 %57, label %58, label %69
58: ; preds = %42
%59 = load i32, ptr @LOG_INFO, align 4
%60 = load i32, ptr @LOG_LOCAL6, align 4
%61 = or i32 %59, %60
%62 = load ptr, ptr %8, align 8
%63 = call i32 @sqlite3_errmsg(ptr noundef %62)
%64 = call i32 @syslog(i32 noundef %61, ptr noundef @.str.6, ptr noundef @.str.7, i32 noundef %63)
%65 = load ptr, ptr %9, align 8
%66 = call i32 @sqlite3_finalize(ptr noundef %65)
%67 = load ptr, ptr %8, align 8
%68 = call i32 @sqlite3_close(ptr noundef %67)
store i64 2, ptr %3, align 8
br label %74
69: ; preds = %42
%70 = load ptr, ptr %9, align 8
%71 = call i32 @sqlite3_finalize(ptr noundef %70)
%72 = load ptr, ptr %8, align 8
%73 = call i32 @sqlite3_close(ptr noundef %72)
store i64 0, ptr %3, align 8
br label %74
74: ; preds = %69, %58, %34, %22
%75 = load i64, ptr %3, align 8
ret i64 %75
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) #1
declare ptr @getcwd(ptr noundef, i32 noundef) #1
declare i32 @sqlite3_open(ptr noundef, ptr noundef) #1
declare i32 @syslog(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @sqlite3_errmsg(ptr noundef) #1
declare i32 @sqlite3_prepare_v2(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @sqlite3_bind_int(ptr noundef, i32 noundef, i64 noundef) #1
declare i32 @sqlite3_step(ptr noundef) #1
declare i32 @sqlite3_finalize(ptr noundef) #1
declare i32 @sqlite3_close(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmph5k9dz_5.c'
source_filename = "/tmp/tmph5k9dz_5.c"
target datalayout = "e-m:e-p270: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/tmph5k9dz_5.c"
target datalayout = "e-m:e-p270: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/tmpu5uw7maq.c'
source_filename = "/tmp/tmpu5uw7maq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%3d%c\09\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %4
4: ; preds = %21, %0
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 127
br i1 %6, label %7, label %24
7: ; preds = %4
store i32 0, ptr %3, align 4
br label %8
8: ; preds = %17, %7
%9 = load i32, ptr %3, align 4
%10 = icmp slt i32 %9, 127
br i1 %10, label %11, label %20
11: ; preds = %8
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %3, align 4
%14 = call i32 @printf(ptr noundef @.str, i32 noundef %12, i32 noundef %13)
%15 = load i32, ptr %2, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %2, align 4
br label %17
17: ; preds = %11
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %3, align 4
br label %8, !llvm.loop !6
20: ; preds = %8
br label %21
21: ; preds = %20
%22 = load i32, ptr %2, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %2, align 4
br label %4, !llvm.loop !8
24: ; preds = %4
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu5uw7maq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%3d%c\09\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 127
br i1 %5, label %.lr.ph2, label %26
.lr.ph2: ; preds = %0
br label %6
6: ; preds = %.lr.ph2, %21
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 127
br i1 %8, label %.lr.ph, label %20
.lr.ph: ; preds = %6
br label %9
9: ; preds = %.lr.ph, %15
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr %3, align 4
%12 = call i32 @printf(ptr noundef @.str, i32 noundef %10, i32 noundef %11)
%13 = load i32, ptr %2, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %2, align 4
br label %15
15: ; preds = %9
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %3, align 4
%18 = load i32, ptr %3, align 4
%19 = icmp slt i32 %18, 127
br i1 %19, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %20
20: ; preds = %._crit_edge, %6
br label %21
21: ; preds = %20
%22 = load i32, ptr %2, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %2, align 4
%24 = load i32, ptr %2, align 4
%25 = icmp slt i32 %24, 127
br i1 %25, label %6, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %21
br label %26
26: ; preds = %._crit_edge3, %0
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp8x3d7pzn.c'
source_filename = "/tmp/tmp8x3d7pzn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [19 x i8] c"\0ANumber is strong\0A\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"\0ANumber is not strong\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = call i32 @processNumber(i32 noundef %5)
store i32 %6, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 @printf(ptr noundef @.str.1)
br label %13
11: ; preds = %0
%12 = call i32 @printf(ptr noundef @.str.2)
br label %13
13: ; preds = %11, %9
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @processNumber(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/tmp8x3d7pzn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [19 x i8] c"\0ANumber is strong\0A\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"\0ANumber is not strong\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = call i32 @processNumber(i32 noundef %5)
store i32 %6, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 @printf(ptr noundef @.str.1)
br label %13
11: ; preds = %0
%12 = call i32 @printf(ptr noundef @.str.2)
br label %13
13: ; preds = %11, %9
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @processNumber(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/tmppv0hz4uo.c'
source_filename = "/tmp/tmppv0hz4uo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@B1000000 = dso_local global i32 0, align 4
@B110 = dso_local global i32 0, align 4
@B115200 = dso_local global i32 0, align 4
@B1152000 = dso_local global i32 0, align 4
@B1200 = dso_local global i32 0, align 4
@B134 = dso_local global i32 0, align 4
@B150 = dso_local global i32 0, align 4
@B1500000 = dso_local global i32 0, align 4
@B1800 = dso_local global i32 0, align 4
@B19200 = dso_local global i32 0, align 4
@B200 = dso_local global i32 0, align 4
@B230400 = dso_local global i32 0, align 4
@B2400 = dso_local global i32 0, align 4
@B300 = dso_local global i32 0, align 4
@B38400 = dso_local global i32 0, align 4
@B460800 = dso_local global i32 0, align 4
@B4800 = dso_local global i32 0, align 4
@B50 = dso_local global i32 0, align 4
@B500000 = dso_local global i32 0, align 4
@B57600 = dso_local global i32 0, align 4
@B576000 = dso_local global i32 0, align 4
@B600 = dso_local global i32 0, align 4
@B75 = dso_local global i32 0, align 4
@B921600 = dso_local global i32 0, align 4
@B9600 = 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/tmppv0hz4uo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@B1000000 = dso_local global i32 0, align 4
@B110 = dso_local global i32 0, align 4
@B115200 = dso_local global i32 0, align 4
@B1152000 = dso_local global i32 0, align 4
@B1200 = dso_local global i32 0, align 4
@B134 = dso_local global i32 0, align 4
@B150 = dso_local global i32 0, align 4
@B1500000 = dso_local global i32 0, align 4
@B1800 = dso_local global i32 0, align 4
@B19200 = dso_local global i32 0, align 4
@B200 = dso_local global i32 0, align 4
@B230400 = dso_local global i32 0, align 4
@B2400 = dso_local global i32 0, align 4
@B300 = dso_local global i32 0, align 4
@B38400 = dso_local global i32 0, align 4
@B460800 = dso_local global i32 0, align 4
@B4800 = dso_local global i32 0, align 4
@B50 = dso_local global i32 0, align 4
@B500000 = dso_local global i32 0, align 4
@B57600 = dso_local global i32 0, align 4
@B576000 = dso_local global i32 0, align 4
@B600 = dso_local global i32 0, align 4
@B75 = dso_local global i32 0, align 4
@B921600 = dso_local global i32 0, align 4
@B9600 = 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/tmpf30tnl8s.c'
source_filename = "/tmp/tmpf30tnl8s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @div_fun(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
%6 = load double, ptr %5, align 8
%7 = call double @llvm.fabs.f64(double %6)
%8 = fcmp olt double %7, 1.000000e-08
br i1 %8, label %9, label %10
9: ; preds = %2
store double 0.000000e+00, ptr %3, align 8
br label %14
10: ; preds = %2
%11 = load double, ptr %4, align 8
%12 = load double, ptr %5, align 8
%13 = fdiv double %11, %12
store double %13, ptr %3, align 8
br label %14
14: ; preds = %10, %9
%15 = load double, ptr %3, align 8
ret double %15
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf30tnl8s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @div_fun(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
%6 = load double, ptr %5, align 8
%7 = call double @llvm.fabs.f64(double %6)
%8 = fcmp olt double %7, 1.000000e-08
br i1 %8, label %9, label %10
9: ; preds = %2
store double 0.000000e+00, ptr %3, align 8
br label %14
10: ; preds = %2
%11 = load double, ptr %4, align 8
%12 = load double, ptr %5, align 8
%13 = fdiv double %11, %12
store double %13, ptr %3, align 8
br label %14
14: ; preds = %10, %9
%15 = load double, ptr %3, align 8
ret double %15
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5hefcrfy.c'
source_filename = "/tmp/tmp5hefcrfy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @getYN() #0 {
%1 = alloca i8, align 1
br label %2
2: ; preds = %13, %0
%3 = call i32 (...) @getchar()
%4 = call signext i8 @tolower(i32 noundef %3)
store i8 %4, ptr %1, align 1
br label %5
5: ; preds = %2
%6 = load i8, ptr %1, align 1
%7 = sext i8 %6 to i32
%8 = icmp ne i32 %7, 121
br i1 %8, label %9, label %13
9: ; preds = %5
%10 = load i8, ptr %1, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 110
br label %13
13: ; preds = %9, %5
%14 = phi i1 [ false, %5 ], [ %12, %9 ]
br i1 %14, label %2, label %15, !llvm.loop !6
15: ; preds = %13
%16 = call i32 @printf(ptr noundef @.str)
%17 = load i8, ptr %1, align 1
ret i8 %17
}
declare signext i8 @tolower(i32 noundef) #1
declare i32 @getchar(...) #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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5hefcrfy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @getYN() #0 {
%1 = alloca i8, align 1
br label %2
2: ; preds = %13, %0
%3 = call i32 (...) @getchar()
%4 = call signext i8 @tolower(i32 noundef %3)
store i8 %4, ptr %1, align 1
br label %5
5: ; preds = %2
%6 = load i8, ptr %1, align 1
%7 = sext i8 %6 to i32
%8 = icmp ne i32 %7, 121
br i1 %8, label %9, label %13
9: ; preds = %5
%10 = load i8, ptr %1, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 110
br label %13
13: ; preds = %9, %5
%14 = phi i1 [ false, %5 ], [ %12, %9 ]
br i1 %14, label %2, label %15, !llvm.loop !6
15: ; preds = %13
%16 = call i32 @printf(ptr noundef @.str)
%17 = load i8, ptr %1, align 1
ret i8 %17
}
declare signext i8 @tolower(i32 noundef) #1
declare i32 @getchar(...) #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"}
|
; ModuleID = '/tmp/tmphqll5e1c.c'
source_filename = "/tmp/tmphqll5e1c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Sec-WebSocket-Protocol\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"Sec-WebSocket-Protocol: %s\0D\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @websocket_ready_handler(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca [100 x i8], align 16
%5 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call ptr @mg_get_header(ptr noundef %6, ptr noundef @.str)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %23
10: ; preds = %1
store ptr null, ptr %5, align 8
%11 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%12 = load ptr, ptr %3, align 8
%13 = call i32 @snprintf(ptr noundef %11, i32 noundef 100, ptr noundef @.str.1, ptr noundef %12)
%14 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%15 = call ptr @strrchr(ptr noundef %14, i8 noundef signext 44)
store ptr %15, ptr %5, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %17, label %19
17: ; preds = %10
%18 = load ptr, ptr %5, align 8
store i8 0, ptr %18, align 1
br label %19
19: ; preds = %17, %10
%20 = load ptr, ptr %2, align 8
%21 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%22 = call i32 (ptr, ptr, ...) @mg_printf(ptr noundef %20, ptr noundef @.str.2, ptr noundef %21)
br label %23
23: ; preds = %19, %1
%24 = load ptr, ptr %2, align 8
%25 = call i32 (ptr, ptr, ...) @mg_printf(ptr noundef %24, ptr noundef @.str.3)
ret void
}
declare ptr @mg_get_header(ptr noundef, ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare i32 @mg_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/tmphqll5e1c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Sec-WebSocket-Protocol\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"Sec-WebSocket-Protocol: %s\0D\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @websocket_ready_handler(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca [100 x i8], align 16
%5 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call ptr @mg_get_header(ptr noundef %6, ptr noundef @.str)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %23
10: ; preds = %1
store ptr null, ptr %5, align 8
%11 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%12 = load ptr, ptr %3, align 8
%13 = call i32 @snprintf(ptr noundef %11, i32 noundef 100, ptr noundef @.str.1, ptr noundef %12)
%14 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%15 = call ptr @strrchr(ptr noundef %14, i8 noundef signext 44)
store ptr %15, ptr %5, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %17, label %19
17: ; preds = %10
%18 = load ptr, ptr %5, align 8
store i8 0, ptr %18, align 1
br label %19
19: ; preds = %17, %10
%20 = load ptr, ptr %2, align 8
%21 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%22 = call i32 (ptr, ptr, ...) @mg_printf(ptr noundef %20, ptr noundef @.str.2, ptr noundef %21)
br label %23
23: ; preds = %19, %1
%24 = load ptr, ptr %2, align 8
%25 = call i32 (ptr, ptr, ...) @mg_printf(ptr noundef %24, ptr noundef @.str.3)
ret void
}
declare ptr @mg_get_header(ptr noundef, ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare i32 @mg_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/tmpxhtgzjx_.c'
source_filename = "/tmp/tmpxhtgzjx_.c"
target datalayout = "e-m:e-p270: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/tmpxhtgzjx_.c"
target datalayout = "e-m:e-p270: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/tmpt_mhoo5x.c'
source_filename = "/tmp/tmpt_mhoo5x.c"
target datalayout = "e-m:e-p270: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/tmpt_mhoo5x.c"
target datalayout = "e-m:e-p270: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/tmpycp0qf32.c'
source_filename = "/tmp/tmpycp0qf32.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDONLY = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"fs_read: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fs_read(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%10 = load ptr, ptr %5, align 8
%11 = load i32, ptr @O_RDONLY, align 4
%12 = call i32 @open(ptr noundef %10, i32 noundef %11)
store i32 %12, ptr %8, align 4
%13 = load i32, ptr %8, align 4
%14 = icmp eq i32 %13, -1
br i1 %14, label %15, label %17
15: ; preds = %3
%16 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %4, align 4
br label %30
17: ; preds = %3
%18 = load i32, ptr %8, align 4
%19 = load ptr, ptr %6, align 8
%20 = load i32, ptr %7, align 4
%21 = call i32 @read(i32 noundef %18, ptr noundef %19, i32 noundef %20)
store i32 %21, ptr %9, align 4
%22 = load i32, ptr %9, align 4
%23 = icmp eq i32 %22, -1
br i1 %23, label %24, label %26
24: ; preds = %17
%25 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %4, align 4
br label %30
26: ; preds = %17
%27 = load i32, ptr %8, align 4
%28 = call i32 @close(i32 noundef %27)
%29 = load i32, ptr %9, align 4
store i32 %29, ptr %4, align 4
br label %30
30: ; preds = %26, %24, %15
%31 = load i32, ptr %4, align 4
ret i32 %31
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpycp0qf32.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDONLY = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"fs_read: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fs_read(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%10 = load ptr, ptr %5, align 8
%11 = load i32, ptr @O_RDONLY, align 4
%12 = call i32 @open(ptr noundef %10, i32 noundef %11)
store i32 %12, ptr %8, align 4
%13 = load i32, ptr %8, align 4
%14 = icmp eq i32 %13, -1
br i1 %14, label %15, label %17
15: ; preds = %3
%16 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %4, align 4
br label %30
17: ; preds = %3
%18 = load i32, ptr %8, align 4
%19 = load ptr, ptr %6, align 8
%20 = load i32, ptr %7, align 4
%21 = call i32 @read(i32 noundef %18, ptr noundef %19, i32 noundef %20)
store i32 %21, ptr %9, align 4
%22 = load i32, ptr %9, align 4
%23 = icmp eq i32 %22, -1
br i1 %23, label %24, label %26
24: ; preds = %17
%25 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %4, align 4
br label %30
26: ; preds = %17
%27 = load i32, ptr %8, align 4
%28 = call i32 @close(i32 noundef %27)
%29 = load i32, ptr %9, align 4
store i32 %29, ptr %4, align 4
br label %30
30: ; preds = %26, %24, %15
%31 = load i32, ptr %4, align 4
ret i32 %31
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxynrefwc.c'
source_filename = "/tmp/tmpxynrefwc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_CUR = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @__pread(i32 noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i64, align 8
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr @SEEK_CUR, align 4
%15 = call i64 @__lseek(i32 noundef %13, i64 noundef 0, i32 noundef %14)
store i64 %15, ptr %12, align 8
%16 = load i64, ptr %12, align 8
%17 = icmp eq i64 %16, -1
br i1 %17, label %18, label %19
18: ; preds = %4
store i32 -1, ptr %5, align 4
br label %48
19: ; preds = %4
%20 = load i32, ptr %6, align 4
%21 = load i64, ptr %9, align 8
%22 = load i32, ptr @SEEK_SET, align 4
%23 = call i64 @__lseek(i32 noundef %20, i64 noundef %21, i32 noundef %22)
%24 = icmp eq i64 %23, -1
br i1 %24, label %25, label %26
25: ; preds = %19
store i32 -1, ptr %5, align 4
br label %48
26: ; preds = %19
%27 = load i32, ptr %6, align 4
%28 = load ptr, ptr %7, align 8
%29 = load i64, ptr %8, align 8
%30 = call i32 @__read(i32 noundef %27, ptr noundef %28, i64 noundef %29)
store i32 %30, ptr %11, align 4
%31 = load i32, ptr @errno, align 4
store i32 %31, ptr %10, align 4
%32 = load i32, ptr %6, align 4
%33 = load i64, ptr %12, align 8
%34 = load i32, ptr @SEEK_SET, align 4
%35 = call i64 @__lseek(i32 noundef %32, i64 noundef %33, i32 noundef %34)
%36 = icmp eq i64 %35, -1
br i1 %36, label %37, label %44
37: ; preds = %26
%38 = load i32, ptr %11, align 4
%39 = icmp eq i32 %38, -1
br i1 %39, label %40, label %43
40: ; preds = %37
%41 = load i32, ptr %10, align 4
%42 = call i32 @__set_errno(i32 noundef %41)
br label %43
43: ; preds = %40, %37
store i32 -1, ptr %5, align 4
br label %48
44: ; preds = %26
%45 = load i32, ptr %10, align 4
%46 = call i32 @__set_errno(i32 noundef %45)
%47 = load i32, ptr %11, align 4
store i32 %47, ptr %5, align 4
br label %48
48: ; preds = %44, %43, %25, %18
%49 = load i32, ptr %5, align 4
ret i32 %49
}
declare i64 @__lseek(i32 noundef, i64 noundef, i32 noundef) #1
declare i32 @__read(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @__set_errno(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/tmpxynrefwc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_CUR = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @__pread(i32 noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i64, align 8
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr @SEEK_CUR, align 4
%15 = call i64 @__lseek(i32 noundef %13, i64 noundef 0, i32 noundef %14)
store i64 %15, ptr %12, align 8
%16 = load i64, ptr %12, align 8
%17 = icmp eq i64 %16, -1
br i1 %17, label %18, label %19
18: ; preds = %4
store i32 -1, ptr %5, align 4
br label %48
19: ; preds = %4
%20 = load i32, ptr %6, align 4
%21 = load i64, ptr %9, align 8
%22 = load i32, ptr @SEEK_SET, align 4
%23 = call i64 @__lseek(i32 noundef %20, i64 noundef %21, i32 noundef %22)
%24 = icmp eq i64 %23, -1
br i1 %24, label %25, label %26
25: ; preds = %19
store i32 -1, ptr %5, align 4
br label %48
26: ; preds = %19
%27 = load i32, ptr %6, align 4
%28 = load ptr, ptr %7, align 8
%29 = load i64, ptr %8, align 8
%30 = call i32 @__read(i32 noundef %27, ptr noundef %28, i64 noundef %29)
store i32 %30, ptr %11, align 4
%31 = load i32, ptr @errno, align 4
store i32 %31, ptr %10, align 4
%32 = load i32, ptr %6, align 4
%33 = load i64, ptr %12, align 8
%34 = load i32, ptr @SEEK_SET, align 4
%35 = call i64 @__lseek(i32 noundef %32, i64 noundef %33, i32 noundef %34)
%36 = icmp eq i64 %35, -1
br i1 %36, label %37, label %44
37: ; preds = %26
%38 = load i32, ptr %11, align 4
%39 = icmp eq i32 %38, -1
br i1 %39, label %40, label %43
40: ; preds = %37
%41 = load i32, ptr %10, align 4
%42 = call i32 @__set_errno(i32 noundef %41)
br label %43
43: ; preds = %40, %37
store i32 -1, ptr %5, align 4
br label %48
44: ; preds = %26
%45 = load i32, ptr %10, align 4
%46 = call i32 @__set_errno(i32 noundef %45)
%47 = load i32, ptr %11, align 4
store i32 %47, ptr %5, align 4
br label %48
48: ; preds = %44, %43, %25, %18
%49 = load i32, ptr %5, align 4
ret i32 %49
}
declare i64 @__lseek(i32 noundef, i64 noundef, i32 noundef) #1
declare i32 @__read(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @__set_errno(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/tmph7ez1q7c.c'
source_filename = "/tmp/tmph7ez1q7c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nrf24_spi_close(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i64, align 8
store i64 %0, ptr %3, align 8
%4 = load i64, ptr %3, align 8
%5 = icmp sge i64 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i64, ptr %3, align 8
%8 = call i32 @close(i64 noundef %7)
store i64 0, ptr %2, align 8
br label %10
9: ; preds = %1
store i64 -101, ptr %2, align 8
br label %10
10: ; preds = %9, %6
%11 = load i64, ptr %2, align 8
ret i64 %11
}
declare i32 @close(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/tmph7ez1q7c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nrf24_spi_close(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i64, align 8
store i64 %0, ptr %3, align 8
%4 = load i64, ptr %3, align 8
%5 = icmp sge i64 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i64, ptr %3, align 8
%8 = call i32 @close(i64 noundef %7)
store i64 0, ptr %2, align 8
br label %10
9: ; preds = %1
store i64 -101, ptr %2, align 8
br label %10
10: ; preds = %9, %6
%11 = load i64, ptr %2, align 8
ret i64 %11
}
declare i32 @close(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/tmpqcp8orz5.c'
source_filename = "/tmp/tmpqcp8orz5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 ptr, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %12, %0
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, 10
br i1 %6, label %7, label %15
7: ; preds = %4
%8 = load i32, ptr %3, align 4
%9 = call i32 @setp(ptr noundef %2, i32 noundef %8)
%10 = load ptr, ptr %2, align 8
%11 = call i32 %10()
br label %12
12: ; preds = %7
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %3, align 4
br label %4, !llvm.loop !6
15: ; preds = %4
ret i32 0
}
declare i32 @setp(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/tmpqcp8orz5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 ptr, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp slt i32 %4, 10
br i1 %5, label %.lr.ph, label %16
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %11
%7 = load i32, ptr %3, align 4
%8 = call i32 @setp(ptr noundef %2, i32 noundef %7)
%9 = load ptr, ptr %2, align 8
%10 = call i32 %9()
br label %11
11: ; preds = %6
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = icmp slt i32 %14, 10
br i1 %15, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %16
16: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @setp(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/tmpdhd1un97.c'
source_filename = "/tmp/tmpdhd1un97.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pause() #0 {
%1 = call i32 @syscall0(i32 noundef 8193)
ret void
}
declare i32 @syscall0(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/tmpdhd1un97.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pause() #0 {
%1 = call i32 @syscall0(i32 noundef 8193)
ret void
}
declare i32 @syscall0(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/tmp8d1u7lpi.c'
source_filename = "/tmp/tmp8d1u7lpi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @median(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca double, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store double 0.000000e+00, ptr %5, align 8
%7 = load i64, ptr %4, align 8
%8 = sub nsw i64 %7, 1
%9 = sdiv i64 %8, 2
store i64 %9, ptr %6, align 8
%10 = load ptr, ptr %3, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %21
12: ; preds = %2
%13 = load i64, ptr %4, align 8
%14 = icmp sgt i64 %13, 0
br i1 %14, label %15, label %21
15: ; preds = %12
%16 = load ptr, ptr %3, align 8
%17 = load i64, ptr %4, align 8
%18 = load i64, ptr %6, align 8
%19 = load i64, ptr %6, align 8
%20 = call double @rangk12(ptr noundef %16, i64 noundef %17, i64 noundef %18, i64 noundef %19)
store double %20, ptr %5, align 8
br label %21
21: ; preds = %15, %12, %2
%22 = load double, ptr %5, align 8
ret double %22
}
declare double @rangk12(ptr noundef, i64 noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8d1u7lpi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @median(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca double, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store double 0.000000e+00, ptr %5, align 8
%7 = load i64, ptr %4, align 8
%8 = sub nsw i64 %7, 1
%9 = sdiv i64 %8, 2
store i64 %9, ptr %6, align 8
%10 = load ptr, ptr %3, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %21
12: ; preds = %2
%13 = load i64, ptr %4, align 8
%14 = icmp sgt i64 %13, 0
br i1 %14, label %15, label %21
15: ; preds = %12
%16 = load ptr, ptr %3, align 8
%17 = load i64, ptr %4, align 8
%18 = load i64, ptr %6, align 8
%19 = load i64, ptr %6, align 8
%20 = call double @rangk12(ptr noundef %16, i64 noundef %17, i64 noundef %18, i64 noundef %19)
store double %20, ptr %5, align 8
br label %21
21: ; preds = %15, %12, %2
%22 = load double, ptr %5, align 8
ret double %22
}
declare double @rangk12(ptr noundef, i64 noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp__ilyslx.c'
source_filename = "/tmp/tmp__ilyslx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @slaCr2tf(i32 noundef %0, float noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca float, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store float %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %7, align 8
%10 = load ptr, ptr %8, align 8
%11 = call i32 @sla_cr2tf_(ptr noundef %5, ptr noundef %6, ptr noundef %9, ptr noundef %10, i32 noundef 1)
ret void
}
declare i32 @sla_cr2tf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp__ilyslx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @slaCr2tf(i32 noundef %0, float noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca float, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store float %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %7, align 8
%10 = load ptr, ptr %8, align 8
%11 = call i32 @sla_cr2tf_(ptr noundef %5, ptr noundef %6, ptr noundef %9, ptr noundef %10, i32 noundef 1)
ret void
}
declare i32 @sla_cr2tf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpaip6zb_b.c'
source_filename = "/tmp/tmpaip6zb_b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"USAGE : bench_write count\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp eq i32 %6, 2
br i1 %7, label %8, label %15
8: ; preds = %2
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 1
%11 = load ptr, ptr %10, align 8
%12 = call i32 @atol(ptr noundef %11)
%13 = call i32 @bench_write(i32 noundef %12)
%14 = sub nsw i32 0, %13
store i32 %14, ptr %3, align 4
br label %17
15: ; preds = %2
%16 = call i32 @printf(ptr noundef @.str)
store i32 7, ptr %3, align 4
br label %17
17: ; preds = %15, %8
%18 = load i32, ptr %3, align 4
ret i32 %18
}
declare i32 @bench_write(i32 noundef) #1
declare i32 @atol(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaip6zb_b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"USAGE : bench_write count\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp eq i32 %6, 2
br i1 %7, label %8, label %15
8: ; preds = %2
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 1
%11 = load ptr, ptr %10, align 8
%12 = call i32 @atol(ptr noundef %11)
%13 = call i32 @bench_write(i32 noundef %12)
%14 = sub nsw i32 0, %13
store i32 %14, ptr %3, align 4
br label %17
15: ; preds = %2
%16 = call i32 @printf(ptr noundef @.str)
store i32 7, ptr %3, align 4
br label %17
17: ; preds = %15, %8
%18 = load i32, ptr %3, align 4
ret i32 %18
}
declare i32 @bench_write(i32 noundef) #1
declare i32 @atol(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"}
|
; ModuleID = '/tmp/tmpudl5j8hr.c'
source_filename = "/tmp/tmpudl5j8hr.c"
target datalayout = "e-m:e-p270: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/tmpudl5j8hr.c"
target datalayout = "e-m:e-p270: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/tmpejt5laxe.c'
source_filename = "/tmp/tmpejt5laxe.c"
target datalayout = "e-m:e-p270: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 [25 x i8] c"usage: simdiff FILES...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
br label %1
1: ; preds = %0
%2 = load i32, ptr @stderr, align 4
%3 = call i32 @fprintf(i32 noundef %2, ptr noundef @.str)
br label %4
4: ; preds = %1
%5 = call i32 @exit(i32 noundef 2) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpejt5laxe.c"
target datalayout = "e-m:e-p270: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 [25 x i8] c"usage: simdiff FILES...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
br label %1
1: ; preds = %0
%2 = load i32, ptr @stderr, align 4
%3 = call i32 @fprintf(i32 noundef %2, ptr noundef @.str)
br label %4
4: ; preds = %1
%5 = call i32 @exit(i32 noundef 2) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1kxcgmtb.c'
source_filename = "/tmp/tmp1kxcgmtb.c"
target datalayout = "e-m:e-p270: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/tmp1kxcgmtb.c"
target datalayout = "e-m:e-p270: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/tmp4x9gi1xm.c'
source_filename = "/tmp/tmp4x9gi1xm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @foo(i32 noundef 0, i32 noundef 0)
%3 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @foo(i32 noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4x9gi1xm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @foo(i32 noundef 0, i32 noundef 0)
%3 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @foo(i32 noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmhow2q00.c'
source_filename = "/tmp/tmpmhow2q00.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [10 x i8] c"Game %d:\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c" (%d,%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 i32, align 4
%11 = alloca [1010 x i32], align 16
%12 = alloca [1010 x i32], align 16
%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 i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %10, align 4
br label %19
19: ; preds = %138, %2
%20 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
%21 = icmp eq i32 %20, 1
br i1 %21, label %22, label %25
22: ; preds = %19
%23 = load i32, ptr %6, align 4
%24 = icmp ne i32 %23, 0
br label %25
25: ; preds = %22, %19
%26 = phi i1 [ false, %19 ], [ %24, %22 ]
br i1 %26, label %27, label %139
27: ; preds = %25
%28 = load i32, ptr %10, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %10, align 4
%30 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %29)
store i32 0, ptr %13, align 4
br label %31
31: ; preds = %40, %27
%32 = load i32, ptr %13, align 4
%33 = load i32, ptr %6, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %43
35: ; preds = %31
%36 = load i32, ptr %13, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [1010 x i32], ptr %12, i64 0, i64 %37
%39 = call i32 @scanf(ptr noundef @.str, ptr noundef %38)
br label %40
40: ; preds = %35
%41 = load i32, ptr %13, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %13, align 4
br label %31, !llvm.loop !6
43: ; preds = %31
br label %44
44: ; preds = %135, %43
store i32 0, ptr %9, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %14, align 4
br label %45
45: ; preds = %74, %44
%46 = load i32, ptr %14, align 4
%47 = load i32, ptr %6, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %49, label %77
49: ; preds = %45
%50 = load i32, ptr %14, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [1010 x i32], ptr %11, i64 0, i64 %51
%53 = call i32 @scanf(ptr noundef @.str, ptr noundef %52)
%54 = load i32, ptr %14, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [1010 x i32], ptr %11, i64 0, i64 %55
%57 = load i32, ptr %56, align 4
%58 = icmp ne i32 %57, 0
br i1 %58, label %59, label %60
59: ; preds = %49
store i32 1, ptr %9, align 4
br label %60
60: ; preds = %59, %49
%61 = load i32, ptr %14, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [1010 x i32], ptr %11, i64 0, i64 %62
%64 = load i32, ptr %63, align 4
%65 = load i32, ptr %14, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [1010 x i32], ptr %12, i64 0, i64 %66
%68 = load i32, ptr %67, align 4
%69 = icmp eq i32 %64, %68
br i1 %69, label %70, label %73
70: ; preds = %60
%71 = load i32, ptr %7, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %7, align 4
br label %73
73: ; preds = %70, %60
br label %74
74: ; preds = %73
%75 = load i32, ptr %14, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %14, align 4
br label %45, !llvm.loop !8
77: ; preds = %45
store i32 0, ptr %15, align 4
br label %78
78: ; preds = %122, %77
%79 = load i32, ptr %15, align 4
%80 = icmp sle i32 %79, 9
br i1 %80, label %81, label %125
81: ; preds = %78
store i32 0, ptr %16, align 4
store i32 0, ptr %17, align 4
store i32 0, ptr %18, align 4
br label %82
82: ; preds = %107, %81
%83 = load i32, ptr %18, align 4
%84 = load i32, ptr %6, align 4
%85 = icmp slt i32 %83, %84
br i1 %85, label %86, label %110
86: ; preds = %82
%87 = load i32, ptr %18, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [1010 x i32], ptr %12, i64 0, i64 %88
%90 = load i32, ptr %89, align 4
%91 = load i32, ptr %15, align 4
%92 = icmp eq i32 %90, %91
br i1 %92, label %93, label %96
93: ; preds = %86
%94 = load i32, ptr %16, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %16, align 4
br label %96
96: ; preds = %93, %86
%97 = load i32, ptr %18, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [1010 x i32], ptr %11, i64 0, i64 %98
%100 = load i32, ptr %99, align 4
%101 = load i32, ptr %15, align 4
%102 = icmp eq i32 %100, %101
br i1 %102, label %103, label %106
103: ; preds = %96
%104 = load i32, ptr %17, align 4
%105 = add nsw i32 %104, 1
store i32 %105, ptr %17, align 4
br label %106
106: ; preds = %103, %96
br label %107
107: ; preds = %106
%108 = load i32, ptr %18, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr %18, align 4
br label %82, !llvm.loop !9
110: ; preds = %82
%111 = load i32, ptr %16, align 4
%112 = load i32, ptr %17, align 4
%113 = icmp slt i32 %111, %112
br i1 %113, label %114, label %116
114: ; preds = %110
%115 = load i32, ptr %16, align 4
br label %118
116: ; preds = %110
%117 = load i32, ptr %17, align 4
br label %118
118: ; preds = %116, %114
%119 = phi i32 [ %115, %114 ], [ %117, %116 ]
%120 = load i32, ptr %8, align 4
%121 = add nsw i32 %120, %119
store i32 %121, ptr %8, align 4
br label %122
122: ; preds = %118
%123 = load i32, ptr %15, align 4
%124 = add nsw i32 %123, 1
store i32 %124, ptr %15, align 4
br label %78, !llvm.loop !10
125: ; preds = %78
%126 = load i32, ptr %9, align 4
%127 = icmp ne i32 %126, 0
br i1 %127, label %128, label %134
128: ; preds = %125
%129 = load i32, ptr %7, align 4
%130 = load i32, ptr %8, align 4
%131 = load i32, ptr %7, align 4
%132 = sub nsw i32 %130, %131
%133 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %129, i32 noundef %132)
br label %134
134: ; preds = %128, %125
br label %135
135: ; preds = %134
%136 = load i32, ptr %9, align 4
%137 = icmp ne i32 %136, 0
br i1 %137, label %44, label %138, !llvm.loop !11
138: ; preds = %135
br label %19, !llvm.loop !12
139: ; preds = %25
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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmhow2q00.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [10 x i8] c"Game %d:\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c" (%d,%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 i32, align 4
%11 = alloca [1010 x i32], align 16
%12 = alloca [1010 x i32], align 16
%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 i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %10, align 4
br label %19
19: ; preds = %145, %2
%20 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
%21 = icmp eq i32 %20, 1
br i1 %21, label %22, label %25
22: ; preds = %19
%23 = load i32, ptr %6, align 4
%24 = icmp ne i32 %23, 0
br label %25
25: ; preds = %22, %19
%26 = phi i1 [ false, %19 ], [ %24, %22 ]
br i1 %26, label %27, label %146
27: ; preds = %25
%28 = load i32, ptr %10, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %10, align 4
%30 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %29)
store i32 0, ptr %13, align 4
%31 = load i32, ptr %13, align 4
%32 = load i32, ptr %6, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %.lr.ph, label %45
.lr.ph: ; preds = %27
br label %34
34: ; preds = %.lr.ph, %39
%35 = load i32, ptr %13, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [1010 x i32], ptr %12, i64 0, i64 %36
%38 = call i32 @scanf(ptr noundef @.str, ptr noundef %37)
br label %39
39: ; preds = %34
%40 = load i32, ptr %13, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %13, align 4
%42 = load i32, ptr %13, align 4
%43 = load i32, ptr %6, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %34, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %39
br label %45
45: ; preds = %._crit_edge, %27
br label %46
46: ; preds = %142, %45
store i32 0, ptr %9, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %14, align 4
%47 = load i32, ptr %14, align 4
%48 = load i32, ptr %6, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %.lr.ph2, label %81
.lr.ph2: ; preds = %46
br label %50
50: ; preds = %.lr.ph2, %75
%51 = load i32, ptr %14, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [1010 x i32], ptr %11, i64 0, i64 %52
%54 = call i32 @scanf(ptr noundef @.str, ptr noundef %53)
%55 = load i32, ptr %14, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [1010 x i32], ptr %11, i64 0, i64 %56
%58 = load i32, ptr %57, align 4
%59 = icmp ne i32 %58, 0
br i1 %59, label %60, label %61
60: ; preds = %50
store i32 1, ptr %9, align 4
br label %61
61: ; preds = %60, %50
%62 = load i32, ptr %14, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [1010 x i32], ptr %11, i64 0, i64 %63
%65 = load i32, ptr %64, align 4
%66 = load i32, ptr %14, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [1010 x i32], ptr %12, i64 0, i64 %67
%69 = load i32, ptr %68, align 4
%70 = icmp eq i32 %65, %69
br i1 %70, label %71, label %74
71: ; preds = %61
%72 = load i32, ptr %7, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %7, align 4
br label %74
74: ; preds = %71, %61
br label %75
75: ; preds = %74
%76 = load i32, ptr %14, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %14, align 4
%78 = load i32, ptr %14, align 4
%79 = load i32, ptr %6, align 4
%80 = icmp slt i32 %78, %79
br i1 %80, label %50, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %75
br label %81
81: ; preds = %._crit_edge3, %46
store i32 0, ptr %15, align 4
%82 = load i32, ptr %15, align 4
%83 = icmp sle i32 %82, 9
br i1 %83, label %.lr.ph8, label %132
.lr.ph8: ; preds = %81
br label %84
84: ; preds = %.lr.ph8, %127
store i32 0, ptr %16, align 4
store i32 0, ptr %17, align 4
store i32 0, ptr %18, align 4
%85 = load i32, ptr %18, align 4
%86 = load i32, ptr %6, align 4
%87 = icmp slt i32 %85, %86
br i1 %87, label %.lr.ph5, label %115
.lr.ph5: ; preds = %84
br label %88
88: ; preds = %.lr.ph5, %109
%89 = load i32, ptr %18, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [1010 x i32], ptr %12, i64 0, i64 %90
%92 = load i32, ptr %91, align 4
%93 = load i32, ptr %15, align 4
%94 = icmp eq i32 %92, %93
br i1 %94, label %95, label %98
95: ; preds = %88
%96 = load i32, ptr %16, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %16, align 4
br label %98
98: ; preds = %95, %88
%99 = load i32, ptr %18, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [1010 x i32], ptr %11, i64 0, i64 %100
%102 = load i32, ptr %101, align 4
%103 = load i32, ptr %15, align 4
%104 = icmp eq i32 %102, %103
br i1 %104, label %105, label %108
105: ; preds = %98
%106 = load i32, ptr %17, align 4
%107 = add nsw i32 %106, 1
store i32 %107, ptr %17, align 4
br label %108
108: ; preds = %105, %98
br label %109
109: ; preds = %108
%110 = load i32, ptr %18, align 4
%111 = add nsw i32 %110, 1
store i32 %111, ptr %18, align 4
%112 = load i32, ptr %18, align 4
%113 = load i32, ptr %6, align 4
%114 = icmp slt i32 %112, %113
br i1 %114, label %88, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %109
br label %115
115: ; preds = %._crit_edge6, %84
%116 = load i32, ptr %16, align 4
%117 = load i32, ptr %17, align 4
%118 = icmp slt i32 %116, %117
br i1 %118, label %119, label %121
119: ; preds = %115
%120 = load i32, ptr %16, align 4
br label %123
121: ; preds = %115
%122 = load i32, ptr %17, align 4
br label %123
123: ; preds = %121, %119
%124 = phi i32 [ %120, %119 ], [ %122, %121 ]
%125 = load i32, ptr %8, align 4
%126 = add nsw i32 %125, %124
store i32 %126, ptr %8, align 4
br label %127
127: ; preds = %123
%128 = load i32, ptr %15, align 4
%129 = add nsw i32 %128, 1
store i32 %129, ptr %15, align 4
%130 = load i32, ptr %15, align 4
%131 = icmp sle i32 %130, 9
br i1 %131, label %84, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %127
br label %132
132: ; preds = %._crit_edge9, %81
%133 = load i32, ptr %9, align 4
%134 = icmp ne i32 %133, 0
br i1 %134, label %135, label %141
135: ; preds = %132
%136 = load i32, ptr %7, align 4
%137 = load i32, ptr %8, align 4
%138 = load i32, ptr %7, align 4
%139 = sub nsw i32 %137, %138
%140 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %136, i32 noundef %139)
br label %141
141: ; preds = %135, %132
br label %142
142: ; preds = %141
%143 = load i32, ptr %9, align 4
%144 = icmp ne i32 %143, 0
br i1 %144, label %46, label %145, !llvm.loop !11
145: ; preds = %142
br label %19, !llvm.loop !12
146: ; preds = %25
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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmpva_xxnfh.c'
source_filename = "/tmp/tmpva_xxnfh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i64 (...) @jump()
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %5
4: ; preds = %0
br label %7
5: ; preds = %0
%6 = call i32 (...) @foo()
br label %7
7: ; preds = %5, %4
%8 = call i32 (...) @foo()
ret i32 0
}
declare i64 @jump(...) #1
declare i32 @foo(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpva_xxnfh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i64 (...) @jump()
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %5
4: ; preds = %0
br label %7
5: ; preds = %0
%6 = call i32 (...) @foo()
br label %7
7: ; preds = %5, %4
%8 = call i32 (...) @foo()
ret i32 0
}
declare i64 @jump(...) #1
declare i32 @foo(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjnfumov2.c'
source_filename = "/tmp/tmpjnfumov2.c"
target datalayout = "e-m:e-p270: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/tmpjnfumov2.c"
target datalayout = "e-m:e-p270: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/tmpbp5h142p.c'
source_filename = "/tmp/tmpbp5h142p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EVP_MAX_MD_SIZE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"%02x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @caslib_signature(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, i64 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca ptr, align 8
%13 = alloca i64, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca i64, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
store ptr %0, ptr %8, align 8
store i64 %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store i64 %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store i64 %5, ptr %13, align 8
%21 = call ptr (...) @EVP_sha1()
store ptr %21, ptr %14, align 8
%22 = load i32, ptr @EVP_MAX_MD_SIZE, align 4
%23 = zext i32 %22 to i64
%24 = call ptr @llvm.stacksave()
store ptr %24, ptr %15, align 8
%25 = alloca i8, i64 %23, align 16
store i64 %23, ptr %16, align 8
%26 = load ptr, ptr %14, align 8
%27 = load ptr, ptr %10, align 8
%28 = load i64, ptr %11, align 8
%29 = trunc i64 %28 to i32
%30 = load ptr, ptr %12, align 8
%31 = load i64, ptr %13, align 8
%32 = trunc i64 %31 to i32
%33 = call ptr @HMAC(ptr noundef %26, ptr noundef %27, i32 noundef %29, ptr noundef %30, i32 noundef %32, ptr noundef %25, ptr noundef %17)
%34 = icmp eq ptr %33, null
br i1 %34, label %35, label %36
35: ; preds = %6
store i32 -1, ptr %7, align 4
store i32 1, ptr %20, align 4
br label %75
36: ; preds = %6
%37 = load i32, ptr %17, align 4
%38 = mul i32 2, %37
%39 = icmp eq i32 40, %38
%40 = zext i1 %39 to i32
%41 = call i32 @assert(i32 noundef %40)
store i32 0, ptr %18, align 4
br label %42
42: ; preds = %71, %36
%43 = load i32, ptr %18, align 4
%44 = load i32, ptr %17, align 4
%45 = icmp ult i32 %43, %44
br i1 %45, label %46, label %74
46: ; preds = %42
%47 = load i32, ptr %18, align 4
%48 = mul i32 %47, 2
store i32 %48, ptr %19, align 4
%49 = load i32, ptr %19, align 4
%50 = zext i32 %49 to i64
%51 = load i64, ptr %9, align 8
%52 = icmp ult i64 %50, %51
br i1 %52, label %53, label %70
53: ; preds = %46
%54 = load ptr, ptr %8, align 8
%55 = load i32, ptr %19, align 4
%56 = zext i32 %55 to i64
%57 = getelementptr inbounds i8, ptr %54, i64 %56
%58 = load i64, ptr %9, align 8
%59 = load i32, ptr %19, align 4
%60 = zext i32 %59 to i64
%61 = sub i64 %58, %60
%62 = load i32, ptr %18, align 4
%63 = zext i32 %62 to i64
%64 = getelementptr inbounds i8, ptr %25, i64 %63
%65 = load i8, ptr %64, align 1
%66 = sext i8 %65 to i32
%67 = and i32 %66, 255
%68 = trunc i32 %67 to i8
%69 = call i32 @snprintf(ptr noundef %57, i64 noundef %61, ptr noundef @.str, i8 noundef signext %68)
br label %70
70: ; preds = %53, %46
br label %71
71: ; preds = %70
%72 = load i32, ptr %18, align 4
%73 = add i32 %72, 1
store i32 %73, ptr %18, align 4
br label %42, !llvm.loop !6
74: ; preds = %42
store i32 0, ptr %7, align 4
store i32 1, ptr %20, align 4
br label %75
75: ; preds = %74, %35
%76 = load ptr, ptr %15, align 8
call void @llvm.stackrestore(ptr %76)
%77 = load i32, ptr %7, align 4
ret i32 %77
}
declare ptr @EVP_sha1(...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare ptr @HMAC(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, i8 noundef signext) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbp5h142p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EVP_MAX_MD_SIZE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"%02x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @caslib_signature(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, i64 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca ptr, align 8
%13 = alloca i64, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca i64, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
store ptr %0, ptr %8, align 8
store i64 %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store i64 %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store i64 %5, ptr %13, align 8
%21 = call ptr (...) @EVP_sha1()
store ptr %21, ptr %14, align 8
%22 = load i32, ptr @EVP_MAX_MD_SIZE, align 4
%23 = zext i32 %22 to i64
%24 = call ptr @llvm.stacksave()
store ptr %24, ptr %15, align 8
%25 = alloca i8, i64 %23, align 16
store i64 %23, ptr %16, align 8
%26 = load ptr, ptr %14, align 8
%27 = load ptr, ptr %10, align 8
%28 = load i64, ptr %11, align 8
%29 = trunc i64 %28 to i32
%30 = load ptr, ptr %12, align 8
%31 = load i64, ptr %13, align 8
%32 = trunc i64 %31 to i32
%33 = call ptr @HMAC(ptr noundef %26, ptr noundef %27, i32 noundef %29, ptr noundef %30, i32 noundef %32, ptr noundef %25, ptr noundef %17)
%34 = icmp eq ptr %33, null
br i1 %34, label %35, label %36
35: ; preds = %6
store i32 -1, ptr %7, align 4
store i32 1, ptr %20, align 4
br label %77
36: ; preds = %6
%37 = load i32, ptr %17, align 4
%38 = mul i32 2, %37
%39 = icmp eq i32 40, %38
%40 = zext i1 %39 to i32
%41 = call i32 @assert(i32 noundef %40)
store i32 0, ptr %18, align 4
%42 = load i32, ptr %18, align 4
%43 = load i32, ptr %17, align 4
%44 = icmp ult i32 %42, %43
br i1 %44, label %.lr.ph, label %76
.lr.ph: ; preds = %36
br label %45
45: ; preds = %.lr.ph, %70
%46 = load i32, ptr %18, align 4
%47 = mul i32 %46, 2
store i32 %47, ptr %19, align 4
%48 = load i32, ptr %19, align 4
%49 = zext i32 %48 to i64
%50 = load i64, ptr %9, align 8
%51 = icmp ult i64 %49, %50
br i1 %51, label %52, label %69
52: ; preds = %45
%53 = load ptr, ptr %8, align 8
%54 = load i32, ptr %19, align 4
%55 = zext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %53, i64 %55
%57 = load i64, ptr %9, align 8
%58 = load i32, ptr %19, align 4
%59 = zext i32 %58 to i64
%60 = sub i64 %57, %59
%61 = load i32, ptr %18, align 4
%62 = zext i32 %61 to i64
%63 = getelementptr inbounds i8, ptr %25, i64 %62
%64 = load i8, ptr %63, align 1
%65 = sext i8 %64 to i32
%66 = and i32 %65, 255
%67 = trunc i32 %66 to i8
%68 = call i32 @snprintf(ptr noundef %56, i64 noundef %60, ptr noundef @.str, i8 noundef signext %67)
br label %69
69: ; preds = %52, %45
br label %70
70: ; preds = %69
%71 = load i32, ptr %18, align 4
%72 = add i32 %71, 1
store i32 %72, ptr %18, align 4
%73 = load i32, ptr %18, align 4
%74 = load i32, ptr %17, align 4
%75 = icmp ult i32 %73, %74
br i1 %75, label %45, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %70
br label %76
76: ; preds = %._crit_edge, %36
store i32 0, ptr %7, align 4
store i32 1, ptr %20, align 4
br label %77
77: ; preds = %76, %35
%78 = load ptr, ptr %15, align 8
call void @llvm.stackrestore(ptr %78)
%79 = load i32, ptr %7, align 4
ret i32 %79
}
declare ptr @EVP_sha1(...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare ptr @HMAC(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, i8 noundef signext) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpapmh5vpf.c'
source_filename = "/tmp/tmpapmh5vpf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%hhs\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"foo\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%1$zp\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%ls\00", align 1
@.str.4 = private unnamed_addr constant [4 x i32] [i32 102, i32 111, i32 111, i32 0], align 4
@.str.5 = private unnamed_addr constant [7 x i8] c"%#.2Lf\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"%#p\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"%0d\00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"%#n\00", align 1
@.str.9 = private unnamed_addr constant [4 x i8] c"%-n\00", align 1
@.str.10 = private unnamed_addr constant [4 x i8] c"%-p\00", align 1
@.str.11 = private unnamed_addr constant [5 x i8] c"%.2c\00", align 1
@.str.12 = private unnamed_addr constant [4 x i8] c"%1n\00", align 1
@.str.13 = private unnamed_addr constant [5 x i8] c"%.9n\00", align 1
@.str.14 = private unnamed_addr constant [5 x i8] c"% +f\00", align 1
@.str.15 = private unnamed_addr constant [5 x i8] c"%+ f\00", align 1
@.str.16 = private unnamed_addr constant [5 x i8] c"%0-f\00", align 1
@.str.17 = private unnamed_addr constant [5 x i8] c"%-0f\00", align 1
@.str.18 = private unnamed_addr constant [5 x i8] c"%-+f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @bug7377_bad_length_mod_usage() #0 {
%1 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%2 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef null)
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef @.str.4)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, x86_fp80 noundef 0xK3FFF9DF3B645A1CAC000)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef null)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef -1)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef null)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef null)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef null)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef 97)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, ptr noundef null)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, ptr noundef null)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, double noundef 1.230000e+00)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, double noundef 1.230000e+00)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef 1.230000e+00)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, double noundef 1.230000e+00)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 1.230000e+00)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpapmh5vpf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%hhs\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"foo\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%1$zp\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%ls\00", align 1
@.str.4 = private unnamed_addr constant [4 x i32] [i32 102, i32 111, i32 111, i32 0], align 4
@.str.5 = private unnamed_addr constant [7 x i8] c"%#.2Lf\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"%#p\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"%0d\00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"%#n\00", align 1
@.str.9 = private unnamed_addr constant [4 x i8] c"%-n\00", align 1
@.str.10 = private unnamed_addr constant [4 x i8] c"%-p\00", align 1
@.str.11 = private unnamed_addr constant [5 x i8] c"%.2c\00", align 1
@.str.12 = private unnamed_addr constant [4 x i8] c"%1n\00", align 1
@.str.13 = private unnamed_addr constant [5 x i8] c"%.9n\00", align 1
@.str.14 = private unnamed_addr constant [5 x i8] c"% +f\00", align 1
@.str.15 = private unnamed_addr constant [5 x i8] c"%+ f\00", align 1
@.str.16 = private unnamed_addr constant [5 x i8] c"%0-f\00", align 1
@.str.17 = private unnamed_addr constant [5 x i8] c"%-0f\00", align 1
@.str.18 = private unnamed_addr constant [5 x i8] c"%-+f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @bug7377_bad_length_mod_usage() #0 {
%1 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%2 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef null)
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef @.str.4)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, x86_fp80 noundef 0xK3FFF9DF3B645A1CAC000)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef null)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef -1)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef null)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef null)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef null)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef 97)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, ptr noundef null)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, ptr noundef null)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, double noundef 1.230000e+00)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, double noundef 1.230000e+00)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef 1.230000e+00)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, double noundef 1.230000e+00)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 1.230000e+00)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl4yqhlo4.c'
source_filename = "/tmp/tmpl4yqhlo4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @block_realloc(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = call ptr @realloc(ptr noundef %5, i64 noundef %6) #2
ret ptr %7
}
; Function Attrs: allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { allocsize(1) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { allocsize(1) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl4yqhlo4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @block_realloc(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = call ptr @realloc(ptr noundef %5, i64 noundef %6) #2
ret ptr %7
}
; Function Attrs: allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { allocsize(1) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { allocsize(1) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpowldhabn.c'
source_filename = "/tmp/tmpowldhabn.c"
target datalayout = "e-m:e-p270: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/tmpowldhabn.c"
target datalayout = "e-m:e-p270: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/tmpweiw1vvh.c'
source_filename = "/tmp/tmpweiw1vvh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getbordertitle() #0 {
%1 = call i64 (...) @GetBorderTitle64()
ret i64 %1
}
declare i64 @GetBorderTitle64(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpweiw1vvh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getbordertitle() #0 {
%1 = call i64 (...) @GetBorderTitle64()
ret i64 %1
}
declare i64 @GetBorderTitle64(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp47i9fqu2.c'
source_filename = "/tmp/tmp47i9fqu2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @vp8_loop_filter_vertical_edge_simd(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i8, align 1
%15 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
store i32 0, ptr %13, align 4
store i8 0, ptr %14, align 1
store i32 0, ptr %15, align 4
br label %16
16: ; preds = %78, %6
%17 = load ptr, ptr %10, align 8
%18 = getelementptr inbounds i8, ptr %17, i64 0
%19 = load i8, ptr %18, align 1
%20 = load ptr, ptr %9, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 0
%22 = load i8, ptr %21, align 1
%23 = load ptr, ptr %7, align 8
%24 = getelementptr inbounds i8, ptr %23, i64 -4
%25 = load i8, ptr %24, align 1
%26 = load ptr, ptr %7, align 8
%27 = getelementptr inbounds i8, ptr %26, i64 -3
%28 = load i8, ptr %27, align 1
%29 = load ptr, ptr %7, align 8
%30 = getelementptr inbounds i8, ptr %29, i64 -2
%31 = load i8, ptr %30, align 1
%32 = load ptr, ptr %7, align 8
%33 = getelementptr inbounds i8, ptr %32, i64 -1
%34 = load i8, ptr %33, align 1
%35 = load ptr, ptr %7, align 8
%36 = getelementptr inbounds i8, ptr %35, i64 0
%37 = load i8, ptr %36, align 1
%38 = load ptr, ptr %7, align 8
%39 = getelementptr inbounds i8, ptr %38, i64 1
%40 = load i8, ptr %39, align 1
%41 = load ptr, ptr %7, align 8
%42 = getelementptr inbounds i8, ptr %41, i64 2
%43 = load i8, ptr %42, align 1
%44 = load ptr, ptr %7, align 8
%45 = getelementptr inbounds i8, ptr %44, i64 3
%46 = load i8, ptr %45, align 1
%47 = call signext i8 @vp8_filter_mask(i8 noundef zeroext %19, i8 noundef zeroext %22, i8 noundef zeroext %25, i8 noundef zeroext %28, i8 noundef zeroext %31, i8 noundef zeroext %34, i8 noundef zeroext %37, i8 noundef zeroext %40, i8 noundef zeroext %43, i8 noundef zeroext %46)
store i8 %47, ptr %14, align 1
%48 = load ptr, ptr %11, align 8
%49 = getelementptr inbounds i8, ptr %48, i64 0
%50 = load i8, ptr %49, align 1
%51 = load ptr, ptr %7, align 8
%52 = getelementptr inbounds i8, ptr %51, i64 -2
%53 = load i8, ptr %52, align 1
%54 = load ptr, ptr %7, align 8
%55 = getelementptr inbounds i8, ptr %54, i64 -1
%56 = load i8, ptr %55, align 1
%57 = load ptr, ptr %7, align 8
%58 = getelementptr inbounds i8, ptr %57, i64 0
%59 = load i8, ptr %58, align 1
%60 = load ptr, ptr %7, align 8
%61 = getelementptr inbounds i8, ptr %60, i64 1
%62 = load i8, ptr %61, align 1
%63 = call i32 @vp8_hevmask(i8 noundef zeroext %50, i8 noundef zeroext %53, i8 noundef zeroext %56, i8 noundef zeroext %59, i8 noundef zeroext %62)
store i32 %63, ptr %13, align 4
%64 = load i8, ptr %14, align 1
%65 = load i32, ptr %13, align 4
%66 = load ptr, ptr %7, align 8
%67 = getelementptr inbounds i8, ptr %66, i64 -2
%68 = load ptr, ptr %7, align 8
%69 = getelementptr inbounds i8, ptr %68, i64 -1
%70 = load ptr, ptr %7, align 8
%71 = load ptr, ptr %7, align 8
%72 = getelementptr inbounds i8, ptr %71, i64 1
%73 = call i32 @vp8_filter(i8 noundef signext %64, i32 noundef %65, ptr noundef %67, ptr noundef %69, ptr noundef %70, ptr noundef %72)
%74 = load i32, ptr %8, align 4
%75 = load ptr, ptr %7, align 8
%76 = sext i32 %74 to i64
%77 = getelementptr inbounds i8, ptr %75, i64 %76
store ptr %77, ptr %7, align 8
br label %78
78: ; preds = %16
%79 = load i32, ptr %15, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %15, align 4
%81 = load i32, ptr %12, align 4
%82 = mul nsw i32 %81, 8
%83 = icmp slt i32 %80, %82
br i1 %83, label %16, label %84, !llvm.loop !6
84: ; preds = %78
ret void
}
declare signext i8 @vp8_filter_mask(i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #1
declare i32 @vp8_hevmask(i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #1
declare i32 @vp8_filter(i8 noundef signext, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp47i9fqu2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @vp8_loop_filter_vertical_edge_simd(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i8, align 1
%15 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
store i32 0, ptr %13, align 4
store i8 0, ptr %14, align 1
store i32 0, ptr %15, align 4
br label %16
16: ; preds = %78, %6
%17 = load ptr, ptr %10, align 8
%18 = getelementptr inbounds i8, ptr %17, i64 0
%19 = load i8, ptr %18, align 1
%20 = load ptr, ptr %9, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 0
%22 = load i8, ptr %21, align 1
%23 = load ptr, ptr %7, align 8
%24 = getelementptr inbounds i8, ptr %23, i64 -4
%25 = load i8, ptr %24, align 1
%26 = load ptr, ptr %7, align 8
%27 = getelementptr inbounds i8, ptr %26, i64 -3
%28 = load i8, ptr %27, align 1
%29 = load ptr, ptr %7, align 8
%30 = getelementptr inbounds i8, ptr %29, i64 -2
%31 = load i8, ptr %30, align 1
%32 = load ptr, ptr %7, align 8
%33 = getelementptr inbounds i8, ptr %32, i64 -1
%34 = load i8, ptr %33, align 1
%35 = load ptr, ptr %7, align 8
%36 = getelementptr inbounds i8, ptr %35, i64 0
%37 = load i8, ptr %36, align 1
%38 = load ptr, ptr %7, align 8
%39 = getelementptr inbounds i8, ptr %38, i64 1
%40 = load i8, ptr %39, align 1
%41 = load ptr, ptr %7, align 8
%42 = getelementptr inbounds i8, ptr %41, i64 2
%43 = load i8, ptr %42, align 1
%44 = load ptr, ptr %7, align 8
%45 = getelementptr inbounds i8, ptr %44, i64 3
%46 = load i8, ptr %45, align 1
%47 = call signext i8 @vp8_filter_mask(i8 noundef zeroext %19, i8 noundef zeroext %22, i8 noundef zeroext %25, i8 noundef zeroext %28, i8 noundef zeroext %31, i8 noundef zeroext %34, i8 noundef zeroext %37, i8 noundef zeroext %40, i8 noundef zeroext %43, i8 noundef zeroext %46)
store i8 %47, ptr %14, align 1
%48 = load ptr, ptr %11, align 8
%49 = getelementptr inbounds i8, ptr %48, i64 0
%50 = load i8, ptr %49, align 1
%51 = load ptr, ptr %7, align 8
%52 = getelementptr inbounds i8, ptr %51, i64 -2
%53 = load i8, ptr %52, align 1
%54 = load ptr, ptr %7, align 8
%55 = getelementptr inbounds i8, ptr %54, i64 -1
%56 = load i8, ptr %55, align 1
%57 = load ptr, ptr %7, align 8
%58 = getelementptr inbounds i8, ptr %57, i64 0
%59 = load i8, ptr %58, align 1
%60 = load ptr, ptr %7, align 8
%61 = getelementptr inbounds i8, ptr %60, i64 1
%62 = load i8, ptr %61, align 1
%63 = call i32 @vp8_hevmask(i8 noundef zeroext %50, i8 noundef zeroext %53, i8 noundef zeroext %56, i8 noundef zeroext %59, i8 noundef zeroext %62)
store i32 %63, ptr %13, align 4
%64 = load i8, ptr %14, align 1
%65 = load i32, ptr %13, align 4
%66 = load ptr, ptr %7, align 8
%67 = getelementptr inbounds i8, ptr %66, i64 -2
%68 = load ptr, ptr %7, align 8
%69 = getelementptr inbounds i8, ptr %68, i64 -1
%70 = load ptr, ptr %7, align 8
%71 = load ptr, ptr %7, align 8
%72 = getelementptr inbounds i8, ptr %71, i64 1
%73 = call i32 @vp8_filter(i8 noundef signext %64, i32 noundef %65, ptr noundef %67, ptr noundef %69, ptr noundef %70, ptr noundef %72)
%74 = load i32, ptr %8, align 4
%75 = load ptr, ptr %7, align 8
%76 = sext i32 %74 to i64
%77 = getelementptr inbounds i8, ptr %75, i64 %76
store ptr %77, ptr %7, align 8
br label %78
78: ; preds = %16
%79 = load i32, ptr %15, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %15, align 4
%81 = load i32, ptr %12, align 4
%82 = mul nsw i32 %81, 8
%83 = icmp slt i32 %80, %82
br i1 %83, label %16, label %84, !llvm.loop !6
84: ; preds = %78
ret void
}
declare signext i8 @vp8_filter_mask(i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #1
declare i32 @vp8_hevmask(i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #1
declare i32 @vp8_filter(i8 noundef signext, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp1rlumhhb.c'
source_filename = "/tmp/tmp1rlumhhb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Yay\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call ptr @malloc(i32 noundef 400)
store ptr %7, ptr %6, align 8
%8 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare ptr @malloc(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/tmp1rlumhhb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Yay\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call ptr @malloc(i32 noundef 400)
store ptr %7, ptr %6, align 8
%8 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare ptr @malloc(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/tmp0uuw4d41.c'
source_filename = "/tmp/tmp0uuw4d41.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"[%d] fork yapilamadi\0A\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"parent process calisiyor\0A\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"child id: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"child process calisiyor\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test1() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 10, ptr %2, align 4
%4 = call i32 (...) @fork()
store i32 %4, ptr %1, align 4
%5 = load i32, ptr %1, align 4
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %0
%8 = call i32 (...) @getpid()
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %8)
ret i32 -1
10: ; preds = %0
%11 = load i32, ptr %1, align 4
%12 = icmp sgt i32 %11, 0
br i1 %12, label %13, label %18
13: ; preds = %10
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%15 = load i32, ptr %1, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %15)
%17 = call i32 @wait(ptr noundef %3)
br label %25
18: ; preds = %10
%19 = load i32, ptr %1, align 4
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %18
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%23 = call i32 @sleep(i32 noundef 1)
br label %24
24: ; preds = %21, %18
br label %25
25: ; preds = %24, %13
%26 = load i32, ptr %2, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %2, align 4
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %27)
%29 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @fork(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @getpid(...) #1
declare i32 @wait(ptr noundef) #1
declare i32 @sleep(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0uuw4d41.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"[%d] fork yapilamadi\0A\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"parent process calisiyor\0A\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"child id: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"child process calisiyor\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test1() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 10, ptr %2, align 4
%4 = call i32 (...) @fork()
store i32 %4, ptr %1, align 4
%5 = load i32, ptr %1, align 4
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %0
%8 = call i32 (...) @getpid()
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %8)
ret i32 -1
10: ; preds = %0
%11 = load i32, ptr %1, align 4
%12 = icmp sgt i32 %11, 0
br i1 %12, label %13, label %18
13: ; preds = %10
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%15 = load i32, ptr %1, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %15)
%17 = call i32 @wait(ptr noundef %3)
br label %25
18: ; preds = %10
%19 = load i32, ptr %1, align 4
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %18
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%23 = call i32 @sleep(i32 noundef 1)
br label %24
24: ; preds = %21, %18
br label %25
25: ; preds = %24, %13
%26 = load i32, ptr %2, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %2, align 4
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %27)
%29 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @fork(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @getpid(...) #1
declare i32 @wait(ptr noundef) #1
declare i32 @sleep(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp16xj8fle.c'
source_filename = "/tmp/tmp16xj8fle.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c" We will count the number of letters\0A\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"-------------------------------------\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Tell me the word: \0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c"The letter %d is %c\0A\00", align 1
@.str.5 = private unnamed_addr constant [29 x i8] c"|The number of words is: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [50 x i8], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%8 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %7)
store i32 0, ptr %3, align 4
br label %9
9: ; preds = %24, %0
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %11
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %27
16: ; preds = %9
%17 = load i32, ptr %3, align 4
%18 = load i32, ptr %3, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %17, i32 noundef %22)
br label %24
24: ; preds = %16
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %3, align 4
br label %9, !llvm.loop !6
27: ; preds = %9
%28 = load i32, ptr %3, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %28)
%30 = load i32, ptr %1, align 4
ret i32 %30
}
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp16xj8fle.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c" We will count the number of letters\0A\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"-------------------------------------\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Tell me the word: \0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c"The letter %d is %c\0A\00", align 1
@.str.5 = private unnamed_addr constant [29 x i8] c"|The number of words is: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [50 x i8], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%8 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %7)
store i32 0, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %10
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 0
br i1 %14, label %.lr.ph, label %32
.lr.ph: ; preds = %0
br label %15
15: ; preds = %.lr.ph, %23
%16 = load i32, ptr %3, align 4
%17 = load i32, ptr %3, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %16, i32 noundef %21)
br label %23
23: ; preds = %15
%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 = sext i32 %26 to i64
%28 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %27
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp ne i32 %30, 0
br i1 %31, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %32
32: ; preds = %._crit_edge, %0
%33 = load i32, ptr %3, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %33)
%35 = load i32, ptr %1, align 4
ret i32 %35
}
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"}
|
; ModuleID = '/tmp/tmp820vsbjf.c'
source_filename = "/tmp/tmp820vsbjf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @entrada()
%3 = call i32 (...) @saida()
ret i32 0
}
declare i32 @entrada(...) #1
declare i32 @saida(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp820vsbjf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @entrada()
%3 = call i32 (...) @saida()
ret i32 0
}
declare i32 @entrada(...) #1
declare i32 @saida(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg7ocrruk.c'
source_filename = "/tmp/tmpg7ocrruk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_array(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
store i32 0, ptr %7, align 4
%8 = load ptr, ptr %6, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %13
10: ; preds = %3
%11 = load ptr, ptr %6, align 8
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %11)
br label %13
13: ; preds = %10, %3
store i32 0, ptr %7, align 4
br label %14
14: ; preds = %25, %13
%15 = load i32, ptr %7, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %28
18: ; preds = %14
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %19, i64 %21
%23 = load i32, ptr %22, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %23)
br label %25
25: ; preds = %18
%26 = load i32, ptr %7, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %7, align 4
br label %14, !llvm.loop !6
28: ; preds = %14
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg7ocrruk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_array(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
store i32 0, ptr %7, align 4
%8 = load ptr, ptr %6, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %13
10: ; preds = %3
%11 = load ptr, ptr %6, align 8
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %11)
br label %13
13: ; preds = %10, %3
store i32 0, ptr %7, align 4
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %5, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph, label %30
.lr.ph: ; preds = %13
br label %17
17: ; preds = %.lr.ph, %24
%18 = load ptr, ptr %4, align 8
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %18, i64 %20
%22 = load i32, ptr %21, align 4
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %22)
br label %24
24: ; preds = %17
%25 = load i32, ptr %7, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %7, align 4
%27 = load i32, ptr %7, align 4
%28 = load i32, ptr %5, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %30
30: ; preds = %._crit_edge, %13
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpiis3ge34.c'
source_filename = "/tmp/tmpiis3ge34.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Hi, how are you?\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiis3ge34.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Hi, how are you?\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppnh3n1hu.c'
source_filename = "/tmp/tmppnh3n1hu.c"
target datalayout = "e-m:e-p270: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/tmppnh3n1hu.c"
target datalayout = "e-m:e-p270: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/tmpmsd2uuvl.c'
source_filename = "/tmp/tmpmsd2uuvl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"1234\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%2.2x\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [16 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca [3 x i8], align 1
%10 = alloca [33 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %6, align 8
call void @llvm.memset.p0.i64(ptr align 1 %9, i8 0, i64 3, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 33, i1 false)
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %6, align 8
%13 = call i32 @strlen(ptr noundef %12)
%14 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%15 = call i32 @MD5(ptr noundef %11, i32 noundef %13, ptr noundef %14)
store i32 0, ptr %8, align 4
br label %16
16: ; preds = %29, %2
%17 = load i32, ptr %8, align 4
%18 = icmp slt i32 %17, 16
br i1 %18, label %19, label %32
19: ; preds = %16
%20 = getelementptr inbounds [3 x i8], ptr %9, i64 0, i64 0
%21 = load i32, ptr %8, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 %22
%24 = load i8, ptr %23, align 1
%25 = call i32 @sprintf(ptr noundef %20, ptr noundef @.str.1, i8 noundef zeroext %24)
%26 = getelementptr inbounds [33 x i8], ptr %10, i64 0, i64 0
%27 = getelementptr inbounds [3 x i8], ptr %9, i64 0, i64 0
%28 = call i32 @strcat(ptr noundef %26, ptr noundef %27)
br label %29
29: ; preds = %19
%30 = load i32, ptr %8, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %8, align 4
br label %16, !llvm.loop !6
32: ; preds = %16
%33 = getelementptr inbounds [33 x i8], ptr %10, i64 0, i64 0
%34 = call i32 @printf(ptr noundef @.str.2, ptr noundef %33)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @MD5(ptr noundef, i32 noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @sprintf(ptr noundef, ptr noundef, i8 noundef zeroext) #2
declare i32 @strcat(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmsd2uuvl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"1234\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%2.2x\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [16 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca [3 x i8], align 1
%10 = alloca [33 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %6, align 8
call void @llvm.memset.p0.i64(ptr align 1 %9, i8 0, i64 3, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 33, i1 false)
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %6, align 8
%13 = call i32 @strlen(ptr noundef %12)
%14 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%15 = call i32 @MD5(ptr noundef %11, i32 noundef %13, ptr noundef %14)
store i32 0, ptr %8, align 4
%16 = load i32, ptr %8, align 4
%17 = icmp slt i32 %16, 16
br i1 %17, label %.lr.ph, label %33
.lr.ph: ; preds = %2
br label %18
18: ; preds = %.lr.ph, %28
%19 = getelementptr inbounds [3 x i8], ptr %9, i64 0, i64 0
%20 = load i32, ptr %8, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 %21
%23 = load i8, ptr %22, align 1
%24 = call i32 @sprintf(ptr noundef %19, ptr noundef @.str.1, i8 noundef zeroext %23)
%25 = getelementptr inbounds [33 x i8], ptr %10, i64 0, i64 0
%26 = getelementptr inbounds [3 x i8], ptr %9, i64 0, i64 0
%27 = call i32 @strcat(ptr noundef %25, ptr noundef %26)
br label %28
28: ; preds = %18
%29 = load i32, ptr %8, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %8, align 4
%31 = load i32, ptr %8, align 4
%32 = icmp slt i32 %31, 16
br i1 %32, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %33
33: ; preds = %._crit_edge, %2
%34 = getelementptr inbounds [33 x i8], ptr %10, i64 0, i64 0
%35 = call i32 @printf(ptr noundef @.str.2, ptr noundef %34)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @MD5(ptr noundef, i32 noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @sprintf(ptr noundef, ptr noundef, i8 noundef zeroext) #2
declare i32 @strcat(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpz3f_tcrd.c'
source_filename = "/tmp/tmpz3f_tcrd.c"
target datalayout = "e-m:e-p270: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
@EAGAIN = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [14 x i8] c"FDGETS (READ)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fdgets(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
%11 = load ptr, ptr %6, align 8
store ptr %11, ptr %9, align 8
br label %12
12: ; preds = %3, %54
%13 = load i32, ptr %5, align 4
%14 = load ptr, ptr %9, align 8
%15 = call i32 @read(i32 noundef %13, ptr noundef %14, i32 noundef 1)
store i32 %15, ptr %10, align 4
%16 = load i32, ptr %10, align 4
%17 = icmp sle i32 %16, 0
br i1 %17, label %18, label %30
18: ; preds = %12
%19 = load i32, ptr %10, align 4
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %27
21: ; preds = %18
%22 = load i64, ptr @errno, align 8
%23 = load i64, ptr @EAGAIN, align 8
%24 = icmp ne i64 %22, %23
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %4, align 4
br label %55
27: ; preds = %21, %18
%28 = load ptr, ptr %9, align 8
store i8 0, ptr %28, align 1
%29 = load i32, ptr %8, align 4
store i32 %29, ptr %4, align 4
br label %55
30: ; preds = %12
%31 = load ptr, ptr %9, align 8
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 10
br i1 %34, label %35, label %45
35: ; preds = %30
%36 = load i32, ptr %8, align 4
%37 = add nsw i32 %36, 1
%38 = load i32, ptr %7, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %40, label %43
40: ; preds = %35
%41 = load ptr, ptr %9, align 8
%42 = getelementptr inbounds i8, ptr %41, i64 1
store i8 0, ptr %42, align 1
br label %43
43: ; preds = %40, %35
%44 = load i32, ptr %8, align 4
store i32 %44, ptr %4, align 4
br label %55
45: ; preds = %30
%46 = load ptr, ptr %9, align 8
%47 = getelementptr inbounds i8, ptr %46, i32 1
store ptr %47, ptr %9, align 8
%48 = load i32, ptr %8, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %8, align 4
%50 = load i32, ptr %7, align 4
%51 = icmp eq i32 %48, %50
br i1 %51, label %52, label %54
52: ; preds = %45
%53 = load i32, ptr %7, align 4
store i32 %53, ptr %4, align 4
br label %55
54: ; preds = %45
br label %12
55: ; preds = %52, %43, %27, %25
%56 = load i32, ptr %4, align 4
ret i32 %56
}
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz3f_tcrd.c"
target datalayout = "e-m:e-p270: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
@EAGAIN = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [14 x i8] c"FDGETS (READ)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fdgets(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
%11 = load ptr, ptr %6, align 8
store ptr %11, ptr %9, align 8
%12 = load i32, ptr %5, align 4
%13 = load ptr, ptr %9, align 8
%14 = call i32 @read(i32 noundef %12, ptr noundef %13, i32 noundef 1)
store i32 %14, ptr %10, align 4
%15 = load i32, ptr %10, align 4
%16 = icmp sle i32 %15, 0
br i1 %16, label %23, label %.lr.ph
.lr.ph: ; preds = %3
br label %35
17: ; preds = %50
%18 = load i32, ptr %5, align 4
%19 = load ptr, ptr %9, align 8
%20 = call i32 @read(i32 noundef %18, ptr noundef %19, i32 noundef 1)
store i32 %20, ptr %10, align 4
%21 = load i32, ptr %10, align 4
%22 = icmp sle i32 %21, 0
br i1 %22, label %._crit_edge, label %35
._crit_edge: ; preds = %17
br label %23
23: ; preds = %._crit_edge, %3
%24 = load i32, ptr %10, align 4
%25 = icmp eq i32 %24, -1
br i1 %25, label %26, label %32
26: ; preds = %23
%27 = load i64, ptr @errno, align 8
%28 = load i64, ptr @EAGAIN, align 8
%29 = icmp ne i64 %27, %28
br i1 %29, label %30, label %32
30: ; preds = %26
%31 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %4, align 4
br label %59
32: ; preds = %26, %23
%33 = load ptr, ptr %9, align 8
store i8 0, ptr %33, align 1
%34 = load i32, ptr %8, align 4
store i32 %34, ptr %4, align 4
br label %59
35: ; preds = %.lr.ph, %17
%36 = load ptr, ptr %9, align 8
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %38, 10
br i1 %39, label %40, label %50
40: ; preds = %35
%41 = load i32, ptr %8, align 4
%42 = add nsw i32 %41, 1
%43 = load i32, ptr %7, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %48
45: ; preds = %40
%46 = load ptr, ptr %9, align 8
%47 = getelementptr inbounds i8, ptr %46, i64 1
store i8 0, ptr %47, align 1
br label %48
48: ; preds = %45, %40
%49 = load i32, ptr %8, align 4
store i32 %49, ptr %4, align 4
br label %59
50: ; preds = %35
%51 = load ptr, ptr %9, align 8
%52 = getelementptr inbounds i8, ptr %51, i32 1
store ptr %52, ptr %9, align 8
%53 = load i32, ptr %8, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %8, align 4
%55 = load i32, ptr %7, align 4
%56 = icmp eq i32 %53, %55
br i1 %56, label %57, label %17
57: ; preds = %50
%58 = load i32, ptr %7, align 4
store i32 %58, ptr %4, align 4
br label %59
59: ; preds = %57, %48, %32, %30
%60 = load i32, ptr %4, align 4
ret i32 %60
}
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptgn0gg49.c'
source_filename = "/tmp/tmptgn0gg49.c"
target datalayout = "e-m:e-p270: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/tmptgn0gg49.c"
target datalayout = "e-m:e-p270: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/tmpqbj_acht.c'
source_filename = "/tmp/tmpqbj_acht.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sys_fsize(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @size_file(i32 noundef %3)
ret i32 %4
}
declare i32 @size_file(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/tmpqbj_acht.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sys_fsize(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @size_file(i32 noundef %3)
ret i32 %4
}
declare i32 @size_file(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/tmpfhvmhjvk.c'
source_filename = "/tmp/tmpfhvmhjvk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@bbb_getGpioDirection.ret = internal global i32 -1, align 4
@.str = private unnamed_addr constant [20 x i8] c"%s/gpio%d/direction\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"/sys/class/gpio\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [3 x i8] c"in\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"out\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bbb_getGpioDirection(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [128 x i8], align 16
%6 = alloca [128 x i8], align 16
%7 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store i32 -1, ptr %4, align 4
store ptr null, ptr %7, align 8
%8 = load i32, ptr %3, align 4
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %57
10: ; preds = %1
%11 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%12 = call i32 @memset(ptr noundef %11, i32 noundef 0, i32 noundef 128)
%13 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%14 = load i32, ptr %3, align 4
%15 = call i32 @snprintf(ptr noundef %13, i32 noundef 128, ptr noundef @.str, ptr noundef @.str.1, i32 noundef %14)
%16 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%17 = call ptr @bbb_wildCardPath(ptr noundef %16)
store ptr %17, ptr %7, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %56
19: ; preds = %10
%20 = load ptr, ptr %7, align 8
%21 = load i32, ptr @O_RDONLY, align 4
%22 = call i32 @open(ptr noundef %20, i32 noundef %21)
store i32 %22, ptr %4, align 4
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %19
store i32 -1, ptr %2, align 4
br label %59
25: ; preds = %19
%26 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%27 = call i32 @memset(ptr noundef %26, i32 noundef 0, i32 noundef 128)
%28 = load i32, ptr %4, align 4
%29 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%30 = call i32 @read(i32 noundef %28, ptr noundef %29, i32 noundef 128)
store i32 %30, ptr @bbb_getGpioDirection.ret, align 4
%31 = icmp sle i32 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %25
%33 = load i32, ptr %4, align 4
%34 = call i32 @close(i32 noundef %33)
store i32 -1, ptr %2, align 4
br label %59
35: ; preds = %25
%36 = load i32, ptr @bbb_getGpioDirection.ret, align 4
%37 = icmp sge i32 %36, 2
br i1 %37, label %38, label %43
38: ; preds = %35
%39 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%40 = call i64 @strncmp(ptr noundef %39, ptr noundef @.str.2, i32 noundef 2)
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %43
42: ; preds = %38
store i32 0, ptr @bbb_getGpioDirection.ret, align 4
br label %53
43: ; preds = %38, %35
%44 = load i32, ptr @bbb_getGpioDirection.ret, align 4
%45 = icmp sge i32 %44, 3
br i1 %45, label %46, label %51
46: ; preds = %43
%47 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%48 = call i64 @strncmp(ptr noundef %47, ptr noundef @.str.3, i32 noundef 3)
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %51
50: ; preds = %46
store i32 1, ptr @bbb_getGpioDirection.ret, align 4
br label %52
51: ; preds = %46, %43
store i32 -1, ptr @bbb_getGpioDirection.ret, align 4
br label %52
52: ; preds = %51, %50
br label %53
53: ; preds = %52, %42
%54 = load i32, ptr %4, align 4
%55 = call i32 @close(i32 noundef %54)
br label %56
56: ; preds = %53, %10
br label %57
57: ; preds = %56, %1
%58 = load i32, ptr @bbb_getGpioDirection.ret, align 4
store i32 %58, ptr %2, align 4
br label %59
59: ; preds = %57, %32, %24
%60 = load i32, ptr %2, align 4
ret i32 %60
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @bbb_wildCardPath(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i64 @strncmp(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/tmpfhvmhjvk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@bbb_getGpioDirection.ret = internal global i32 -1, align 4
@.str = private unnamed_addr constant [20 x i8] c"%s/gpio%d/direction\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"/sys/class/gpio\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [3 x i8] c"in\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"out\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bbb_getGpioDirection(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [128 x i8], align 16
%6 = alloca [128 x i8], align 16
%7 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store i32 -1, ptr %4, align 4
store ptr null, ptr %7, align 8
%8 = load i32, ptr %3, align 4
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %57
10: ; preds = %1
%11 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%12 = call i32 @memset(ptr noundef %11, i32 noundef 0, i32 noundef 128)
%13 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%14 = load i32, ptr %3, align 4
%15 = call i32 @snprintf(ptr noundef %13, i32 noundef 128, ptr noundef @.str, ptr noundef @.str.1, i32 noundef %14)
%16 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%17 = call ptr @bbb_wildCardPath(ptr noundef %16)
store ptr %17, ptr %7, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %56
19: ; preds = %10
%20 = load ptr, ptr %7, align 8
%21 = load i32, ptr @O_RDONLY, align 4
%22 = call i32 @open(ptr noundef %20, i32 noundef %21)
store i32 %22, ptr %4, align 4
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %19
store i32 -1, ptr %2, align 4
br label %59
25: ; preds = %19
%26 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%27 = call i32 @memset(ptr noundef %26, i32 noundef 0, i32 noundef 128)
%28 = load i32, ptr %4, align 4
%29 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%30 = call i32 @read(i32 noundef %28, ptr noundef %29, i32 noundef 128)
store i32 %30, ptr @bbb_getGpioDirection.ret, align 4
%31 = icmp sle i32 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %25
%33 = load i32, ptr %4, align 4
%34 = call i32 @close(i32 noundef %33)
store i32 -1, ptr %2, align 4
br label %59
35: ; preds = %25
%36 = load i32, ptr @bbb_getGpioDirection.ret, align 4
%37 = icmp sge i32 %36, 2
br i1 %37, label %38, label %43
38: ; preds = %35
%39 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%40 = call i64 @strncmp(ptr noundef %39, ptr noundef @.str.2, i32 noundef 2)
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %43
42: ; preds = %38
store i32 0, ptr @bbb_getGpioDirection.ret, align 4
br label %53
43: ; preds = %38, %35
%44 = load i32, ptr @bbb_getGpioDirection.ret, align 4
%45 = icmp sge i32 %44, 3
br i1 %45, label %46, label %51
46: ; preds = %43
%47 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%48 = call i64 @strncmp(ptr noundef %47, ptr noundef @.str.3, i32 noundef 3)
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %51
50: ; preds = %46
store i32 1, ptr @bbb_getGpioDirection.ret, align 4
br label %52
51: ; preds = %46, %43
store i32 -1, ptr @bbb_getGpioDirection.ret, align 4
br label %52
52: ; preds = %51, %50
br label %53
53: ; preds = %52, %42
%54 = load i32, ptr %4, align 4
%55 = call i32 @close(i32 noundef %54)
br label %56
56: ; preds = %53, %10
br label %57
57: ; preds = %56, %1
%58 = load i32, ptr @bbb_getGpioDirection.ret, align 4
store i32 %58, ptr %2, align 4
br label %59
59: ; preds = %57, %32, %24
%60 = load i32, ptr %2, align 4
ret i32 %60
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @bbb_wildCardPath(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i64 @strncmp(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/tmpi0xsl29j.c'
source_filename = "/tmp/tmpi0xsl29j.c"
target datalayout = "e-m:e-p270: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/tmpi0xsl29j.c"
target datalayout = "e-m:e-p270: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/tmpr1548ktm.c'
source_filename = "/tmp/tmpr1548ktm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @file_type(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 = call ptr @strchr(ptr noundef %5, i8 noundef signext 46)
store ptr %6, ptr %4, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = load ptr, ptr %4, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 1
store ptr %10, ptr %2, align 8
br label %12
11: ; preds = %1
store ptr @.str, ptr %2, align 8
br label %12
12: ; preds = %11, %8
%13 = load ptr, ptr %2, align 8
ret ptr %13
}
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr1548ktm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @file_type(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 = call ptr @strchr(ptr noundef %5, i8 noundef signext 46)
store ptr %6, ptr %4, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = load ptr, ptr %4, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 1
store ptr %10, ptr %2, align 8
br label %12
11: ; preds = %1
store ptr @.str, ptr %2, align 8
br label %12
12: ; preds = %11, %8
%13 = load ptr, ptr %2, align 8
ret ptr %13
}
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp803jcnse.c'
source_filename = "/tmp/tmp803jcnse.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%llu\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i64 2, ptr %2, align 8
store i64 1, ptr %3, align 8
%6 = load i64, ptr %2, align 8
%7 = call i32 @printf(ptr noundef @.str, i64 noundef %6)
%8 = load i64, ptr %3, align 8
%9 = call i32 @printf(ptr noundef @.str, i64 noundef %8)
store i64 3, ptr %5, align 8
br label %10
10: ; preds = %21, %0
%11 = load i64, ptr %5, align 8
%12 = icmp ule i64 %11, 100
br i1 %12, label %13, label %24
13: ; preds = %10
%14 = load i64, ptr %3, align 8
%15 = load i64, ptr %2, align 8
%16 = add i64 %14, %15
store i64 %16, ptr %4, align 8
%17 = load i64, ptr %4, align 8
%18 = call i32 @printf(ptr noundef @.str, i64 noundef %17)
%19 = load i64, ptr %3, align 8
store i64 %19, ptr %2, align 8
%20 = load i64, ptr %4, align 8
store i64 %20, ptr %3, align 8
br label %21
21: ; preds = %13
%22 = load i64, ptr %5, align 8
%23 = add i64 %22, 1
store i64 %23, ptr %5, align 8
br label %10, !llvm.loop !6
24: ; preds = %10
ret i32 0
}
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp803jcnse.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%llu\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i64 2, ptr %2, align 8
store i64 1, ptr %3, align 8
%6 = load i64, ptr %2, align 8
%7 = call i32 @printf(ptr noundef @.str, i64 noundef %6)
%8 = load i64, ptr %3, align 8
%9 = call i32 @printf(ptr noundef @.str, i64 noundef %8)
store i64 3, ptr %5, align 8
%10 = load i64, ptr %5, align 8
%11 = icmp ule i64 %10, 100
br i1 %11, label %.lr.ph, label %25
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %20
%13 = load i64, ptr %3, align 8
%14 = load i64, ptr %2, align 8
%15 = add i64 %13, %14
store i64 %15, ptr %4, align 8
%16 = load i64, ptr %4, align 8
%17 = call i32 @printf(ptr noundef @.str, i64 noundef %16)
%18 = load i64, ptr %3, align 8
store i64 %18, ptr %2, align 8
%19 = load i64, ptr %4, align 8
store i64 %19, ptr %3, align 8
br label %20
20: ; preds = %12
%21 = load i64, ptr %5, align 8
%22 = add i64 %21, 1
store i64 %22, ptr %5, align 8
%23 = load i64, ptr %5, align 8
%24 = icmp ule i64 %23, 100
br i1 %24, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %25
25: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp1n_w9aa9.c'
source_filename = "/tmp/tmp1n_w9aa9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"---------- QuickSort2 ----------\0A\00", align 1
@__const.testQuickSort2.data = private unnamed_addr constant [9 x i32] [i32 11, i32 99, i32 33, i32 55, i32 77, i32 66, i32 22, i32 88, i32 44], align 16
@.str.1 = private unnamed_addr constant [12 x i8] c"----------\0A\00", align 1
@__const.testQuickSort2.data.2 = private unnamed_addr constant [18 x i32] [i32 11, i32 4, i32 99, i32 33, i32 8, i32 55, i32 9, i32 77, i32 2, i32 3, i32 66, i32 5, i32 22, i32 6, i32 1, i32 88, i32 7, i32 44], align 16
@__const.testQuickSort2.data.3 = private unnamed_addr constant [9 x i32] [i32 88, i32 88, i32 88, i32 88, i32 88, i32 88, i32 88, i32 88, i32 88], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @testQuickSort2() #0 {
%1 = alloca [9 x i32], align 16
%2 = alloca i32, align 4
%3 = alloca [18 x i32], align 16
%4 = alloca i32, align 4
%5 = alloca [9 x i32], align 16
%6 = alloca i32, align 4
%7 = call i32 @printf(ptr noundef @.str)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.testQuickSort2.data, i64 36, i1 false)
store i32 9, ptr %2, align 4
%8 = getelementptr inbounds [9 x i32], ptr %1, i64 0, i64 0
%9 = load i32, ptr %2, align 4
%10 = call i32 @quickSort2(ptr noundef %8, i32 noundef %9)
%11 = call i32 @printf(ptr noundef @.str.1)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.testQuickSort2.data.2, i64 72, i1 false)
store i32 18, ptr %4, align 4
%12 = getelementptr inbounds [18 x i32], ptr %3, i64 0, i64 0
%13 = load i32, ptr %4, align 4
%14 = call i32 @quickSort2(ptr noundef %12, i32 noundef %13)
%15 = call i32 @printf(ptr noundef @.str.1)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.testQuickSort2.data.3, i64 36, i1 false)
store i32 9, ptr %6, align 4
%16 = getelementptr inbounds [9 x i32], ptr %5, i64 0, i64 0
%17 = load i32, ptr %6, align 4
%18 = call i32 @quickSort2(ptr noundef %16, i32 noundef %17)
ret void
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @quickSort2(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1n_w9aa9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"---------- QuickSort2 ----------\0A\00", align 1
@__const.testQuickSort2.data = private unnamed_addr constant [9 x i32] [i32 11, i32 99, i32 33, i32 55, i32 77, i32 66, i32 22, i32 88, i32 44], align 16
@.str.1 = private unnamed_addr constant [12 x i8] c"----------\0A\00", align 1
@__const.testQuickSort2.data.2 = private unnamed_addr constant [18 x i32] [i32 11, i32 4, i32 99, i32 33, i32 8, i32 55, i32 9, i32 77, i32 2, i32 3, i32 66, i32 5, i32 22, i32 6, i32 1, i32 88, i32 7, i32 44], align 16
@__const.testQuickSort2.data.3 = private unnamed_addr constant [9 x i32] [i32 88, i32 88, i32 88, i32 88, i32 88, i32 88, i32 88, i32 88, i32 88], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @testQuickSort2() #0 {
%1 = alloca [9 x i32], align 16
%2 = alloca i32, align 4
%3 = alloca [18 x i32], align 16
%4 = alloca i32, align 4
%5 = alloca [9 x i32], align 16
%6 = alloca i32, align 4
%7 = call i32 @printf(ptr noundef @.str)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.testQuickSort2.data, i64 36, i1 false)
store i32 9, ptr %2, align 4
%8 = getelementptr inbounds [9 x i32], ptr %1, i64 0, i64 0
%9 = load i32, ptr %2, align 4
%10 = call i32 @quickSort2(ptr noundef %8, i32 noundef %9)
%11 = call i32 @printf(ptr noundef @.str.1)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.testQuickSort2.data.2, i64 72, i1 false)
store i32 18, ptr %4, align 4
%12 = getelementptr inbounds [18 x i32], ptr %3, i64 0, i64 0
%13 = load i32, ptr %4, align 4
%14 = call i32 @quickSort2(ptr noundef %12, i32 noundef %13)
%15 = call i32 @printf(ptr noundef @.str.1)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.testQuickSort2.data.3, i64 36, i1 false)
store i32 9, ptr %6, align 4
%16 = getelementptr inbounds [9 x i32], ptr %5, i64 0, i64 0
%17 = load i32, ptr %6, align 4
%18 = call i32 @quickSort2(ptr noundef %16, i32 noundef %17)
ret void
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @quickSort2(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3spb4a76.c'
source_filename = "/tmp/tmp3spb4a76.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mmlmul(i32 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%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 i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%19 = load i32, ptr %7, align 4
%20 = zext i32 %19 to i64
%21 = load i32, ptr %8, align 4
%22 = zext i32 %21 to i64
%23 = load i32, ptr %8, align 4
%24 = zext i32 %23 to i64
%25 = load i32, ptr %10, align 4
%26 = zext i32 %25 to i64
%27 = load i32, ptr %7, align 4
%28 = zext i32 %27 to i64
%29 = load i32, ptr %10, align 4
%30 = zext i32 %29 to i64
%31 = load i32, ptr %10, align 4
%32 = zext i32 %31 to i64
%33 = load ptr, ptr %9, align 8
%34 = load ptr, ptr %12, align 8
%35 = icmp eq ptr %33, %34
br i1 %35, label %40, label %36
36: ; preds = %6
%37 = load ptr, ptr %11, align 8
%38 = load ptr, ptr %12, align 8
%39 = icmp eq ptr %37, %38
br i1 %39, label %40, label %49
40: ; preds = %36, %6
%41 = load i32, ptr %7, align 4
%42 = zext i32 %41 to i64
%43 = load i32, ptr %10, align 4
%44 = zext i32 %43 to i64
%45 = mul nuw i64 %42, %44
%46 = mul nuw i64 8, %45
%47 = trunc i64 %46 to i32
%48 = call ptr @malloc(i32 noundef %47)
store ptr %48, ptr %13, align 8
br label %51
49: ; preds = %36
%50 = load ptr, ptr %12, align 8
store ptr %50, ptr %13, align 8
br label %51
51: ; preds = %49, %40
store i32 0, ptr %14, align 4
br label %52
52: ; preds = %111, %51
%53 = load i32, ptr %14, align 4
%54 = load i32, ptr %7, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %56, label %114
56: ; preds = %52
store i32 0, ptr %15, align 4
br label %57
57: ; preds = %107, %56
%58 = load i32, ptr %15, align 4
%59 = load i32, ptr %10, align 4
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %110
61: ; preds = %57
%62 = load ptr, ptr %13, align 8
%63 = load i32, ptr %14, align 4
%64 = sext i32 %63 to i64
%65 = mul nsw i64 %64, %32
%66 = getelementptr inbounds double, ptr %62, i64 %65
%67 = load i32, ptr %15, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds double, ptr %66, i64 %68
store double 0.000000e+00, ptr %69, align 8
store i32 0, ptr %16, align 4
br label %70
70: ; preds = %103, %61
%71 = load i32, ptr %16, align 4
%72 = load i32, ptr %8, align 4
%73 = icmp slt i32 %71, %72
br i1 %73, label %74, label %106
74: ; preds = %70
%75 = load ptr, ptr %9, align 8
%76 = load i32, ptr %14, align 4
%77 = sext i32 %76 to i64
%78 = mul nsw i64 %77, %22
%79 = getelementptr inbounds double, ptr %75, i64 %78
%80 = load i32, ptr %16, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds double, ptr %79, i64 %81
%83 = load double, ptr %82, align 8
%84 = load ptr, ptr %11, align 8
%85 = load i32, ptr %16, align 4
%86 = sext i32 %85 to i64
%87 = mul nsw i64 %86, %26
%88 = getelementptr inbounds double, ptr %84, i64 %87
%89 = load i32, ptr %15, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds double, ptr %88, i64 %90
%92 = load double, ptr %91, align 8
%93 = load ptr, ptr %13, align 8
%94 = load i32, ptr %14, align 4
%95 = sext i32 %94 to i64
%96 = mul nsw i64 %95, %32
%97 = getelementptr inbounds double, ptr %93, i64 %96
%98 = load i32, ptr %15, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds double, ptr %97, i64 %99
%101 = load double, ptr %100, align 8
%102 = call double @llvm.fmuladd.f64(double %83, double %92, double %101)
store double %102, ptr %100, align 8
br label %103
103: ; preds = %74
%104 = load i32, ptr %16, align 4
%105 = add nsw i32 %104, 1
store i32 %105, ptr %16, align 4
br label %70, !llvm.loop !6
106: ; preds = %70
br label %107
107: ; preds = %106
%108 = load i32, ptr %15, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr %15, align 4
br label %57, !llvm.loop !8
110: ; preds = %57
br label %111
111: ; preds = %110
%112 = load i32, ptr %14, align 4
%113 = add nsw i32 %112, 1
store i32 %113, ptr %14, align 4
br label %52, !llvm.loop !9
114: ; preds = %52
%115 = load ptr, ptr %9, align 8
%116 = load ptr, ptr %12, align 8
%117 = icmp eq ptr %115, %116
br i1 %117, label %122, label %118
118: ; preds = %114
%119 = load ptr, ptr %11, align 8
%120 = load ptr, ptr %12, align 8
%121 = icmp eq ptr %119, %120
br i1 %121, label %122, label %160
122: ; preds = %118, %114
store i32 0, ptr %17, align 4
br label %123
123: ; preds = %154, %122
%124 = load i32, ptr %17, align 4
%125 = load i32, ptr %7, align 4
%126 = icmp slt i32 %124, %125
br i1 %126, label %127, label %157
127: ; preds = %123
store i32 0, ptr %18, align 4
br label %128
128: ; preds = %150, %127
%129 = load i32, ptr %18, align 4
%130 = load i32, ptr %10, align 4
%131 = icmp slt i32 %129, %130
br i1 %131, label %132, label %153
132: ; preds = %128
%133 = load ptr, ptr %13, align 8
%134 = load i32, ptr %17, align 4
%135 = sext i32 %134 to i64
%136 = mul nsw i64 %135, %32
%137 = getelementptr inbounds double, ptr %133, i64 %136
%138 = load i32, ptr %18, align 4
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds double, ptr %137, i64 %139
%141 = load double, ptr %140, align 8
%142 = load ptr, ptr %12, align 8
%143 = load i32, ptr %17, align 4
%144 = sext i32 %143 to i64
%145 = mul nsw i64 %144, %30
%146 = getelementptr inbounds double, ptr %142, i64 %145
%147 = load i32, ptr %18, align 4
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds double, ptr %146, i64 %148
store double %141, ptr %149, align 8
br label %150
150: ; preds = %132
%151 = load i32, ptr %18, align 4
%152 = add nsw i32 %151, 1
store i32 %152, ptr %18, align 4
br label %128, !llvm.loop !10
153: ; preds = %128
br label %154
154: ; preds = %153
%155 = load i32, ptr %17, align 4
%156 = add nsw i32 %155, 1
store i32 %156, ptr %17, align 4
br label %123, !llvm.loop !11
157: ; preds = %123
%158 = load ptr, ptr %13, align 8
%159 = call i32 @free(ptr noundef %158)
br label %160
160: ; preds = %157, %118
ret void
}
declare ptr @malloc(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
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 = { 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}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3spb4a76.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mmlmul(i32 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%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 i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%19 = load i32, ptr %7, align 4
%20 = zext i32 %19 to i64
%21 = load i32, ptr %8, align 4
%22 = zext i32 %21 to i64
%23 = load i32, ptr %8, align 4
%24 = zext i32 %23 to i64
%25 = load i32, ptr %10, align 4
%26 = zext i32 %25 to i64
%27 = load i32, ptr %7, align 4
%28 = zext i32 %27 to i64
%29 = load i32, ptr %10, align 4
%30 = zext i32 %29 to i64
%31 = load i32, ptr %10, align 4
%32 = zext i32 %31 to i64
%33 = load ptr, ptr %9, align 8
%34 = load ptr, ptr %12, align 8
%35 = icmp eq ptr %33, %34
br i1 %35, label %40, label %36
36: ; preds = %6
%37 = load ptr, ptr %11, align 8
%38 = load ptr, ptr %12, align 8
%39 = icmp eq ptr %37, %38
br i1 %39, label %40, label %49
40: ; preds = %36, %6
%41 = load i32, ptr %7, align 4
%42 = zext i32 %41 to i64
%43 = load i32, ptr %10, align 4
%44 = zext i32 %43 to i64
%45 = mul nuw i64 %42, %44
%46 = mul nuw i64 8, %45
%47 = trunc i64 %46 to i32
%48 = call ptr @malloc(i32 noundef %47)
store ptr %48, ptr %13, align 8
br label %51
49: ; preds = %36
%50 = load ptr, ptr %12, align 8
store ptr %50, ptr %13, align 8
br label %51
51: ; preds = %49, %40
store i32 0, ptr %14, align 4
%52 = load i32, ptr %14, align 4
%53 = load i32, ptr %7, align 4
%54 = icmp slt i32 %52, %53
br i1 %54, label %.lr.ph5, label %120
.lr.ph5: ; preds = %51
br label %55
55: ; preds = %.lr.ph5, %114
store i32 0, ptr %15, align 4
%56 = load i32, ptr %15, align 4
%57 = load i32, ptr %10, align 4
%58 = icmp slt i32 %56, %57
br i1 %58, label %.lr.ph2, label %113
.lr.ph2: ; preds = %55
br label %59
59: ; preds = %.lr.ph2, %107
%60 = load ptr, ptr %13, align 8
%61 = load i32, ptr %14, align 4
%62 = sext i32 %61 to i64
%63 = mul nsw i64 %62, %32
%64 = getelementptr inbounds double, ptr %60, i64 %63
%65 = load i32, ptr %15, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds double, ptr %64, i64 %66
store double 0.000000e+00, ptr %67, align 8
store i32 0, ptr %16, align 4
%68 = load i32, ptr %16, align 4
%69 = load i32, ptr %8, align 4
%70 = icmp slt i32 %68, %69
br i1 %70, label %.lr.ph, label %106
.lr.ph: ; preds = %59
br label %71
71: ; preds = %.lr.ph, %100
%72 = load ptr, ptr %9, align 8
%73 = load i32, ptr %14, align 4
%74 = sext i32 %73 to i64
%75 = mul nsw i64 %74, %22
%76 = getelementptr inbounds double, ptr %72, i64 %75
%77 = load i32, ptr %16, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds double, ptr %76, i64 %78
%80 = load double, ptr %79, align 8
%81 = load ptr, ptr %11, align 8
%82 = load i32, ptr %16, align 4
%83 = sext i32 %82 to i64
%84 = mul nsw i64 %83, %26
%85 = getelementptr inbounds double, ptr %81, i64 %84
%86 = load i32, ptr %15, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds double, ptr %85, i64 %87
%89 = load double, ptr %88, align 8
%90 = load ptr, ptr %13, align 8
%91 = load i32, ptr %14, align 4
%92 = sext i32 %91 to i64
%93 = mul nsw i64 %92, %32
%94 = getelementptr inbounds double, ptr %90, i64 %93
%95 = load i32, ptr %15, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds double, ptr %94, i64 %96
%98 = load double, ptr %97, align 8
%99 = call double @llvm.fmuladd.f64(double %80, double %89, double %98)
store double %99, ptr %97, align 8
br label %100
100: ; preds = %71
%101 = load i32, ptr %16, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %16, align 4
%103 = load i32, ptr %16, align 4
%104 = load i32, ptr %8, align 4
%105 = icmp slt i32 %103, %104
br i1 %105, label %71, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %100
br label %106
106: ; preds = %._crit_edge, %59
br label %107
107: ; preds = %106
%108 = load i32, ptr %15, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr %15, align 4
%110 = load i32, ptr %15, align 4
%111 = load i32, ptr %10, align 4
%112 = icmp slt i32 %110, %111
br i1 %112, label %59, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %107
br label %113
113: ; preds = %._crit_edge3, %55
br label %114
114: ; preds = %113
%115 = load i32, ptr %14, align 4
%116 = add nsw i32 %115, 1
store i32 %116, ptr %14, align 4
%117 = load i32, ptr %14, align 4
%118 = load i32, ptr %7, align 4
%119 = icmp slt i32 %117, %118
br i1 %119, label %55, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %114
br label %120
120: ; preds = %._crit_edge6, %51
%121 = load ptr, ptr %9, align 8
%122 = load ptr, ptr %12, align 8
%123 = icmp eq ptr %121, %122
br i1 %123, label %128, label %124
124: ; preds = %120
%125 = load ptr, ptr %11, align 8
%126 = load ptr, ptr %12, align 8
%127 = icmp eq ptr %125, %126
br i1 %127, label %128, label %170
128: ; preds = %124, %120
store i32 0, ptr %17, align 4
%129 = load i32, ptr %17, align 4
%130 = load i32, ptr %7, align 4
%131 = icmp slt i32 %129, %130
br i1 %131, label %.lr.ph11, label %167
.lr.ph11: ; preds = %128
br label %132
132: ; preds = %.lr.ph11, %161
store i32 0, ptr %18, align 4
%133 = load i32, ptr %18, align 4
%134 = load i32, ptr %10, align 4
%135 = icmp slt i32 %133, %134
br i1 %135, label %.lr.ph8, label %160
.lr.ph8: ; preds = %132
br label %136
136: ; preds = %.lr.ph8, %154
%137 = load ptr, ptr %13, align 8
%138 = load i32, ptr %17, align 4
%139 = sext i32 %138 to i64
%140 = mul nsw i64 %139, %32
%141 = getelementptr inbounds double, ptr %137, i64 %140
%142 = load i32, ptr %18, align 4
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds double, ptr %141, i64 %143
%145 = load double, ptr %144, align 8
%146 = load ptr, ptr %12, align 8
%147 = load i32, ptr %17, align 4
%148 = sext i32 %147 to i64
%149 = mul nsw i64 %148, %30
%150 = getelementptr inbounds double, ptr %146, i64 %149
%151 = load i32, ptr %18, align 4
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds double, ptr %150, i64 %152
store double %145, ptr %153, align 8
br label %154
154: ; preds = %136
%155 = load i32, ptr %18, align 4
%156 = add nsw i32 %155, 1
store i32 %156, ptr %18, align 4
%157 = load i32, ptr %18, align 4
%158 = load i32, ptr %10, align 4
%159 = icmp slt i32 %157, %158
br i1 %159, label %136, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %154
br label %160
160: ; preds = %._crit_edge9, %132
br label %161
161: ; preds = %160
%162 = load i32, ptr %17, align 4
%163 = add nsw i32 %162, 1
store i32 %163, ptr %17, align 4
%164 = load i32, ptr %17, align 4
%165 = load i32, ptr %7, align 4
%166 = icmp slt i32 %164, %165
br i1 %166, label %132, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %161
br label %167
167: ; preds = %._crit_edge12, %128
%168 = load ptr, ptr %13, align 8
%169 = call i32 @free(ptr noundef %168)
br label %170
170: ; preds = %167, %124
ret void
}
declare ptr @malloc(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
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 = { 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}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmpehq4auc5.c'
source_filename = "/tmp/tmpehq4auc5.c"
target datalayout = "e-m:e-p270: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/tmpehq4auc5.c"
target datalayout = "e-m:e-p270: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/tmpfpjswavc.c'
source_filename = "/tmp/tmpfpjswavc.c"
target datalayout = "e-m:e-p270: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.readNumbersFromFile.filename = private unnamed_addr constant [26 x i8] c"../../numbers/numbers.txt\00", align 16
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@EOF = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @readNumbersFromFile(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca [26 x i8], align 16
%7 = alloca [1000 x i8], align 16
%8 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.readNumbersFromFile.filename, i64 26, i1 false)
%9 = getelementptr inbounds [26 x i8], ptr %6, i64 0, i64 0
%10 = call ptr @fopen(ptr noundef %9, ptr noundef @.str)
store ptr %10, ptr %8, align 8
%11 = load ptr, ptr %8, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %38
13: ; preds = %2
br label %14
14: ; preds = %26, %13
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %24
18: ; preds = %14
%19 = load ptr, ptr %8, align 8
%20 = getelementptr inbounds [1000 x i8], ptr %7, i64 0, i64 0
%21 = call i64 @fscanf(ptr noundef %19, ptr noundef @.str.1, ptr noundef %20)
%22 = load i64, ptr @EOF, align 8
%23 = icmp ne i64 %21, %22
br label %24
24: ; preds = %18, %14
%25 = phi i1 [ false, %14 ], [ %23, %18 ]
br i1 %25, label %26, label %35
26: ; preds = %24
%27 = getelementptr inbounds [1000 x i8], ptr %7, i64 0, i64 0
%28 = call i32 @atoi(ptr noundef %27)
%29 = load ptr, ptr %4, align 8
%30 = load i32, ptr %5, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %29, i64 %31
store i32 %28, ptr %32, align 4
%33 = load i32, ptr %5, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %5, align 4
br label %14, !llvm.loop !6
35: ; preds = %24
%36 = load ptr, ptr %8, align 8
%37 = call i32 @fclose(ptr noundef %36)
br label %38
38: ; preds = %35, %2
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i64 @fscanf(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @atoi(ptr noundef) #2
declare i32 @fclose(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/tmpfpjswavc.c"
target datalayout = "e-m:e-p270: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.readNumbersFromFile.filename = private unnamed_addr constant [26 x i8] c"../../numbers/numbers.txt\00", align 16
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@EOF = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @readNumbersFromFile(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca [26 x i8], align 16
%7 = alloca [1000 x i8], align 16
%8 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.readNumbersFromFile.filename, i64 26, i1 false)
%9 = getelementptr inbounds [26 x i8], ptr %6, i64 0, i64 0
%10 = call ptr @fopen(ptr noundef %9, ptr noundef @.str)
store ptr %10, ptr %8, align 8
%11 = load ptr, ptr %8, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %38
13: ; preds = %2
br label %14
14: ; preds = %26, %13
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %24
18: ; preds = %14
%19 = load ptr, ptr %8, align 8
%20 = getelementptr inbounds [1000 x i8], ptr %7, i64 0, i64 0
%21 = call i64 @fscanf(ptr noundef %19, ptr noundef @.str.1, ptr noundef %20)
%22 = load i64, ptr @EOF, align 8
%23 = icmp ne i64 %21, %22
br label %24
24: ; preds = %18, %14
%25 = phi i1 [ false, %14 ], [ %23, %18 ]
br i1 %25, label %26, label %35
26: ; preds = %24
%27 = getelementptr inbounds [1000 x i8], ptr %7, i64 0, i64 0
%28 = call i32 @atoi(ptr noundef %27)
%29 = load ptr, ptr %4, align 8
%30 = load i32, ptr %5, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %29, i64 %31
store i32 %28, ptr %32, align 4
%33 = load i32, ptr %5, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %5, align 4
br label %14, !llvm.loop !6
35: ; preds = %24
%36 = load ptr, ptr %8, align 8
%37 = call i32 @fclose(ptr noundef %36)
br label %38
38: ; preds = %35, %2
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i64 @fscanf(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @atoi(ptr noundef) #2
declare i32 @fclose(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/tmpqspmpysk.c'
source_filename = "/tmp/tmpqspmpysk.c"
target datalayout = "e-m:e-p270: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 [22 x i8] c"Unable to open \22%s\22: \00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"libsoc-file-debug\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @file_open(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr %4, align 4
%8 = call i32 @open(ptr noundef %6, i32 noundef %7)
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %17
11: ; preds = %2
%12 = load i32, ptr @stderr, align 4
%13 = load ptr, ptr %3, align 8
%14 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str, ptr noundef %13)
%15 = call i32 @perror(ptr noundef @.str.1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
%18 = load i32, ptr %5, align 4
ret i32 %18
}
declare i32 @open(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 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqspmpysk.c"
target datalayout = "e-m:e-p270: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 [22 x i8] c"Unable to open \22%s\22: \00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"libsoc-file-debug\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @file_open(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr %4, align 4
%8 = call i32 @open(ptr noundef %6, i32 noundef %7)
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %17
11: ; preds = %2
%12 = load i32, ptr @stderr, align 4
%13 = load ptr, ptr %3, align 8
%14 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str, ptr noundef %13)
%15 = call i32 @perror(ptr noundef @.str.1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
%18 = load i32, ptr %5, align 4
ret i32 %18
}
declare i32 @open(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 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplw30elqp.c'
source_filename = "/tmp/tmplw30elqp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"pop\09%ebx\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"add\09%ebx,%eax\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @add() #0 {
%1 = call i32 @match(i8 noundef signext 43)
%2 = call i32 (...) @term()
%3 = call i32 @emitln(ptr noundef @.str)
%4 = call i32 @emitln(ptr noundef @.str.1)
ret void
}
declare i32 @match(i8 noundef signext) #1
declare i32 @term(...) #1
declare i32 @emitln(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplw30elqp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"pop\09%ebx\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"add\09%ebx,%eax\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @add() #0 {
%1 = call i32 @match(i8 noundef signext 43)
%2 = call i32 (...) @term()
%3 = call i32 @emitln(ptr noundef @.str)
%4 = call i32 @emitln(ptr noundef @.str.1)
ret void
}
declare i32 @match(i8 noundef signext) #1
declare i32 @term(...) #1
declare i32 @emitln(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyc7x7ocn.c'
source_filename = "/tmp/tmpyc7x7ocn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [169 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_isodigit.c\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"isodigit should be 0 for z\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isodigit_0x7a() #0 {
%1 = call i64 @isodigit(i32 noundef 122)
%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 615, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isodigit(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/tmpyc7x7ocn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [169 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_isodigit.c\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"isodigit should be 0 for z\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isodigit_0x7a() #0 {
%1 = call i64 @isodigit(i32 noundef 122)
%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 615, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isodigit(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/tmpbsd0527b.c'
source_filename = "/tmp/tmpbsd0527b.c"
target datalayout = "e-m:e-p270: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/tmpbsd0527b.c"
target datalayout = "e-m:e-p270: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/tmp1nrtq5v0.c'
source_filename = "/tmp/tmp1nrtq5v0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @freeFilelist(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1nrtq5v0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @freeFilelist(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpa8ks3dem.c'
source_filename = "/tmp/tmpa8ks3dem.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"\0AInput num1:\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"Input num2:\00", align 1
@.str.3 = private unnamed_addr constant [33 x i8] c"\0A-->Before Swapping : x=%d\09y=%d\0A\00", align 1
@.str.4 = private unnamed_addr constant [33 x i8] c"\0A-->After Swapping : x=%d\09y=%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 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%9 = load i32, ptr %2, align 4
%10 = load i32, ptr %3, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %9, i32 noundef %10)
br label %12
12: ; preds = %0
%13 = load i32, ptr %2, align 4
store i32 %13, ptr %4, align 4
%14 = load i32, ptr %3, align 4
store i32 %14, ptr %2, align 4
%15 = load i32, ptr %4, align 4
store i32 %15, ptr %3, align 4
br label %16
16: ; preds = %12
%17 = load i32, ptr %2, align 4
%18 = load i32, ptr %3, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %17, i32 noundef %18)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa8ks3dem.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"\0AInput num1:\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"Input num2:\00", align 1
@.str.3 = private unnamed_addr constant [33 x i8] c"\0A-->Before Swapping : x=%d\09y=%d\0A\00", align 1
@.str.4 = private unnamed_addr constant [33 x i8] c"\0A-->After Swapping : x=%d\09y=%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 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%9 = load i32, ptr %2, align 4
%10 = load i32, ptr %3, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %9, i32 noundef %10)
br label %12
12: ; preds = %0
%13 = load i32, ptr %2, align 4
store i32 %13, ptr %4, align 4
%14 = load i32, ptr %3, align 4
store i32 %14, ptr %2, align 4
%15 = load i32, ptr %4, align 4
store i32 %15, ptr %3, align 4
br label %16
16: ; preds = %12
%17 = load i32, ptr %2, align 4
%18 = load i32, ptr %3, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %17, i32 noundef %18)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5yt1uig_.c'
source_filename = "/tmp/tmp5yt1uig_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"d %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"i %i\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"f %f\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"e %e\0A\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"g %g\0A\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"o %o\0A\00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"x %x\0A\00", align 1
@.str.7 = private unnamed_addr constant [6 x i8] c"p %p\0A\00", align 1
@.str.8 = private unnamed_addr constant [9 x i8] c".7 %.7f\0A\00", align 1
@.str.9 = private unnamed_addr constant [9 x i8] c".2 %.2f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @format_number() #0 {
%1 = alloca double, align 8
store double 1.231230e+02, ptr %1, align 8
%2 = load double, ptr %1, align 8
%3 = call i32 @printf(ptr noundef @.str, double noundef %2)
%4 = load double, ptr %1, align 8
%5 = call i32 @printf(ptr noundef @.str.1, double noundef %4)
%6 = load double, ptr %1, align 8
%7 = call i32 @printf(ptr noundef @.str.2, double noundef %6)
%8 = load double, ptr %1, align 8
%9 = call i32 @printf(ptr noundef @.str.3, double noundef %8)
%10 = load double, ptr %1, align 8
%11 = call i32 @printf(ptr noundef @.str.4, double noundef %10)
%12 = load double, ptr %1, align 8
%13 = call i32 @printf(ptr noundef @.str.5, double noundef %12)
%14 = load double, ptr %1, align 8
%15 = call i32 @printf(ptr noundef @.str.6, double noundef %14)
%16 = load double, ptr %1, align 8
%17 = call i32 @printf(ptr noundef @.str.7, double noundef %16)
%18 = load double, ptr %1, align 8
%19 = call i32 @printf(ptr noundef @.str.8, double noundef %18)
%20 = load double, ptr %1, align 8
%21 = call i32 @printf(ptr noundef @.str.9, double noundef %20)
ret void
}
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/tmp5yt1uig_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"d %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"i %i\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"f %f\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"e %e\0A\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"g %g\0A\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"o %o\0A\00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"x %x\0A\00", align 1
@.str.7 = private unnamed_addr constant [6 x i8] c"p %p\0A\00", align 1
@.str.8 = private unnamed_addr constant [9 x i8] c".7 %.7f\0A\00", align 1
@.str.9 = private unnamed_addr constant [9 x i8] c".2 %.2f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @format_number() #0 {
%1 = alloca double, align 8
store double 1.231230e+02, ptr %1, align 8
%2 = load double, ptr %1, align 8
%3 = call i32 @printf(ptr noundef @.str, double noundef %2)
%4 = load double, ptr %1, align 8
%5 = call i32 @printf(ptr noundef @.str.1, double noundef %4)
%6 = load double, ptr %1, align 8
%7 = call i32 @printf(ptr noundef @.str.2, double noundef %6)
%8 = load double, ptr %1, align 8
%9 = call i32 @printf(ptr noundef @.str.3, double noundef %8)
%10 = load double, ptr %1, align 8
%11 = call i32 @printf(ptr noundef @.str.4, double noundef %10)
%12 = load double, ptr %1, align 8
%13 = call i32 @printf(ptr noundef @.str.5, double noundef %12)
%14 = load double, ptr %1, align 8
%15 = call i32 @printf(ptr noundef @.str.6, double noundef %14)
%16 = load double, ptr %1, align 8
%17 = call i32 @printf(ptr noundef @.str.7, double noundef %16)
%18 = load double, ptr %1, align 8
%19 = call i32 @printf(ptr noundef @.str.8, double noundef %18)
%20 = load double, ptr %1, align 8
%21 = call i32 @printf(ptr noundef @.str.9, double noundef %20)
ret void
}
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/tmp4g5nobak.c'
source_filename = "/tmp/tmp4g5nobak.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @TurnbullWakemanAsian(i32 noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, double noundef %6, double noundef %7, double noundef %8, double noundef %9) #0 {
%11 = alloca i32, align 4
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca double, align 8
%22 = alloca double, align 8
%23 = alloca double, align 8
%24 = alloca double, align 8
%25 = alloca double, align 8
%26 = alloca double, align 8
%27 = alloca double, align 8
%28 = alloca double, align 8
%29 = alloca double, align 8
%30 = alloca double, align 8
%31 = alloca double, align 8
store i32 %0, ptr %11, align 4
store double %1, ptr %12, align 8
store double %2, ptr %13, align 8
store double %3, ptr %14, align 8
store double %4, ptr %15, align 8
store double %5, ptr %16, align 8
store double %6, ptr %17, align 8
store double %7, ptr %18, align 8
store double %8, ptr %19, align 8
store double %9, ptr %20, align 8
%32 = load double, ptr %12, align 8
%33 = load double, ptr %12, align 8
%34 = fcmp oeq double %32, %33
br i1 %34, label %35, label %41
35: ; preds = %10
%36 = load double, ptr %12, align 8
%37 = fcmp oge double %36, 0x3EB0C6F7A0B5ED8D
br i1 %37, label %38, label %41
38: ; preds = %35
%39 = load double, ptr %12, align 8
%40 = fcmp ole double %39, 1.000000e+12
br label %41
41: ; preds = %38, %35, %10
%42 = phi i1 [ false, %35 ], [ false, %10 ], [ %40, %38 ]
%43 = zext i1 %42 to i32
%44 = call i32 @assert(i32 noundef %43)
%45 = load double, ptr %13, align 8
%46 = load double, ptr %13, align 8
%47 = fcmp oeq double %45, %46
br i1 %47, label %48, label %54
48: ; preds = %41
%49 = load double, ptr %13, align 8
%50 = fcmp oge double %49, 0x3EB0C6F7A0B5ED8D
br i1 %50, label %51, label %54
51: ; preds = %48
%52 = load double, ptr %13, align 8
%53 = fcmp ole double %52, 1.000000e+12
br label %54
54: ; preds = %51, %48, %41
%55 = phi i1 [ false, %48 ], [ false, %41 ], [ %53, %51 ]
%56 = zext i1 %55 to i32
%57 = call i32 @assert(i32 noundef %56)
%58 = load double, ptr %14, align 8
%59 = load double, ptr %14, align 8
%60 = fcmp oeq double %58, %59
br i1 %60, label %61, label %67
61: ; preds = %54
%62 = load double, ptr %14, align 8
%63 = fcmp oge double %62, 0x3EB0C6F7A0B5ED8D
br i1 %63, label %64, label %67
64: ; preds = %61
%65 = load double, ptr %14, align 8
%66 = fcmp ole double %65, 1.000000e+12
br label %67
67: ; preds = %64, %61, %54
%68 = phi i1 [ false, %61 ], [ false, %54 ], [ %66, %64 ]
%69 = zext i1 %68 to i32
%70 = call i32 @assert(i32 noundef %69)
%71 = load double, ptr %15, align 8
%72 = load double, ptr %15, align 8
%73 = fcmp oeq double %71, %72
br i1 %73, label %74, label %80
74: ; preds = %67
%75 = load double, ptr %15, align 8
%76 = fcmp oge double %75, 0x3F2596179C29D2CE
br i1 %76, label %77, label %80
77: ; preds = %74
%78 = load double, ptr %15, align 8
%79 = fcmp ole double %78, 2.000000e+01
br label %80
80: ; preds = %77, %74, %67
%81 = phi i1 [ false, %74 ], [ false, %67 ], [ %79, %77 ]
%82 = zext i1 %81 to i32
%83 = call i32 @assert(i32 noundef %82)
%84 = load double, ptr %16, align 8
%85 = load double, ptr %16, align 8
%86 = fcmp oeq double %84, %85
br i1 %86, label %87, label %93
87: ; preds = %80
%88 = load double, ptr %16, align 8
%89 = fcmp oge double %88, 0x3F2596179C29D2CE
br i1 %89, label %90, label %93
90: ; preds = %87
%91 = load double, ptr %16, align 8
%92 = fcmp ole double %91, 2.000000e+01
br label %93
93: ; preds = %90, %87, %80
%94 = phi i1 [ false, %87 ], [ false, %80 ], [ %92, %90 ]
%95 = zext i1 %94 to i32
%96 = call i32 @assert(i32 noundef %95)
%97 = load double, ptr %18, align 8
%98 = load double, ptr %18, align 8
%99 = fcmp oeq double %97, %98
br i1 %99, label %100, label %106
100: ; preds = %93
%101 = load double, ptr %18, align 8
%102 = fcmp oge double %101, 0.000000e+00
br i1 %102, label %103, label %106
103: ; preds = %100
%104 = load double, ptr %18, align 8
%105 = fcmp ole double %104, 1.000000e+03
br label %106
106: ; preds = %103, %100, %93
%107 = phi i1 [ false, %100 ], [ false, %93 ], [ %105, %103 ]
%108 = zext i1 %107 to i32
%109 = call i32 @assert(i32 noundef %108)
%110 = load double, ptr %19, align 8
%111 = load double, ptr %19, align 8
%112 = fcmp oeq double %110, %111
br i1 %112, label %113, label %119
113: ; preds = %106
%114 = load double, ptr %19, align 8
%115 = fcmp oge double %114, -1.000000e+03
br i1 %115, label %116, label %119
116: ; preds = %113
%117 = load double, ptr %19, align 8
%118 = fcmp ole double %117, 1.000000e+03
br label %119
119: ; preds = %116, %113, %106
%120 = phi i1 [ false, %113 ], [ false, %106 ], [ %118, %116 ]
%121 = zext i1 %120 to i32
%122 = call i32 @assert(i32 noundef %121)
%123 = load double, ptr %20, align 8
%124 = load double, ptr %20, align 8
%125 = fcmp oeq double %123, %124
br i1 %125, label %126, label %132
126: ; preds = %119
%127 = load double, ptr %20, align 8
%128 = fcmp oge double %127, 0x3E7AD7F29ABCAF48
br i1 %128, label %129, label %132
129: ; preds = %126
%130 = load double, ptr %20, align 8
%131 = fcmp ole double %130, 0x40593FFFD60E94EE
br label %132
132: ; preds = %129, %126, %119
%133 = phi i1 [ false, %126 ], [ false, %119 ], [ %131, %129 ]
%134 = zext i1 %133 to i32
%135 = call i32 @assert(i32 noundef %134)
%136 = load double, ptr %19, align 8
%137 = fmul double %136, 2.000000e+00
store double %137, ptr %27, align 8
%138 = load double, ptr %20, align 8
%139 = load double, ptr %20, align 8
%140 = fmul double %138, %139
store double %140, ptr %28, align 8
%141 = load double, ptr %19, align 8
%142 = load double, ptr %28, align 8
%143 = fadd double %141, %142
store double %143, ptr %29, align 8
%144 = load double, ptr %27, align 8
%145 = load double, ptr %28, align 8
%146 = fadd double %144, %145
store double %146, ptr %30, align 8
%147 = load double, ptr %16, align 8
%148 = load double, ptr %17, align 8
%149 = fsub double %147, %148
%150 = call double @pow(double noundef %149, double noundef 2.000000e+00) #4
store double %150, ptr %31, align 8
%151 = load double, ptr %19, align 8
%152 = fcmp une double %151, 0.000000e+00
br i1 %152, label %153, label %169
153: ; preds = %132
%154 = load double, ptr %19, align 8
%155 = load double, ptr %16, align 8
%156 = fmul double %154, %155
%157 = call double @exp(double noundef %156) #4
%158 = load double, ptr %19, align 8
%159 = load double, ptr %17, align 8
%160 = fmul double %158, %159
%161 = call double @exp(double noundef %160) #4
%162 = fsub double %157, %161
%163 = load double, ptr %19, align 8
%164 = load double, ptr %16, align 8
%165 = load double, ptr %17, align 8
%166 = fsub double %164, %165
%167 = fmul double %163, %166
%168 = fdiv double %162, %167
br label %170
169: ; preds = %132
br label %170
170: ; preds = %169, %153
%171 = phi double [ %168, %153 ], [ 1.000000e+00, %169 ]
store double %171, ptr %21, align 8
%172 = load double, ptr %30, align 8
%173 = load double, ptr %16, align 8
%174 = fmul double %172, %173
%175 = call double @exp(double noundef %174) #4
%176 = fmul double 2.000000e+00, %175
%177 = load double, ptr %29, align 8
%178 = load double, ptr %30, align 8
%179 = fmul double %177, %178
%180 = load double, ptr %31, align 8
%181 = fmul double %179, %180
%182 = fdiv double %176, %181
%183 = load double, ptr %30, align 8
%184 = load double, ptr %17, align 8
%185 = fmul double %183, %184
%186 = call double @exp(double noundef %185) #4
%187 = fmul double 2.000000e+00, %186
%188 = load double, ptr %19, align 8
%189 = load double, ptr %31, align 8
%190 = fmul double %188, %189
%191 = fdiv double %187, %190
%192 = load double, ptr %30, align 8
%193 = fdiv double 1.000000e+00, %192
%194 = load double, ptr %19, align 8
%195 = load double, ptr %16, align 8
%196 = load double, ptr %17, align 8
%197 = fsub double %195, %196
%198 = fmul double %194, %197
%199 = call double @exp(double noundef %198) #4
%200 = load double, ptr %29, align 8
%201 = fdiv double %199, %200
%202 = fsub double %193, %201
%203 = call double @llvm.fmuladd.f64(double %191, double %202, double %182)
store double %203, ptr %22, align 8
%204 = load double, ptr %21, align 8
%205 = call double @log(double noundef %204) #4
%206 = load double, ptr %16, align 8
%207 = fdiv double %205, %206
store double %207, ptr %23, align 8
%208 = load double, ptr %22, align 8
%209 = call double @log(double noundef %208) #4
%210 = load double, ptr %16, align 8
%211 = fdiv double %209, %210
%212 = load double, ptr %23, align 8
%213 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %212, double %211)
%214 = call double @sqrt(double noundef %213) #4
store double %214, ptr %24, align 8
%215 = load double, ptr %15, align 8
%216 = load double, ptr %16, align 8
%217 = fsub double %215, %216
store double %217, ptr %25, align 8
%218 = load double, ptr %25, align 8
%219 = fcmp ogt double %218, 0.000000e+00
br i1 %219, label %220, label %244
220: ; preds = %170
%221 = load double, ptr %15, align 8
%222 = load double, ptr %16, align 8
%223 = fdiv double %221, %222
%224 = load double, ptr %14, align 8
%225 = load double, ptr %25, align 8
%226 = load double, ptr %16, align 8
%227 = fdiv double %225, %226
%228 = load double, ptr %13, align 8
%229 = fmul double %227, %228
%230 = fneg double %229
%231 = call double @llvm.fmuladd.f64(double %223, double %224, double %230)
store double %231, ptr %14, align 8
%232 = load i32, ptr %11, align 4
%233 = load double, ptr %12, align 8
%234 = load double, ptr %14, align 8
%235 = load double, ptr %16, align 8
%236 = load double, ptr %18, align 8
%237 = load double, ptr %23, align 8
%238 = load double, ptr %24, align 8
%239 = call double @gbs(i32 noundef %232, double noundef %233, double noundef %234, double noundef %235, double noundef %236, double noundef %237, double noundef %238)
%240 = load double, ptr %16, align 8
%241 = fmul double %239, %240
%242 = load double, ptr %15, align 8
%243 = fdiv double %241, %242
store double %243, ptr %26, align 8
br label %253
244: ; preds = %170
%245 = load i32, ptr %11, align 4
%246 = load double, ptr %12, align 8
%247 = load double, ptr %14, align 8
%248 = load double, ptr %16, align 8
%249 = load double, ptr %18, align 8
%250 = load double, ptr %23, align 8
%251 = load double, ptr %24, align 8
%252 = call double @gbs(i32 noundef %245, double noundef %246, double noundef %247, double noundef %248, double noundef %249, double noundef %250, double noundef %251)
store double %252, ptr %26, align 8
br label %253
253: ; preds = %244, %220
%254 = load double, ptr %26, align 8
ret double %254
}
declare i32 @assert(i32 noundef) #1
; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #2
; Function Attrs: nounwind
declare double @exp(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
; Function Attrs: nounwind
declare double @log(double noundef) #2
; Function Attrs: nounwind
declare double @sqrt(double noundef) #2
declare double @gbs(i32 noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4g5nobak.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @TurnbullWakemanAsian(i32 noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, double noundef %6, double noundef %7, double noundef %8, double noundef %9) #0 {
%11 = alloca i32, align 4
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca double, align 8
%22 = alloca double, align 8
%23 = alloca double, align 8
%24 = alloca double, align 8
%25 = alloca double, align 8
%26 = alloca double, align 8
%27 = alloca double, align 8
%28 = alloca double, align 8
%29 = alloca double, align 8
%30 = alloca double, align 8
%31 = alloca double, align 8
store i32 %0, ptr %11, align 4
store double %1, ptr %12, align 8
store double %2, ptr %13, align 8
store double %3, ptr %14, align 8
store double %4, ptr %15, align 8
store double %5, ptr %16, align 8
store double %6, ptr %17, align 8
store double %7, ptr %18, align 8
store double %8, ptr %19, align 8
store double %9, ptr %20, align 8
%32 = load double, ptr %12, align 8
%33 = load double, ptr %12, align 8
%34 = fcmp oeq double %32, %33
br i1 %34, label %35, label %41
35: ; preds = %10
%36 = load double, ptr %12, align 8
%37 = fcmp oge double %36, 0x3EB0C6F7A0B5ED8D
br i1 %37, label %38, label %41
38: ; preds = %35
%39 = load double, ptr %12, align 8
%40 = fcmp ole double %39, 1.000000e+12
br label %41
41: ; preds = %38, %35, %10
%42 = phi i1 [ false, %35 ], [ false, %10 ], [ %40, %38 ]
%43 = zext i1 %42 to i32
%44 = call i32 @assert(i32 noundef %43)
%45 = load double, ptr %13, align 8
%46 = load double, ptr %13, align 8
%47 = fcmp oeq double %45, %46
br i1 %47, label %48, label %54
48: ; preds = %41
%49 = load double, ptr %13, align 8
%50 = fcmp oge double %49, 0x3EB0C6F7A0B5ED8D
br i1 %50, label %51, label %54
51: ; preds = %48
%52 = load double, ptr %13, align 8
%53 = fcmp ole double %52, 1.000000e+12
br label %54
54: ; preds = %51, %48, %41
%55 = phi i1 [ false, %48 ], [ false, %41 ], [ %53, %51 ]
%56 = zext i1 %55 to i32
%57 = call i32 @assert(i32 noundef %56)
%58 = load double, ptr %14, align 8
%59 = load double, ptr %14, align 8
%60 = fcmp oeq double %58, %59
br i1 %60, label %61, label %67
61: ; preds = %54
%62 = load double, ptr %14, align 8
%63 = fcmp oge double %62, 0x3EB0C6F7A0B5ED8D
br i1 %63, label %64, label %67
64: ; preds = %61
%65 = load double, ptr %14, align 8
%66 = fcmp ole double %65, 1.000000e+12
br label %67
67: ; preds = %64, %61, %54
%68 = phi i1 [ false, %61 ], [ false, %54 ], [ %66, %64 ]
%69 = zext i1 %68 to i32
%70 = call i32 @assert(i32 noundef %69)
%71 = load double, ptr %15, align 8
%72 = load double, ptr %15, align 8
%73 = fcmp oeq double %71, %72
br i1 %73, label %74, label %80
74: ; preds = %67
%75 = load double, ptr %15, align 8
%76 = fcmp oge double %75, 0x3F2596179C29D2CE
br i1 %76, label %77, label %80
77: ; preds = %74
%78 = load double, ptr %15, align 8
%79 = fcmp ole double %78, 2.000000e+01
br label %80
80: ; preds = %77, %74, %67
%81 = phi i1 [ false, %74 ], [ false, %67 ], [ %79, %77 ]
%82 = zext i1 %81 to i32
%83 = call i32 @assert(i32 noundef %82)
%84 = load double, ptr %16, align 8
%85 = load double, ptr %16, align 8
%86 = fcmp oeq double %84, %85
br i1 %86, label %87, label %93
87: ; preds = %80
%88 = load double, ptr %16, align 8
%89 = fcmp oge double %88, 0x3F2596179C29D2CE
br i1 %89, label %90, label %93
90: ; preds = %87
%91 = load double, ptr %16, align 8
%92 = fcmp ole double %91, 2.000000e+01
br label %93
93: ; preds = %90, %87, %80
%94 = phi i1 [ false, %87 ], [ false, %80 ], [ %92, %90 ]
%95 = zext i1 %94 to i32
%96 = call i32 @assert(i32 noundef %95)
%97 = load double, ptr %18, align 8
%98 = load double, ptr %18, align 8
%99 = fcmp oeq double %97, %98
br i1 %99, label %100, label %106
100: ; preds = %93
%101 = load double, ptr %18, align 8
%102 = fcmp oge double %101, 0.000000e+00
br i1 %102, label %103, label %106
103: ; preds = %100
%104 = load double, ptr %18, align 8
%105 = fcmp ole double %104, 1.000000e+03
br label %106
106: ; preds = %103, %100, %93
%107 = phi i1 [ false, %100 ], [ false, %93 ], [ %105, %103 ]
%108 = zext i1 %107 to i32
%109 = call i32 @assert(i32 noundef %108)
%110 = load double, ptr %19, align 8
%111 = load double, ptr %19, align 8
%112 = fcmp oeq double %110, %111
br i1 %112, label %113, label %119
113: ; preds = %106
%114 = load double, ptr %19, align 8
%115 = fcmp oge double %114, -1.000000e+03
br i1 %115, label %116, label %119
116: ; preds = %113
%117 = load double, ptr %19, align 8
%118 = fcmp ole double %117, 1.000000e+03
br label %119
119: ; preds = %116, %113, %106
%120 = phi i1 [ false, %113 ], [ false, %106 ], [ %118, %116 ]
%121 = zext i1 %120 to i32
%122 = call i32 @assert(i32 noundef %121)
%123 = load double, ptr %20, align 8
%124 = load double, ptr %20, align 8
%125 = fcmp oeq double %123, %124
br i1 %125, label %126, label %132
126: ; preds = %119
%127 = load double, ptr %20, align 8
%128 = fcmp oge double %127, 0x3E7AD7F29ABCAF48
br i1 %128, label %129, label %132
129: ; preds = %126
%130 = load double, ptr %20, align 8
%131 = fcmp ole double %130, 0x40593FFFD60E94EE
br label %132
132: ; preds = %129, %126, %119
%133 = phi i1 [ false, %126 ], [ false, %119 ], [ %131, %129 ]
%134 = zext i1 %133 to i32
%135 = call i32 @assert(i32 noundef %134)
%136 = load double, ptr %19, align 8
%137 = fmul double %136, 2.000000e+00
store double %137, ptr %27, align 8
%138 = load double, ptr %20, align 8
%139 = load double, ptr %20, align 8
%140 = fmul double %138, %139
store double %140, ptr %28, align 8
%141 = load double, ptr %19, align 8
%142 = load double, ptr %28, align 8
%143 = fadd double %141, %142
store double %143, ptr %29, align 8
%144 = load double, ptr %27, align 8
%145 = load double, ptr %28, align 8
%146 = fadd double %144, %145
store double %146, ptr %30, align 8
%147 = load double, ptr %16, align 8
%148 = load double, ptr %17, align 8
%149 = fsub double %147, %148
%150 = call double @pow(double noundef %149, double noundef 2.000000e+00) #4
store double %150, ptr %31, align 8
%151 = load double, ptr %19, align 8
%152 = fcmp une double %151, 0.000000e+00
br i1 %152, label %153, label %169
153: ; preds = %132
%154 = load double, ptr %19, align 8
%155 = load double, ptr %16, align 8
%156 = fmul double %154, %155
%157 = call double @exp(double noundef %156) #4
%158 = load double, ptr %19, align 8
%159 = load double, ptr %17, align 8
%160 = fmul double %158, %159
%161 = call double @exp(double noundef %160) #4
%162 = fsub double %157, %161
%163 = load double, ptr %19, align 8
%164 = load double, ptr %16, align 8
%165 = load double, ptr %17, align 8
%166 = fsub double %164, %165
%167 = fmul double %163, %166
%168 = fdiv double %162, %167
br label %170
169: ; preds = %132
br label %170
170: ; preds = %169, %153
%171 = phi double [ %168, %153 ], [ 1.000000e+00, %169 ]
store double %171, ptr %21, align 8
%172 = load double, ptr %30, align 8
%173 = load double, ptr %16, align 8
%174 = fmul double %172, %173
%175 = call double @exp(double noundef %174) #4
%176 = fmul double 2.000000e+00, %175
%177 = load double, ptr %29, align 8
%178 = load double, ptr %30, align 8
%179 = fmul double %177, %178
%180 = load double, ptr %31, align 8
%181 = fmul double %179, %180
%182 = fdiv double %176, %181
%183 = load double, ptr %30, align 8
%184 = load double, ptr %17, align 8
%185 = fmul double %183, %184
%186 = call double @exp(double noundef %185) #4
%187 = fmul double 2.000000e+00, %186
%188 = load double, ptr %19, align 8
%189 = load double, ptr %31, align 8
%190 = fmul double %188, %189
%191 = fdiv double %187, %190
%192 = load double, ptr %30, align 8
%193 = fdiv double 1.000000e+00, %192
%194 = load double, ptr %19, align 8
%195 = load double, ptr %16, align 8
%196 = load double, ptr %17, align 8
%197 = fsub double %195, %196
%198 = fmul double %194, %197
%199 = call double @exp(double noundef %198) #4
%200 = load double, ptr %29, align 8
%201 = fdiv double %199, %200
%202 = fsub double %193, %201
%203 = call double @llvm.fmuladd.f64(double %191, double %202, double %182)
store double %203, ptr %22, align 8
%204 = load double, ptr %21, align 8
%205 = call double @log(double noundef %204) #4
%206 = load double, ptr %16, align 8
%207 = fdiv double %205, %206
store double %207, ptr %23, align 8
%208 = load double, ptr %22, align 8
%209 = call double @log(double noundef %208) #4
%210 = load double, ptr %16, align 8
%211 = fdiv double %209, %210
%212 = load double, ptr %23, align 8
%213 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %212, double %211)
%214 = call double @sqrt(double noundef %213) #4
store double %214, ptr %24, align 8
%215 = load double, ptr %15, align 8
%216 = load double, ptr %16, align 8
%217 = fsub double %215, %216
store double %217, ptr %25, align 8
%218 = load double, ptr %25, align 8
%219 = fcmp ogt double %218, 0.000000e+00
br i1 %219, label %220, label %244
220: ; preds = %170
%221 = load double, ptr %15, align 8
%222 = load double, ptr %16, align 8
%223 = fdiv double %221, %222
%224 = load double, ptr %14, align 8
%225 = load double, ptr %25, align 8
%226 = load double, ptr %16, align 8
%227 = fdiv double %225, %226
%228 = load double, ptr %13, align 8
%229 = fmul double %227, %228
%230 = fneg double %229
%231 = call double @llvm.fmuladd.f64(double %223, double %224, double %230)
store double %231, ptr %14, align 8
%232 = load i32, ptr %11, align 4
%233 = load double, ptr %12, align 8
%234 = load double, ptr %14, align 8
%235 = load double, ptr %16, align 8
%236 = load double, ptr %18, align 8
%237 = load double, ptr %23, align 8
%238 = load double, ptr %24, align 8
%239 = call double @gbs(i32 noundef %232, double noundef %233, double noundef %234, double noundef %235, double noundef %236, double noundef %237, double noundef %238)
%240 = load double, ptr %16, align 8
%241 = fmul double %239, %240
%242 = load double, ptr %15, align 8
%243 = fdiv double %241, %242
store double %243, ptr %26, align 8
br label %253
244: ; preds = %170
%245 = load i32, ptr %11, align 4
%246 = load double, ptr %12, align 8
%247 = load double, ptr %14, align 8
%248 = load double, ptr %16, align 8
%249 = load double, ptr %18, align 8
%250 = load double, ptr %23, align 8
%251 = load double, ptr %24, align 8
%252 = call double @gbs(i32 noundef %245, double noundef %246, double noundef %247, double noundef %248, double noundef %249, double noundef %250, double noundef %251)
store double %252, ptr %26, align 8
br label %253
253: ; preds = %244, %220
%254 = load double, ptr %26, align 8
ret double %254
}
declare i32 @assert(i32 noundef) #1
; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #2
; Function Attrs: nounwind
declare double @exp(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
; Function Attrs: nounwind
declare double @log(double noundef) #2
; Function Attrs: nounwind
declare double @sqrt(double noundef) #2
declare double @gbs(i32 noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwx3cvq_i.c'
source_filename = "/tmp/tmpwx3cvq_i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Enter A Number: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"sin(%d) = %.4f \0A\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"cos(%d) = %.4f \0A\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"SUM = %.4f \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = call double @sin_x(i32 noundef %6)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %5, double noundef %7)
%9 = load i32, ptr %2, align 4
%10 = load i32, ptr %2, align 4
%11 = call double @cos_x(i32 noundef %10)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %9, double noundef %11)
%13 = call double (...) @sum_x()
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %13)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare double @sin_x(i32 noundef) #1
declare double @cos_x(i32 noundef) #1
declare double @sum_x(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwx3cvq_i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Enter A Number: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"sin(%d) = %.4f \0A\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"cos(%d) = %.4f \0A\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"SUM = %.4f \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = call double @sin_x(i32 noundef %6)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %5, double noundef %7)
%9 = load i32, ptr %2, align 4
%10 = load i32, ptr %2, align 4
%11 = call double @cos_x(i32 noundef %10)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %9, double noundef %11)
%13 = call double (...) @sum_x()
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %13)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare double @sin_x(i32 noundef) #1
declare double @cos_x(i32 noundef) #1
declare double @sum_x(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpchr4lfuz.c'
source_filename = "/tmp/tmpchr4lfuz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @randi(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = call i64 (...) @randr()
%6 = mul nsw i64 %4, %5
%7 = call i64 @floor(i64 noundef %6)
store i64 %7, ptr %3, align 8
%8 = load i64, ptr %3, align 8
ret i64 %8
}
declare i64 @floor(i64 noundef) #1
declare i64 @randr(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpchr4lfuz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @randi(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = call i64 (...) @randr()
%6 = mul nsw i64 %4, %5
%7 = call i64 @floor(i64 noundef %6)
store i64 %7, ptr %3, align 8
%8 = load i64, ptr %3, align 8
ret i64 %8
}
declare i64 @floor(i64 noundef) #1
declare i64 @randr(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpllaiin8e.c'
source_filename = "/tmp/tmpllaiin8e.c"
target datalayout = "e-m:e-p270: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/tmpllaiin8e.c"
target datalayout = "e-m:e-p270: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/tmp52oxq_ci.c'
source_filename = "/tmp/tmp52oxq_ci.c"
target datalayout = "e-m:e-p270: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/tmp52oxq_ci.c"
target datalayout = "e-m:e-p270: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/tmpzp_v_z1g.c'
source_filename = "/tmp/tmpzp_v_z1g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @is_leap_year(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = srem i32 %4, 4
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %11
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = srem i32 %8, 100
%10 = icmp ne i32 %9, 0
br i1 %10, label %15, label %11
11: ; preds = %7, %1
%12 = load i32, ptr %3, align 4
%13 = srem i32 %12, 400
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %11, %7
store i32 1, ptr %2, align 4
br label %17
16: ; preds = %11
store i32 0, ptr %2, align 4
br label %17
17: ; preds = %16, %15
%18 = load i32, ptr %2, align 4
ret i32 %18
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzp_v_z1g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @is_leap_year(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = srem i32 %4, 4
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %11
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = srem i32 %8, 100
%10 = icmp ne i32 %9, 0
br i1 %10, label %15, label %11
11: ; preds = %7, %1
%12 = load i32, ptr %3, align 4
%13 = srem i32 %12, 400
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %11, %7
store i32 1, ptr %2, align 4
br label %17
16: ; preds = %11
store i32 0, ptr %2, align 4
br label %17
17: ; preds = %16, %15
%18 = load i32, ptr %2, align 4
ret i32 %18
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpccptff75.c'
source_filename = "/tmp/tmpccptff75.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 (...) @b()
%2 = call i32 @strlen(ptr noundef @.str)
%3 = call i32 @write(i32 noundef 1, ptr noundef @.str, i32 noundef %2)
ret i32 0
}
declare i32 @b(...) #1
declare i32 @write(i32 noundef, ptr 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/tmpccptff75.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 (...) @b()
%2 = call i32 @strlen(ptr noundef @.str)
%3 = call i32 @write(i32 noundef 1, ptr noundef @.str, i32 noundef %2)
ret i32 0
}
declare i32 @b(...) #1
declare i32 @write(i32 noundef, ptr 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/tmpmf1h6nxd.c'
source_filename = "/tmp/tmpmf1h6nxd.c"
target datalayout = "e-m:e-p270: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, i32, i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"127.0.0.1\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [23 x i8] c"connect fail,error:%s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [25 x i8] c"client send to server .\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"-----> hello server\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 [30 x i8], align 16
%8 = alloca %struct.sockaddr_in, align 4
%9 = 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
%10 = load i32, ptr @AF_INET, align 4
%11 = load i32, ptr @SOCK_STREAM, align 4
%12 = call i32 @socket(i32 noundef %10, i32 noundef %11, i32 noundef 0)
store i32 %12, ptr %6, align 4
%13 = call i32 @bzero(ptr noundef %8, i32 noundef 12)
%14 = load i32, ptr @AF_INET, align 4
%15 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 2
store i32 %14, ptr %15, align 4
%16 = call i32 @htons(i32 noundef 8787)
%17 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 1
store i32 %16, ptr %17, align 4
%18 = load i32, ptr @AF_INET, align 4
%19 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 0
%20 = call i32 @inet_pton(i32 noundef %18, ptr noundef @.str, ptr noundef %19)
store i32 0, ptr %9, align 4
%21 = load i32, ptr %6, align 4
%22 = call i32 @connect(i32 noundef %21, ptr noundef %8, i32 noundef 12)
store i32 %22, ptr %9, align 4
%23 = load i32, ptr %9, align 4
%24 = icmp slt i32 %23, 0
br i1 %24, label %25, label %30
25: ; preds = %2
%26 = load i32, ptr @stderr, align 4
%27 = load i32, ptr @errno, align 4
%28 = call ptr @strerror(i32 noundef %27)
%29 = call i32 @fprintf(i32 noundef %26, ptr noundef @.str.1, ptr noundef %28)
store i32 -1, ptr %3, align 4
br label %39
30: ; preds = %2
%31 = call i32 @printf(ptr noundef @.str.2)
%32 = getelementptr inbounds [30 x i8], ptr %7, i64 0, i64 0
%33 = call i32 @sprintf(ptr noundef %32, ptr noundef @.str.3)
%34 = load i32, ptr %6, align 4
%35 = getelementptr inbounds [30 x i8], ptr %7, i64 0, i64 0
%36 = call i32 @write(i32 noundef %34, ptr noundef %35, i32 noundef 32)
%37 = load i32, ptr %6, align 4
%38 = call i32 @handle_connection(i32 noundef %37)
store i32 0, ptr %3, align 4
br label %39
39: ; preds = %30, %25
%40 = load i32, ptr %3, align 4
ret i32 %40
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @inet_pton(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @handle_connection(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/tmpmf1h6nxd.c"
target datalayout = "e-m:e-p270: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, i32, i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"127.0.0.1\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [23 x i8] c"connect fail,error:%s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [25 x i8] c"client send to server .\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"-----> hello server\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 [30 x i8], align 16
%8 = alloca %struct.sockaddr_in, align 4
%9 = 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
%10 = load i32, ptr @AF_INET, align 4
%11 = load i32, ptr @SOCK_STREAM, align 4
%12 = call i32 @socket(i32 noundef %10, i32 noundef %11, i32 noundef 0)
store i32 %12, ptr %6, align 4
%13 = call i32 @bzero(ptr noundef %8, i32 noundef 12)
%14 = load i32, ptr @AF_INET, align 4
%15 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 2
store i32 %14, ptr %15, align 4
%16 = call i32 @htons(i32 noundef 8787)
%17 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 1
store i32 %16, ptr %17, align 4
%18 = load i32, ptr @AF_INET, align 4
%19 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 0
%20 = call i32 @inet_pton(i32 noundef %18, ptr noundef @.str, ptr noundef %19)
store i32 0, ptr %9, align 4
%21 = load i32, ptr %6, align 4
%22 = call i32 @connect(i32 noundef %21, ptr noundef %8, i32 noundef 12)
store i32 %22, ptr %9, align 4
%23 = load i32, ptr %9, align 4
%24 = icmp slt i32 %23, 0
br i1 %24, label %25, label %30
25: ; preds = %2
%26 = load i32, ptr @stderr, align 4
%27 = load i32, ptr @errno, align 4
%28 = call ptr @strerror(i32 noundef %27)
%29 = call i32 @fprintf(i32 noundef %26, ptr noundef @.str.1, ptr noundef %28)
store i32 -1, ptr %3, align 4
br label %39
30: ; preds = %2
%31 = call i32 @printf(ptr noundef @.str.2)
%32 = getelementptr inbounds [30 x i8], ptr %7, i64 0, i64 0
%33 = call i32 @sprintf(ptr noundef %32, ptr noundef @.str.3)
%34 = load i32, ptr %6, align 4
%35 = getelementptr inbounds [30 x i8], ptr %7, i64 0, i64 0
%36 = call i32 @write(i32 noundef %34, ptr noundef %35, i32 noundef 32)
%37 = load i32, ptr %6, align 4
%38 = call i32 @handle_connection(i32 noundef %37)
store i32 0, ptr %3, align 4
br label %39
39: ; preds = %30, %25
%40 = load i32, ptr %3, align 4
ret i32 %40
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @inet_pton(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @handle_connection(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/tmpk_7my_h1.c'
source_filename = "/tmp/tmpk_7my_h1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i64 }
@errno = dso_local global i32 0, align 4
@O_RDONLY = dso_local global i32 0, align 4
@PROT_READ = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mmap_alloc(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 i32, align 4
%9 = alloca %struct.stat, align 8
%10 = alloca i32, align 4
%11 = 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 -1, ptr %8, align 4
store i32 0, ptr %10, align 4
store ptr null, ptr %11, align 8
%12 = load ptr, ptr %5, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %20, label %14
14: ; preds = %3
%15 = load ptr, ptr %6, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %20, label %17
17: ; preds = %14
%18 = load ptr, ptr %7, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %22
20: ; preds = %17, %14, %3
%21 = load i32, ptr @errno, align 4
store i32 %21, ptr %10, align 4
br label %52
22: ; preds = %17
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr @O_RDONLY, align 4
%25 = call i32 @open(ptr noundef %23, i32 noundef %24)
store i32 %25, ptr %8, align 4
%26 = icmp eq i32 %25, -1
br i1 %26, label %27, label %29
27: ; preds = %22
%28 = load i32, ptr @errno, align 4
store i32 %28, ptr %10, align 4
br label %52
29: ; preds = %22
%30 = load i32, ptr %8, align 4
%31 = call i32 @fstat(i32 noundef %30, ptr noundef %9)
%32 = icmp eq i32 %31, -1
br i1 %32, label %33, label %35
33: ; preds = %29
%34 = load i32, ptr @errno, align 4
store i32 %34, ptr %10, align 4
br label %52
35: ; preds = %29
%36 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 0
%37 = load i64, ptr %36, align 8
%38 = load i32, ptr @PROT_READ, align 4
%39 = load i32, ptr @MAP_SHARED, align 4
%40 = load i32, ptr %8, align 4
%41 = call ptr @mmap(ptr noundef null, i64 noundef %37, i32 noundef %38, i32 noundef %39, i32 noundef %40, i32 noundef 0)
store ptr %41, ptr %11, align 8
%42 = load ptr, ptr %11, align 8
%43 = icmp eq ptr %42, null
br i1 %43, label %44, label %46
44: ; preds = %35
%45 = load i32, ptr @errno, align 4
store i32 %45, ptr %10, align 4
br label %52
46: ; preds = %35
%47 = load ptr, ptr %11, align 8
%48 = load ptr, ptr %6, align 8
store ptr %47, ptr %48, align 8
%49 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 0
%50 = load i64, ptr %49, align 8
%51 = load ptr, ptr %7, align 8
store i64 %50, ptr %51, align 8
br label %52
52: ; preds = %46, %44, %33, %27, %20
%53 = load i32, ptr %8, align 4
%54 = icmp sge i32 %53, 0
br i1 %54, label %55, label %58
55: ; preds = %52
%56 = load i32, ptr %8, align 4
%57 = call i32 @close(i32 noundef %56)
store i32 -1, ptr %8, align 4
br label %58
58: ; preds = %55, %52
%59 = load i32, ptr %10, align 4
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %63
61: ; preds = %58
%62 = load i32, ptr %10, align 4
store i32 %62, ptr @errno, align 4
store i32 -1, ptr %4, align 4
br label %64
63: ; preds = %58
store i32 0, ptr %4, align 4
br label %64
64: ; preds = %63, %61
%65 = load i32, ptr %4, align 4
ret i32 %65
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fstat(i32 noundef, ptr noundef) #1
declare ptr @mmap(ptr noundef, i64 noundef, i32 noundef, i32 noundef, i32 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk_7my_h1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i64 }
@errno = dso_local global i32 0, align 4
@O_RDONLY = dso_local global i32 0, align 4
@PROT_READ = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mmap_alloc(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 i32, align 4
%9 = alloca %struct.stat, align 8
%10 = alloca i32, align 4
%11 = 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 -1, ptr %8, align 4
store i32 0, ptr %10, align 4
store ptr null, ptr %11, align 8
%12 = load ptr, ptr %5, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %20, label %14
14: ; preds = %3
%15 = load ptr, ptr %6, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %20, label %17
17: ; preds = %14
%18 = load ptr, ptr %7, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %22
20: ; preds = %17, %14, %3
%21 = load i32, ptr @errno, align 4
store i32 %21, ptr %10, align 4
br label %52
22: ; preds = %17
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr @O_RDONLY, align 4
%25 = call i32 @open(ptr noundef %23, i32 noundef %24)
store i32 %25, ptr %8, align 4
%26 = icmp eq i32 %25, -1
br i1 %26, label %27, label %29
27: ; preds = %22
%28 = load i32, ptr @errno, align 4
store i32 %28, ptr %10, align 4
br label %52
29: ; preds = %22
%30 = load i32, ptr %8, align 4
%31 = call i32 @fstat(i32 noundef %30, ptr noundef %9)
%32 = icmp eq i32 %31, -1
br i1 %32, label %33, label %35
33: ; preds = %29
%34 = load i32, ptr @errno, align 4
store i32 %34, ptr %10, align 4
br label %52
35: ; preds = %29
%36 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 0
%37 = load i64, ptr %36, align 8
%38 = load i32, ptr @PROT_READ, align 4
%39 = load i32, ptr @MAP_SHARED, align 4
%40 = load i32, ptr %8, align 4
%41 = call ptr @mmap(ptr noundef null, i64 noundef %37, i32 noundef %38, i32 noundef %39, i32 noundef %40, i32 noundef 0)
store ptr %41, ptr %11, align 8
%42 = load ptr, ptr %11, align 8
%43 = icmp eq ptr %42, null
br i1 %43, label %44, label %46
44: ; preds = %35
%45 = load i32, ptr @errno, align 4
store i32 %45, ptr %10, align 4
br label %52
46: ; preds = %35
%47 = load ptr, ptr %11, align 8
%48 = load ptr, ptr %6, align 8
store ptr %47, ptr %48, align 8
%49 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 0
%50 = load i64, ptr %49, align 8
%51 = load ptr, ptr %7, align 8
store i64 %50, ptr %51, align 8
br label %52
52: ; preds = %46, %44, %33, %27, %20
%53 = load i32, ptr %8, align 4
%54 = icmp sge i32 %53, 0
br i1 %54, label %55, label %58
55: ; preds = %52
%56 = load i32, ptr %8, align 4
%57 = call i32 @close(i32 noundef %56)
store i32 -1, ptr %8, align 4
br label %58
58: ; preds = %55, %52
%59 = load i32, ptr %10, align 4
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %63
61: ; preds = %58
%62 = load i32, ptr %10, align 4
store i32 %62, ptr @errno, align 4
store i32 -1, ptr %4, align 4
br label %64
63: ; preds = %58
store i32 0, ptr %4, align 4
br label %64
64: ; preds = %63, %61
%65 = load i32, ptr %4, align 4
ret i32 %65
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fstat(i32 noundef, ptr noundef) #1
declare ptr @mmap(ptr noundef, i64 noundef, i32 noundef, i32 noundef, i32 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"}
|
; ModuleID = '/tmp/tmp48umx6yc.c'
source_filename = "/tmp/tmp48umx6yc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gden_diag(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
store ptr %0, ptr %7, align 8
store i64 %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
store double 1.000000e+00, ptr %15, align 8
store i64 0, ptr %13, align 8
br label %18
18: ; preds = %45, %6
%19 = load i64, ptr %13, align 8
%20 = load i64, ptr %9, align 8
%21 = icmp ult i64 %19, %20
br i1 %21, label %22, label %48
22: ; preds = %18
%23 = load ptr, ptr %11, align 8
%24 = load i64, ptr %13, align 8
%25 = getelementptr inbounds double, ptr %23, i64 %24
%26 = load double, ptr %25, align 8
%27 = fdiv double 5.000000e-01, %26
%28 = load ptr, ptr %11, align 8
%29 = load i64, ptr %13, align 8
%30 = getelementptr inbounds double, ptr %28, i64 %29
store double %27, ptr %30, align 8
%31 = load ptr, ptr %11, align 8
%32 = load i64, ptr %13, align 8
%33 = getelementptr inbounds double, ptr %31, i64 %32
%34 = load double, ptr %33, align 8
%35 = load double, ptr @M_PI, align 8
%36 = fdiv double %34, %35
%37 = call double @sqrt(double noundef %36) #3
%38 = load double, ptr %15, align 8
%39 = fmul double %38, %37
store double %39, ptr %15, align 8
%40 = load ptr, ptr %11, align 8
%41 = load i64, ptr %13, align 8
%42 = getelementptr inbounds double, ptr %40, i64 %41
%43 = load double, ptr %42, align 8
%44 = fmul double %43, -1.000000e+00
store double %44, ptr %42, align 8
br label %45
45: ; preds = %22
%46 = load i64, ptr %13, align 8
%47 = add i64 %46, 1
store i64 %47, ptr %13, align 8
br label %18, !llvm.loop !6
48: ; preds = %18
store i64 0, ptr %14, align 8
br label %49
49: ; preds = %92, %48
%50 = load i64, ptr %14, align 8
%51 = load i64, ptr %8, align 8
%52 = icmp ult i64 %50, %51
br i1 %52, label %53, label %95
53: ; preds = %49
store double 0.000000e+00, ptr %16, align 8
store i64 0, ptr %13, align 8
br label %54
54: ; preds = %81, %53
%55 = load i64, ptr %13, align 8
%56 = load i64, ptr %9, align 8
%57 = icmp ult i64 %55, %56
br i1 %57, label %58, label %84
58: ; preds = %54
%59 = load ptr, ptr %7, align 8
%60 = load i64, ptr %14, align 8
%61 = load i64, ptr %9, align 8
%62 = mul i64 %60, %61
%63 = load i64, ptr %13, align 8
%64 = add i64 %62, %63
%65 = getelementptr inbounds double, ptr %59, i64 %64
%66 = load double, ptr %65, align 8
%67 = load ptr, ptr %10, align 8
%68 = load i64, ptr %13, align 8
%69 = getelementptr inbounds double, ptr %67, i64 %68
%70 = load double, ptr %69, align 8
%71 = fsub double %66, %70
store double %71, ptr %17, align 8
%72 = load double, ptr %17, align 8
%73 = load double, ptr %17, align 8
%74 = fmul double %72, %73
%75 = load ptr, ptr %11, align 8
%76 = load i64, ptr %13, align 8
%77 = getelementptr inbounds double, ptr %75, i64 %76
%78 = load double, ptr %77, align 8
%79 = load double, ptr %16, align 8
%80 = call double @llvm.fmuladd.f64(double %74, double %78, double %79)
store double %80, ptr %16, align 8
br label %81
81: ; preds = %58
%82 = load i64, ptr %13, align 8
%83 = add i64 %82, 1
store i64 %83, ptr %13, align 8
br label %54, !llvm.loop !8
84: ; preds = %54
%85 = load double, ptr %16, align 8
%86 = call double @exp(double noundef %85) #3
%87 = load double, ptr %15, align 8
%88 = fmul double %86, %87
%89 = load ptr, ptr %12, align 8
%90 = load i64, ptr %14, align 8
%91 = getelementptr inbounds double, ptr %89, i64 %90
store double %88, ptr %91, align 8
br label %92
92: ; preds = %84
%93 = load i64, ptr %14, align 8
%94 = add i64 %93, 1
store i64 %94, ptr %14, align 8
br label %49, !llvm.loop !9
95: ; preds = %49
ret i32 0
}
; Function Attrs: nounwind
declare double @sqrt(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nounwind
declare double @exp(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 = { nounwind "frame-pointer"="all" "no-trapping-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) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp48umx6yc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gden_diag(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
store ptr %0, ptr %7, align 8
store i64 %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
store double 1.000000e+00, ptr %15, align 8
store i64 0, ptr %13, align 8
%18 = load i64, ptr %13, align 8
%19 = load i64, ptr %9, align 8
%20 = icmp ult i64 %18, %19
br i1 %20, label %.lr.ph, label %50
.lr.ph: ; preds = %6
br label %21
21: ; preds = %.lr.ph, %44
%22 = load ptr, ptr %11, align 8
%23 = load i64, ptr %13, align 8
%24 = getelementptr inbounds double, ptr %22, i64 %23
%25 = load double, ptr %24, align 8
%26 = fdiv double 5.000000e-01, %25
%27 = load ptr, ptr %11, align 8
%28 = load i64, ptr %13, align 8
%29 = getelementptr inbounds double, ptr %27, i64 %28
store double %26, ptr %29, align 8
%30 = load ptr, ptr %11, align 8
%31 = load i64, ptr %13, align 8
%32 = getelementptr inbounds double, ptr %30, i64 %31
%33 = load double, ptr %32, align 8
%34 = load double, ptr @M_PI, align 8
%35 = fdiv double %33, %34
%36 = call double @sqrt(double noundef %35) #3
%37 = load double, ptr %15, align 8
%38 = fmul double %37, %36
store double %38, ptr %15, align 8
%39 = load ptr, ptr %11, align 8
%40 = load i64, ptr %13, align 8
%41 = getelementptr inbounds double, ptr %39, i64 %40
%42 = load double, ptr %41, align 8
%43 = fmul double %42, -1.000000e+00
store double %43, ptr %41, align 8
br label %44
44: ; preds = %21
%45 = load i64, ptr %13, align 8
%46 = add i64 %45, 1
store i64 %46, ptr %13, align 8
%47 = load i64, ptr %13, align 8
%48 = load i64, ptr %9, align 8
%49 = icmp ult i64 %47, %48
br i1 %49, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %44
br label %50
50: ; preds = %._crit_edge, %6
store i64 0, ptr %14, align 8
%51 = load i64, ptr %14, align 8
%52 = load i64, ptr %8, align 8
%53 = icmp ult i64 %51, %52
br i1 %53, label %.lr.ph5, label %101
.lr.ph5: ; preds = %50
br label %54
54: ; preds = %.lr.ph5, %95
store double 0.000000e+00, ptr %16, align 8
store i64 0, ptr %13, align 8
%55 = load i64, ptr %13, align 8
%56 = load i64, ptr %9, align 8
%57 = icmp ult i64 %55, %56
br i1 %57, label %.lr.ph2, label %87
.lr.ph2: ; preds = %54
br label %58
58: ; preds = %.lr.ph2, %81
%59 = load ptr, ptr %7, align 8
%60 = load i64, ptr %14, align 8
%61 = load i64, ptr %9, align 8
%62 = mul i64 %60, %61
%63 = load i64, ptr %13, align 8
%64 = add i64 %62, %63
%65 = getelementptr inbounds double, ptr %59, i64 %64
%66 = load double, ptr %65, align 8
%67 = load ptr, ptr %10, align 8
%68 = load i64, ptr %13, align 8
%69 = getelementptr inbounds double, ptr %67, i64 %68
%70 = load double, ptr %69, align 8
%71 = fsub double %66, %70
store double %71, ptr %17, align 8
%72 = load double, ptr %17, align 8
%73 = load double, ptr %17, align 8
%74 = fmul double %72, %73
%75 = load ptr, ptr %11, align 8
%76 = load i64, ptr %13, align 8
%77 = getelementptr inbounds double, ptr %75, i64 %76
%78 = load double, ptr %77, align 8
%79 = load double, ptr %16, align 8
%80 = call double @llvm.fmuladd.f64(double %74, double %78, double %79)
store double %80, ptr %16, align 8
br label %81
81: ; preds = %58
%82 = load i64, ptr %13, align 8
%83 = add i64 %82, 1
store i64 %83, ptr %13, align 8
%84 = load i64, ptr %13, align 8
%85 = load i64, ptr %9, align 8
%86 = icmp ult i64 %84, %85
br i1 %86, label %58, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %81
br label %87
87: ; preds = %._crit_edge3, %54
%88 = load double, ptr %16, align 8
%89 = call double @exp(double noundef %88) #3
%90 = load double, ptr %15, align 8
%91 = fmul double %89, %90
%92 = load ptr, ptr %12, align 8
%93 = load i64, ptr %14, align 8
%94 = getelementptr inbounds double, ptr %92, i64 %93
store double %91, ptr %94, align 8
br label %95
95: ; preds = %87
%96 = load i64, ptr %14, align 8
%97 = add i64 %96, 1
store i64 %97, ptr %14, align 8
%98 = load i64, ptr %14, align 8
%99 = load i64, ptr %8, align 8
%100 = icmp ult i64 %98, %99
br i1 %100, label %54, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %95
br label %101
101: ; preds = %._crit_edge6, %50
ret i32 0
}
; Function Attrs: nounwind
declare double @sqrt(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nounwind
declare double @exp(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 = { nounwind "frame-pointer"="all" "no-trapping-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) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpdtc6414_.c'
source_filename = "/tmp/tmpdtc6414_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @uninitvar_mbstowcs(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca [100 x i32], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%11 = load ptr, ptr %7, align 8
%12 = load ptr, ptr %5, align 8
%13 = load i64, ptr %6, align 8
%14 = trunc i64 %13 to i32
%15 = call i32 @mbstowcs(ptr noundef %11, ptr noundef %12, i32 noundef %14)
%16 = load ptr, ptr %4, align 8
%17 = load ptr, ptr %8, align 8
%18 = load i64, ptr %6, align 8
%19 = trunc i64 %18 to i32
%20 = call i32 @mbstowcs(ptr noundef %16, ptr noundef %17, i32 noundef %19)
%21 = load ptr, ptr %4, align 8
%22 = load ptr, ptr %5, align 8
%23 = load i64, ptr %9, align 8
%24 = trunc i64 %23 to i32
%25 = call i32 @mbstowcs(ptr noundef %21, ptr noundef %22, i32 noundef %24)
%26 = load ptr, ptr %4, align 8
%27 = load ptr, ptr %5, align 8
%28 = load i64, ptr %6, align 8
%29 = trunc i64 %28 to i32
%30 = call i32 @mbstowcs(ptr noundef %26, ptr noundef %27, i32 noundef %29)
%31 = getelementptr inbounds [100 x i32], ptr %10, i64 0, i64 0
%32 = load ptr, ptr %5, align 8
%33 = call i32 @mbstowcs(ptr noundef %31, ptr noundef %32, i32 noundef 100)
ret void
}
declare i32 @mbstowcs(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/tmpdtc6414_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @uninitvar_mbstowcs(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca [100 x i32], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%11 = load ptr, ptr %7, align 8
%12 = load ptr, ptr %5, align 8
%13 = load i64, ptr %6, align 8
%14 = trunc i64 %13 to i32
%15 = call i32 @mbstowcs(ptr noundef %11, ptr noundef %12, i32 noundef %14)
%16 = load ptr, ptr %4, align 8
%17 = load ptr, ptr %8, align 8
%18 = load i64, ptr %6, align 8
%19 = trunc i64 %18 to i32
%20 = call i32 @mbstowcs(ptr noundef %16, ptr noundef %17, i32 noundef %19)
%21 = load ptr, ptr %4, align 8
%22 = load ptr, ptr %5, align 8
%23 = load i64, ptr %9, align 8
%24 = trunc i64 %23 to i32
%25 = call i32 @mbstowcs(ptr noundef %21, ptr noundef %22, i32 noundef %24)
%26 = load ptr, ptr %4, align 8
%27 = load ptr, ptr %5, align 8
%28 = load i64, ptr %6, align 8
%29 = trunc i64 %28 to i32
%30 = call i32 @mbstowcs(ptr noundef %26, ptr noundef %27, i32 noundef %29)
%31 = getelementptr inbounds [100 x i32], ptr %10, i64 0, i64 0
%32 = load ptr, ptr %5, align 8
%33 = call i32 @mbstowcs(ptr noundef %31, ptr noundef %32, i32 noundef 100)
ret void
}
declare i32 @mbstowcs(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/tmp26266wqq.c'
source_filename = "/tmp/tmp26266wqq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [23 x i8] c"test/source/stattest.c\00", align 1
@.str.1 = private unnamed_addr constant [37 x i8] c"Stat returns %d; size of file is %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 %struct.stat, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 @stat(ptr noundef @.str, ptr noundef %6)
store i32 %8, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 0
%11 = load i32, ptr %10, align 4
%12 = call i32 @printf(ptr noundef @.str.1, i32 noundef %9, i32 noundef %11)
%13 = load i32, ptr %7, align 4
ret i32 %13
}
declare i32 @stat(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp26266wqq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [23 x i8] c"test/source/stattest.c\00", align 1
@.str.1 = private unnamed_addr constant [37 x i8] c"Stat returns %d; size of file is %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 %struct.stat, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 @stat(ptr noundef @.str, ptr noundef %6)
store i32 %8, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 0
%11 = load i32, ptr %10, align 4
%12 = call i32 @printf(ptr noundef @.str.1, i32 noundef %9, i32 noundef %11)
%13 = load i32, ptr %7, align 4
ret i32 %13
}
declare i32 @stat(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpttb0goom.c'
source_filename = "/tmp/tmpttb0goom.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 i32] [i32 32, i32 9, i32 13, i32 10, i32 34, i32 61, i32 0], align 4
@.str.1 = private unnamed_addr constant [2 x i32] [i32 34, i32 0], align 4
@.str.2 = private unnamed_addr constant [5 x i32] [i32 32, i32 9, i32 13, i32 10, i32 0], align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @strdelim(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %5, align 4
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %6, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %10
9: ; preds = %1
store ptr null, ptr %2, align 8
br label %87
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = load ptr, ptr %11, align 8
store ptr %12, ptr %4, align 8
%13 = load ptr, ptr %3, align 8
%14 = load ptr, ptr %13, align 8
%15 = call ptr @wcspbrk(ptr noundef %14, ptr noundef @.str)
%16 = load ptr, ptr %3, align 8
store ptr %15, ptr %16, align 8
%17 = load ptr, ptr %3, align 8
%18 = load ptr, ptr %17, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %22
20: ; preds = %10
%21 = load ptr, ptr %4, align 8
store ptr %21, ptr %2, align 8
br label %87
22: ; preds = %10
%23 = load ptr, ptr %3, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 0
%25 = load ptr, ptr %24, align 8
%26 = load i32, ptr %25, align 4
%27 = icmp eq i32 %26, 34
br i1 %27, label %28, label %49
28: ; preds = %22
%29 = load ptr, ptr %3, align 8
%30 = load ptr, ptr %29, align 8
%31 = load ptr, ptr %3, align 8
%32 = load ptr, ptr %31, align 8
%33 = getelementptr inbounds i32, ptr %32, i64 1
%34 = load ptr, ptr %3, align 8
%35 = load ptr, ptr %34, align 8
%36 = call i32 @wcslen(ptr noundef %35)
%37 = call i32 @wmemmove(ptr noundef %30, ptr noundef %33, i32 noundef %36)
%38 = load ptr, ptr %3, align 8
%39 = load ptr, ptr %38, align 8
%40 = call ptr @wcspbrk(ptr noundef %39, ptr noundef @.str.1)
%41 = load ptr, ptr %3, align 8
store ptr %40, ptr %41, align 8
%42 = icmp eq ptr %40, null
br i1 %42, label %43, label %44
43: ; preds = %28
store ptr null, ptr %2, align 8
br label %87
44: ; preds = %28
%45 = load ptr, ptr %3, align 8
%46 = getelementptr inbounds ptr, ptr %45, i64 0
%47 = load ptr, ptr %46, align 8
store i32 0, ptr %47, align 4
%48 = load ptr, ptr %4, align 8
store ptr %48, ptr %2, align 8
br label %87
49: ; preds = %22
%50 = load ptr, ptr %3, align 8
%51 = getelementptr inbounds ptr, ptr %50, i64 0
%52 = load ptr, ptr %51, align 8
%53 = load i32, ptr %52, align 4
%54 = icmp eq i32 %53, 61
br i1 %54, label %55, label %56
55: ; preds = %49
store i32 1, ptr %5, align 4
br label %56
56: ; preds = %55, %49
%57 = load ptr, ptr %3, align 8
%58 = getelementptr inbounds ptr, ptr %57, i64 0
%59 = load ptr, ptr %58, align 8
store i32 0, ptr %59, align 4
%60 = load ptr, ptr %3, align 8
%61 = load ptr, ptr %60, align 8
%62 = getelementptr inbounds i32, ptr %61, i64 1
%63 = call i64 @wcsspn(ptr noundef %62, ptr noundef @.str.2)
%64 = add nsw i64 %63, 1
%65 = load ptr, ptr %3, align 8
%66 = load ptr, ptr %65, align 8
%67 = getelementptr inbounds i32, ptr %66, i64 %64
store ptr %67, ptr %65, align 8
%68 = load ptr, ptr %3, align 8
%69 = getelementptr inbounds ptr, ptr %68, i64 0
%70 = load ptr, ptr %69, align 8
%71 = load i32, ptr %70, align 4
%72 = icmp eq i32 %71, 61
br i1 %72, label %73, label %85
73: ; preds = %56
%74 = load i32, ptr %5, align 4
%75 = icmp ne i32 %74, 0
br i1 %75, label %85, label %76
76: ; preds = %73
%77 = load ptr, ptr %3, align 8
%78 = load ptr, ptr %77, align 8
%79 = getelementptr inbounds i32, ptr %78, i64 1
%80 = call i64 @wcsspn(ptr noundef %79, ptr noundef @.str.2)
%81 = add nsw i64 %80, 1
%82 = load ptr, ptr %3, align 8
%83 = load ptr, ptr %82, align 8
%84 = getelementptr inbounds i32, ptr %83, i64 %81
store ptr %84, ptr %82, align 8
br label %85
85: ; preds = %76, %73, %56
%86 = load ptr, ptr %4, align 8
store ptr %86, ptr %2, align 8
br label %87
87: ; preds = %85, %44, %43, %20, %9
%88 = load ptr, ptr %2, align 8
ret ptr %88
}
declare ptr @wcspbrk(ptr noundef, ptr noundef) #1
declare i32 @wmemmove(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @wcslen(ptr noundef) #1
declare i64 @wcsspn(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/tmpttb0goom.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 i32] [i32 32, i32 9, i32 13, i32 10, i32 34, i32 61, i32 0], align 4
@.str.1 = private unnamed_addr constant [2 x i32] [i32 34, i32 0], align 4
@.str.2 = private unnamed_addr constant [5 x i32] [i32 32, i32 9, i32 13, i32 10, i32 0], align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @strdelim(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %5, align 4
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %6, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %10
9: ; preds = %1
store ptr null, ptr %2, align 8
br label %87
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = load ptr, ptr %11, align 8
store ptr %12, ptr %4, align 8
%13 = load ptr, ptr %3, align 8
%14 = load ptr, ptr %13, align 8
%15 = call ptr @wcspbrk(ptr noundef %14, ptr noundef @.str)
%16 = load ptr, ptr %3, align 8
store ptr %15, ptr %16, align 8
%17 = load ptr, ptr %3, align 8
%18 = load ptr, ptr %17, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %22
20: ; preds = %10
%21 = load ptr, ptr %4, align 8
store ptr %21, ptr %2, align 8
br label %87
22: ; preds = %10
%23 = load ptr, ptr %3, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 0
%25 = load ptr, ptr %24, align 8
%26 = load i32, ptr %25, align 4
%27 = icmp eq i32 %26, 34
br i1 %27, label %28, label %49
28: ; preds = %22
%29 = load ptr, ptr %3, align 8
%30 = load ptr, ptr %29, align 8
%31 = load ptr, ptr %3, align 8
%32 = load ptr, ptr %31, align 8
%33 = getelementptr inbounds i32, ptr %32, i64 1
%34 = load ptr, ptr %3, align 8
%35 = load ptr, ptr %34, align 8
%36 = call i32 @wcslen(ptr noundef %35)
%37 = call i32 @wmemmove(ptr noundef %30, ptr noundef %33, i32 noundef %36)
%38 = load ptr, ptr %3, align 8
%39 = load ptr, ptr %38, align 8
%40 = call ptr @wcspbrk(ptr noundef %39, ptr noundef @.str.1)
%41 = load ptr, ptr %3, align 8
store ptr %40, ptr %41, align 8
%42 = icmp eq ptr %40, null
br i1 %42, label %43, label %44
43: ; preds = %28
store ptr null, ptr %2, align 8
br label %87
44: ; preds = %28
%45 = load ptr, ptr %3, align 8
%46 = getelementptr inbounds ptr, ptr %45, i64 0
%47 = load ptr, ptr %46, align 8
store i32 0, ptr %47, align 4
%48 = load ptr, ptr %4, align 8
store ptr %48, ptr %2, align 8
br label %87
49: ; preds = %22
%50 = load ptr, ptr %3, align 8
%51 = getelementptr inbounds ptr, ptr %50, i64 0
%52 = load ptr, ptr %51, align 8
%53 = load i32, ptr %52, align 4
%54 = icmp eq i32 %53, 61
br i1 %54, label %55, label %56
55: ; preds = %49
store i32 1, ptr %5, align 4
br label %56
56: ; preds = %55, %49
%57 = load ptr, ptr %3, align 8
%58 = getelementptr inbounds ptr, ptr %57, i64 0
%59 = load ptr, ptr %58, align 8
store i32 0, ptr %59, align 4
%60 = load ptr, ptr %3, align 8
%61 = load ptr, ptr %60, align 8
%62 = getelementptr inbounds i32, ptr %61, i64 1
%63 = call i64 @wcsspn(ptr noundef %62, ptr noundef @.str.2)
%64 = add nsw i64 %63, 1
%65 = load ptr, ptr %3, align 8
%66 = load ptr, ptr %65, align 8
%67 = getelementptr inbounds i32, ptr %66, i64 %64
store ptr %67, ptr %65, align 8
%68 = load ptr, ptr %3, align 8
%69 = getelementptr inbounds ptr, ptr %68, i64 0
%70 = load ptr, ptr %69, align 8
%71 = load i32, ptr %70, align 4
%72 = icmp eq i32 %71, 61
br i1 %72, label %73, label %85
73: ; preds = %56
%74 = load i32, ptr %5, align 4
%75 = icmp ne i32 %74, 0
br i1 %75, label %85, label %76
76: ; preds = %73
%77 = load ptr, ptr %3, align 8
%78 = load ptr, ptr %77, align 8
%79 = getelementptr inbounds i32, ptr %78, i64 1
%80 = call i64 @wcsspn(ptr noundef %79, ptr noundef @.str.2)
%81 = add nsw i64 %80, 1
%82 = load ptr, ptr %3, align 8
%83 = load ptr, ptr %82, align 8
%84 = getelementptr inbounds i32, ptr %83, i64 %81
store ptr %84, ptr %82, align 8
br label %85
85: ; preds = %76, %73, %56
%86 = load ptr, ptr %4, align 8
store ptr %86, ptr %2, align 8
br label %87
87: ; preds = %85, %44, %43, %20, %9
%88 = load ptr, ptr %2, align 8
ret ptr %88
}
declare ptr @wcspbrk(ptr noundef, ptr noundef) #1
declare i32 @wmemmove(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @wcslen(ptr noundef) #1
declare i64 @wcsspn(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/tmp8k66srcr.c'
source_filename = "/tmp/tmp8k66srcr.c"
target datalayout = "e-m:e-p270: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/tmp8k66srcr.c"
target datalayout = "e-m:e-p270: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/tmpudmwxf8f.c'
source_filename = "/tmp/tmpudmwxf8f.c"
target datalayout = "e-m:e-p270: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/tmpudmwxf8f.c"
target datalayout = "e-m:e-p270: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/tmp288wj5_8.c'
source_filename = "/tmp/tmp288wj5_8.c"
target datalayout = "e-m:e-p270: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/tmp288wj5_8.c"
target datalayout = "e-m:e-p270: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/tmpxmr1c9n2.c'
source_filename = "/tmp/tmpxmr1c9n2.c"
target datalayout = "e-m:e-p270: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 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ytcpsocket_port(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %struct.sockaddr_in, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 4, ptr %5, align 4
%6 = load i32, ptr %3, align 4
%7 = call i32 @getsockname(i32 noundef %6, ptr noundef %4, ptr noundef %5)
%8 = icmp eq i32 %7, -1
br i1 %8, label %9, label %10
9: ; preds = %1
store i32 -1, ptr %2, align 4
br label %14
10: ; preds = %1
%11 = getelementptr inbounds %struct.sockaddr_in, ptr %4, i32 0, i32 0
%12 = load i32, ptr %11, align 4
%13 = call i32 @ntohs(i32 noundef %12)
store i32 %13, ptr %2, align 4
br label %14
14: ; preds = %10, %9
%15 = load i32, ptr %2, align 4
ret i32 %15
}
declare i32 @getsockname(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @ntohs(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/tmpxmr1c9n2.c"
target datalayout = "e-m:e-p270: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 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ytcpsocket_port(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %struct.sockaddr_in, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 4, ptr %5, align 4
%6 = load i32, ptr %3, align 4
%7 = call i32 @getsockname(i32 noundef %6, ptr noundef %4, ptr noundef %5)
%8 = icmp eq i32 %7, -1
br i1 %8, label %9, label %10
9: ; preds = %1
store i32 -1, ptr %2, align 4
br label %14
10: ; preds = %1
%11 = getelementptr inbounds %struct.sockaddr_in, ptr %4, i32 0, i32 0
%12 = load i32, ptr %11, align 4
%13 = call i32 @ntohs(i32 noundef %12)
store i32 %13, ptr %2, align 4
br label %14
14: ; preds = %10, %9
%15 = load i32, ptr %2, align 4
ret i32 %15
}
declare i32 @getsockname(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @ntohs(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/tmp694lgcar.c'
source_filename = "/tmp/tmp694lgcar.c"
target datalayout = "e-m:e-p270: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/tmp694lgcar.c"
target datalayout = "e-m:e-p270: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.