llvm-ir
stringlengths
479
303k
llvm-optimized-ir
stringlengths
468
303k
; ModuleID = '/tmp/tmp9mgmb43f.c' source_filename = "/tmp/tmp9mgmb43f.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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" (1) %e\0A\00", align 1 @.str.1 = private unnamed_addr constant [9 x i8] c" (2) %e\0A\00", align 1 @.str.2 = private unnamed_addr constant [9 x i8] c" (3) %E\0A\00", align 1 @.str.3 = private unnamed_addr constant [9 x i8] c" (4) %f\0A\00", align 1 @.str.4 = private unnamed_addr constant [9 x i8] c" (5) %g\0A\00", align 1 @.str.5 = private unnamed_addr constant [9 x i8] c" (6) %G\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, double noundef 0x4132D687E3D70A3D) %3 = call i32 @printf(ptr noundef @.str.1, double noundef 0xC132D687E3D70A3D) %4 = call i32 @printf(ptr noundef @.str.2, double noundef 0x4132D687E3D70A3D) %5 = call i32 @printf(ptr noundef @.str.3, double noundef 0x4132D687E3D70A3D) %6 = call i32 @printf(ptr noundef @.str.4, double noundef 0x4132D687E3D70A3D) %7 = call i32 @printf(ptr noundef @.str.5, double noundef 0x4132D687E3D70A3D) ret i32 0 } 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/tmp9mgmb43f.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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" (1) %e\0A\00", align 1 @.str.1 = private unnamed_addr constant [9 x i8] c" (2) %e\0A\00", align 1 @.str.2 = private unnamed_addr constant [9 x i8] c" (3) %E\0A\00", align 1 @.str.3 = private unnamed_addr constant [9 x i8] c" (4) %f\0A\00", align 1 @.str.4 = private unnamed_addr constant [9 x i8] c" (5) %g\0A\00", align 1 @.str.5 = private unnamed_addr constant [9 x i8] c" (6) %G\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, double noundef 0x4132D687E3D70A3D) %3 = call i32 @printf(ptr noundef @.str.1, double noundef 0xC132D687E3D70A3D) %4 = call i32 @printf(ptr noundef @.str.2, double noundef 0x4132D687E3D70A3D) %5 = call i32 @printf(ptr noundef @.str.3, double noundef 0x4132D687E3D70A3D) %6 = call i32 @printf(ptr noundef @.str.4, double noundef 0x4132D687E3D70A3D) %7 = call i32 @printf(ptr noundef @.str.5, double noundef 0x4132D687E3D70A3D) ret i32 0 } 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/tmpt7kbe8d4.c' source_filename = "/tmp/tmpt7kbe8d4.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [37 x i8] c"Digite um n\C3\BAmero inteiro positivo: \00", align 1 @.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1 @.str.2 = private unnamed_addr constant [20 x i8] c"\0AFim de programa!\0A\0A\00", align 1 @.str.3 = private unnamed_addr constant [6 x i8] c"pause\00", align 1 @.str.4 = private unnamed_addr constant [40 x i8] c"Digite outro n\C3\BAmero inteiro positivo: \00", align 1 @.str.5 = private unnamed_addr constant [50 x i8] c"\0AO maior n\C3\BAmero digitado foi %d, e o menor %d.\0A\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 = load i32, ptr %2, align 4 %8 = icmp eq i32 %7, -1 br i1 %8, label %9, label %12 9: ; preds = %0 %10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2) %11 = call i32 @system(ptr noundef @.str.3) store i32 0, ptr %1, align 4 br label %41 12: ; preds = %0 %13 = load i32, ptr %2, align 4 store i32 %13, ptr %4, align 4 store i32 %13, ptr %3, align 4 br label %14 14: ; preds = %33, %12 %15 = call i32 (ptr, ...) @printf(ptr noundef @.str.4) %16 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2) %17 = load i32, ptr %2, align 4 %18 = load i32, ptr %3, align 4 %19 = icmp sgt i32 %17, %18 br i1 %19, label %20, label %22 20: ; preds = %14 %21 = load i32, ptr %2, align 4 store i32 %21, ptr %3, align 4 br label %32 22: ; preds = %14 %23 = load i32, ptr %2, align 4 %24 = load i32, ptr %4, align 4 %25 = icmp slt i32 %23, %24 br i1 %25, label %26, label %31 26: ; preds = %22 %27 = load i32, ptr %2, align 4 %28 = icmp ne i32 %27, -1 br i1 %28, label %29, label %31 29: ; preds = %26 %30 = load i32, ptr %2, align 4 store i32 %30, ptr %4, align 4 br label %31 31: ; preds = %29, %26, %22 br label %32 32: ; preds = %31, %20 br label %33 33: ; preds = %32 %34 = load i32, ptr %2, align 4 %35 = icmp ne i32 %34, -1 br i1 %35, label %14, label %36, !llvm.loop !6 36: ; preds = %33 %37 = load i32, ptr %3, align 4 %38 = load i32, ptr %4, align 4 %39 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %37, i32 noundef %38) %40 = call i32 @system(ptr noundef @.str.3) store i32 0, ptr %1, align 4 br label %41 41: ; preds = %36, %9 %42 = load i32, ptr %1, align 4 ret i32 %42 } declare i32 @printf(ptr noundef, ...) #1 declare i32 @scanf(ptr noundef, ptr noundef) #1 declare i32 @system(ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"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/tmpt7kbe8d4.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [37 x i8] c"Digite um n\C3\BAmero inteiro positivo: \00", align 1 @.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1 @.str.2 = private unnamed_addr constant [20 x i8] c"\0AFim de programa!\0A\0A\00", align 1 @.str.3 = private unnamed_addr constant [6 x i8] c"pause\00", align 1 @.str.4 = private unnamed_addr constant [40 x i8] c"Digite outro n\C3\BAmero inteiro positivo: \00", align 1 @.str.5 = private unnamed_addr constant [50 x i8] c"\0AO maior n\C3\BAmero digitado foi %d, e o menor %d.\0A\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 = load i32, ptr %2, align 4 %8 = icmp eq i32 %7, -1 br i1 %8, label %9, label %12 9: ; preds = %0 %10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2) %11 = call i32 @system(ptr noundef @.str.3) store i32 0, ptr %1, align 4 br label %41 12: ; preds = %0 %13 = load i32, ptr %2, align 4 store i32 %13, ptr %4, align 4 store i32 %13, ptr %3, align 4 br label %14 14: ; preds = %33, %12 %15 = call i32 (ptr, ...) @printf(ptr noundef @.str.4) %16 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2) %17 = load i32, ptr %2, align 4 %18 = load i32, ptr %3, align 4 %19 = icmp sgt i32 %17, %18 br i1 %19, label %20, label %22 20: ; preds = %14 %21 = load i32, ptr %2, align 4 store i32 %21, ptr %3, align 4 br label %32 22: ; preds = %14 %23 = load i32, ptr %2, align 4 %24 = load i32, ptr %4, align 4 %25 = icmp slt i32 %23, %24 br i1 %25, label %26, label %31 26: ; preds = %22 %27 = load i32, ptr %2, align 4 %28 = icmp ne i32 %27, -1 br i1 %28, label %29, label %31 29: ; preds = %26 %30 = load i32, ptr %2, align 4 store i32 %30, ptr %4, align 4 br label %31 31: ; preds = %29, %26, %22 br label %32 32: ; preds = %31, %20 br label %33 33: ; preds = %32 %34 = load i32, ptr %2, align 4 %35 = icmp ne i32 %34, -1 br i1 %35, label %14, label %36, !llvm.loop !6 36: ; preds = %33 %37 = load i32, ptr %3, align 4 %38 = load i32, ptr %4, align 4 %39 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %37, i32 noundef %38) %40 = call i32 @system(ptr noundef @.str.3) store i32 0, ptr %1, align 4 br label %41 41: ; preds = %36, %9 %42 = load i32, ptr %1, align 4 ret i32 %42 } declare i32 @printf(ptr noundef, ...) #1 declare i32 @scanf(ptr noundef, ptr noundef) #1 declare i32 @system(ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"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/tmpgghpcjqt.c' source_filename = "/tmp/tmpgghpcjqt.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strstr(ptr noundef %0, ptr noundef %1) #0 { %3 = alloca ptr, align 8 %4 = alloca ptr, align 8 %5 = alloca ptr, align 8 %6 = alloca i32, align 4 %7 = alloca i32, align 4 %8 = alloca i32, align 4 store ptr %0, ptr %4, align 8 store ptr %1, ptr %5, align 8 %9 = load ptr, ptr %4, align 8 %10 = call i32 @strlen(ptr noundef %9) store i32 %10, ptr %7, align 4 %11 = load ptr, ptr %5, align 8 %12 = call i32 @strlen(ptr noundef %11) store i32 %12, ptr %8, align 4 %13 = load i32, ptr %8, align 4 %14 = load i32, ptr %7, align 4 %15 = icmp sgt i32 %13, %14 br i1 %15, label %16, label %17 16: ; preds = %2 store ptr null, ptr %3, align 8 br label %39 17: ; preds = %2 store i32 0, ptr %6, align 4 br label %18 18: ; preds = %33, %17 %19 = load i32, ptr %6, align 4 %20 = load i32, ptr %7, align 4 %21 = load i32, ptr %8, align 4 %22 = sub nsw i32 %20, %21 %23 = icmp slt i32 %19, %22 br i1 %23, label %24, label %38 24: ; preds = %18 %25 = load ptr, ptr %4, align 8 %26 = load ptr, ptr %5, align 8 %27 = load i32, ptr %8, align 4 %28 = call i32 @strncmp(ptr noundef %25, ptr noundef %26, i32 noundef %27) %29 = icmp ne i32 %28, 0 br i1 %29, label %32, label %30 30: ; preds = %24 %31 = load ptr, ptr %4, align 8 store ptr %31, ptr %3, align 8 br label %39 32: ; preds = %24 br label %33 33: ; preds = %32 %34 = load i32, ptr %6, align 4 %35 = add nsw i32 %34, 1 store i32 %35, ptr %6, align 4 %36 = load ptr, ptr %4, align 8 %37 = getelementptr inbounds i8, ptr %36, i32 1 store ptr %37, ptr %4, align 8 br label %18, !llvm.loop !6 38: ; preds = %18 store ptr null, ptr %3, align 8 br label %39 39: ; preds = %38, %30, %16 %40 = load ptr, ptr %3, align 8 ret ptr %40 } declare i32 @strlen(ptr noundef) #1 declare i32 @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"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpgghpcjqt.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strstr(ptr noundef %0, ptr noundef %1) #0 { %3 = alloca ptr, align 8 %4 = alloca ptr, align 8 %5 = alloca ptr, align 8 %6 = alloca i32, align 4 %7 = alloca i32, align 4 %8 = alloca i32, align 4 store ptr %0, ptr %4, align 8 store ptr %1, ptr %5, align 8 %9 = load ptr, ptr %4, align 8 %10 = call i32 @strlen(ptr noundef %9) store i32 %10, ptr %7, align 4 %11 = load ptr, ptr %5, align 8 %12 = call i32 @strlen(ptr noundef %11) store i32 %12, ptr %8, align 4 %13 = load i32, ptr %8, align 4 %14 = load i32, ptr %7, align 4 %15 = icmp sgt i32 %13, %14 br i1 %15, label %16, label %17 16: ; preds = %2 store ptr null, ptr %3, align 8 br label %43 17: ; preds = %2 store i32 0, ptr %6, align 4 %18 = load i32, ptr %6, align 4 %19 = load i32, ptr %7, align 4 %20 = load i32, ptr %8, align 4 %21 = sub nsw i32 %19, %20 %22 = icmp slt i32 %18, %21 br i1 %22, label %.lr.ph, label %42 .lr.ph: ; preds = %17 br label %23 23: ; preds = %.lr.ph, %32 %24 = load ptr, ptr %4, align 8 %25 = load ptr, ptr %5, align 8 %26 = load i32, ptr %8, align 4 %27 = call i32 @strncmp(ptr noundef %24, ptr noundef %25, i32 noundef %26) %28 = icmp ne i32 %27, 0 br i1 %28, label %31, label %29 29: ; preds = %23 %30 = load ptr, ptr %4, align 8 store ptr %30, ptr %3, align 8 br label %43 31: ; preds = %23 br label %32 32: ; preds = %31 %33 = load i32, ptr %6, align 4 %34 = add nsw i32 %33, 1 store i32 %34, ptr %6, align 4 %35 = load ptr, ptr %4, align 8 %36 = getelementptr inbounds i8, ptr %35, i32 1 store ptr %36, ptr %4, align 8 %37 = load i32, ptr %6, align 4 %38 = load i32, ptr %7, align 4 %39 = load i32, ptr %8, align 4 %40 = sub nsw i32 %38, %39 %41 = icmp slt i32 %37, %40 br i1 %41, label %23, label %._crit_edge, !llvm.loop !6 ._crit_edge: ; preds = %32 br label %42 42: ; preds = %._crit_edge, %17 store ptr null, ptr %3, align 8 br label %43 43: ; preds = %42, %29, %16 %44 = load ptr, ptr %3, align 8 ret ptr %44 } declare i32 @strlen(ptr noundef) #1 declare i32 @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"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"}
; ModuleID = '/tmp/tmpm0aasr30.c' source_filename = "/tmp/tmpm0aasr30.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @free_undo_list() #0 { %1 = call i32 (...) @rl_free_undo_list() ret void } declare i32 @rl_free_undo_list(...) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpm0aasr30.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @free_undo_list() #0 { %1 = call i32 (...) @rl_free_undo_list() ret void } declare i32 @rl_free_undo_list(...) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmpmjj0m9r3.c' source_filename = "/tmp/tmpmjj0m9r3.c" target datalayout = "e-m:e-p270: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/tmpmjj0m9r3.c" target datalayout = "e-m:e-p270: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/tmplki9rkxl.c' source_filename = "/tmp/tmplki9rkxl.c" target datalayout = "e-m:e-p270: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/tmplki9rkxl.c" target datalayout = "e-m:e-p270: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/tmp7k384ppm.c' source_filename = "/tmp/tmp7k384ppm.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getTarget(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 { %4 = alloca ptr, align 8 %5 = alloca ptr, align 8 %6 = alloca ptr, align 8 %7 = alloca i32, align 4 %8 = alloca ptr, align 8 %9 = alloca ptr, align 8 store ptr %0, ptr %5, align 8 store ptr %1, ptr %6, align 8 store i32 %2, ptr %7, align 4 %10 = call ptr @malloc(i32 noundef 100) store ptr %10, ptr %8, align 8 %11 = load ptr, ptr %5, align 8 %12 = load ptr, ptr %6, align 8 %13 = load i32, ptr %7, align 4 %14 = call i64 @checkLiterals(ptr noundef %11, ptr noundef %8, ptr noundef %12, i32 noundef %13) %15 = icmp ne i64 %14, 0 br i1 %15, label %16, label %18 16: ; preds = %3 %17 = load ptr, ptr %8, align 8 store ptr %17, ptr %4, align 8 br label %48 18: ; preds = %3 %19 = load ptr, ptr %6, align 8 %20 = load ptr, ptr %19, align 8 %21 = getelementptr inbounds i8, ptr %20, i64 0 %22 = load i8, ptr %21, align 1 %23 = sext i8 %22 to i32 %24 = icmp ne i32 %23, 0 br i1 %24, label %25, label %28 25: ; preds = %18 %26 = load ptr, ptr %6, align 8 %27 = load ptr, ptr %26, align 8 store ptr %27, ptr %5, align 8 br label %28 28: ; preds = %25, %18 %29 = load ptr, ptr %5, align 8 %30 = load ptr, ptr %6, align 8 %31 = call i64 @checkClasses(ptr noundef %29, ptr noundef %8, ptr noundef %30) %32 = icmp ne i64 %31, 0 br i1 %32, label %33, label %35 33: ; preds = %28 %34 = load ptr, ptr %8, align 8 store ptr %34, ptr %4, align 8 br label %48 35: ; preds = %28 %36 = load ptr, ptr %5, align 8 %37 = getelementptr inbounds i8, ptr %36, i64 1 %38 = load ptr, ptr %6, align 8 store ptr %37, ptr %38, align 8 %39 = call ptr @malloc(i32 noundef 100) store ptr %39, ptr %9, align 8 %40 = load ptr, ptr %5, align 8 %41 = getelementptr inbounds i8, ptr %40, i64 0 %42 = load i8, ptr %41, align 1 %43 = load ptr, ptr %9, align 8 %44 = getelementptr inbounds i8, ptr %43, i64 0 store i8 %42, ptr %44, align 1 %45 = load ptr, ptr %9, align 8 %46 = getelementptr inbounds i8, ptr %45, i64 1 store i8 0, ptr %46, align 1 %47 = load ptr, ptr %9, align 8 store ptr %47, ptr %4, align 8 br label %48 48: ; preds = %35, %33, %16 %49 = load ptr, ptr %4, align 8 ret ptr %49 } declare ptr @malloc(i32 noundef) #1 declare i64 @checkLiterals(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1 declare i64 @checkClasses(ptr noundef, ptr noundef, ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmp7k384ppm.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getTarget(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 { %4 = alloca ptr, align 8 %5 = alloca ptr, align 8 %6 = alloca ptr, align 8 %7 = alloca i32, align 4 %8 = alloca ptr, align 8 %9 = alloca ptr, align 8 store ptr %0, ptr %5, align 8 store ptr %1, ptr %6, align 8 store i32 %2, ptr %7, align 4 %10 = call ptr @malloc(i32 noundef 100) store ptr %10, ptr %8, align 8 %11 = load ptr, ptr %5, align 8 %12 = load ptr, ptr %6, align 8 %13 = load i32, ptr %7, align 4 %14 = call i64 @checkLiterals(ptr noundef %11, ptr noundef %8, ptr noundef %12, i32 noundef %13) %15 = icmp ne i64 %14, 0 br i1 %15, label %16, label %18 16: ; preds = %3 %17 = load ptr, ptr %8, align 8 store ptr %17, ptr %4, align 8 br label %48 18: ; preds = %3 %19 = load ptr, ptr %6, align 8 %20 = load ptr, ptr %19, align 8 %21 = getelementptr inbounds i8, ptr %20, i64 0 %22 = load i8, ptr %21, align 1 %23 = sext i8 %22 to i32 %24 = icmp ne i32 %23, 0 br i1 %24, label %25, label %28 25: ; preds = %18 %26 = load ptr, ptr %6, align 8 %27 = load ptr, ptr %26, align 8 store ptr %27, ptr %5, align 8 br label %28 28: ; preds = %25, %18 %29 = load ptr, ptr %5, align 8 %30 = load ptr, ptr %6, align 8 %31 = call i64 @checkClasses(ptr noundef %29, ptr noundef %8, ptr noundef %30) %32 = icmp ne i64 %31, 0 br i1 %32, label %33, label %35 33: ; preds = %28 %34 = load ptr, ptr %8, align 8 store ptr %34, ptr %4, align 8 br label %48 35: ; preds = %28 %36 = load ptr, ptr %5, align 8 %37 = getelementptr inbounds i8, ptr %36, i64 1 %38 = load ptr, ptr %6, align 8 store ptr %37, ptr %38, align 8 %39 = call ptr @malloc(i32 noundef 100) store ptr %39, ptr %9, align 8 %40 = load ptr, ptr %5, align 8 %41 = getelementptr inbounds i8, ptr %40, i64 0 %42 = load i8, ptr %41, align 1 %43 = load ptr, ptr %9, align 8 %44 = getelementptr inbounds i8, ptr %43, i64 0 store i8 %42, ptr %44, align 1 %45 = load ptr, ptr %9, align 8 %46 = getelementptr inbounds i8, ptr %45, i64 1 store i8 0, ptr %46, align 1 %47 = load ptr, ptr %9, align 8 store ptr %47, ptr %4, align 8 br label %48 48: ; preds = %35, %33, %16 %49 = load ptr, ptr %4, align 8 ret ptr %49 } declare ptr @malloc(i32 noundef) #1 declare i64 @checkLiterals(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1 declare i64 @checkClasses(ptr noundef, ptr noundef, ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmpvmim22vd.c' source_filename = "/tmp/tmpvmim22vd.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isprint.c\00", align 1 @.str.1 = private unnamed_addr constant [26 x i8] c"isprint should be 1 for w\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @t_isprint_0x77() #0 { %1 = call i32 @isprint(i32 noundef 119) #3 %2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 600, ptr noundef @.str.1) ret void } declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1 ; Function Attrs: nounwind willreturn memory(read) declare i32 @isprint(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 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-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 = { nounwind willreturn memory(read) } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpvmim22vd.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isprint.c\00", align 1 @.str.1 = private unnamed_addr constant [26 x i8] c"isprint should be 1 for w\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @t_isprint_0x77() #0 { %1 = call i32 @isprint(i32 noundef 119) #3 %2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 600, ptr noundef @.str.1) ret void } declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1 ; Function Attrs: nounwind willreturn memory(read) declare i32 @isprint(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 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-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 = { nounwind willreturn memory(read) } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmpeb7r41vc.c' source_filename = "/tmp/tmpeb7r41vc.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ts.bin\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 i32, align 4 %4 = alloca i32, align 4 %5 = alloca i8, align 1 store i32 0, ptr %1, align 4 %6 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1) store ptr %6, ptr %2, align 8 store i32 131072, ptr %3, align 4 store i32 0, ptr %4, align 4 br label %7 7: ; preds = %11, %0 %8 = load i32, ptr %3, align 4 %9 = add nsw i32 %8, -1 store i32 %9, ptr %3, align 4 %10 = icmp ne i32 %8, 0 br i1 %10, label %11, label %19 11: ; preds = %7 %12 = load i32, ptr %4, align 4 %13 = trunc i32 %12 to i8 store i8 %13, ptr %5, align 1 %14 = load i32, ptr %4, align 4 %15 = add nsw i32 %14, 1 %16 = srem i32 %15, 128 store i32 %16, ptr %4, align 4 %17 = load ptr, ptr %2, align 8 %18 = call i32 @fwrite(ptr noundef %5, i32 noundef 1, i32 noundef 1, ptr noundef %17) br label %7, !llvm.loop !6 19: ; preds = %7 %20 = load ptr, ptr %2, align 8 %21 = call i32 @fclose(ptr noundef %20) ret i32 0 } declare ptr @fopen(ptr noundef, ptr noundef) #1 declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1 declare i32 @fclose(ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"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/tmpeb7r41vc.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ts.bin\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 i32, align 4 %4 = alloca i32, align 4 %5 = alloca i8, align 1 store i32 0, ptr %1, align 4 %6 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1) store ptr %6, ptr %2, align 8 store i32 131072, ptr %3, align 4 store i32 0, ptr %4, align 4 %7 = load i32, ptr %3, align 4 %8 = add nsw i32 %7, -1 store i32 %8, ptr %3, align 4 %9 = icmp ne i32 %7, 0 br i1 %9, label %.lr.ph, label %21 .lr.ph: ; preds = %0 br label %10 10: ; preds = %.lr.ph, %10 %11 = load i32, ptr %4, align 4 %12 = trunc i32 %11 to i8 store i8 %12, ptr %5, align 1 %13 = load i32, ptr %4, align 4 %14 = add nsw i32 %13, 1 %15 = srem i32 %14, 128 store i32 %15, ptr %4, align 4 %16 = load ptr, ptr %2, align 8 %17 = call i32 @fwrite(ptr noundef %5, i32 noundef 1, i32 noundef 1, ptr noundef %16) %18 = load i32, ptr %3, align 4 %19 = add nsw i32 %18, -1 store i32 %19, ptr %3, align 4 %20 = icmp ne i32 %18, 0 br i1 %20, label %10, label %._crit_edge, !llvm.loop !6 ._crit_edge: ; preds = %10 br label %21 21: ; preds = %._crit_edge, %0 %22 = load ptr, ptr %2, align 8 %23 = call i32 @fclose(ptr noundef %22) ret i32 0 } declare ptr @fopen(ptr noundef, ptr noundef) #1 declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1 declare i32 @fclose(ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"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/tmpq6js7p95.c' source_filename = "/tmp/tmpq6js7p95.c" target datalayout = "e-m:e-p270: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 !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpq6js7p95.c" target datalayout = "e-m:e-p270: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 !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmpoeoke12s.c' source_filename = "/tmp/tmpoeoke12s.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @__const.main.arr = private unnamed_addr constant [10 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10], align 16 @.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @main() #0 { %1 = alloca i32, align 4 %2 = alloca ptr, align 8 %3 = alloca [10 x i32], align 16 %4 = alloca i32, align 4 store i32 0, ptr %1, align 4 store ptr null, ptr %2, align 8 call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.arr, i64 40, i1 false) store i32 1, ptr %4, align 4 br label %5 5: ; preds = %21, %0 %6 = load i32, ptr %4, align 4 %7 = icmp slt i32 %6, 11 br i1 %7, label %8, label %24 8: ; preds = %5 %9 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 0 %10 = load i32, ptr %4, align 4 %11 = call ptr @createList(ptr noundef %9, i32 noundef %10) store ptr %11, ptr %2, align 8 %12 = load ptr, ptr %2, align 8 %13 = call i32 @printList(ptr noundef %12) %14 = load ptr, ptr %2, align 8 %15 = call ptr @reverseList(ptr noundef %14) store ptr %15, ptr %2, align 8 %16 = load ptr, ptr %2, align 8 %17 = call i32 @printList(ptr noundef %16) %18 = load ptr, ptr %2, align 8 %19 = call i32 @freeList(ptr noundef %18) %20 = call i32 @printf(ptr noundef @.str) br label %21 21: ; preds = %8 %22 = load i32, ptr %4, align 4 %23 = add nsw i32 %22, 1 store i32 %23, ptr %4, align 4 br label %5, !llvm.loop !6 24: ; preds = %5 ret i32 0 } ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1 declare ptr @createList(ptr noundef, i32 noundef) #2 declare i32 @printList(ptr noundef) #2 declare ptr @reverseList(ptr noundef) #2 declare i32 @freeList(ptr noundef) #2 declare i32 @printf(ptr noundef) #2 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpoeoke12s.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @__const.main.arr = private unnamed_addr constant [10 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10], align 16 @.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @main() #0 { %1 = alloca i32, align 4 %2 = alloca ptr, align 8 %3 = alloca [10 x i32], align 16 %4 = alloca i32, align 4 store i32 0, ptr %1, align 4 store ptr null, ptr %2, align 8 call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.arr, i64 40, i1 false) store i32 1, ptr %4, align 4 %5 = load i32, ptr %4, align 4 %6 = icmp slt i32 %5, 11 br i1 %6, label %.lr.ph, label %25 .lr.ph: ; preds = %0 br label %7 7: ; preds = %.lr.ph, %20 %8 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 0 %9 = load i32, ptr %4, align 4 %10 = call ptr @createList(ptr noundef %8, i32 noundef %9) store ptr %10, ptr %2, align 8 %11 = load ptr, ptr %2, align 8 %12 = call i32 @printList(ptr noundef %11) %13 = load ptr, ptr %2, align 8 %14 = call ptr @reverseList(ptr noundef %13) store ptr %14, ptr %2, align 8 %15 = load ptr, ptr %2, align 8 %16 = call i32 @printList(ptr noundef %15) %17 = load ptr, ptr %2, align 8 %18 = call i32 @freeList(ptr noundef %17) %19 = call i32 @printf(ptr noundef @.str) br label %20 20: ; preds = %7 %21 = load i32, ptr %4, align 4 %22 = add nsw i32 %21, 1 store i32 %22, ptr %4, align 4 %23 = load i32, ptr %4, align 4 %24 = icmp slt i32 %23, 11 br i1 %24, label %7, label %._crit_edge, !llvm.loop !6 ._crit_edge: ; preds = %20 br label %25 25: ; preds = %._crit_edge, %0 ret i32 0 } ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1 declare ptr @createList(ptr noundef, i32 noundef) #2 declare i32 @printList(ptr noundef) #2 declare ptr @reverseList(ptr noundef) #2 declare i32 @freeList(ptr noundef) #2 declare i32 @printf(ptr noundef) #2 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"}
; ModuleID = '/tmp/tmp4twd252s.c' source_filename = "/tmp/tmp4twd252s.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @EOF = dso_local global i32 0, align 4 @stdin = 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/tmp4twd252s.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @EOF = dso_local global i32 0, align 4 @stdin = 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/tmp_xkc50nj.c' source_filename = "/tmp/tmp_xkc50nj.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalnum.c\00", align 1 @.str.1 = private unnamed_addr constant [26 x i8] c"isalnum should be 1 for R\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @t_isalnum_0x52() #0 { %1 = call i32 @isalnum(i32 noundef 82) #3 %2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 415, ptr noundef @.str.1) ret void } declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1 ; Function Attrs: nounwind willreturn memory(read) declare i32 @isalnum(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 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-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 = { nounwind willreturn memory(read) } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !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_xkc50nj.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalnum.c\00", align 1 @.str.1 = private unnamed_addr constant [26 x i8] c"isalnum should be 1 for R\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @t_isalnum_0x52() #0 { %1 = call i32 @isalnum(i32 noundef 82) #3 %2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 415, ptr noundef @.str.1) ret void } declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1 ; Function Attrs: nounwind willreturn memory(read) declare i32 @isalnum(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 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-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 = { nounwind willreturn memory(read) } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmpm9vmee67.c' source_filename = "/tmp/tmpm9vmee67.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @aom_post_proc_down_and_across_mb_row_c(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6) #0 { %8 = alloca ptr, align 8 %9 = alloca ptr, align 8 %10 = alloca i32, align 4 %11 = alloca i32, align 4 %12 = alloca i32, align 4 %13 = alloca ptr, align 8 %14 = alloca i32, align 4 %15 = alloca ptr, align 8 %16 = alloca ptr, align 8 %17 = alloca i32, align 4 %18 = alloca i32, align 4 %19 = alloca i8, align 1 %20 = alloca [4 x i8], align 1 %21 = alloca i8, align 1 %22 = alloca i8, align 1 %23 = alloca i8, align 1 %24 = alloca i8, align 1 %25 = alloca i8, align 1 %26 = alloca i8, align 1 %27 = alloca i8, align 1 %28 = alloca i8, align 1 %29 = alloca i8, align 1 %30 = alloca i8, align 1 store ptr %0, ptr %8, align 8 store ptr %1, ptr %9, align 8 store i32 %2, ptr %10, align 4 store i32 %3, ptr %11, align 4 store i32 %4, ptr %12, align 4 store ptr %5, ptr %13, align 8 store i32 %6, ptr %14, align 4 store i32 0, ptr %17, align 4 br label %31 31: ; preds = %409, %7 %32 = load i32, ptr %17, align 4 %33 = load i32, ptr %14, align 4 %34 = icmp slt i32 %32, %33 br i1 %34, label %35, label %412 35: ; preds = %31 %36 = load ptr, ptr %8, align 8 store ptr %36, ptr %15, align 8 %37 = load ptr, ptr %9, align 8 store ptr %37, ptr %16, align 8 store i32 0, ptr %18, align 4 br label %38 38: ; preds = %180, %35 %39 = load i32, ptr %18, align 4 %40 = load i32, ptr %12, align 4 %41 = icmp slt i32 %39, %40 br i1 %41, label %42, label %183 42: ; preds = %38 %43 = load ptr, ptr %15, align 8 %44 = load i32, ptr %18, align 4 %45 = load i32, ptr %10, align 4 %46 = mul nsw i32 2, %45 %47 = sub nsw i32 %44, %46 %48 = sext i32 %47 to i64 %49 = getelementptr inbounds i8, ptr %43, i64 %48 %50 = load i8, ptr %49, align 1 store i8 %50, ptr %21, align 1 %51 = load ptr, ptr %15, align 8 %52 = load i32, ptr %18, align 4 %53 = load i32, ptr %10, align 4 %54 = sub nsw i32 %52, %53 %55 = sext i32 %54 to i64 %56 = getelementptr inbounds i8, ptr %51, i64 %55 %57 = load i8, ptr %56, align 1 store i8 %57, ptr %22, align 1 %58 = load ptr, ptr %15, align 8 %59 = load i32, ptr %18, align 4 %60 = load i32, ptr %10, align 4 %61 = add nsw i32 %59, %60 %62 = sext i32 %61 to i64 %63 = getelementptr inbounds i8, ptr %58, i64 %62 %64 = load i8, ptr %63, align 1 store i8 %64, ptr %23, align 1 %65 = load ptr, ptr %15, align 8 %66 = load i32, ptr %18, align 4 %67 = load i32, ptr %10, align 4 %68 = mul nsw i32 2, %67 %69 = add nsw i32 %66, %68 %70 = sext i32 %69 to i64 %71 = getelementptr inbounds i8, ptr %65, i64 %70 %72 = load i8, ptr %71, align 1 store i8 %72, ptr %24, align 1 %73 = load ptr, ptr %15, align 8 %74 = load i32, ptr %18, align 4 %75 = sext i32 %74 to i64 %76 = getelementptr inbounds i8, ptr %73, i64 %75 %77 = load i8, ptr %76, align 1 store i8 %77, ptr %19, align 1 %78 = load i8, ptr %19, align 1 %79 = zext i8 %78 to i32 %80 = load i8, ptr %21, align 1 %81 = zext i8 %80 to i32 %82 = sub nsw i32 %79, %81 %83 = trunc i32 %82 to i8 %84 = call zeroext i8 @abs(i8 noundef zeroext %83) %85 = zext i8 %84 to i32 %86 = load ptr, ptr %13, align 8 %87 = load i32, ptr %18, align 4 %88 = sext i32 %87 to i64 %89 = getelementptr inbounds i8, ptr %86, i64 %88 %90 = load i8, ptr %89, align 1 %91 = zext i8 %90 to i32 %92 = icmp slt i32 %85, %91 br i1 %92, label %93, label %174 93: ; preds = %42 %94 = load i8, ptr %19, align 1 %95 = zext i8 %94 to i32 %96 = load i8, ptr %22, align 1 %97 = zext i8 %96 to i32 %98 = sub nsw i32 %95, %97 %99 = trunc i32 %98 to i8 %100 = call zeroext i8 @abs(i8 noundef zeroext %99) %101 = zext i8 %100 to i32 %102 = load ptr, ptr %13, align 8 %103 = load i32, ptr %18, align 4 %104 = sext i32 %103 to i64 %105 = getelementptr inbounds i8, ptr %102, i64 %104 %106 = load i8, ptr %105, align 1 %107 = zext i8 %106 to i32 %108 = icmp slt i32 %101, %107 br i1 %108, label %109, label %174 109: ; preds = %93 %110 = load i8, ptr %19, align 1 %111 = zext i8 %110 to i32 %112 = load i8, ptr %23, align 1 %113 = zext i8 %112 to i32 %114 = sub nsw i32 %111, %113 %115 = trunc i32 %114 to i8 %116 = call zeroext i8 @abs(i8 noundef zeroext %115) %117 = zext i8 %116 to i32 %118 = load ptr, ptr %13, align 8 %119 = load i32, ptr %18, align 4 %120 = sext i32 %119 to i64 %121 = getelementptr inbounds i8, ptr %118, i64 %120 %122 = load i8, ptr %121, align 1 %123 = zext i8 %122 to i32 %124 = icmp slt i32 %117, %123 br i1 %124, label %125, label %174 125: ; preds = %109 %126 = load i8, ptr %19, align 1 %127 = zext i8 %126 to i32 %128 = load i8, ptr %24, align 1 %129 = zext i8 %128 to i32 %130 = sub nsw i32 %127, %129 %131 = trunc i32 %130 to i8 %132 = call zeroext i8 @abs(i8 noundef zeroext %131) %133 = zext i8 %132 to i32 %134 = load ptr, ptr %13, align 8 %135 = load i32, ptr %18, align 4 %136 = sext i32 %135 to i64 %137 = getelementptr inbounds i8, ptr %134, i64 %136 %138 = load i8, ptr %137, align 1 %139 = zext i8 %138 to i32 %140 = icmp slt i32 %133, %139 br i1 %140, label %141, label %174 141: ; preds = %125 %142 = load i8, ptr %21, align 1 %143 = zext i8 %142 to i32 %144 = load i8, ptr %22, align 1 %145 = zext i8 %144 to i32 %146 = add nsw i32 %143, %145 %147 = add nsw i32 %146, 1 %148 = ashr i32 %147, 1 %149 = trunc i32 %148 to i8 store i8 %149, ptr %25, align 1 %150 = load i8, ptr %24, align 1 %151 = zext i8 %150 to i32 %152 = load i8, ptr %23, align 1 %153 = zext i8 %152 to i32 %154 = add nsw i32 %151, %153 %155 = add nsw i32 %154, 1 %156 = ashr i32 %155, 1 %157 = trunc i32 %156 to i8 store i8 %157, ptr %26, align 1 %158 = load i8, ptr %25, align 1 %159 = zext i8 %158 to i32 %160 = load i8, ptr %26, align 1 %161 = zext i8 %160 to i32 %162 = add nsw i32 %159, %161 %163 = add nsw i32 %162, 1 %164 = ashr i32 %163, 1 %165 = trunc i32 %164 to i8 store i8 %165, ptr %27, align 1 %166 = load i8, ptr %27, align 1 %167 = zext i8 %166 to i32 %168 = load i8, ptr %19, align 1 %169 = zext i8 %168 to i32 %170 = add nsw i32 %167, %169 %171 = add nsw i32 %170, 1 %172 = ashr i32 %171, 1 %173 = trunc i32 %172 to i8 store i8 %173, ptr %19, align 1 br label %174 174: ; preds = %141, %125, %109, %93, %42 %175 = load i8, ptr %19, align 1 %176 = load ptr, ptr %16, align 8 %177 = load i32, ptr %18, align 4 %178 = sext i32 %177 to i64 %179 = getelementptr inbounds i8, ptr %176, i64 %178 store i8 %175, ptr %179, align 1 br label %180 180: ; preds = %174 %181 = load i32, ptr %18, align 4 %182 = add nsw i32 %181, 1 store i32 %182, ptr %18, align 4 br label %38, !llvm.loop !6 183: ; preds = %38 %184 = load ptr, ptr %9, align 8 store ptr %184, ptr %15, align 8 %185 = load ptr, ptr %9, align 8 store ptr %185, ptr %16, align 8 %186 = load ptr, ptr %15, align 8 %187 = getelementptr inbounds i8, ptr %186, i64 0 %188 = load i8, ptr %187, align 1 %189 = load ptr, ptr %15, align 8 %190 = getelementptr inbounds i8, ptr %189, i64 -1 store i8 %188, ptr %190, align 1 %191 = load ptr, ptr %15, align 8 %192 = getelementptr inbounds i8, ptr %191, i64 -2 store i8 %188, ptr %192, align 1 %193 = load ptr, ptr %15, align 8 %194 = load i32, ptr %12, align 4 %195 = sub nsw i32 %194, 1 %196 = sext i32 %195 to i64 %197 = getelementptr inbounds i8, ptr %193, i64 %196 %198 = load i8, ptr %197, align 1 %199 = load ptr, ptr %15, align 8 %200 = load i32, ptr %12, align 4 %201 = add nsw i32 %200, 1 %202 = sext i32 %201 to i64 %203 = getelementptr inbounds i8, ptr %199, i64 %202 store i8 %198, ptr %203, align 1 %204 = load ptr, ptr %15, align 8 %205 = load i32, ptr %12, align 4 %206 = sext i32 %205 to i64 %207 = getelementptr inbounds i8, ptr %204, i64 %206 store i8 %198, ptr %207, align 1 store i32 0, ptr %18, align 4 br label %208 208: ; preds = %375, %183 %209 = load i32, ptr %18, align 4 %210 = load i32, ptr %12, align 4 %211 = icmp slt i32 %209, %210 br i1 %211, label %212, label %378 212: ; preds = %208 %213 = load ptr, ptr %15, align 8 %214 = load i32, ptr %18, align 4 %215 = sext i32 %214 to i64 %216 = getelementptr inbounds i8, ptr %213, i64 %215 %217 = load i8, ptr %216, align 1 store i8 %217, ptr %19, align 1 %218 = load i8, ptr %19, align 1 %219 = zext i8 %218 to i32 %220 = load ptr, ptr %15, align 8 %221 = load i32, ptr %18, align 4 %222 = sub nsw i32 %221, 2 %223 = sext i32 %222 to i64 %224 = getelementptr inbounds i8, ptr %220, i64 %223 %225 = load i8, ptr %224, align 1 %226 = zext i8 %225 to i32 %227 = sub nsw i32 %219, %226 %228 = trunc i32 %227 to i8 %229 = call zeroext i8 @abs(i8 noundef zeroext %228) %230 = zext i8 %229 to i32 %231 = load ptr, ptr %13, align 8 %232 = load i32, ptr %18, align 4 %233 = sext i32 %232 to i64 %234 = getelementptr inbounds i8, ptr %231, i64 %233 %235 = load i8, ptr %234, align 1 %236 = zext i8 %235 to i32 %237 = icmp slt i32 %230, %236 br i1 %237, label %238, label %354 238: ; preds = %212 %239 = load i8, ptr %19, align 1 %240 = zext i8 %239 to i32 %241 = load ptr, ptr %15, align 8 %242 = load i32, ptr %18, align 4 %243 = sub nsw i32 %242, 1 %244 = sext i32 %243 to i64 %245 = getelementptr inbounds i8, ptr %241, i64 %244 %246 = load i8, ptr %245, align 1 %247 = zext i8 %246 to i32 %248 = sub nsw i32 %240, %247 %249 = trunc i32 %248 to i8 %250 = call zeroext i8 @abs(i8 noundef zeroext %249) %251 = zext i8 %250 to i32 %252 = load ptr, ptr %13, align 8 %253 = load i32, ptr %18, align 4 %254 = sext i32 %253 to i64 %255 = getelementptr inbounds i8, ptr %252, i64 %254 %256 = load i8, ptr %255, align 1 %257 = zext i8 %256 to i32 %258 = icmp slt i32 %251, %257 br i1 %258, label %259, label %354 259: ; preds = %238 %260 = load i8, ptr %19, align 1 %261 = zext i8 %260 to i32 %262 = load ptr, ptr %15, align 8 %263 = load i32, ptr %18, align 4 %264 = add nsw i32 %263, 1 %265 = sext i32 %264 to i64 %266 = getelementptr inbounds i8, ptr %262, i64 %265 %267 = load i8, ptr %266, align 1 %268 = zext i8 %267 to i32 %269 = sub nsw i32 %261, %268 %270 = trunc i32 %269 to i8 %271 = call zeroext i8 @abs(i8 noundef zeroext %270) %272 = zext i8 %271 to i32 %273 = load ptr, ptr %13, align 8 %274 = load i32, ptr %18, align 4 %275 = sext i32 %274 to i64 %276 = getelementptr inbounds i8, ptr %273, i64 %275 %277 = load i8, ptr %276, align 1 %278 = zext i8 %277 to i32 %279 = icmp slt i32 %272, %278 br i1 %279, label %280, label %354 280: ; preds = %259 %281 = load i8, ptr %19, align 1 %282 = zext i8 %281 to i32 %283 = load ptr, ptr %15, align 8 %284 = load i32, ptr %18, align 4 %285 = add nsw i32 %284, 2 %286 = sext i32 %285 to i64 %287 = getelementptr inbounds i8, ptr %283, i64 %286 %288 = load i8, ptr %287, align 1 %289 = zext i8 %288 to i32 %290 = sub nsw i32 %282, %289 %291 = trunc i32 %290 to i8 %292 = call zeroext i8 @abs(i8 noundef zeroext %291) %293 = zext i8 %292 to i32 %294 = load ptr, ptr %13, align 8 %295 = load i32, ptr %18, align 4 %296 = sext i32 %295 to i64 %297 = getelementptr inbounds i8, ptr %294, i64 %296 %298 = load i8, ptr %297, align 1 %299 = zext i8 %298 to i32 %300 = icmp slt i32 %293, %299 br i1 %300, label %301, label %354 301: ; preds = %280 %302 = load ptr, ptr %15, align 8 %303 = load i32, ptr %18, align 4 %304 = sub nsw i32 %303, 2 %305 = sext i32 %304 to i64 %306 = getelementptr inbounds i8, ptr %302, i64 %305 %307 = load i8, ptr %306, align 1 %308 = zext i8 %307 to i32 %309 = load ptr, ptr %15, align 8 %310 = load i32, ptr %18, align 4 %311 = sub nsw i32 %310, 1 %312 = sext i32 %311 to i64 %313 = getelementptr inbounds i8, ptr %309, i64 %312 %314 = load i8, ptr %313, align 1 %315 = zext i8 %314 to i32 %316 = add nsw i32 %308, %315 %317 = add nsw i32 %316, 1 %318 = ashr i32 %317, 1 %319 = trunc i32 %318 to i8 store i8 %319, ptr %28, align 1 %320 = load ptr, ptr %15, align 8 %321 = load i32, ptr %18, align 4 %322 = add nsw i32 %321, 2 %323 = sext i32 %322 to i64 %324 = getelementptr inbounds i8, ptr %320, i64 %323 %325 = load i8, ptr %324, align 1 %326 = zext i8 %325 to i32 %327 = load ptr, ptr %15, align 8 %328 = load i32, ptr %18, align 4 %329 = add nsw i32 %328, 1 %330 = sext i32 %329 to i64 %331 = getelementptr inbounds i8, ptr %327, i64 %330 %332 = load i8, ptr %331, align 1 %333 = zext i8 %332 to i32 %334 = add nsw i32 %326, %333 %335 = add nsw i32 %334, 1 %336 = ashr i32 %335, 1 %337 = trunc i32 %336 to i8 store i8 %337, ptr %29, align 1 %338 = load i8, ptr %28, align 1 %339 = zext i8 %338 to i32 %340 = load i8, ptr %29, align 1 %341 = zext i8 %340 to i32 %342 = add nsw i32 %339, %341 %343 = add nsw i32 %342, 1 %344 = ashr i32 %343, 1 %345 = trunc i32 %344 to i8 store i8 %345, ptr %30, align 1 %346 = load i8, ptr %30, align 1 %347 = zext i8 %346 to i32 %348 = load i8, ptr %19, align 1 %349 = zext i8 %348 to i32 %350 = add nsw i32 %347, %349 %351 = add nsw i32 %350, 1 %352 = ashr i32 %351, 1 %353 = trunc i32 %352 to i8 store i8 %353, ptr %19, align 1 br label %354 354: ; preds = %301, %280, %259, %238, %212 %355 = load i8, ptr %19, align 1 %356 = load i32, ptr %18, align 4 %357 = and i32 %356, 3 %358 = sext i32 %357 to i64 %359 = getelementptr inbounds [4 x i8], ptr %20, i64 0, i64 %358 store i8 %355, ptr %359, align 1 %360 = load i32, ptr %18, align 4 %361 = icmp sge i32 %360, 2 br i1 %361, label %362, label %374 362: ; preds = %354 %363 = load i32, ptr %18, align 4 %364 = sub nsw i32 %363, 2 %365 = and i32 %364, 3 %366 = sext i32 %365 to i64 %367 = getelementptr inbounds [4 x i8], ptr %20, i64 0, i64 %366 %368 = load i8, ptr %367, align 1 %369 = load ptr, ptr %16, align 8 %370 = load i32, ptr %18, align 4 %371 = sub nsw i32 %370, 2 %372 = sext i32 %371 to i64 %373 = getelementptr inbounds i8, ptr %369, i64 %372 store i8 %368, ptr %373, align 1 br label %374 374: ; preds = %362, %354 br label %375 375: ; preds = %374 %376 = load i32, ptr %18, align 4 %377 = add nsw i32 %376, 1 store i32 %377, ptr %18, align 4 br label %208, !llvm.loop !8 378: ; preds = %208 %379 = load i32, ptr %18, align 4 %380 = sub nsw i32 %379, 2 %381 = and i32 %380, 3 %382 = sext i32 %381 to i64 %383 = getelementptr inbounds [4 x i8], ptr %20, i64 0, i64 %382 %384 = load i8, ptr %383, align 1 %385 = load ptr, ptr %16, align 8 %386 = load i32, ptr %18, align 4 %387 = sub nsw i32 %386, 2 %388 = sext i32 %387 to i64 %389 = getelementptr inbounds i8, ptr %385, i64 %388 store i8 %384, ptr %389, align 1 %390 = load i32, ptr %18, align 4 %391 = sub nsw i32 %390, 1 %392 = and i32 %391, 3 %393 = sext i32 %392 to i64 %394 = getelementptr inbounds [4 x i8], ptr %20, i64 0, i64 %393 %395 = load i8, ptr %394, align 1 %396 = load ptr, ptr %16, align 8 %397 = load i32, ptr %18, align 4 %398 = sub nsw i32 %397, 1 %399 = sext i32 %398 to i64 %400 = getelementptr inbounds i8, ptr %396, i64 %399 store i8 %395, ptr %400, align 1 %401 = load i32, ptr %10, align 4 %402 = load ptr, ptr %8, align 8 %403 = sext i32 %401 to i64 %404 = getelementptr inbounds i8, ptr %402, i64 %403 store ptr %404, ptr %8, align 8 %405 = load i32, ptr %11, align 4 %406 = load ptr, ptr %9, align 8 %407 = sext i32 %405 to i64 %408 = getelementptr inbounds i8, ptr %406, i64 %407 store ptr %408, ptr %9, align 8 br label %409 409: ; preds = %378 %410 = load i32, ptr %17, align 4 %411 = add nsw i32 %410, 1 store i32 %411, ptr %17, align 4 br label %31, !llvm.loop !9 412: ; preds = %31 ret void } declare zeroext i8 @abs(i8 noundef zeroext) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"} !8 = distinct !{!8, !7} !9 = distinct !{!9, !7}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpm9vmee67.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @aom_post_proc_down_and_across_mb_row_c(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6) #0 { %8 = alloca ptr, align 8 %9 = alloca ptr, align 8 %10 = alloca i32, align 4 %11 = alloca i32, align 4 %12 = alloca i32, align 4 %13 = alloca ptr, align 8 %14 = alloca i32, align 4 %15 = alloca ptr, align 8 %16 = alloca ptr, align 8 %17 = alloca i32, align 4 %18 = alloca i32, align 4 %19 = alloca i8, align 1 %20 = alloca [4 x i8], align 1 %21 = alloca i8, align 1 %22 = alloca i8, align 1 %23 = alloca i8, align 1 %24 = alloca i8, align 1 %25 = alloca i8, align 1 %26 = alloca i8, align 1 %27 = alloca i8, align 1 %28 = alloca i8, align 1 %29 = alloca i8, align 1 %30 = alloca i8, align 1 store ptr %0, ptr %8, align 8 store ptr %1, ptr %9, align 8 store i32 %2, ptr %10, align 4 store i32 %3, ptr %11, align 4 store i32 %4, ptr %12, align 4 store ptr %5, ptr %13, align 8 store i32 %6, ptr %14, align 4 store i32 0, ptr %17, align 4 %31 = load i32, ptr %17, align 4 %32 = load i32, ptr %14, align 4 %33 = icmp slt i32 %31, %32 br i1 %33, label %.lr.ph5, label %418 .lr.ph5: ; preds = %7 br label %34 34: ; preds = %.lr.ph5, %412 %35 = load ptr, ptr %8, align 8 store ptr %35, ptr %15, align 8 %36 = load ptr, ptr %9, align 8 store ptr %36, ptr %16, align 8 store i32 0, ptr %18, align 4 %37 = load i32, ptr %18, align 4 %38 = load i32, ptr %12, align 4 %39 = icmp slt i32 %37, %38 br i1 %39, label %.lr.ph, label %184 .lr.ph: ; preds = %34 br label %40 40: ; preds = %.lr.ph, %178 %41 = load ptr, ptr %15, align 8 %42 = load i32, ptr %18, align 4 %43 = load i32, ptr %10, align 4 %44 = mul nsw i32 2, %43 %45 = sub nsw i32 %42, %44 %46 = sext i32 %45 to i64 %47 = getelementptr inbounds i8, ptr %41, i64 %46 %48 = load i8, ptr %47, align 1 store i8 %48, ptr %21, align 1 %49 = load ptr, ptr %15, align 8 %50 = load i32, ptr %18, align 4 %51 = load i32, ptr %10, align 4 %52 = sub nsw i32 %50, %51 %53 = sext i32 %52 to i64 %54 = getelementptr inbounds i8, ptr %49, i64 %53 %55 = load i8, ptr %54, align 1 store i8 %55, ptr %22, align 1 %56 = load ptr, ptr %15, align 8 %57 = load i32, ptr %18, align 4 %58 = load i32, ptr %10, align 4 %59 = add nsw i32 %57, %58 %60 = sext i32 %59 to i64 %61 = getelementptr inbounds i8, ptr %56, i64 %60 %62 = load i8, ptr %61, align 1 store i8 %62, ptr %23, align 1 %63 = load ptr, ptr %15, align 8 %64 = load i32, ptr %18, align 4 %65 = load i32, ptr %10, align 4 %66 = mul nsw i32 2, %65 %67 = add nsw i32 %64, %66 %68 = sext i32 %67 to i64 %69 = getelementptr inbounds i8, ptr %63, i64 %68 %70 = load i8, ptr %69, align 1 store i8 %70, ptr %24, align 1 %71 = load ptr, ptr %15, align 8 %72 = load i32, ptr %18, align 4 %73 = sext i32 %72 to i64 %74 = getelementptr inbounds i8, ptr %71, i64 %73 %75 = load i8, ptr %74, align 1 store i8 %75, ptr %19, align 1 %76 = load i8, ptr %19, align 1 %77 = zext i8 %76 to i32 %78 = load i8, ptr %21, align 1 %79 = zext i8 %78 to i32 %80 = sub nsw i32 %77, %79 %81 = trunc i32 %80 to i8 %82 = call zeroext i8 @abs(i8 noundef zeroext %81) %83 = zext i8 %82 to i32 %84 = load ptr, ptr %13, align 8 %85 = load i32, ptr %18, align 4 %86 = sext i32 %85 to i64 %87 = getelementptr inbounds i8, ptr %84, i64 %86 %88 = load i8, ptr %87, align 1 %89 = zext i8 %88 to i32 %90 = icmp slt i32 %83, %89 br i1 %90, label %91, label %172 91: ; preds = %40 %92 = load i8, ptr %19, align 1 %93 = zext i8 %92 to i32 %94 = load i8, ptr %22, align 1 %95 = zext i8 %94 to i32 %96 = sub nsw i32 %93, %95 %97 = trunc i32 %96 to i8 %98 = call zeroext i8 @abs(i8 noundef zeroext %97) %99 = zext i8 %98 to i32 %100 = load ptr, ptr %13, align 8 %101 = load i32, ptr %18, align 4 %102 = sext i32 %101 to i64 %103 = getelementptr inbounds i8, ptr %100, i64 %102 %104 = load i8, ptr %103, align 1 %105 = zext i8 %104 to i32 %106 = icmp slt i32 %99, %105 br i1 %106, label %107, label %172 107: ; preds = %91 %108 = load i8, ptr %19, align 1 %109 = zext i8 %108 to i32 %110 = load i8, ptr %23, align 1 %111 = zext i8 %110 to i32 %112 = sub nsw i32 %109, %111 %113 = trunc i32 %112 to i8 %114 = call zeroext i8 @abs(i8 noundef zeroext %113) %115 = zext i8 %114 to i32 %116 = load ptr, ptr %13, align 8 %117 = load i32, ptr %18, align 4 %118 = sext i32 %117 to i64 %119 = getelementptr inbounds i8, ptr %116, i64 %118 %120 = load i8, ptr %119, align 1 %121 = zext i8 %120 to i32 %122 = icmp slt i32 %115, %121 br i1 %122, label %123, label %172 123: ; preds = %107 %124 = load i8, ptr %19, align 1 %125 = zext i8 %124 to i32 %126 = load i8, ptr %24, align 1 %127 = zext i8 %126 to i32 %128 = sub nsw i32 %125, %127 %129 = trunc i32 %128 to i8 %130 = call zeroext i8 @abs(i8 noundef zeroext %129) %131 = zext i8 %130 to i32 %132 = load ptr, ptr %13, align 8 %133 = load i32, ptr %18, align 4 %134 = sext i32 %133 to i64 %135 = getelementptr inbounds i8, ptr %132, i64 %134 %136 = load i8, ptr %135, align 1 %137 = zext i8 %136 to i32 %138 = icmp slt i32 %131, %137 br i1 %138, label %139, label %172 139: ; preds = %123 %140 = load i8, ptr %21, align 1 %141 = zext i8 %140 to i32 %142 = load i8, ptr %22, align 1 %143 = zext i8 %142 to i32 %144 = add nsw i32 %141, %143 %145 = add nsw i32 %144, 1 %146 = ashr i32 %145, 1 %147 = trunc i32 %146 to i8 store i8 %147, ptr %25, align 1 %148 = load i8, ptr %24, align 1 %149 = zext i8 %148 to i32 %150 = load i8, ptr %23, align 1 %151 = zext i8 %150 to i32 %152 = add nsw i32 %149, %151 %153 = add nsw i32 %152, 1 %154 = ashr i32 %153, 1 %155 = trunc i32 %154 to i8 store i8 %155, ptr %26, align 1 %156 = load i8, ptr %25, align 1 %157 = zext i8 %156 to i32 %158 = load i8, ptr %26, align 1 %159 = zext i8 %158 to i32 %160 = add nsw i32 %157, %159 %161 = add nsw i32 %160, 1 %162 = ashr i32 %161, 1 %163 = trunc i32 %162 to i8 store i8 %163, ptr %27, align 1 %164 = load i8, ptr %27, align 1 %165 = zext i8 %164 to i32 %166 = load i8, ptr %19, align 1 %167 = zext i8 %166 to i32 %168 = add nsw i32 %165, %167 %169 = add nsw i32 %168, 1 %170 = ashr i32 %169, 1 %171 = trunc i32 %170 to i8 store i8 %171, ptr %19, align 1 br label %172 172: ; preds = %139, %123, %107, %91, %40 %173 = load i8, ptr %19, align 1 %174 = load ptr, ptr %16, align 8 %175 = load i32, ptr %18, align 4 %176 = sext i32 %175 to i64 %177 = getelementptr inbounds i8, ptr %174, i64 %176 store i8 %173, ptr %177, align 1 br label %178 178: ; preds = %172 %179 = load i32, ptr %18, align 4 %180 = add nsw i32 %179, 1 store i32 %180, ptr %18, align 4 %181 = load i32, ptr %18, align 4 %182 = load i32, ptr %12, align 4 %183 = icmp slt i32 %181, %182 br i1 %183, label %40, label %._crit_edge, !llvm.loop !6 ._crit_edge: ; preds = %178 br label %184 184: ; preds = %._crit_edge, %34 %185 = load ptr, ptr %9, align 8 store ptr %185, ptr %15, align 8 %186 = load ptr, ptr %9, align 8 store ptr %186, ptr %16, align 8 %187 = load ptr, ptr %15, align 8 %188 = getelementptr inbounds i8, ptr %187, i64 0 %189 = load i8, ptr %188, align 1 %190 = load ptr, ptr %15, align 8 %191 = getelementptr inbounds i8, ptr %190, i64 -1 store i8 %189, ptr %191, align 1 %192 = load ptr, ptr %15, align 8 %193 = getelementptr inbounds i8, ptr %192, i64 -2 store i8 %189, ptr %193, align 1 %194 = load ptr, ptr %15, align 8 %195 = load i32, ptr %12, align 4 %196 = sub nsw i32 %195, 1 %197 = sext i32 %196 to i64 %198 = getelementptr inbounds i8, ptr %194, i64 %197 %199 = load i8, ptr %198, align 1 %200 = load ptr, ptr %15, align 8 %201 = load i32, ptr %12, align 4 %202 = add nsw i32 %201, 1 %203 = sext i32 %202 to i64 %204 = getelementptr inbounds i8, ptr %200, i64 %203 store i8 %199, ptr %204, align 1 %205 = load ptr, ptr %15, align 8 %206 = load i32, ptr %12, align 4 %207 = sext i32 %206 to i64 %208 = getelementptr inbounds i8, ptr %205, i64 %207 store i8 %199, ptr %208, align 1 store i32 0, ptr %18, align 4 %209 = load i32, ptr %18, align 4 %210 = load i32, ptr %12, align 4 %211 = icmp slt i32 %209, %210 br i1 %211, label %.lr.ph2, label %381 .lr.ph2: ; preds = %184 br label %212 212: ; preds = %.lr.ph2, %375 %213 = load ptr, ptr %15, align 8 %214 = load i32, ptr %18, align 4 %215 = sext i32 %214 to i64 %216 = getelementptr inbounds i8, ptr %213, i64 %215 %217 = load i8, ptr %216, align 1 store i8 %217, ptr %19, align 1 %218 = load i8, ptr %19, align 1 %219 = zext i8 %218 to i32 %220 = load ptr, ptr %15, align 8 %221 = load i32, ptr %18, align 4 %222 = sub nsw i32 %221, 2 %223 = sext i32 %222 to i64 %224 = getelementptr inbounds i8, ptr %220, i64 %223 %225 = load i8, ptr %224, align 1 %226 = zext i8 %225 to i32 %227 = sub nsw i32 %219, %226 %228 = trunc i32 %227 to i8 %229 = call zeroext i8 @abs(i8 noundef zeroext %228) %230 = zext i8 %229 to i32 %231 = load ptr, ptr %13, align 8 %232 = load i32, ptr %18, align 4 %233 = sext i32 %232 to i64 %234 = getelementptr inbounds i8, ptr %231, i64 %233 %235 = load i8, ptr %234, align 1 %236 = zext i8 %235 to i32 %237 = icmp slt i32 %230, %236 br i1 %237, label %238, label %354 238: ; preds = %212 %239 = load i8, ptr %19, align 1 %240 = zext i8 %239 to i32 %241 = load ptr, ptr %15, align 8 %242 = load i32, ptr %18, align 4 %243 = sub nsw i32 %242, 1 %244 = sext i32 %243 to i64 %245 = getelementptr inbounds i8, ptr %241, i64 %244 %246 = load i8, ptr %245, align 1 %247 = zext i8 %246 to i32 %248 = sub nsw i32 %240, %247 %249 = trunc i32 %248 to i8 %250 = call zeroext i8 @abs(i8 noundef zeroext %249) %251 = zext i8 %250 to i32 %252 = load ptr, ptr %13, align 8 %253 = load i32, ptr %18, align 4 %254 = sext i32 %253 to i64 %255 = getelementptr inbounds i8, ptr %252, i64 %254 %256 = load i8, ptr %255, align 1 %257 = zext i8 %256 to i32 %258 = icmp slt i32 %251, %257 br i1 %258, label %259, label %354 259: ; preds = %238 %260 = load i8, ptr %19, align 1 %261 = zext i8 %260 to i32 %262 = load ptr, ptr %15, align 8 %263 = load i32, ptr %18, align 4 %264 = add nsw i32 %263, 1 %265 = sext i32 %264 to i64 %266 = getelementptr inbounds i8, ptr %262, i64 %265 %267 = load i8, ptr %266, align 1 %268 = zext i8 %267 to i32 %269 = sub nsw i32 %261, %268 %270 = trunc i32 %269 to i8 %271 = call zeroext i8 @abs(i8 noundef zeroext %270) %272 = zext i8 %271 to i32 %273 = load ptr, ptr %13, align 8 %274 = load i32, ptr %18, align 4 %275 = sext i32 %274 to i64 %276 = getelementptr inbounds i8, ptr %273, i64 %275 %277 = load i8, ptr %276, align 1 %278 = zext i8 %277 to i32 %279 = icmp slt i32 %272, %278 br i1 %279, label %280, label %354 280: ; preds = %259 %281 = load i8, ptr %19, align 1 %282 = zext i8 %281 to i32 %283 = load ptr, ptr %15, align 8 %284 = load i32, ptr %18, align 4 %285 = add nsw i32 %284, 2 %286 = sext i32 %285 to i64 %287 = getelementptr inbounds i8, ptr %283, i64 %286 %288 = load i8, ptr %287, align 1 %289 = zext i8 %288 to i32 %290 = sub nsw i32 %282, %289 %291 = trunc i32 %290 to i8 %292 = call zeroext i8 @abs(i8 noundef zeroext %291) %293 = zext i8 %292 to i32 %294 = load ptr, ptr %13, align 8 %295 = load i32, ptr %18, align 4 %296 = sext i32 %295 to i64 %297 = getelementptr inbounds i8, ptr %294, i64 %296 %298 = load i8, ptr %297, align 1 %299 = zext i8 %298 to i32 %300 = icmp slt i32 %293, %299 br i1 %300, label %301, label %354 301: ; preds = %280 %302 = load ptr, ptr %15, align 8 %303 = load i32, ptr %18, align 4 %304 = sub nsw i32 %303, 2 %305 = sext i32 %304 to i64 %306 = getelementptr inbounds i8, ptr %302, i64 %305 %307 = load i8, ptr %306, align 1 %308 = zext i8 %307 to i32 %309 = load ptr, ptr %15, align 8 %310 = load i32, ptr %18, align 4 %311 = sub nsw i32 %310, 1 %312 = sext i32 %311 to i64 %313 = getelementptr inbounds i8, ptr %309, i64 %312 %314 = load i8, ptr %313, align 1 %315 = zext i8 %314 to i32 %316 = add nsw i32 %308, %315 %317 = add nsw i32 %316, 1 %318 = ashr i32 %317, 1 %319 = trunc i32 %318 to i8 store i8 %319, ptr %28, align 1 %320 = load ptr, ptr %15, align 8 %321 = load i32, ptr %18, align 4 %322 = add nsw i32 %321, 2 %323 = sext i32 %322 to i64 %324 = getelementptr inbounds i8, ptr %320, i64 %323 %325 = load i8, ptr %324, align 1 %326 = zext i8 %325 to i32 %327 = load ptr, ptr %15, align 8 %328 = load i32, ptr %18, align 4 %329 = add nsw i32 %328, 1 %330 = sext i32 %329 to i64 %331 = getelementptr inbounds i8, ptr %327, i64 %330 %332 = load i8, ptr %331, align 1 %333 = zext i8 %332 to i32 %334 = add nsw i32 %326, %333 %335 = add nsw i32 %334, 1 %336 = ashr i32 %335, 1 %337 = trunc i32 %336 to i8 store i8 %337, ptr %29, align 1 %338 = load i8, ptr %28, align 1 %339 = zext i8 %338 to i32 %340 = load i8, ptr %29, align 1 %341 = zext i8 %340 to i32 %342 = add nsw i32 %339, %341 %343 = add nsw i32 %342, 1 %344 = ashr i32 %343, 1 %345 = trunc i32 %344 to i8 store i8 %345, ptr %30, align 1 %346 = load i8, ptr %30, align 1 %347 = zext i8 %346 to i32 %348 = load i8, ptr %19, align 1 %349 = zext i8 %348 to i32 %350 = add nsw i32 %347, %349 %351 = add nsw i32 %350, 1 %352 = ashr i32 %351, 1 %353 = trunc i32 %352 to i8 store i8 %353, ptr %19, align 1 br label %354 354: ; preds = %301, %280, %259, %238, %212 %355 = load i8, ptr %19, align 1 %356 = load i32, ptr %18, align 4 %357 = and i32 %356, 3 %358 = sext i32 %357 to i64 %359 = getelementptr inbounds [4 x i8], ptr %20, i64 0, i64 %358 store i8 %355, ptr %359, align 1 %360 = load i32, ptr %18, align 4 %361 = icmp sge i32 %360, 2 br i1 %361, label %362, label %374 362: ; preds = %354 %363 = load i32, ptr %18, align 4 %364 = sub nsw i32 %363, 2 %365 = and i32 %364, 3 %366 = sext i32 %365 to i64 %367 = getelementptr inbounds [4 x i8], ptr %20, i64 0, i64 %366 %368 = load i8, ptr %367, align 1 %369 = load ptr, ptr %16, align 8 %370 = load i32, ptr %18, align 4 %371 = sub nsw i32 %370, 2 %372 = sext i32 %371 to i64 %373 = getelementptr inbounds i8, ptr %369, i64 %372 store i8 %368, ptr %373, align 1 br label %374 374: ; preds = %362, %354 br label %375 375: ; preds = %374 %376 = load i32, ptr %18, align 4 %377 = add nsw i32 %376, 1 store i32 %377, ptr %18, align 4 %378 = load i32, ptr %18, align 4 %379 = load i32, ptr %12, align 4 %380 = icmp slt i32 %378, %379 br i1 %380, label %212, label %._crit_edge3, !llvm.loop !8 ._crit_edge3: ; preds = %375 br label %381 381: ; preds = %._crit_edge3, %184 %382 = load i32, ptr %18, align 4 %383 = sub nsw i32 %382, 2 %384 = and i32 %383, 3 %385 = sext i32 %384 to i64 %386 = getelementptr inbounds [4 x i8], ptr %20, i64 0, i64 %385 %387 = load i8, ptr %386, align 1 %388 = load ptr, ptr %16, align 8 %389 = load i32, ptr %18, align 4 %390 = sub nsw i32 %389, 2 %391 = sext i32 %390 to i64 %392 = getelementptr inbounds i8, ptr %388, i64 %391 store i8 %387, ptr %392, align 1 %393 = load i32, ptr %18, align 4 %394 = sub nsw i32 %393, 1 %395 = and i32 %394, 3 %396 = sext i32 %395 to i64 %397 = getelementptr inbounds [4 x i8], ptr %20, i64 0, i64 %396 %398 = load i8, ptr %397, align 1 %399 = load ptr, ptr %16, align 8 %400 = load i32, ptr %18, align 4 %401 = sub nsw i32 %400, 1 %402 = sext i32 %401 to i64 %403 = getelementptr inbounds i8, ptr %399, i64 %402 store i8 %398, ptr %403, align 1 %404 = load i32, ptr %10, align 4 %405 = load ptr, ptr %8, align 8 %406 = sext i32 %404 to i64 %407 = getelementptr inbounds i8, ptr %405, i64 %406 store ptr %407, ptr %8, align 8 %408 = load i32, ptr %11, align 4 %409 = load ptr, ptr %9, align 8 %410 = sext i32 %408 to i64 %411 = getelementptr inbounds i8, ptr %409, i64 %410 store ptr %411, ptr %9, align 8 br label %412 412: ; preds = %381 %413 = load i32, ptr %17, align 4 %414 = add nsw i32 %413, 1 store i32 %414, ptr %17, align 4 %415 = load i32, ptr %17, align 4 %416 = load i32, ptr %14, align 4 %417 = icmp slt i32 %415, %416 br i1 %417, label %34, label %._crit_edge6, !llvm.loop !9 ._crit_edge6: ; preds = %412 br label %418 418: ; preds = %._crit_edge6, %7 ret void } declare zeroext i8 @abs(i8 noundef zeroext) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"} !8 = distinct !{!8, !7} !9 = distinct !{!9, !7}
; ModuleID = '/tmp/tmpqb3514mj.c' source_filename = "/tmp/tmpqb3514mj.c" target datalayout = "e-m:e-p270: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 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @readData(i32 noundef %0, ptr noundef %1, i64 noundef %2, i32 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 i32, align 4 %10 = alloca i32, align 4 %11 = 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 i32 %3, ptr %9, align 4 store i64 0, ptr %11, align 8 %12 = load i64, ptr %8, align 8 %13 = icmp eq i64 %12, 0 br i1 %13, label %14, label %15 14: ; preds = %4 store i32 0, ptr %5, align 4 br label %63 15: ; preds = %4 %16 = load i32, ptr %9, align 4 %17 = icmp eq i32 %16, 0 br i1 %17, label %18, label %19 18: ; preds = %15 store i32 0, ptr %5, align 4 br label %63 19: ; preds = %15 %20 = load i32, ptr %6, align 4 %21 = load ptr, ptr %7, align 8 %22 = load i64, ptr %8, align 8 %23 = call i32 @read(i32 noundef %20, ptr noundef %21, i64 noundef %22) store i32 %23, ptr %10, align 4 %24 = load i32, ptr %10, align 4 %25 = icmp eq i32 %24, -1 br i1 %25, label %26, label %38 26: ; preds = %19 %27 = load i64, ptr @errno, align 8 %28 = load i64, ptr @EAGAIN, align 8 %29 = icmp eq i64 %27, %28 br i1 %29, label %30, label %37 30: ; preds = %26 %31 = load i32, ptr %6, align 4 %32 = load ptr, ptr %7, align 8 %33 = load i64, ptr %8, align 8 %34 = load i32, ptr %9, align 4 %35 = sub i32 %34, 1 %36 = call i32 @readData(i32 noundef %31, ptr noundef %32, i64 noundef %33, i32 noundef %35) store i32 %36, ptr %5, align 4 br label %63 37: ; preds = %26 store i32 -1, ptr %5, align 4 br label %63 38: ; preds = %19 %39 = load i32, ptr %10, align 4 %40 = sext i32 %39 to i64 store i64 %40, ptr %11, align 8 %41 = load i64, ptr %11, align 8 %42 = load i64, ptr %8, align 8 %43 = sub i64 %42, %41 store i64 %43, ptr %8, align 8 %44 = load ptr, ptr %7, align 8 %45 = load i64, ptr %11, align 8 %46 = getelementptr inbounds i8, ptr %44, i64 %45 store ptr %46, ptr %7, align 8 %47 = load i32, ptr %6, align 4 %48 = load ptr, ptr %7, align 8 %49 = load i64, ptr %8, align 8 %50 = load i32, ptr %9, align 4 %51 = sub i32 %50, 1 %52 = call i32 @readData(i32 noundef %47, ptr noundef %48, i64 noundef %49, i32 noundef %51) store i32 %52, ptr %10, align 4 %53 = load i32, ptr %10, align 4 %54 = icmp eq i32 %53, -1 br i1 %54, label %55, label %56 55: ; preds = %38 store i32 -1, ptr %5, align 4 br label %63 56: ; preds = %38 %57 = load i32, ptr %10, align 4 %58 = sext i32 %57 to i64 %59 = load i64, ptr %11, align 8 %60 = add i64 %59, %58 store i64 %60, ptr %11, align 8 %61 = load i64, ptr %11, align 8 %62 = trunc i64 %61 to i32 store i32 %62, ptr %5, align 4 br label %63 63: ; preds = %56, %55, %37, %30, %18, %14 %64 = load i32, ptr %5, align 4 ret i32 %64 } declare i32 @read(i32 noundef, ptr noundef, i64 noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpqb3514mj.c" target datalayout = "e-m:e-p270: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 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @readData(i32 noundef %0, ptr noundef %1, i64 noundef %2, i32 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 i32, align 4 %10 = alloca i32, align 4 %11 = 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 i32 %3, ptr %9, align 4 store i64 0, ptr %11, align 8 %12 = load i64, ptr %8, align 8 %13 = icmp eq i64 %12, 0 br i1 %13, label %14, label %15 14: ; preds = %4 store i32 0, ptr %5, align 4 br label %63 15: ; preds = %4 %16 = load i32, ptr %9, align 4 %17 = icmp eq i32 %16, 0 br i1 %17, label %18, label %19 18: ; preds = %15 store i32 0, ptr %5, align 4 br label %63 19: ; preds = %15 %20 = load i32, ptr %6, align 4 %21 = load ptr, ptr %7, align 8 %22 = load i64, ptr %8, align 8 %23 = call i32 @read(i32 noundef %20, ptr noundef %21, i64 noundef %22) store i32 %23, ptr %10, align 4 %24 = load i32, ptr %10, align 4 %25 = icmp eq i32 %24, -1 br i1 %25, label %26, label %38 26: ; preds = %19 %27 = load i64, ptr @errno, align 8 %28 = load i64, ptr @EAGAIN, align 8 %29 = icmp eq i64 %27, %28 br i1 %29, label %30, label %37 30: ; preds = %26 %31 = load i32, ptr %6, align 4 %32 = load ptr, ptr %7, align 8 %33 = load i64, ptr %8, align 8 %34 = load i32, ptr %9, align 4 %35 = sub i32 %34, 1 %36 = call i32 @readData(i32 noundef %31, ptr noundef %32, i64 noundef %33, i32 noundef %35) store i32 %36, ptr %5, align 4 br label %63 37: ; preds = %26 store i32 -1, ptr %5, align 4 br label %63 38: ; preds = %19 %39 = load i32, ptr %10, align 4 %40 = sext i32 %39 to i64 store i64 %40, ptr %11, align 8 %41 = load i64, ptr %11, align 8 %42 = load i64, ptr %8, align 8 %43 = sub i64 %42, %41 store i64 %43, ptr %8, align 8 %44 = load ptr, ptr %7, align 8 %45 = load i64, ptr %11, align 8 %46 = getelementptr inbounds i8, ptr %44, i64 %45 store ptr %46, ptr %7, align 8 %47 = load i32, ptr %6, align 4 %48 = load ptr, ptr %7, align 8 %49 = load i64, ptr %8, align 8 %50 = load i32, ptr %9, align 4 %51 = sub i32 %50, 1 %52 = call i32 @readData(i32 noundef %47, ptr noundef %48, i64 noundef %49, i32 noundef %51) store i32 %52, ptr %10, align 4 %53 = load i32, ptr %10, align 4 %54 = icmp eq i32 %53, -1 br i1 %54, label %55, label %56 55: ; preds = %38 store i32 -1, ptr %5, align 4 br label %63 56: ; preds = %38 %57 = load i32, ptr %10, align 4 %58 = sext i32 %57 to i64 %59 = load i64, ptr %11, align 8 %60 = add i64 %59, %58 store i64 %60, ptr %11, align 8 %61 = load i64, ptr %11, align 8 %62 = trunc i64 %61 to i32 store i32 %62, ptr %5, align 4 br label %63 63: ; preds = %56, %55, %37, %30, %18, %14 %64 = load i32, ptr %5, align 4 ret i32 %64 } declare i32 @read(i32 noundef, ptr noundef, i64 noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmphndbcc8x.c' source_filename = "/tmp/tmphndbcc8x.c" target datalayout = "e-m:e-p270: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/tmphndbcc8x.c" target datalayout = "e-m:e-p270: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/tmp6c1o85bb.c' source_filename = "/tmp/tmp6c1o85bb.c" target datalayout = "e-m:e-p270: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.testFindRoot.findElements = private unnamed_addr constant [6 x i32] [i32 0, i32 1, i32 3, i32 7, i32 9, i32 11], align 16 @.str = private unnamed_addr constant [35 x i8] c"----------Test FindRoot----------\0A\00", align 1 @.str.1 = private unnamed_addr constant [24 x i8] c"Find by %s: %2d -> %2d\0A\00", align 1 @.str.2 = private unnamed_addr constant [17 x i8] c"path compression\00", align 1 @.str.3 = private unnamed_addr constant [7 x i8] c"normal\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @testFindRoot(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 { %4 = alloca ptr, align 8 %5 = alloca i32, align 4 %6 = alloca i32, align 4 %7 = alloca i32, align 4 %8 = alloca [6 x i32], align 16 %9 = alloca i32, align 4 %10 = alloca i32, align 4 store ptr %0, ptr %4, align 8 store i32 %1, ptr %5, align 4 store i32 %2, ptr %6, align 4 call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 @__const.testFindRoot.findElements, i64 24, i1 false) store i32 6, ptr %9, align 4 %11 = call i32 (ptr, ...) @printf(ptr noundef @.str) %12 = load ptr, ptr %4, align 8 %13 = load i32, ptr %5, align 4 %14 = call i32 @printData(ptr noundef %12, i32 noundef %13) store i32 0, ptr %7, align 4 br label %15 15: ; preds = %44, %3 %16 = load i32, ptr %7, align 4 %17 = load i32, ptr %9, align 4 %18 = icmp slt i32 %16, %17 br i1 %18, label %19, label %47 19: ; preds = %15 %20 = load ptr, ptr %4, align 8 %21 = load i32, ptr %7, align 4 %22 = sext i32 %21 to i64 %23 = getelementptr inbounds [6 x i32], ptr %8, i64 0, i64 %22 %24 = load i32, ptr %23, align 4 %25 = load i32, ptr %6, align 4 %26 = call i32 @findRoot(ptr noundef %20, i32 noundef %24, i32 noundef %25) store i32 %26, ptr %10, align 4 %27 = load i32, ptr %6, align 4 %28 = icmp sgt i32 %27, 0 %29 = zext i1 %28 to i64 %30 = select i1 %28, ptr @.str.2, ptr @.str.3 %31 = load i32, ptr %7, align 4 %32 = sext i32 %31 to i64 %33 = getelementptr inbounds [6 x i32], ptr %8, i64 0, i64 %32 %34 = load i32, ptr %33, align 4 %35 = load i32, ptr %10, align 4 %36 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %30, i32 noundef %34, i32 noundef %35) %37 = load i32, ptr %6, align 4 %38 = icmp sgt i32 %37, 0 br i1 %38, label %39, label %43 39: ; preds = %19 %40 = load ptr, ptr %4, align 8 %41 = load i32, ptr %5, align 4 %42 = call i32 @printData(ptr noundef %40, i32 noundef %41) br label %43 43: ; preds = %39, %19 br label %44 44: ; preds = %43 %45 = load i32, ptr %7, align 4 %46 = add nsw i32 %45, 1 store i32 %46, ptr %7, align 4 br label %15, !llvm.loop !6 47: ; preds = %15 ret void } ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1 declare i32 @printf(ptr noundef, ...) #2 declare i32 @printData(ptr noundef, i32 noundef) #2 declare i32 @findRoot(ptr noundef, i32 noundef, i32 noundef) #2 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmp6c1o85bb.c" target datalayout = "e-m:e-p270: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.testFindRoot.findElements = private unnamed_addr constant [6 x i32] [i32 0, i32 1, i32 3, i32 7, i32 9, i32 11], align 16 @.str = private unnamed_addr constant [35 x i8] c"----------Test FindRoot----------\0A\00", align 1 @.str.1 = private unnamed_addr constant [24 x i8] c"Find by %s: %2d -> %2d\0A\00", align 1 @.str.2 = private unnamed_addr constant [17 x i8] c"path compression\00", align 1 @.str.3 = private unnamed_addr constant [7 x i8] c"normal\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @testFindRoot(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 { %4 = alloca ptr, align 8 %5 = alloca i32, align 4 %6 = alloca i32, align 4 %7 = alloca i32, align 4 %8 = alloca [6 x i32], align 16 %9 = alloca i32, align 4 %10 = alloca i32, align 4 store ptr %0, ptr %4, align 8 store i32 %1, ptr %5, align 4 store i32 %2, ptr %6, align 4 call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 @__const.testFindRoot.findElements, i64 24, i1 false) store i32 6, ptr %9, align 4 %11 = call i32 (ptr, ...) @printf(ptr noundef @.str) %12 = load ptr, ptr %4, align 8 %13 = load i32, ptr %5, align 4 %14 = call i32 @printData(ptr noundef %12, i32 noundef %13) store i32 0, ptr %7, align 4 %15 = load i32, ptr %7, align 4 %16 = load i32, ptr %9, align 4 %17 = icmp slt i32 %15, %16 br i1 %17, label %.lr.ph, label %49 .lr.ph: ; preds = %3 br label %18 18: ; preds = %.lr.ph, %43 %19 = load ptr, ptr %4, align 8 %20 = load i32, ptr %7, align 4 %21 = sext i32 %20 to i64 %22 = getelementptr inbounds [6 x i32], ptr %8, i64 0, i64 %21 %23 = load i32, ptr %22, align 4 %24 = load i32, ptr %6, align 4 %25 = call i32 @findRoot(ptr noundef %19, i32 noundef %23, i32 noundef %24) store i32 %25, ptr %10, align 4 %26 = load i32, ptr %6, align 4 %27 = icmp sgt i32 %26, 0 %28 = zext i1 %27 to i64 %29 = select i1 %27, ptr @.str.2, ptr @.str.3 %30 = load i32, ptr %7, align 4 %31 = sext i32 %30 to i64 %32 = getelementptr inbounds [6 x i32], ptr %8, i64 0, i64 %31 %33 = load i32, ptr %32, align 4 %34 = load i32, ptr %10, align 4 %35 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %29, i32 noundef %33, i32 noundef %34) %36 = load i32, ptr %6, align 4 %37 = icmp sgt i32 %36, 0 br i1 %37, label %38, label %42 38: ; preds = %18 %39 = load ptr, ptr %4, align 8 %40 = load i32, ptr %5, align 4 %41 = call i32 @printData(ptr noundef %39, i32 noundef %40) br label %42 42: ; preds = %38, %18 br label %43 43: ; preds = %42 %44 = load i32, ptr %7, align 4 %45 = add nsw i32 %44, 1 store i32 %45, ptr %7, align 4 %46 = load i32, ptr %7, align 4 %47 = load i32, ptr %9, align 4 %48 = icmp slt i32 %46, %47 br i1 %48, label %18, label %._crit_edge, !llvm.loop !6 ._crit_edge: ; preds = %43 br label %49 49: ; preds = %._crit_edge, %3 ret void } ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1 declare i32 @printf(ptr noundef, ...) #2 declare i32 @printData(ptr noundef, i32 noundef) #2 declare i32 @findRoot(ptr noundef, i32 noundef, i32 noundef) #2 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"}
; ModuleID = '/tmp/tmpcm3jces3.c' source_filename = "/tmp/tmpcm3jces3.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @clEnqueueWriteBuffer(i64 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, ptr noundef %5, i64 noundef %6, ptr noundef %7, ptr noundef %8) #0 { %10 = alloca i64, align 8 %11 = alloca i64, align 8 %12 = alloca i64, align 8 %13 = alloca i64, align 8 %14 = alloca i64, align 8 %15 = alloca ptr, align 8 %16 = alloca i64, align 8 %17 = alloca ptr, align 8 %18 = alloca ptr, align 8 %19 = alloca [9 x i32], align 16 store i64 %0, ptr %10, align 8 store i64 %1, ptr %11, align 8 store i64 %2, ptr %12, align 8 store i64 %3, ptr %13, align 8 store i64 %4, ptr %14, align 8 store ptr %5, ptr %15, align 8 store i64 %6, ptr %16, align 8 store ptr %7, ptr %17, align 8 store ptr %8, ptr %18, align 8 %20 = load i64, ptr %10, align 8 %21 = trunc i64 %20 to i32 %22 = getelementptr inbounds [9 x i32], ptr %19, i64 0, i64 0 store i32 %21, ptr %22, align 16 %23 = load i64, ptr %11, align 8 %24 = trunc i64 %23 to i32 %25 = getelementptr inbounds [9 x i32], ptr %19, i64 0, i64 1 store i32 %24, ptr %25, align 4 %26 = load i64, ptr %12, align 8 %27 = trunc i64 %26 to i32 %28 = getelementptr inbounds [9 x i32], ptr %19, i64 0, i64 2 store i32 %27, ptr %28, align 8 %29 = load i64, ptr %13, align 8 %30 = trunc i64 %29 to i32 %31 = getelementptr inbounds [9 x i32], ptr %19, i64 0, i64 3 store i32 %30, ptr %31, align 4 %32 = load i64, ptr %14, align 8 %33 = trunc i64 %32 to i32 %34 = getelementptr inbounds [9 x i32], ptr %19, i64 0, i64 4 store i32 %33, ptr %34, align 16 %35 = load ptr, ptr %15, align 8 %36 = ptrtoint ptr %35 to i32 %37 = getelementptr inbounds [9 x i32], ptr %19, i64 0, i64 5 store i32 %36, ptr %37, align 4 %38 = load i64, ptr %16, align 8 %39 = trunc i64 %38 to i32 %40 = getelementptr inbounds [9 x i32], ptr %19, i64 0, i64 6 store i32 %39, ptr %40, align 8 %41 = load ptr, ptr %17, align 8 %42 = ptrtoint ptr %41 to i32 %43 = getelementptr inbounds [9 x i32], ptr %19, i64 0, i64 7 store i32 %42, ptr %43, align 4 %44 = load ptr, ptr %18, align 8 %45 = ptrtoint ptr %44 to i32 %46 = getelementptr inbounds [9 x i32], ptr %19, i64 0, i64 8 store i32 %45, ptr %46, align 16 %47 = getelementptr inbounds [9 x i32], ptr %19, i64 0, i64 0 %48 = call i32 @syscall(i32 noundef 325, i32 noundef 1055, ptr noundef %47) ret i32 %48 } declare i32 @syscall(i32 noundef, i32 noundef, ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpcm3jces3.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @clEnqueueWriteBuffer(i64 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, ptr noundef %5, i64 noundef %6, ptr noundef %7, ptr noundef %8) #0 { %10 = alloca i64, align 8 %11 = alloca i64, align 8 %12 = alloca i64, align 8 %13 = alloca i64, align 8 %14 = alloca i64, align 8 %15 = alloca ptr, align 8 %16 = alloca i64, align 8 %17 = alloca ptr, align 8 %18 = alloca ptr, align 8 %19 = alloca [9 x i32], align 16 store i64 %0, ptr %10, align 8 store i64 %1, ptr %11, align 8 store i64 %2, ptr %12, align 8 store i64 %3, ptr %13, align 8 store i64 %4, ptr %14, align 8 store ptr %5, ptr %15, align 8 store i64 %6, ptr %16, align 8 store ptr %7, ptr %17, align 8 store ptr %8, ptr %18, align 8 %20 = load i64, ptr %10, align 8 %21 = trunc i64 %20 to i32 %22 = getelementptr inbounds [9 x i32], ptr %19, i64 0, i64 0 store i32 %21, ptr %22, align 16 %23 = load i64, ptr %11, align 8 %24 = trunc i64 %23 to i32 %25 = getelementptr inbounds [9 x i32], ptr %19, i64 0, i64 1 store i32 %24, ptr %25, align 4 %26 = load i64, ptr %12, align 8 %27 = trunc i64 %26 to i32 %28 = getelementptr inbounds [9 x i32], ptr %19, i64 0, i64 2 store i32 %27, ptr %28, align 8 %29 = load i64, ptr %13, align 8 %30 = trunc i64 %29 to i32 %31 = getelementptr inbounds [9 x i32], ptr %19, i64 0, i64 3 store i32 %30, ptr %31, align 4 %32 = load i64, ptr %14, align 8 %33 = trunc i64 %32 to i32 %34 = getelementptr inbounds [9 x i32], ptr %19, i64 0, i64 4 store i32 %33, ptr %34, align 16 %35 = load ptr, ptr %15, align 8 %36 = ptrtoint ptr %35 to i32 %37 = getelementptr inbounds [9 x i32], ptr %19, i64 0, i64 5 store i32 %36, ptr %37, align 4 %38 = load i64, ptr %16, align 8 %39 = trunc i64 %38 to i32 %40 = getelementptr inbounds [9 x i32], ptr %19, i64 0, i64 6 store i32 %39, ptr %40, align 8 %41 = load ptr, ptr %17, align 8 %42 = ptrtoint ptr %41 to i32 %43 = getelementptr inbounds [9 x i32], ptr %19, i64 0, i64 7 store i32 %42, ptr %43, align 4 %44 = load ptr, ptr %18, align 8 %45 = ptrtoint ptr %44 to i32 %46 = getelementptr inbounds [9 x i32], ptr %19, i64 0, i64 8 store i32 %45, ptr %46, align 16 %47 = getelementptr inbounds [9 x i32], ptr %19, i64 0, i64 0 %48 = call i32 @syscall(i32 noundef 325, i32 noundef 1055, ptr noundef %47) ret i32 %48 } declare i32 @syscall(i32 noundef, i32 noundef, ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmp7mugxx25.c' source_filename = "/tmp/tmp7mugxx25.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @PTHREAD_MUTEX_RECURSIVE_NP = dso_local global i64 0, align 8 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @OSAL_MutexCreate(ptr noundef %0) #0 { %2 = alloca ptr, align 8 %3 = alloca i32, align 4 %4 = alloca i32, align 4 store ptr %0, ptr %2, align 8 %5 = call i32 @pthread_mutexattr_init(ptr noundef %3) %6 = load i64, ptr @PTHREAD_MUTEX_RECURSIVE_NP, align 8 %7 = trunc i64 %6 to i32 %8 = call i32 @pthread_mutexattr_settype(ptr noundef %3, i32 noundef %7) %9 = load ptr, ptr %2, align 8 %10 = call i32 @pthread_mutex_init(ptr noundef %9, ptr noundef %3) store i32 %10, ptr %4, align 4 %11 = load i32, ptr %4, align 4 ret i32 %11 } declare i32 @pthread_mutexattr_init(ptr noundef) #1 declare i32 @pthread_mutexattr_settype(ptr noundef, i32 noundef) #1 declare i32 @pthread_mutex_init(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/tmp7mugxx25.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @PTHREAD_MUTEX_RECURSIVE_NP = dso_local global i64 0, align 8 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @OSAL_MutexCreate(ptr noundef %0) #0 { %2 = alloca ptr, align 8 %3 = alloca i32, align 4 %4 = alloca i32, align 4 store ptr %0, ptr %2, align 8 %5 = call i32 @pthread_mutexattr_init(ptr noundef %3) %6 = load i64, ptr @PTHREAD_MUTEX_RECURSIVE_NP, align 8 %7 = trunc i64 %6 to i32 %8 = call i32 @pthread_mutexattr_settype(ptr noundef %3, i32 noundef %7) %9 = load ptr, ptr %2, align 8 %10 = call i32 @pthread_mutex_init(ptr noundef %9, ptr noundef %3) store i32 %10, ptr %4, align 4 %11 = load i32, ptr %4, align 4 ret i32 %11 } declare i32 @pthread_mutexattr_init(ptr noundef) #1 declare i32 @pthread_mutexattr_settype(ptr noundef, i32 noundef) #1 declare i32 @pthread_mutex_init(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/tmphabvdgva.c' source_filename = "/tmp/tmphabvdgva.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [12 x i8] c"<font ECT=\22\00", align 1 @.str.1 = private unnamed_addr constant [10 x i8] c"\22></font>\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local ptr @aim_handle_ect(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 { %5 = alloca ptr, align 8 %6 = alloca ptr, align 8 %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 ptr, align 8 %13 = 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 %3, ptr %8, align 4 br label %14 14: ; preds = %76, %4 %15 = load ptr, ptr %7, align 8 %16 = call ptr @strstr(ptr noundef %15, ptr noundef @.str) store ptr %16, ptr %9, align 8 %17 = icmp ne ptr %16, null br i1 %17, label %18, label %77 18: ; preds = %14 %19 = load ptr, ptr %9, align 8 %20 = getelementptr inbounds i8, ptr %19, i64 12 %21 = getelementptr inbounds i8, ptr %20, i64 -1 store ptr %21, ptr %11, align 8 %22 = load ptr, ptr %11, align 8 %23 = call ptr @strstr(ptr noundef %22, ptr noundef @.str.1) store ptr %23, ptr %12, align 8 %24 = icmp ne ptr %23, null br i1 %24, label %25, label %75 25: ; preds = %18 %26 = load ptr, ptr %12, align 8 store i8 0, ptr %26, align 1 %27 = load ptr, ptr %12, align 8 %28 = getelementptr inbounds i8, ptr %27, i64 10 %29 = getelementptr inbounds i8, ptr %28, i64 -1 store ptr %29, ptr %10, align 8 %30 = load ptr, ptr %11, align 8 %31 = call ptr @strchr(ptr noundef %30, i8 noundef signext 32) store ptr %31, ptr %13, align 8 %32 = icmp ne ptr %31, null br i1 %32, label %33, label %54 33: ; preds = %25 %34 = load ptr, ptr %13, align 8 store i8 0, ptr %34, align 1 %35 = load ptr, ptr %13, align 8 %36 = getelementptr inbounds i8, ptr %35, i32 1 store ptr %36, ptr %13, align 8 %37 = load i32, ptr %8, align 4 %38 = icmp eq i32 %37, 1 br i1 %38, label %39, label %46 39: ; preds = %33 %40 = load ptr, ptr %5, align 8 %41 = load ptr, ptr %6, align 8 %42 = load ptr, ptr %11, align 8 %43 = load ptr, ptr %13, align 8 %44 = call ptr @htmlclean(ptr noundef %43) %45 = call i32 @firetalk_callback_subcode_reply(ptr noundef %40, ptr noundef %41, ptr noundef %42, ptr noundef %44) br label %53 46: ; preds = %33 %47 = load ptr, ptr %5, align 8 %48 = load ptr, ptr %6, align 8 %49 = load ptr, ptr %11, align 8 %50 = load ptr, ptr %13, align 8 %51 = call ptr @htmlclean(ptr noundef %50) %52 = call i32 @firetalk_callback_subcode_request(ptr noundef %47, ptr noundef %48, ptr noundef %49, ptr noundef %51) br label %53 53: ; preds = %46, %39 br label %68 54: ; preds = %25 %55 = load i32, ptr %8, align 4 %56 = icmp eq i32 %55, 1 br i1 %56, label %57, label %62 57: ; preds = %54 %58 = load ptr, ptr %5, align 8 %59 = load ptr, ptr %6, align 8 %60 = load ptr, ptr %11, align 8 %61 = call i32 @firetalk_callback_subcode_reply(ptr noundef %58, ptr noundef %59, ptr noundef %60, ptr noundef null) br label %67 62: ; preds = %54 %63 = load ptr, ptr %5, align 8 %64 = load ptr, ptr %6, align 8 %65 = load ptr, ptr %11, align 8 %66 = call i32 @firetalk_callback_subcode_request(ptr noundef %63, ptr noundef %64, ptr noundef %65, ptr noundef null) br label %67 67: ; preds = %62, %57 br label %68 68: ; preds = %67, %53 %69 = load ptr, ptr %9, align 8 %70 = load ptr, ptr %10, align 8 %71 = load ptr, ptr %10, align 8 %72 = call i64 @strlen(ptr noundef %71) %73 = add nsw i64 %72, 1 %74 = call i32 @memmove(ptr noundef %69, ptr noundef %70, i64 noundef %73) br label %76 75: ; preds = %18 br label %77 76: ; preds = %68 br label %14, !llvm.loop !6 77: ; preds = %75, %14 %78 = load ptr, ptr %7, align 8 ret ptr %78 } declare ptr @strstr(ptr noundef, ptr noundef) #1 declare ptr @strchr(ptr noundef, i8 noundef signext) #1 declare i32 @firetalk_callback_subcode_reply(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1 declare ptr @htmlclean(ptr noundef) #1 declare i32 @firetalk_callback_subcode_request(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1 declare i32 @memmove(ptr noundef, ptr noundef, i64 noundef) #1 declare i64 @strlen(ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmphabvdgva.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [12 x i8] c"<font ECT=\22\00", align 1 @.str.1 = private unnamed_addr constant [10 x i8] c"\22></font>\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local ptr @aim_handle_ect(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 { %5 = alloca ptr, align 8 %6 = alloca ptr, align 8 %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 ptr, align 8 %13 = 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 %3, ptr %8, align 4 %14 = load ptr, ptr %7, align 8 %15 = call ptr @strstr(ptr noundef %14, ptr noundef @.str) store ptr %15, ptr %9, align 8 %16 = icmp ne ptr %15, null br i1 %16, label %.lr.ph, label %.loopexit .lr.ph: ; preds = %4 br label %17 17: ; preds = %.lr.ph, %75 %18 = load ptr, ptr %9, align 8 %19 = getelementptr inbounds i8, ptr %18, i64 12 %20 = getelementptr inbounds i8, ptr %19, i64 -1 store ptr %20, ptr %11, align 8 %21 = load ptr, ptr %11, align 8 %22 = call ptr @strstr(ptr noundef %21, ptr noundef @.str.1) store ptr %22, ptr %12, align 8 %23 = icmp ne ptr %22, null br i1 %23, label %24, label %74 24: ; preds = %17 %25 = load ptr, ptr %12, align 8 store i8 0, ptr %25, align 1 %26 = load ptr, ptr %12, align 8 %27 = getelementptr inbounds i8, ptr %26, i64 10 %28 = getelementptr inbounds i8, ptr %27, i64 -1 store ptr %28, ptr %10, align 8 %29 = load ptr, ptr %11, align 8 %30 = call ptr @strchr(ptr noundef %29, i8 noundef signext 32) store ptr %30, ptr %13, align 8 %31 = icmp ne ptr %30, null br i1 %31, label %32, label %53 32: ; preds = %24 %33 = load ptr, ptr %13, align 8 store i8 0, ptr %33, align 1 %34 = load ptr, ptr %13, align 8 %35 = getelementptr inbounds i8, ptr %34, i32 1 store ptr %35, ptr %13, align 8 %36 = load i32, ptr %8, align 4 %37 = icmp eq i32 %36, 1 br i1 %37, label %38, label %45 38: ; preds = %32 %39 = load ptr, ptr %5, align 8 %40 = load ptr, ptr %6, align 8 %41 = load ptr, ptr %11, align 8 %42 = load ptr, ptr %13, align 8 %43 = call ptr @htmlclean(ptr noundef %42) %44 = call i32 @firetalk_callback_subcode_reply(ptr noundef %39, ptr noundef %40, ptr noundef %41, ptr noundef %43) br label %52 45: ; preds = %32 %46 = load ptr, ptr %5, align 8 %47 = load ptr, ptr %6, align 8 %48 = load ptr, ptr %11, align 8 %49 = load ptr, ptr %13, align 8 %50 = call ptr @htmlclean(ptr noundef %49) %51 = call i32 @firetalk_callback_subcode_request(ptr noundef %46, ptr noundef %47, ptr noundef %48, ptr noundef %50) br label %52 52: ; preds = %45, %38 br label %67 53: ; preds = %24 %54 = load i32, ptr %8, align 4 %55 = icmp eq i32 %54, 1 br i1 %55, label %56, label %61 56: ; preds = %53 %57 = load ptr, ptr %5, align 8 %58 = load ptr, ptr %6, align 8 %59 = load ptr, ptr %11, align 8 %60 = call i32 @firetalk_callback_subcode_reply(ptr noundef %57, ptr noundef %58, ptr noundef %59, ptr noundef null) br label %66 61: ; preds = %53 %62 = load ptr, ptr %5, align 8 %63 = load ptr, ptr %6, align 8 %64 = load ptr, ptr %11, align 8 %65 = call i32 @firetalk_callback_subcode_request(ptr noundef %62, ptr noundef %63, ptr noundef %64, ptr noundef null) br label %66 66: ; preds = %61, %56 br label %67 67: ; preds = %66, %52 %68 = load ptr, ptr %9, align 8 %69 = load ptr, ptr %10, align 8 %70 = load ptr, ptr %10, align 8 %71 = call i64 @strlen(ptr noundef %70) %72 = add nsw i64 %71, 1 %73 = call i32 @memmove(ptr noundef %68, ptr noundef %69, i64 noundef %72) br label %75 74: ; preds = %17 br label %79 75: ; preds = %67 %76 = load ptr, ptr %7, align 8 %77 = call ptr @strstr(ptr noundef %76, ptr noundef @.str) store ptr %77, ptr %9, align 8 %78 = icmp ne ptr %77, null br i1 %78, label %17, label %..loopexit_crit_edge, !llvm.loop !6 ..loopexit_crit_edge: ; preds = %75 br label %.loopexit .loopexit: ; preds = %..loopexit_crit_edge, %4 br label %79 79: ; preds = %.loopexit, %74 %80 = load ptr, ptr %7, align 8 ret ptr %80 } declare ptr @strstr(ptr noundef, ptr noundef) #1 declare ptr @strchr(ptr noundef, i8 noundef signext) #1 declare i32 @firetalk_callback_subcode_reply(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1 declare ptr @htmlclean(ptr noundef) #1 declare i32 @firetalk_callback_subcode_request(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1 declare i32 @memmove(ptr noundef, ptr noundef, i64 noundef) #1 declare i64 @strlen(ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"}
; ModuleID = '/tmp/tmpqw_amgky.c' source_filename = "/tmp/tmpqw_amgky.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Give a cell number : \00", align 1 @.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1 @.str.2 = private unnamed_addr constant [22 x i8] c"an error happened...\0A\00", align 1 @.str.3 = private unnamed_addr constant [28 x i8] c"inner normal for cell %d :\0A\00", align 1 @.str.4 = private unnamed_addr constant [8 x i8] c"%.15le\0A\00", align 1 @.str.5 = private unnamed_addr constant [31 x i8] c"number of points in supports :\00", align 1 @.str.6 = private unnamed_addr constant [4 x i8] c" %d\00", align 1 @.str.7 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1 @.str.8 = private unnamed_addr constant [26 x i8] c"points in the supports :\0A\00", align 1 @.str.9 = private unnamed_addr constant [9 x i8] c" %.15le\0A\00", align 1 @.str.10 = private unnamed_addr constant [19 x i8] c"mixed volume : %d\0A\00", align 1 @.str.11 = private unnamed_addr constant [33 x i8] c"the inner normal for cell %d : \0A\00", align 1 @.str.12 = private unnamed_addr constant [41 x i8] c"total number of points in supports : %d\0A\00", align 1 @.str.13 = private unnamed_addr constant [32 x i8] c"number of points in supports : \00", align 1 @.str.14 = private unnamed_addr constant [20 x i8] c"labels of points : \00", align 1 @.str.15 = private unnamed_addr constant [4 x i8] c" | \00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @query_cell(i32 noundef %0, i32 noundef %1, ptr 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 %11 = alloca i32, align 4 %12 = alloca i32, align 4 %13 = alloca ptr, align 8 %14 = alloca i64, align 8 %15 = alloca i32, align 4 %16 = alloca ptr, align 8 %17 = alloca i64, align 8 %18 = alloca i64, align 8 %19 = alloca ptr, align 8 %20 = alloca i64, align 8 %21 = alloca i64, align 8 store i32 %0, ptr %4, align 4 store i32 %1, ptr %5, align 4 store ptr %2, ptr %6, align 8 %22 = load i32, ptr %5, align 4 %23 = zext i32 %22 to i64 %24 = call ptr @llvm.stacksave() store ptr %24, ptr %13, align 8 %25 = alloca i32, i64 %23, align 16 store i64 %23, ptr %14, align 8 %26 = load i32, ptr %4, align 4 %27 = zext i32 %26 to i64 %28 = alloca double, i64 %27, align 16 store i64 %27, ptr %17, align 8 %29 = load i32, ptr %4, align 4 %30 = zext i32 %29 to i64 %31 = alloca double, i64 %30, align 16 store i64 %30, ptr %18, align 8 %32 = call i32 (ptr, ...) @printf(ptr noundef @.str) %33 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %7) %34 = load i32, ptr %4, align 4 %35 = load i32, ptr %7, align 4 %36 = call i32 @celcon_get_inner_normal(i32 noundef %34, i32 noundef %35, ptr noundef %28) store i32 %36, ptr %8, align 4 %37 = load i32, ptr %8, align 4 %38 = icmp eq i32 %37, 1 br i1 %38, label %39, label %41 39: ; preds = %3 %40 = call i32 (ptr, ...) @printf(ptr noundef @.str.2) br label %216 41: ; preds = %3 %42 = load i32, ptr %7, align 4 %43 = load ptr, ptr %6, align 8 store i32 %42, ptr %43, align 4 %44 = load i32, ptr %7, align 4 %45 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %44) store i32 0, ptr %10, align 4 br label %46 46: ; preds = %56, %41 %47 = load i32, ptr %10, align 4 %48 = load i32, ptr %4, align 4 %49 = icmp slt i32 %47, %48 br i1 %49, label %50, label %59 50: ; preds = %46 %51 = load i32, ptr %10, align 4 %52 = sext i32 %51 to i64 %53 = getelementptr inbounds double, ptr %28, i64 %52 %54 = load double, ptr %53, align 8 %55 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %54) br label %56 56: ; preds = %50 %57 = load i32, ptr %10, align 4 %58 = add nsw i32 %57, 1 store i32 %58, ptr %10, align 4 br label %46, !llvm.loop !6 59: ; preds = %46 %60 = load i32, ptr %7, align 4 %61 = load i32, ptr %5, align 4 %62 = call i32 @celcon_number_of_points_in_cell(i32 noundef %60, i32 noundef %61, ptr noundef %25) store i32 %62, ptr %8, align 4 %63 = call i32 (ptr, ...) @printf(ptr noundef @.str.5) store i32 0, ptr %10, align 4 br label %64 64: ; preds = %74, %59 %65 = load i32, ptr %10, align 4 %66 = load i32, ptr %5, align 4 %67 = icmp slt i32 %65, %66 br i1 %67, label %68, label %77 68: ; preds = %64 %69 = load i32, ptr %10, align 4 %70 = sext i32 %69 to i64 %71 = getelementptr inbounds i32, ptr %25, i64 %70 %72 = load i32, ptr %71, align 4 %73 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %72) br label %74 74: ; preds = %68 %75 = load i32, ptr %10, align 4 %76 = add nsw i32 %75, 1 store i32 %76, ptr %10, align 4 br label %64, !llvm.loop !8 77: ; preds = %64 %78 = call i32 (ptr, ...) @printf(ptr noundef @.str.7) %79 = call i32 (ptr, ...) @printf(ptr noundef @.str.8) store i32 0, ptr %10, align 4 br label %80 80: ; preds = %126, %77 %81 = load i32, ptr %10, align 4 %82 = load i32, ptr %5, align 4 %83 = icmp slt i32 %81, %82 br i1 %83, label %84, label %129 84: ; preds = %80 store i32 0, ptr %11, align 4 br label %85 85: ; preds = %122, %84 %86 = load i32, ptr %11, align 4 %87 = load i32, ptr %10, align 4 %88 = sext i32 %87 to i64 %89 = getelementptr inbounds i32, ptr %25, i64 %88 %90 = load i32, ptr %89, align 4 %91 = icmp slt i32 %86, %90 br i1 %91, label %92, label %125 92: ; preds = %85 %93 = load i32, ptr %4, align 4 %94 = load i32, ptr %7, align 4 %95 = load i32, ptr %10, align 4 %96 = add nsw i32 %95, 1 %97 = load i32, ptr %11, align 4 %98 = add nsw i32 %97, 1 %99 = call i32 @celcon_get_point_in_cell(i32 noundef %93, i32 noundef %94, i32 noundef %96, i32 noundef %98, ptr noundef %31) store i32 %99, ptr %8, align 4 store i32 0, ptr %15, align 4 br label %100 100: ; preds = %112, %92 %101 = load i32, ptr %15, align 4 %102 = load i32, ptr %4, align 4 %103 = sub nsw i32 %102, 1 %104 = icmp slt i32 %101, %103 br i1 %104, label %105, label %115 105: ; preds = %100 %106 = load i32, ptr %15, align 4 %107 = sext i32 %106 to i64 %108 = getelementptr inbounds double, ptr %31, i64 %107 %109 = load double, ptr %108, align 8 %110 = fptosi double %109 to i32 %111 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %110) br label %112 112: ; preds = %105 %113 = load i32, ptr %15, align 4 %114 = add nsw i32 %113, 1 store i32 %114, ptr %15, align 4 br label %100, !llvm.loop !9 115: ; preds = %100 %116 = load i32, ptr %4, align 4 %117 = sub nsw i32 %116, 1 %118 = sext i32 %117 to i64 %119 = getelementptr inbounds double, ptr %31, i64 %118 %120 = load double, ptr %119, align 8 %121 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %120) br label %122 122: ; preds = %115 %123 = load i32, ptr %11, align 4 %124 = add nsw i32 %123, 1 store i32 %124, ptr %11, align 4 br label %85, !llvm.loop !10 125: ; preds = %85 br label %126 126: ; preds = %125 %127 = load i32, ptr %10, align 4 %128 = add nsw i32 %127, 1 store i32 %128, ptr %10, align 4 br label %80, !llvm.loop !11 129: ; preds = %80 %130 = load i32, ptr %7, align 4 %131 = call i32 @celcon_mixed_volume(i32 noundef %130, ptr noundef %12) store i32 %131, ptr %8, align 4 %132 = load i32, ptr %12, align 4 %133 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %132) %134 = load i32, ptr %5, align 4 %135 = add nsw i32 1, %134 %136 = load i32, ptr %4, align 4 %137 = mul nsw i32 2, %136 %138 = add nsw i32 %135, %137 %139 = zext i32 %138 to i64 %140 = call ptr @llvm.stacksave() store ptr %140, ptr %19, align 8 %141 = alloca i32, i64 %139, align 16 store i64 %139, ptr %20, align 8 %142 = load i32, ptr %4, align 4 %143 = zext i32 %142 to i64 %144 = alloca double, i64 %143, align 16 store i64 %143, ptr %21, align 8 %145 = load i32, ptr %4, align 4 %146 = load i32, ptr %5, align 4 %147 = load i32, ptr %7, align 4 %148 = call i32 @celcon_retrieve_mixed_cell(i32 noundef %145, i32 noundef %146, i32 noundef %147, ptr noundef %141, ptr noundef %144) store i32 %148, ptr %8, align 4 %149 = load i32, ptr %7, align 4 %150 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %149) store i32 0, ptr %10, align 4 br label %151 151: ; preds = %161, %129 %152 = load i32, ptr %10, align 4 %153 = load i32, ptr %4, align 4 %154 = icmp slt i32 %152, %153 br i1 %154, label %155, label %164 155: ; preds = %151 %156 = load i32, ptr %10, align 4 %157 = sext i32 %156 to i64 %158 = getelementptr inbounds double, ptr %144, i64 %157 %159 = load double, ptr %158, align 8 %160 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %159) br label %161 161: ; preds = %155 %162 = load i32, ptr %10, align 4 %163 = add nsw i32 %162, 1 store i32 %163, ptr %10, align 4 br label %151, !llvm.loop !12 164: ; preds = %151 %165 = getelementptr inbounds i32, ptr %141, i64 0 %166 = load i32, ptr %165, align 16 %167 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %166) %168 = call i32 (ptr, ...) @printf(ptr noundef @.str.13) store i32 1, ptr %10, align 4 br label %169 169: ; preds = %179, %164 %170 = load i32, ptr %10, align 4 %171 = load i32, ptr %5, align 4 %172 = icmp sle i32 %170, %171 br i1 %172, label %173, label %182 173: ; preds = %169 %174 = load i32, ptr %10, align 4 %175 = sext i32 %174 to i64 %176 = getelementptr inbounds i32, ptr %141, i64 %175 %177 = load i32, ptr %176, align 4 %178 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %177) br label %179 179: ; preds = %173 %180 = load i32, ptr %10, align 4 %181 = add nsw i32 %180, 1 store i32 %181, ptr %10, align 4 br label %169, !llvm.loop !13 182: ; preds = %169 %183 = call i32 (ptr, ...) @printf(ptr noundef @.str.7) %184 = call i32 (ptr, ...) @printf(ptr noundef @.str.14) %185 = load i32, ptr %5, align 4 store i32 %185, ptr %15, align 4 store i32 1, ptr %10, align 4 br label %186 186: ; preds = %210, %182 %187 = load i32, ptr %10, align 4 %188 = load i32, ptr %5, align 4 %189 = icmp sle i32 %187, %188 br i1 %189, label %190, label %213 190: ; preds = %186 store i32 0, ptr %11, align 4 br label %191 191: ; preds = %205, %190 %192 = load i32, ptr %11, align 4 %193 = load i32, ptr %10, align 4 %194 = sext i32 %193 to i64 %195 = getelementptr inbounds i32, ptr %141, i64 %194 %196 = load i32, ptr %195, align 4 %197 = icmp slt i32 %192, %196 br i1 %197, label %198, label %208 198: ; preds = %191 %199 = load i32, ptr %15, align 4 %200 = add nsw i32 %199, 1 store i32 %200, ptr %15, align 4 %201 = sext i32 %200 to i64 %202 = getelementptr inbounds i32, ptr %141, i64 %201 %203 = load i32, ptr %202, align 4 %204 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %203) br label %205 205: ; preds = %198 %206 = load i32, ptr %11, align 4 %207 = add nsw i32 %206, 1 store i32 %207, ptr %11, align 4 br label %191, !llvm.loop !14 208: ; preds = %191 %209 = call i32 (ptr, ...) @printf(ptr noundef @.str.15) br label %210 210: ; preds = %208 %211 = load i32, ptr %10, align 4 %212 = add nsw i32 %211, 1 store i32 %212, ptr %10, align 4 br label %186, !llvm.loop !15 213: ; preds = %186 %214 = call i32 (ptr, ...) @printf(ptr noundef @.str.7) %215 = load ptr, ptr %19, align 8 call void @llvm.stackrestore(ptr %215) br label %216 216: ; preds = %213, %39 %217 = load i32, ptr %8, align 4 %218 = load ptr, ptr %13, align 8 call void @llvm.stackrestore(ptr %218) ret i32 %217 } ; Function Attrs: nocallback nofree nosync nounwind willreturn declare ptr @llvm.stacksave() #1 declare i32 @printf(ptr noundef, ...) #2 declare i32 @scanf(ptr noundef, ptr noundef) #2 declare i32 @celcon_get_inner_normal(i32 noundef, i32 noundef, ptr noundef) #2 declare i32 @celcon_number_of_points_in_cell(i32 noundef, i32 noundef, ptr noundef) #2 declare i32 @celcon_get_point_in_cell(i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #2 declare i32 @celcon_mixed_volume(i32 noundef, ptr noundef) #2 declare i32 @celcon_retrieve_mixed_cell(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #2 ; Function Attrs: nocallback nofree nosync nounwind willreturn declare void @llvm.stackrestore(ptr) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { nocallback nofree nosync nounwind willreturn } attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"} !8 = distinct !{!8, !7} !9 = distinct !{!9, !7} !10 = distinct !{!10, !7} !11 = distinct !{!11, !7} !12 = distinct !{!12, !7} !13 = distinct !{!13, !7} !14 = distinct !{!14, !7} !15 = distinct !{!15, !7}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpqw_amgky.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Give a cell number : \00", align 1 @.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1 @.str.2 = private unnamed_addr constant [22 x i8] c"an error happened...\0A\00", align 1 @.str.3 = private unnamed_addr constant [28 x i8] c"inner normal for cell %d :\0A\00", align 1 @.str.4 = private unnamed_addr constant [8 x i8] c"%.15le\0A\00", align 1 @.str.5 = private unnamed_addr constant [31 x i8] c"number of points in supports :\00", align 1 @.str.6 = private unnamed_addr constant [4 x i8] c" %d\00", align 1 @.str.7 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1 @.str.8 = private unnamed_addr constant [26 x i8] c"points in the supports :\0A\00", align 1 @.str.9 = private unnamed_addr constant [9 x i8] c" %.15le\0A\00", align 1 @.str.10 = private unnamed_addr constant [19 x i8] c"mixed volume : %d\0A\00", align 1 @.str.11 = private unnamed_addr constant [33 x i8] c"the inner normal for cell %d : \0A\00", align 1 @.str.12 = private unnamed_addr constant [41 x i8] c"total number of points in supports : %d\0A\00", align 1 @.str.13 = private unnamed_addr constant [32 x i8] c"number of points in supports : \00", align 1 @.str.14 = private unnamed_addr constant [20 x i8] c"labels of points : \00", align 1 @.str.15 = private unnamed_addr constant [4 x i8] c" | \00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @query_cell(i32 noundef %0, i32 noundef %1, ptr 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 %11 = alloca i32, align 4 %12 = alloca i32, align 4 %13 = alloca ptr, align 8 %14 = alloca i64, align 8 %15 = alloca i32, align 4 %16 = alloca ptr, align 8 %17 = alloca i64, align 8 %18 = alloca i64, align 8 %19 = alloca ptr, align 8 %20 = alloca i64, align 8 %21 = alloca i64, align 8 store i32 %0, ptr %4, align 4 store i32 %1, ptr %5, align 4 store ptr %2, ptr %6, align 8 %22 = load i32, ptr %5, align 4 %23 = zext i32 %22 to i64 %24 = call ptr @llvm.stacksave() store ptr %24, ptr %13, align 8 %25 = alloca i32, i64 %23, align 16 store i64 %23, ptr %14, align 8 %26 = load i32, ptr %4, align 4 %27 = zext i32 %26 to i64 %28 = alloca double, i64 %27, align 16 store i64 %27, ptr %17, align 8 %29 = load i32, ptr %4, align 4 %30 = zext i32 %29 to i64 %31 = alloca double, i64 %30, align 16 store i64 %30, ptr %18, align 8 %32 = call i32 (ptr, ...) @printf(ptr noundef @.str) %33 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %7) %34 = load i32, ptr %4, align 4 %35 = load i32, ptr %7, align 4 %36 = call i32 @celcon_get_inner_normal(i32 noundef %34, i32 noundef %35, ptr noundef %28) store i32 %36, ptr %8, align 4 %37 = load i32, ptr %8, align 4 %38 = icmp eq i32 %37, 1 br i1 %38, label %39, label %41 39: ; preds = %3 %40 = call i32 (ptr, ...) @printf(ptr noundef @.str.2) br label %241 41: ; preds = %3 %42 = load i32, ptr %7, align 4 %43 = load ptr, ptr %6, align 8 store i32 %42, ptr %43, align 4 %44 = load i32, ptr %7, align 4 %45 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %44) store i32 0, ptr %10, align 4 %46 = load i32, ptr %10, align 4 %47 = load i32, ptr %4, align 4 %48 = icmp slt i32 %46, %47 br i1 %48, label %.lr.ph, label %61 .lr.ph: ; preds = %41 br label %49 49: ; preds = %.lr.ph, %55 %50 = load i32, ptr %10, align 4 %51 = sext i32 %50 to i64 %52 = getelementptr inbounds double, ptr %28, i64 %51 %53 = load double, ptr %52, align 8 %54 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %53) br label %55 55: ; preds = %49 %56 = load i32, ptr %10, align 4 %57 = add nsw i32 %56, 1 store i32 %57, ptr %10, align 4 %58 = load i32, ptr %10, align 4 %59 = load i32, ptr %4, align 4 %60 = icmp slt i32 %58, %59 br i1 %60, label %49, label %._crit_edge, !llvm.loop !6 ._crit_edge: ; preds = %55 br label %61 61: ; preds = %._crit_edge, %41 %62 = load i32, ptr %7, align 4 %63 = load i32, ptr %5, align 4 %64 = call i32 @celcon_number_of_points_in_cell(i32 noundef %62, i32 noundef %63, ptr noundef %25) store i32 %64, ptr %8, align 4 %65 = call i32 (ptr, ...) @printf(ptr noundef @.str.5) store i32 0, ptr %10, align 4 %66 = load i32, ptr %10, align 4 %67 = load i32, ptr %5, align 4 %68 = icmp slt i32 %66, %67 br i1 %68, label %.lr.ph2, label %81 .lr.ph2: ; preds = %61 br label %69 69: ; preds = %.lr.ph2, %75 %70 = load i32, ptr %10, align 4 %71 = sext i32 %70 to i64 %72 = getelementptr inbounds i32, ptr %25, i64 %71 %73 = load i32, ptr %72, align 4 %74 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %73) br label %75 75: ; preds = %69 %76 = load i32, ptr %10, align 4 %77 = add nsw i32 %76, 1 store i32 %77, ptr %10, align 4 %78 = load i32, ptr %10, align 4 %79 = load i32, ptr %5, align 4 %80 = icmp slt i32 %78, %79 br i1 %80, label %69, label %._crit_edge3, !llvm.loop !8 ._crit_edge3: ; preds = %75 br label %81 81: ; preds = %._crit_edge3, %61 %82 = call i32 (ptr, ...) @printf(ptr noundef @.str.7) %83 = call i32 (ptr, ...) @printf(ptr noundef @.str.8) store i32 0, ptr %10, align 4 %84 = load i32, ptr %10, align 4 %85 = load i32, ptr %5, align 4 %86 = icmp slt i32 %84, %85 br i1 %86, label %.lr.ph11, label %143 .lr.ph11: ; preds = %81 br label %87 87: ; preds = %.lr.ph11, %137 store i32 0, ptr %11, align 4 %88 = load i32, ptr %11, align 4 %89 = load i32, ptr %10, align 4 %90 = sext i32 %89 to i64 %91 = getelementptr inbounds i32, ptr %25, i64 %90 %92 = load i32, ptr %91, align 4 %93 = icmp slt i32 %88, %92 br i1 %93, label %.lr.ph8, label %136 .lr.ph8: ; preds = %87 br label %94 94: ; preds = %.lr.ph8, %127 %95 = load i32, ptr %4, align 4 %96 = load i32, ptr %7, align 4 %97 = load i32, ptr %10, align 4 %98 = add nsw i32 %97, 1 %99 = load i32, ptr %11, align 4 %100 = add nsw i32 %99, 1 %101 = call i32 @celcon_get_point_in_cell(i32 noundef %95, i32 noundef %96, i32 noundef %98, i32 noundef %100, ptr noundef %31) store i32 %101, ptr %8, align 4 store i32 0, ptr %15, align 4 %102 = load i32, ptr %15, align 4 %103 = load i32, ptr %4, align 4 %104 = sub nsw i32 %103, 1 %105 = icmp slt i32 %102, %104 br i1 %105, label %.lr.ph5, label %120 .lr.ph5: ; preds = %94 br label %106 106: ; preds = %.lr.ph5, %113 %107 = load i32, ptr %15, align 4 %108 = sext i32 %107 to i64 %109 = getelementptr inbounds double, ptr %31, i64 %108 %110 = load double, ptr %109, align 8 %111 = fptosi double %110 to i32 %112 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %111) br label %113 113: ; preds = %106 %114 = load i32, ptr %15, align 4 %115 = add nsw i32 %114, 1 store i32 %115, ptr %15, align 4 %116 = load i32, ptr %15, align 4 %117 = load i32, ptr %4, align 4 %118 = sub nsw i32 %117, 1 %119 = icmp slt i32 %116, %118 br i1 %119, label %106, label %._crit_edge6, !llvm.loop !9 ._crit_edge6: ; preds = %113 br label %120 120: ; preds = %._crit_edge6, %94 %121 = load i32, ptr %4, align 4 %122 = sub nsw i32 %121, 1 %123 = sext i32 %122 to i64 %124 = getelementptr inbounds double, ptr %31, i64 %123 %125 = load double, ptr %124, align 8 %126 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %125) br label %127 127: ; preds = %120 %128 = load i32, ptr %11, align 4 %129 = add nsw i32 %128, 1 store i32 %129, ptr %11, align 4 %130 = load i32, ptr %11, align 4 %131 = load i32, ptr %10, align 4 %132 = sext i32 %131 to i64 %133 = getelementptr inbounds i32, ptr %25, i64 %132 %134 = load i32, ptr %133, align 4 %135 = icmp slt i32 %130, %134 br i1 %135, label %94, label %._crit_edge9, !llvm.loop !10 ._crit_edge9: ; preds = %127 br label %136 136: ; preds = %._crit_edge9, %87 br label %137 137: ; preds = %136 %138 = load i32, ptr %10, align 4 %139 = add nsw i32 %138, 1 store i32 %139, ptr %10, align 4 %140 = load i32, ptr %10, align 4 %141 = load i32, ptr %5, align 4 %142 = icmp slt i32 %140, %141 br i1 %142, label %87, label %._crit_edge12, !llvm.loop !11 ._crit_edge12: ; preds = %137 br label %143 143: ; preds = %._crit_edge12, %81 %144 = load i32, ptr %7, align 4 %145 = call i32 @celcon_mixed_volume(i32 noundef %144, ptr noundef %12) store i32 %145, ptr %8, align 4 %146 = load i32, ptr %12, align 4 %147 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %146) %148 = load i32, ptr %5, align 4 %149 = add nsw i32 1, %148 %150 = load i32, ptr %4, align 4 %151 = mul nsw i32 2, %150 %152 = add nsw i32 %149, %151 %153 = zext i32 %152 to i64 %154 = call ptr @llvm.stacksave() store ptr %154, ptr %19, align 8 %155 = alloca i32, i64 %153, align 16 store i64 %153, ptr %20, align 8 %156 = load i32, ptr %4, align 4 %157 = zext i32 %156 to i64 %158 = alloca double, i64 %157, align 16 store i64 %157, ptr %21, align 8 %159 = load i32, ptr %4, align 4 %160 = load i32, ptr %5, align 4 %161 = load i32, ptr %7, align 4 %162 = call i32 @celcon_retrieve_mixed_cell(i32 noundef %159, i32 noundef %160, i32 noundef %161, ptr noundef %155, ptr noundef %158) store i32 %162, ptr %8, align 4 %163 = load i32, ptr %7, align 4 %164 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %163) store i32 0, ptr %10, align 4 %165 = load i32, ptr %10, align 4 %166 = load i32, ptr %4, align 4 %167 = icmp slt i32 %165, %166 br i1 %167, label %.lr.ph14, label %180 .lr.ph14: ; preds = %143 br label %168 168: ; preds = %.lr.ph14, %174 %169 = load i32, ptr %10, align 4 %170 = sext i32 %169 to i64 %171 = getelementptr inbounds double, ptr %158, i64 %170 %172 = load double, ptr %171, align 8 %173 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %172) br label %174 174: ; preds = %168 %175 = load i32, ptr %10, align 4 %176 = add nsw i32 %175, 1 store i32 %176, ptr %10, align 4 %177 = load i32, ptr %10, align 4 %178 = load i32, ptr %4, align 4 %179 = icmp slt i32 %177, %178 br i1 %179, label %168, label %._crit_edge15, !llvm.loop !12 ._crit_edge15: ; preds = %174 br label %180 180: ; preds = %._crit_edge15, %143 %181 = getelementptr inbounds i32, ptr %155, i64 0 %182 = load i32, ptr %181, align 16 %183 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %182) %184 = call i32 (ptr, ...) @printf(ptr noundef @.str.13) store i32 1, ptr %10, align 4 %185 = load i32, ptr %10, align 4 %186 = load i32, ptr %5, align 4 %187 = icmp sle i32 %185, %186 br i1 %187, label %.lr.ph17, label %200 .lr.ph17: ; preds = %180 br label %188 188: ; preds = %.lr.ph17, %194 %189 = load i32, ptr %10, align 4 %190 = sext i32 %189 to i64 %191 = getelementptr inbounds i32, ptr %155, i64 %190 %192 = load i32, ptr %191, align 4 %193 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %192) br label %194 194: ; preds = %188 %195 = load i32, ptr %10, align 4 %196 = add nsw i32 %195, 1 store i32 %196, ptr %10, align 4 %197 = load i32, ptr %10, align 4 %198 = load i32, ptr %5, align 4 %199 = icmp sle i32 %197, %198 br i1 %199, label %188, label %._crit_edge18, !llvm.loop !13 ._crit_edge18: ; preds = %194 br label %200 200: ; preds = %._crit_edge18, %180 %201 = call i32 (ptr, ...) @printf(ptr noundef @.str.7) %202 = call i32 (ptr, ...) @printf(ptr noundef @.str.14) %203 = load i32, ptr %5, align 4 store i32 %203, ptr %15, align 4 store i32 1, ptr %10, align 4 %204 = load i32, ptr %10, align 4 %205 = load i32, ptr %5, align 4 %206 = icmp sle i32 %204, %205 br i1 %206, label %.lr.ph23, label %238 .lr.ph23: ; preds = %200 br label %207 207: ; preds = %.lr.ph23, %232 store i32 0, ptr %11, align 4 %208 = load i32, ptr %11, align 4 %209 = load i32, ptr %10, align 4 %210 = sext i32 %209 to i64 %211 = getelementptr inbounds i32, ptr %155, i64 %210 %212 = load i32, ptr %211, align 4 %213 = icmp slt i32 %208, %212 br i1 %213, label %.lr.ph20, label %230 .lr.ph20: ; preds = %207 br label %214 214: ; preds = %.lr.ph20, %221 %215 = load i32, ptr %15, align 4 %216 = add nsw i32 %215, 1 store i32 %216, ptr %15, align 4 %217 = sext i32 %216 to i64 %218 = getelementptr inbounds i32, ptr %155, i64 %217 %219 = load i32, ptr %218, align 4 %220 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %219) br label %221 221: ; preds = %214 %222 = load i32, ptr %11, align 4 %223 = add nsw i32 %222, 1 store i32 %223, ptr %11, align 4 %224 = load i32, ptr %11, align 4 %225 = load i32, ptr %10, align 4 %226 = sext i32 %225 to i64 %227 = getelementptr inbounds i32, ptr %155, i64 %226 %228 = load i32, ptr %227, align 4 %229 = icmp slt i32 %224, %228 br i1 %229, label %214, label %._crit_edge21, !llvm.loop !14 ._crit_edge21: ; preds = %221 br label %230 230: ; preds = %._crit_edge21, %207 %231 = call i32 (ptr, ...) @printf(ptr noundef @.str.15) br label %232 232: ; preds = %230 %233 = load i32, ptr %10, align 4 %234 = add nsw i32 %233, 1 store i32 %234, ptr %10, align 4 %235 = load i32, ptr %10, align 4 %236 = load i32, ptr %5, align 4 %237 = icmp sle i32 %235, %236 br i1 %237, label %207, label %._crit_edge24, !llvm.loop !15 ._crit_edge24: ; preds = %232 br label %238 238: ; preds = %._crit_edge24, %200 %239 = call i32 (ptr, ...) @printf(ptr noundef @.str.7) %240 = load ptr, ptr %19, align 8 call void @llvm.stackrestore(ptr %240) br label %241 241: ; preds = %238, %39 %242 = load i32, ptr %8, align 4 %243 = load ptr, ptr %13, align 8 call void @llvm.stackrestore(ptr %243) ret i32 %242 } ; Function Attrs: nocallback nofree nosync nounwind willreturn declare ptr @llvm.stacksave() #1 declare i32 @printf(ptr noundef, ...) #2 declare i32 @scanf(ptr noundef, ptr noundef) #2 declare i32 @celcon_get_inner_normal(i32 noundef, i32 noundef, ptr noundef) #2 declare i32 @celcon_number_of_points_in_cell(i32 noundef, i32 noundef, ptr noundef) #2 declare i32 @celcon_get_point_in_cell(i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #2 declare i32 @celcon_mixed_volume(i32 noundef, ptr noundef) #2 declare i32 @celcon_retrieve_mixed_cell(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #2 ; Function Attrs: nocallback nofree nosync nounwind willreturn declare void @llvm.stackrestore(ptr) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { nocallback nofree nosync nounwind willreturn } attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"} !8 = distinct !{!8, !7} !9 = distinct !{!9, !7} !10 = distinct !{!10, !7} !11 = distinct !{!11, !7} !12 = distinct !{!12, !7} !13 = distinct !{!13, !7} !14 = distinct !{!14, !7} !15 = distinct !{!15, !7}
; ModuleID = '/tmp/tmpryrb7fyt.c' source_filename = "/tmp/tmpryrb7fyt.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @__const.test_spiral_print_mat.elems = private unnamed_addr constant [12 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12], align 16 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @test_spiral_print_mat() #0 { %1 = alloca i32, align 4 %2 = alloca i32, align 4 %3 = alloca [12 x i32], align 16 %4 = alloca ptr, align 8 store i32 3, ptr %1, align 4 store i32 4, ptr %2, align 4 call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.test_spiral_print_mat.elems, i64 48, i1 false) %5 = getelementptr inbounds [12 x i32], ptr %3, i64 0, i64 0 %6 = load i32, ptr %1, align 4 %7 = load i32, ptr %2, align 4 %8 = call ptr @buildMat(ptr noundef %5, i32 noundef %6, i32 noundef %7) store ptr %8, ptr %4, align 8 %9 = load ptr, ptr %4, align 8 %10 = load i32, ptr %1, align 4 %11 = load i32, ptr %2, align 4 %12 = call i32 @spiral_print_mat(ptr noundef %9, i32 noundef %10, i32 noundef %11) %13 = load ptr, ptr %4, align 8 %14 = load i32, ptr %1, align 4 %15 = call i32 @deleteMat(ptr noundef %13, i32 noundef %14) 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 @buildMat(ptr noundef, i32 noundef, i32 noundef) #2 declare i32 @spiral_print_mat(ptr noundef, i32 noundef, i32 noundef) #2 declare i32 @deleteMat(ptr noundef, i32 noundef) #2 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpryrb7fyt.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @__const.test_spiral_print_mat.elems = private unnamed_addr constant [12 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12], align 16 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @test_spiral_print_mat() #0 { %1 = alloca i32, align 4 %2 = alloca i32, align 4 %3 = alloca [12 x i32], align 16 %4 = alloca ptr, align 8 store i32 3, ptr %1, align 4 store i32 4, ptr %2, align 4 call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.test_spiral_print_mat.elems, i64 48, i1 false) %5 = getelementptr inbounds [12 x i32], ptr %3, i64 0, i64 0 %6 = load i32, ptr %1, align 4 %7 = load i32, ptr %2, align 4 %8 = call ptr @buildMat(ptr noundef %5, i32 noundef %6, i32 noundef %7) store ptr %8, ptr %4, align 8 %9 = load ptr, ptr %4, align 8 %10 = load i32, ptr %1, align 4 %11 = load i32, ptr %2, align 4 %12 = call i32 @spiral_print_mat(ptr noundef %9, i32 noundef %10, i32 noundef %11) %13 = load ptr, ptr %4, align 8 %14 = load i32, ptr %1, align 4 %15 = call i32 @deleteMat(ptr noundef %13, i32 noundef %14) 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 @buildMat(ptr noundef, i32 noundef, i32 noundef) #2 declare i32 @spiral_print_mat(ptr noundef, i32 noundef, i32 noundef) #2 declare i32 @deleteMat(ptr noundef, i32 noundef) #2 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmpnx99q9o2.c' source_filename = "/tmp/tmpnx99q9o2.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"no\0A\00", align 1 @.str.2 = private unnamed_addr constant [5 x i8] c"yes\0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @test() #0 { %1 = alloca i32, align 4 %2 = alloca i32, align 4 %3 = alloca ptr, align 8 %4 = alloca i32, align 4 %5 = alloca i32, align 4 %6 = alloca i32, align 4 %7 = alloca i32, align 4 %8 = call i32 @scanf(ptr noundef @.str, ptr noundef %1) %9 = load i32, ptr %1, align 4 %10 = sext i32 %9 to i64 %11 = mul i64 %10, 4 %12 = trunc i64 %11 to i32 %13 = call i64 @malloc(i32 noundef %12) %14 = inttoptr i64 %13 to ptr store ptr %14, ptr %3, align 8 store i32 0, ptr %2, align 4 br label %15 15: ; preds = %25, %0 %16 = load i32, ptr %2, align 4 %17 = load i32, ptr %1, align 4 %18 = icmp slt i32 %16, %17 br i1 %18, label %19, label %28 19: ; preds = %15 %20 = load ptr, ptr %3, align 8 %21 = load i32, ptr %2, align 4 %22 = sext i32 %21 to i64 %23 = getelementptr inbounds i32, ptr %20, i64 %22 %24 = call i32 @scanf(ptr noundef @.str, ptr noundef %23) br label %25 25: ; preds = %19 %26 = load i32, ptr %2, align 4 %27 = add nsw i32 %26, 1 store i32 %27, ptr %2, align 4 br label %15, !llvm.loop !6 28: ; preds = %15 store i32 0, ptr %4, align 4 store i32 0, ptr %5, align 4 store i32 0, ptr %6, align 4 store i32 0, ptr %7, align 4 store i32 0, ptr %2, align 4 br label %29 29: ; preds = %69, %28 %30 = load i32, ptr %2, align 4 %31 = load i32, ptr %1, align 4 %32 = icmp slt i32 %30, %31 br i1 %32, label %33, label %72 33: ; preds = %29 %34 = load ptr, ptr %3, align 8 %35 = load i32, ptr %2, align 4 %36 = sext i32 %35 to i64 %37 = getelementptr inbounds i32, ptr %34, i64 %36 %38 = load i32, ptr %37, align 4 %39 = icmp eq i32 %38, -1 br i1 %39, label %40, label %43 40: ; preds = %33 %41 = load i32, ptr %4, align 4 %42 = add nsw i32 %41, 1 store i32 %42, ptr %4, align 4 br label %68 43: ; preds = %33 %44 = load ptr, ptr %3, align 8 %45 = load i32, ptr %2, align 4 %46 = sext i32 %45 to i64 %47 = getelementptr inbounds i32, ptr %44, i64 %46 %48 = load i32, ptr %47, align 4 %49 = icmp eq i32 %48, 1 br i1 %49, label %50, label %53 50: ; preds = %43 %51 = load i32, ptr %6, align 4 %52 = add nsw i32 %51, 1 store i32 %52, ptr %6, align 4 br label %67 53: ; preds = %43 %54 = load ptr, ptr %3, align 8 %55 = load i32, ptr %2, align 4 %56 = sext i32 %55 to i64 %57 = getelementptr inbounds i32, ptr %54, i64 %56 %58 = load i32, ptr %57, align 4 %59 = icmp eq i32 %58, 0 br i1 %59, label %60, label %63 60: ; preds = %53 %61 = load i32, ptr %7, align 4 %62 = add nsw i32 %61, 1 store i32 %62, ptr %7, align 4 br label %66 63: ; preds = %53 %64 = load i32, ptr %5, align 4 %65 = add nsw i32 %64, 1 store i32 %65, ptr %5, align 4 br label %66 66: ; preds = %63, %60 br label %67 67: ; preds = %66, %50 br label %68 68: ; preds = %67, %40 br label %69 69: ; preds = %68 %70 = load i32, ptr %2, align 4 %71 = add nsw i32 %70, 1 store i32 %71, ptr %2, align 4 br label %29, !llvm.loop !8 72: ; preds = %29 %73 = load i32, ptr %5, align 4 %74 = icmp sgt i32 %73, 1 br i1 %74, label %87, label %75 75: ; preds = %72 %76 = load i32, ptr %4, align 4 %77 = icmp sgt i32 %76, 1 br i1 %77, label %78, label %81 78: ; preds = %75 %79 = load i32, ptr %6, align 4 %80 = icmp eq i32 %79, 0 br i1 %80, label %87, label %81 81: ; preds = %78, %75 %82 = load i32, ptr %5, align 4 %83 = icmp eq i32 %82, 1 br i1 %83, label %84, label %89 84: ; preds = %81 %85 = load i32, ptr %4, align 4 %86 = icmp sgt i32 %85, 0 br i1 %86, label %87, label %89 87: ; preds = %84, %78, %72 %88 = call i32 @printf(ptr noundef @.str.1) br label %91 89: ; preds = %84, %81 %90 = call i32 @printf(ptr noundef @.str.2) br label %91 91: ; preds = %89, %87 ret void } declare i32 @scanf(ptr noundef, ptr noundef) #1 declare i64 @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"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"} !8 = distinct !{!8, !7}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpnx99q9o2.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"no\0A\00", align 1 @.str.2 = private unnamed_addr constant [5 x i8] c"yes\0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @test() #0 { %1 = alloca i32, align 4 %2 = alloca i32, align 4 %3 = alloca ptr, align 8 %4 = alloca i32, align 4 %5 = alloca i32, align 4 %6 = alloca i32, align 4 %7 = alloca i32, align 4 %8 = call i32 @scanf(ptr noundef @.str, ptr noundef %1) %9 = load i32, ptr %1, align 4 %10 = sext i32 %9 to i64 %11 = mul i64 %10, 4 %12 = trunc i64 %11 to i32 %13 = call i64 @malloc(i32 noundef %12) %14 = inttoptr i64 %13 to ptr store ptr %14, ptr %3, align 8 store i32 0, ptr %2, align 4 %15 = load i32, ptr %2, align 4 %16 = load i32, ptr %1, align 4 %17 = icmp slt i32 %15, %16 br i1 %17, label %.lr.ph, label %30 .lr.ph: ; preds = %0 br label %18 18: ; preds = %.lr.ph, %24 %19 = load ptr, ptr %3, align 8 %20 = load i32, ptr %2, align 4 %21 = sext i32 %20 to i64 %22 = getelementptr inbounds i32, ptr %19, i64 %21 %23 = call i32 @scanf(ptr noundef @.str, ptr noundef %22) br label %24 24: ; preds = %18 %25 = load i32, ptr %2, align 4 %26 = add nsw i32 %25, 1 store i32 %26, ptr %2, align 4 %27 = load i32, ptr %2, align 4 %28 = load i32, ptr %1, align 4 %29 = icmp slt i32 %27, %28 br i1 %29, label %18, label %._crit_edge, !llvm.loop !6 ._crit_edge: ; preds = %24 br label %30 30: ; preds = %._crit_edge, %0 store i32 0, ptr %4, align 4 store i32 0, ptr %5, align 4 store i32 0, ptr %6, align 4 store i32 0, ptr %7, align 4 store i32 0, ptr %2, align 4 %31 = load i32, ptr %2, align 4 %32 = load i32, ptr %1, align 4 %33 = icmp slt i32 %31, %32 br i1 %33, label %.lr.ph2, label %76 .lr.ph2: ; preds = %30 br label %34 34: ; preds = %.lr.ph2, %70 %35 = load ptr, ptr %3, align 8 %36 = load i32, ptr %2, align 4 %37 = sext i32 %36 to i64 %38 = getelementptr inbounds i32, ptr %35, i64 %37 %39 = load i32, ptr %38, align 4 %40 = icmp eq i32 %39, -1 br i1 %40, label %41, label %44 41: ; preds = %34 %42 = load i32, ptr %4, align 4 %43 = add nsw i32 %42, 1 store i32 %43, ptr %4, align 4 br label %69 44: ; preds = %34 %45 = load ptr, ptr %3, align 8 %46 = load i32, ptr %2, align 4 %47 = sext i32 %46 to i64 %48 = getelementptr inbounds i32, ptr %45, i64 %47 %49 = load i32, ptr %48, align 4 %50 = icmp eq i32 %49, 1 br i1 %50, label %51, label %54 51: ; preds = %44 %52 = load i32, ptr %6, align 4 %53 = add nsw i32 %52, 1 store i32 %53, ptr %6, align 4 br label %68 54: ; preds = %44 %55 = load ptr, ptr %3, align 8 %56 = load i32, ptr %2, align 4 %57 = sext i32 %56 to i64 %58 = getelementptr inbounds i32, ptr %55, i64 %57 %59 = load i32, ptr %58, align 4 %60 = icmp eq i32 %59, 0 br i1 %60, label %61, label %64 61: ; preds = %54 %62 = load i32, ptr %7, align 4 %63 = add nsw i32 %62, 1 store i32 %63, ptr %7, align 4 br label %67 64: ; preds = %54 %65 = load i32, ptr %5, align 4 %66 = add nsw i32 %65, 1 store i32 %66, ptr %5, align 4 br label %67 67: ; preds = %64, %61 br label %68 68: ; preds = %67, %51 br label %69 69: ; preds = %68, %41 br label %70 70: ; preds = %69 %71 = load i32, ptr %2, align 4 %72 = add nsw i32 %71, 1 store i32 %72, ptr %2, align 4 %73 = load i32, ptr %2, align 4 %74 = load i32, ptr %1, align 4 %75 = icmp slt i32 %73, %74 br i1 %75, label %34, label %._crit_edge3, !llvm.loop !8 ._crit_edge3: ; preds = %70 br label %76 76: ; preds = %._crit_edge3, %30 %77 = load i32, ptr %5, align 4 %78 = icmp sgt i32 %77, 1 br i1 %78, label %91, label %79 79: ; preds = %76 %80 = load i32, ptr %4, align 4 %81 = icmp sgt i32 %80, 1 br i1 %81, label %82, label %85 82: ; preds = %79 %83 = load i32, ptr %6, align 4 %84 = icmp eq i32 %83, 0 br i1 %84, label %91, label %85 85: ; preds = %82, %79 %86 = load i32, ptr %5, align 4 %87 = icmp eq i32 %86, 1 br i1 %87, label %88, label %93 88: ; preds = %85 %89 = load i32, ptr %4, align 4 %90 = icmp sgt i32 %89, 0 br i1 %90, label %91, label %93 91: ; preds = %88, %82, %76 %92 = call i32 @printf(ptr noundef @.str.1) br label %95 93: ; preds = %88, %85 %94 = call i32 @printf(ptr noundef @.str.2) br label %95 95: ; preds = %93, %91 ret void } declare i32 @scanf(ptr noundef, ptr noundef) #1 declare i64 @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"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"} !8 = distinct !{!8, !7}
; ModuleID = '/tmp/tmp_nahr97u.c' source_filename = "/tmp/tmp_nahr97u.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [32 x i8] c"a = %i, b = %i, c = %i, d = %i\0A\00", align 1 @.str.1 = private unnamed_addr constant [13 x i8] c"a %% b = %i\0A\00", align 1 @.str.2 = private unnamed_addr constant [13 x i8] c"a %% c = %i\0A\00", align 1 @.str.3 = private unnamed_addr constant [13 x i8] c"a %% d = %i\0A\00", align 1 @.str.4 = private unnamed_addr constant [25 x i8] c"a / d * d + a %% d = %i\0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @main() #0 { %1 = alloca i32, align 4 %2 = alloca i32, align 4 %3 = alloca i32, align 4 %4 = alloca i32, align 4 %5 = alloca i32, align 4 store i32 0, ptr %1, align 4 store i32 25, ptr %2, align 4 store i32 5, ptr %3, align 4 store i32 10, ptr %4, align 4 store i32 7, ptr %5, align 4 %6 = load i32, ptr %2, align 4 %7 = load i32, ptr %3, align 4 %8 = load i32, ptr %4, align 4 %9 = load i32, ptr %5, align 4 %10 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9) %11 = load i32, ptr %2, align 4 %12 = load i32, ptr %3, align 4 %13 = srem i32 %11, %12 %14 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %13) %15 = load i32, ptr %2, align 4 %16 = load i32, ptr %4, align 4 %17 = srem i32 %15, %16 %18 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %17) %19 = load i32, ptr %2, align 4 %20 = load i32, ptr %5, align 4 %21 = srem i32 %19, %20 %22 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.3, i32 noundef %21) %23 = load i32, ptr %2, align 4 %24 = load i32, ptr %5, align 4 %25 = sdiv i32 %23, %24 %26 = load i32, ptr %5, align 4 %27 = mul nsw i32 %25, %26 %28 = load i32, ptr %2, align 4 %29 = load i32, ptr %5, align 4 %30 = srem i32 %28, %29 %31 = add nsw i32 %27, %30 %32 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.4, i32 noundef %31) ret i32 0 } declare i32 @printf(ptr noundef, i32 noundef, ...) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmp_nahr97u.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [32 x i8] c"a = %i, b = %i, c = %i, d = %i\0A\00", align 1 @.str.1 = private unnamed_addr constant [13 x i8] c"a %% b = %i\0A\00", align 1 @.str.2 = private unnamed_addr constant [13 x i8] c"a %% c = %i\0A\00", align 1 @.str.3 = private unnamed_addr constant [13 x i8] c"a %% d = %i\0A\00", align 1 @.str.4 = private unnamed_addr constant [25 x i8] c"a / d * d + a %% d = %i\0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @main() #0 { %1 = alloca i32, align 4 %2 = alloca i32, align 4 %3 = alloca i32, align 4 %4 = alloca i32, align 4 %5 = alloca i32, align 4 store i32 0, ptr %1, align 4 store i32 25, ptr %2, align 4 store i32 5, ptr %3, align 4 store i32 10, ptr %4, align 4 store i32 7, ptr %5, align 4 %6 = load i32, ptr %2, align 4 %7 = load i32, ptr %3, align 4 %8 = load i32, ptr %4, align 4 %9 = load i32, ptr %5, align 4 %10 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9) %11 = load i32, ptr %2, align 4 %12 = load i32, ptr %3, align 4 %13 = srem i32 %11, %12 %14 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %13) %15 = load i32, ptr %2, align 4 %16 = load i32, ptr %4, align 4 %17 = srem i32 %15, %16 %18 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %17) %19 = load i32, ptr %2, align 4 %20 = load i32, ptr %5, align 4 %21 = srem i32 %19, %20 %22 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.3, i32 noundef %21) %23 = load i32, ptr %2, align 4 %24 = load i32, ptr %5, align 4 %25 = sdiv i32 %23, %24 %26 = load i32, ptr %5, align 4 %27 = mul nsw i32 %25, %26 %28 = load i32, ptr %2, align 4 %29 = load i32, ptr %5, align 4 %30 = srem i32 %28, %29 %31 = add nsw i32 %27, %30 %32 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.4, i32 noundef %31) ret i32 0 } declare i32 @printf(ptr noundef, i32 noundef, ...) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmp_2jsosg9.c' source_filename = "/tmp/tmp_2jsosg9.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @data_split_cmd(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 { %5 = alloca ptr, align 8 %6 = alloca ptr, align 8 %7 = alloca ptr, align 8 %8 = alloca ptr, align 8 %9 = alloca ptr, align 8 store ptr %0, ptr %5, align 8 store ptr %1, ptr %6, align 8 store ptr %2, ptr %7, align 8 store ptr %3, ptr %8, align 8 %10 = load ptr, ptr %5, align 8 %11 = load ptr, ptr %6, align 8 store ptr %10, ptr %11, align 8 br label %12 12: ; preds = %18, %4 %13 = load ptr, ptr %6, align 8 %14 = load ptr, ptr %13, align 8 %15 = load i8, ptr %14, align 1 %16 = sext i8 %15 to i32 %17 = icmp eq i32 %16, 32 br i1 %17, label %18, label %22 18: ; preds = %12 %19 = load ptr, ptr %6, align 8 %20 = load ptr, ptr %19, align 8 %21 = getelementptr inbounds i8, ptr %20, i32 1 store ptr %21, ptr %19, align 8 br label %12, !llvm.loop !6 22: ; preds = %12 %23 = load ptr, ptr %6, align 8 %24 = load ptr, ptr %23, align 8 %25 = call ptr @nextspace(ptr noundef %24) %26 = load ptr, ptr %7, align 8 store ptr %25, ptr %26, align 8 %27 = load ptr, ptr %7, align 8 %28 = load ptr, ptr %27, align 8 %29 = load i8, ptr %28, align 1 %30 = icmp ne i8 %29, 0 br i1 %30, label %31, label %45 31: ; preds = %22 %32 = load ptr, ptr %7, align 8 %33 = load ptr, ptr %32, align 8 store i8 0, ptr %33, align 1 br label %34 34: ; preds = %38, %31 %35 = load ptr, ptr %7, align 8 %36 = load ptr, ptr %35, align 8 %37 = getelementptr inbounds i8, ptr %36, i32 1 store ptr %37, ptr %35, align 8 br label %38 38: ; preds = %34 %39 = load ptr, ptr %7, align 8 %40 = load ptr, ptr %39, align 8 %41 = load i8, ptr %40, align 1 %42 = sext i8 %41 to i32 %43 = icmp eq i32 %42, 32 br i1 %43, label %34, label %44, !llvm.loop !8 44: ; preds = %38 br label %45 45: ; preds = %44, %22 %46 = load ptr, ptr %7, align 8 %47 = load ptr, ptr %46, align 8 %48 = load i8, ptr %47, align 1 %49 = icmp ne i8 %48, 0 br i1 %49, label %50, label %90 50: ; preds = %45 %51 = load ptr, ptr %7, align 8 %52 = load ptr, ptr %51, align 8 %53 = call ptr @nextspace(ptr noundef %52) %54 = load ptr, ptr %8, align 8 store ptr %53, ptr %54, align 8 %55 = load i8, ptr %53, align 1 %56 = icmp ne i8 %55, 0 br i1 %56, label %57, label %89 57: ; preds = %50 %58 = load ptr, ptr %8, align 8 %59 = load ptr, ptr %58, align 8 store i8 0, ptr %59, align 1 br label %60 60: ; preds = %64, %57 %61 = load ptr, ptr %8, align 8 %62 = load ptr, ptr %61, align 8 %63 = getelementptr inbounds i8, ptr %62, i32 1 store ptr %63, ptr %61, align 8 br label %64 64: ; preds = %60 %65 = load ptr, ptr %8, align 8 %66 = load ptr, ptr %65, align 8 %67 = load i8, ptr %66, align 1 %68 = sext i8 %67 to i32 %69 = icmp eq i32 %68, 32 br i1 %69, label %60, label %70, !llvm.loop !9 70: ; preds = %64 %71 = load ptr, ptr %8, align 8 %72 = load ptr, ptr %71, align 8 %73 = load ptr, ptr %8, align 8 %74 = load ptr, ptr %73, align 8 %75 = call i32 @strlen(ptr noundef %74) %76 = sext i32 %75 to i64 %77 = getelementptr inbounds i8, ptr %72, i64 %76 store ptr %77, ptr %9, align 8 br label %78 78: ; preds = %81, %70 %79 = load ptr, ptr %9, align 8 %80 = getelementptr inbounds i8, ptr %79, i32 -1 store ptr %80, ptr %9, align 8 br label %81 81: ; preds = %78 %82 = load ptr, ptr %9, align 8 %83 = load i8, ptr %82, align 1 %84 = sext i8 %83 to i32 %85 = icmp eq i32 %84, 32 br i1 %85, label %78, label %86, !llvm.loop !10 86: ; preds = %81 %87 = load ptr, ptr %9, align 8 %88 = getelementptr inbounds i8, ptr %87, i64 1 store i8 0, ptr %88, align 1 br label %89 89: ; preds = %86, %50 br label %94 90: ; preds = %45 %91 = load ptr, ptr %7, align 8 %92 = load ptr, ptr %91, align 8 %93 = load ptr, ptr %8, align 8 store ptr %92, ptr %93, align 8 br label %94 94: ; preds = %90, %89 ret void } declare ptr @nextspace(ptr noundef) #1 declare i32 @strlen(ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"} !8 = distinct !{!8, !7} !9 = distinct !{!9, !7} !10 = distinct !{!10, !7}
; ModuleID = '<stdin>' source_filename = "/tmp/tmp_2jsosg9.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @data_split_cmd(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 { %5 = alloca ptr, align 8 %6 = alloca ptr, align 8 %7 = alloca ptr, align 8 %8 = alloca ptr, align 8 %9 = alloca ptr, align 8 store ptr %0, ptr %5, align 8 store ptr %1, ptr %6, align 8 store ptr %2, ptr %7, align 8 store ptr %3, ptr %8, align 8 %10 = load ptr, ptr %5, align 8 %11 = load ptr, ptr %6, align 8 store ptr %10, ptr %11, align 8 %12 = load ptr, ptr %6, align 8 %13 = load ptr, ptr %12, align 8 %14 = load i8, ptr %13, align 1 %15 = sext i8 %14 to i32 %16 = icmp eq i32 %15, 32 br i1 %16, label %.lr.ph, label %26 .lr.ph: ; preds = %4 br label %17 17: ; preds = %.lr.ph, %17 %18 = load ptr, ptr %6, align 8 %19 = load ptr, ptr %18, align 8 %20 = getelementptr inbounds i8, ptr %19, i32 1 store ptr %20, ptr %18, align 8 %21 = load ptr, ptr %6, align 8 %22 = load ptr, ptr %21, align 8 %23 = load i8, ptr %22, align 1 %24 = sext i8 %23 to i32 %25 = icmp eq i32 %24, 32 br i1 %25, label %17, label %._crit_edge, !llvm.loop !6 ._crit_edge: ; preds = %17 br label %26 26: ; preds = %._crit_edge, %4 %27 = load ptr, ptr %6, align 8 %28 = load ptr, ptr %27, align 8 %29 = call ptr @nextspace(ptr noundef %28) %30 = load ptr, ptr %7, align 8 store ptr %29, ptr %30, align 8 %31 = load ptr, ptr %7, align 8 %32 = load ptr, ptr %31, align 8 %33 = load i8, ptr %32, align 1 %34 = icmp ne i8 %33, 0 br i1 %34, label %35, label %49 35: ; preds = %26 %36 = load ptr, ptr %7, align 8 %37 = load ptr, ptr %36, align 8 store i8 0, ptr %37, align 1 br label %38 38: ; preds = %42, %35 %39 = load ptr, ptr %7, align 8 %40 = load ptr, ptr %39, align 8 %41 = getelementptr inbounds i8, ptr %40, i32 1 store ptr %41, ptr %39, align 8 br label %42 42: ; preds = %38 %43 = load ptr, ptr %7, align 8 %44 = load ptr, ptr %43, align 8 %45 = load i8, ptr %44, align 1 %46 = sext i8 %45 to i32 %47 = icmp eq i32 %46, 32 br i1 %47, label %38, label %48, !llvm.loop !8 48: ; preds = %42 br label %49 49: ; preds = %48, %26 %50 = load ptr, ptr %7, align 8 %51 = load ptr, ptr %50, align 8 %52 = load i8, ptr %51, align 1 %53 = icmp ne i8 %52, 0 br i1 %53, label %54, label %94 54: ; preds = %49 %55 = load ptr, ptr %7, align 8 %56 = load ptr, ptr %55, align 8 %57 = call ptr @nextspace(ptr noundef %56) %58 = load ptr, ptr %8, align 8 store ptr %57, ptr %58, align 8 %59 = load i8, ptr %57, align 1 %60 = icmp ne i8 %59, 0 br i1 %60, label %61, label %93 61: ; preds = %54 %62 = load ptr, ptr %8, align 8 %63 = load ptr, ptr %62, align 8 store i8 0, ptr %63, align 1 br label %64 64: ; preds = %68, %61 %65 = load ptr, ptr %8, align 8 %66 = load ptr, ptr %65, align 8 %67 = getelementptr inbounds i8, ptr %66, i32 1 store ptr %67, ptr %65, align 8 br label %68 68: ; preds = %64 %69 = load ptr, ptr %8, align 8 %70 = load ptr, ptr %69, align 8 %71 = load i8, ptr %70, align 1 %72 = sext i8 %71 to i32 %73 = icmp eq i32 %72, 32 br i1 %73, label %64, label %74, !llvm.loop !9 74: ; preds = %68 %75 = load ptr, ptr %8, align 8 %76 = load ptr, ptr %75, align 8 %77 = load ptr, ptr %8, align 8 %78 = load ptr, ptr %77, align 8 %79 = call i32 @strlen(ptr noundef %78) %80 = sext i32 %79 to i64 %81 = getelementptr inbounds i8, ptr %76, i64 %80 store ptr %81, ptr %9, align 8 br label %82 82: ; preds = %85, %74 %83 = load ptr, ptr %9, align 8 %84 = getelementptr inbounds i8, ptr %83, i32 -1 store ptr %84, ptr %9, align 8 br label %85 85: ; preds = %82 %86 = load ptr, ptr %9, align 8 %87 = load i8, ptr %86, align 1 %88 = sext i8 %87 to i32 %89 = icmp eq i32 %88, 32 br i1 %89, label %82, label %90, !llvm.loop !10 90: ; preds = %85 %91 = load ptr, ptr %9, align 8 %92 = getelementptr inbounds i8, ptr %91, i64 1 store i8 0, ptr %92, align 1 br label %93 93: ; preds = %90, %54 br label %98 94: ; preds = %49 %95 = load ptr, ptr %7, align 8 %96 = load ptr, ptr %95, align 8 %97 = load ptr, ptr %8, align 8 store ptr %96, ptr %97, align 8 br label %98 98: ; preds = %94, %93 ret void } declare ptr @nextspace(ptr noundef) #1 declare i32 @strlen(ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"} !8 = distinct !{!8, !7} !9 = distinct !{!9, !7} !10 = distinct !{!10, !7}
; ModuleID = '/tmp/tmpmfcjbmi0.c' source_filename = "/tmp/tmpmfcjbmi0.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Size of char: %zu byte\0A\00", align 1 @.str.1 = private unnamed_addr constant [26 x i8] c"Size of short: %zu bytes\0A\00", align 1 @.str.2 = private unnamed_addr constant [24 x i8] c"Size of int: %zu bytes\0A\00", align 1 @.str.3 = private unnamed_addr constant [27 x i8] c"Size of double: %zu bytes\0A\00", align 1 @.str.4 = private unnamed_addr constant [19 x i8] c"char using %%c %c\0A\00", align 1 @.str.5 = private unnamed_addr constant [19 x i8] c"char using %%d %d\0A\00", align 1 @.str.6 = private unnamed_addr constant [13 x i8] c"original %d\0A\00", align 1 @.str.7 = private unnamed_addr constant [16 x i8] c"original %.0lf\0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @main() #0 { %1 = alloca i32, align 4 %2 = alloca i8, align 1 %3 = alloca i16, align 2 %4 = alloca i32, align 4 %5 = alloca double, align 8 store i32 0, ptr %1, align 4 store i8 0, ptr %2, align 1 store i16 0, ptr %3, align 2 store i32 0, ptr %4, align 4 store double 0.000000e+00, ptr %5, align 8 %6 = call i32 @printf(ptr noundef @.str, double noundef 1.000000e+00) %7 = call i32 @printf(ptr noundef @.str.1, double noundef 2.000000e+00) %8 = call i32 @printf(ptr noundef @.str.2, double noundef 4.000000e+00) %9 = call i32 @printf(ptr noundef @.str.3, double noundef 8.000000e+00) store i8 65, ptr %2, align 1 %10 = load i8, ptr %2, align 1 %11 = sitofp i8 %10 to double %12 = call i32 @printf(ptr noundef @.str.4, double noundef %11) %13 = load i8, ptr %2, align 1 %14 = sitofp i8 %13 to double %15 = call i32 @printf(ptr noundef @.str.5, double noundef %14) %16 = load i8, ptr %2, align 1 %17 = sext i8 %16 to i16 store i16 %17, ptr %3, align 2 %18 = sext i16 %17 to i32 store i32 %18, ptr %4, align 4 %19 = sitofp i32 %18 to double store double %19, ptr %5, align 8 store i8 -42, ptr %2, align 1 %20 = load i8, ptr %2, align 1 %21 = sitofp i8 %20 to double %22 = call i32 @printf(ptr noundef @.str.5, double noundef %21) store i32 555222, ptr %4, align 4 %23 = load i32, ptr %4, align 4 %24 = trunc i32 %23 to i8 store i8 %24, ptr %2, align 1 store i8 55, ptr %2, align 1 store i16 5555, ptr %3, align 2 store i32 5555555, ptr %4, align 4 store double 0x41C08E8D71800000, ptr %5, align 8 %25 = load i8, ptr %2, align 1 %26 = sitofp i8 %25 to double %27 = call i32 @printf(ptr noundef @.str.6, double noundef %26) %28 = load i16, ptr %3, align 2 %29 = sitofp i16 %28 to double %30 = call i32 @printf(ptr noundef @.str.6, double noundef %29) %31 = load i32, ptr %4, align 4 %32 = sitofp i32 %31 to double %33 = call i32 @printf(ptr noundef @.str.6, double noundef %32) %34 = load double, ptr %5, align 8 %35 = call i32 @printf(ptr noundef @.str.7, double noundef %34) %36 = load i8, ptr %2, align 1 %37 = sitofp i8 %36 to double %38 = call i32 @my_function(double noundef %37) %39 = load i16, ptr %3, align 2 %40 = sitofp i16 %39 to double %41 = call i32 @my_function(double noundef %40) %42 = load i32, ptr %4, align 4 %43 = sitofp i32 %42 to double %44 = call i32 @my_function(double noundef %43) %45 = load double, ptr %5, align 8 %46 = call i32 @my_function(double noundef %45) ret i32 0 } declare i32 @printf(ptr noundef, double noundef) #1 declare i32 @my_function(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/tmpmfcjbmi0.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Size of char: %zu byte\0A\00", align 1 @.str.1 = private unnamed_addr constant [26 x i8] c"Size of short: %zu bytes\0A\00", align 1 @.str.2 = private unnamed_addr constant [24 x i8] c"Size of int: %zu bytes\0A\00", align 1 @.str.3 = private unnamed_addr constant [27 x i8] c"Size of double: %zu bytes\0A\00", align 1 @.str.4 = private unnamed_addr constant [19 x i8] c"char using %%c %c\0A\00", align 1 @.str.5 = private unnamed_addr constant [19 x i8] c"char using %%d %d\0A\00", align 1 @.str.6 = private unnamed_addr constant [13 x i8] c"original %d\0A\00", align 1 @.str.7 = private unnamed_addr constant [16 x i8] c"original %.0lf\0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @main() #0 { %1 = alloca i32, align 4 %2 = alloca i8, align 1 %3 = alloca i16, align 2 %4 = alloca i32, align 4 %5 = alloca double, align 8 store i32 0, ptr %1, align 4 store i8 0, ptr %2, align 1 store i16 0, ptr %3, align 2 store i32 0, ptr %4, align 4 store double 0.000000e+00, ptr %5, align 8 %6 = call i32 @printf(ptr noundef @.str, double noundef 1.000000e+00) %7 = call i32 @printf(ptr noundef @.str.1, double noundef 2.000000e+00) %8 = call i32 @printf(ptr noundef @.str.2, double noundef 4.000000e+00) %9 = call i32 @printf(ptr noundef @.str.3, double noundef 8.000000e+00) store i8 65, ptr %2, align 1 %10 = load i8, ptr %2, align 1 %11 = sitofp i8 %10 to double %12 = call i32 @printf(ptr noundef @.str.4, double noundef %11) %13 = load i8, ptr %2, align 1 %14 = sitofp i8 %13 to double %15 = call i32 @printf(ptr noundef @.str.5, double noundef %14) %16 = load i8, ptr %2, align 1 %17 = sext i8 %16 to i16 store i16 %17, ptr %3, align 2 %18 = sext i16 %17 to i32 store i32 %18, ptr %4, align 4 %19 = sitofp i32 %18 to double store double %19, ptr %5, align 8 store i8 -42, ptr %2, align 1 %20 = load i8, ptr %2, align 1 %21 = sitofp i8 %20 to double %22 = call i32 @printf(ptr noundef @.str.5, double noundef %21) store i32 555222, ptr %4, align 4 %23 = load i32, ptr %4, align 4 %24 = trunc i32 %23 to i8 store i8 %24, ptr %2, align 1 store i8 55, ptr %2, align 1 store i16 5555, ptr %3, align 2 store i32 5555555, ptr %4, align 4 store double 0x41C08E8D71800000, ptr %5, align 8 %25 = load i8, ptr %2, align 1 %26 = sitofp i8 %25 to double %27 = call i32 @printf(ptr noundef @.str.6, double noundef %26) %28 = load i16, ptr %3, align 2 %29 = sitofp i16 %28 to double %30 = call i32 @printf(ptr noundef @.str.6, double noundef %29) %31 = load i32, ptr %4, align 4 %32 = sitofp i32 %31 to double %33 = call i32 @printf(ptr noundef @.str.6, double noundef %32) %34 = load double, ptr %5, align 8 %35 = call i32 @printf(ptr noundef @.str.7, double noundef %34) %36 = load i8, ptr %2, align 1 %37 = sitofp i8 %36 to double %38 = call i32 @my_function(double noundef %37) %39 = load i16, ptr %3, align 2 %40 = sitofp i16 %39 to double %41 = call i32 @my_function(double noundef %40) %42 = load i32, ptr %4, align 4 %43 = sitofp i32 %42 to double %44 = call i32 @my_function(double noundef %43) %45 = load double, ptr %5, align 8 %46 = call i32 @my_function(double noundef %45) ret i32 0 } declare i32 @printf(ptr noundef, double noundef) #1 declare i32 @my_function(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/tmpca_b0hco.c' source_filename = "/tmp/tmpca_b0hco.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lemon_machine_restore_frame(ptr noundef %0, ptr noundef %1) #0 { %3 = alloca ptr, align 8 %4 = alloca ptr, align 8 store ptr %0, ptr %3, align 8 store ptr %1, ptr %4, align 8 %5 = load ptr, ptr %3, align 8 %6 = load ptr, ptr %4, align 8 %7 = call i32 @machine_restore_frame(ptr noundef %5, ptr noundef %6) ret void } declare i32 @machine_restore_frame(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/tmpca_b0hco.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lemon_machine_restore_frame(ptr noundef %0, ptr noundef %1) #0 { %3 = alloca ptr, align 8 %4 = alloca ptr, align 8 store ptr %0, ptr %3, align 8 store ptr %1, ptr %4, align 8 %5 = load ptr, ptr %3, align 8 %6 = load ptr, ptr %4, align 8 %7 = call i32 @machine_restore_frame(ptr noundef %5, ptr noundef %6) ret void } declare i32 @machine_restore_frame(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/tmp0qjv0mk8.c' source_filename = "/tmp/tmp0qjv0mk8.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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"0\00", align 1 @.str.1 = private unnamed_addr constant [2 x i8] c"1\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local ptr @to_binary(i32 noundef %0) #0 { %2 = alloca ptr, align 8 %3 = alloca i32, align 4 store i32 %0, ptr %3, align 4 %4 = load i32, ptr %3, align 4 %5 = icmp eq i32 %4, 0 br i1 %5, label %6, label %7 6: ; preds = %1 store ptr @.str, ptr %2, align 8 br label %25 7: ; preds = %1 %8 = load i32, ptr %3, align 4 %9 = icmp eq i32 %8, 1 br i1 %9, label %10, label %11 10: ; preds = %7 store ptr @.str.1, ptr %2, align 8 br label %25 11: ; preds = %7 %12 = load i32, ptr %3, align 4 %13 = srem i32 %12, 2 %14 = icmp eq i32 %13, 0 br i1 %14, label %15, label %20 15: ; preds = %11 %16 = load i32, ptr %3, align 4 %17 = sdiv i32 %16, 2 %18 = call ptr @to_binary(i32 noundef %17) %19 = call ptr @apped_char(ptr noundef %18, i8 noundef signext 48) store ptr %19, ptr %2, align 8 br label %25 20: ; preds = %11 %21 = load i32, ptr %3, align 4 %22 = sdiv i32 %21, 2 %23 = call ptr @to_binary(i32 noundef %22) %24 = call ptr @apped_char(ptr noundef %23, i8 noundef signext 49) store ptr %24, ptr %2, align 8 br label %25 25: ; preds = %20, %15, %10, %6 %26 = load ptr, ptr %2, align 8 ret ptr %26 } declare ptr @apped_char(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/tmp0qjv0mk8.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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"0\00", align 1 @.str.1 = private unnamed_addr constant [2 x i8] c"1\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local ptr @to_binary(i32 noundef %0) #0 { %2 = alloca ptr, align 8 %3 = alloca i32, align 4 store i32 %0, ptr %3, align 4 %4 = load i32, ptr %3, align 4 %5 = icmp eq i32 %4, 0 br i1 %5, label %6, label %7 6: ; preds = %1 store ptr @.str, ptr %2, align 8 br label %25 7: ; preds = %1 %8 = load i32, ptr %3, align 4 %9 = icmp eq i32 %8, 1 br i1 %9, label %10, label %11 10: ; preds = %7 store ptr @.str.1, ptr %2, align 8 br label %25 11: ; preds = %7 %12 = load i32, ptr %3, align 4 %13 = srem i32 %12, 2 %14 = icmp eq i32 %13, 0 br i1 %14, label %15, label %20 15: ; preds = %11 %16 = load i32, ptr %3, align 4 %17 = sdiv i32 %16, 2 %18 = call ptr @to_binary(i32 noundef %17) %19 = call ptr @apped_char(ptr noundef %18, i8 noundef signext 48) store ptr %19, ptr %2, align 8 br label %25 20: ; preds = %11 %21 = load i32, ptr %3, align 4 %22 = sdiv i32 %21, 2 %23 = call ptr @to_binary(i32 noundef %22) %24 = call ptr @apped_char(ptr noundef %23, i8 noundef signext 49) store ptr %24, ptr %2, align 8 br label %25 25: ; preds = %20, %15, %10, %6 %26 = load ptr, ptr %2, align 8 ret ptr %26 } declare ptr @apped_char(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/tmp8yhor6od.c' source_filename = "/tmp/tmp8yhor6od.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strincmp(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 store ptr %0, ptr %5, align 8 store ptr %1, ptr %6, align 8 store i32 %2, ptr %7, align 4 br label %9 9: ; preds = %35, %3 %10 = load i32, ptr %7, align 4 %11 = add nsw i32 %10, -1 store i32 %11, ptr %7, align 4 %12 = icmp sge i32 %11, 0 br i1 %12, label %13, label %40 13: ; preds = %9 %14 = load ptr, ptr %5, align 8 %15 = load i8, ptr %14, align 1 %16 = call i32 @tolower(i8 noundef signext %15) %17 = load ptr, ptr %6, align 8 %18 = load i8, ptr %17, align 1 %19 = call i32 @tolower(i8 noundef signext %18) %20 = sub nsw i32 %16, %19 store i32 %20, ptr %8, align 4 %21 = load i32, ptr %8, align 4 %22 = icmp ne i32 %21, 0 br i1 %22, label %33, label %23 23: ; preds = %13 %24 = load ptr, ptr %5, align 8 %25 = load i8, ptr %24, align 1 %26 = sext i8 %25 to i32 %27 = icmp eq i32 %26, 0 br i1 %27, label %33, label %28 28: ; preds = %23 %29 = load ptr, ptr %6, align 8 %30 = load i8, ptr %29, align 1 %31 = sext i8 %30 to i32 %32 = icmp eq i32 %31, 0 br i1 %32, label %33, label %35 33: ; preds = %28, %23, %13 %34 = load i32, ptr %8, align 4 store i32 %34, ptr %4, align 4 br label %41 35: ; preds = %28 %36 = load ptr, ptr %5, align 8 %37 = getelementptr inbounds i8, ptr %36, i32 1 store ptr %37, ptr %5, align 8 %38 = load ptr, ptr %6, align 8 %39 = getelementptr inbounds i8, ptr %38, i32 1 store ptr %39, ptr %6, align 8 br label %9, !llvm.loop !6 40: ; preds = %9 store i32 0, ptr %4, align 4 br label %41 41: ; preds = %40, %33 %42 = load i32, ptr %4, align 4 ret i32 %42 } declare i32 @tolower(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/tmp8yhor6od.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strincmp(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 store ptr %0, ptr %5, align 8 store ptr %1, ptr %6, align 8 store i32 %2, ptr %7, align 4 %9 = load i32, ptr %7, align 4 %10 = add nsw i32 %9, -1 store i32 %10, ptr %7, align 4 %11 = icmp sge i32 %10, 0 br i1 %11, label %.lr.ph, label %42 .lr.ph: ; preds = %3 br label %12 12: ; preds = %.lr.ph, %34 %13 = load ptr, ptr %5, align 8 %14 = load i8, ptr %13, align 1 %15 = call i32 @tolower(i8 noundef signext %14) %16 = load ptr, ptr %6, align 8 %17 = load i8, ptr %16, align 1 %18 = call i32 @tolower(i8 noundef signext %17) %19 = sub nsw i32 %15, %18 store i32 %19, ptr %8, align 4 %20 = load i32, ptr %8, align 4 %21 = icmp ne i32 %20, 0 br i1 %21, label %32, label %22 22: ; preds = %12 %23 = load ptr, ptr %5, align 8 %24 = load i8, ptr %23, align 1 %25 = sext i8 %24 to i32 %26 = icmp eq i32 %25, 0 br i1 %26, label %32, label %27 27: ; preds = %22 %28 = load ptr, ptr %6, align 8 %29 = load i8, ptr %28, align 1 %30 = sext i8 %29 to i32 %31 = icmp eq i32 %30, 0 br i1 %31, label %32, label %34 32: ; preds = %27, %22, %12 %33 = load i32, ptr %8, align 4 store i32 %33, ptr %4, align 4 br label %43 34: ; preds = %27 %35 = load ptr, ptr %5, align 8 %36 = getelementptr inbounds i8, ptr %35, i32 1 store ptr %36, ptr %5, align 8 %37 = load ptr, ptr %6, align 8 %38 = getelementptr inbounds i8, ptr %37, i32 1 store ptr %38, ptr %6, align 8 %39 = load i32, ptr %7, align 4 %40 = add nsw i32 %39, -1 store i32 %40, ptr %7, align 4 %41 = icmp sge i32 %40, 0 br i1 %41, label %12, label %._crit_edge, !llvm.loop !6 ._crit_edge: ; preds = %34 br label %42 42: ; preds = %._crit_edge, %3 store i32 0, ptr %4, align 4 br label %43 43: ; preds = %42, %32 %44 = load i32, ptr %4, align 4 ret i32 %44 } declare i32 @tolower(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/tmpxsexthr2.c' source_filename = "/tmp/tmpxsexthr2.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @S_IRGRP = dso_local global i32 0, align 4 @S_IROTH = dso_local global i32 0, align 4 @S_IRWXU = dso_local global i32 0, align 4 @S_IXGRP = dso_local global i32 0, align 4 @S_IXOTH = 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/tmpxsexthr2.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @S_IRGRP = dso_local global i32 0, align 4 @S_IROTH = dso_local global i32 0, align 4 @S_IRWXU = dso_local global i32 0, align 4 @S_IXGRP = dso_local global i32 0, align 4 @S_IXOTH = 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/tmpclguq7_r.c' source_filename = "/tmp/tmpclguq7_r.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local ptr @generate_share_strings(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 { %4 = alloca ptr, align 8 %5 = alloca i32, align 4 %6 = alloca i32, align 4 %7 = alloca ptr, align 8 %8 = alloca i32, align 4 %9 = alloca i32, align 4 %10 = alloca i32, align 4 %11 = alloca ptr, align 8 store ptr %0, ptr %4, align 8 store i32 %1, ptr %5, align 4 store i32 %2, ptr %6, align 4 %12 = load ptr, ptr %4, align 8 %13 = load i32, ptr %5, align 4 %14 = load i32, ptr %6, align 4 %15 = call ptr @split_string(ptr noundef %12, i32 noundef %13, i32 noundef %14) store ptr %15, ptr %7, align 8 %16 = load ptr, ptr %4, align 8 %17 = call i32 @strlen(ptr noundef %16) store i32 %17, ptr %8, align 4 %18 = load i32, ptr %8, align 4 %19 = mul nsw i32 2, %18 %20 = add nsw i32 6, %19 %21 = add nsw i32 %20, 1 store i32 %21, ptr %9, align 4 %22 = load i32, ptr %9, align 4 %23 = load i32, ptr %5, align 4 %24 = mul nsw i32 %22, %23 %25 = add nsw i32 %24, 1 %26 = call ptr @malloc(i32 noundef %25) store ptr %26, ptr %11, align 8 store i32 0, ptr %10, align 4 br label %27 27: ; preds = %44, %3 %28 = load i32, ptr %10, align 4 %29 = load i32, ptr %5, align 4 %30 = icmp slt i32 %28, %29 br i1 %30, label %31, label %47 31: ; preds = %27 %32 = load ptr, ptr %11, align 8 %33 = load i32, ptr %10, align 4 %34 = load i32, ptr %9, align 4 %35 = mul nsw i32 %33, %34 %36 = sext i32 %35 to i64 %37 = getelementptr inbounds i8, ptr %32, i64 %36 %38 = load ptr, ptr %7, align 8 %39 = load i32, ptr %10, align 4 %40 = sext i32 %39 to i64 %41 = getelementptr inbounds ptr, ptr %38, i64 %40 %42 = load ptr, ptr %41, align 8 %43 = call i32 @sprintf(ptr noundef %37, ptr noundef @.str, ptr noundef %42) br label %44 44: ; preds = %31 %45 = load i32, ptr %10, align 4 %46 = add nsw i32 %45, 1 store i32 %46, ptr %10, align 4 br label %27, !llvm.loop !6 47: ; preds = %27 %48 = load ptr, ptr %7, align 8 %49 = load i32, ptr %5, align 4 %50 = call i32 @free_string_shares(ptr noundef %48, i32 noundef %49) %51 = load ptr, ptr %11, align 8 ret ptr %51 } declare ptr @split_string(ptr noundef, i32 noundef, i32 noundef) #1 declare i32 @strlen(ptr noundef) #1 declare ptr @malloc(i32 noundef) #1 declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1 declare i32 @free_string_shares(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/tmpclguq7_r.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local ptr @generate_share_strings(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 { %4 = alloca ptr, align 8 %5 = alloca i32, align 4 %6 = alloca i32, align 4 %7 = alloca ptr, align 8 %8 = alloca i32, align 4 %9 = alloca i32, align 4 %10 = alloca i32, align 4 %11 = alloca ptr, align 8 store ptr %0, ptr %4, align 8 store i32 %1, ptr %5, align 4 store i32 %2, ptr %6, align 4 %12 = load ptr, ptr %4, align 8 %13 = load i32, ptr %5, align 4 %14 = load i32, ptr %6, align 4 %15 = call ptr @split_string(ptr noundef %12, i32 noundef %13, i32 noundef %14) store ptr %15, ptr %7, align 8 %16 = load ptr, ptr %4, align 8 %17 = call i32 @strlen(ptr noundef %16) store i32 %17, ptr %8, align 4 %18 = load i32, ptr %8, align 4 %19 = mul nsw i32 2, %18 %20 = add nsw i32 6, %19 %21 = add nsw i32 %20, 1 store i32 %21, ptr %9, align 4 %22 = load i32, ptr %9, align 4 %23 = load i32, ptr %5, align 4 %24 = mul nsw i32 %22, %23 %25 = add nsw i32 %24, 1 %26 = call ptr @malloc(i32 noundef %25) store ptr %26, ptr %11, align 8 store i32 0, ptr %10, align 4 %27 = load i32, ptr %10, align 4 %28 = load i32, ptr %5, align 4 %29 = icmp slt i32 %27, %28 br i1 %29, label %.lr.ph, label %49 .lr.ph: ; preds = %3 br label %30 30: ; preds = %.lr.ph, %43 %31 = load ptr, ptr %11, align 8 %32 = load i32, ptr %10, align 4 %33 = load i32, ptr %9, align 4 %34 = mul nsw i32 %32, %33 %35 = sext i32 %34 to i64 %36 = getelementptr inbounds i8, ptr %31, i64 %35 %37 = load ptr, ptr %7, align 8 %38 = load i32, ptr %10, align 4 %39 = sext i32 %38 to i64 %40 = getelementptr inbounds ptr, ptr %37, i64 %39 %41 = load ptr, ptr %40, align 8 %42 = call i32 @sprintf(ptr noundef %36, ptr noundef @.str, ptr noundef %41) br label %43 43: ; preds = %30 %44 = load i32, ptr %10, align 4 %45 = add nsw i32 %44, 1 store i32 %45, ptr %10, align 4 %46 = load i32, ptr %10, align 4 %47 = load i32, ptr %5, align 4 %48 = icmp slt i32 %46, %47 br i1 %48, label %30, label %._crit_edge, !llvm.loop !6 ._crit_edge: ; preds = %43 br label %49 49: ; preds = %._crit_edge, %3 %50 = load ptr, ptr %7, align 8 %51 = load i32, ptr %5, align 4 %52 = call i32 @free_string_shares(ptr noundef %50, i32 noundef %51) %53 = load ptr, ptr %11, align 8 ret ptr %53 } declare ptr @split_string(ptr noundef, i32 noundef, i32 noundef) #1 declare i32 @strlen(ptr noundef) #1 declare ptr @malloc(i32 noundef) #1 declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1 declare i32 @free_string_shares(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/tmp0q7hcess.c' source_filename = "/tmp/tmp0q7hcess.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [32 x i8] c"Too many steps in routine qtrap\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local double @qtrap(ptr noundef %0, double noundef %1, double noundef %2) #0 { %4 = alloca double, align 8 %5 = alloca ptr, align 8 %6 = alloca double, align 8 %7 = alloca double, align 8 %8 = alloca i32, align 4 %9 = alloca double, align 8 %10 = alloca double, align 8 store ptr %0, ptr %5, align 8 store double %1, ptr %6, align 8 store double %2, ptr %7, align 8 store double 0.000000e+00, ptr %10, align 8 store i32 1, ptr %8, align 4 br label %11 11: ; preds = %42, %3 %12 = load i32, ptr %8, align 4 %13 = icmp sle i32 %12, 20 br i1 %13, label %14, label %45 14: ; preds = %11 %15 = load ptr, ptr %5, align 8 %16 = load double, ptr %6, align 8 %17 = load double, ptr %7, align 8 %18 = load i32, ptr %8, align 4 %19 = call double @trapzd(ptr noundef %15, double noundef %16, double noundef %17, i32 noundef %18) store double %19, ptr %9, align 8 %20 = load i32, ptr %8, align 4 %21 = icmp sgt i32 %20, 5 br i1 %21, label %22, label %40 22: ; preds = %14 %23 = load double, ptr %9, align 8 %24 = load double, ptr %10, align 8 %25 = fsub double %23, %24 %26 = call double @llvm.fabs.f64(double %25) %27 = load double, ptr %10, align 8 %28 = call double @llvm.fabs.f64(double %27) %29 = fmul double 1.000000e-05, %28 %30 = fcmp olt double %26, %29 br i1 %30, label %37, label %31 31: ; preds = %22 %32 = load double, ptr %9, align 8 %33 = fcmp oeq double %32, 0.000000e+00 br i1 %33, label %34, label %39 34: ; preds = %31 %35 = load double, ptr %10, align 8 %36 = fcmp oeq double %35, 0.000000e+00 br i1 %36, label %37, label %39 37: ; preds = %34, %22 %38 = load double, ptr %9, align 8 store double %38, ptr %4, align 8 br label %46 39: ; preds = %34, %31 br label %40 40: ; preds = %39, %14 %41 = load double, ptr %9, align 8 store double %41, ptr %10, align 8 br label %42 42: ; preds = %40 %43 = load i32, ptr %8, align 4 %44 = add nsw i32 %43, 1 store i32 %44, ptr %8, align 4 br label %11, !llvm.loop !6 45: ; preds = %11 call void @nrerror(ptr noundef @.str) store double 0.000000e+00, ptr %4, align 8 br label %46 46: ; preds = %45, %37 %47 = load double, ptr %4, align 8 ret double %47 } declare double @trapzd(ptr noundef, double noundef, double noundef, i32 noundef) #1 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare double @llvm.fabs.f64(double) #2 declare void @nrerror(ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmp0q7hcess.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [32 x i8] c"Too many steps in routine qtrap\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local double @qtrap(ptr noundef %0, double noundef %1, double noundef %2) #0 { %4 = alloca double, align 8 %5 = alloca ptr, align 8 %6 = alloca double, align 8 %7 = alloca double, align 8 %8 = alloca i32, align 4 %9 = alloca double, align 8 %10 = alloca double, align 8 store ptr %0, ptr %5, align 8 store double %1, ptr %6, align 8 store double %2, ptr %7, align 8 store double 0.000000e+00, ptr %10, align 8 store i32 1, ptr %8, align 4 %11 = load i32, ptr %8, align 4 %12 = icmp sle i32 %11, 20 br i1 %12, label %.lr.ph, label %46 .lr.ph: ; preds = %3 br label %13 13: ; preds = %.lr.ph, %41 %14 = load ptr, ptr %5, align 8 %15 = load double, ptr %6, align 8 %16 = load double, ptr %7, align 8 %17 = load i32, ptr %8, align 4 %18 = call double @trapzd(ptr noundef %14, double noundef %15, double noundef %16, i32 noundef %17) store double %18, ptr %9, align 8 %19 = load i32, ptr %8, align 4 %20 = icmp sgt i32 %19, 5 br i1 %20, label %21, label %39 21: ; preds = %13 %22 = load double, ptr %9, align 8 %23 = load double, ptr %10, align 8 %24 = fsub double %22, %23 %25 = call double @llvm.fabs.f64(double %24) %26 = load double, ptr %10, align 8 %27 = call double @llvm.fabs.f64(double %26) %28 = fmul double 1.000000e-05, %27 %29 = fcmp olt double %25, %28 br i1 %29, label %36, label %30 30: ; preds = %21 %31 = load double, ptr %9, align 8 %32 = fcmp oeq double %31, 0.000000e+00 br i1 %32, label %33, label %38 33: ; preds = %30 %34 = load double, ptr %10, align 8 %35 = fcmp oeq double %34, 0.000000e+00 br i1 %35, label %36, label %38 36: ; preds = %33, %21 %37 = load double, ptr %9, align 8 store double %37, ptr %4, align 8 br label %47 38: ; preds = %33, %30 br label %39 39: ; preds = %38, %13 %40 = load double, ptr %9, align 8 store double %40, ptr %10, align 8 br label %41 41: ; preds = %39 %42 = load i32, ptr %8, align 4 %43 = add nsw i32 %42, 1 store i32 %43, ptr %8, align 4 %44 = load i32, ptr %8, align 4 %45 = icmp sle i32 %44, 20 br i1 %45, label %13, label %._crit_edge, !llvm.loop !6 ._crit_edge: ; preds = %41 br label %46 46: ; preds = %._crit_edge, %3 call void @nrerror(ptr noundef @.str) store double 0.000000e+00, ptr %4, align 8 br label %47 47: ; preds = %46, %36 %48 = load double, ptr %4, align 8 ret double %48 } declare double @trapzd(ptr noundef, double noundef, double noundef, i32 noundef) #1 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare double @llvm.fabs.f64(double) #2 declare void @nrerror(ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"}
; ModuleID = '/tmp/tmp37d35ntm.c' source_filename = "/tmp/tmp37d35ntm.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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"IS_LITTLE_ENDIAN: %d\0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @main() #0 { %1 = call i32 (...) @is_little_endian() %2 = call i32 @printf(ptr noundef @.str, i32 noundef %1) ret i32 0 } declare i32 @printf(ptr noundef, i32 noundef) #1 declare i32 @is_little_endian(...) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmp37d35ntm.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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"IS_LITTLE_ENDIAN: %d\0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @main() #0 { %1 = call i32 (...) @is_little_endian() %2 = call i32 @printf(ptr noundef @.str, i32 noundef %1) ret i32 0 } declare i32 @printf(ptr noundef, i32 noundef) #1 declare i32 @is_little_endian(...) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmp8mfzpty6.c' source_filename = "/tmp/tmp8mfzpty6.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tcsetattr(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 { %4 = alloca i32, align 4 %5 = alloca i32, align 4 %6 = alloca ptr, align 8 store i32 %0, ptr %4, align 4 store i32 %1, ptr %5, align 4 store ptr %2, ptr %6, align 8 %7 = load i32, ptr %4, align 4 %8 = load ptr, ptr %6, align 8 %9 = ptrtoint ptr %8 to i64 %10 = call i32 @ioctl(i32 noundef %7, i32 noundef 21506, i64 noundef %9) ret i32 %10 } declare i32 @ioctl(i32 noundef, i32 noundef, i64 noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmp8mfzpty6.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tcsetattr(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 { %4 = alloca i32, align 4 %5 = alloca i32, align 4 %6 = alloca ptr, align 8 store i32 %0, ptr %4, align 4 store i32 %1, ptr %5, align 4 store ptr %2, ptr %6, align 8 %7 = load i32, ptr %4, align 4 %8 = load ptr, ptr %6, align 8 %9 = ptrtoint ptr %8 to i64 %10 = call i32 @ioctl(i32 noundef %7, i32 noundef 21506, i64 noundef %9) ret i32 %10 } declare i32 @ioctl(i32 noundef, i32 noundef, i64 noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmpwax90ih_.c' source_filename = "/tmp/tmpwax90ih_.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [14 x i8] c"#ifdef SCPACK\00", align 1 @.str.1 = private unnamed_addr constant [72 x i8] c"Error: table name definition should not be in SCPACK section (line %d)\0A\00", align 1 @.str.2 = private unnamed_addr constant [6 x i8] c"#else\00", align 1 @.str.3 = private unnamed_addr constant [42 x i8] c"Unknown escape sequence '\\%c' on line %d\0A\00", align 1 @.str.4 = private unnamed_addr constant [39 x i8] c"Error: unterminated string on line %d\0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @readbuffer(ptr noundef %0, ptr noundef %1) #0 { %3 = alloca i32, align 4 %4 = alloca ptr, align 8 %5 = alloca ptr, align 8 %6 = alloca [256 x i8], align 16 %7 = alloca i32, align 4 %8 = alloca i32, align 4 %9 = alloca i32, align 4 store ptr %0, ptr %4, align 8 store ptr %1, ptr %5, align 8 store i32 0, ptr %9, align 4 store i32 0, ptr %7, align 4 %10 = load ptr, ptr %4, align 8 %11 = call i32 @rewind(ptr noundef %10) br label %12 12: ; preds = %241, %2 %13 = load ptr, ptr %4, align 8 %14 = call i32 @feof(ptr noundef %13) %15 = icmp ne i32 %14, 0 %16 = xor i1 %15, true br i1 %16, label %17, label %247 17: ; preds = %12 br label %18 18: ; preds = %34, %17 %19 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0 %20 = load ptr, ptr %4, align 8 %21 = call ptr @fgets(ptr noundef %19, i32 noundef 256, ptr noundef %20) %22 = icmp ne ptr %21, null br i1 %22, label %23, label %35 23: ; preds = %18 %24 = load i32, ptr %9, align 4 %25 = add nsw i32 %24, 1 store i32 %25, ptr %9, align 4 %26 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0 %27 = call i64 @check_tablename(ptr noundef %26) %28 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0 %29 = call i32 @check_separator(ptr noundef %28) %30 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0 %31 = call i64 @strmatch(ptr noundef %30, ptr noundef @.str, ptr noundef null) %32 = icmp ne i64 %31, 0 br i1 %32, label %33, label %34 33: ; preds = %23 br label %35 34: ; preds = %23 br label %18, !llvm.loop !6 35: ; preds = %33, %18 %36 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0 %37 = call i64 @strmatch(ptr noundef %36, ptr noundef @.str, ptr noundef null) %38 = icmp ne i64 %37, 0 br i1 %38, label %41, label %39 39: ; preds = %35 %40 = load i32, ptr %7, align 4 store i32 %40, ptr %3, align 4 br label %249 41: ; preds = %35 br label %42 42: ; preds = %240, %41 %43 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0 %44 = load ptr, ptr %4, align 8 %45 = call ptr @fgets(ptr noundef %43, i32 noundef 256, ptr noundef %44) %46 = icmp ne ptr %45, null br i1 %46, label %47, label %241 47: ; preds = %42 %48 = load i32, ptr %9, align 4 %49 = add nsw i32 %48, 1 store i32 %49, ptr %9, align 4 %50 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0 %51 = load i32, ptr %9, align 4 %52 = call i32 @check_if(ptr noundef %50, i32 noundef %51) %53 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0 %54 = call i64 @check_tablename(ptr noundef %53) %55 = icmp ne i64 %54, 0 br i1 %55, label %56, label %59 56: ; preds = %47 %57 = load i32, ptr %9, align 4 %58 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %57) br label %59 59: ; preds = %56, %47 %60 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0 %61 = call i32 @check_separator(ptr noundef %60) %62 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0 %63 = call i64 @strmatch(ptr noundef %62, ptr noundef @.str.2, ptr noundef null) %64 = icmp ne i64 %63, 0 br i1 %64, label %65, label %66 65: ; preds = %59 br label %241 66: ; preds = %59 store i32 0, ptr %8, align 4 br label %67 67: ; preds = %233, %66 br label %68 68: ; preds = %84, %67 %69 = load i32, ptr %8, align 4 %70 = sext i32 %69 to i64 %71 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %70 %72 = load i8, ptr %71, align 1 %73 = sext i8 %72 to i32 %74 = icmp ne i32 %73, 0 br i1 %74, label %75, label %82 75: ; preds = %68 %76 = load i32, ptr %8, align 4 %77 = sext i32 %76 to i64 %78 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %77 %79 = load i8, ptr %78, align 1 %80 = sext i8 %79 to i32 %81 = icmp ne i32 %80, 34 br label %82 82: ; preds = %75, %68 %83 = phi i1 [ false, %68 ], [ %81, %75 ] br i1 %83, label %84, label %87 84: ; preds = %82 %85 = load i32, ptr %8, align 4 %86 = add nsw i32 %85, 1 store i32 %86, ptr %8, align 4 br label %68, !llvm.loop !8 87: ; preds = %82 %88 = load i32, ptr %8, align 4 %89 = sext i32 %88 to i64 %90 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %89 %91 = load i8, ptr %90, align 1 %92 = sext i8 %91 to i32 %93 = icmp eq i32 %92, 34 br i1 %93, label %94, label %232 94: ; preds = %87 %95 = load i32, ptr %8, align 4 %96 = add nsw i32 %95, 1 store i32 %96, ptr %8, align 4 br label %97 97: ; preds = %212, %94 %98 = load i32, ptr %8, align 4 %99 = sext i32 %98 to i64 %100 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %99 %101 = load i8, ptr %100, align 1 %102 = sext i8 %101 to i32 %103 = icmp ne i32 %102, 0 br i1 %103, label %104, label %111 104: ; preds = %97 %105 = load i32, ptr %8, align 4 %106 = sext i32 %105 to i64 %107 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %106 %108 = load i8, ptr %107, align 1 %109 = sext i8 %108 to i32 %110 = icmp ne i32 %109, 34 br label %111 111: ; preds = %104, %97 %112 = phi i1 [ false, %97 ], [ %110, %104 ] br i1 %112, label %113, label %213 113: ; preds = %111 %114 = load i32, ptr %8, align 4 %115 = sext i32 %114 to i64 %116 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %115 %117 = load i8, ptr %116, align 1 %118 = sext i8 %117 to i32 %119 = icmp eq i32 %118, 92 br i1 %119, label %120, label %201 120: ; preds = %113 %121 = load i32, ptr %8, align 4 %122 = add nsw i32 %121, 1 store i32 %122, ptr %8, align 4 %123 = load i32, ptr %8, align 4 %124 = sext i32 %123 to i64 %125 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %124 %126 = load i8, ptr %125, align 1 %127 = sext i8 %126 to i32 switch i32 %127, label %192 [ i32 97, label %128 i32 98, label %136 i32 102, label %144 i32 110, label %152 i32 114, label %160 i32 116, label %168 i32 39, label %176 i32 34, label %184 ] 128: ; preds = %120 %129 = load ptr, ptr %5, align 8 %130 = load i32, ptr %7, align 4 %131 = add i32 %130, 1 store i32 %131, ptr %7, align 4 %132 = zext i32 %130 to i64 %133 = getelementptr inbounds i8, ptr %129, i64 %132 store i8 7, ptr %133, align 1 %134 = load i32, ptr %8, align 4 %135 = add nsw i32 %134, 1 store i32 %135, ptr %8, align 4 br label %200 136: ; preds = %120 %137 = load ptr, ptr %5, align 8 %138 = load i32, ptr %7, align 4 %139 = add i32 %138, 1 store i32 %139, ptr %7, align 4 %140 = zext i32 %138 to i64 %141 = getelementptr inbounds i8, ptr %137, i64 %140 store i8 8, ptr %141, align 1 %142 = load i32, ptr %8, align 4 %143 = add nsw i32 %142, 1 store i32 %143, ptr %8, align 4 br label %200 144: ; preds = %120 %145 = load ptr, ptr %5, align 8 %146 = load i32, ptr %7, align 4 %147 = add i32 %146, 1 store i32 %147, ptr %7, align 4 %148 = zext i32 %146 to i64 %149 = getelementptr inbounds i8, ptr %145, i64 %148 store i8 12, ptr %149, align 1 %150 = load i32, ptr %8, align 4 %151 = add nsw i32 %150, 1 store i32 %151, ptr %8, align 4 br label %200 152: ; preds = %120 %153 = load ptr, ptr %5, align 8 %154 = load i32, ptr %7, align 4 %155 = add i32 %154, 1 store i32 %155, ptr %7, align 4 %156 = zext i32 %154 to i64 %157 = getelementptr inbounds i8, ptr %153, i64 %156 store i8 10, ptr %157, align 1 %158 = load i32, ptr %8, align 4 %159 = add nsw i32 %158, 1 store i32 %159, ptr %8, align 4 br label %200 160: ; preds = %120 %161 = load ptr, ptr %5, align 8 %162 = load i32, ptr %7, align 4 %163 = add i32 %162, 1 store i32 %163, ptr %7, align 4 %164 = zext i32 %162 to i64 %165 = getelementptr inbounds i8, ptr %161, i64 %164 store i8 10, ptr %165, align 1 %166 = load i32, ptr %8, align 4 %167 = add nsw i32 %166, 1 store i32 %167, ptr %8, align 4 br label %200 168: ; preds = %120 %169 = load ptr, ptr %5, align 8 %170 = load i32, ptr %7, align 4 %171 = add i32 %170, 1 store i32 %171, ptr %7, align 4 %172 = zext i32 %170 to i64 %173 = getelementptr inbounds i8, ptr %169, i64 %172 store i8 9, ptr %173, align 1 %174 = load i32, ptr %8, align 4 %175 = add nsw i32 %174, 1 store i32 %175, ptr %8, align 4 br label %200 176: ; preds = %120 %177 = load ptr, ptr %5, align 8 %178 = load i32, ptr %7, align 4 %179 = add i32 %178, 1 store i32 %179, ptr %7, align 4 %180 = zext i32 %178 to i64 %181 = getelementptr inbounds i8, ptr %177, i64 %180 store i8 39, ptr %181, align 1 %182 = load i32, ptr %8, align 4 %183 = add nsw i32 %182, 1 store i32 %183, ptr %8, align 4 br label %200 184: ; preds = %120 %185 = load ptr, ptr %5, align 8 %186 = load i32, ptr %7, align 4 %187 = add i32 %186, 1 store i32 %187, ptr %7, align 4 %188 = zext i32 %186 to i64 %189 = getelementptr inbounds i8, ptr %185, i64 %188 store i8 34, ptr %189, align 1 %190 = load i32, ptr %8, align 4 %191 = add nsw i32 %190, 1 store i32 %191, ptr %8, align 4 br label %200 192: ; preds = %120 %193 = load i32, ptr %8, align 4 %194 = sext i32 %193 to i64 %195 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %194 %196 = load i8, ptr %195, align 1 %197 = sext i8 %196 to i32 %198 = load i32, ptr %9, align 4 %199 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.3, i32 noundef %197, i32 noundef %198) br label %200 200: ; preds = %192, %184, %176, %168, %160, %152, %144, %136, %128 br label %212 201: ; preds = %113 %202 = load i32, ptr %8, align 4 %203 = add nsw i32 %202, 1 store i32 %203, ptr %8, align 4 %204 = sext i32 %202 to i64 %205 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %204 %206 = load i8, ptr %205, align 1 %207 = load ptr, ptr %5, align 8 %208 = load i32, ptr %7, align 4 %209 = add i32 %208, 1 store i32 %209, ptr %7, align 4 %210 = zext i32 %208 to i64 %211 = getelementptr inbounds i8, ptr %207, i64 %210 store i8 %206, ptr %211, align 1 br label %212 212: ; preds = %201, %200 br label %97, !llvm.loop !9 213: ; preds = %111 %214 = load i32, ptr %8, align 4 %215 = sext i32 %214 to i64 %216 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %215 %217 = load i8, ptr %216, align 1 %218 = sext i8 %217 to i32 %219 = icmp eq i32 %218, 34 br i1 %219, label %220, label %228 220: ; preds = %213 %221 = load ptr, ptr %5, align 8 %222 = load i32, ptr %7, align 4 %223 = add i32 %222, 1 store i32 %223, ptr %7, align 4 %224 = zext i32 %222 to i64 %225 = getelementptr inbounds i8, ptr %221, i64 %224 store i8 0, ptr %225, align 1 %226 = load i32, ptr %8, align 4 %227 = add nsw i32 %226, 1 store i32 %227, ptr %8, align 4 br label %231 228: ; preds = %213 %229 = load i32, ptr %9, align 4 %230 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.4, i32 noundef %229) br label %231 231: ; preds = %228, %220 br label %232 232: ; preds = %231, %87 br label %233 233: ; preds = %232 %234 = load i32, ptr %8, align 4 %235 = sext i32 %234 to i64 %236 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %235 %237 = load i8, ptr %236, align 1 %238 = sext i8 %237 to i32 %239 = icmp ne i32 %238, 0 br i1 %239, label %67, label %240, !llvm.loop !10 240: ; preds = %233 br label %42, !llvm.loop !11 241: ; preds = %65, %42 %242 = load ptr, ptr %5, align 8 %243 = load i32, ptr %7, align 4 %244 = add i32 %243, 1 store i32 %244, ptr %7, align 4 %245 = zext i32 %243 to i64 %246 = getelementptr inbounds i8, ptr %242, i64 %245 store i8 0, ptr %246, align 1 br label %12, !llvm.loop !12 247: ; preds = %12 %248 = load i32, ptr %7, align 4 store i32 %248, ptr %3, align 4 br label %249 249: ; preds = %247, %39 %250 = load i32, ptr %3, align 4 ret i32 %250 } declare i32 @rewind(ptr noundef) #1 declare i32 @feof(ptr noundef) #1 declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1 declare i64 @check_tablename(ptr noundef) #1 declare i32 @check_separator(ptr noundef) #1 declare i64 @strmatch(ptr noundef, ptr noundef, ptr noundef) #1 declare i32 @check_if(ptr noundef, i32 noundef) #1 declare i32 @printf(ptr noundef, i32 noundef, ...) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"} !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/tmpwax90ih_.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [14 x i8] c"#ifdef SCPACK\00", align 1 @.str.1 = private unnamed_addr constant [72 x i8] c"Error: table name definition should not be in SCPACK section (line %d)\0A\00", align 1 @.str.2 = private unnamed_addr constant [6 x i8] c"#else\00", align 1 @.str.3 = private unnamed_addr constant [42 x i8] c"Unknown escape sequence '\\%c' on line %d\0A\00", align 1 @.str.4 = private unnamed_addr constant [39 x i8] c"Error: unterminated string on line %d\0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @readbuffer(ptr noundef %0, ptr noundef %1) #0 { %3 = alloca i32, align 4 %4 = alloca ptr, align 8 %5 = alloca ptr, align 8 %6 = alloca [256 x i8], align 16 %7 = alloca i32, align 4 %8 = alloca i32, align 4 %9 = alloca i32, align 4 store ptr %0, ptr %4, align 8 store ptr %1, ptr %5, align 8 store i32 0, ptr %9, align 4 store i32 0, ptr %7, align 4 %10 = load ptr, ptr %4, align 8 %11 = call i32 @rewind(ptr noundef %10) %12 = load ptr, ptr %4, align 8 %13 = call i32 @feof(ptr noundef %12) %14 = icmp ne i32 %13, 0 %15 = xor i1 %14, true br i1 %15, label %.lr.ph3, label %254 .lr.ph3: ; preds = %2 br label %16 16: ; preds = %.lr.ph3, %244 %17 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0 %18 = load ptr, ptr %4, align 8 %19 = call ptr @fgets(ptr noundef %17, i32 noundef 256, ptr noundef %18) %20 = icmp ne ptr %19, null br i1 %20, label %.lr.ph, label %.loopexit1 .lr.ph: ; preds = %16 br label %25 21: ; preds = %25 %22 = load ptr, ptr %4, align 8 %23 = call ptr @fgets(ptr noundef %17, i32 noundef 256, ptr noundef %22) %24 = icmp ne ptr %23, null br i1 %24, label %25, label %..loopexit1_crit_edge, !llvm.loop !6 25: ; preds = %.lr.ph, %21 %26 = load i32, ptr %9, align 4 %27 = add nsw i32 %26, 1 store i32 %27, ptr %9, align 4 %28 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0 %29 = call i64 @check_tablename(ptr noundef %28) %30 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0 %31 = call i32 @check_separator(ptr noundef %30) %32 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0 %33 = call i64 @strmatch(ptr noundef %32, ptr noundef @.str, ptr noundef null) %34 = icmp ne i64 %33, 0 br i1 %34, label %35, label %21 35: ; preds = %25 br label %36 ..loopexit1_crit_edge: ; preds = %21 br label %.loopexit1 .loopexit1: ; preds = %..loopexit1_crit_edge, %16 br label %36 36: ; preds = %.loopexit1, %35 %37 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0 %38 = call i64 @strmatch(ptr noundef %37, ptr noundef @.str, ptr noundef null) %39 = icmp ne i64 %38, 0 br i1 %39, label %42, label %40 40: ; preds = %36 %41 = load i32, ptr %7, align 4 store i32 %41, ptr %3, align 4 br label %256 42: ; preds = %36 %43 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0 %44 = load ptr, ptr %4, align 8 %45 = call ptr @fgets(ptr noundef %43, i32 noundef 256, ptr noundef %44) %46 = icmp ne ptr %45, null br i1 %46, label %.lr.ph2, label %.loopexit .lr.ph2: ; preds = %42 br label %47 47: ; preds = %.lr.ph2, %240 %48 = load i32, ptr %9, align 4 %49 = add nsw i32 %48, 1 store i32 %49, ptr %9, align 4 %50 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0 %51 = load i32, ptr %9, align 4 %52 = call i32 @check_if(ptr noundef %50, i32 noundef %51) %53 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0 %54 = call i64 @check_tablename(ptr noundef %53) %55 = icmp ne i64 %54, 0 br i1 %55, label %56, label %59 56: ; preds = %47 %57 = load i32, ptr %9, align 4 %58 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %57) br label %59 59: ; preds = %56, %47 %60 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0 %61 = call i32 @check_separator(ptr noundef %60) %62 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0 %63 = call i64 @strmatch(ptr noundef %62, ptr noundef @.str.2, ptr noundef null) %64 = icmp ne i64 %63, 0 br i1 %64, label %65, label %66 65: ; preds = %59 br label %244 66: ; preds = %59 store i32 0, ptr %8, align 4 br label %67 67: ; preds = %233, %66 br label %68 68: ; preds = %84, %67 %69 = load i32, ptr %8, align 4 %70 = sext i32 %69 to i64 %71 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %70 %72 = load i8, ptr %71, align 1 %73 = sext i8 %72 to i32 %74 = icmp ne i32 %73, 0 br i1 %74, label %75, label %82 75: ; preds = %68 %76 = load i32, ptr %8, align 4 %77 = sext i32 %76 to i64 %78 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %77 %79 = load i8, ptr %78, align 1 %80 = sext i8 %79 to i32 %81 = icmp ne i32 %80, 34 br label %82 82: ; preds = %75, %68 %83 = phi i1 [ false, %68 ], [ %81, %75 ] br i1 %83, label %84, label %87 84: ; preds = %82 %85 = load i32, ptr %8, align 4 %86 = add nsw i32 %85, 1 store i32 %86, ptr %8, align 4 br label %68, !llvm.loop !8 87: ; preds = %82 %88 = load i32, ptr %8, align 4 %89 = sext i32 %88 to i64 %90 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %89 %91 = load i8, ptr %90, align 1 %92 = sext i8 %91 to i32 %93 = icmp eq i32 %92, 34 br i1 %93, label %94, label %232 94: ; preds = %87 %95 = load i32, ptr %8, align 4 %96 = add nsw i32 %95, 1 store i32 %96, ptr %8, align 4 br label %97 97: ; preds = %212, %94 %98 = load i32, ptr %8, align 4 %99 = sext i32 %98 to i64 %100 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %99 %101 = load i8, ptr %100, align 1 %102 = sext i8 %101 to i32 %103 = icmp ne i32 %102, 0 br i1 %103, label %104, label %111 104: ; preds = %97 %105 = load i32, ptr %8, align 4 %106 = sext i32 %105 to i64 %107 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %106 %108 = load i8, ptr %107, align 1 %109 = sext i8 %108 to i32 %110 = icmp ne i32 %109, 34 br label %111 111: ; preds = %104, %97 %112 = phi i1 [ false, %97 ], [ %110, %104 ] br i1 %112, label %113, label %213 113: ; preds = %111 %114 = load i32, ptr %8, align 4 %115 = sext i32 %114 to i64 %116 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %115 %117 = load i8, ptr %116, align 1 %118 = sext i8 %117 to i32 %119 = icmp eq i32 %118, 92 br i1 %119, label %120, label %201 120: ; preds = %113 %121 = load i32, ptr %8, align 4 %122 = add nsw i32 %121, 1 store i32 %122, ptr %8, align 4 %123 = load i32, ptr %8, align 4 %124 = sext i32 %123 to i64 %125 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %124 %126 = load i8, ptr %125, align 1 %127 = sext i8 %126 to i32 switch i32 %127, label %192 [ i32 97, label %128 i32 98, label %136 i32 102, label %144 i32 110, label %152 i32 114, label %160 i32 116, label %168 i32 39, label %176 i32 34, label %184 ] 128: ; preds = %120 %129 = load ptr, ptr %5, align 8 %130 = load i32, ptr %7, align 4 %131 = add i32 %130, 1 store i32 %131, ptr %7, align 4 %132 = zext i32 %130 to i64 %133 = getelementptr inbounds i8, ptr %129, i64 %132 store i8 7, ptr %133, align 1 %134 = load i32, ptr %8, align 4 %135 = add nsw i32 %134, 1 store i32 %135, ptr %8, align 4 br label %200 136: ; preds = %120 %137 = load ptr, ptr %5, align 8 %138 = load i32, ptr %7, align 4 %139 = add i32 %138, 1 store i32 %139, ptr %7, align 4 %140 = zext i32 %138 to i64 %141 = getelementptr inbounds i8, ptr %137, i64 %140 store i8 8, ptr %141, align 1 %142 = load i32, ptr %8, align 4 %143 = add nsw i32 %142, 1 store i32 %143, ptr %8, align 4 br label %200 144: ; preds = %120 %145 = load ptr, ptr %5, align 8 %146 = load i32, ptr %7, align 4 %147 = add i32 %146, 1 store i32 %147, ptr %7, align 4 %148 = zext i32 %146 to i64 %149 = getelementptr inbounds i8, ptr %145, i64 %148 store i8 12, ptr %149, align 1 %150 = load i32, ptr %8, align 4 %151 = add nsw i32 %150, 1 store i32 %151, ptr %8, align 4 br label %200 152: ; preds = %120 %153 = load ptr, ptr %5, align 8 %154 = load i32, ptr %7, align 4 %155 = add i32 %154, 1 store i32 %155, ptr %7, align 4 %156 = zext i32 %154 to i64 %157 = getelementptr inbounds i8, ptr %153, i64 %156 store i8 10, ptr %157, align 1 %158 = load i32, ptr %8, align 4 %159 = add nsw i32 %158, 1 store i32 %159, ptr %8, align 4 br label %200 160: ; preds = %120 %161 = load ptr, ptr %5, align 8 %162 = load i32, ptr %7, align 4 %163 = add i32 %162, 1 store i32 %163, ptr %7, align 4 %164 = zext i32 %162 to i64 %165 = getelementptr inbounds i8, ptr %161, i64 %164 store i8 10, ptr %165, align 1 %166 = load i32, ptr %8, align 4 %167 = add nsw i32 %166, 1 store i32 %167, ptr %8, align 4 br label %200 168: ; preds = %120 %169 = load ptr, ptr %5, align 8 %170 = load i32, ptr %7, align 4 %171 = add i32 %170, 1 store i32 %171, ptr %7, align 4 %172 = zext i32 %170 to i64 %173 = getelementptr inbounds i8, ptr %169, i64 %172 store i8 9, ptr %173, align 1 %174 = load i32, ptr %8, align 4 %175 = add nsw i32 %174, 1 store i32 %175, ptr %8, align 4 br label %200 176: ; preds = %120 %177 = load ptr, ptr %5, align 8 %178 = load i32, ptr %7, align 4 %179 = add i32 %178, 1 store i32 %179, ptr %7, align 4 %180 = zext i32 %178 to i64 %181 = getelementptr inbounds i8, ptr %177, i64 %180 store i8 39, ptr %181, align 1 %182 = load i32, ptr %8, align 4 %183 = add nsw i32 %182, 1 store i32 %183, ptr %8, align 4 br label %200 184: ; preds = %120 %185 = load ptr, ptr %5, align 8 %186 = load i32, ptr %7, align 4 %187 = add i32 %186, 1 store i32 %187, ptr %7, align 4 %188 = zext i32 %186 to i64 %189 = getelementptr inbounds i8, ptr %185, i64 %188 store i8 34, ptr %189, align 1 %190 = load i32, ptr %8, align 4 %191 = add nsw i32 %190, 1 store i32 %191, ptr %8, align 4 br label %200 192: ; preds = %120 %193 = load i32, ptr %8, align 4 %194 = sext i32 %193 to i64 %195 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %194 %196 = load i8, ptr %195, align 1 %197 = sext i8 %196 to i32 %198 = load i32, ptr %9, align 4 %199 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.3, i32 noundef %197, i32 noundef %198) br label %200 200: ; preds = %192, %184, %176, %168, %160, %152, %144, %136, %128 br label %212 201: ; preds = %113 %202 = load i32, ptr %8, align 4 %203 = add nsw i32 %202, 1 store i32 %203, ptr %8, align 4 %204 = sext i32 %202 to i64 %205 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %204 %206 = load i8, ptr %205, align 1 %207 = load ptr, ptr %5, align 8 %208 = load i32, ptr %7, align 4 %209 = add i32 %208, 1 store i32 %209, ptr %7, align 4 %210 = zext i32 %208 to i64 %211 = getelementptr inbounds i8, ptr %207, i64 %210 store i8 %206, ptr %211, align 1 br label %212 212: ; preds = %201, %200 br label %97, !llvm.loop !9 213: ; preds = %111 %214 = load i32, ptr %8, align 4 %215 = sext i32 %214 to i64 %216 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %215 %217 = load i8, ptr %216, align 1 %218 = sext i8 %217 to i32 %219 = icmp eq i32 %218, 34 br i1 %219, label %220, label %228 220: ; preds = %213 %221 = load ptr, ptr %5, align 8 %222 = load i32, ptr %7, align 4 %223 = add i32 %222, 1 store i32 %223, ptr %7, align 4 %224 = zext i32 %222 to i64 %225 = getelementptr inbounds i8, ptr %221, i64 %224 store i8 0, ptr %225, align 1 %226 = load i32, ptr %8, align 4 %227 = add nsw i32 %226, 1 store i32 %227, ptr %8, align 4 br label %231 228: ; preds = %213 %229 = load i32, ptr %9, align 4 %230 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.4, i32 noundef %229) br label %231 231: ; preds = %228, %220 br label %232 232: ; preds = %231, %87 br label %233 233: ; preds = %232 %234 = load i32, ptr %8, align 4 %235 = sext i32 %234 to i64 %236 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %235 %237 = load i8, ptr %236, align 1 %238 = sext i8 %237 to i32 %239 = icmp ne i32 %238, 0 br i1 %239, label %67, label %240, !llvm.loop !10 240: ; preds = %233 %241 = load ptr, ptr %4, align 8 %242 = call ptr @fgets(ptr noundef %43, i32 noundef 256, ptr noundef %241) %243 = icmp ne ptr %242, null br i1 %243, label %47, label %..loopexit_crit_edge, !llvm.loop !11 ..loopexit_crit_edge: ; preds = %240 br label %.loopexit .loopexit: ; preds = %..loopexit_crit_edge, %42 br label %244 244: ; preds = %.loopexit, %65 %245 = load ptr, ptr %5, align 8 %246 = load i32, ptr %7, align 4 %247 = add i32 %246, 1 store i32 %247, ptr %7, align 4 %248 = zext i32 %246 to i64 %249 = getelementptr inbounds i8, ptr %245, i64 %248 store i8 0, ptr %249, align 1 %250 = load ptr, ptr %4, align 8 %251 = call i32 @feof(ptr noundef %250) %252 = icmp ne i32 %251, 0 %253 = xor i1 %252, true br i1 %253, label %16, label %._crit_edge, !llvm.loop !12 ._crit_edge: ; preds = %244 br label %254 254: ; preds = %._crit_edge, %2 %255 = load i32, ptr %7, align 4 store i32 %255, ptr %3, align 4 br label %256 256: ; preds = %254, %40 %257 = load i32, ptr %3, align 4 ret i32 %257 } declare i32 @rewind(ptr noundef) #1 declare i32 @feof(ptr noundef) #1 declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1 declare i64 @check_tablename(ptr noundef) #1 declare i32 @check_separator(ptr noundef) #1 declare i64 @strmatch(ptr noundef, ptr noundef, ptr noundef) #1 declare i32 @check_if(ptr noundef, i32 noundef) #1 declare i32 @printf(ptr noundef, i32 noundef, ...) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"} !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/tmpdhp5uzxn.c' source_filename = "/tmp/tmpdhp5uzxn.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.TYPE_2__ = type { i64 } ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @get_XWindowChanges_y(ptr noundef %0) #0 { %2 = alloca ptr, align 8 store ptr %0, ptr %2, align 8 %3 = load ptr, ptr %2, align 8 %4 = getelementptr inbounds %struct.TYPE_2__, ptr %3, i32 0, i32 0 %5 = load i64, ptr %4, align 8 %6 = trunc i64 %5 to i32 ret i32 %6 } attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpdhp5uzxn.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.TYPE_2__ = type { i64 } ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @get_XWindowChanges_y(ptr noundef %0) #0 { %2 = alloca ptr, align 8 store ptr %0, ptr %2, align 8 %3 = load ptr, ptr %2, align 8 %4 = getelementptr inbounds %struct.TYPE_2__, ptr %3, i32 0, i32 0 %5 = load i64, ptr %4, align 8 %6 = trunc i64 %5 to i32 ret i32 %6 } attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmp4zeffkn0.c' source_filename = "/tmp/tmp4zeffkn0.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @compound_test() %3 = call i32 (...) @if_test() %4 = call i32 (...) @for_test() %5 = call i32 (...) @return_test() ret i32 0 } declare i32 @compound_test(...) #1 declare i32 @if_test(...) #1 declare i32 @for_test(...) #1 declare i32 @return_test(...) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmp4zeffkn0.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @compound_test() %3 = call i32 (...) @if_test() %4 = call i32 (...) @for_test() %5 = call i32 (...) @return_test() ret i32 0 } declare i32 @compound_test(...) #1 declare i32 @if_test(...) #1 declare i32 @for_test(...) #1 declare i32 @return_test(...) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmpb2mmwpk8.c' source_filename = "/tmp/tmpb2mmwpk8.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [25 x i8] c"informe os dois valores \00", align 1 @.str.1 = private unnamed_addr constant [6 x i8] c"%f %f\00", align 1 @.str.2 = private unnamed_addr constant [27 x i8] c"valores informados:%f %f \0A\00", align 1 @.str.3 = private unnamed_addr constant [12 x i8] c"soma : %f \0A\00", align 1 @.str.4 = private unnamed_addr constant [18 x i8] c"subtra\C3\A7ao : %f \0A\00", align 1 @.str.5 = private unnamed_addr constant [14 x i8] c"diviao : %f \0A\00", align 1 @.str.6 = private unnamed_addr constant [21 x i8] c"multiplicacao : %f \0A\00", align 1 @.str.7 = private unnamed_addr constant [25 x i8] c"resto da divisao : %i \0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @main() #0 { %1 = alloca i32, align 4 %2 = alloca float, align 4 %3 = alloca float, align 4 store i32 0, ptr %1, align 4 store float 0.000000e+00, ptr %2, align 4 store float 0.000000e+00, ptr %3, align 4 %4 = call i32 (ptr, ...) @printf(ptr noundef @.str) %5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3) %6 = load float, ptr %2, align 4 %7 = fpext float %6 to double %8 = load float, ptr %3, align 4 %9 = fpext float %8 to double %10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %7, double noundef %9) %11 = load float, ptr %2, align 4 %12 = load float, ptr %3, align 4 %13 = fadd float %11, %12 %14 = fpext float %13 to double %15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %14) %16 = load float, ptr %2, align 4 %17 = load float, ptr %3, align 4 %18 = fsub float %16, %17 %19 = fpext float %18 to double %20 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %19) %21 = load float, ptr %2, align 4 %22 = load float, ptr %3, align 4 %23 = fdiv float %21, %22 %24 = fpext float %23 to double %25 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %24) %26 = load float, ptr %2, align 4 %27 = load float, ptr %3, align 4 %28 = fmul float %26, %27 %29 = fpext float %28 to double %30 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %29) %31 = load float, ptr %2, align 4 %32 = fptosi float %31 to i32 %33 = load float, ptr %3, align 4 %34 = fptosi float %33 to i32 %35 = srem i32 %32, %34 %36 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %35) ret i32 0 } declare i32 @printf(ptr noundef, ...) #1 declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpb2mmwpk8.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [25 x i8] c"informe os dois valores \00", align 1 @.str.1 = private unnamed_addr constant [6 x i8] c"%f %f\00", align 1 @.str.2 = private unnamed_addr constant [27 x i8] c"valores informados:%f %f \0A\00", align 1 @.str.3 = private unnamed_addr constant [12 x i8] c"soma : %f \0A\00", align 1 @.str.4 = private unnamed_addr constant [18 x i8] c"subtra\C3\A7ao : %f \0A\00", align 1 @.str.5 = private unnamed_addr constant [14 x i8] c"diviao : %f \0A\00", align 1 @.str.6 = private unnamed_addr constant [21 x i8] c"multiplicacao : %f \0A\00", align 1 @.str.7 = private unnamed_addr constant [25 x i8] c"resto da divisao : %i \0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @main() #0 { %1 = alloca i32, align 4 %2 = alloca float, align 4 %3 = alloca float, align 4 store i32 0, ptr %1, align 4 store float 0.000000e+00, ptr %2, align 4 store float 0.000000e+00, ptr %3, align 4 %4 = call i32 (ptr, ...) @printf(ptr noundef @.str) %5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3) %6 = load float, ptr %2, align 4 %7 = fpext float %6 to double %8 = load float, ptr %3, align 4 %9 = fpext float %8 to double %10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %7, double noundef %9) %11 = load float, ptr %2, align 4 %12 = load float, ptr %3, align 4 %13 = fadd float %11, %12 %14 = fpext float %13 to double %15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %14) %16 = load float, ptr %2, align 4 %17 = load float, ptr %3, align 4 %18 = fsub float %16, %17 %19 = fpext float %18 to double %20 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %19) %21 = load float, ptr %2, align 4 %22 = load float, ptr %3, align 4 %23 = fdiv float %21, %22 %24 = fpext float %23 to double %25 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %24) %26 = load float, ptr %2, align 4 %27 = load float, ptr %3, align 4 %28 = fmul float %26, %27 %29 = fpext float %28 to double %30 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %29) %31 = load float, ptr %2, align 4 %32 = fptosi float %31 to i32 %33 = load float, ptr %3, align 4 %34 = fptosi float %33 to i32 %35 = srem i32 %32, %34 %36 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %35) ret i32 0 } declare i32 @printf(ptr noundef, ...) #1 declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmp2zps1o96.c' source_filename = "/tmp/tmp2zps1o96.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @BTIC4B_DecImageClrDec2T_GDbDr(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12) #0 { %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 %19 = alloca i32, align 4 %20 = alloca i32, align 4 %21 = alloca ptr, align 8 %22 = alloca ptr, align 8 %23 = alloca ptr, align 8 %24 = alloca ptr, align 8 %25 = alloca ptr, align 8 %26 = alloca ptr, align 8 %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 %33 = alloca i32, align 4 %34 = alloca i32, align 4 %35 = alloca i32, align 4 %36 = alloca i32, align 4 %37 = alloca i32, align 4 %38 = alloca i32, align 4 store i32 %0, ptr %14, align 4 store i32 %1, ptr %15, align 4 store i32 %2, ptr %16, align 4 store i32 %3, ptr %17, align 4 store i32 %4, ptr %18, align 4 store i32 %5, ptr %19, align 4 store i32 %6, ptr %20, align 4 store ptr %7, ptr %21, align 8 store ptr %8, ptr %22, align 8 store ptr %9, ptr %23, align 8 store ptr %10, ptr %24, align 8 store ptr %11, ptr %25, align 8 store ptr %12, ptr %26, align 8 %39 = load i32, ptr %15, align 4 %40 = load i32, ptr %18, align 4 %41 = ashr i32 %40, 1 %42 = sub nsw i32 %39, %41 store i32 %42, ptr %27, align 4 %43 = load i32, ptr %27, align 4 %44 = load i32, ptr %18, align 4 %45 = add nsw i32 %43, %44 store i32 %45, ptr %30, align 4 %46 = load i32, ptr %16, align 4 %47 = load i32, ptr %19, align 4 %48 = ashr i32 %47, 1 %49 = sub nsw i32 %46, %48 store i32 %49, ptr %28, align 4 %50 = load i32, ptr %28, align 4 %51 = load i32, ptr %19, align 4 %52 = add nsw i32 %50, %51 store i32 %52, ptr %31, align 4 %53 = load i32, ptr %17, align 4 %54 = load i32, ptr %20, align 4 %55 = ashr i32 %54, 1 %56 = sub nsw i32 %53, %55 store i32 %56, ptr %29, align 4 %57 = load i32, ptr %29, align 4 %58 = load i32, ptr %20, align 4 %59 = add nsw i32 %57, %58 store i32 %59, ptr %32, align 4 %60 = load i32, ptr %14, align 4 %61 = and i32 %60, 64 %62 = icmp ne i32 %61, 0 br i1 %62, label %63, label %78 63: ; preds = %13 %64 = load i32, ptr %27, align 4 store i32 %64, ptr %34, align 4 %65 = load i32, ptr %34, align 4 %66 = load i32, ptr %28, align 4 %67 = add nsw i32 %65, %66 store i32 %67, ptr %35, align 4 %68 = load i32, ptr %34, align 4 %69 = load i32, ptr %29, align 4 %70 = add nsw i32 %68, %69 store i32 %70, ptr %33, align 4 %71 = load i32, ptr %30, align 4 store i32 %71, ptr %37, align 4 %72 = load i32, ptr %37, align 4 %73 = load i32, ptr %31, align 4 %74 = add nsw i32 %72, %73 store i32 %74, ptr %38, align 4 %75 = load i32, ptr %37, align 4 %76 = load i32, ptr %32, align 4 %77 = add nsw i32 %75, %76 store i32 %77, ptr %36, align 4 br label %93 78: ; preds = %13 %79 = load i32, ptr %27, align 4 store i32 %79, ptr %34, align 4 %80 = load i32, ptr %34, align 4 %81 = load i32, ptr %16, align 4 %82 = add nsw i32 %80, %81 store i32 %82, ptr %35, align 4 %83 = load i32, ptr %34, align 4 %84 = load i32, ptr %17, align 4 %85 = add nsw i32 %83, %84 store i32 %85, ptr %33, align 4 %86 = load i32, ptr %30, align 4 store i32 %86, ptr %37, align 4 %87 = load i32, ptr %37, align 4 %88 = load i32, ptr %16, align 4 %89 = add nsw i32 %87, %88 store i32 %89, ptr %38, align 4 %90 = load i32, ptr %37, align 4 %91 = load i32, ptr %17, align 4 %92 = add nsw i32 %90, %91 store i32 %92, ptr %36, align 4 br label %93 93: ; preds = %78, %63 %94 = load i32, ptr %33, align 4 %95 = load i32, ptr %34, align 4 %96 = or i32 %94, %95 %97 = load i32, ptr %35, align 4 %98 = or i32 %96, %97 %99 = ashr i32 %98, 8 %100 = icmp ne i32 %99, 0 br i1 %100, label %101, label %108 101: ; preds = %93 %102 = load i32, ptr %33, align 4 %103 = call i32 @lqtvq_clamp255(i32 noundef %102) store i32 %103, ptr %33, align 4 %104 = load i32, ptr %34, align 4 %105 = call i32 @lqtvq_clamp255(i32 noundef %104) store i32 %105, ptr %34, align 4 %106 = load i32, ptr %35, align 4 %107 = call i32 @lqtvq_clamp255(i32 noundef %106) store i32 %107, ptr %35, align 4 br label %108 108: ; preds = %101, %93 %109 = load i32, ptr %36, align 4 %110 = load i32, ptr %37, align 4 %111 = or i32 %109, %110 %112 = load i32, ptr %38, align 4 %113 = or i32 %111, %112 %114 = ashr i32 %113, 8 %115 = icmp ne i32 %114, 0 br i1 %115, label %116, label %123 116: ; preds = %108 %117 = load i32, ptr %36, align 4 %118 = call i32 @lqtvq_clamp255(i32 noundef %117) store i32 %118, ptr %36, align 4 %119 = load i32, ptr %37, align 4 %120 = call i32 @lqtvq_clamp255(i32 noundef %119) store i32 %120, ptr %37, align 4 %121 = load i32, ptr %38, align 4 %122 = call i32 @lqtvq_clamp255(i32 noundef %121) store i32 %122, ptr %38, align 4 br label %123 123: ; preds = %116, %108 %124 = load i32, ptr %33, align 4 %125 = load ptr, ptr %21, align 8 store i32 %124, ptr %125, align 4 %126 = load i32, ptr %34, align 4 %127 = load ptr, ptr %22, align 8 store i32 %126, ptr %127, align 4 %128 = load i32, ptr %35, align 4 %129 = load ptr, ptr %23, align 8 store i32 %128, ptr %129, align 4 %130 = load i32, ptr %36, align 4 %131 = load ptr, ptr %24, align 8 store i32 %130, ptr %131, align 4 %132 = load i32, ptr %37, align 4 %133 = load ptr, ptr %25, align 8 store i32 %132, ptr %133, align 4 %134 = load i32, ptr %38, align 4 %135 = load ptr, ptr %26, align 8 store i32 %134, ptr %135, align 4 ret void } declare i32 @lqtvq_clamp255(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/tmp2zps1o96.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @BTIC4B_DecImageClrDec2T_GDbDr(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12) #0 { %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 %19 = alloca i32, align 4 %20 = alloca i32, align 4 %21 = alloca ptr, align 8 %22 = alloca ptr, align 8 %23 = alloca ptr, align 8 %24 = alloca ptr, align 8 %25 = alloca ptr, align 8 %26 = alloca ptr, align 8 %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 %33 = alloca i32, align 4 %34 = alloca i32, align 4 %35 = alloca i32, align 4 %36 = alloca i32, align 4 %37 = alloca i32, align 4 %38 = alloca i32, align 4 store i32 %0, ptr %14, align 4 store i32 %1, ptr %15, align 4 store i32 %2, ptr %16, align 4 store i32 %3, ptr %17, align 4 store i32 %4, ptr %18, align 4 store i32 %5, ptr %19, align 4 store i32 %6, ptr %20, align 4 store ptr %7, ptr %21, align 8 store ptr %8, ptr %22, align 8 store ptr %9, ptr %23, align 8 store ptr %10, ptr %24, align 8 store ptr %11, ptr %25, align 8 store ptr %12, ptr %26, align 8 %39 = load i32, ptr %15, align 4 %40 = load i32, ptr %18, align 4 %41 = ashr i32 %40, 1 %42 = sub nsw i32 %39, %41 store i32 %42, ptr %27, align 4 %43 = load i32, ptr %27, align 4 %44 = load i32, ptr %18, align 4 %45 = add nsw i32 %43, %44 store i32 %45, ptr %30, align 4 %46 = load i32, ptr %16, align 4 %47 = load i32, ptr %19, align 4 %48 = ashr i32 %47, 1 %49 = sub nsw i32 %46, %48 store i32 %49, ptr %28, align 4 %50 = load i32, ptr %28, align 4 %51 = load i32, ptr %19, align 4 %52 = add nsw i32 %50, %51 store i32 %52, ptr %31, align 4 %53 = load i32, ptr %17, align 4 %54 = load i32, ptr %20, align 4 %55 = ashr i32 %54, 1 %56 = sub nsw i32 %53, %55 store i32 %56, ptr %29, align 4 %57 = load i32, ptr %29, align 4 %58 = load i32, ptr %20, align 4 %59 = add nsw i32 %57, %58 store i32 %59, ptr %32, align 4 %60 = load i32, ptr %14, align 4 %61 = and i32 %60, 64 %62 = icmp ne i32 %61, 0 br i1 %62, label %63, label %78 63: ; preds = %13 %64 = load i32, ptr %27, align 4 store i32 %64, ptr %34, align 4 %65 = load i32, ptr %34, align 4 %66 = load i32, ptr %28, align 4 %67 = add nsw i32 %65, %66 store i32 %67, ptr %35, align 4 %68 = load i32, ptr %34, align 4 %69 = load i32, ptr %29, align 4 %70 = add nsw i32 %68, %69 store i32 %70, ptr %33, align 4 %71 = load i32, ptr %30, align 4 store i32 %71, ptr %37, align 4 %72 = load i32, ptr %37, align 4 %73 = load i32, ptr %31, align 4 %74 = add nsw i32 %72, %73 store i32 %74, ptr %38, align 4 %75 = load i32, ptr %37, align 4 %76 = load i32, ptr %32, align 4 %77 = add nsw i32 %75, %76 store i32 %77, ptr %36, align 4 br label %93 78: ; preds = %13 %79 = load i32, ptr %27, align 4 store i32 %79, ptr %34, align 4 %80 = load i32, ptr %34, align 4 %81 = load i32, ptr %16, align 4 %82 = add nsw i32 %80, %81 store i32 %82, ptr %35, align 4 %83 = load i32, ptr %34, align 4 %84 = load i32, ptr %17, align 4 %85 = add nsw i32 %83, %84 store i32 %85, ptr %33, align 4 %86 = load i32, ptr %30, align 4 store i32 %86, ptr %37, align 4 %87 = load i32, ptr %37, align 4 %88 = load i32, ptr %16, align 4 %89 = add nsw i32 %87, %88 store i32 %89, ptr %38, align 4 %90 = load i32, ptr %37, align 4 %91 = load i32, ptr %17, align 4 %92 = add nsw i32 %90, %91 store i32 %92, ptr %36, align 4 br label %93 93: ; preds = %78, %63 %94 = load i32, ptr %33, align 4 %95 = load i32, ptr %34, align 4 %96 = or i32 %94, %95 %97 = load i32, ptr %35, align 4 %98 = or i32 %96, %97 %99 = ashr i32 %98, 8 %100 = icmp ne i32 %99, 0 br i1 %100, label %101, label %108 101: ; preds = %93 %102 = load i32, ptr %33, align 4 %103 = call i32 @lqtvq_clamp255(i32 noundef %102) store i32 %103, ptr %33, align 4 %104 = load i32, ptr %34, align 4 %105 = call i32 @lqtvq_clamp255(i32 noundef %104) store i32 %105, ptr %34, align 4 %106 = load i32, ptr %35, align 4 %107 = call i32 @lqtvq_clamp255(i32 noundef %106) store i32 %107, ptr %35, align 4 br label %108 108: ; preds = %101, %93 %109 = load i32, ptr %36, align 4 %110 = load i32, ptr %37, align 4 %111 = or i32 %109, %110 %112 = load i32, ptr %38, align 4 %113 = or i32 %111, %112 %114 = ashr i32 %113, 8 %115 = icmp ne i32 %114, 0 br i1 %115, label %116, label %123 116: ; preds = %108 %117 = load i32, ptr %36, align 4 %118 = call i32 @lqtvq_clamp255(i32 noundef %117) store i32 %118, ptr %36, align 4 %119 = load i32, ptr %37, align 4 %120 = call i32 @lqtvq_clamp255(i32 noundef %119) store i32 %120, ptr %37, align 4 %121 = load i32, ptr %38, align 4 %122 = call i32 @lqtvq_clamp255(i32 noundef %121) store i32 %122, ptr %38, align 4 br label %123 123: ; preds = %116, %108 %124 = load i32, ptr %33, align 4 %125 = load ptr, ptr %21, align 8 store i32 %124, ptr %125, align 4 %126 = load i32, ptr %34, align 4 %127 = load ptr, ptr %22, align 8 store i32 %126, ptr %127, align 4 %128 = load i32, ptr %35, align 4 %129 = load ptr, ptr %23, align 8 store i32 %128, ptr %129, align 4 %130 = load i32, ptr %36, align 4 %131 = load ptr, ptr %24, align 8 store i32 %130, ptr %131, align 4 %132 = load i32, ptr %37, align 4 %133 = load ptr, ptr %25, align 8 store i32 %132, ptr %133, align 4 %134 = load i32, ptr %38, align 4 %135 = load ptr, ptr %26, align 8 store i32 %134, ptr %135, align 4 ret void } declare i32 @lqtvq_clamp255(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/tmprso0fuyo.c' source_filename = "/tmp/tmprso0fuyo.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @adc_channel() #0 { %1 = load i8, ptr inttoptr (i64 21504 to ptr), align 1 %2 = zext i8 %1 to i32 %3 = and i32 %2, 15 %4 = trunc i32 %3 to i8 ret i8 %4 } attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmprso0fuyo.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @adc_channel() #0 { %1 = load i8, ptr inttoptr (i64 21504 to ptr), align 1 %2 = zext i8 %1 to i32 %3 = and i32 %2, 15 %4 = trunc i32 %3 to i8 ret i8 %4 } attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmp4gv5z8xa.c' source_filename = "/tmp/tmp4gv5z8xa.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Sqr\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @wBuiltinSqr() #0 { %1 = call i32 (...) @wStackPopNumber() %2 = call i32 @sqrt(i32 noundef %1) %3 = call i32 @wStackPushNumberFromRoutine(i32 noundef %2, ptr noundef @.str) ret void } declare i32 @wStackPushNumberFromRoutine(i32 noundef, ptr noundef) #1 declare i32 @sqrt(i32 noundef) #1 declare i32 @wStackPopNumber(...) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmp4gv5z8xa.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Sqr\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @wBuiltinSqr() #0 { %1 = call i32 (...) @wStackPopNumber() %2 = call i32 @sqrt(i32 noundef %1) %3 = call i32 @wStackPushNumberFromRoutine(i32 noundef %2, ptr noundef @.str) ret void } declare i32 @wStackPushNumberFromRoutine(i32 noundef, ptr noundef) #1 declare i32 @sqrt(i32 noundef) #1 declare i32 @wStackPopNumber(...) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmpq2lvm5kw.c' source_filename = "/tmp/tmpq2lvm5kw.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [14 x i8] c"Teste %d\0A%d\0A\0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @main() #0 { %1 = alloca i32, align 4 %2 = alloca i32, align 4 %3 = alloca i32, align 4 %4 = alloca i32, align 4 %5 = alloca i32, align 4 %6 = alloca i32, align 4 store i32 0, ptr %1, align 4 store i32 1, ptr %4, align 4 %7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2) br label %8 8: ; preds = %27, %0 %9 = load i32, ptr %2, align 4 %10 = icmp sgt i32 %9, 0 br i1 %10, label %11, label %33 11: ; preds = %8 store i32 1, ptr %3, align 4 br label %12 12: ; preds = %24, %11 %13 = load i32, ptr %3, align 4 %14 = load i32, ptr %2, align 4 %15 = icmp sle i32 %13, %14 br i1 %15, label %16, label %27 16: ; preds = %12 %17 = call i32 @scanf(ptr noundef @.str, ptr noundef %5) %18 = load i32, ptr %5, align 4 %19 = load i32, ptr %3, align 4 %20 = icmp eq i32 %18, %19 br i1 %20, label %21, label %23 21: ; preds = %16 %22 = load i32, ptr %3, align 4 store i32 %22, ptr %6, align 4 br label %23 23: ; preds = %21, %16 br label %24 24: ; preds = %23 %25 = load i32, ptr %3, align 4 %26 = add nsw i32 %25, 1 store i32 %26, ptr %3, align 4 br label %12, !llvm.loop !6 27: ; preds = %12 %28 = load i32, ptr %4, align 4 %29 = add nsw i32 %28, 1 store i32 %29, ptr %4, align 4 %30 = load i32, ptr %6, align 4 %31 = call i32 @printf(ptr noundef @.str.1, i32 noundef %28, i32 noundef %30) %32 = call i32 @scanf(ptr noundef @.str, ptr noundef %2) br label %8, !llvm.loop !8 33: ; preds = %8 %34 = load i32, ptr %1, align 4 ret i32 %34 } declare i32 @scanf(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"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"} !8 = distinct !{!8, !7}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpq2lvm5kw.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [14 x i8] c"Teste %d\0A%d\0A\0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @main() #0 { %1 = alloca i32, align 4 %2 = alloca i32, align 4 %3 = alloca i32, align 4 %4 = alloca i32, align 4 %5 = alloca i32, align 4 %6 = alloca i32, align 4 store i32 0, ptr %1, align 4 store i32 1, ptr %4, align 4 %7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2) %8 = load i32, ptr %2, align 4 %9 = icmp sgt i32 %8, 0 br i1 %9, label %.lr.ph2, label %36 .lr.ph2: ; preds = %0 br label %10 10: ; preds = %.lr.ph2, %28 store i32 1, ptr %3, align 4 %11 = load i32, ptr %3, align 4 %12 = load i32, ptr %2, align 4 %13 = icmp sle i32 %11, %12 br i1 %13, label %.lr.ph, label %28 .lr.ph: ; preds = %10 br label %14 14: ; preds = %.lr.ph, %22 %15 = call i32 @scanf(ptr noundef @.str, ptr noundef %5) %16 = load i32, ptr %5, align 4 %17 = load i32, ptr %3, align 4 %18 = icmp eq i32 %16, %17 br i1 %18, label %19, label %21 19: ; preds = %14 %20 = load i32, ptr %3, align 4 store i32 %20, ptr %6, align 4 br label %21 21: ; preds = %19, %14 br label %22 22: ; preds = %21 %23 = load i32, ptr %3, align 4 %24 = add nsw i32 %23, 1 store i32 %24, ptr %3, align 4 %25 = load i32, ptr %3, align 4 %26 = load i32, ptr %2, align 4 %27 = icmp sle i32 %25, %26 br i1 %27, label %14, label %._crit_edge, !llvm.loop !6 ._crit_edge: ; preds = %22 br label %28 28: ; preds = %._crit_edge, %10 %29 = load i32, ptr %4, align 4 %30 = add nsw i32 %29, 1 store i32 %30, ptr %4, align 4 %31 = load i32, ptr %6, align 4 %32 = call i32 @printf(ptr noundef @.str.1, i32 noundef %29, i32 noundef %31) %33 = call i32 @scanf(ptr noundef @.str, ptr noundef %2) %34 = load i32, ptr %2, align 4 %35 = icmp sgt i32 %34, 0 br i1 %35, label %10, label %._crit_edge3, !llvm.loop !8 ._crit_edge3: ; preds = %28 br label %36 36: ; preds = %._crit_edge3, %0 %37 = load i32, ptr %1, align 4 ret i32 %37 } declare i32 @scanf(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"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"} !8 = distinct !{!8, !7}
; ModuleID = '/tmp/tmpe39lg45q.c' source_filename = "/tmp/tmpe39lg45q.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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"vid\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local ptr @create_vid_packet(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) #0 { %5 = alloca ptr, align 8 %6 = alloca i64, align 8 %7 = alloca ptr, align 8 %8 = alloca ptr, align 8 store ptr %0, ptr %5, align 8 store i64 %1, ptr %6, align 8 store ptr %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 ptr, ptr %7, align 8 %12 = load ptr, ptr %8, align 8 %13 = call ptr @create_kv_packet(ptr noundef @.str, i32 noundef 3, ptr noundef %9, i64 noundef %10, ptr noundef %11, ptr noundef %12) ret ptr %13 } declare ptr @create_kv_packet(ptr noundef, i32 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpe39lg45q.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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"vid\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local ptr @create_vid_packet(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) #0 { %5 = alloca ptr, align 8 %6 = alloca i64, align 8 %7 = alloca ptr, align 8 %8 = alloca ptr, align 8 store ptr %0, ptr %5, align 8 store i64 %1, ptr %6, align 8 store ptr %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 ptr, ptr %7, align 8 %12 = load ptr, ptr %8, align 8 %13 = call ptr @create_kv_packet(ptr noundef @.str, i32 noundef 3, ptr noundef %9, i64 noundef %10, ptr noundef %11, ptr noundef %12) ret ptr %13 } declare ptr @create_kv_packet(ptr noundef, i32 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmpb135b2rg.c' source_filename = "/tmp/tmpb135b2rg.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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"wb\00", align 1 @.str.1 = private unnamed_addr constant [22 x i8] c"Open file %s failed!\0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @save_file(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 ptr, align 8 store ptr %0, ptr %5, align 8 store ptr %1, ptr %6, align 8 store i32 %2, ptr %7, align 4 %9 = load ptr, ptr %5, align 8 %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 eq ptr %11, null br i1 %12, label %13, label %16 13: ; preds = %3 %14 = load ptr, ptr %5, align 8 %15 = call i32 @printf(ptr noundef @.str.1, ptr noundef %14) store i32 -1, ptr %4, align 4 br label %23 16: ; preds = %3 %17 = load ptr, ptr %6, align 8 %18 = load i32, ptr %7, align 4 %19 = load ptr, ptr %8, align 8 %20 = call i32 @fwrite(ptr noundef %17, i32 noundef %18, i32 noundef 1, ptr noundef %19) %21 = load ptr, ptr %8, align 8 %22 = call i32 @fclose(ptr noundef %21) store i32 0, ptr %4, align 4 br label %23 23: ; preds = %16, %13 %24 = load i32, ptr %4, align 4 ret i32 %24 } declare ptr @fopen(ptr noundef, ptr noundef) #1 declare i32 @printf(ptr noundef, ptr noundef) #1 declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1 declare i32 @fclose(ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpb135b2rg.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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"wb\00", align 1 @.str.1 = private unnamed_addr constant [22 x i8] c"Open file %s failed!\0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @save_file(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 ptr, align 8 store ptr %0, ptr %5, align 8 store ptr %1, ptr %6, align 8 store i32 %2, ptr %7, align 4 %9 = load ptr, ptr %5, align 8 %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 eq ptr %11, null br i1 %12, label %13, label %16 13: ; preds = %3 %14 = load ptr, ptr %5, align 8 %15 = call i32 @printf(ptr noundef @.str.1, ptr noundef %14) store i32 -1, ptr %4, align 4 br label %23 16: ; preds = %3 %17 = load ptr, ptr %6, align 8 %18 = load i32, ptr %7, align 4 %19 = load ptr, ptr %8, align 8 %20 = call i32 @fwrite(ptr noundef %17, i32 noundef %18, i32 noundef 1, ptr noundef %19) %21 = load ptr, ptr %8, align 8 %22 = call i32 @fclose(ptr noundef %21) store i32 0, ptr %4, align 4 br label %23 23: ; preds = %16, %13 %24 = load i32, ptr %4, align 4 ret i32 %24 } declare ptr @fopen(ptr noundef, ptr noundef) #1 declare i32 @printf(ptr noundef, ptr noundef) #1 declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1 declare i32 @fclose(ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmpwk_3zqcs.c' source_filename = "/tmp/tmpwk_3zqcs.c" target datalayout = "e-m:e-p270: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/tmpwk_3zqcs.c" target datalayout = "e-m:e-p270: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/tmpxrvkyeuz.c' source_filename = "/tmp/tmpxrvkyeuz.c" target datalayout = "e-m:e-p270: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/tmpxrvkyeuz.c" target datalayout = "e-m:e-p270: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/tmpstvzoqiq.c' source_filename = "/tmp/tmpstvzoqiq.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.termios = type { i32, ptr } @ICANON = dso_local global i32 0, align 4 @ECHO = dso_local global i32 0, align 4 @VMIN = dso_local global i64 0, align 8 @VTIME = dso_local global i64 0, align 8 @TCSANOW = dso_local global i32 0, align 4 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @set_term_quiet_input(ptr noundef %0) #0 { %2 = alloca ptr, align 8 %3 = alloca %struct.termios, align 8 store ptr %0, ptr %2, align 8 %4 = load ptr, ptr %2, align 8 %5 = call i32 @tcgetattr(i32 noundef 0, ptr noundef %4) %6 = load ptr, ptr %2, align 8 call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 %6, i64 16, i1 false) %7 = load i32, ptr @ICANON, align 4 %8 = load i32, ptr @ECHO, align 4 %9 = or i32 %7, %8 %10 = xor i32 %9, -1 %11 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 0 %12 = load i32, ptr %11, align 8 %13 = and i32 %12, %10 store i32 %13, ptr %11, align 8 %14 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 1 %15 = load ptr, ptr %14, align 8 %16 = load i64, ptr @VMIN, align 8 %17 = getelementptr inbounds i64, ptr %15, i64 %16 store i64 0, ptr %17, align 8 %18 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 1 %19 = load ptr, ptr %18, align 8 %20 = load i64, ptr @VTIME, align 8 %21 = getelementptr inbounds i64, ptr %19, i64 %20 store i64 0, ptr %21, align 8 %22 = load i32, ptr @TCSANOW, align 4 %23 = call i32 @tcsetattr(i32 noundef 0, i32 noundef %22, ptr noundef %3) ret void } declare i32 @tcgetattr(i32 noundef, ptr noundef) #1 ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2 declare i32 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpstvzoqiq.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.termios = type { i32, ptr } @ICANON = dso_local global i32 0, align 4 @ECHO = dso_local global i32 0, align 4 @VMIN = dso_local global i64 0, align 8 @VTIME = dso_local global i64 0, align 8 @TCSANOW = dso_local global i32 0, align 4 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @set_term_quiet_input(ptr noundef %0) #0 { %2 = alloca ptr, align 8 %3 = alloca %struct.termios, align 8 store ptr %0, ptr %2, align 8 %4 = load ptr, ptr %2, align 8 %5 = call i32 @tcgetattr(i32 noundef 0, ptr noundef %4) %6 = load ptr, ptr %2, align 8 call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 %6, i64 16, i1 false) %7 = load i32, ptr @ICANON, align 4 %8 = load i32, ptr @ECHO, align 4 %9 = or i32 %7, %8 %10 = xor i32 %9, -1 %11 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 0 %12 = load i32, ptr %11, align 8 %13 = and i32 %12, %10 store i32 %13, ptr %11, align 8 %14 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 1 %15 = load ptr, ptr %14, align 8 %16 = load i64, ptr @VMIN, align 8 %17 = getelementptr inbounds i64, ptr %15, i64 %16 store i64 0, ptr %17, align 8 %18 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 1 %19 = load ptr, ptr %18, align 8 %20 = load i64, ptr @VTIME, align 8 %21 = getelementptr inbounds i64, ptr %19, i64 %20 store i64 0, ptr %21, align 8 %22 = load i32, ptr @TCSANOW, align 4 %23 = call i32 @tcsetattr(i32 noundef 0, i32 noundef %22, ptr noundef %3) ret void } declare i32 @tcgetattr(i32 noundef, ptr noundef) #1 ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2 declare i32 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmpwcbq2eu1.c' source_filename = "/tmp/tmpwcbq2eu1.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @ENOSYS = 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 @_rename(ptr noundef %0, ptr noundef %1) #0 { %3 = alloca ptr, align 8 %4 = alloca ptr, align 8 store ptr %0, ptr %3, align 8 store ptr %1, ptr %4, align 8 %5 = load i32, ptr @ENOSYS, align 4 store i32 %5, ptr @errno, align 4 ret i32 -1 } attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpwcbq2eu1.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @ENOSYS = 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 @_rename(ptr noundef %0, ptr noundef %1) #0 { %3 = alloca ptr, align 8 %4 = alloca ptr, align 8 store ptr %0, ptr %3, align 8 store ptr %1, ptr %4, align 8 %5 = load i32, ptr @ENOSYS, align 4 store i32 %5, ptr @errno, align 4 ret i32 -1 } attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmp8a_btg9s.c' source_filename = "/tmp/tmp8a_btg9s.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @LCDRasterEnabled(i64 noundef %0) #0 { %2 = alloca i64, align 8 store i64 %0, ptr %2, align 8 %3 = load i64, ptr %2, align 8 %4 = add nsw i64 %3, 40 %5 = inttoptr i64 %4 to ptr %6 = load volatile i64, ptr %5, align 8 %7 = and i64 %6, 1 %8 = icmp ne i64 %7, 0 %9 = zext i1 %8 to i64 %10 = select i1 %8, i32 1, i32 0 ret i32 %10 } attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmp8a_btg9s.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @LCDRasterEnabled(i64 noundef %0) #0 { %2 = alloca i64, align 8 store i64 %0, ptr %2, align 8 %3 = load i64, ptr %2, align 8 %4 = add nsw i64 %3, 40 %5 = inttoptr i64 %4 to ptr %6 = load volatile i64, ptr %5, align 8 %7 = and i64 %6, 1 %8 = icmp ne i64 %7, 0 %9 = zext i1 %8 to i64 %10 = select i1 %8, i32 1, i32 0 ret i32 %10 } attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmpobhbj_pc.c' source_filename = "/tmp/tmpobhbj_pc.c" target datalayout = "e-m:e-p270: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 [10 x i8] c"Hello\00\00\00\00\00", align 1 @__const.main.text2 = private unnamed_addr constant [10 x i8] c"Hi,my name", align 1 @.str = 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 [10 x i8], align 1 %7 = alloca [10 x i8], align 1 store i32 0, ptr %3, align 4 store i32 %0, ptr %4, align 4 store ptr %1, ptr %5, align 8 call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 @__const.main.text, i64 10, i1 false) call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.main.text2, i64 10, i1 false) %8 = getelementptr inbounds [10 x i8], ptr %6, i64 0, i64 0 %9 = call i32 @printf(ptr noundef @.str, ptr noundef %8) %10 = getelementptr inbounds [10 x i8], ptr %7, i64 0, i64 0 %11 = call i32 @printf(ptr noundef @.str, ptr noundef %10) ret i32 0 } ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1 declare i32 @printf(ptr noundef, 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/tmpobhbj_pc.c" target datalayout = "e-m:e-p270: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 [10 x i8] c"Hello\00\00\00\00\00", align 1 @__const.main.text2 = private unnamed_addr constant [10 x i8] c"Hi,my name", align 1 @.str = 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 [10 x i8], align 1 %7 = alloca [10 x i8], align 1 store i32 0, ptr %3, align 4 store i32 %0, ptr %4, align 4 store ptr %1, ptr %5, align 8 call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 @__const.main.text, i64 10, i1 false) call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.main.text2, i64 10, i1 false) %8 = getelementptr inbounds [10 x i8], ptr %6, i64 0, i64 0 %9 = call i32 @printf(ptr noundef @.str, ptr noundef %8) %10 = getelementptr inbounds [10 x i8], ptr %7, i64 0, i64 0 %11 = call i32 @printf(ptr noundef @.str, ptr noundef %10) ret i32 0 } ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1 declare i32 @printf(ptr noundef, 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/tmphus381vk.c' source_filename = "/tmp/tmphus381vk.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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"encoded string: %s\0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @test_string_encode() #0 { %1 = alloca ptr, align 8 %2 = alloca [1024 x i8], align 16 %3 = alloca i32, align 4 store i32 1, ptr %3, align 4 br label %4 4: ; preds = %14, %0 %5 = load i32, ptr %3, align 4 %6 = icmp slt i32 %5, 48 br i1 %6, label %7, label %17 7: ; preds = %4 %8 = load i32, ptr %3, align 4 %9 = trunc i32 %8 to i8 %10 = load i32, ptr %3, align 4 %11 = sub nsw i32 %10, 1 %12 = sext i32 %11 to i64 %13 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 %12 store i8 %9, ptr %13, align 1 br label %14 14: ; preds = %7 %15 = load i32, ptr %3, align 4 %16 = add nsw i32 %15, 1 store i32 %16, ptr %3, align 4 br label %4, !llvm.loop !6 17: ; preds = %4 %18 = load i32, ptr %3, align 4 %19 = sub nsw i32 %18, 1 %20 = sext i32 %19 to i64 %21 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 %20 store i8 0, ptr %21, align 1 %22 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0 %23 = call ptr @json_encode_string(ptr noundef %22) store ptr %23, ptr %1, align 8 %24 = load ptr, ptr %1, align 8 %25 = call i32 @printf(ptr noundef @.str, ptr noundef %24) %26 = load ptr, ptr %1, align 8 %27 = call i32 @free(ptr noundef %26) ret void } declare ptr @json_encode_string(ptr noundef) #1 declare i32 @printf(ptr noundef, ptr noundef) #1 declare i32 @free(ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"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/tmphus381vk.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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"encoded string: %s\0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @test_string_encode() #0 { %1 = alloca ptr, align 8 %2 = alloca [1024 x i8], align 16 %3 = alloca i32, align 4 store i32 1, ptr %3, align 4 %4 = load i32, ptr %3, align 4 %5 = icmp slt i32 %4, 48 br i1 %5, label %.lr.ph, label %18 .lr.ph: ; preds = %0 br label %6 6: ; preds = %.lr.ph, %13 %7 = load i32, ptr %3, align 4 %8 = trunc i32 %7 to i8 %9 = load i32, ptr %3, align 4 %10 = sub nsw i32 %9, 1 %11 = sext i32 %10 to i64 %12 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 %11 store i8 %8, ptr %12, align 1 br label %13 13: ; preds = %6 %14 = load i32, ptr %3, align 4 %15 = add nsw i32 %14, 1 store i32 %15, ptr %3, align 4 %16 = load i32, ptr %3, align 4 %17 = icmp slt i32 %16, 48 br i1 %17, label %6, label %._crit_edge, !llvm.loop !6 ._crit_edge: ; preds = %13 br label %18 18: ; preds = %._crit_edge, %0 %19 = load i32, ptr %3, align 4 %20 = sub nsw i32 %19, 1 %21 = sext i32 %20 to i64 %22 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 %21 store i8 0, ptr %22, align 1 %23 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 0 %24 = call ptr @json_encode_string(ptr noundef %23) store ptr %24, ptr %1, align 8 %25 = load ptr, ptr %1, align 8 %26 = call i32 @printf(ptr noundef @.str, ptr noundef %25) %27 = load ptr, ptr %1, align 8 %28 = call i32 @free(ptr noundef %27) ret void } declare ptr @json_encode_string(ptr noundef) #1 declare i32 @printf(ptr noundef, ptr noundef) #1 declare i32 @free(ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"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/tmp7i3o0h10.c' source_filename = "/tmp/tmp7i3o0h10.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @test_traps() #0 { %1 = call i32 (...) @test_callbacks() ret void } declare i32 @test_callbacks(...) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmp7i3o0h10.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @test_traps() #0 { %1 = call i32 (...) @test_callbacks() ret void } declare i32 @test_callbacks(...) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmps0chfhc9.c' source_filename = "/tmp/tmps0chfhc9.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @ENOMEM = 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 @_execve(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 { %4 = alloca ptr, align 8 %5 = alloca ptr, align 8 %6 = alloca ptr, align 8 store ptr %0, ptr %4, align 8 store ptr %1, ptr %5, align 8 store ptr %2, ptr %6, align 8 %7 = load ptr, ptr %4, align 8 store ptr %7, ptr %4, align 8 %8 = load ptr, ptr %5, align 8 store ptr %8, ptr %5, align 8 %9 = load ptr, ptr %6, align 8 store ptr %9, ptr %6, align 8 %10 = load i32, ptr @ENOMEM, align 4 store i32 %10, ptr @errno, align 4 ret i32 -1 } attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmps0chfhc9.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @ENOMEM = 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 @_execve(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 { %4 = alloca ptr, align 8 %5 = alloca ptr, align 8 %6 = alloca ptr, align 8 store ptr %0, ptr %4, align 8 store ptr %1, ptr %5, align 8 store ptr %2, ptr %6, align 8 %7 = load ptr, ptr %4, align 8 store ptr %7, ptr %4, align 8 %8 = load ptr, ptr %5, align 8 store ptr %8, ptr %5, align 8 %9 = load ptr, ptr %6, align 8 store ptr %9, ptr %6, align 8 %10 = load i32, ptr @ENOMEM, align 4 store i32 %10, ptr @errno, align 4 ret i32 -1 } attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmpbv4c_mvn.c' source_filename = "/tmp/tmpbv4c_mvn.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [37 x i8] c"\07Enter your desired monthly salary: \00", align 1 @.str.1 = private unnamed_addr constant [15 x i8] c" $______\08\08\08\08\08\08\00", align 1 @.str.2 = private unnamed_addr constant [3 x i8] c"%f\00", align 1 @.str.3 = private unnamed_addr constant [34 x i8] c"\0A\09$%.2f a month is $%0.2f a year.\00", align 1 @.str.4 = private unnamed_addr constant [7 x i8] c"\0DGee!\0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @main() #0 { %1 = alloca i32, align 4 %2 = alloca float, align 4 store i32 0, ptr %1, align 4 %3 = call i32 (ptr, ...) @printf(ptr noundef @.str) %4 = call i32 (ptr, ...) @printf(ptr noundef @.str.1) %5 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2) %6 = load float, ptr %2, align 4 %7 = fpext float %6 to double %8 = load float, ptr %2, align 4 %9 = fpext float %8 to double %10 = fmul double %9, 1.200000e+01 %11 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %7, double noundef %10) %12 = call i32 (ptr, ...) @printf(ptr noundef @.str.4) 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/tmpbv4c_mvn.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [37 x i8] c"\07Enter your desired monthly salary: \00", align 1 @.str.1 = private unnamed_addr constant [15 x i8] c" $______\08\08\08\08\08\08\00", align 1 @.str.2 = private unnamed_addr constant [3 x i8] c"%f\00", align 1 @.str.3 = private unnamed_addr constant [34 x i8] c"\0A\09$%.2f a month is $%0.2f a year.\00", align 1 @.str.4 = private unnamed_addr constant [7 x i8] c"\0DGee!\0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @main() #0 { %1 = alloca i32, align 4 %2 = alloca float, align 4 store i32 0, ptr %1, align 4 %3 = call i32 (ptr, ...) @printf(ptr noundef @.str) %4 = call i32 (ptr, ...) @printf(ptr noundef @.str.1) %5 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2) %6 = load float, ptr %2, align 4 %7 = fpext float %6 to double %8 = load float, ptr %2, align 4 %9 = fpext float %8 to double %10 = fmul double %9, 1.200000e+01 %11 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %7, double noundef %10) %12 = call i32 (ptr, ...) @printf(ptr noundef @.str.4) 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/tmp49givas4.c' source_filename = "/tmp/tmp49givas4.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @leesuto_value(ptr noundef %0, ptr noundef %1) #0 { %3 = alloca ptr, align 8 %4 = alloca ptr, align 8 %5 = alloca double, align 8 %6 = alloca double, align 8 %7 = alloca double, align 8 %8 = alloca double, align 8 %9 = alloca double, align 8 %10 = alloca double, align 8 %11 = alloca double, align 8 %12 = alloca double, align 8 store ptr %0, ptr %3, align 8 store ptr %1, ptr %4, align 8 %13 = load ptr, ptr %3, align 8 %14 = getelementptr inbounds double, ptr %13, i64 3 %15 = load double, ptr %14, align 8 %16 = load ptr, ptr %3, align 8 %17 = getelementptr inbounds double, ptr %16, i64 2 %18 = load double, ptr %17, align 8 %19 = fdiv double %15, %18 %20 = call i32 @pow(double noundef %19, i32 noundef 2) %21 = sub nsw i32 1, %20 %22 = sitofp i32 %21 to double store double %22, ptr %11, align 8 %23 = load ptr, ptr %3, align 8 %24 = getelementptr inbounds double, ptr %23, i64 4 %25 = load double, ptr %24, align 8 %26 = load ptr, ptr %3, align 8 %27 = getelementptr inbounds double, ptr %26, i64 2 %28 = load double, ptr %27, align 8 %29 = fdiv double %25, %28 %30 = call i32 @pow(double noundef %29, i32 noundef 2) %31 = sub nsw i32 1, %30 %32 = sitofp i32 %31 to double store double %32, ptr %12, align 8 %33 = load ptr, ptr %3, align 8 %34 = getelementptr inbounds double, ptr %33, i64 0 %35 = load double, ptr %34, align 8 %36 = load ptr, ptr %3, align 8 %37 = getelementptr inbounds double, ptr %36, i64 0 %38 = load double, ptr %37, align 8 %39 = fmul double %35, %38 %40 = call double @log(double noundef 2.000000e+00) #4 %41 = fsub double %40, 5.000000e-01 %42 = call double @log(double noundef 2.000000e+00) #4 %43 = fsub double %42, 7.500000e-01 %44 = load double, ptr %11, align 8 %45 = call double @llvm.fmuladd.f64(double %43, double %44, double %41) %46 = call double @log(double noundef 2.000000e+00) #4 %47 = fsub double %46, 7.500000e-01 %48 = load double, ptr %12, align 8 %49 = call double @llvm.fmuladd.f64(double %47, double %48, double %45) %50 = fdiv double %39, %49 store double %50, ptr %10, align 8 %51 = load ptr, ptr %3, align 8 %52 = getelementptr inbounds double, ptr %51, i64 5 %53 = load double, ptr %52, align 8 %54 = load ptr, ptr %4, align 8 %55 = getelementptr inbounds double, ptr %54, i64 0 %56 = load double, ptr %55, align 8 %57 = load ptr, ptr %3, align 8 %58 = getelementptr inbounds double, ptr %57, i64 6 %59 = load double, ptr %58, align 8 %60 = load ptr, ptr %4, align 8 %61 = getelementptr inbounds double, ptr %60, i64 1 %62 = load double, ptr %61, align 8 %63 = fmul double %59, %62 %64 = call double @llvm.fmuladd.f64(double %53, double %56, double %63) %65 = load ptr, ptr %3, align 8 %66 = getelementptr inbounds double, ptr %65, i64 7 %67 = load double, ptr %66, align 8 %68 = load ptr, ptr %4, align 8 %69 = getelementptr inbounds double, ptr %68, i64 2 %70 = load double, ptr %69, align 8 %71 = call double @llvm.fmuladd.f64(double %67, double %70, double %64) store double %71, ptr %5, align 8 %72 = load ptr, ptr %3, align 8 %73 = getelementptr inbounds double, ptr %72, i64 8 %74 = load double, ptr %73, align 8 %75 = load ptr, ptr %4, align 8 %76 = getelementptr inbounds double, ptr %75, i64 0 %77 = load double, ptr %76, align 8 %78 = load ptr, ptr %3, align 8 %79 = getelementptr inbounds double, ptr %78, i64 9 %80 = load double, ptr %79, align 8 %81 = load ptr, ptr %4, align 8 %82 = getelementptr inbounds double, ptr %81, i64 1 %83 = load double, ptr %82, align 8 %84 = fmul double %80, %83 %85 = call double @llvm.fmuladd.f64(double %74, double %77, double %84) %86 = load ptr, ptr %3, align 8 %87 = getelementptr inbounds double, ptr %86, i64 10 %88 = load double, ptr %87, align 8 %89 = load ptr, ptr %4, align 8 %90 = getelementptr inbounds double, ptr %89, i64 2 %91 = load double, ptr %90, align 8 %92 = call double @llvm.fmuladd.f64(double %88, double %91, double %85) store double %92, ptr %6, align 8 %93 = load ptr, ptr %3, align 8 %94 = getelementptr inbounds double, ptr %93, i64 11 %95 = load double, ptr %94, align 8 %96 = load ptr, ptr %4, align 8 %97 = getelementptr inbounds double, ptr %96, i64 0 %98 = load double, ptr %97, align 8 %99 = load ptr, ptr %3, align 8 %100 = getelementptr inbounds double, ptr %99, i64 12 %101 = load double, ptr %100, align 8 %102 = load ptr, ptr %4, align 8 %103 = getelementptr inbounds double, ptr %102, i64 1 %104 = load double, ptr %103, align 8 %105 = fmul double %101, %104 %106 = call double @llvm.fmuladd.f64(double %95, double %98, double %105) %107 = load ptr, ptr %3, align 8 %108 = getelementptr inbounds double, ptr %107, i64 13 %109 = load double, ptr %108, align 8 %110 = load ptr, ptr %4, align 8 %111 = getelementptr inbounds double, ptr %110, i64 2 %112 = load double, ptr %111, align 8 %113 = call double @llvm.fmuladd.f64(double %109, double %112, double %106) store double %113, ptr %7, align 8 %114 = load double, ptr %5, align 8 %115 = load double, ptr %5, align 8 %116 = load double, ptr %6, align 8 %117 = load double, ptr %6, align 8 %118 = fmul double %116, %117 %119 = call double @llvm.fmuladd.f64(double %114, double %115, double %118) %120 = load double, ptr %7, align 8 %121 = load double, ptr %7, align 8 %122 = call double @llvm.fmuladd.f64(double %120, double %121, double %119) %123 = call double @sqrt(double noundef %122) #4 store double %123, ptr %8, align 8 %124 = load double, ptr %8, align 8 %125 = load ptr, ptr %3, align 8 %126 = getelementptr inbounds double, ptr %125, i64 1 %127 = load double, ptr %126, align 8 %128 = fdiv double %124, %127 store double %128, ptr %9, align 8 %129 = load double, ptr %10, align 8 %130 = load double, ptr %11, align 8 %131 = fdiv double %130, 2.000000e+00 %132 = load double, ptr %12, align 8 %133 = fdiv double %132, 2.000000e+00 %134 = fadd double %131, %133 %135 = load double, ptr %9, align 8 %136 = fdiv double 1.000000e+00, %135 %137 = load double, ptr %9, align 8 %138 = load double, ptr %9, align 8 %139 = fmul double %137, %138 %140 = load double, ptr %9, align 8 %141 = fmul double %139, %140 %142 = fdiv double 1.000000e+00, %141 %143 = fsub double %136, %142 %144 = load double, ptr %9, align 8 %145 = fadd double %144, 1.000000e+00 %146 = call double @log(double noundef %145) #4 %147 = call double @llvm.fmuladd.f64(double %143, double %146, double -1.000000e+00) %148 = load double, ptr %9, align 8 %149 = fmul double 2.000000e+00, %148 %150 = load double, ptr %9, align 8 %151 = load double, ptr %9, align 8 %152 = fmul double 3.000000e+00, %151 %153 = fneg double %152 %154 = call double @llvm.fmuladd.f64(double %149, double %150, double %153) %155 = fadd double %154, 6.000000e+00 %156 = load double, ptr %9, align 8 %157 = fmul double 6.000000e+00, %156 %158 = load double, ptr %9, align 8 %159 = fmul double %157, %158 %160 = fdiv double %155, %159 %161 = fadd double %147, %160 %162 = load double, ptr %11, align 8 %163 = load double, ptr %6, align 8 %164 = fmul double %162, %163 %165 = load double, ptr %6, align 8 %166 = fmul double %164, %165 %167 = load double, ptr %8, align 8 %168 = fmul double 2.000000e+00, %167 %169 = load double, ptr %8, align 8 %170 = fmul double %168, %169 %171 = fdiv double %166, %170 %172 = load double, ptr %12, align 8 %173 = load double, ptr %7, align 8 %174 = fmul double %172, %173 %175 = load double, ptr %7, align 8 %176 = fmul double %174, %175 %177 = load double, ptr %8, align 8 %178 = fmul double 2.000000e+00, %177 %179 = load double, ptr %8, align 8 %180 = fmul double %178, %179 %181 = fdiv double %176, %180 %182 = fadd double %171, %181 %183 = load double, ptr %9, align 8 %184 = load double, ptr %9, align 8 %185 = load double, ptr %9, align 8 %186 = fmul double 3.000000e+00, %185 %187 = fneg double %186 %188 = call double @llvm.fmuladd.f64(double %183, double %184, double %187) %189 = fsub double %188, 6.000000e+00 %190 = load double, ptr %9, align 8 %191 = fmul double 2.000000e+00, %190 %192 = load double, ptr %9, align 8 %193 = fmul double %191, %192 %194 = load double, ptr %9, align 8 %195 = fadd double %194, 1.000000e+00 %196 = fmul double %193, %195 %197 = fdiv double %189, %196 %198 = load double, ptr %9, align 8 %199 = fadd double %198, 1.000000e+00 %200 = call double @log(double noundef %199) #4 %201 = fmul double 3.000000e+00, %200 %202 = load double, ptr %9, align 8 %203 = load double, ptr %9, align 8 %204 = fmul double %202, %203 %205 = load double, ptr %9, align 8 %206 = fmul double %204, %205 %207 = fdiv double %201, %206 %208 = fadd double %197, %207 %209 = fmul double %182, %208 %210 = call double @llvm.fmuladd.f64(double %134, double %161, double %209) %211 = load double, ptr %9, align 8 %212 = fadd double %211, 1.000000e+00 %213 = call double @log(double noundef %212) #4 %214 = load double, ptr %9, align 8 %215 = fdiv double %213, %214 %216 = fsub double %210, %215 %217 = fmul double %129, %216 ret double %217 } declare i32 @pow(double noundef, i32 noundef) #1 ; Function Attrs: nounwind declare double @log(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 @sqrt(double 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 = { 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/tmp49givas4.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @leesuto_value(ptr noundef %0, ptr noundef %1) #0 { %3 = alloca ptr, align 8 %4 = alloca ptr, align 8 %5 = alloca double, align 8 %6 = alloca double, align 8 %7 = alloca double, align 8 %8 = alloca double, align 8 %9 = alloca double, align 8 %10 = alloca double, align 8 %11 = alloca double, align 8 %12 = alloca double, align 8 store ptr %0, ptr %3, align 8 store ptr %1, ptr %4, align 8 %13 = load ptr, ptr %3, align 8 %14 = getelementptr inbounds double, ptr %13, i64 3 %15 = load double, ptr %14, align 8 %16 = load ptr, ptr %3, align 8 %17 = getelementptr inbounds double, ptr %16, i64 2 %18 = load double, ptr %17, align 8 %19 = fdiv double %15, %18 %20 = call i32 @pow(double noundef %19, i32 noundef 2) %21 = sub nsw i32 1, %20 %22 = sitofp i32 %21 to double store double %22, ptr %11, align 8 %23 = load ptr, ptr %3, align 8 %24 = getelementptr inbounds double, ptr %23, i64 4 %25 = load double, ptr %24, align 8 %26 = load ptr, ptr %3, align 8 %27 = getelementptr inbounds double, ptr %26, i64 2 %28 = load double, ptr %27, align 8 %29 = fdiv double %25, %28 %30 = call i32 @pow(double noundef %29, i32 noundef 2) %31 = sub nsw i32 1, %30 %32 = sitofp i32 %31 to double store double %32, ptr %12, align 8 %33 = load ptr, ptr %3, align 8 %34 = getelementptr inbounds double, ptr %33, i64 0 %35 = load double, ptr %34, align 8 %36 = load ptr, ptr %3, align 8 %37 = getelementptr inbounds double, ptr %36, i64 0 %38 = load double, ptr %37, align 8 %39 = fmul double %35, %38 %40 = call double @log(double noundef 2.000000e+00) #4 %41 = fsub double %40, 5.000000e-01 %42 = call double @log(double noundef 2.000000e+00) #4 %43 = fsub double %42, 7.500000e-01 %44 = load double, ptr %11, align 8 %45 = call double @llvm.fmuladd.f64(double %43, double %44, double %41) %46 = call double @log(double noundef 2.000000e+00) #4 %47 = fsub double %46, 7.500000e-01 %48 = load double, ptr %12, align 8 %49 = call double @llvm.fmuladd.f64(double %47, double %48, double %45) %50 = fdiv double %39, %49 store double %50, ptr %10, align 8 %51 = load ptr, ptr %3, align 8 %52 = getelementptr inbounds double, ptr %51, i64 5 %53 = load double, ptr %52, align 8 %54 = load ptr, ptr %4, align 8 %55 = getelementptr inbounds double, ptr %54, i64 0 %56 = load double, ptr %55, align 8 %57 = load ptr, ptr %3, align 8 %58 = getelementptr inbounds double, ptr %57, i64 6 %59 = load double, ptr %58, align 8 %60 = load ptr, ptr %4, align 8 %61 = getelementptr inbounds double, ptr %60, i64 1 %62 = load double, ptr %61, align 8 %63 = fmul double %59, %62 %64 = call double @llvm.fmuladd.f64(double %53, double %56, double %63) %65 = load ptr, ptr %3, align 8 %66 = getelementptr inbounds double, ptr %65, i64 7 %67 = load double, ptr %66, align 8 %68 = load ptr, ptr %4, align 8 %69 = getelementptr inbounds double, ptr %68, i64 2 %70 = load double, ptr %69, align 8 %71 = call double @llvm.fmuladd.f64(double %67, double %70, double %64) store double %71, ptr %5, align 8 %72 = load ptr, ptr %3, align 8 %73 = getelementptr inbounds double, ptr %72, i64 8 %74 = load double, ptr %73, align 8 %75 = load ptr, ptr %4, align 8 %76 = getelementptr inbounds double, ptr %75, i64 0 %77 = load double, ptr %76, align 8 %78 = load ptr, ptr %3, align 8 %79 = getelementptr inbounds double, ptr %78, i64 9 %80 = load double, ptr %79, align 8 %81 = load ptr, ptr %4, align 8 %82 = getelementptr inbounds double, ptr %81, i64 1 %83 = load double, ptr %82, align 8 %84 = fmul double %80, %83 %85 = call double @llvm.fmuladd.f64(double %74, double %77, double %84) %86 = load ptr, ptr %3, align 8 %87 = getelementptr inbounds double, ptr %86, i64 10 %88 = load double, ptr %87, align 8 %89 = load ptr, ptr %4, align 8 %90 = getelementptr inbounds double, ptr %89, i64 2 %91 = load double, ptr %90, align 8 %92 = call double @llvm.fmuladd.f64(double %88, double %91, double %85) store double %92, ptr %6, align 8 %93 = load ptr, ptr %3, align 8 %94 = getelementptr inbounds double, ptr %93, i64 11 %95 = load double, ptr %94, align 8 %96 = load ptr, ptr %4, align 8 %97 = getelementptr inbounds double, ptr %96, i64 0 %98 = load double, ptr %97, align 8 %99 = load ptr, ptr %3, align 8 %100 = getelementptr inbounds double, ptr %99, i64 12 %101 = load double, ptr %100, align 8 %102 = load ptr, ptr %4, align 8 %103 = getelementptr inbounds double, ptr %102, i64 1 %104 = load double, ptr %103, align 8 %105 = fmul double %101, %104 %106 = call double @llvm.fmuladd.f64(double %95, double %98, double %105) %107 = load ptr, ptr %3, align 8 %108 = getelementptr inbounds double, ptr %107, i64 13 %109 = load double, ptr %108, align 8 %110 = load ptr, ptr %4, align 8 %111 = getelementptr inbounds double, ptr %110, i64 2 %112 = load double, ptr %111, align 8 %113 = call double @llvm.fmuladd.f64(double %109, double %112, double %106) store double %113, ptr %7, align 8 %114 = load double, ptr %5, align 8 %115 = load double, ptr %5, align 8 %116 = load double, ptr %6, align 8 %117 = load double, ptr %6, align 8 %118 = fmul double %116, %117 %119 = call double @llvm.fmuladd.f64(double %114, double %115, double %118) %120 = load double, ptr %7, align 8 %121 = load double, ptr %7, align 8 %122 = call double @llvm.fmuladd.f64(double %120, double %121, double %119) %123 = call double @sqrt(double noundef %122) #4 store double %123, ptr %8, align 8 %124 = load double, ptr %8, align 8 %125 = load ptr, ptr %3, align 8 %126 = getelementptr inbounds double, ptr %125, i64 1 %127 = load double, ptr %126, align 8 %128 = fdiv double %124, %127 store double %128, ptr %9, align 8 %129 = load double, ptr %10, align 8 %130 = load double, ptr %11, align 8 %131 = fdiv double %130, 2.000000e+00 %132 = load double, ptr %12, align 8 %133 = fdiv double %132, 2.000000e+00 %134 = fadd double %131, %133 %135 = load double, ptr %9, align 8 %136 = fdiv double 1.000000e+00, %135 %137 = load double, ptr %9, align 8 %138 = load double, ptr %9, align 8 %139 = fmul double %137, %138 %140 = load double, ptr %9, align 8 %141 = fmul double %139, %140 %142 = fdiv double 1.000000e+00, %141 %143 = fsub double %136, %142 %144 = load double, ptr %9, align 8 %145 = fadd double %144, 1.000000e+00 %146 = call double @log(double noundef %145) #4 %147 = call double @llvm.fmuladd.f64(double %143, double %146, double -1.000000e+00) %148 = load double, ptr %9, align 8 %149 = fmul double 2.000000e+00, %148 %150 = load double, ptr %9, align 8 %151 = load double, ptr %9, align 8 %152 = fmul double 3.000000e+00, %151 %153 = fneg double %152 %154 = call double @llvm.fmuladd.f64(double %149, double %150, double %153) %155 = fadd double %154, 6.000000e+00 %156 = load double, ptr %9, align 8 %157 = fmul double 6.000000e+00, %156 %158 = load double, ptr %9, align 8 %159 = fmul double %157, %158 %160 = fdiv double %155, %159 %161 = fadd double %147, %160 %162 = load double, ptr %11, align 8 %163 = load double, ptr %6, align 8 %164 = fmul double %162, %163 %165 = load double, ptr %6, align 8 %166 = fmul double %164, %165 %167 = load double, ptr %8, align 8 %168 = fmul double 2.000000e+00, %167 %169 = load double, ptr %8, align 8 %170 = fmul double %168, %169 %171 = fdiv double %166, %170 %172 = load double, ptr %12, align 8 %173 = load double, ptr %7, align 8 %174 = fmul double %172, %173 %175 = load double, ptr %7, align 8 %176 = fmul double %174, %175 %177 = load double, ptr %8, align 8 %178 = fmul double 2.000000e+00, %177 %179 = load double, ptr %8, align 8 %180 = fmul double %178, %179 %181 = fdiv double %176, %180 %182 = fadd double %171, %181 %183 = load double, ptr %9, align 8 %184 = load double, ptr %9, align 8 %185 = load double, ptr %9, align 8 %186 = fmul double 3.000000e+00, %185 %187 = fneg double %186 %188 = call double @llvm.fmuladd.f64(double %183, double %184, double %187) %189 = fsub double %188, 6.000000e+00 %190 = load double, ptr %9, align 8 %191 = fmul double 2.000000e+00, %190 %192 = load double, ptr %9, align 8 %193 = fmul double %191, %192 %194 = load double, ptr %9, align 8 %195 = fadd double %194, 1.000000e+00 %196 = fmul double %193, %195 %197 = fdiv double %189, %196 %198 = load double, ptr %9, align 8 %199 = fadd double %198, 1.000000e+00 %200 = call double @log(double noundef %199) #4 %201 = fmul double 3.000000e+00, %200 %202 = load double, ptr %9, align 8 %203 = load double, ptr %9, align 8 %204 = fmul double %202, %203 %205 = load double, ptr %9, align 8 %206 = fmul double %204, %205 %207 = fdiv double %201, %206 %208 = fadd double %197, %207 %209 = fmul double %182, %208 %210 = call double @llvm.fmuladd.f64(double %134, double %161, double %209) %211 = load double, ptr %9, align 8 %212 = fadd double %211, 1.000000e+00 %213 = call double @log(double noundef %212) #4 %214 = load double, ptr %9, align 8 %215 = fdiv double %213, %214 %216 = fsub double %210, %215 %217 = fmul double %129, %216 ret double %217 } declare i32 @pow(double noundef, i32 noundef) #1 ; Function Attrs: nounwind declare double @log(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 @sqrt(double 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 = { 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/tmp2olcw5hx.c' source_filename = "/tmp/tmp2olcw5hx.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [14 x i8] c"Hello world!\0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @inlinedFunctionImplementation() #0 { %1 = call i32 @printf(ptr noundef @.str) ret void } declare i32 @printf(ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmp2olcw5hx.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [14 x i8] c"Hello world!\0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @inlinedFunctionImplementation() #0 { %1 = call i32 @printf(ptr noundef @.str) ret void } declare i32 @printf(ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmpgw5ebmts.c' source_filename = "/tmp/tmpgw5ebmts.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [32 x i8] c"LnGamma not implemented for x<0\00", align 1 @.str.1 = private unnamed_addr constant [18 x i8] c"lnGamma undefined\00", align 1 @.str.2 = private unnamed_addr constant [24 x i8] c"strange!! check lngamma\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local double @LnGamma(double noundef %0) #0 { %2 = alloca double, align 8 %3 = alloca double, align 8 %4 = alloca double, align 8 %5 = alloca double, align 8 %6 = alloca double, align 8 %7 = alloca double, align 8 %8 = alloca i32, align 4 store double %0, ptr %3, align 8 store double 0.000000e+00, ptr %4, align 8 store double 0.000000e+00, ptr %5, align 8 %9 = load double, ptr %3, align 8 %10 = fptosi double %9 to i32 store i32 %10, ptr %8, align 4 %11 = load i32, ptr %8, align 4 %12 = sitofp i32 %11 to double %13 = load double, ptr %3, align 8 %14 = fcmp oeq double %12, %13 br i1 %14, label %15, label %27 15: ; preds = %1 %16 = load i32, ptr %8, align 4 %17 = icmp sgt i32 %16, 1 br i1 %17, label %18, label %27 18: ; preds = %15 %19 = load i32, ptr %8, align 4 %20 = icmp slt i32 %19, 12 br i1 %20, label %21, label %27 21: ; preds = %18 %22 = load i32, ptr %8, align 4 %23 = sub nsw i32 %22, 1 %24 = call i64 @factorial(i32 noundef %23) %25 = sitofp i64 %24 to double %26 = call double @log(double noundef %25) #4 store double %26, ptr %7, align 8 br label %103 27: ; preds = %18, %15, %1 %28 = load double, ptr %3, align 8 %29 = fcmp ole double %28, 0.000000e+00 br i1 %29, label %30, label %59 30: ; preds = %27 %31 = call i32 @error2(ptr noundef @.str) %32 = load double, ptr %3, align 8 %33 = fptosi double %32 to i32 %34 = sitofp i32 %33 to double %35 = load double, ptr %3, align 8 %36 = fsub double %34, %35 %37 = fcmp oeq double %36, 0.000000e+00 br i1 %37, label %38, label %40 38: ; preds = %30 %39 = call i32 @puts(ptr noundef @.str.1) store double -1.000000e+00, ptr %2, align 8 br label %105 40: ; preds = %30 store double 1.000000e+00, ptr %5, align 8 br label %41 41: ; preds = %48, %40 %42 = load double, ptr %3, align 8 %43 = fcmp olt double %42, 0.000000e+00 br i1 %43, label %44, label %51 44: ; preds = %41 %45 = load double, ptr %3, align 8 %46 = load double, ptr %5, align 8 %47 = fdiv double %46, %45 store double %47, ptr %5, align 8 br label %48 48: ; preds = %44 %49 = load double, ptr %3, align 8 %50 = fadd double %49, 1.000000e+00 store double %50, ptr %3, align 8 br label %41, !llvm.loop !6 51: ; preds = %41 %52 = load double, ptr %5, align 8 %53 = fcmp olt double %52, 0.000000e+00 br i1 %53, label %54, label %56 54: ; preds = %51 %55 = call i32 @error2(ptr noundef @.str.2) br label %56 56: ; preds = %54, %51 %57 = load double, ptr %5, align 8 %58 = call double @log(double noundef %57) #4 store double %58, ptr %5, align 8 br label %59 59: ; preds = %56, %27 %60 = load double, ptr %3, align 8 %61 = fcmp olt double %60, 7.000000e+00 br i1 %61, label %62, label %78 62: ; preds = %59 store double 1.000000e+00, ptr %4, align 8 %63 = load double, ptr %3, align 8 %64 = fsub double %63, 1.000000e+00 store double %64, ptr %6, align 8 br label %65 65: ; preds = %69, %62 %66 = load double, ptr %6, align 8 %67 = fadd double %66, 1.000000e+00 store double %67, ptr %6, align 8 %68 = fcmp olt double %67, 7.000000e+00 br i1 %68, label %69, label %73 69: ; preds = %65 %70 = load double, ptr %6, align 8 %71 = load double, ptr %4, align 8 %72 = fmul double %71, %70 store double %72, ptr %4, align 8 br label %65, !llvm.loop !8 73: ; preds = %65 %74 = load double, ptr %6, align 8 store double %74, ptr %3, align 8 %75 = load double, ptr %4, align 8 %76 = call double @log(double noundef %75) #4 %77 = fneg double %76 store double %77, ptr %4, align 8 br label %78 78: ; preds = %73, %59 %79 = load double, ptr %3, align 8 %80 = load double, ptr %3, align 8 %81 = fmul double %79, %80 %82 = fdiv double 1.000000e+00, %81 store double %82, ptr %6, align 8 %83 = load double, ptr %5, align 8 %84 = load double, ptr %4, align 8 %85 = fadd double %83, %84 %86 = load double, ptr %3, align 8 %87 = fsub double %86, 5.000000e-01 %88 = load double, ptr %3, align 8 %89 = call double @log(double noundef %88) #4 %90 = call double @llvm.fmuladd.f64(double %87, double %89, double %85) %91 = load double, ptr %3, align 8 %92 = fsub double %90, %91 %93 = fadd double %92, 0x3FED67F1C864BEB7 %94 = load double, ptr %6, align 8 %95 = call double @llvm.fmuladd.f64(double 0xBF438138138134A5, double %94, double 0x3F4A01A01A01A789) %96 = load double, ptr %6, align 8 %97 = call double @llvm.fmuladd.f64(double %95, double %96, double 0xBF66C16C16C16E17) %98 = load double, ptr %6, align 8 %99 = call double @llvm.fmuladd.f64(double %97, double %98, double 0x3FB555555555553D) %100 = load double, ptr %3, align 8 %101 = fdiv double %99, %100 %102 = fadd double %93, %101 store double %102, ptr %7, align 8 br label %103 103: ; preds = %78, %21 %104 = load double, ptr %7, align 8 store double %104, ptr %2, align 8 br label %105 105: ; preds = %103, %38 %106 = load double, ptr %2, align 8 ret double %106 } ; Function Attrs: nounwind declare double @log(double noundef) #1 declare i64 @factorial(i32 noundef) #2 declare i32 @error2(ptr noundef) #2 declare i32 @puts(ptr noundef) #2 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare double @llvm.fmuladd.f64(double, double, double) #3 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { 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 = { "frame-pointer"="all" "no-trapping-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"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"} !8 = distinct !{!8, !7}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpgw5ebmts.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [32 x i8] c"LnGamma not implemented for x<0\00", align 1 @.str.1 = private unnamed_addr constant [18 x i8] c"lnGamma undefined\00", align 1 @.str.2 = private unnamed_addr constant [24 x i8] c"strange!! check lngamma\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local double @LnGamma(double noundef %0) #0 { %2 = alloca double, align 8 %3 = alloca double, align 8 %4 = alloca double, align 8 %5 = alloca double, align 8 %6 = alloca double, align 8 %7 = alloca double, align 8 %8 = alloca i32, align 4 store double %0, ptr %3, align 8 store double 0.000000e+00, ptr %4, align 8 store double 0.000000e+00, ptr %5, align 8 %9 = load double, ptr %3, align 8 %10 = fptosi double %9 to i32 store i32 %10, ptr %8, align 4 %11 = load i32, ptr %8, align 4 %12 = sitofp i32 %11 to double %13 = load double, ptr %3, align 8 %14 = fcmp oeq double %12, %13 br i1 %14, label %15, label %27 15: ; preds = %1 %16 = load i32, ptr %8, align 4 %17 = icmp sgt i32 %16, 1 br i1 %17, label %18, label %27 18: ; preds = %15 %19 = load i32, ptr %8, align 4 %20 = icmp slt i32 %19, 12 br i1 %20, label %21, label %27 21: ; preds = %18 %22 = load i32, ptr %8, align 4 %23 = sub nsw i32 %22, 1 %24 = call i64 @factorial(i32 noundef %23) %25 = sitofp i64 %24 to double %26 = call double @log(double noundef %25) #4 store double %26, ptr %7, align 8 br label %106 27: ; preds = %18, %15, %1 %28 = load double, ptr %3, align 8 %29 = fcmp ole double %28, 0.000000e+00 br i1 %29, label %30, label %60 30: ; preds = %27 %31 = call i32 @error2(ptr noundef @.str) %32 = load double, ptr %3, align 8 %33 = fptosi double %32 to i32 %34 = sitofp i32 %33 to double %35 = load double, ptr %3, align 8 %36 = fsub double %34, %35 %37 = fcmp oeq double %36, 0.000000e+00 br i1 %37, label %38, label %40 38: ; preds = %30 %39 = call i32 @puts(ptr noundef @.str.1) store double -1.000000e+00, ptr %2, align 8 br label %108 40: ; preds = %30 store double 1.000000e+00, ptr %5, align 8 %41 = load double, ptr %3, align 8 %42 = fcmp olt double %41, 0.000000e+00 br i1 %42, label %.lr.ph, label %52 .lr.ph: ; preds = %40 br label %43 43: ; preds = %.lr.ph, %47 %44 = load double, ptr %3, align 8 %45 = load double, ptr %5, align 8 %46 = fdiv double %45, %44 store double %46, ptr %5, align 8 br label %47 47: ; preds = %43 %48 = load double, ptr %3, align 8 %49 = fadd double %48, 1.000000e+00 store double %49, ptr %3, align 8 %50 = load double, ptr %3, align 8 %51 = fcmp olt double %50, 0.000000e+00 br i1 %51, label %43, label %._crit_edge, !llvm.loop !6 ._crit_edge: ; preds = %47 br label %52 52: ; preds = %._crit_edge, %40 %53 = load double, ptr %5, align 8 %54 = fcmp olt double %53, 0.000000e+00 br i1 %54, label %55, label %57 55: ; preds = %52 %56 = call i32 @error2(ptr noundef @.str.2) br label %57 57: ; preds = %55, %52 %58 = load double, ptr %5, align 8 %59 = call double @log(double noundef %58) #4 store double %59, ptr %5, align 8 br label %60 60: ; preds = %57, %27 %61 = load double, ptr %3, align 8 %62 = fcmp olt double %61, 7.000000e+00 br i1 %62, label %63, label %81 63: ; preds = %60 store double 1.000000e+00, ptr %4, align 8 %64 = load double, ptr %3, align 8 %65 = fsub double %64, 1.000000e+00 store double %65, ptr %6, align 8 %66 = load double, ptr %6, align 8 %67 = fadd double %66, 1.000000e+00 store double %67, ptr %6, align 8 %68 = fcmp olt double %67, 7.000000e+00 br i1 %68, label %.lr.ph2, label %76 .lr.ph2: ; preds = %63 br label %69 69: ; preds = %.lr.ph2, %69 %70 = load double, ptr %6, align 8 %71 = load double, ptr %4, align 8 %72 = fmul double %71, %70 store double %72, ptr %4, align 8 %73 = load double, ptr %6, align 8 %74 = fadd double %73, 1.000000e+00 store double %74, ptr %6, align 8 %75 = fcmp olt double %74, 7.000000e+00 br i1 %75, label %69, label %._crit_edge3, !llvm.loop !8 ._crit_edge3: ; preds = %69 br label %76 76: ; preds = %._crit_edge3, %63 %77 = load double, ptr %6, align 8 store double %77, ptr %3, align 8 %78 = load double, ptr %4, align 8 %79 = call double @log(double noundef %78) #4 %80 = fneg double %79 store double %80, ptr %4, align 8 br label %81 81: ; preds = %76, %60 %82 = load double, ptr %3, align 8 %83 = load double, ptr %3, align 8 %84 = fmul double %82, %83 %85 = fdiv double 1.000000e+00, %84 store double %85, ptr %6, align 8 %86 = load double, ptr %5, align 8 %87 = load double, ptr %4, align 8 %88 = fadd double %86, %87 %89 = load double, ptr %3, align 8 %90 = fsub double %89, 5.000000e-01 %91 = load double, ptr %3, align 8 %92 = call double @log(double noundef %91) #4 %93 = call double @llvm.fmuladd.f64(double %90, double %92, double %88) %94 = load double, ptr %3, align 8 %95 = fsub double %93, %94 %96 = fadd double %95, 0x3FED67F1C864BEB7 %97 = load double, ptr %6, align 8 %98 = call double @llvm.fmuladd.f64(double 0xBF438138138134A5, double %97, double 0x3F4A01A01A01A789) %99 = load double, ptr %6, align 8 %100 = call double @llvm.fmuladd.f64(double %98, double %99, double 0xBF66C16C16C16E17) %101 = load double, ptr %6, align 8 %102 = call double @llvm.fmuladd.f64(double %100, double %101, double 0x3FB555555555553D) %103 = load double, ptr %3, align 8 %104 = fdiv double %102, %103 %105 = fadd double %96, %104 store double %105, ptr %7, align 8 br label %106 106: ; preds = %81, %21 %107 = load double, ptr %7, align 8 store double %107, ptr %2, align 8 br label %108 108: ; preds = %106, %38 %109 = load double, ptr %2, align 8 ret double %109 } ; Function Attrs: nounwind declare double @log(double noundef) #1 declare i64 @factorial(i32 noundef) #2 declare i32 @error2(ptr noundef) #2 declare i32 @puts(ptr noundef) #2 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare double @llvm.fmuladd.f64(double, double, double) #3 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { 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 = { "frame-pointer"="all" "no-trapping-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"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"} !8 = distinct !{!8, !7}
; ModuleID = '/tmp/tmp6r2jw2ka.c' source_filename = "/tmp/tmp6r2jw2ka.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @WsfCsEnter() #0 { %1 = call i32 (...) @wsf_mbed_os_critical_section_enter() ret void } declare i32 @wsf_mbed_os_critical_section_enter(...) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmp6r2jw2ka.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @WsfCsEnter() #0 { %1 = call i32 (...) @wsf_mbed_os_critical_section_enter() ret void } declare i32 @wsf_mbed_os_critical_section_enter(...) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmp6hhr8aaj.c' source_filename = "/tmp/tmp6hhr8aaj.c" target datalayout = "e-m:e-p270: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/tmp6hhr8aaj.c" target datalayout = "e-m:e-p270: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/tmpt7qkedje.c' source_filename = "/tmp/tmpt7qkedje.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @opt_get_int(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 ptr, align 8 store ptr %0, ptr %5, align 8 store ptr %1, ptr %6, align 8 store i32 %2, ptr %7, align 4 %9 = load ptr, ptr %5, align 8 %10 = load ptr, ptr %6, align 8 %11 = call ptr @opt_get_string(ptr noundef %9, ptr noundef %10, ptr noundef null) store ptr %11, ptr %8, align 8 %12 = load ptr, ptr %8, align 8 %13 = icmp ne ptr %12, null br i1 %13, label %14, label %17 14: ; preds = %3 %15 = load ptr, ptr %8, align 8 %16 = call i32 @atoi(ptr noundef %15) store i32 %16, ptr %4, align 4 br label %19 17: ; preds = %3 %18 = load i32, ptr %7, align 4 store i32 %18, ptr %4, align 4 br label %19 19: ; preds = %17, %14 %20 = load i32, ptr %4, align 4 ret i32 %20 } declare ptr @opt_get_string(ptr noundef, ptr noundef, ptr noundef) #1 declare i32 @atoi(ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpt7qkedje.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @opt_get_int(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 ptr, align 8 store ptr %0, ptr %5, align 8 store ptr %1, ptr %6, align 8 store i32 %2, ptr %7, align 4 %9 = load ptr, ptr %5, align 8 %10 = load ptr, ptr %6, align 8 %11 = call ptr @opt_get_string(ptr noundef %9, ptr noundef %10, ptr noundef null) store ptr %11, ptr %8, align 8 %12 = load ptr, ptr %8, align 8 %13 = icmp ne ptr %12, null br i1 %13, label %14, label %17 14: ; preds = %3 %15 = load ptr, ptr %8, align 8 %16 = call i32 @atoi(ptr noundef %15) store i32 %16, ptr %4, align 4 br label %19 17: ; preds = %3 %18 = load i32, ptr %7, align 4 store i32 %18, ptr %4, align 4 br label %19 19: ; preds = %17, %14 %20 = load i32, ptr %4, align 4 ret i32 %20 } declare ptr @opt_get_string(ptr noundef, ptr noundef, ptr noundef) #1 declare i32 @atoi(ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmp7ipk65_w.c' source_filename = "/tmp/tmp7ipk65_w.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @INT8_MAX = dso_local global i64 0, align 8 @INT8_MIN = dso_local global i64 0, align 8 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i64 @__hsail_cvt_zeroi_sat_s8_f32(float noundef %0) #0 { %2 = alloca i64, align 8 %3 = alloca float, align 4 store float %0, ptr %3, align 4 %4 = load float, ptr %3, align 4 %5 = call i64 @isnan(float noundef %4) %6 = icmp ne i64 %5, 0 br i1 %6, label %7, label %8 7: ; preds = %1 store i64 0, ptr %2, align 8 br label %25 8: ; preds = %1 %9 = load float, ptr %3, align 4 %10 = load i64, ptr @INT8_MAX, align 8 %11 = sitofp i64 %10 to float %12 = fcmp oge float %9, %11 br i1 %12, label %13, label %15 13: ; preds = %8 %14 = load i64, ptr @INT8_MAX, align 8 store i64 %14, ptr %2, align 8 br label %25 15: ; preds = %8 %16 = load float, ptr %3, align 4 %17 = load i64, ptr @INT8_MIN, align 8 %18 = sitofp i64 %17 to float %19 = fcmp ole float %16, %18 br i1 %19, label %20, label %22 20: ; preds = %15 %21 = load i64, ptr @INT8_MIN, align 8 store i64 %21, ptr %2, align 8 br label %25 22: ; preds = %15 %23 = load float, ptr %3, align 4 %24 = fptosi float %23 to i64 store i64 %24, ptr %2, align 8 br label %25 25: ; preds = %22, %20, %13, %7 %26 = load i64, ptr %2, align 8 ret i64 %26 } declare i64 @isnan(float noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmp7ipk65_w.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @INT8_MAX = dso_local global i64 0, align 8 @INT8_MIN = dso_local global i64 0, align 8 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i64 @__hsail_cvt_zeroi_sat_s8_f32(float noundef %0) #0 { %2 = alloca i64, align 8 %3 = alloca float, align 4 store float %0, ptr %3, align 4 %4 = load float, ptr %3, align 4 %5 = call i64 @isnan(float noundef %4) %6 = icmp ne i64 %5, 0 br i1 %6, label %7, label %8 7: ; preds = %1 store i64 0, ptr %2, align 8 br label %25 8: ; preds = %1 %9 = load float, ptr %3, align 4 %10 = load i64, ptr @INT8_MAX, align 8 %11 = sitofp i64 %10 to float %12 = fcmp oge float %9, %11 br i1 %12, label %13, label %15 13: ; preds = %8 %14 = load i64, ptr @INT8_MAX, align 8 store i64 %14, ptr %2, align 8 br label %25 15: ; preds = %8 %16 = load float, ptr %3, align 4 %17 = load i64, ptr @INT8_MIN, align 8 %18 = sitofp i64 %17 to float %19 = fcmp ole float %16, %18 br i1 %19, label %20, label %22 20: ; preds = %15 %21 = load i64, ptr @INT8_MIN, align 8 store i64 %21, ptr %2, align 8 br label %25 22: ; preds = %15 %23 = load float, ptr %3, align 4 %24 = fptosi float %23 to i64 store i64 %24, ptr %2, align 8 br label %25 25: ; preds = %22, %20, %13, %7 %26 = load i64, ptr %2, align 8 ret i64 %26 } declare i64 @isnan(float noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmpjm07k7q_.c' source_filename = "/tmp/tmpjm07k7q_.c" target datalayout = "e-m:e-p270: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/tmpjm07k7q_.c" target datalayout = "e-m:e-p270: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/tmpou7i1elb.c' source_filename = "/tmp/tmpou7i1elb.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @P(i32 noundef %0, i32 noundef %1) #0 { %3 = alloca i32, align 4 %4 = alloca i32, align 4 store i32 %0, ptr %3, align 4 store i32 %1, ptr %4, align 4 %5 = load i32, ptr %3, align 4 %6 = call i32 @fact(i32 noundef %5) %7 = load i32, ptr %3, align 4 %8 = load i32, ptr %4, align 4 %9 = sub nsw i32 %7, %8 %10 = call i32 @fact(i32 noundef %9) %11 = sdiv i32 %6, %10 ret i32 %11 } declare i32 @fact(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/tmpou7i1elb.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @P(i32 noundef %0, i32 noundef %1) #0 { %3 = alloca i32, align 4 %4 = alloca i32, align 4 store i32 %0, ptr %3, align 4 store i32 %1, ptr %4, align 4 %5 = load i32, ptr %3, align 4 %6 = call i32 @fact(i32 noundef %5) %7 = load i32, ptr %3, align 4 %8 = load i32, ptr %4, align 4 %9 = sub nsw i32 %7, %8 %10 = call i32 @fact(i32 noundef %9) %11 = sdiv i32 %6, %10 ret i32 %11 } declare i32 @fact(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/tmpjrr299w1.c' source_filename = "/tmp/tmpjrr299w1.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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 j\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @t_isodigit_0x6a() #0 { %1 = call i64 @isodigit(i32 noundef 106) %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 535, 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/tmpjrr299w1.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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 j\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @t_isodigit_0x6a() #0 { %1 = call i64 @isodigit(i32 noundef 106) %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 535, 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/tmpijdp208r.c' source_filename = "/tmp/tmpijdp208r.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @waitdisk() #0 { br label %1 1: ; preds = %5, %0 %2 = call i32 @inb(i32 noundef 503) %3 = and i32 %2, 192 %4 = icmp ne i32 %3, 64 br i1 %4, label %5, label %6 5: ; preds = %1 br label %1, !llvm.loop !6 6: ; preds = %1 ret void } declare i32 @inb(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/tmpijdp208r.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @waitdisk() #0 { br label %1 1: ; preds = %1, %0 %2 = call i32 @inb(i32 noundef 503) %3 = and i32 %2, 192 %4 = icmp ne i32 %3, 64 br i1 %4, label %1, label %5, !llvm.loop !6 5: ; preds = %1 ret void } declare i32 @inb(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/tmptc5ui35k.c' source_filename = "/tmp/tmptc5ui35k.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @EXIT_SUCCESS = dso_local global i32 0, align 4 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @setParam(ptr noundef %0, ptr noundef %1) #0 { %3 = alloca ptr, align 8 %4 = alloca ptr, align 8 %5 = alloca i32, align 4 store ptr %0, ptr %3, align 8 store ptr %1, ptr %4, align 8 %6 = load i32, ptr @EXIT_SUCCESS, align 4 store i32 %6, ptr %5, align 4 %7 = load ptr, ptr %3, align 8 %8 = call i32 @getParamEnumFromString(ptr noundef %7) %9 = call i32 @getParamFromParamEnum(i32 noundef %8) %10 = load ptr, ptr %4, align 8 %11 = call i32 @assignValueToParam(i32 noundef %9, ptr noundef %10) store i32 %11, ptr %5, align 4 %12 = load i32, ptr %5, align 4 ret i32 %12 } declare i32 @assignValueToParam(i32 noundef, ptr noundef) #1 declare i32 @getParamFromParamEnum(i32 noundef) #1 declare i32 @getParamEnumFromString(ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmptc5ui35k.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @EXIT_SUCCESS = dso_local global i32 0, align 4 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @setParam(ptr noundef %0, ptr noundef %1) #0 { %3 = alloca ptr, align 8 %4 = alloca ptr, align 8 %5 = alloca i32, align 4 store ptr %0, ptr %3, align 8 store ptr %1, ptr %4, align 8 %6 = load i32, ptr @EXIT_SUCCESS, align 4 store i32 %6, ptr %5, align 4 %7 = load ptr, ptr %3, align 8 %8 = call i32 @getParamEnumFromString(ptr noundef %7) %9 = call i32 @getParamFromParamEnum(i32 noundef %8) %10 = load ptr, ptr %4, align 8 %11 = call i32 @assignValueToParam(i32 noundef %9, ptr noundef %10) store i32 %11, ptr %5, align 4 %12 = load i32, ptr %5, align 4 ret i32 %12 } declare i32 @assignValueToParam(i32 noundef, ptr noundef) #1 declare i32 @getParamFromParamEnum(i32 noundef) #1 declare i32 @getParamEnumFromString(ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmpmoydspc9.c' source_filename = "/tmp/tmpmoydspc9.c" target datalayout = "e-m:e-p270: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/tmpmoydspc9.c" target datalayout = "e-m:e-p270: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/tmpt1qhf7ie.c' source_filename = "/tmp/tmpt1qhf7ie.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @stdout = dso_local global i32 0, align 4 @.str = private unnamed_addr constant [19 x i8] c"Introduce %s[%d]: \00", align 1 @stdin = dso_local global i32 0, align 4 @.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @pedir_vector(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 { %4 = alloca ptr, align 8 %5 = alloca ptr, align 8 %6 = alloca i32, align 4 %7 = alloca i32, align 4 store ptr %0, ptr %4, align 8 store ptr %1, ptr %5, align 8 store i32 %2, ptr %6, align 4 store i32 0, ptr %7, align 4 br label %8 8: ; preds = %23, %3 %9 = load i32, ptr %7, align 4 %10 = load i32, ptr %6, align 4 %11 = icmp slt i32 %9, %10 br i1 %11, label %12, label %26 12: ; preds = %8 %13 = load i32, ptr @stdout, align 4 %14 = load ptr, ptr %4, align 8 %15 = load i32, ptr %7, align 4 %16 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str, ptr noundef %14, i32 noundef %15) %17 = load i32, ptr @stdin, align 4 %18 = load ptr, ptr %5, align 8 %19 = load i32, ptr %7, align 4 %20 = sext i32 %19 to i64 %21 = getelementptr inbounds i32, ptr %18, i64 %20 %22 = call i32 @fscanf(i32 noundef %17, ptr noundef @.str.1, ptr noundef %21) br label %23 23: ; preds = %12 %24 = load i32, ptr %7, align 4 %25 = add nsw i32 %24, 1 store i32 %25, ptr %7, align 4 br label %8, !llvm.loop !6 26: ; preds = %8 ret void } declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1 declare i32 @fscanf(i32 noundef, ptr noundef, ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpt1qhf7ie.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @stdout = dso_local global i32 0, align 4 @.str = private unnamed_addr constant [19 x i8] c"Introduce %s[%d]: \00", align 1 @stdin = dso_local global i32 0, align 4 @.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @pedir_vector(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 { %4 = alloca ptr, align 8 %5 = alloca ptr, align 8 %6 = alloca i32, align 4 %7 = alloca i32, align 4 store ptr %0, ptr %4, align 8 store ptr %1, ptr %5, align 8 store i32 %2, ptr %6, align 4 store i32 0, ptr %7, align 4 %8 = load i32, ptr %7, align 4 %9 = load i32, ptr %6, align 4 %10 = icmp slt i32 %8, %9 br i1 %10, label %.lr.ph, label %28 .lr.ph: ; preds = %3 br label %11 11: ; preds = %.lr.ph, %22 %12 = load i32, ptr @stdout, align 4 %13 = load ptr, ptr %4, align 8 %14 = load i32, ptr %7, align 4 %15 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str, ptr noundef %13, i32 noundef %14) %16 = load i32, ptr @stdin, align 4 %17 = load ptr, ptr %5, align 8 %18 = load i32, ptr %7, align 4 %19 = sext i32 %18 to i64 %20 = getelementptr inbounds i32, ptr %17, i64 %19 %21 = call i32 @fscanf(i32 noundef %16, ptr noundef @.str.1, ptr noundef %20) br label %22 22: ; preds = %11 %23 = load i32, ptr %7, align 4 %24 = add nsw i32 %23, 1 store i32 %24, ptr %7, align 4 %25 = load i32, ptr %7, align 4 %26 = load i32, ptr %6, align 4 %27 = icmp slt i32 %25, %26 br i1 %27, label %11, label %._crit_edge, !llvm.loop !6 ._crit_edge: ; preds = %22 br label %28 28: ; preds = %._crit_edge, %3 ret void } declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1 declare i32 @fscanf(i32 noundef, ptr noundef, ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"}
; ModuleID = '/tmp/tmpqpkddjh_.c' source_filename = "/tmp/tmpqpkddjh_.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.stat = type { i32, i32, i32 } %struct.dirent = type { i32 } @.str = private unnamed_addr constant [15 x i8] c"Internal Error\00", align 1 @.str.1 = private unnamed_addr constant [33 x i8] c"Config error - no dir specified.\00", align 1 @.str.2 = private unnamed_addr constant [33 x i8] c"Config error - couldn't chdir().\00", align 1 @stdin = dso_local global i32 0, align 4 @.str.3 = private unnamed_addr constant [12 x i8] c"Bad Request\00", align 1 @.str.4 = private unnamed_addr constant [18 x i8] c"No request found.\00", align 1 @.str.5 = private unnamed_addr constant [18 x i8] c"%[^ ] %[^ ] %[^ ]\00", align 1 @.str.6 = private unnamed_addr constant [21 x i8] c"Can't parse request.\00", align 1 @.str.7 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1 @.str.8 = private unnamed_addr constant [3 x i8] c"\0D\0A\00", align 1 @.str.9 = private unnamed_addr constant [4 x i8] c"get\00", align 1 @.str.10 = private unnamed_addr constant [16 x i8] c"Not Implemented\00", align 1 @.str.11 = private unnamed_addr constant [32 x i8] c"That method is not implemented.\00", align 1 @.str.12 = private unnamed_addr constant [14 x i8] c"Bad filename.\00", align 1 @.str.13 = private unnamed_addr constant [3 x i8] c"./\00", align 1 @.str.14 = private unnamed_addr constant [3 x i8] c"..\00", align 1 @.str.15 = private unnamed_addr constant [4 x i8] c"../\00", align 1 @.str.16 = private unnamed_addr constant [5 x i8] c"/../\00", align 1 @.str.17 = private unnamed_addr constant [4 x i8] c"/..\00", align 1 @.str.18 = private unnamed_addr constant [18 x i8] c"Illegal filename.\00", align 1 @.str.19 = private unnamed_addr constant [10 x i8] c"Not Found\00", align 1 @.str.20 = private unnamed_addr constant [16 x i8] c"File not found.\00", align 1 @.str.21 = private unnamed_addr constant [14 x i8] c"Location: %s/\00", align 1 @.str.22 = private unnamed_addr constant [6 x i8] c"Found\00", align 1 @.str.23 = private unnamed_addr constant [35 x i8] c"Directories must end with a slash.\00", align 1 @.str.24 = private unnamed_addr constant [13 x i8] c"%sindex.html\00", align 1 @.str.25 = private unnamed_addr constant [3 x i8] c"Ok\00", align 1 @.str.26 = private unnamed_addr constant [10 x i8] c"text/html\00", align 1 @.str.27 = private unnamed_addr constant [98 x i8] c"<html><head><title>Index of %s</title></head>\0A<body bgcolor=\22#99cc99\22><h4>Index of %s</h4>\0A<pre>\0A\00", align 1 @alphasort = dso_local global i32 0, align 4 @.str.28 = private unnamed_addr constant [8 x i8] c"scandir\00", align 1 @.str.29 = private unnamed_addr constant [67 x i8] c"</pre>\0A<hr>\0A<address><a href=\22%s\22>%s</a></address>\0A</body></html>\0A\00", align 1 @.str.30 = private unnamed_addr constant [42 x i8] c"http://www.acme.com/software/micro_httpd/\00", align 1 @.str.31 = private unnamed_addr constant [12 x i8] c"micro_httpd\00", align 1 @.str.32 = private unnamed_addr constant [2 x i8] c"r\00", align 1 @.str.33 = private unnamed_addr constant [10 x i8] c"Forbidden\00", align 1 @.str.34 = private unnamed_addr constant [19 x i8] c"File is protected.\00", align 1 @EOF = dso_local global i32 0, align 4 @stdout = dso_local global i32 0, align 4 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 { %3 = alloca i32, align 4 %4 = alloca i32, align 4 %5 = alloca ptr, align 8 %6 = alloca [10000 x i8], align 16 %7 = alloca [10000 x i8], align 16 %8 = alloca [10000 x i8], align 16 %9 = alloca [10000 x i8], align 16 %10 = alloca [20000 x i8], align 16 %11 = alloca [20000 x i8], align 16 %12 = alloca [20000 x i8], align 16 %13 = alloca ptr, align 8 %14 = alloca i64, align 8 %15 = alloca i32, align 4 %16 = alloca %struct.stat, align 4 %17 = alloca ptr, align 8 %18 = alloca ptr, align 8 %19 = alloca i32, align 4 %20 = 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 %21 = load i32, ptr %4, align 4 %22 = icmp ne i32 %21, 2 br i1 %22, label %23, label %25 23: ; preds = %2 %24 = call i32 @send_error(i32 noundef 500, ptr noundef @.str, ptr noundef null, ptr noundef @.str.1) br label %25 25: ; preds = %23, %2 %26 = load ptr, ptr %5, align 8 %27 = getelementptr inbounds ptr, ptr %26, i64 1 %28 = load ptr, ptr %27, align 8 %29 = call i64 @chdir(ptr noundef %28) %30 = icmp slt i64 %29, 0 br i1 %30, label %31, label %33 31: ; preds = %25 %32 = call i32 @send_error(i32 noundef 500, ptr noundef @.str, ptr noundef null, ptr noundef @.str.2) br label %33 33: ; preds = %31, %25 %34 = getelementptr inbounds [10000 x i8], ptr %6, i64 0, i64 0 %35 = load i32, ptr @stdin, align 4 %36 = call ptr @fgets(ptr noundef %34, i32 noundef 10000, i32 noundef %35) %37 = icmp eq ptr %36, null br i1 %37, label %38, label %40 38: ; preds = %33 %39 = call i32 @send_error(i32 noundef 400, ptr noundef @.str.3, ptr noundef null, ptr noundef @.str.4) br label %40 40: ; preds = %38, %33 %41 = getelementptr inbounds [10000 x i8], ptr %6, i64 0, i64 0 %42 = getelementptr inbounds [10000 x i8], ptr %7, i64 0, i64 0 %43 = getelementptr inbounds [10000 x i8], ptr %8, i64 0, i64 0 %44 = getelementptr inbounds [10000 x i8], ptr %9, i64 0, i64 0 %45 = call i32 @sscanf(ptr noundef %41, ptr noundef @.str.5, ptr noundef %42, ptr noundef %43, ptr noundef %44) %46 = icmp ne i32 %45, 3 br i1 %46, label %47, label %49 47: ; preds = %40 %48 = call i32 @send_error(i32 noundef 400, ptr noundef @.str.3, ptr noundef null, ptr noundef @.str.6) br label %49 49: ; preds = %47, %40 br label %50 50: ; preds = %64, %49 %51 = getelementptr inbounds [10000 x i8], ptr %6, i64 0, i64 0 %52 = load i32, ptr @stdin, align 4 %53 = call ptr @fgets(ptr noundef %51, i32 noundef 10000, i32 noundef %52) %54 = icmp ne ptr %53, null br i1 %54, label %55, label %65 55: ; preds = %50 %56 = getelementptr inbounds [10000 x i8], ptr %6, i64 0, i64 0 %57 = call i64 @strcmp(ptr noundef %56, ptr noundef @.str.7) %58 = icmp eq i64 %57, 0 br i1 %58, label %63, label %59 59: ; preds = %55 %60 = getelementptr inbounds [10000 x i8], ptr %6, i64 0, i64 0 %61 = call i64 @strcmp(ptr noundef %60, ptr noundef @.str.8) %62 = icmp eq i64 %61, 0 br i1 %62, label %63, label %64 63: ; preds = %59, %55 br label %65 64: ; preds = %59 br label %50, !llvm.loop !6 65: ; preds = %63, %50 %66 = getelementptr inbounds [10000 x i8], ptr %7, i64 0, i64 0 %67 = call i64 @strcasecmp(ptr noundef %66, ptr noundef @.str.9) %68 = icmp ne i64 %67, 0 br i1 %68, label %69, label %71 69: ; preds = %65 %70 = call i32 @send_error(i32 noundef 501, ptr noundef @.str.10, ptr noundef null, ptr noundef @.str.11) br label %71 71: ; preds = %69, %65 %72 = getelementptr inbounds [10000 x i8], ptr %8, i64 0, i64 0 %73 = load i8, ptr %72, align 16 %74 = sext i8 %73 to i32 %75 = icmp ne i32 %74, 47 br i1 %75, label %76, label %78 76: ; preds = %71 %77 = call i32 @send_error(i32 noundef 400, ptr noundef @.str.3, ptr noundef null, ptr noundef @.str.12) br label %78 78: ; preds = %76, %71 %79 = getelementptr inbounds [10000 x i8], ptr %8, i64 0, i64 1 store ptr %79, ptr %13, align 8 %80 = load ptr, ptr %13, align 8 %81 = load ptr, ptr %13, align 8 %82 = call i32 @strdecode(ptr noundef %80, ptr noundef %81) %83 = load ptr, ptr %13, align 8 %84 = getelementptr inbounds i8, ptr %83, i64 0 %85 = load i8, ptr %84, align 1 %86 = sext i8 %85 to i32 %87 = icmp eq i32 %86, 0 br i1 %87, label %88, label %89 88: ; preds = %78 store ptr @.str.13, ptr %13, align 8 br label %89 89: ; preds = %88, %78 %90 = load ptr, ptr %13, align 8 %91 = call i64 @strlen(ptr noundef %90) store i64 %91, ptr %14, align 8 %92 = load ptr, ptr %13, align 8 %93 = getelementptr inbounds i8, ptr %92, i64 0 %94 = load i8, ptr %93, align 1 %95 = sext i8 %94 to i32 %96 = icmp eq i32 %95, 47 br i1 %96, label %116, label %97 97: ; preds = %89 %98 = load ptr, ptr %13, align 8 %99 = call i64 @strcmp(ptr noundef %98, ptr noundef @.str.14) %100 = icmp eq i64 %99, 0 br i1 %100, label %116, label %101 101: ; preds = %97 %102 = load ptr, ptr %13, align 8 %103 = call i64 @strncmp(ptr noundef %102, ptr noundef @.str.15, i32 noundef 3) %104 = icmp eq i64 %103, 0 br i1 %104, label %116, label %105 105: ; preds = %101 %106 = load ptr, ptr %13, align 8 %107 = call ptr @strstr(ptr noundef %106, ptr noundef @.str.16) %108 = icmp ne ptr %107, null br i1 %108, label %116, label %109 109: ; preds = %105 %110 = load ptr, ptr %13, align 8 %111 = load i64, ptr %14, align 8 %112 = sub i64 %111, 3 %113 = getelementptr inbounds i8, ptr %110, i64 %112 %114 = call i64 @strcmp(ptr noundef %113, ptr noundef @.str.17) %115 = icmp eq i64 %114, 0 br i1 %115, label %116, label %118 116: ; preds = %109, %105, %101, %97, %89 %117 = call i32 @send_error(i32 noundef 400, ptr noundef @.str.3, ptr noundef null, ptr noundef @.str.18) br label %118 118: ; preds = %116, %109 %119 = load i64, ptr %14, align 8 %120 = trunc i64 %119 to i32 store i32 %120, ptr %19, align 4 br label %121 121: ; preds = %134, %118 %122 = load i32, ptr %19, align 4 %123 = icmp sgt i32 %122, 0 br i1 %123, label %124, label %137 124: ; preds = %121 %125 = load ptr, ptr %13, align 8 %126 = load i32, ptr %19, align 4 %127 = sext i32 %126 to i64 %128 = getelementptr inbounds i8, ptr %125, i64 %127 %129 = load i8, ptr %128, align 1 %130 = sext i8 %129 to i32 %131 = icmp eq i32 %130, 63 br i1 %131, label %132, label %133 132: ; preds = %124 br label %137 133: ; preds = %124 br label %134 134: ; preds = %133 %135 = load i32, ptr %19, align 4 %136 = add nsw i32 %135, -1 store i32 %136, ptr %19, align 4 br label %121, !llvm.loop !8 137: ; preds = %132, %121 %138 = load ptr, ptr %13, align 8 %139 = load i32, ptr %19, align 4 %140 = sext i32 %139 to i64 %141 = getelementptr inbounds i8, ptr %138, i64 %140 %142 = load i8, ptr %141, align 1 %143 = sext i8 %142 to i32 %144 = icmp eq i32 %143, 63 br i1 %144, label %145, label %152 145: ; preds = %137 %146 = load i32, ptr %19, align 4 %147 = sext i32 %146 to i64 store i64 %147, ptr %14, align 8 %148 = load ptr, ptr %13, align 8 %149 = load i32, ptr %19, align 4 %150 = sext i32 %149 to i64 %151 = getelementptr inbounds i8, ptr %148, i64 %150 store i8 0, ptr %151, align 1 br label %152 152: ; preds = %145, %137 %153 = load ptr, ptr %13, align 8 %154 = call i64 @stat(ptr noundef %153, ptr noundef %16) %155 = icmp slt i64 %154, 0 br i1 %155, label %156, label %158 156: ; preds = %152 %157 = call i32 @send_error(i32 noundef 404, ptr noundef @.str.19, ptr noundef null, ptr noundef @.str.20) br label %158 158: ; preds = %156, %152 %159 = getelementptr inbounds %struct.stat, ptr %16, i32 0, i32 2 %160 = load i32, ptr %159, align 4 %161 = call i64 @S_ISDIR(i32 noundef %160) %162 = icmp ne i64 %161, 0 br i1 %162, label %163, label %221 163: ; preds = %158 %164 = load ptr, ptr %13, align 8 %165 = load i64, ptr %14, align 8 %166 = sub i64 %165, 1 %167 = getelementptr inbounds i8, ptr %164, i64 %166 %168 = load i8, ptr %167, align 1 %169 = sext i8 %168 to i32 %170 = icmp ne i32 %169, 47 br i1 %170, label %171, label %177 171: ; preds = %163 %172 = getelementptr inbounds [20000 x i8], ptr %11, i64 0, i64 0 %173 = getelementptr inbounds [10000 x i8], ptr %8, i64 0, i64 0 %174 = call i32 @snprintf(ptr noundef %172, i32 noundef 20000, ptr noundef @.str.21, ptr noundef %173) %175 = getelementptr inbounds [20000 x i8], ptr %11, i64 0, i64 0 %176 = call i32 @send_error(i32 noundef 302, ptr noundef @.str.22, ptr noundef %175, ptr noundef @.str.23) br label %177 177: ; preds = %171, %163 %178 = getelementptr inbounds [20000 x i8], ptr %10, i64 0, i64 0 %179 = load ptr, ptr %13, align 8 %180 = call i32 @snprintf(ptr noundef %178, i32 noundef 20000, ptr noundef @.str.24, ptr noundef %179) %181 = getelementptr inbounds [20000 x i8], ptr %10, i64 0, i64 0 %182 = call i64 @stat(ptr noundef %181, ptr noundef %16) %183 = icmp sge i64 %182, 0 br i1 %183, label %184, label %186 184: ; preds = %177 %185 = getelementptr inbounds [20000 x i8], ptr %10, i64 0, i64 0 store ptr %185, ptr %13, align 8 br label %222 186: ; preds = %177 %187 = getelementptr inbounds %struct.stat, ptr %16, i32 0, i32 1 %188 = load i32, ptr %187, align 4 %189 = call i32 @send_headers(i32 noundef 200, ptr noundef @.str.25, ptr noundef null, ptr noundef @.str.26, i32 noundef -1, i32 noundef %188) %190 = load ptr, ptr %13, align 8 %191 = load ptr, ptr %13, align 8 %192 = call i32 @printf(ptr noundef @.str.27, ptr noundef %190, ptr noundef %191) %193 = load ptr, ptr %13, align 8 %194 = load i32, ptr @alphasort, align 4 %195 = call i32 @scandir(ptr noundef %193, ptr noundef %18, ptr noundef null, i32 noundef %194) store i32 %195, ptr %20, align 4 %196 = load i32, ptr %20, align 4 %197 = icmp slt i32 %196, 0 br i1 %197, label %198, label %200 198: ; preds = %186 %199 = call i32 @perror(ptr noundef @.str.28) br label %219 200: ; preds = %186 store i32 0, ptr %19, align 4 br label %201 201: ; preds = %215, %200 %202 = load i32, ptr %19, align 4 %203 = load i32, ptr %20, align 4 %204 = icmp slt i32 %202, %203 br i1 %204, label %205, label %218 205: ; preds = %201 %206 = load ptr, ptr %13, align 8 %207 = load ptr, ptr %18, align 8 %208 = load i32, ptr %19, align 4 %209 = sext i32 %208 to i64 %210 = getelementptr inbounds ptr, ptr %207, i64 %209 %211 = load ptr, ptr %210, align 8 %212 = getelementptr inbounds %struct.dirent, ptr %211, i32 0, i32 0 %213 = load i32, ptr %212, align 4 %214 = call i32 @file_details(ptr noundef %206, i32 noundef %213) br label %215 215: ; preds = %205 %216 = load i32, ptr %19, align 4 %217 = add nsw i32 %216, 1 store i32 %217, ptr %19, align 4 br label %201, !llvm.loop !9 218: ; preds = %201 br label %219 219: ; preds = %218, %198 %220 = call i32 @printf(ptr noundef @.str.29, ptr noundef @.str.30, ptr noundef @.str.31) br label %246 221: ; preds = %158 br label %222 222: ; preds = %221, %184 %223 = load ptr, ptr %13, align 8 %224 = call ptr @fopen(ptr noundef %223, ptr noundef @.str.32) store ptr %224, ptr %17, align 8 %225 = load ptr, ptr %17, align 8 %226 = icmp eq ptr %225, null br i1 %226, label %227, label %229 227: ; preds = %222 %228 = call i32 @send_error(i32 noundef 403, ptr noundef @.str.33, ptr noundef null, ptr noundef @.str.34) br label %229 229: ; preds = %227, %222 %230 = load ptr, ptr %13, align 8 %231 = call ptr @get_mime_type(ptr noundef %230) %232 = getelementptr inbounds %struct.stat, ptr %16, i32 0, i32 0 %233 = load i32, ptr %232, align 4 %234 = getelementptr inbounds %struct.stat, ptr %16, i32 0, i32 1 %235 = load i32, ptr %234, align 4 %236 = call i32 @send_headers(i32 noundef 200, ptr noundef @.str.25, ptr noundef null, ptr noundef %231, i32 noundef %233, i32 noundef %235) br label %237 237: ; preds = %242, %229 %238 = load ptr, ptr %17, align 8 %239 = call i32 @getc(ptr noundef %238) store i32 %239, ptr %15, align 4 %240 = load i32, ptr @EOF, align 4 %241 = icmp ne i32 %239, %240 br i1 %241, label %242, label %245 242: ; preds = %237 %243 = load i32, ptr %15, align 4 %244 = call i32 @putchar(i32 noundef %243) br label %237, !llvm.loop !10 245: ; preds = %237 br label %246 246: ; preds = %245, %219 %247 = load i32, ptr @stdout, align 4 %248 = call i32 @fflush(i32 noundef %247) %249 = call i32 @exit(i32 noundef 0) #3 unreachable } declare i32 @send_error(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1 declare i64 @chdir(ptr noundef) #1 declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) #1 declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1 declare i64 @strcmp(ptr noundef, ptr noundef) #1 declare i64 @strcasecmp(ptr noundef, ptr noundef) #1 declare i32 @strdecode(ptr noundef, ptr noundef) #1 declare i64 @strlen(ptr noundef) #1 declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1 declare ptr @strstr(ptr noundef, ptr noundef) #1 declare i64 @stat(ptr noundef, ptr noundef) #1 declare i64 @S_ISDIR(i32 noundef) #1 declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1 declare i32 @send_headers(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1 declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1 declare i32 @scandir(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1 declare i32 @perror(ptr noundef) #1 declare i32 @file_details(ptr noundef, i32 noundef) #1 declare ptr @fopen(ptr noundef, ptr noundef) #1 declare ptr @get_mime_type(ptr noundef) #1 declare i32 @getc(ptr noundef) #1 declare i32 @putchar(i32 noundef) #1 declare i32 @fflush(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"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"} !8 = distinct !{!8, !7} !9 = distinct !{!9, !7} !10 = distinct !{!10, !7}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpqpkddjh_.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.stat = type { i32, i32, i32 } %struct.dirent = type { i32 } @.str = private unnamed_addr constant [15 x i8] c"Internal Error\00", align 1 @.str.1 = private unnamed_addr constant [33 x i8] c"Config error - no dir specified.\00", align 1 @.str.2 = private unnamed_addr constant [33 x i8] c"Config error - couldn't chdir().\00", align 1 @stdin = dso_local global i32 0, align 4 @.str.3 = private unnamed_addr constant [12 x i8] c"Bad Request\00", align 1 @.str.4 = private unnamed_addr constant [18 x i8] c"No request found.\00", align 1 @.str.5 = private unnamed_addr constant [18 x i8] c"%[^ ] %[^ ] %[^ ]\00", align 1 @.str.6 = private unnamed_addr constant [21 x i8] c"Can't parse request.\00", align 1 @.str.7 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1 @.str.8 = private unnamed_addr constant [3 x i8] c"\0D\0A\00", align 1 @.str.9 = private unnamed_addr constant [4 x i8] c"get\00", align 1 @.str.10 = private unnamed_addr constant [16 x i8] c"Not Implemented\00", align 1 @.str.11 = private unnamed_addr constant [32 x i8] c"That method is not implemented.\00", align 1 @.str.12 = private unnamed_addr constant [14 x i8] c"Bad filename.\00", align 1 @.str.13 = private unnamed_addr constant [3 x i8] c"./\00", align 1 @.str.14 = private unnamed_addr constant [3 x i8] c"..\00", align 1 @.str.15 = private unnamed_addr constant [4 x i8] c"../\00", align 1 @.str.16 = private unnamed_addr constant [5 x i8] c"/../\00", align 1 @.str.17 = private unnamed_addr constant [4 x i8] c"/..\00", align 1 @.str.18 = private unnamed_addr constant [18 x i8] c"Illegal filename.\00", align 1 @.str.19 = private unnamed_addr constant [10 x i8] c"Not Found\00", align 1 @.str.20 = private unnamed_addr constant [16 x i8] c"File not found.\00", align 1 @.str.21 = private unnamed_addr constant [14 x i8] c"Location: %s/\00", align 1 @.str.22 = private unnamed_addr constant [6 x i8] c"Found\00", align 1 @.str.23 = private unnamed_addr constant [35 x i8] c"Directories must end with a slash.\00", align 1 @.str.24 = private unnamed_addr constant [13 x i8] c"%sindex.html\00", align 1 @.str.25 = private unnamed_addr constant [3 x i8] c"Ok\00", align 1 @.str.26 = private unnamed_addr constant [10 x i8] c"text/html\00", align 1 @.str.27 = private unnamed_addr constant [98 x i8] c"<html><head><title>Index of %s</title></head>\0A<body bgcolor=\22#99cc99\22><h4>Index of %s</h4>\0A<pre>\0A\00", align 1 @alphasort = dso_local global i32 0, align 4 @.str.28 = private unnamed_addr constant [8 x i8] c"scandir\00", align 1 @.str.29 = private unnamed_addr constant [67 x i8] c"</pre>\0A<hr>\0A<address><a href=\22%s\22>%s</a></address>\0A</body></html>\0A\00", align 1 @.str.30 = private unnamed_addr constant [42 x i8] c"http://www.acme.com/software/micro_httpd/\00", align 1 @.str.31 = private unnamed_addr constant [12 x i8] c"micro_httpd\00", align 1 @.str.32 = private unnamed_addr constant [2 x i8] c"r\00", align 1 @.str.33 = private unnamed_addr constant [10 x i8] c"Forbidden\00", align 1 @.str.34 = private unnamed_addr constant [19 x i8] c"File is protected.\00", align 1 @EOF = dso_local global i32 0, align 4 @stdout = dso_local global i32 0, align 4 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 { %3 = alloca i32, align 4 %4 = alloca i32, align 4 %5 = alloca ptr, align 8 %6 = alloca [10000 x i8], align 16 %7 = alloca [10000 x i8], align 16 %8 = alloca [10000 x i8], align 16 %9 = alloca [10000 x i8], align 16 %10 = alloca [20000 x i8], align 16 %11 = alloca [20000 x i8], align 16 %12 = alloca [20000 x i8], align 16 %13 = alloca ptr, align 8 %14 = alloca i64, align 8 %15 = alloca i32, align 4 %16 = alloca %struct.stat, align 4 %17 = alloca ptr, align 8 %18 = alloca ptr, align 8 %19 = alloca i32, align 4 %20 = 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 %21 = load i32, ptr %4, align 4 %22 = icmp ne i32 %21, 2 br i1 %22, label %23, label %25 23: ; preds = %2 %24 = call i32 @send_error(i32 noundef 500, ptr noundef @.str, ptr noundef null, ptr noundef @.str.1) br label %25 25: ; preds = %23, %2 %26 = load ptr, ptr %5, align 8 %27 = getelementptr inbounds ptr, ptr %26, i64 1 %28 = load ptr, ptr %27, align 8 %29 = call i64 @chdir(ptr noundef %28) %30 = icmp slt i64 %29, 0 br i1 %30, label %31, label %33 31: ; preds = %25 %32 = call i32 @send_error(i32 noundef 500, ptr noundef @.str, ptr noundef null, ptr noundef @.str.2) br label %33 33: ; preds = %31, %25 %34 = getelementptr inbounds [10000 x i8], ptr %6, i64 0, i64 0 %35 = load i32, ptr @stdin, align 4 %36 = call ptr @fgets(ptr noundef %34, i32 noundef 10000, i32 noundef %35) %37 = icmp eq ptr %36, null br i1 %37, label %38, label %40 38: ; preds = %33 %39 = call i32 @send_error(i32 noundef 400, ptr noundef @.str.3, ptr noundef null, ptr noundef @.str.4) br label %40 40: ; preds = %38, %33 %41 = getelementptr inbounds [10000 x i8], ptr %6, i64 0, i64 0 %42 = getelementptr inbounds [10000 x i8], ptr %7, i64 0, i64 0 %43 = getelementptr inbounds [10000 x i8], ptr %8, i64 0, i64 0 %44 = getelementptr inbounds [10000 x i8], ptr %9, i64 0, i64 0 %45 = call i32 @sscanf(ptr noundef %41, ptr noundef @.str.5, ptr noundef %42, ptr noundef %43, ptr noundef %44) %46 = icmp ne i32 %45, 3 br i1 %46, label %47, label %49 47: ; preds = %40 %48 = call i32 @send_error(i32 noundef 400, ptr noundef @.str.3, ptr noundef null, ptr noundef @.str.6) br label %49 49: ; preds = %47, %40 %50 = getelementptr inbounds [10000 x i8], ptr %6, i64 0, i64 0 %51 = load i32, ptr @stdin, align 4 %52 = call ptr @fgets(ptr noundef %50, i32 noundef 10000, i32 noundef %51) %53 = icmp ne ptr %52, null br i1 %53, label %.lr.ph, label %.loopexit1 .lr.ph: ; preds = %49 br label %58 54: ; preds = %62 %55 = load i32, ptr @stdin, align 4 %56 = call ptr @fgets(ptr noundef %50, i32 noundef 10000, i32 noundef %55) %57 = icmp ne ptr %56, null br i1 %57, label %58, label %..loopexit1_crit_edge, !llvm.loop !6 58: ; preds = %.lr.ph, %54 %59 = getelementptr inbounds [10000 x i8], ptr %6, i64 0, i64 0 %60 = call i64 @strcmp(ptr noundef %59, ptr noundef @.str.7) %61 = icmp eq i64 %60, 0 br i1 %61, label %66, label %62 62: ; preds = %58 %63 = getelementptr inbounds [10000 x i8], ptr %6, i64 0, i64 0 %64 = call i64 @strcmp(ptr noundef %63, ptr noundef @.str.8) %65 = icmp eq i64 %64, 0 br i1 %65, label %66, label %54 66: ; preds = %62, %58 br label %67 ..loopexit1_crit_edge: ; preds = %54 br label %.loopexit1 .loopexit1: ; preds = %..loopexit1_crit_edge, %49 br label %67 67: ; preds = %.loopexit1, %66 %68 = getelementptr inbounds [10000 x i8], ptr %7, i64 0, i64 0 %69 = call i64 @strcasecmp(ptr noundef %68, ptr noundef @.str.9) %70 = icmp ne i64 %69, 0 br i1 %70, label %71, label %73 71: ; preds = %67 %72 = call i32 @send_error(i32 noundef 501, ptr noundef @.str.10, ptr noundef null, ptr noundef @.str.11) br label %73 73: ; preds = %71, %67 %74 = getelementptr inbounds [10000 x i8], ptr %8, i64 0, i64 0 %75 = load i8, ptr %74, align 16 %76 = sext i8 %75 to i32 %77 = icmp ne i32 %76, 47 br i1 %77, label %78, label %80 78: ; preds = %73 %79 = call i32 @send_error(i32 noundef 400, ptr noundef @.str.3, ptr noundef null, ptr noundef @.str.12) br label %80 80: ; preds = %78, %73 %81 = getelementptr inbounds [10000 x i8], ptr %8, i64 0, i64 1 store ptr %81, ptr %13, align 8 %82 = load ptr, ptr %13, align 8 %83 = load ptr, ptr %13, align 8 %84 = call i32 @strdecode(ptr noundef %82, ptr noundef %83) %85 = load ptr, ptr %13, align 8 %86 = getelementptr inbounds i8, ptr %85, i64 0 %87 = load i8, ptr %86, align 1 %88 = sext i8 %87 to i32 %89 = icmp eq i32 %88, 0 br i1 %89, label %90, label %91 90: ; preds = %80 store ptr @.str.13, ptr %13, align 8 br label %91 91: ; preds = %90, %80 %92 = load ptr, ptr %13, align 8 %93 = call i64 @strlen(ptr noundef %92) store i64 %93, ptr %14, align 8 %94 = load ptr, ptr %13, align 8 %95 = getelementptr inbounds i8, ptr %94, i64 0 %96 = load i8, ptr %95, align 1 %97 = sext i8 %96 to i32 %98 = icmp eq i32 %97, 47 br i1 %98, label %118, label %99 99: ; preds = %91 %100 = load ptr, ptr %13, align 8 %101 = call i64 @strcmp(ptr noundef %100, ptr noundef @.str.14) %102 = icmp eq i64 %101, 0 br i1 %102, label %118, label %103 103: ; preds = %99 %104 = load ptr, ptr %13, align 8 %105 = call i64 @strncmp(ptr noundef %104, ptr noundef @.str.15, i32 noundef 3) %106 = icmp eq i64 %105, 0 br i1 %106, label %118, label %107 107: ; preds = %103 %108 = load ptr, ptr %13, align 8 %109 = call ptr @strstr(ptr noundef %108, ptr noundef @.str.16) %110 = icmp ne ptr %109, null br i1 %110, label %118, label %111 111: ; preds = %107 %112 = load ptr, ptr %13, align 8 %113 = load i64, ptr %14, align 8 %114 = sub i64 %113, 3 %115 = getelementptr inbounds i8, ptr %112, i64 %114 %116 = call i64 @strcmp(ptr noundef %115, ptr noundef @.str.17) %117 = icmp eq i64 %116, 0 br i1 %117, label %118, label %120 118: ; preds = %111, %107, %103, %99, %91 %119 = call i32 @send_error(i32 noundef 400, ptr noundef @.str.3, ptr noundef null, ptr noundef @.str.18) br label %120 120: ; preds = %118, %111 %121 = load i64, ptr %14, align 8 %122 = trunc i64 %121 to i32 store i32 %122, ptr %19, align 4 %123 = load i32, ptr %19, align 4 %124 = icmp sgt i32 %123, 0 br i1 %124, label %.lr.ph2, label %.loopexit .lr.ph2: ; preds = %120 br label %125 125: ; preds = %.lr.ph2, %135 %126 = load ptr, ptr %13, align 8 %127 = load i32, ptr %19, align 4 %128 = sext i32 %127 to i64 %129 = getelementptr inbounds i8, ptr %126, i64 %128 %130 = load i8, ptr %129, align 1 %131 = sext i8 %130 to i32 %132 = icmp eq i32 %131, 63 br i1 %132, label %133, label %134 133: ; preds = %125 br label %140 134: ; preds = %125 br label %135 135: ; preds = %134 %136 = load i32, ptr %19, align 4 %137 = add nsw i32 %136, -1 store i32 %137, ptr %19, align 4 %138 = load i32, ptr %19, align 4 %139 = icmp sgt i32 %138, 0 br i1 %139, label %125, label %..loopexit_crit_edge, !llvm.loop !8 ..loopexit_crit_edge: ; preds = %135 br label %.loopexit .loopexit: ; preds = %..loopexit_crit_edge, %120 br label %140 140: ; preds = %.loopexit, %133 %141 = load ptr, ptr %13, align 8 %142 = load i32, ptr %19, align 4 %143 = sext i32 %142 to i64 %144 = getelementptr inbounds i8, ptr %141, i64 %143 %145 = load i8, ptr %144, align 1 %146 = sext i8 %145 to i32 %147 = icmp eq i32 %146, 63 br i1 %147, label %148, label %155 148: ; preds = %140 %149 = load i32, ptr %19, align 4 %150 = sext i32 %149 to i64 store i64 %150, ptr %14, align 8 %151 = load ptr, ptr %13, align 8 %152 = load i32, ptr %19, align 4 %153 = sext i32 %152 to i64 %154 = getelementptr inbounds i8, ptr %151, i64 %153 store i8 0, ptr %154, align 1 br label %155 155: ; preds = %148, %140 %156 = load ptr, ptr %13, align 8 %157 = call i64 @stat(ptr noundef %156, ptr noundef %16) %158 = icmp slt i64 %157, 0 br i1 %158, label %159, label %161 159: ; preds = %155 %160 = call i32 @send_error(i32 noundef 404, ptr noundef @.str.19, ptr noundef null, ptr noundef @.str.20) br label %161 161: ; preds = %159, %155 %162 = getelementptr inbounds %struct.stat, ptr %16, i32 0, i32 2 %163 = load i32, ptr %162, align 4 %164 = call i64 @S_ISDIR(i32 noundef %163) %165 = icmp ne i64 %164, 0 br i1 %165, label %166, label %226 166: ; preds = %161 %167 = load ptr, ptr %13, align 8 %168 = load i64, ptr %14, align 8 %169 = sub i64 %168, 1 %170 = getelementptr inbounds i8, ptr %167, i64 %169 %171 = load i8, ptr %170, align 1 %172 = sext i8 %171 to i32 %173 = icmp ne i32 %172, 47 br i1 %173, label %174, label %180 174: ; preds = %166 %175 = getelementptr inbounds [20000 x i8], ptr %11, i64 0, i64 0 %176 = getelementptr inbounds [10000 x i8], ptr %8, i64 0, i64 0 %177 = call i32 @snprintf(ptr noundef %175, i32 noundef 20000, ptr noundef @.str.21, ptr noundef %176) %178 = getelementptr inbounds [20000 x i8], ptr %11, i64 0, i64 0 %179 = call i32 @send_error(i32 noundef 302, ptr noundef @.str.22, ptr noundef %178, ptr noundef @.str.23) br label %180 180: ; preds = %174, %166 %181 = getelementptr inbounds [20000 x i8], ptr %10, i64 0, i64 0 %182 = load ptr, ptr %13, align 8 %183 = call i32 @snprintf(ptr noundef %181, i32 noundef 20000, ptr noundef @.str.24, ptr noundef %182) %184 = getelementptr inbounds [20000 x i8], ptr %10, i64 0, i64 0 %185 = call i64 @stat(ptr noundef %184, ptr noundef %16) %186 = icmp sge i64 %185, 0 br i1 %186, label %187, label %189 187: ; preds = %180 %188 = getelementptr inbounds [20000 x i8], ptr %10, i64 0, i64 0 store ptr %188, ptr %13, align 8 br label %227 189: ; preds = %180 %190 = getelementptr inbounds %struct.stat, ptr %16, i32 0, i32 1 %191 = load i32, ptr %190, align 4 %192 = call i32 @send_headers(i32 noundef 200, ptr noundef @.str.25, ptr noundef null, ptr noundef @.str.26, i32 noundef -1, i32 noundef %191) %193 = load ptr, ptr %13, align 8 %194 = load ptr, ptr %13, align 8 %195 = call i32 @printf(ptr noundef @.str.27, ptr noundef %193, ptr noundef %194) %196 = load ptr, ptr %13, align 8 %197 = load i32, ptr @alphasort, align 4 %198 = call i32 @scandir(ptr noundef %196, ptr noundef %18, ptr noundef null, i32 noundef %197) store i32 %198, ptr %20, align 4 %199 = load i32, ptr %20, align 4 %200 = icmp slt i32 %199, 0 br i1 %200, label %201, label %203 201: ; preds = %189 %202 = call i32 @perror(ptr noundef @.str.28) br label %224 203: ; preds = %189 store i32 0, ptr %19, align 4 %204 = load i32, ptr %19, align 4 %205 = load i32, ptr %20, align 4 %206 = icmp slt i32 %204, %205 br i1 %206, label %.lr.ph3, label %223 .lr.ph3: ; preds = %203 br label %207 207: ; preds = %.lr.ph3, %217 %208 = load ptr, ptr %13, align 8 %209 = load ptr, ptr %18, align 8 %210 = load i32, ptr %19, align 4 %211 = sext i32 %210 to i64 %212 = getelementptr inbounds ptr, ptr %209, i64 %211 %213 = load ptr, ptr %212, align 8 %214 = getelementptr inbounds %struct.dirent, ptr %213, i32 0, i32 0 %215 = load i32, ptr %214, align 4 %216 = call i32 @file_details(ptr noundef %208, i32 noundef %215) br label %217 217: ; preds = %207 %218 = load i32, ptr %19, align 4 %219 = add nsw i32 %218, 1 store i32 %219, ptr %19, align 4 %220 = load i32, ptr %19, align 4 %221 = load i32, ptr %20, align 4 %222 = icmp slt i32 %220, %221 br i1 %222, label %207, label %._crit_edge, !llvm.loop !9 ._crit_edge: ; preds = %217 br label %223 223: ; preds = %._crit_edge, %203 br label %224 224: ; preds = %223, %201 %225 = call i32 @printf(ptr noundef @.str.29, ptr noundef @.str.30, ptr noundef @.str.31) br label %254 226: ; preds = %161 br label %227 227: ; preds = %226, %187 %228 = load ptr, ptr %13, align 8 %229 = call ptr @fopen(ptr noundef %228, ptr noundef @.str.32) store ptr %229, ptr %17, align 8 %230 = load ptr, ptr %17, align 8 %231 = icmp eq ptr %230, null br i1 %231, label %232, label %234 232: ; preds = %227 %233 = call i32 @send_error(i32 noundef 403, ptr noundef @.str.33, ptr noundef null, ptr noundef @.str.34) br label %234 234: ; preds = %232, %227 %235 = load ptr, ptr %13, align 8 %236 = call ptr @get_mime_type(ptr noundef %235) %237 = getelementptr inbounds %struct.stat, ptr %16, i32 0, i32 0 %238 = load i32, ptr %237, align 4 %239 = getelementptr inbounds %struct.stat, ptr %16, i32 0, i32 1 %240 = load i32, ptr %239, align 4 %241 = call i32 @send_headers(i32 noundef 200, ptr noundef @.str.25, ptr noundef null, ptr noundef %236, i32 noundef %238, i32 noundef %240) %242 = load ptr, ptr %17, align 8 %243 = call i32 @getc(ptr noundef %242) store i32 %243, ptr %15, align 4 %244 = load i32, ptr @EOF, align 4 %245 = icmp ne i32 %243, %244 br i1 %245, label %.lr.ph5, label %253 .lr.ph5: ; preds = %234 br label %246 246: ; preds = %.lr.ph5, %246 %247 = load i32, ptr %15, align 4 %248 = call i32 @putchar(i32 noundef %247) %249 = load ptr, ptr %17, align 8 %250 = call i32 @getc(ptr noundef %249) store i32 %250, ptr %15, align 4 %251 = load i32, ptr @EOF, align 4 %252 = icmp ne i32 %250, %251 br i1 %252, label %246, label %._crit_edge6, !llvm.loop !10 ._crit_edge6: ; preds = %246 br label %253 253: ; preds = %._crit_edge6, %234 br label %254 254: ; preds = %253, %224 %255 = load i32, ptr @stdout, align 4 %256 = call i32 @fflush(i32 noundef %255) %257 = call i32 @exit(i32 noundef 0) #3 unreachable } declare i32 @send_error(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1 declare i64 @chdir(ptr noundef) #1 declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) #1 declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1 declare i64 @strcmp(ptr noundef, ptr noundef) #1 declare i64 @strcasecmp(ptr noundef, ptr noundef) #1 declare i32 @strdecode(ptr noundef, ptr noundef) #1 declare i64 @strlen(ptr noundef) #1 declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1 declare ptr @strstr(ptr noundef, ptr noundef) #1 declare i64 @stat(ptr noundef, ptr noundef) #1 declare i64 @S_ISDIR(i32 noundef) #1 declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1 declare i32 @send_headers(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1 declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1 declare i32 @scandir(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1 declare i32 @perror(ptr noundef) #1 declare i32 @file_details(ptr noundef, i32 noundef) #1 declare ptr @fopen(ptr noundef, ptr noundef) #1 declare ptr @get_mime_type(ptr noundef) #1 declare i32 @getc(ptr noundef) #1 declare i32 @putchar(i32 noundef) #1 declare i32 @fflush(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"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"} !8 = distinct !{!8, !7} !9 = distinct !{!9, !7} !10 = distinct !{!10, !7}
; ModuleID = '/tmp/tmps4ng13uj.c' source_filename = "/tmp/tmps4ng13uj.c" target datalayout = "e-m:e-p270: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/tmps4ng13uj.c" target datalayout = "e-m:e-p270: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/tmpr3k_f2l6.c' source_filename = "/tmp/tmpr3k_f2l6.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lenient_strncat(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 { %4 = alloca ptr, align 8 %5 = alloca ptr, align 8 %6 = alloca ptr, align 8 %7 = alloca i64, align 8 store ptr %0, ptr %5, align 8 store ptr %1, ptr %6, align 8 store i64 %2, ptr %7, align 8 %8 = load ptr, ptr %5, align 8 %9 = icmp ne ptr %8, null br i1 %9, label %10, label %18 10: ; preds = %3 %11 = load ptr, ptr %6, align 8 %12 = icmp ne ptr %11, null br i1 %12, label %13, label %18 13: ; preds = %10 %14 = load ptr, ptr %5, align 8 %15 = load ptr, ptr %6, align 8 %16 = load i64, ptr %7, align 8 %17 = call ptr @strncat(ptr noundef %14, ptr noundef %15, i64 noundef %16) store ptr %17, ptr %4, align 8 br label %20 18: ; preds = %10, %3 %19 = load ptr, ptr %5, align 8 store ptr %19, ptr %4, align 8 br label %20 20: ; preds = %18, %13 %21 = load ptr, ptr %4, align 8 ret ptr %21 } declare ptr @strncat(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/tmpr3k_f2l6.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lenient_strncat(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 { %4 = alloca ptr, align 8 %5 = alloca ptr, align 8 %6 = alloca ptr, align 8 %7 = alloca i64, align 8 store ptr %0, ptr %5, align 8 store ptr %1, ptr %6, align 8 store i64 %2, ptr %7, align 8 %8 = load ptr, ptr %5, align 8 %9 = icmp ne ptr %8, null br i1 %9, label %10, label %18 10: ; preds = %3 %11 = load ptr, ptr %6, align 8 %12 = icmp ne ptr %11, null br i1 %12, label %13, label %18 13: ; preds = %10 %14 = load ptr, ptr %5, align 8 %15 = load ptr, ptr %6, align 8 %16 = load i64, ptr %7, align 8 %17 = call ptr @strncat(ptr noundef %14, ptr noundef %15, i64 noundef %16) store ptr %17, ptr %4, align 8 br label %20 18: ; preds = %10, %3 %19 = load ptr, ptr %5, align 8 store ptr %19, ptr %4, align 8 br label %20 20: ; preds = %18, %13 %21 = load ptr, ptr %4, align 8 ret ptr %21 } declare ptr @strncat(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/tmpgk9sa1x3.c' source_filename = "/tmp/tmpgk9sa1x3.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @formatTest() #0 { %1 = call i32 @writeSectorTest(i32 noundef 0, i32 noundef 512) %2 = call i32 @readSectorTest(i32 noundef 0, i32 noundef 512) %3 = call i32 @writeSectorTest(i32 noundef 15623, i32 noundef 512) %4 = call i32 @readSectorTest(i32 noundef 15623, i32 noundef 512) %5 = call i32 @writeSectorTest(i32 noundef 8, i32 noundef 6144) %6 = call i32 @readSectorTest(i32 noundef 8, i32 noundef 6144) %7 = call i32 @writeSectorTest(i32 noundef 20, i32 noundef 6144) %8 = call i32 @readSectorTest(i32 noundef 20, i32 noundef 6144) %9 = call i32 @writeSectorTest(i32 noundef 32, i32 noundef 16384) %10 = call i32 @readSectorTest(i32 noundef 32, i32 noundef 16384) %11 = call i32 @writeSectorTest(i32 noundef 0, i32 noundef 4096) %12 = call i32 @readSectorTest(i32 noundef 0, i32 noundef 4096) %13 = call i32 @writeSectorTest(i32 noundef 0, i32 noundef 8192) %14 = call i32 @readSectorTest(i32 noundef 0, i32 noundef 8192) %15 = call i32 @writeSectorTest(i32 noundef 0, i32 noundef 512) %16 = call i32 @readSectorTest(i32 noundef 0, i32 noundef 512) br label %17 17: ; preds = %0, %17 br label %17 } declare i32 @writeSectorTest(i32 noundef, i32 noundef) #1 declare i32 @readSectorTest(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/tmpgk9sa1x3.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @formatTest() #0 { %1 = call i32 @writeSectorTest(i32 noundef 0, i32 noundef 512) %2 = call i32 @readSectorTest(i32 noundef 0, i32 noundef 512) %3 = call i32 @writeSectorTest(i32 noundef 15623, i32 noundef 512) %4 = call i32 @readSectorTest(i32 noundef 15623, i32 noundef 512) %5 = call i32 @writeSectorTest(i32 noundef 8, i32 noundef 6144) %6 = call i32 @readSectorTest(i32 noundef 8, i32 noundef 6144) %7 = call i32 @writeSectorTest(i32 noundef 20, i32 noundef 6144) %8 = call i32 @readSectorTest(i32 noundef 20, i32 noundef 6144) %9 = call i32 @writeSectorTest(i32 noundef 32, i32 noundef 16384) %10 = call i32 @readSectorTest(i32 noundef 32, i32 noundef 16384) %11 = call i32 @writeSectorTest(i32 noundef 0, i32 noundef 4096) %12 = call i32 @readSectorTest(i32 noundef 0, i32 noundef 4096) %13 = call i32 @writeSectorTest(i32 noundef 0, i32 noundef 8192) %14 = call i32 @readSectorTest(i32 noundef 0, i32 noundef 8192) %15 = call i32 @writeSectorTest(i32 noundef 0, i32 noundef 512) %16 = call i32 @readSectorTest(i32 noundef 0, i32 noundef 512) br label %17 17: ; preds = %17, %0 br label %17 } declare i32 @writeSectorTest(i32 noundef, i32 noundef) #1 declare i32 @readSectorTest(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/tmpqt_yan5h.c' source_filename = "/tmp/tmpqt_yan5h.c" target datalayout = "e-m:e-p270: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/tmpqt_yan5h.c" target datalayout = "e-m:e-p270: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/tmpptja45hu.c' source_filename = "/tmp/tmpptja45hu.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_iscntrl.c\00", align 1 @.str.1 = private unnamed_addr constant [29 x i8] c"iscntrl should be 0 for 0xd5\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @t_iscntrl_0xd5() #0 { %1 = call i64 @iscntrl(i32 noundef 213) %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 1070, ptr noundef @.str.1) ret void } declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1 declare i64 @iscntrl(i32 noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpptja45hu.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_iscntrl.c\00", align 1 @.str.1 = private unnamed_addr constant [29 x i8] c"iscntrl should be 0 for 0xd5\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @t_iscntrl_0xd5() #0 { %1 = call i64 @iscntrl(i32 noundef 213) %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 1070, ptr noundef @.str.1) ret void } declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1 declare i64 @iscntrl(i32 noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmplze0mpmw.c' source_filename = "/tmp/tmplze0mpmw.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.TYPE_3__ = type { i32, i64 } @FALSE = dso_local global i32 0, align 4 @TRUE = dso_local global i32 0, align 4 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @XdmcpAllocARRAYofARRAY8(ptr noundef %0, i32 noundef %1) #0 { %3 = alloca i32, align 4 %4 = alloca ptr, align 8 %5 = alloca i32, align 4 %6 = alloca i64, align 8 store ptr %0, ptr %4, align 8 store i32 %1, ptr %5, align 4 %7 = load i32, ptr %5, align 4 %8 = sext i32 %7 to i64 %9 = mul i64 %8, 4 %10 = trunc i64 %9 to i32 %11 = call i64 @Xalloc(i32 noundef %10) store i64 %11, ptr %6, align 8 %12 = load i64, ptr %6, align 8 %13 = icmp ne i64 %12, 0 br i1 %13, label %16, label %14 14: ; preds = %2 %15 = load i32, ptr @FALSE, align 4 store i32 %15, ptr %3, align 4 br label %24 16: ; preds = %2 %17 = load i32, ptr %5, align 4 %18 = load ptr, ptr %4, align 8 %19 = getelementptr inbounds %struct.TYPE_3__, ptr %18, i32 0, i32 0 store i32 %17, ptr %19, align 8 %20 = load i64, ptr %6, align 8 %21 = load ptr, ptr %4, align 8 %22 = getelementptr inbounds %struct.TYPE_3__, ptr %21, i32 0, i32 1 store i64 %20, ptr %22, align 8 %23 = load i32, ptr @TRUE, align 4 store i32 %23, ptr %3, align 4 br label %24 24: ; preds = %16, %14 %25 = load i32, ptr %3, align 4 ret i32 %25 } declare i64 @Xalloc(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/tmplze0mpmw.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.TYPE_3__ = type { i32, i64 } @FALSE = dso_local global i32 0, align 4 @TRUE = dso_local global i32 0, align 4 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @XdmcpAllocARRAYofARRAY8(ptr noundef %0, i32 noundef %1) #0 { %3 = alloca i32, align 4 %4 = alloca ptr, align 8 %5 = alloca i32, align 4 %6 = alloca i64, align 8 store ptr %0, ptr %4, align 8 store i32 %1, ptr %5, align 4 %7 = load i32, ptr %5, align 4 %8 = sext i32 %7 to i64 %9 = mul i64 %8, 4 %10 = trunc i64 %9 to i32 %11 = call i64 @Xalloc(i32 noundef %10) store i64 %11, ptr %6, align 8 %12 = load i64, ptr %6, align 8 %13 = icmp ne i64 %12, 0 br i1 %13, label %16, label %14 14: ; preds = %2 %15 = load i32, ptr @FALSE, align 4 store i32 %15, ptr %3, align 4 br label %24 16: ; preds = %2 %17 = load i32, ptr %5, align 4 %18 = load ptr, ptr %4, align 8 %19 = getelementptr inbounds %struct.TYPE_3__, ptr %18, i32 0, i32 0 store i32 %17, ptr %19, align 8 %20 = load i64, ptr %6, align 8 %21 = load ptr, ptr %4, align 8 %22 = getelementptr inbounds %struct.TYPE_3__, ptr %21, i32 0, i32 1 store i64 %20, ptr %22, align 8 %23 = load i32, ptr @TRUE, align 4 store i32 %23, ptr %3, align 4 br label %24 24: ; preds = %16, %14 %25 = load i32, ptr %3, align 4 ret i32 %25 } declare i64 @Xalloc(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/tmpjhwhdfp6.c' source_filename = "/tmp/tmpjhwhdfp6.c" target datalayout = "e-m:e-p270: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/tmpjhwhdfp6.c" target datalayout = "e-m:e-p270: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/tmpcq5il5_e.c' source_filename = "/tmp/tmpcq5il5_e.c" target datalayout = "e-m:e-p270: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/tmpcq5il5_e.c" target datalayout = "e-m:e-p270: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/tmpze_w6aom.c' source_filename = "/tmp/tmpze_w6aom.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [29 x i8] c"partan - partition analizer\0A\00", align 1 @.str.1 = private unnamed_addr constant [54 x i8] c"Copyright (c) 2014 Alexander Gerasiov <gq@cs.msu.su>\0A\00", align 1 @.str.2 = private unnamed_addr constant [54 x i8] c"Simple and stupid analizer for MS-DOS partion table.\0A\00", align 1 @.str.3 = private unnamed_addr constant [57 x i8] c"Supports only LBA, ignores (but prints) CHS addressing.\0A\00", align 1 @.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1 @.str.5 = private unnamed_addr constant [7 x i8] c"partan\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @help() #0 { %1 = call i32 @printf(ptr noundef @.str) %2 = call i32 @printf(ptr noundef @.str.1) %3 = call i32 @printf(ptr noundef @.str.2) %4 = call i32 @printf(ptr noundef @.str.3) %5 = call i32 @printf(ptr noundef @.str.4) %6 = call i32 @usage(ptr noundef @.str.5) ret void } declare i32 @printf(ptr noundef) #1 declare i32 @usage(ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpze_w6aom.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [29 x i8] c"partan - partition analizer\0A\00", align 1 @.str.1 = private unnamed_addr constant [54 x i8] c"Copyright (c) 2014 Alexander Gerasiov <gq@cs.msu.su>\0A\00", align 1 @.str.2 = private unnamed_addr constant [54 x i8] c"Simple and stupid analizer for MS-DOS partion table.\0A\00", align 1 @.str.3 = private unnamed_addr constant [57 x i8] c"Supports only LBA, ignores (but prints) CHS addressing.\0A\00", align 1 @.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1 @.str.5 = private unnamed_addr constant [7 x i8] c"partan\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @help() #0 { %1 = call i32 @printf(ptr noundef @.str) %2 = call i32 @printf(ptr noundef @.str.1) %3 = call i32 @printf(ptr noundef @.str.2) %4 = call i32 @printf(ptr noundef @.str.3) %5 = call i32 @printf(ptr noundef @.str.4) %6 = call i32 @usage(ptr noundef @.str.5) ret void } declare i32 @printf(ptr noundef) #1 declare i32 @usage(ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmpfaoy3ifq.c' source_filename = "/tmp/tmpfaoy3ifq.c" target datalayout = "e-m:e-p270: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/tmpfaoy3ifq.c" target datalayout = "e-m:e-p270: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/tmpwt071dyp.c' source_filename = "/tmp/tmpwt071dyp.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @EXIT_FAILURE = dso_local global i32 0, align 4 @O_APPEND = dso_local global i32 0, align 4 @O_CREAT = dso_local global i32 0, align 4 @O_RDONLY = dso_local global i32 0, align 4 @O_TRUNC = dso_local global i32 0, align 4 @O_WRONLY = dso_local global i32 0, align 4 @STDERR_FILENO = dso_local global i32 0, align 4 @STDIN_FILENO = dso_local global i32 0, align 4 @STDOUT_FILENO = 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/tmpwt071dyp.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @EXIT_FAILURE = dso_local global i32 0, align 4 @O_APPEND = dso_local global i32 0, align 4 @O_CREAT = dso_local global i32 0, align 4 @O_RDONLY = dso_local global i32 0, align 4 @O_TRUNC = dso_local global i32 0, align 4 @O_WRONLY = dso_local global i32 0, align 4 @STDERR_FILENO = dso_local global i32 0, align 4 @STDIN_FILENO = dso_local global i32 0, align 4 @STDOUT_FILENO = 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/tmp1vz3go7c.c' source_filename = "/tmp/tmp1vz3go7c.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strepl(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 ptr, align 8 %8 = alloca i64, align 8 %9 = alloca i64, align 8 %10 = alloca i64, align 8 %11 = alloca i64, align 8 %12 = alloca ptr, align 8 %13 = alloca ptr, align 8 %14 = alloca ptr, align 8 %15 = alloca ptr, align 8 %16 = alloca i64, align 8 store ptr %0, ptr %5, align 8 store ptr %1, ptr %6, align 8 store ptr %2, ptr %7, align 8 %17 = load ptr, ptr %6, align 8 %18 = call i32 @strlen(ptr noundef %17) %19 = sext i32 %18 to i64 store i64 %19, ptr %8, align 8 %20 = load ptr, ptr %7, align 8 %21 = call i32 @strlen(ptr noundef %20) %22 = sext i32 %21 to i64 store i64 %22, ptr %11, align 8 %23 = load i64, ptr %8, align 8 %24 = load i64, ptr %11, align 8 %25 = icmp ne i64 %23, %24 br i1 %25, label %26, label %56 26: ; preds = %3 store i64 0, ptr %9, align 8 %27 = load ptr, ptr %5, align 8 store ptr %27, ptr %12, align 8 br label %28 28: ; preds = %36, %26 %29 = load ptr, ptr %12, align 8 %30 = load ptr, ptr %6, align 8 %31 = call ptr @strstr(ptr noundef %29, ptr noundef %30) store ptr %31, ptr %13, align 8 %32 = icmp ne ptr %31, null br i1 %32, label %33, label %40 33: ; preds = %28 %34 = load i64, ptr %9, align 8 %35 = add i64 %34, 1 store i64 %35, ptr %9, align 8 br label %36 36: ; preds = %33 %37 = load ptr, ptr %13, align 8 %38 = load i64, ptr %8, align 8 %39 = getelementptr inbounds i8, ptr %37, i64 %38 store ptr %39, ptr %12, align 8 br label %28, !llvm.loop !6 40: ; preds = %28 %41 = load ptr, ptr %12, align 8 %42 = load ptr, ptr %5, align 8 %43 = ptrtoint ptr %41 to i64 %44 = ptrtoint ptr %42 to i64 %45 = sub i64 %43, %44 %46 = load ptr, ptr %12, align 8 %47 = call i32 @strlen(ptr noundef %46) %48 = sext i32 %47 to i64 %49 = add nsw i64 %45, %48 %50 = load i64, ptr %9, align 8 %51 = load i64, ptr %11, align 8 %52 = load i64, ptr %8, align 8 %53 = sub i64 %51, %52 %54 = mul i64 %50, %53 %55 = add i64 %49, %54 store i64 %55, ptr %10, align 8 br label %60 56: ; preds = %3 %57 = load ptr, ptr %5, align 8 %58 = call i32 @strlen(ptr noundef %57) %59 = sext i32 %58 to i64 store i64 %59, ptr %10, align 8 br label %60 60: ; preds = %56, %40 %61 = load i64, ptr %10, align 8 %62 = add i64 %61, 1 %63 = call ptr @malloc(i64 noundef %62) store ptr %63, ptr %14, align 8 %64 = icmp eq ptr %63, null br i1 %64, label %65, label %66 65: ; preds = %60 store ptr null, ptr %4, align 8 br label %105 66: ; preds = %60 %67 = load ptr, ptr %14, align 8 store ptr %67, ptr %15, align 8 %68 = load ptr, ptr %5, align 8 store ptr %68, ptr %12, align 8 br label %69 69: ; preds = %94, %66 %70 = load ptr, ptr %12, align 8 %71 = load ptr, ptr %6, align 8 %72 = call ptr @strstr(ptr noundef %70, ptr noundef %71) store ptr %72, ptr %13, align 8 %73 = icmp ne ptr %72, null br i1 %73, label %74, label %98 74: ; preds = %69 %75 = load ptr, ptr %13, align 8 %76 = load ptr, ptr %12, align 8 %77 = ptrtoint ptr %75 to i64 %78 = ptrtoint ptr %76 to i64 %79 = sub i64 %77, %78 store i64 %79, ptr %16, align 8 %80 = load ptr, ptr %15, align 8 %81 = load ptr, ptr %12, align 8 %82 = load i64, ptr %16, align 8 %83 = call i32 @memcpy(ptr noundef %80, ptr noundef %81, i64 noundef %82) %84 = load i64, ptr %16, align 8 %85 = load ptr, ptr %15, align 8 %86 = getelementptr inbounds i8, ptr %85, i64 %84 store ptr %86, ptr %15, align 8 %87 = load ptr, ptr %15, align 8 %88 = load ptr, ptr %7, align 8 %89 = load i64, ptr %11, align 8 %90 = call i32 @memcpy(ptr noundef %87, ptr noundef %88, i64 noundef %89) %91 = load i64, ptr %11, align 8 %92 = load ptr, ptr %15, align 8 %93 = getelementptr inbounds i8, ptr %92, i64 %91 store ptr %93, ptr %15, align 8 br label %94 94: ; preds = %74 %95 = load ptr, ptr %13, align 8 %96 = load i64, ptr %8, align 8 %97 = getelementptr inbounds i8, ptr %95, i64 %96 store ptr %97, ptr %12, align 8 br label %69, !llvm.loop !8 98: ; preds = %69 %99 = load ptr, ptr %15, align 8 %100 = load ptr, ptr %12, align 8 %101 = call i32 @strcpy(ptr noundef %99, ptr noundef %100) %102 = load ptr, ptr %5, align 8 %103 = call i32 @free(ptr noundef %102) %104 = load ptr, ptr %14, align 8 store ptr %104, ptr %4, align 8 br label %105 105: ; preds = %98, %65 %106 = load ptr, ptr %4, align 8 ret ptr %106 } declare i32 @strlen(ptr noundef) #1 declare ptr @strstr(ptr noundef, ptr noundef) #1 declare ptr @malloc(i64 noundef) #1 declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1 declare i32 @strcpy(ptr noundef, ptr noundef) #1 declare i32 @free(ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"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/tmp1vz3go7c.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strepl(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 ptr, align 8 %8 = alloca i64, align 8 %9 = alloca i64, align 8 %10 = alloca i64, align 8 %11 = alloca i64, align 8 %12 = alloca ptr, align 8 %13 = alloca ptr, align 8 %14 = alloca ptr, align 8 %15 = alloca ptr, align 8 %16 = alloca i64, align 8 store ptr %0, ptr %5, align 8 store ptr %1, ptr %6, align 8 store ptr %2, ptr %7, align 8 %17 = load ptr, ptr %6, align 8 %18 = call i32 @strlen(ptr noundef %17) %19 = sext i32 %18 to i64 store i64 %19, ptr %8, align 8 %20 = load ptr, ptr %7, align 8 %21 = call i32 @strlen(ptr noundef %20) %22 = sext i32 %21 to i64 store i64 %22, ptr %11, align 8 %23 = load i64, ptr %8, align 8 %24 = load i64, ptr %11, align 8 %25 = icmp ne i64 %23, %24 br i1 %25, label %26, label %59 26: ; preds = %3 store i64 0, ptr %9, align 8 %27 = load ptr, ptr %5, align 8 store ptr %27, ptr %12, align 8 %28 = load ptr, ptr %12, align 8 %29 = load ptr, ptr %6, align 8 %30 = call ptr @strstr(ptr noundef %28, ptr noundef %29) store ptr %30, ptr %13, align 8 %31 = icmp ne ptr %30, null br i1 %31, label %.lr.ph, label %43 .lr.ph: ; preds = %26 br label %32 32: ; preds = %.lr.ph, %35 %33 = load i64, ptr %9, align 8 %34 = add i64 %33, 1 store i64 %34, ptr %9, align 8 br label %35 35: ; preds = %32 %36 = load ptr, ptr %13, align 8 %37 = load i64, ptr %8, align 8 %38 = getelementptr inbounds i8, ptr %36, i64 %37 store ptr %38, ptr %12, align 8 %39 = load ptr, ptr %12, align 8 %40 = load ptr, ptr %6, align 8 %41 = call ptr @strstr(ptr noundef %39, ptr noundef %40) store ptr %41, ptr %13, align 8 %42 = icmp ne ptr %41, null br i1 %42, label %32, label %._crit_edge, !llvm.loop !6 ._crit_edge: ; preds = %35 br label %43 43: ; preds = %._crit_edge, %26 %44 = load ptr, ptr %12, align 8 %45 = load ptr, ptr %5, align 8 %46 = ptrtoint ptr %44 to i64 %47 = ptrtoint ptr %45 to i64 %48 = sub i64 %46, %47 %49 = load ptr, ptr %12, align 8 %50 = call i32 @strlen(ptr noundef %49) %51 = sext i32 %50 to i64 %52 = add nsw i64 %48, %51 %53 = load i64, ptr %9, align 8 %54 = load i64, ptr %11, align 8 %55 = load i64, ptr %8, align 8 %56 = sub i64 %54, %55 %57 = mul i64 %53, %56 %58 = add i64 %52, %57 store i64 %58, ptr %10, align 8 br label %63 59: ; preds = %3 %60 = load ptr, ptr %5, align 8 %61 = call i32 @strlen(ptr noundef %60) %62 = sext i32 %61 to i64 store i64 %62, ptr %10, align 8 br label %63 63: ; preds = %59, %43 %64 = load i64, ptr %10, align 8 %65 = add i64 %64, 1 %66 = call ptr @malloc(i64 noundef %65) store ptr %66, ptr %14, align 8 %67 = icmp eq ptr %66, null br i1 %67, label %68, label %69 68: ; preds = %63 store ptr null, ptr %4, align 8 br label %111 69: ; preds = %63 %70 = load ptr, ptr %14, align 8 store ptr %70, ptr %15, align 8 %71 = load ptr, ptr %5, align 8 store ptr %71, ptr %12, align 8 %72 = load ptr, ptr %12, align 8 %73 = load ptr, ptr %6, align 8 %74 = call ptr @strstr(ptr noundef %72, ptr noundef %73) store ptr %74, ptr %13, align 8 %75 = icmp ne ptr %74, null br i1 %75, label %.lr.ph2, label %104 .lr.ph2: ; preds = %69 br label %76 76: ; preds = %.lr.ph2, %96 %77 = load ptr, ptr %13, align 8 %78 = load ptr, ptr %12, align 8 %79 = ptrtoint ptr %77 to i64 %80 = ptrtoint ptr %78 to i64 %81 = sub i64 %79, %80 store i64 %81, ptr %16, align 8 %82 = load ptr, ptr %15, align 8 %83 = load ptr, ptr %12, align 8 %84 = load i64, ptr %16, align 8 %85 = call i32 @memcpy(ptr noundef %82, ptr noundef %83, i64 noundef %84) %86 = load i64, ptr %16, align 8 %87 = load ptr, ptr %15, align 8 %88 = getelementptr inbounds i8, ptr %87, i64 %86 store ptr %88, ptr %15, align 8 %89 = load ptr, ptr %15, align 8 %90 = load ptr, ptr %7, align 8 %91 = load i64, ptr %11, align 8 %92 = call i32 @memcpy(ptr noundef %89, ptr noundef %90, i64 noundef %91) %93 = load i64, ptr %11, align 8 %94 = load ptr, ptr %15, align 8 %95 = getelementptr inbounds i8, ptr %94, i64 %93 store ptr %95, ptr %15, align 8 br label %96 96: ; preds = %76 %97 = load ptr, ptr %13, align 8 %98 = load i64, ptr %8, align 8 %99 = getelementptr inbounds i8, ptr %97, i64 %98 store ptr %99, ptr %12, align 8 %100 = load ptr, ptr %12, align 8 %101 = load ptr, ptr %6, align 8 %102 = call ptr @strstr(ptr noundef %100, ptr noundef %101) store ptr %102, ptr %13, align 8 %103 = icmp ne ptr %102, null br i1 %103, label %76, label %._crit_edge3, !llvm.loop !8 ._crit_edge3: ; preds = %96 br label %104 104: ; preds = %._crit_edge3, %69 %105 = load ptr, ptr %15, align 8 %106 = load ptr, ptr %12, align 8 %107 = call i32 @strcpy(ptr noundef %105, ptr noundef %106) %108 = load ptr, ptr %5, align 8 %109 = call i32 @free(ptr noundef %108) %110 = load ptr, ptr %14, align 8 store ptr %110, ptr %4, align 8 br label %111 111: ; preds = %104, %68 %112 = load ptr, ptr %4, align 8 ret ptr %112 } declare i32 @strlen(ptr noundef) #1 declare ptr @strstr(ptr noundef, ptr noundef) #1 declare ptr @malloc(i64 noundef) #1 declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1 declare i32 @strcpy(ptr noundef, ptr noundef) #1 declare i32 @free(ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"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/tmpthwn2xko.c' source_filename = "/tmp/tmpthwn2xko.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gfadd(i32 noundef %0, i32 noundef %1) #0 { %3 = alloca i32, align 4 %4 = alloca i32, align 4 store i32 %0, ptr %3, align 4 store i32 %1, ptr %4, align 4 %5 = load i32, ptr %3, align 4 %6 = load i32, ptr %4, align 4 %7 = xor i32 %5, %6 ret i32 %7 } attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpthwn2xko.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gfadd(i32 noundef %0, i32 noundef %1) #0 { %3 = alloca i32, align 4 %4 = alloca i32, align 4 store i32 %0, ptr %3, align 4 store i32 %1, ptr %4, align 4 %5 = load i32, ptr %3, align 4 %6 = load i32, ptr %4, align 4 %7 = xor i32 %5, %6 ret i32 %7 } attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmpoqi74b9b.c' source_filename = "/tmp/tmpoqi74b9b.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @airCbrt(double noundef %0) #0 { %2 = alloca double, align 8 store double %0, ptr %2, align 8 %3 = load double, ptr %2, align 8 %4 = call double @cbrt(double noundef %3) #2 ret double %4 } ; Function Attrs: nounwind willreturn memory(none) declare double @cbrt(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 willreturn memory(none) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #2 = { nounwind willreturn memory(none) } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpoqi74b9b.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @airCbrt(double noundef %0) #0 { %2 = alloca double, align 8 store double %0, ptr %2, align 8 %3 = load double, ptr %2, align 8 %4 = call double @cbrt(double noundef %3) #2 ret double %4 } ; Function Attrs: nounwind willreturn memory(none) declare double @cbrt(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 willreturn memory(none) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #2 = { nounwind willreturn memory(none) } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmpgv3ux0se.c' source_filename = "/tmp/tmpgv3ux0se.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [17 x i8] c"Number of calls:\00", align 1 @.str.2 = private unnamed_addr constant [13 x i8] c"%4s%10s%10s\0A\00", align 1 @.str.3 = private unnamed_addr constant [2 x i8] c"N\00", align 1 @.str.4 = private unnamed_addr constant [5 x i8] c"Fib1\00", align 1 @.str.5 = private unnamed_addr constant [5 x i8] c"Fib2\00", align 1 @.str.6 = private unnamed_addr constant [3 x i8] c"--\00", align 1 @.str.7 = private unnamed_addr constant [6 x i8] c"-----\00", align 1 @.str.8 = private unnamed_addr constant [13 x i8] c"%4d%10d%10d\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 store i32 0, ptr %3, align 4 store i32 %0, ptr %4, align 4 store ptr %1, ptr %5, align 8 %7 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1) %8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef @.str.4, ptr noundef @.str.5) %9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef @.str.6, ptr noundef @.str.7, ptr noundef @.str.7) store i32 0, ptr %6, align 4 br label %10 10: ; preds = %20, %2 %11 = load i32, ptr %6, align 4 %12 = icmp sle i32 %11, 12 br i1 %12, label %13, label %23 13: ; preds = %10 %14 = load i32, ptr %6, align 4 %15 = load i32, ptr %6, align 4 %16 = call i32 @CountFib1(i32 noundef %15) %17 = load i32, ptr %6, align 4 %18 = call i32 @CountFib2(i32 noundef %17) %19 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %14, i32 noundef %16, i32 noundef %18) br label %20 20: ; preds = %13 %21 = load i32, ptr %6, align 4 %22 = add nsw i32 %21, 1 store i32 %22, ptr %6, align 4 br label %10, !llvm.loop !6 23: ; preds = %10 ret i32 0 } declare i32 @printf(ptr noundef, ...) #1 declare i32 @CountFib1(i32 noundef) #1 declare i32 @CountFib2(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/tmpgv3ux0se.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [17 x i8] c"Number of calls:\00", align 1 @.str.2 = private unnamed_addr constant [13 x i8] c"%4s%10s%10s\0A\00", align 1 @.str.3 = private unnamed_addr constant [2 x i8] c"N\00", align 1 @.str.4 = private unnamed_addr constant [5 x i8] c"Fib1\00", align 1 @.str.5 = private unnamed_addr constant [5 x i8] c"Fib2\00", align 1 @.str.6 = private unnamed_addr constant [3 x i8] c"--\00", align 1 @.str.7 = private unnamed_addr constant [6 x i8] c"-----\00", align 1 @.str.8 = private unnamed_addr constant [13 x i8] c"%4d%10d%10d\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 store i32 0, ptr %3, align 4 store i32 %0, ptr %4, align 4 store ptr %1, ptr %5, align 8 %7 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1) %8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef @.str.4, ptr noundef @.str.5) %9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef @.str.6, ptr noundef @.str.7, ptr noundef @.str.7) store i32 0, ptr %6, align 4 %10 = load i32, ptr %6, align 4 %11 = icmp sle i32 %10, 12 br i1 %11, label %.lr.ph, label %24 .lr.ph: ; preds = %2 br label %12 12: ; preds = %.lr.ph, %19 %13 = load i32, ptr %6, align 4 %14 = load i32, ptr %6, align 4 %15 = call i32 @CountFib1(i32 noundef %14) %16 = load i32, ptr %6, align 4 %17 = call i32 @CountFib2(i32 noundef %16) %18 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %13, i32 noundef %15, i32 noundef %17) br label %19 19: ; preds = %12 %20 = load i32, ptr %6, align 4 %21 = add nsw i32 %20, 1 store i32 %21, ptr %6, align 4 %22 = load i32, ptr %6, align 4 %23 = icmp sle i32 %22, 12 br i1 %23, label %12, label %._crit_edge, !llvm.loop !6 ._crit_edge: ; preds = %19 br label %24 24: ; preds = %._crit_edge, %2 ret i32 0 } declare i32 @printf(ptr noundef, ...) #1 declare i32 @CountFib1(i32 noundef) #1 declare i32 @CountFib2(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/tmphsp9hvij.c' source_filename = "/tmp/tmphsp9hvij.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [25 x i8] c"You are %d miles away. \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 store i32 0, ptr %3, align 4 store i32 %0, ptr %4, align 4 store ptr %1, ptr %5, align 8 store i32 100, ptr %6, align 4 %7 = load i32, ptr %6, align 4 %8 = call i32 @printf(ptr noundef @.str, i32 noundef %7) ret i32 0 } declare i32 @printf(ptr noundef, i32 noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmphsp9hvij.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [25 x i8] c"You are %d miles away. \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 store i32 0, ptr %3, align 4 store i32 %0, ptr %4, align 4 store ptr %1, ptr %5, align 8 store i32 100, ptr %6, align 4 %7 = load i32, ptr %6, align 4 %8 = call i32 @printf(ptr noundef @.str, i32 noundef %7) ret i32 0 } declare i32 @printf(ptr noundef, i32 noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmpb202hy2d.c' source_filename = "/tmp/tmpb202hy2d.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @main() #0 { %1 = alloca i32, align 4 %2 = alloca i8, align 1 store i32 0, ptr %1, align 4 %3 = call i32 @scanf(ptr noundef @.str, ptr noundef %2) %4 = load i8, ptr %2, align 1 %5 = sext i8 %4 to i32 switch i32 %5, label %10 [ i32 104, label %6 i32 100, label %8 ] 6: ; preds = %0 %7 = call i32 (...) @hex_to_dec() br label %10 8: ; preds = %0 %9 = call i32 (...) @dec_to_hex() br label %10 10: ; preds = %0, %8, %6 %11 = load i32, ptr %1, align 4 ret i32 %11 } declare i32 @scanf(ptr noundef, ptr noundef) #1 declare i32 @hex_to_dec(...) #1 declare i32 @dec_to_hex(...) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpb202hy2d.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @main() #0 { %1 = alloca i32, align 4 %2 = alloca i8, align 1 store i32 0, ptr %1, align 4 %3 = call i32 @scanf(ptr noundef @.str, ptr noundef %2) %4 = load i8, ptr %2, align 1 %5 = sext i8 %4 to i32 switch i32 %5, label %10 [ i32 104, label %6 i32 100, label %8 ] 6: ; preds = %0 %7 = call i32 (...) @hex_to_dec() br label %10 8: ; preds = %0 %9 = call i32 (...) @dec_to_hex() br label %10 10: ; preds = %8, %6, %0 %11 = load i32, ptr %1, align 4 ret i32 %11 } declare i32 @scanf(ptr noundef, ptr noundef) #1 declare i32 @hex_to_dec(...) #1 declare i32 @dec_to_hex(...) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmpewyk5uzn.c' source_filename = "/tmp/tmpewyk5uzn.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 [50 x i32], align 16 %3 = alloca i32, align 4 store i32 0, ptr %1, align 4 %4 = getelementptr inbounds [50 x i32], ptr %2, i64 0, i64 0 %5 = call i32 @foo(ptr noundef %4, i32 noundef 50) %6 = getelementptr inbounds [50 x i32], ptr %2, i64 0, i64 0 %7 = call i32 @array_sum(ptr noundef %6) store i32 %7, ptr %3, align 4 %8 = load i32, ptr %3, align 4 %9 = icmp ne i32 %8, 49 br i1 %9, label %10, label %12 10: ; preds = %0 %11 = call i32 (...) @abort() #3 unreachable 12: ; preds = %0 ret i32 0 } declare i32 @foo(ptr noundef, i32 noundef) #1 declare i32 @array_sum(ptr noundef) #1 ; Function Attrs: noreturn declare i32 @abort(...) #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/tmpewyk5uzn.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 [50 x i32], align 16 %3 = alloca i32, align 4 store i32 0, ptr %1, align 4 %4 = getelementptr inbounds [50 x i32], ptr %2, i64 0, i64 0 %5 = call i32 @foo(ptr noundef %4, i32 noundef 50) %6 = getelementptr inbounds [50 x i32], ptr %2, i64 0, i64 0 %7 = call i32 @array_sum(ptr noundef %6) store i32 %7, ptr %3, align 4 %8 = load i32, ptr %3, align 4 %9 = icmp ne i32 %8, 49 br i1 %9, label %10, label %12 10: ; preds = %0 %11 = call i32 (...) @abort() #3 unreachable 12: ; preds = %0 ret i32 0 } declare i32 @foo(ptr noundef, i32 noundef) #1 declare i32 @array_sum(ptr noundef) #1 ; Function Attrs: noreturn declare i32 @abort(...) #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/tmpv3chmd66.c' source_filename = "/tmp/tmpv3chmd66.c" target datalayout = "e-m:e-p270: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 @ENOMEM = dso_local global i64 0, align 8 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local ptr @sysctl_dynread(ptr noundef %0) #0 { %2 = alloca ptr, align 8 %3 = alloca ptr, align 8 %4 = alloca ptr, align 8 %5 = alloca [16 x i32], align 16 %6 = alloca i64, align 8 %7 = alloca i64, align 8 %8 = alloca i64, align 8 %9 = alloca i32, align 4 store ptr %0, ptr %3, align 8 store ptr null, ptr %4, align 8 store i64 16, ptr %6, align 8 store i64 10, ptr %7, align 8 %10 = load ptr, ptr %3, align 8 %11 = getelementptr inbounds [16 x i32], ptr %5, i64 0, i64 0 %12 = call i32 @sysctlnametomib(ptr noundef %10, ptr noundef %11, ptr noundef %6) %13 = icmp eq i32 %12, -1 br i1 %13, label %14, label %15 14: ; preds = %1 store ptr null, ptr %2, align 8 br label %64 15: ; preds = %1 store i32 0, ptr %9, align 4 br label %16 16: ; preds = %59, %15 %17 = load i32, ptr %9, align 4 %18 = icmp slt i32 %17, 10 br i1 %18, label %19, label %62 19: ; preds = %16 %20 = getelementptr inbounds [16 x i32], ptr %5, i64 0, i64 0 %21 = load i64, ptr %6, align 8 %22 = call i32 @sysctl(ptr noundef %20, i64 noundef %21, ptr noundef null, ptr noundef %8, ptr noundef null, i32 noundef 0) %23 = icmp eq i32 %22, -1 br i1 %23, label %24, label %25 24: ; preds = %19 br label %62 25: ; preds = %19 %26 = load i64, ptr %8, align 8 %27 = load i64, ptr %7, align 8 %28 = mul i64 %26, %27 %29 = udiv i64 %28, 100 %30 = load i64, ptr %8, align 8 %31 = add i64 %30, %29 store i64 %31, ptr %8, align 8 %32 = load i64, ptr %8, align 8 %33 = call i64 @malloc(i64 noundef %32) %34 = inttoptr i64 %33 to ptr store ptr %34, ptr %4, align 8 %35 = icmp eq ptr %34, null br i1 %35, label %36, label %37 36: ; preds = %25 store ptr null, ptr %2, align 8 br label %64 37: ; preds = %25 %38 = getelementptr inbounds [16 x i32], ptr %5, i64 0, i64 0 %39 = load i64, ptr %6, align 8 %40 = load ptr, ptr %4, align 8 %41 = call i32 @sysctl(ptr noundef %38, i64 noundef %39, ptr noundef %40, ptr noundef %8, ptr noundef null, i32 noundef 0) %42 = icmp eq i32 %41, -1 br i1 %42, label %43, label %57 43: ; preds = %37 %44 = load ptr, ptr %4, align 8 %45 = call i32 @free(ptr noundef %44) store ptr null, ptr %4, align 8 %46 = load i64, ptr @errno, align 8 %47 = load i64, ptr @ENOMEM, align 8 %48 = icmp eq i64 %46, %47 br i1 %48, label %49, label %55 49: ; preds = %43 %50 = load i64, ptr %7, align 8 %51 = mul i64 %50, 50 %52 = udiv i64 %51, 100 %53 = load i64, ptr %7, align 8 %54 = add i64 %53, %52 store i64 %54, ptr %7, align 8 br label %56 55: ; preds = %43 br label %62 56: ; preds = %49 br label %58 57: ; preds = %37 br label %62 58: ; preds = %56 br label %59 59: ; preds = %58 %60 = load i32, ptr %9, align 4 %61 = add nsw i32 %60, 1 store i32 %61, ptr %9, align 4 br label %16, !llvm.loop !6 62: ; preds = %57, %55, %24, %16 %63 = load ptr, ptr %4, align 8 store ptr %63, ptr %2, align 8 br label %64 64: ; preds = %62, %36, %14 %65 = load ptr, ptr %2, align 8 ret ptr %65 } declare i32 @sysctlnametomib(ptr noundef, ptr noundef, ptr noundef) #1 declare i32 @sysctl(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1 declare i64 @malloc(i64 noundef) #1 declare i32 @free(ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpv3chmd66.c" target datalayout = "e-m:e-p270: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 @ENOMEM = dso_local global i64 0, align 8 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local ptr @sysctl_dynread(ptr noundef %0) #0 { %2 = alloca ptr, align 8 %3 = alloca ptr, align 8 %4 = alloca ptr, align 8 %5 = alloca [16 x i32], align 16 %6 = alloca i64, align 8 %7 = alloca i64, align 8 %8 = alloca i64, align 8 %9 = alloca i32, align 4 store ptr %0, ptr %3, align 8 store ptr null, ptr %4, align 8 store i64 16, ptr %6, align 8 store i64 10, ptr %7, align 8 %10 = load ptr, ptr %3, align 8 %11 = getelementptr inbounds [16 x i32], ptr %5, i64 0, i64 0 %12 = call i32 @sysctlnametomib(ptr noundef %10, ptr noundef %11, ptr noundef %6) %13 = icmp eq i32 %12, -1 br i1 %13, label %14, label %15 14: ; preds = %1 store ptr null, ptr %2, align 8 br label %65 15: ; preds = %1 store i32 0, ptr %9, align 4 %16 = load i32, ptr %9, align 4 %17 = icmp slt i32 %16, 10 br i1 %17, label %.lr.ph, label %.loopexit .lr.ph: ; preds = %15 br label %18 18: ; preds = %.lr.ph, %58 %19 = getelementptr inbounds [16 x i32], ptr %5, i64 0, i64 0 %20 = load i64, ptr %6, align 8 %21 = call i32 @sysctl(ptr noundef %19, i64 noundef %20, ptr noundef null, ptr noundef %8, ptr noundef null, i32 noundef 0) %22 = icmp eq i32 %21, -1 br i1 %22, label %23, label %24 23: ; preds = %18 br label %63 24: ; preds = %18 %25 = load i64, ptr %8, align 8 %26 = load i64, ptr %7, align 8 %27 = mul i64 %25, %26 %28 = udiv i64 %27, 100 %29 = load i64, ptr %8, align 8 %30 = add i64 %29, %28 store i64 %30, ptr %8, align 8 %31 = load i64, ptr %8, align 8 %32 = call i64 @malloc(i64 noundef %31) %33 = inttoptr i64 %32 to ptr store ptr %33, ptr %4, align 8 %34 = icmp eq ptr %33, null br i1 %34, label %35, label %36 35: ; preds = %24 store ptr null, ptr %2, align 8 br label %65 36: ; preds = %24 %37 = getelementptr inbounds [16 x i32], ptr %5, i64 0, i64 0 %38 = load i64, ptr %6, align 8 %39 = load ptr, ptr %4, align 8 %40 = call i32 @sysctl(ptr noundef %37, i64 noundef %38, ptr noundef %39, ptr noundef %8, ptr noundef null, i32 noundef 0) %41 = icmp eq i32 %40, -1 br i1 %41, label %42, label %56 42: ; preds = %36 %43 = load ptr, ptr %4, align 8 %44 = call i32 @free(ptr noundef %43) store ptr null, ptr %4, align 8 %45 = load i64, ptr @errno, align 8 %46 = load i64, ptr @ENOMEM, align 8 %47 = icmp eq i64 %45, %46 br i1 %47, label %48, label %54 48: ; preds = %42 %49 = load i64, ptr %7, align 8 %50 = mul i64 %49, 50 %51 = udiv i64 %50, 100 %52 = load i64, ptr %7, align 8 %53 = add i64 %52, %51 store i64 %53, ptr %7, align 8 br label %55 54: ; preds = %42 br label %63 55: ; preds = %48 br label %57 56: ; preds = %36 br label %63 57: ; preds = %55 br label %58 58: ; preds = %57 %59 = load i32, ptr %9, align 4 %60 = add nsw i32 %59, 1 store i32 %60, ptr %9, align 4 %61 = load i32, ptr %9, align 4 %62 = icmp slt i32 %61, 10 br i1 %62, label %18, label %..loopexit_crit_edge, !llvm.loop !6 ..loopexit_crit_edge: ; preds = %58 br label %.loopexit .loopexit: ; preds = %..loopexit_crit_edge, %15 br label %63 63: ; preds = %.loopexit, %56, %54, %23 %64 = load ptr, ptr %4, align 8 store ptr %64, ptr %2, align 8 br label %65 65: ; preds = %63, %35, %14 %66 = load ptr, ptr %2, align 8 ret ptr %66 } declare i32 @sysctlnametomib(ptr noundef, ptr noundef, ptr noundef) #1 declare i32 @sysctl(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1 declare i64 @malloc(i64 noundef) #1 declare i32 @free(ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"}
; ModuleID = '/tmp/tmp3ak7shh8.c' source_filename = "/tmp/tmp3ak7shh8.c" target datalayout = "e-m:e-p270: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/tmp3ak7shh8.c" target datalayout = "e-m:e-p270: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/tmp038qu0xw.c' source_filename = "/tmp/tmp038qu0xw.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @csr_exit_perror(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 @csr_perror(ptr noundef %3) %5 = call i32 @exit(i32 noundef 1) #3 unreachable } declare i32 @csr_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/tmp038qu0xw.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @csr_exit_perror(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 @csr_perror(ptr noundef %3) %5 = call i32 @exit(i32 noundef 1) #3 unreachable } declare i32 @csr_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/tmppb9dj_l0.c' source_filename = "/tmp/tmppb9dj_l0.c" target datalayout = "e-m:e-p270: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 i64 0, align 8 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local float @rad2deg(float noundef %0) #0 { %2 = alloca float, align 4 store float %0, ptr %2, align 4 %3 = load float, ptr %2, align 4 %4 = fmul float %3, 1.800000e+02 %5 = load i64, ptr @M_PI, align 8 %6 = sitofp i64 %5 to float %7 = fdiv float %4, %6 ret float %7 } attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmppb9dj_l0.c" target datalayout = "e-m:e-p270: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 i64 0, align 8 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local float @rad2deg(float noundef %0) #0 { %2 = alloca float, align 4 store float %0, ptr %2, align 4 %3 = load float, ptr %2, align 4 %4 = fmul float %3, 1.800000e+02 %5 = load i64, ptr @M_PI, align 8 %6 = sitofp i64 %5 to float %7 = fdiv float %4, %6 ret float %7 } attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmpdn8ro9j6.c' source_filename = "/tmp/tmpdn8ro9j6.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%i\0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @main() #0 { %1 = alloca i32, align 4 %2 = alloca i8, align 1 %3 = alloca i8, align 1 %4 = alloca i8, align 1 %5 = alloca i8, align 1 %6 = alloca i64, align 8 %7 = alloca i8, align 1 store i32 0, ptr %1, align 4 store i8 0, ptr %2, align 1 store i8 0, ptr %3, align 1 store i8 0, ptr %4, align 1 store i8 1, ptr %5, align 1 store i64 0, ptr %6, align 8 br label %8 8: ; preds = %35, %0 %9 = load i8, ptr %2, align 1 %10 = zext i8 %9 to i32 %11 = load i8, ptr %2, align 1 %12 = zext i8 %11 to i32 %13 = shl i32 %12, 4 %14 = xor i32 %10, %13 %15 = trunc i32 %14 to i8 store i8 %15, ptr %7, align 1 %16 = load i8, ptr %3, align 1 store i8 %16, ptr %2, align 1 %17 = load i8, ptr %4, align 1 store i8 %17, ptr %3, align 1 %18 = load i8, ptr %5, align 1 store i8 %18, ptr %4, align 1 %19 = load i8, ptr %4, align 1 %20 = zext i8 %19 to i32 %21 = load i8, ptr %7, align 1 %22 = zext i8 %21 to i32 %23 = xor i32 %20, %22 %24 = load i8, ptr %4, align 1 %25 = zext i8 %24 to i32 %26 = ashr i32 %25, 1 %27 = xor i32 %23, %26 %28 = load i8, ptr %7, align 1 %29 = zext i8 %28 to i32 %30 = shl i32 %29, 1 %31 = xor i32 %27, %30 %32 = trunc i32 %31 to i8 store i8 %32, ptr %5, align 1 %33 = load i8, ptr %5, align 1 %34 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %33) br label %35 35: ; preds = %8 %36 = load i64, ptr %6, align 8 %37 = add i64 %36, 1 store i64 %37, ptr %6, align 8 br label %8 } declare i32 @printf(ptr noundef, i8 noundef zeroext) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpdn8ro9j6.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%i\0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @main() #0 { %1 = alloca i32, align 4 %2 = alloca i8, align 1 %3 = alloca i8, align 1 %4 = alloca i8, align 1 %5 = alloca i8, align 1 %6 = alloca i64, align 8 %7 = alloca i8, align 1 store i32 0, ptr %1, align 4 store i8 0, ptr %2, align 1 store i8 0, ptr %3, align 1 store i8 0, ptr %4, align 1 store i8 1, ptr %5, align 1 store i64 0, ptr %6, align 8 br label %8 8: ; preds = %35, %0 %9 = load i8, ptr %2, align 1 %10 = zext i8 %9 to i32 %11 = load i8, ptr %2, align 1 %12 = zext i8 %11 to i32 %13 = shl i32 %12, 4 %14 = xor i32 %10, %13 %15 = trunc i32 %14 to i8 store i8 %15, ptr %7, align 1 %16 = load i8, ptr %3, align 1 store i8 %16, ptr %2, align 1 %17 = load i8, ptr %4, align 1 store i8 %17, ptr %3, align 1 %18 = load i8, ptr %5, align 1 store i8 %18, ptr %4, align 1 %19 = load i8, ptr %4, align 1 %20 = zext i8 %19 to i32 %21 = load i8, ptr %7, align 1 %22 = zext i8 %21 to i32 %23 = xor i32 %20, %22 %24 = load i8, ptr %4, align 1 %25 = zext i8 %24 to i32 %26 = ashr i32 %25, 1 %27 = xor i32 %23, %26 %28 = load i8, ptr %7, align 1 %29 = zext i8 %28 to i32 %30 = shl i32 %29, 1 %31 = xor i32 %27, %30 %32 = trunc i32 %31 to i8 store i8 %32, ptr %5, align 1 %33 = load i8, ptr %5, align 1 %34 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %33) br label %35 35: ; preds = %8 %36 = load i64, ptr %6, align 8 %37 = add i64 %36, 1 store i64 %37, ptr %6, align 8 br label %8 } declare i32 @printf(ptr noundef, i8 noundef zeroext) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmp7_0tds5e.c' source_filename = "/tmp/tmp7_0tds5e.c" target datalayout = "e-m:e-p270: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/tmp7_0tds5e.c" target datalayout = "e-m:e-p270: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/tmplrb4pgne.c' source_filename = "/tmp/tmplrb4pgne.c" target datalayout = "e-m:e-p270: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/tmplrb4pgne.c" target datalayout = "e-m:e-p270: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/tmp2_il8a7n.c' source_filename = "/tmp/tmp2_il8a7n.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local ptr @ft_strcat(ptr noundef %0, ptr noundef %1) #0 { %3 = alloca ptr, align 8 %4 = alloca ptr, align 8 %5 = alloca i64, align 8 %6 = alloca i64, align 8 store ptr %0, ptr %3, align 8 store ptr %1, ptr %4, align 8 store i64 0, ptr %5, align 8 store i64 0, ptr %6, align 8 br label %7 7: ; preds = %13, %2 %8 = load ptr, ptr %3, align 8 %9 = load i64, ptr %5, align 8 %10 = getelementptr inbounds i8, ptr %8, i64 %9 %11 = load i8, ptr %10, align 1 %12 = icmp ne i8 %11, 0 br i1 %12, label %13, label %16 13: ; preds = %7 %14 = load i64, ptr %5, align 8 %15 = add i64 %14, 1 store i64 %15, ptr %5, align 8 br label %7, !llvm.loop !6 16: ; preds = %7 br label %17 17: ; preds = %23, %16 %18 = load ptr, ptr %4, align 8 %19 = load i64, ptr %6, align 8 %20 = getelementptr inbounds i8, ptr %18, i64 %19 %21 = load i8, ptr %20, align 1 %22 = icmp ne i8 %21, 0 br i1 %22, label %23, label %35 23: ; preds = %17 %24 = load ptr, ptr %4, align 8 %25 = load i64, ptr %6, align 8 %26 = getelementptr inbounds i8, ptr %24, i64 %25 %27 = load i8, ptr %26, align 1 %28 = load ptr, ptr %3, align 8 %29 = load i64, ptr %5, align 8 %30 = load i64, ptr %6, align 8 %31 = add i64 %29, %30 %32 = getelementptr inbounds i8, ptr %28, i64 %31 store i8 %27, ptr %32, align 1 %33 = load i64, ptr %6, align 8 %34 = add i64 %33, 1 store i64 %34, ptr %6, align 8 br label %17, !llvm.loop !8 35: ; preds = %17 %36 = load ptr, ptr %3, align 8 %37 = load i64, ptr %5, align 8 %38 = load i64, ptr %6, align 8 %39 = add i64 %37, %38 %40 = getelementptr inbounds i8, ptr %36, i64 %39 store i8 0, ptr %40, align 1 %41 = load ptr, ptr %3, align 8 ret ptr %41 } attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"} !8 = distinct !{!8, !7}
; ModuleID = '<stdin>' source_filename = "/tmp/tmp2_il8a7n.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local ptr @ft_strcat(ptr noundef %0, ptr noundef %1) #0 { %3 = alloca ptr, align 8 %4 = alloca ptr, align 8 %5 = alloca i64, align 8 %6 = alloca i64, align 8 store ptr %0, ptr %3, align 8 store ptr %1, ptr %4, align 8 store i64 0, ptr %5, align 8 store i64 0, ptr %6, align 8 %7 = load ptr, ptr %3, align 8 %8 = load i64, ptr %5, align 8 %9 = getelementptr inbounds i8, ptr %7, i64 %8 %10 = load i8, ptr %9, align 1 %11 = icmp ne i8 %10, 0 br i1 %11, label %.lr.ph, label %20 .lr.ph: ; preds = %2 br label %12 12: ; preds = %.lr.ph, %12 %13 = load i64, ptr %5, align 8 %14 = add i64 %13, 1 store i64 %14, ptr %5, align 8 %15 = load ptr, ptr %3, align 8 %16 = load i64, ptr %5, align 8 %17 = getelementptr inbounds i8, ptr %15, i64 %16 %18 = load i8, ptr %17, align 1 %19 = icmp ne i8 %18, 0 br i1 %19, label %12, label %._crit_edge, !llvm.loop !6 ._crit_edge: ; preds = %12 br label %20 20: ; preds = %._crit_edge, %2 %21 = load ptr, ptr %4, align 8 %22 = load i64, ptr %6, align 8 %23 = getelementptr inbounds i8, ptr %21, i64 %22 %24 = load i8, ptr %23, align 1 %25 = icmp ne i8 %24, 0 br i1 %25, label %.lr.ph2, label %43 .lr.ph2: ; preds = %20 br label %26 26: ; preds = %.lr.ph2, %26 %27 = load ptr, ptr %4, align 8 %28 = load i64, ptr %6, align 8 %29 = getelementptr inbounds i8, ptr %27, i64 %28 %30 = load i8, ptr %29, align 1 %31 = load ptr, ptr %3, align 8 %32 = load i64, ptr %5, align 8 %33 = load i64, ptr %6, align 8 %34 = add i64 %32, %33 %35 = getelementptr inbounds i8, ptr %31, i64 %34 store i8 %30, ptr %35, align 1 %36 = load i64, ptr %6, align 8 %37 = add i64 %36, 1 store i64 %37, ptr %6, align 8 %38 = load ptr, ptr %4, align 8 %39 = load i64, ptr %6, align 8 %40 = getelementptr inbounds i8, ptr %38, i64 %39 %41 = load i8, ptr %40, align 1 %42 = icmp ne i8 %41, 0 br i1 %42, label %26, label %._crit_edge3, !llvm.loop !8 ._crit_edge3: ; preds = %26 br label %43 43: ; preds = %._crit_edge3, %20 %44 = load ptr, ptr %3, align 8 %45 = load i64, ptr %5, align 8 %46 = load i64, ptr %6, align 8 %47 = add i64 %45, %46 %48 = getelementptr inbounds i8, ptr %44, i64 %47 store i8 0, ptr %48, align 1 %49 = load ptr, ptr %3, align 8 ret ptr %49 } attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"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/tmpjjgd3ifa.c' source_filename = "/tmp/tmpjjgd3ifa.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 i32, align 4 %7 = alloca i32, align 4 store i32 0, ptr %3, align 4 store i32 %0, ptr %4, align 4 store ptr %1, ptr %5, align 8 %8 = load i32, ptr %4, align 4 %9 = icmp slt i32 %8, 3 br i1 %9, label %10, label %12 10: ; preds = %2 %11 = call i32 (...) @usage() br label %12 12: ; preds = %10, %2 %13 = load ptr, ptr %5, align 8 %14 = getelementptr inbounds ptr, ptr %13, i64 1 %15 = load ptr, ptr %14, align 8 %16 = call i32 @atoi(ptr noundef %15) store i32 %16, ptr %6, align 4 %17 = load ptr, ptr %5, align 8 %18 = getelementptr inbounds ptr, ptr %17, i64 2 %19 = load ptr, ptr %18, align 8 %20 = call i32 @atoi(ptr noundef %19) store i32 %20, ptr %7, align 4 %21 = load i32, ptr %6, align 4 %22 = load i32, ptr %7, align 4 %23 = call i32 @t1(i32 noundef %21, i32 noundef %22) ret i32 0 } declare i32 @usage(...) #1 declare i32 @atoi(ptr noundef) #1 declare i32 @t1(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/tmpjjgd3ifa.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 i32, align 4 %7 = alloca i32, align 4 store i32 0, ptr %3, align 4 store i32 %0, ptr %4, align 4 store ptr %1, ptr %5, align 8 %8 = load i32, ptr %4, align 4 %9 = icmp slt i32 %8, 3 br i1 %9, label %10, label %12 10: ; preds = %2 %11 = call i32 (...) @usage() br label %12 12: ; preds = %10, %2 %13 = load ptr, ptr %5, align 8 %14 = getelementptr inbounds ptr, ptr %13, i64 1 %15 = load ptr, ptr %14, align 8 %16 = call i32 @atoi(ptr noundef %15) store i32 %16, ptr %6, align 4 %17 = load ptr, ptr %5, align 8 %18 = getelementptr inbounds ptr, ptr %17, i64 2 %19 = load ptr, ptr %18, align 8 %20 = call i32 @atoi(ptr noundef %19) store i32 %20, ptr %7, align 4 %21 = load i32, ptr %6, align 4 %22 = load i32, ptr %7, align 4 %23 = call i32 @t1(i32 noundef %21, i32 noundef %22) ret i32 0 } declare i32 @usage(...) #1 declare i32 @atoi(ptr noundef) #1 declare i32 @t1(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/tmpyldr9548.c' source_filename = "/tmp/tmpyldr9548.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lli\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local ptr @mlr_alloc_string_from_ll(i64 noundef %0) #0 { %2 = alloca i64, align 8 %3 = alloca i32, align 4 %4 = alloca ptr, align 8 store i64 %0, ptr %2, align 8 %5 = load i64, ptr %2, align 8 %6 = call i32 @snprintf(ptr noundef null, i32 noundef 0, ptr noundef @.str, i64 noundef %5) store i32 %6, ptr %3, align 4 %7 = load i32, ptr %3, align 4 %8 = add nsw i32 %7, 1 %9 = call ptr @mlr_malloc_or_die(i32 noundef %8) store ptr %9, ptr %4, align 8 %10 = load ptr, ptr %4, align 8 %11 = load i64, ptr %2, align 8 %12 = call i32 @sprintf(ptr noundef %10, ptr noundef @.str, i64 noundef %11) %13 = load ptr, ptr %4, align 8 ret ptr %13 } declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i64 noundef) #1 declare ptr @mlr_malloc_or_die(i32 noundef) #1 declare i32 @sprintf(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/tmpyldr9548.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lli\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local ptr @mlr_alloc_string_from_ll(i64 noundef %0) #0 { %2 = alloca i64, align 8 %3 = alloca i32, align 4 %4 = alloca ptr, align 8 store i64 %0, ptr %2, align 8 %5 = load i64, ptr %2, align 8 %6 = call i32 @snprintf(ptr noundef null, i32 noundef 0, ptr noundef @.str, i64 noundef %5) store i32 %6, ptr %3, align 4 %7 = load i32, ptr %3, align 4 %8 = add nsw i32 %7, 1 %9 = call ptr @mlr_malloc_or_die(i32 noundef %8) store ptr %9, ptr %4, align 8 %10 = load ptr, ptr %4, align 8 %11 = load i64, ptr %2, align 8 %12 = call i32 @sprintf(ptr noundef %10, ptr noundef @.str, i64 noundef %11) %13 = load ptr, ptr %4, align 8 ret ptr %13 } declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i64 noundef) #1 declare ptr @mlr_malloc_or_die(i32 noundef) #1 declare i32 @sprintf(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/tmpdmfbc963.c' source_filename = "/tmp/tmpdmfbc963.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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"tcp\00", align 1 @stderr = dso_local global i32 0, align 4 @.str.1 = private unnamed_addr constant [47 x i8] c"Unsupported protocol (currently only tcp): %s\0A\00", align 1 @.str.2 = private unnamed_addr constant [4 x i8] c"://\00", align 1 @.str.3 = private unnamed_addr constant [37 x i8] c"Invailid argument (missing ://): %s\0A\00", align 1 @.str.4 = private unnamed_addr constant [38 x i8] c"Invailid argument (missing port): %s\0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @extract_parts(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 { %6 = alloca ptr, align 8 %7 = alloca ptr, align 8 %8 = alloca ptr, align 8 %9 = alloca ptr, align 8 %10 = alloca ptr, align 8 %11 = alloca ptr, align 8 %12 = alloca ptr, align 8 %13 = alloca i32, align 4 store ptr %0, ptr %6, align 8 store ptr %1, ptr %7, align 8 store ptr %2, ptr %8, align 8 store ptr %3, ptr %9, align 8 store ptr %4, ptr %10, align 8 %14 = load ptr, ptr %6, align 8 %15 = call i32 @strnlen(ptr noundef %14, i32 noundef 255) store i32 %15, ptr %13, align 4 %16 = load i32, ptr %13, align 4 %17 = add nsw i32 %16, 1 %18 = call ptr @calloc(i32 noundef %17, i32 noundef 1) store ptr %18, ptr %12, align 8 %19 = load ptr, ptr %12, align 8 %20 = load ptr, ptr %6, align 8 %21 = load i32, ptr %13, align 4 %22 = call i32 @strncpy(ptr noundef %19, ptr noundef %20, i32 noundef %21) %23 = load ptr, ptr %6, align 8 %24 = call ptr @strchr(ptr noundef %23, i8 noundef signext 61) store ptr %24, ptr %11, align 8 %25 = icmp ne ptr %24, null br i1 %25, label %26, label %33 26: ; preds = %5 %27 = load ptr, ptr %11, align 8 store i8 0, ptr %27, align 1 %28 = load ptr, ptr %6, align 8 %29 = load ptr, ptr %7, align 8 store ptr %28, ptr %29, align 8 %30 = load ptr, ptr %11, align 8 %31 = getelementptr inbounds i8, ptr %30, i64 1 %32 = load ptr, ptr %8, align 8 store ptr %31, ptr %32, align 8 br label %36 33: ; preds = %5 %34 = load ptr, ptr %6, align 8 %35 = load ptr, ptr %8, align 8 store ptr %34, ptr %35, align 8 br label %36 36: ; preds = %33, %26 %37 = load ptr, ptr %8, align 8 %38 = load ptr, ptr %37, align 8 %39 = call i64 @strncmp(ptr noundef @.str, ptr noundef %38, i32 noundef 3) %40 = icmp ne i64 %39, 0 br i1 %40, label %41, label %46 41: ; preds = %36 %42 = load i32, ptr @stderr, align 4 %43 = load ptr, ptr %12, align 8 %44 = call i32 @fprintf(i32 noundef %42, ptr noundef @.str.1, ptr noundef %43) %45 = call i32 (...) @usage() br label %46 46: ; preds = %41, %36 %47 = load ptr, ptr %8, align 8 %48 = load ptr, ptr %47, align 8 %49 = call ptr @strstr(ptr noundef %48, ptr noundef @.str.2) store ptr %49, ptr %11, align 8 %50 = icmp ne ptr %49, null br i1 %50, label %51, label %56 51: ; preds = %46 %52 = load ptr, ptr %11, align 8 store i8 0, ptr %52, align 1 %53 = load ptr, ptr %11, align 8 %54 = getelementptr inbounds i8, ptr %53, i64 3 %55 = load ptr, ptr %9, align 8 store ptr %54, ptr %55, align 8 br label %61 56: ; preds = %46 %57 = load i32, ptr @stderr, align 4 %58 = load ptr, ptr %12, align 8 %59 = call i32 @fprintf(i32 noundef %57, ptr noundef @.str.3, ptr noundef %58) %60 = call i32 (...) @usage() br label %61 61: ; preds = %56, %51 %62 = load ptr, ptr %9, align 8 %63 = load ptr, ptr %62, align 8 %64 = call ptr @strchr(ptr noundef %63, i8 noundef signext 58) store ptr %64, ptr %11, align 8 %65 = icmp ne ptr %64, null br i1 %65, label %66, label %71 66: ; preds = %61 %67 = load ptr, ptr %11, align 8 store i8 0, ptr %67, align 1 %68 = load ptr, ptr %11, align 8 %69 = getelementptr inbounds i8, ptr %68, i64 1 %70 = load ptr, ptr %10, align 8 store ptr %69, ptr %70, align 8 br label %76 71: ; preds = %61 %72 = load i32, ptr @stderr, align 4 %73 = load ptr, ptr %12, align 8 %74 = call i32 @fprintf(i32 noundef %72, ptr noundef @.str.4, ptr noundef %73) %75 = call i32 (...) @usage() br label %76 76: ; preds = %71, %66 %77 = load ptr, ptr %12, align 8 %78 = call i32 @free(ptr noundef %77) ret void } declare i32 @strnlen(ptr noundef, i32 noundef) #1 declare ptr @calloc(i32 noundef, i32 noundef) #1 declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1 declare ptr @strchr(ptr noundef, i8 noundef signext) #1 declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1 declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1 declare i32 @usage(...) #1 declare ptr @strstr(ptr noundef, ptr noundef) #1 declare i32 @free(ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpdmfbc963.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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"tcp\00", align 1 @stderr = dso_local global i32 0, align 4 @.str.1 = private unnamed_addr constant [47 x i8] c"Unsupported protocol (currently only tcp): %s\0A\00", align 1 @.str.2 = private unnamed_addr constant [4 x i8] c"://\00", align 1 @.str.3 = private unnamed_addr constant [37 x i8] c"Invailid argument (missing ://): %s\0A\00", align 1 @.str.4 = private unnamed_addr constant [38 x i8] c"Invailid argument (missing port): %s\0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local void @extract_parts(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 { %6 = alloca ptr, align 8 %7 = alloca ptr, align 8 %8 = alloca ptr, align 8 %9 = alloca ptr, align 8 %10 = alloca ptr, align 8 %11 = alloca ptr, align 8 %12 = alloca ptr, align 8 %13 = alloca i32, align 4 store ptr %0, ptr %6, align 8 store ptr %1, ptr %7, align 8 store ptr %2, ptr %8, align 8 store ptr %3, ptr %9, align 8 store ptr %4, ptr %10, align 8 %14 = load ptr, ptr %6, align 8 %15 = call i32 @strnlen(ptr noundef %14, i32 noundef 255) store i32 %15, ptr %13, align 4 %16 = load i32, ptr %13, align 4 %17 = add nsw i32 %16, 1 %18 = call ptr @calloc(i32 noundef %17, i32 noundef 1) store ptr %18, ptr %12, align 8 %19 = load ptr, ptr %12, align 8 %20 = load ptr, ptr %6, align 8 %21 = load i32, ptr %13, align 4 %22 = call i32 @strncpy(ptr noundef %19, ptr noundef %20, i32 noundef %21) %23 = load ptr, ptr %6, align 8 %24 = call ptr @strchr(ptr noundef %23, i8 noundef signext 61) store ptr %24, ptr %11, align 8 %25 = icmp ne ptr %24, null br i1 %25, label %26, label %33 26: ; preds = %5 %27 = load ptr, ptr %11, align 8 store i8 0, ptr %27, align 1 %28 = load ptr, ptr %6, align 8 %29 = load ptr, ptr %7, align 8 store ptr %28, ptr %29, align 8 %30 = load ptr, ptr %11, align 8 %31 = getelementptr inbounds i8, ptr %30, i64 1 %32 = load ptr, ptr %8, align 8 store ptr %31, ptr %32, align 8 br label %36 33: ; preds = %5 %34 = load ptr, ptr %6, align 8 %35 = load ptr, ptr %8, align 8 store ptr %34, ptr %35, align 8 br label %36 36: ; preds = %33, %26 %37 = load ptr, ptr %8, align 8 %38 = load ptr, ptr %37, align 8 %39 = call i64 @strncmp(ptr noundef @.str, ptr noundef %38, i32 noundef 3) %40 = icmp ne i64 %39, 0 br i1 %40, label %41, label %46 41: ; preds = %36 %42 = load i32, ptr @stderr, align 4 %43 = load ptr, ptr %12, align 8 %44 = call i32 @fprintf(i32 noundef %42, ptr noundef @.str.1, ptr noundef %43) %45 = call i32 (...) @usage() br label %46 46: ; preds = %41, %36 %47 = load ptr, ptr %8, align 8 %48 = load ptr, ptr %47, align 8 %49 = call ptr @strstr(ptr noundef %48, ptr noundef @.str.2) store ptr %49, ptr %11, align 8 %50 = icmp ne ptr %49, null br i1 %50, label %51, label %56 51: ; preds = %46 %52 = load ptr, ptr %11, align 8 store i8 0, ptr %52, align 1 %53 = load ptr, ptr %11, align 8 %54 = getelementptr inbounds i8, ptr %53, i64 3 %55 = load ptr, ptr %9, align 8 store ptr %54, ptr %55, align 8 br label %61 56: ; preds = %46 %57 = load i32, ptr @stderr, align 4 %58 = load ptr, ptr %12, align 8 %59 = call i32 @fprintf(i32 noundef %57, ptr noundef @.str.3, ptr noundef %58) %60 = call i32 (...) @usage() br label %61 61: ; preds = %56, %51 %62 = load ptr, ptr %9, align 8 %63 = load ptr, ptr %62, align 8 %64 = call ptr @strchr(ptr noundef %63, i8 noundef signext 58) store ptr %64, ptr %11, align 8 %65 = icmp ne ptr %64, null br i1 %65, label %66, label %71 66: ; preds = %61 %67 = load ptr, ptr %11, align 8 store i8 0, ptr %67, align 1 %68 = load ptr, ptr %11, align 8 %69 = getelementptr inbounds i8, ptr %68, i64 1 %70 = load ptr, ptr %10, align 8 store ptr %69, ptr %70, align 8 br label %76 71: ; preds = %61 %72 = load i32, ptr @stderr, align 4 %73 = load ptr, ptr %12, align 8 %74 = call i32 @fprintf(i32 noundef %72, ptr noundef @.str.4, ptr noundef %73) %75 = call i32 (...) @usage() br label %76 76: ; preds = %71, %66 %77 = load ptr, ptr %12, align 8 %78 = call i32 @free(ptr noundef %77) ret void } declare i32 @strnlen(ptr noundef, i32 noundef) #1 declare ptr @calloc(i32 noundef, i32 noundef) #1 declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1 declare ptr @strchr(ptr noundef, i8 noundef signext) #1 declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1 declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1 declare i32 @usage(...) #1 declare ptr @strstr(ptr noundef, ptr noundef) #1 declare i32 @free(ptr noundef) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"}
; ModuleID = '/tmp/tmp20b_tfc7.c' source_filename = "/tmp/tmp20b_tfc7.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @main() #0 { %1 = alloca i32, align 4 %2 = alloca i32, align 4 store i32 0, ptr %1, align 4 store i32 3, ptr %2, align 4 %3 = load i32, ptr %2, align 4 %4 = call i32 @ispowof2(i32 noundef %3) %5 = call i32 @printf(ptr noundef @.str, i32 noundef %4) store i32 4, ptr %2, align 4 %6 = load i32, ptr %2, align 4 %7 = call i32 @ispowof2(i32 noundef %6) %8 = call i32 @printf(ptr noundef @.str, i32 noundef %7) ret i32 0 } declare i32 @printf(ptr noundef, i32 noundef) #1 declare i32 @ispowof2(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/tmp20b_tfc7.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @main() #0 { %1 = alloca i32, align 4 %2 = alloca i32, align 4 store i32 0, ptr %1, align 4 store i32 3, ptr %2, align 4 %3 = load i32, ptr %2, align 4 %4 = call i32 @ispowof2(i32 noundef %3) %5 = call i32 @printf(ptr noundef @.str, i32 noundef %4) store i32 4, ptr %2, align 4 %6 = load i32, ptr %2, align 4 %7 = call i32 @ispowof2(i32 noundef %6) %8 = call i32 @printf(ptr noundef @.str, i32 noundef %7) ret i32 0 } declare i32 @printf(ptr noundef, i32 noundef) #1 declare i32 @ispowof2(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/tmpcw5pz3_v.c' source_filename = "/tmp/tmpcw5pz3_v.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @SHA256_DIGEST_LENGTH = dso_local global i32 0, align 4 @RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP = dso_local global i32 0, align 4 @ERR_R_MALLOC_FAILURE = dso_local global i32 0, align 4 @RSA_R_DATA_TOO_LARGE = dso_local global i32 0, align 4 @RSA_R_OAEP_DECODING_ERROR = dso_local global i32 0, align 4 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @RSA_padding_check_PKCS1_OAEP_SHA256(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6) #0 { %8 = alloca i32, align 4 %9 = alloca ptr, align 8 %10 = alloca i32, align 4 %11 = alloca ptr, align 8 %12 = alloca i32, align 4 %13 = alloca i32, align 4 %14 = alloca ptr, align 8 %15 = alloca i32, align 4 %16 = alloca i32, align 4 %17 = alloca i32, align 4 %18 = alloca i32, align 4 %19 = alloca ptr, align 8 %20 = alloca i32, align 4 %21 = alloca ptr, align 8 %22 = alloca ptr, align 8 %23 = alloca i64, align 8 %24 = alloca i64, align 8 %25 = alloca ptr, align 8 %26 = alloca i32, align 4 %27 = alloca i32, align 4 store ptr %0, ptr %9, align 8 store i32 %1, ptr %10, align 4 store ptr %2, ptr %11, align 8 store i32 %3, ptr %12, align 4 store i32 %4, ptr %13, align 4 store ptr %5, ptr %14, align 8 store i32 %6, ptr %15, align 4 store i32 -1, ptr %18, align 4 store ptr null, ptr %21, align 8 %28 = load i32, ptr @SHA256_DIGEST_LENGTH, align 4 %29 = zext i32 %28 to i64 %30 = call ptr @llvm.stacksave() store ptr %30, ptr %22, align 8 %31 = alloca i8, i64 %29, align 16 store i64 %29, ptr %23, align 8 %32 = load i32, ptr @SHA256_DIGEST_LENGTH, align 4 %33 = zext i32 %32 to i64 %34 = alloca i8, i64 %33, align 16 store i64 %33, ptr %24, align 8 store i32 0, ptr %26, align 4 %35 = load i32, ptr %13, align 4 %36 = add nsw i32 %35, -1 store i32 %36, ptr %13, align 4 %37 = load i32, ptr @SHA256_DIGEST_LENGTH, align 4 %38 = mul nsw i32 2, %37 %39 = add nsw i32 %38, 1 %40 = icmp slt i32 %36, %39 br i1 %40, label %41, label %42 41: ; preds = %7 br label %215 42: ; preds = %7 %43 = load i32, ptr %13, align 4 %44 = load i32, ptr %12, align 4 %45 = sub nsw i32 %43, %44 store i32 %45, ptr %20, align 4 %46 = load i32, ptr %20, align 4 %47 = icmp slt i32 %46, 0 br i1 %47, label %48, label %50 48: ; preds = %42 store i32 1, ptr %26, align 4 store i32 0, ptr %20, align 4 %49 = load i32, ptr %13, align 4 store i32 %49, ptr %12, align 4 br label %50 50: ; preds = %48, %42 %51 = load i32, ptr %13, align 4 %52 = load i32, ptr @SHA256_DIGEST_LENGTH, align 4 %53 = sub nsw i32 %51, %52 store i32 %53, ptr %17, align 4 %54 = load i32, ptr %17, align 4 %55 = load i32, ptr %13, align 4 %56 = add nsw i32 %54, %55 %57 = call ptr @OPENSSL_malloc(i32 noundef %56) store ptr %57, ptr %21, align 8 %58 = load ptr, ptr %21, align 8 %59 = icmp eq ptr %58, null br i1 %59, label %60, label %64 60: ; preds = %50 %61 = load i32, ptr @RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP, align 4 %62 = load i32, ptr @ERR_R_MALLOC_FAILURE, align 4 %63 = call i32 @RSAerr(i32 noundef %61, i32 noundef %62) store i32 -1, ptr %8, align 4 store i32 1, ptr %27, align 4 br label %225 64: ; preds = %50 %65 = load ptr, ptr %21, align 8 %66 = load i32, ptr %17, align 4 %67 = sext i32 %66 to i64 %68 = getelementptr inbounds i8, ptr %65, i64 %67 store ptr %68, ptr %25, align 8 %69 = load ptr, ptr %25, align 8 %70 = load i32, ptr %20, align 4 %71 = call i32 @memset(ptr noundef %69, i32 noundef 0, i32 noundef %70) %72 = load ptr, ptr %25, align 8 %73 = load i32, ptr %20, align 4 %74 = sext i32 %73 to i64 %75 = getelementptr inbounds i8, ptr %72, i64 %74 %76 = load ptr, ptr %11, align 8 %77 = load i32, ptr %12, align 4 %78 = call i32 @memcpy(ptr noundef %75, ptr noundef %76, i32 noundef %77) %79 = load ptr, ptr %25, align 8 %80 = load i32, ptr @SHA256_DIGEST_LENGTH, align 4 %81 = sext i32 %80 to i64 %82 = getelementptr inbounds i8, ptr %79, i64 %81 store ptr %82, ptr %19, align 8 %83 = load i32, ptr @SHA256_DIGEST_LENGTH, align 4 %84 = load ptr, ptr %19, align 8 %85 = load i32, ptr %17, align 4 %86 = call i64 @MGF1_SHA256(ptr noundef %31, i32 noundef %83, ptr noundef %84, i32 noundef %85) %87 = icmp ne i64 %86, 0 br i1 %87, label %88, label %89 88: ; preds = %64 store i32 -1, ptr %8, align 4 store i32 1, ptr %27, align 4 br label %225 89: ; preds = %64 store i32 0, ptr %16, align 4 br label %90 90: ; preds = %108, %89 %91 = load i32, ptr %16, align 4 %92 = load i32, ptr @SHA256_DIGEST_LENGTH, align 4 %93 = icmp slt i32 %91, %92 br i1 %93, label %94, label %111 94: ; preds = %90 %95 = load ptr, ptr %25, align 8 %96 = load i32, ptr %16, align 4 %97 = sext i32 %96 to i64 %98 = getelementptr inbounds i8, ptr %95, i64 %97 %99 = load i8, ptr %98, align 1 %100 = zext i8 %99 to i32 %101 = load i32, ptr %16, align 4 %102 = sext i32 %101 to i64 %103 = getelementptr inbounds i8, ptr %31, i64 %102 %104 = load i8, ptr %103, align 1 %105 = zext i8 %104 to i32 %106 = xor i32 %105, %100 %107 = trunc i32 %106 to i8 store i8 %107, ptr %103, align 1 br label %108 108: ; preds = %94 %109 = load i32, ptr %16, align 4 %110 = add nsw i32 %109, 1 store i32 %110, ptr %16, align 4 br label %90, !llvm.loop !6 111: ; preds = %90 %112 = load ptr, ptr %21, align 8 %113 = load i32, ptr %17, align 4 %114 = load i32, ptr @SHA256_DIGEST_LENGTH, align 4 %115 = call i64 @MGF1_SHA256(ptr noundef %112, i32 noundef %113, ptr noundef %31, i32 noundef %114) %116 = icmp ne i64 %115, 0 br i1 %116, label %117, label %118 117: ; preds = %111 store i32 -1, ptr %8, align 4 store i32 1, ptr %27, align 4 br label %225 118: ; preds = %111 store i32 0, ptr %16, align 4 br label %119 119: ; preds = %138, %118 %120 = load i32, ptr %16, align 4 %121 = load i32, ptr %17, align 4 %122 = icmp slt i32 %120, %121 br i1 %122, label %123, label %141 123: ; preds = %119 %124 = load ptr, ptr %19, align 8 %125 = load i32, ptr %16, align 4 %126 = sext i32 %125 to i64 %127 = getelementptr inbounds i8, ptr %124, i64 %126 %128 = load i8, ptr %127, align 1 %129 = zext i8 %128 to i32 %130 = load ptr, ptr %21, align 8 %131 = load i32, ptr %16, align 4 %132 = sext i32 %131 to i64 %133 = getelementptr inbounds i8, ptr %130, i64 %132 %134 = load i8, ptr %133, align 1 %135 = zext i8 %134 to i32 %136 = xor i32 %135, %129 %137 = trunc i32 %136 to i8 store i8 %137, ptr %133, align 1 br label %138 138: ; preds = %123 %139 = load i32, ptr %16, align 4 %140 = add nsw i32 %139, 1 store i32 %140, ptr %16, align 4 br label %119, !llvm.loop !8 141: ; preds = %119 %142 = load ptr, ptr %14, align 8 %143 = load i32, ptr %15, align 4 %144 = call i32 (...) @EVP_sha256() %145 = call i32 @EVP_Digest(ptr noundef %142, i32 noundef %143, ptr noundef %34, ptr noundef null, i32 noundef %144, ptr noundef null) %146 = icmp ne i32 %145, 0 br i1 %146, label %148, label %147 147: ; preds = %141 store i32 -1, ptr %8, align 4 store i32 1, ptr %27, align 4 br label %225 148: ; preds = %141 %149 = load ptr, ptr %21, align 8 %150 = load i32, ptr @SHA256_DIGEST_LENGTH, align 4 %151 = call i64 @CRYPTO_memcmp(ptr noundef %149, ptr noundef %34, i32 noundef %150) %152 = icmp ne i64 %151, 0 br i1 %152, label %156, label %153 153: ; preds = %148 %154 = load i32, ptr %26, align 4 %155 = icmp ne i32 %154, 0 br i1 %155, label %156, label %157 156: ; preds = %153, %148 br label %215 157: ; preds = %153 %158 = load i32, ptr @SHA256_DIGEST_LENGTH, align 4 store i32 %158, ptr %16, align 4 br label %159 159: ; preds = %173, %157 %160 = load i32, ptr %16, align 4 %161 = load i32, ptr %17, align 4 %162 = icmp slt i32 %160, %161 br i1 %162, label %163, label %176 163: ; preds = %159 %164 = load ptr, ptr %21, align 8 %165 = load i32, ptr %16, align 4 %166 = sext i32 %165 to i64 %167 = getelementptr inbounds i8, ptr %164, i64 %166 %168 = load i8, ptr %167, align 1 %169 = zext i8 %168 to i32 %170 = icmp ne i32 %169, 0 br i1 %170, label %171, label %172 171: ; preds = %163 br label %176 172: ; preds = %163 br label %173 173: ; preds = %172 %174 = load i32, ptr %16, align 4 %175 = add nsw i32 %174, 1 store i32 %175, ptr %16, align 4 br label %159, !llvm.loop !9 176: ; preds = %171, %159 %177 = load i32, ptr %16, align 4 %178 = load i32, ptr %17, align 4 %179 = icmp eq i32 %177, %178 br i1 %179, label %188, label %180 180: ; preds = %176 %181 = load ptr, ptr %21, align 8 %182 = load i32, ptr %16, align 4 %183 = sext i32 %182 to i64 %184 = getelementptr inbounds i8, ptr %181, i64 %183 %185 = load i8, ptr %184, align 1 %186 = zext i8 %185 to i32 %187 = icmp ne i32 %186, 1 br i1 %187, label %188, label %189 188: ; preds = %180, %176 br label %215 189: ; preds = %180 %190 = load i32, ptr %17, align 4 %191 = load i32, ptr %16, align 4 %192 = add nsw i32 %191, 1 store i32 %192, ptr %16, align 4 %193 = sub nsw i32 %190, %192 store i32 %193, ptr %18, align 4 %194 = load i32, ptr %10, align 4 %195 = load i32, ptr %18, align 4 %196 = icmp slt i32 %194, %195 br i1 %196, label %197, label %201 197: ; preds = %189 %198 = load i32, ptr @RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP, align 4 %199 = load i32, ptr @RSA_R_DATA_TOO_LARGE, align 4 %200 = call i32 @RSAerr(i32 noundef %198, i32 noundef %199) store i32 -1, ptr %18, align 4 br label %209 201: ; preds = %189 %202 = load ptr, ptr %9, align 8 %203 = load ptr, ptr %21, align 8 %204 = load i32, ptr %16, align 4 %205 = sext i32 %204 to i64 %206 = getelementptr inbounds i8, ptr %203, i64 %205 %207 = load i32, ptr %18, align 4 %208 = call i32 @memcpy(ptr noundef %202, ptr noundef %206, i32 noundef %207) br label %209 209: ; preds = %201, %197 br label %210 210: ; preds = %209 br label %211 211: ; preds = %210 %212 = load ptr, ptr %21, align 8 %213 = call i32 @OPENSSL_free(ptr noundef %212) %214 = load i32, ptr %18, align 4 store i32 %214, ptr %8, align 4 store i32 1, ptr %27, align 4 br label %225 215: ; preds = %188, %156, %41 %216 = load i32, ptr @RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP, align 4 %217 = load i32, ptr @RSA_R_OAEP_DECODING_ERROR, align 4 %218 = call i32 @RSAerr(i32 noundef %216, i32 noundef %217) %219 = load ptr, ptr %21, align 8 %220 = icmp ne ptr %219, null br i1 %220, label %221, label %224 221: ; preds = %215 %222 = load ptr, ptr %21, align 8 %223 = call i32 @OPENSSL_free(ptr noundef %222) br label %224 224: ; preds = %221, %215 store i32 -1, ptr %8, align 4 store i32 1, ptr %27, align 4 br label %225 225: ; preds = %224, %211, %147, %117, %88, %60 %226 = load ptr, ptr %22, align 8 call void @llvm.stackrestore(ptr %226) %227 = load i32, ptr %8, align 4 ret i32 %227 } ; Function Attrs: nocallback nofree nosync nounwind willreturn declare ptr @llvm.stacksave() #1 declare ptr @OPENSSL_malloc(i32 noundef) #2 declare i32 @RSAerr(i32 noundef, i32 noundef) #2 declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #2 declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #2 declare i64 @MGF1_SHA256(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2 declare i32 @EVP_Digest(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2 declare i32 @EVP_sha256(...) #2 declare i64 @CRYPTO_memcmp(ptr noundef, ptr noundef, i32 noundef) #2 declare i32 @OPENSSL_free(ptr noundef) #2 ; Function Attrs: nocallback nofree nosync nounwind willreturn declare void @llvm.stackrestore(ptr) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { nocallback nofree nosync nounwind willreturn } attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"} !8 = distinct !{!8, !7} !9 = distinct !{!9, !7}
; ModuleID = '<stdin>' source_filename = "/tmp/tmpcw5pz3_v.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @SHA256_DIGEST_LENGTH = dso_local global i32 0, align 4 @RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP = dso_local global i32 0, align 4 @ERR_R_MALLOC_FAILURE = dso_local global i32 0, align 4 @RSA_R_DATA_TOO_LARGE = dso_local global i32 0, align 4 @RSA_R_OAEP_DECODING_ERROR = dso_local global i32 0, align 4 ; Function Attrs: noinline nounwind sspstrong uwtable define dso_local i32 @RSA_padding_check_PKCS1_OAEP_SHA256(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6) #0 { %8 = alloca i32, align 4 %9 = alloca ptr, align 8 %10 = alloca i32, align 4 %11 = alloca ptr, align 8 %12 = alloca i32, align 4 %13 = alloca i32, align 4 %14 = alloca ptr, align 8 %15 = alloca i32, align 4 %16 = alloca i32, align 4 %17 = alloca i32, align 4 %18 = alloca i32, align 4 %19 = alloca ptr, align 8 %20 = alloca i32, align 4 %21 = alloca ptr, align 8 %22 = alloca ptr, align 8 %23 = alloca i64, align 8 %24 = alloca i64, align 8 %25 = alloca ptr, align 8 %26 = alloca i32, align 4 %27 = alloca i32, align 4 store ptr %0, ptr %9, align 8 store i32 %1, ptr %10, align 4 store ptr %2, ptr %11, align 8 store i32 %3, ptr %12, align 4 store i32 %4, ptr %13, align 4 store ptr %5, ptr %14, align 8 store i32 %6, ptr %15, align 4 store i32 -1, ptr %18, align 4 store ptr null, ptr %21, align 8 %28 = load i32, ptr @SHA256_DIGEST_LENGTH, align 4 %29 = zext i32 %28 to i64 %30 = call ptr @llvm.stacksave() store ptr %30, ptr %22, align 8 %31 = alloca i8, i64 %29, align 16 store i64 %29, ptr %23, align 8 %32 = load i32, ptr @SHA256_DIGEST_LENGTH, align 4 %33 = zext i32 %32 to i64 %34 = alloca i8, i64 %33, align 16 store i64 %33, ptr %24, align 8 store i32 0, ptr %26, align 4 %35 = load i32, ptr %13, align 4 %36 = add nsw i32 %35, -1 store i32 %36, ptr %13, align 4 %37 = load i32, ptr @SHA256_DIGEST_LENGTH, align 4 %38 = mul nsw i32 2, %37 %39 = add nsw i32 %38, 1 %40 = icmp slt i32 %36, %39 br i1 %40, label %41, label %42 41: ; preds = %7 br label %221 42: ; preds = %7 %43 = load i32, ptr %13, align 4 %44 = load i32, ptr %12, align 4 %45 = sub nsw i32 %43, %44 store i32 %45, ptr %20, align 4 %46 = load i32, ptr %20, align 4 %47 = icmp slt i32 %46, 0 br i1 %47, label %48, label %50 48: ; preds = %42 store i32 1, ptr %26, align 4 store i32 0, ptr %20, align 4 %49 = load i32, ptr %13, align 4 store i32 %49, ptr %12, align 4 br label %50 50: ; preds = %48, %42 %51 = load i32, ptr %13, align 4 %52 = load i32, ptr @SHA256_DIGEST_LENGTH, align 4 %53 = sub nsw i32 %51, %52 store i32 %53, ptr %17, align 4 %54 = load i32, ptr %17, align 4 %55 = load i32, ptr %13, align 4 %56 = add nsw i32 %54, %55 %57 = call ptr @OPENSSL_malloc(i32 noundef %56) store ptr %57, ptr %21, align 8 %58 = load ptr, ptr %21, align 8 %59 = icmp eq ptr %58, null br i1 %59, label %60, label %64 60: ; preds = %50 %61 = load i32, ptr @RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP, align 4 %62 = load i32, ptr @ERR_R_MALLOC_FAILURE, align 4 %63 = call i32 @RSAerr(i32 noundef %61, i32 noundef %62) store i32 -1, ptr %8, align 4 store i32 1, ptr %27, align 4 br label %231 64: ; preds = %50 %65 = load ptr, ptr %21, align 8 %66 = load i32, ptr %17, align 4 %67 = sext i32 %66 to i64 %68 = getelementptr inbounds i8, ptr %65, i64 %67 store ptr %68, ptr %25, align 8 %69 = load ptr, ptr %25, align 8 %70 = load i32, ptr %20, align 4 %71 = call i32 @memset(ptr noundef %69, i32 noundef 0, i32 noundef %70) %72 = load ptr, ptr %25, align 8 %73 = load i32, ptr %20, align 4 %74 = sext i32 %73 to i64 %75 = getelementptr inbounds i8, ptr %72, i64 %74 %76 = load ptr, ptr %11, align 8 %77 = load i32, ptr %12, align 4 %78 = call i32 @memcpy(ptr noundef %75, ptr noundef %76, i32 noundef %77) %79 = load ptr, ptr %25, align 8 %80 = load i32, ptr @SHA256_DIGEST_LENGTH, align 4 %81 = sext i32 %80 to i64 %82 = getelementptr inbounds i8, ptr %79, i64 %81 store ptr %82, ptr %19, align 8 %83 = load i32, ptr @SHA256_DIGEST_LENGTH, align 4 %84 = load ptr, ptr %19, align 8 %85 = load i32, ptr %17, align 4 %86 = call i64 @MGF1_SHA256(ptr noundef %31, i32 noundef %83, ptr noundef %84, i32 noundef %85) %87 = icmp ne i64 %86, 0 br i1 %87, label %88, label %89 88: ; preds = %64 store i32 -1, ptr %8, align 4 store i32 1, ptr %27, align 4 br label %231 89: ; preds = %64 store i32 0, ptr %16, align 4 %90 = load i32, ptr %16, align 4 %91 = load i32, ptr @SHA256_DIGEST_LENGTH, align 4 %92 = icmp slt i32 %90, %91 br i1 %92, label %.lr.ph, label %113 .lr.ph: ; preds = %89 br label %93 93: ; preds = %.lr.ph, %107 %94 = load ptr, ptr %25, align 8 %95 = load i32, ptr %16, align 4 %96 = sext i32 %95 to i64 %97 = getelementptr inbounds i8, ptr %94, i64 %96 %98 = load i8, ptr %97, align 1 %99 = zext i8 %98 to i32 %100 = load i32, ptr %16, align 4 %101 = sext i32 %100 to i64 %102 = getelementptr inbounds i8, ptr %31, i64 %101 %103 = load i8, ptr %102, align 1 %104 = zext i8 %103 to i32 %105 = xor i32 %104, %99 %106 = trunc i32 %105 to i8 store i8 %106, ptr %102, align 1 br label %107 107: ; preds = %93 %108 = load i32, ptr %16, align 4 %109 = add nsw i32 %108, 1 store i32 %109, ptr %16, align 4 %110 = load i32, ptr %16, align 4 %111 = load i32, ptr @SHA256_DIGEST_LENGTH, align 4 %112 = icmp slt i32 %110, %111 br i1 %112, label %93, label %._crit_edge, !llvm.loop !6 ._crit_edge: ; preds = %107 br label %113 113: ; preds = %._crit_edge, %89 %114 = load ptr, ptr %21, align 8 %115 = load i32, ptr %17, align 4 %116 = load i32, ptr @SHA256_DIGEST_LENGTH, align 4 %117 = call i64 @MGF1_SHA256(ptr noundef %114, i32 noundef %115, ptr noundef %31, i32 noundef %116) %118 = icmp ne i64 %117, 0 br i1 %118, label %119, label %120 119: ; preds = %113 store i32 -1, ptr %8, align 4 store i32 1, ptr %27, align 4 br label %231 120: ; preds = %113 store i32 0, ptr %16, align 4 %121 = load i32, ptr %16, align 4 %122 = load i32, ptr %17, align 4 %123 = icmp slt i32 %121, %122 br i1 %123, label %.lr.ph2, label %145 .lr.ph2: ; preds = %120 br label %124 124: ; preds = %.lr.ph2, %139 %125 = load ptr, ptr %19, align 8 %126 = load i32, ptr %16, align 4 %127 = sext i32 %126 to i64 %128 = getelementptr inbounds i8, ptr %125, i64 %127 %129 = load i8, ptr %128, align 1 %130 = zext i8 %129 to i32 %131 = load ptr, ptr %21, align 8 %132 = load i32, ptr %16, align 4 %133 = sext i32 %132 to i64 %134 = getelementptr inbounds i8, ptr %131, i64 %133 %135 = load i8, ptr %134, align 1 %136 = zext i8 %135 to i32 %137 = xor i32 %136, %130 %138 = trunc i32 %137 to i8 store i8 %138, ptr %134, align 1 br label %139 139: ; preds = %124 %140 = load i32, ptr %16, align 4 %141 = add nsw i32 %140, 1 store i32 %141, ptr %16, align 4 %142 = load i32, ptr %16, align 4 %143 = load i32, ptr %17, align 4 %144 = icmp slt i32 %142, %143 br i1 %144, label %124, label %._crit_edge3, !llvm.loop !8 ._crit_edge3: ; preds = %139 br label %145 145: ; preds = %._crit_edge3, %120 %146 = load ptr, ptr %14, align 8 %147 = load i32, ptr %15, align 4 %148 = call i32 (...) @EVP_sha256() %149 = call i32 @EVP_Digest(ptr noundef %146, i32 noundef %147, ptr noundef %34, ptr noundef null, i32 noundef %148, ptr noundef null) %150 = icmp ne i32 %149, 0 br i1 %150, label %152, label %151 151: ; preds = %145 store i32 -1, ptr %8, align 4 store i32 1, ptr %27, align 4 br label %231 152: ; preds = %145 %153 = load ptr, ptr %21, align 8 %154 = load i32, ptr @SHA256_DIGEST_LENGTH, align 4 %155 = call i64 @CRYPTO_memcmp(ptr noundef %153, ptr noundef %34, i32 noundef %154) %156 = icmp ne i64 %155, 0 br i1 %156, label %160, label %157 157: ; preds = %152 %158 = load i32, ptr %26, align 4 %159 = icmp ne i32 %158, 0 br i1 %159, label %160, label %161 160: ; preds = %157, %152 br label %221 161: ; preds = %157 %162 = load i32, ptr @SHA256_DIGEST_LENGTH, align 4 store i32 %162, ptr %16, align 4 %163 = load i32, ptr %16, align 4 %164 = load i32, ptr %17, align 4 %165 = icmp slt i32 %163, %164 br i1 %165, label %.lr.ph5, label %.loopexit .lr.ph5: ; preds = %161 br label %166 166: ; preds = %.lr.ph5, %176 %167 = load ptr, ptr %21, align 8 %168 = load i32, ptr %16, align 4 %169 = sext i32 %168 to i64 %170 = getelementptr inbounds i8, ptr %167, i64 %169 %171 = load i8, ptr %170, align 1 %172 = zext i8 %171 to i32 %173 = icmp ne i32 %172, 0 br i1 %173, label %174, label %175 174: ; preds = %166 br label %182 175: ; preds = %166 br label %176 176: ; preds = %175 %177 = load i32, ptr %16, align 4 %178 = add nsw i32 %177, 1 store i32 %178, ptr %16, align 4 %179 = load i32, ptr %16, align 4 %180 = load i32, ptr %17, align 4 %181 = icmp slt i32 %179, %180 br i1 %181, label %166, label %..loopexit_crit_edge, !llvm.loop !9 ..loopexit_crit_edge: ; preds = %176 br label %.loopexit .loopexit: ; preds = %..loopexit_crit_edge, %161 br label %182 182: ; preds = %.loopexit, %174 %183 = load i32, ptr %16, align 4 %184 = load i32, ptr %17, align 4 %185 = icmp eq i32 %183, %184 br i1 %185, label %194, label %186 186: ; preds = %182 %187 = load ptr, ptr %21, align 8 %188 = load i32, ptr %16, align 4 %189 = sext i32 %188 to i64 %190 = getelementptr inbounds i8, ptr %187, i64 %189 %191 = load i8, ptr %190, align 1 %192 = zext i8 %191 to i32 %193 = icmp ne i32 %192, 1 br i1 %193, label %194, label %195 194: ; preds = %186, %182 br label %221 195: ; preds = %186 %196 = load i32, ptr %17, align 4 %197 = load i32, ptr %16, align 4 %198 = add nsw i32 %197, 1 store i32 %198, ptr %16, align 4 %199 = sub nsw i32 %196, %198 store i32 %199, ptr %18, align 4 %200 = load i32, ptr %10, align 4 %201 = load i32, ptr %18, align 4 %202 = icmp slt i32 %200, %201 br i1 %202, label %203, label %207 203: ; preds = %195 %204 = load i32, ptr @RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP, align 4 %205 = load i32, ptr @RSA_R_DATA_TOO_LARGE, align 4 %206 = call i32 @RSAerr(i32 noundef %204, i32 noundef %205) store i32 -1, ptr %18, align 4 br label %215 207: ; preds = %195 %208 = load ptr, ptr %9, align 8 %209 = load ptr, ptr %21, align 8 %210 = load i32, ptr %16, align 4 %211 = sext i32 %210 to i64 %212 = getelementptr inbounds i8, ptr %209, i64 %211 %213 = load i32, ptr %18, align 4 %214 = call i32 @memcpy(ptr noundef %208, ptr noundef %212, i32 noundef %213) br label %215 215: ; preds = %207, %203 br label %216 216: ; preds = %215 br label %217 217: ; preds = %216 %218 = load ptr, ptr %21, align 8 %219 = call i32 @OPENSSL_free(ptr noundef %218) %220 = load i32, ptr %18, align 4 store i32 %220, ptr %8, align 4 store i32 1, ptr %27, align 4 br label %231 221: ; preds = %194, %160, %41 %222 = load i32, ptr @RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP, align 4 %223 = load i32, ptr @RSA_R_OAEP_DECODING_ERROR, align 4 %224 = call i32 @RSAerr(i32 noundef %222, i32 noundef %223) %225 = load ptr, ptr %21, align 8 %226 = icmp ne ptr %225, null br i1 %226, label %227, label %230 227: ; preds = %221 %228 = load ptr, ptr %21, align 8 %229 = call i32 @OPENSSL_free(ptr noundef %228) br label %230 230: ; preds = %227, %221 store i32 -1, ptr %8, align 4 store i32 1, ptr %27, align 4 br label %231 231: ; preds = %230, %217, %151, %119, %88, %60 %232 = load ptr, ptr %22, align 8 call void @llvm.stackrestore(ptr %232) %233 = load i32, ptr %8, align 4 ret i32 %233 } ; Function Attrs: nocallback nofree nosync nounwind willreturn declare ptr @llvm.stacksave() #1 declare ptr @OPENSSL_malloc(i32 noundef) #2 declare i32 @RSAerr(i32 noundef, i32 noundef) #2 declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #2 declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #2 declare i64 @MGF1_SHA256(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2 declare i32 @EVP_Digest(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2 declare i32 @EVP_sha256(...) #2 declare i64 @CRYPTO_memcmp(ptr noundef, ptr noundef, i32 noundef) #2 declare i32 @OPENSSL_free(ptr noundef) #2 ; Function Attrs: nocallback nofree nosync nounwind willreturn declare void @llvm.stackrestore(ptr) #1 attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { nocallback nofree nosync nounwind willreturn } attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3, !4} !llvm.ident = !{!5} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2} !5 = !{!"clang version 17.0.6"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"} !8 = distinct !{!8, !7} !9 = distinct !{!9, !7}