llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmpdwimdmwy.c'
source_filename = "/tmp/tmpdwimdmwy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
br label %4
4: ; preds = %8, %0
%5 = load i32, ptr %2, align 4
%6 = add nsw i32 %5, -1
store i32 %6, ptr %2, align 4
%7 = icmp ne i32 %5, 0
br i1 %7, label %8, label %11
8: ; preds = %4
%9 = call i32 (...) @total_score()
%10 = call i32 @printf(ptr noundef @.str.1, i32 noundef %9)
br label %4, !llvm.loop !6
11: ; preds = %4
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @total_score(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpdwimdmwy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%4 = load i32, ptr %2, align 4
%5 = add nsw i32 %4, -1
store i32 %5, ptr %2, align 4
%6 = icmp ne i32 %4, 0
br i1 %6, label %.lr.ph, label %13
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %7
%8 = call i32 (...) @total_score()
%9 = call i32 @printf(ptr noundef @.str.1, i32 noundef %8)
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, -1
store i32 %11, ptr %2, align 4
%12 = icmp ne i32 %10, 0
br i1 %12, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %7
br label %13
13: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @total_score(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpy5ufecbq.c'
source_filename = "/tmp/tmpy5ufecbq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [50 x i8] c"Usage:\0A\09%s out.bin out.h binary1 [binary2 [...]]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy5ufecbq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [50 x i8] c"Usage:\0A\09%s out.bin out.h binary1 [binary2 [...]]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgrplmj3m.c'
source_filename = "/tmp/tmpgrplmj3m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [201 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AmesianX/OpenBLT/refs/heads/master/Target/Demo/ARMCM3_LM3S_EK_LM3S8962_Crossworks/Boot/lib/driverlib/uartlib.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @UARTIntEnable(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %3, align 8
%6 = call i32 @UARTBaseValid(i64 noundef %5)
%7 = icmp ne i32 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %2
%9 = call i32 @AssertFailure(ptr noundef @.str, i32 noundef 1361)
br label %10
10: ; preds = %8, %2
%11 = load i64, ptr %4, align 8
%12 = load i64, ptr %3, align 8
%13 = add i64 %12, 56
%14 = inttoptr i64 %13 to ptr
%15 = load volatile i64, ptr %14, align 8
%16 = or i64 %15, %11
store volatile i64 %16, ptr %14, align 8
ret void
}
declare i32 @UARTBaseValid(i64 noundef) #1
declare i32 @AssertFailure(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/tmpgrplmj3m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [201 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AmesianX/OpenBLT/refs/heads/master/Target/Demo/ARMCM3_LM3S_EK_LM3S8962_Crossworks/Boot/lib/driverlib/uartlib.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @UARTIntEnable(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %3, align 8
%6 = call i32 @UARTBaseValid(i64 noundef %5)
%7 = icmp ne i32 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %2
%9 = call i32 @AssertFailure(ptr noundef @.str, i32 noundef 1361)
br label %10
10: ; preds = %8, %2
%11 = load i64, ptr %4, align 8
%12 = load i64, ptr %3, align 8
%13 = add i64 %12, 56
%14 = inttoptr i64 %13 to ptr
%15 = load volatile i64, ptr %14, align 8
%16 = or i64 %15, %11
store volatile i64 %16, ptr %14, align 8
ret void
}
declare i32 @UARTBaseValid(i64 noundef) #1
declare i32 @AssertFailure(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/tmp1btx9xox.c'
source_filename = "/tmp/tmp1btx9xox.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [50 x i8] c"Enter row and column numbers of matrices 1 and 2:\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c" %u %u %u %u%*c\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"Enter value of Matrix 1 (%ux%u):\0A\00", align 1
@.str.3 = private unnamed_addr constant [34 x i8] c"Enter value of Matrix 2 (%ux%u):\0A\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"What would you like to do?\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c" ( 0) Exit\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c" ( 1) Display\00", align 1
@.str.7 = private unnamed_addr constant [10 x i8] c" ( 2) Sum\00", align 1
@.str.8 = private unnamed_addr constant [21 x i8] c" ( 3) Sparse Display\00", align 1
@.str.9 = private unnamed_addr constant [17 x i8] c" ( 4) Sparse Sum\00", align 1
@.str.10 = private unnamed_addr constant [7 x i8] c" %u%*c\00", align 1
@.str.11 = private unnamed_addr constant [5 x i8] c"Bye!\00", align 1
@.str.12 = private unnamed_addr constant [10 x i8] c"Matrix 1:\00", align 1
@.str.13 = private unnamed_addr constant [10 x i8] c"Matrix 2:\00", align 1
@.str.14 = private unnamed_addr constant [17 x i8] c"Sparse Matrix 1:\00", align 1
@.str.15 = private unnamed_addr constant [17 x i8] c"Sparse Matrix 2:\00", align 1
@.str.16 = private unnamed_addr constant [18 x i8] c"Incorrect Choice!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [80 x [80 x i32]], align 16
%8 = alloca [80 x [80 x i32]], align 16
%9 = alloca [80 x [80 x i32]], align 16
%10 = alloca [80 x [80 x i32]], align 16
store i32 0, ptr %1, align 4
%11 = call i32 @puts(ptr noundef @.str)
%12 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%13 = call i32 @putchar(i8 noundef signext 10)
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr %3, align 4
%16 = call i32 @printf(ptr noundef @.str.2, i32 noundef %14, i32 noundef %15)
%17 = getelementptr inbounds [80 x [80 x i32]], ptr %7, i64 0, i64 0
%18 = load i32, ptr %2, align 4
%19 = load i32, ptr %3, align 4
%20 = call i32 @mat_read(ptr noundef %17, i32 noundef %18, i32 noundef %19)
%21 = call i32 @putchar(i8 noundef signext 10)
%22 = load i32, ptr %4, align 4
%23 = load i32, ptr %5, align 4
%24 = call i32 @printf(ptr noundef @.str.3, i32 noundef %22, i32 noundef %23)
%25 = getelementptr inbounds [80 x [80 x i32]], ptr %8, i64 0, i64 0
%26 = load i32, ptr %4, align 4
%27 = load i32, ptr %5, align 4
%28 = call i32 @mat_read(ptr noundef %25, i32 noundef %26, i32 noundef %27)
%29 = call i32 @putchar(i8 noundef signext 10)
%30 = getelementptr inbounds [80 x [80 x i32]], ptr %9, i64 0, i64 0
%31 = getelementptr inbounds [80 x [80 x i32]], ptr %7, i64 0, i64 0
%32 = load i32, ptr %2, align 4
%33 = load i32, ptr %3, align 4
%34 = call i32 @sparsify(ptr noundef %30, ptr noundef %31, i32 noundef %32, i32 noundef %33)
%35 = getelementptr inbounds [80 x [80 x i32]], ptr %10, i64 0, i64 0
%36 = getelementptr inbounds [80 x [80 x i32]], ptr %8, i64 0, i64 0
%37 = load i32, ptr %4, align 4
%38 = load i32, ptr %5, align 4
%39 = call i32 @sparsify(ptr noundef %35, ptr noundef %36, i32 noundef %37, i32 noundef %38)
br label %40
40: ; preds = %95, %0
%41 = call i32 @puts(ptr noundef @.str.4)
%42 = call i32 @puts(ptr noundef @.str.5)
%43 = call i32 @puts(ptr noundef @.str.6)
%44 = call i32 @puts(ptr noundef @.str.7)
%45 = call i32 @puts(ptr noundef @.str.8)
%46 = call i32 @puts(ptr noundef @.str.9)
%47 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.10, ptr noundef %6)
%48 = load i32, ptr %6, align 4
switch i32 %48, label %91 [
i32 0, label %49
i32 1, label %51
i32 2, label %63
i32 3, label %71
i32 4, label %87
]
49: ; preds = %40
%50 = call i32 @puts(ptr noundef @.str.11)
br label %93
51: ; preds = %40
%52 = call i32 @puts(ptr noundef @.str.12)
%53 = getelementptr inbounds [80 x [80 x i32]], ptr %7, i64 0, i64 0
%54 = load i32, ptr %2, align 4
%55 = load i32, ptr %3, align 4
%56 = call i32 @mat_write(ptr noundef %53, i32 noundef %54, i32 noundef %55)
%57 = call i32 @putchar(i8 noundef signext 10)
%58 = call i32 @puts(ptr noundef @.str.13)
%59 = getelementptr inbounds [80 x [80 x i32]], ptr %8, i64 0, i64 0
%60 = load i32, ptr %4, align 4
%61 = load i32, ptr %5, align 4
%62 = call i32 @mat_write(ptr noundef %59, i32 noundef %60, i32 noundef %61)
br label %93
63: ; preds = %40
%64 = getelementptr inbounds [80 x [80 x i32]], ptr %7, i64 0, i64 0
%65 = load i32, ptr %2, align 4
%66 = load i32, ptr %3, align 4
%67 = getelementptr inbounds [80 x [80 x i32]], ptr %8, i64 0, i64 0
%68 = load i32, ptr %4, align 4
%69 = load i32, ptr %5, align 4
%70 = call i32 @mat_add(ptr noundef %64, i32 noundef %65, i32 noundef %66, ptr noundef %67, i32 noundef %68, i32 noundef %69)
br label %93
71: ; preds = %40
%72 = call i32 @puts(ptr noundef @.str.14)
%73 = getelementptr inbounds [80 x [80 x i32]], ptr %9, i64 0, i64 0
%74 = getelementptr inbounds [80 x [80 x i32]], ptr %9, i64 0, i64 0
%75 = getelementptr inbounds [80 x i32], ptr %74, i64 0, i64 2
%76 = load i32, ptr %75, align 8
%77 = add nsw i32 %76, 1
%78 = call i32 @mat_write(ptr noundef %73, i32 noundef %77, i32 noundef 3)
%79 = call i32 @putchar(i8 noundef signext 10)
%80 = call i32 @puts(ptr noundef @.str.15)
%81 = getelementptr inbounds [80 x [80 x i32]], ptr %10, i64 0, i64 0
%82 = getelementptr inbounds [80 x [80 x i32]], ptr %10, i64 0, i64 0
%83 = getelementptr inbounds [80 x i32], ptr %82, i64 0, i64 2
%84 = load i32, ptr %83, align 8
%85 = add nsw i32 %84, 1
%86 = call i32 @mat_write(ptr noundef %81, i32 noundef %85, i32 noundef 3)
br label %93
87: ; preds = %40
%88 = getelementptr inbounds [80 x [80 x i32]], ptr %9, i64 0, i64 0
%89 = getelementptr inbounds [80 x [80 x i32]], ptr %10, i64 0, i64 0
%90 = call i32 @sp_add(ptr noundef %88, ptr noundef %89)
br label %93
91: ; preds = %40
%92 = call i32 @puts(ptr noundef @.str.16)
br label %93
93: ; preds = %91, %87, %71, %63, %51, %49
%94 = call i32 @putchar(i8 noundef signext 10)
br label %95
95: ; preds = %93
%96 = load i32, ptr %6, align 4
%97 = icmp ne i32 %96, 0
br i1 %97, label %40, label %98, !llvm.loop !6
98: ; preds = %95
ret i32 0
}
declare i32 @puts(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @putchar(i8 noundef signext) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @mat_read(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sparsify(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @mat_write(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @mat_add(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sp_add(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/tmp1btx9xox.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [50 x i8] c"Enter row and column numbers of matrices 1 and 2:\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c" %u %u %u %u%*c\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"Enter value of Matrix 1 (%ux%u):\0A\00", align 1
@.str.3 = private unnamed_addr constant [34 x i8] c"Enter value of Matrix 2 (%ux%u):\0A\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"What would you like to do?\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c" ( 0) Exit\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c" ( 1) Display\00", align 1
@.str.7 = private unnamed_addr constant [10 x i8] c" ( 2) Sum\00", align 1
@.str.8 = private unnamed_addr constant [21 x i8] c" ( 3) Sparse Display\00", align 1
@.str.9 = private unnamed_addr constant [17 x i8] c" ( 4) Sparse Sum\00", align 1
@.str.10 = private unnamed_addr constant [7 x i8] c" %u%*c\00", align 1
@.str.11 = private unnamed_addr constant [5 x i8] c"Bye!\00", align 1
@.str.12 = private unnamed_addr constant [10 x i8] c"Matrix 1:\00", align 1
@.str.13 = private unnamed_addr constant [10 x i8] c"Matrix 2:\00", align 1
@.str.14 = private unnamed_addr constant [17 x i8] c"Sparse Matrix 1:\00", align 1
@.str.15 = private unnamed_addr constant [17 x i8] c"Sparse Matrix 2:\00", align 1
@.str.16 = private unnamed_addr constant [18 x i8] c"Incorrect Choice!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [80 x [80 x i32]], align 16
%8 = alloca [80 x [80 x i32]], align 16
%9 = alloca [80 x [80 x i32]], align 16
%10 = alloca [80 x [80 x i32]], align 16
store i32 0, ptr %1, align 4
%11 = call i32 @puts(ptr noundef @.str)
%12 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%13 = call i32 @putchar(i8 noundef signext 10)
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr %3, align 4
%16 = call i32 @printf(ptr noundef @.str.2, i32 noundef %14, i32 noundef %15)
%17 = getelementptr inbounds [80 x [80 x i32]], ptr %7, i64 0, i64 0
%18 = load i32, ptr %2, align 4
%19 = load i32, ptr %3, align 4
%20 = call i32 @mat_read(ptr noundef %17, i32 noundef %18, i32 noundef %19)
%21 = call i32 @putchar(i8 noundef signext 10)
%22 = load i32, ptr %4, align 4
%23 = load i32, ptr %5, align 4
%24 = call i32 @printf(ptr noundef @.str.3, i32 noundef %22, i32 noundef %23)
%25 = getelementptr inbounds [80 x [80 x i32]], ptr %8, i64 0, i64 0
%26 = load i32, ptr %4, align 4
%27 = load i32, ptr %5, align 4
%28 = call i32 @mat_read(ptr noundef %25, i32 noundef %26, i32 noundef %27)
%29 = call i32 @putchar(i8 noundef signext 10)
%30 = getelementptr inbounds [80 x [80 x i32]], ptr %9, i64 0, i64 0
%31 = getelementptr inbounds [80 x [80 x i32]], ptr %7, i64 0, i64 0
%32 = load i32, ptr %2, align 4
%33 = load i32, ptr %3, align 4
%34 = call i32 @sparsify(ptr noundef %30, ptr noundef %31, i32 noundef %32, i32 noundef %33)
%35 = getelementptr inbounds [80 x [80 x i32]], ptr %10, i64 0, i64 0
%36 = getelementptr inbounds [80 x [80 x i32]], ptr %8, i64 0, i64 0
%37 = load i32, ptr %4, align 4
%38 = load i32, ptr %5, align 4
%39 = call i32 @sparsify(ptr noundef %35, ptr noundef %36, i32 noundef %37, i32 noundef %38)
br label %40
40: ; preds = %95, %0
%41 = call i32 @puts(ptr noundef @.str.4)
%42 = call i32 @puts(ptr noundef @.str.5)
%43 = call i32 @puts(ptr noundef @.str.6)
%44 = call i32 @puts(ptr noundef @.str.7)
%45 = call i32 @puts(ptr noundef @.str.8)
%46 = call i32 @puts(ptr noundef @.str.9)
%47 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.10, ptr noundef %6)
%48 = load i32, ptr %6, align 4
switch i32 %48, label %91 [
i32 0, label %49
i32 1, label %51
i32 2, label %63
i32 3, label %71
i32 4, label %87
]
49: ; preds = %40
%50 = call i32 @puts(ptr noundef @.str.11)
br label %93
51: ; preds = %40
%52 = call i32 @puts(ptr noundef @.str.12)
%53 = getelementptr inbounds [80 x [80 x i32]], ptr %7, i64 0, i64 0
%54 = load i32, ptr %2, align 4
%55 = load i32, ptr %3, align 4
%56 = call i32 @mat_write(ptr noundef %53, i32 noundef %54, i32 noundef %55)
%57 = call i32 @putchar(i8 noundef signext 10)
%58 = call i32 @puts(ptr noundef @.str.13)
%59 = getelementptr inbounds [80 x [80 x i32]], ptr %8, i64 0, i64 0
%60 = load i32, ptr %4, align 4
%61 = load i32, ptr %5, align 4
%62 = call i32 @mat_write(ptr noundef %59, i32 noundef %60, i32 noundef %61)
br label %93
63: ; preds = %40
%64 = getelementptr inbounds [80 x [80 x i32]], ptr %7, i64 0, i64 0
%65 = load i32, ptr %2, align 4
%66 = load i32, ptr %3, align 4
%67 = getelementptr inbounds [80 x [80 x i32]], ptr %8, i64 0, i64 0
%68 = load i32, ptr %4, align 4
%69 = load i32, ptr %5, align 4
%70 = call i32 @mat_add(ptr noundef %64, i32 noundef %65, i32 noundef %66, ptr noundef %67, i32 noundef %68, i32 noundef %69)
br label %93
71: ; preds = %40
%72 = call i32 @puts(ptr noundef @.str.14)
%73 = getelementptr inbounds [80 x [80 x i32]], ptr %9, i64 0, i64 0
%74 = getelementptr inbounds [80 x [80 x i32]], ptr %9, i64 0, i64 0
%75 = getelementptr inbounds [80 x i32], ptr %74, i64 0, i64 2
%76 = load i32, ptr %75, align 8
%77 = add nsw i32 %76, 1
%78 = call i32 @mat_write(ptr noundef %73, i32 noundef %77, i32 noundef 3)
%79 = call i32 @putchar(i8 noundef signext 10)
%80 = call i32 @puts(ptr noundef @.str.15)
%81 = getelementptr inbounds [80 x [80 x i32]], ptr %10, i64 0, i64 0
%82 = getelementptr inbounds [80 x [80 x i32]], ptr %10, i64 0, i64 0
%83 = getelementptr inbounds [80 x i32], ptr %82, i64 0, i64 2
%84 = load i32, ptr %83, align 8
%85 = add nsw i32 %84, 1
%86 = call i32 @mat_write(ptr noundef %81, i32 noundef %85, i32 noundef 3)
br label %93
87: ; preds = %40
%88 = getelementptr inbounds [80 x [80 x i32]], ptr %9, i64 0, i64 0
%89 = getelementptr inbounds [80 x [80 x i32]], ptr %10, i64 0, i64 0
%90 = call i32 @sp_add(ptr noundef %88, ptr noundef %89)
br label %93
91: ; preds = %40
%92 = call i32 @puts(ptr noundef @.str.16)
br label %93
93: ; preds = %91, %87, %71, %63, %51, %49
%94 = call i32 @putchar(i8 noundef signext 10)
br label %95
95: ; preds = %93
%96 = load i32, ptr %6, align 4
%97 = icmp ne i32 %96, 0
br i1 %97, label %40, label %98, !llvm.loop !6
98: ; preds = %95
ret i32 0
}
declare i32 @puts(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @putchar(i8 noundef signext) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @mat_read(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sparsify(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @mat_write(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @mat_add(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sp_add(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/tmpskbntkvx.c'
source_filename = "/tmp/tmpskbntkvx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"/proc/sys/lnet/stats\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [21 x i8] c"Can't open stat: %s\0A\00", align 1
@errno = 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 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
store i32 0, ptr %6, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp sgt i32 %8, 1
br i1 %9, label %10, label %15
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 1
%13 = load ptr, ptr %12, align 8
%14 = call i32 @atoi(ptr noundef %13)
store i32 %14, ptr %6, align 4
br label %15
15: ; preds = %10, %2
%16 = load i32, ptr @O_RDONLY, align 4
%17 = call i32 @open(ptr noundef @.str, i32 noundef %16)
store i32 %17, ptr %7, align 4
%18 = load i32, ptr %7, align 4
%19 = icmp slt i32 %18, 0
br i1 %19, label %20, label %25
20: ; preds = %15
%21 = load i32, ptr @stderr, align 4
%22 = load i32, ptr @errno, align 4
%23 = call ptr @strerror(i32 noundef %22)
%24 = call i32 @fprintf(i32 noundef %21, ptr noundef @.str.1, ptr noundef %23)
store i32 1, ptr %3, align 4
br label %37
25: ; preds = %15
%26 = load i32, ptr %7, align 4
%27 = call i32 @do_stat(i32 noundef %26)
%28 = load i32, ptr %6, align 4
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %31
30: ; preds = %25
store i32 0, ptr %3, align 4
br label %37
31: ; preds = %25
br label %32
32: ; preds = %32, %31
%33 = load i32, ptr %6, align 4
%34 = call i32 @sleep(i32 noundef %33)
%35 = load i32, ptr %7, align 4
%36 = call i32 @do_stat(i32 noundef %35)
br label %32
37: ; preds = %30, %20
%38 = load i32, ptr %3, align 4
ret i32 %38
}
declare i32 @atoi(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @do_stat(i32 noundef) #1
declare i32 @sleep(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/tmpskbntkvx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"/proc/sys/lnet/stats\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [21 x i8] c"Can't open stat: %s\0A\00", align 1
@errno = 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 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
store i32 0, ptr %6, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp sgt i32 %8, 1
br i1 %9, label %10, label %15
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 1
%13 = load ptr, ptr %12, align 8
%14 = call i32 @atoi(ptr noundef %13)
store i32 %14, ptr %6, align 4
br label %15
15: ; preds = %10, %2
%16 = load i32, ptr @O_RDONLY, align 4
%17 = call i32 @open(ptr noundef @.str, i32 noundef %16)
store i32 %17, ptr %7, align 4
%18 = load i32, ptr %7, align 4
%19 = icmp slt i32 %18, 0
br i1 %19, label %20, label %25
20: ; preds = %15
%21 = load i32, ptr @stderr, align 4
%22 = load i32, ptr @errno, align 4
%23 = call ptr @strerror(i32 noundef %22)
%24 = call i32 @fprintf(i32 noundef %21, ptr noundef @.str.1, ptr noundef %23)
store i32 1, ptr %3, align 4
br label %37
25: ; preds = %15
%26 = load i32, ptr %7, align 4
%27 = call i32 @do_stat(i32 noundef %26)
%28 = load i32, ptr %6, align 4
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %31
30: ; preds = %25
store i32 0, ptr %3, align 4
br label %37
31: ; preds = %25
br label %32
32: ; preds = %32, %31
%33 = load i32, ptr %6, align 4
%34 = call i32 @sleep(i32 noundef %33)
%35 = load i32, ptr %7, align 4
%36 = call i32 @do_stat(i32 noundef %35)
br label %32
37: ; preds = %30, %20
%38 = load i32, ptr %3, align 4
ret i32 %38
}
declare i32 @atoi(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @do_stat(i32 noundef) #1
declare i32 @sleep(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/tmpj66opx9y.c'
source_filename = "/tmp/tmpj66opx9y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PMAPPROC_CALLIT = dso_local global i32 0, align 4
@PMAPPROG = dso_local global i32 0, align 4
@PMAPVERS = 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/tmpj66opx9y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PMAPPROC_CALLIT = dso_local global i32 0, align 4
@PMAPPROG = dso_local global i32 0, align 4
@PMAPVERS = 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/tmp6ikizw8y.c'
source_filename = "/tmp/tmp6ikizw8y.c"
target datalayout = "e-m:e-p270: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/tmp6ikizw8y.c"
target datalayout = "e-m:e-p270: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/tmp85krevh5.c'
source_filename = "/tmp/tmp85krevh5.c"
target datalayout = "e-m:e-p270: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
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp85krevh5.c"
target datalayout = "e-m:e-p270: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
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9cnfcgcm.c'
source_filename = "/tmp/tmp9cnfcgcm.c"
target datalayout = "e-m:e-p270: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/tmp9cnfcgcm.c"
target datalayout = "e-m:e-p270: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/tmpvry7er0m.c'
source_filename = "/tmp/tmpvry7er0m.c"
target datalayout = "e-m:e-p270: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/tmpvry7er0m.c"
target datalayout = "e-m:e-p270: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/tmpqijn4ugo.c'
source_filename = "/tmp/tmpqijn4ugo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strlen(ptr noalias noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
store ptr %4, ptr %3, align 8
br label %5
5: ; preds = %10, %1
%6 = load ptr, ptr %2, align 8
%7 = load i8, ptr %6, align 1
%8 = icmp ne i8 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %5
br label %10
10: ; preds = %9
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %2, align 8
br label %5, !llvm.loop !6
13: ; preds = %5
%14 = load ptr, ptr %2, align 8
%15 = load ptr, ptr %3, align 8
%16 = ptrtoint ptr %14 to i64
%17 = ptrtoint ptr %15 to i64
%18 = sub i64 %16, %17
ret i64 %18
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqijn4ugo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strlen(ptr noalias noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %2, align 8
%6 = load i8, ptr %5, align 1
%7 = icmp ne i8 %6, 0
br i1 %7, label %.lr.ph, label %15
.lr.ph: ; preds = %1
br label %8
8: ; preds = %.lr.ph, %9
br label %9
9: ; preds = %8
%10 = load ptr, ptr %2, align 8
%11 = getelementptr inbounds i8, ptr %10, i32 1
store ptr %11, ptr %2, align 8
%12 = load ptr, ptr %2, align 8
%13 = load i8, ptr %12, align 1
%14 = icmp ne i8 %13, 0
br i1 %14, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %15
15: ; preds = %._crit_edge, %1
%16 = load ptr, ptr %2, align 8
%17 = load ptr, ptr %3, align 8
%18 = ptrtoint ptr %16 to i64
%19 = ptrtoint ptr %17 to i64
%20 = sub i64 %18, %19
ret i64 %20
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp42x8w8m9.c'
source_filename = "/tmp/tmp42x8w8m9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"Error sending erase command\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @vct_erase(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = call i64 @i2c_smbus_write_byte_data(i32 noundef %4, i32 noundef 42, i32 noundef 0)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = call i32 @perror(ptr noundef @.str)
store i32 1, ptr %2, align 4
br label %10
9: ; preds = %1
store i32 0, ptr %2, align 4
br label %10
10: ; preds = %9, %7
%11 = load i32, ptr %2, align 4
ret i32 %11
}
declare i64 @i2c_smbus_write_byte_data(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp42x8w8m9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"Error sending erase command\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @vct_erase(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = call i64 @i2c_smbus_write_byte_data(i32 noundef %4, i32 noundef 42, i32 noundef 0)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = call i32 @perror(ptr noundef @.str)
store i32 1, ptr %2, align 4
br label %10
9: ; preds = %1
store i32 0, ptr %2, align 4
br label %10
10: ; preds = %9, %7
%11 = load i32, ptr %2, align 4
ret i32 %11
}
declare i64 @i2c_smbus_write_byte_data(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjxve1vpd.c'
source_filename = "/tmp/tmpjxve1vpd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lf\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"Fora de intervalo\0A\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"Intervalo [0,25]\0A\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"Intervalo (25,50]\0A\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"Intervalo (50,75]\0A\00", align 1
@.str.5 = private unnamed_addr constant [20 x i8] c"Intervalo (75,100]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
store i32 0, ptr %1, align 4
%3 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%4 = load double, ptr %2, align 8
%5 = fcmp olt double %4, 0.000000e+00
br i1 %5, label %9, label %6
6: ; preds = %0
%7 = load double, ptr %2, align 8
%8 = fcmp ogt double %7, 1.000000e+02
br i1 %8, label %9, label %11
9: ; preds = %6, %0
%10 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %28
11: ; preds = %6
%12 = load double, ptr %2, align 8
%13 = fcmp ole double %12, 2.500000e+01
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 @printf(ptr noundef @.str.2)
store i32 0, ptr %1, align 4
br label %28
16: ; preds = %11
%17 = load double, ptr %2, align 8
%18 = fcmp ole double %17, 5.000000e+01
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 @printf(ptr noundef @.str.3)
store i32 0, ptr %1, align 4
br label %28
21: ; preds = %16
%22 = load double, ptr %2, align 8
%23 = fcmp ole double %22, 7.500000e+01
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 @printf(ptr noundef @.str.4)
store i32 0, ptr %1, align 4
br label %28
26: ; preds = %21
%27 = call i32 @printf(ptr noundef @.str.5)
store i32 0, ptr %1, align 4
br label %28
28: ; preds = %26, %24, %19, %14, %9
%29 = load i32, ptr %1, align 4
ret i32 %29
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjxve1vpd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lf\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"Fora de intervalo\0A\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"Intervalo [0,25]\0A\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"Intervalo (25,50]\0A\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"Intervalo (50,75]\0A\00", align 1
@.str.5 = private unnamed_addr constant [20 x i8] c"Intervalo (75,100]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
store i32 0, ptr %1, align 4
%3 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%4 = load double, ptr %2, align 8
%5 = fcmp olt double %4, 0.000000e+00
br i1 %5, label %9, label %6
6: ; preds = %0
%7 = load double, ptr %2, align 8
%8 = fcmp ogt double %7, 1.000000e+02
br i1 %8, label %9, label %11
9: ; preds = %6, %0
%10 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %28
11: ; preds = %6
%12 = load double, ptr %2, align 8
%13 = fcmp ole double %12, 2.500000e+01
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 @printf(ptr noundef @.str.2)
store i32 0, ptr %1, align 4
br label %28
16: ; preds = %11
%17 = load double, ptr %2, align 8
%18 = fcmp ole double %17, 5.000000e+01
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 @printf(ptr noundef @.str.3)
store i32 0, ptr %1, align 4
br label %28
21: ; preds = %16
%22 = load double, ptr %2, align 8
%23 = fcmp ole double %22, 7.500000e+01
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 @printf(ptr noundef @.str.4)
store i32 0, ptr %1, align 4
br label %28
26: ; preds = %21
%27 = call i32 @printf(ptr noundef @.str.5)
store i32 0, ptr %1, align 4
br label %28
28: ; preds = %26, %24, %19, %14, %9
%29 = load i32, ptr %1, align 4
ret i32 %29
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpeu6hm_ah.c'
source_filename = "/tmp/tmpeu6hm_ah.c"
target datalayout = "e-m:e-p270: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/tmpeu6hm_ah.c"
target datalayout = "e-m:e-p270: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/tmpc9rfscos.c'
source_filename = "/tmp/tmpc9rfscos.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FALSE = dso_local global i32 0, align 4
@A_REVERSE = dso_local global i32 0, align 4
@A_BOLD = dso_local global i32 0, align 4
@TRUE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @menu_write_line(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
%13 = load i32, ptr @FALSE, align 4
store i32 %13, ptr %12, align 4
%14 = load i32, ptr %9, align 4
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %20
16: ; preds = %5
%17 = load ptr, ptr %6, align 8
%18 = load i32, ptr @A_REVERSE, align 4
%19 = call i32 @wattron(ptr noundef %17, i32 noundef %18)
br label %20
20: ; preds = %16, %5
%21 = load ptr, ptr %6, align 8
%22 = load i32, ptr %7, align 4
%23 = add nsw i32 %22, 1
%24 = call i32 @wmove(ptr noundef %21, i32 noundef %23, i32 noundef 1)
store i32 0, ptr %11, align 4
br label %25
25: ; preds = %68, %20
%26 = load ptr, ptr %10, align 8
%27 = load i32, ptr %11, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %71
33: ; preds = %25
%34 = load ptr, ptr %10, align 8
%35 = load i32, ptr %11, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 126
br i1 %40, label %41, label %50
41: ; preds = %33
%42 = load i32, ptr %9, align 4
%43 = icmp ne i32 %42, 0
br i1 %43, label %49, label %44
44: ; preds = %41
%45 = load ptr, ptr %6, align 8
%46 = load i32, ptr @A_BOLD, align 4
%47 = call i32 @wattron(ptr noundef %45, i32 noundef %46)
%48 = load i32, ptr @TRUE, align 4
store i32 %48, ptr %12, align 4
br label %49
49: ; preds = %44, %41
br label %67
50: ; preds = %33
%51 = load ptr, ptr %6, align 8
%52 = load ptr, ptr %10, align 8
%53 = load i32, ptr %11, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
%56 = load i8, ptr %55, align 1
%57 = call i32 @waddch(ptr noundef %51, i8 noundef signext %56)
%58 = load i32, ptr %12, align 4
%59 = load i32, ptr @TRUE, align 4
%60 = icmp eq i32 %58, %59
br i1 %60, label %61, label %66
61: ; preds = %50
%62 = load i32, ptr @FALSE, align 4
store i32 %62, ptr %12, align 4
%63 = load ptr, ptr %6, align 8
%64 = load i32, ptr @A_BOLD, align 4
%65 = call i32 @wattroff(ptr noundef %63, i32 noundef %64)
br label %66
66: ; preds = %61, %50
br label %67
67: ; preds = %66, %49
br label %68
68: ; preds = %67
%69 = load i32, ptr %11, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %11, align 4
br label %25, !llvm.loop !6
71: ; preds = %25
%72 = load ptr, ptr %10, align 8
%73 = call i32 @strlen(ptr noundef %72)
store i32 %73, ptr %11, align 4
br label %74
74: ; preds = %81, %71
%75 = load i32, ptr %11, align 4
%76 = load i32, ptr %8, align 4
%77 = icmp slt i32 %75, %76
br i1 %77, label %78, label %84
78: ; preds = %74
%79 = load ptr, ptr %6, align 8
%80 = call i32 @waddch(ptr noundef %79, i8 noundef signext 32)
br label %81
81: ; preds = %78
%82 = load i32, ptr %11, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %11, align 4
br label %74, !llvm.loop !8
84: ; preds = %74
%85 = load i32, ptr %9, align 4
%86 = icmp ne i32 %85, 0
br i1 %86, label %87, label %91
87: ; preds = %84
%88 = load ptr, ptr %6, align 8
%89 = load i32, ptr @A_REVERSE, align 4
%90 = call i32 @wattroff(ptr noundef %88, i32 noundef %89)
br label %91
91: ; preds = %87, %84
ret void
}
declare i32 @wattron(ptr noundef, i32 noundef) #1
declare i32 @wmove(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @waddch(ptr noundef, i8 noundef signext) #1
declare i32 @wattroff(ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc9rfscos.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FALSE = dso_local global i32 0, align 4
@A_REVERSE = dso_local global i32 0, align 4
@A_BOLD = dso_local global i32 0, align 4
@TRUE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @menu_write_line(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
%13 = load i32, ptr @FALSE, align 4
store i32 %13, ptr %12, align 4
%14 = load i32, ptr %9, align 4
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %20
16: ; preds = %5
%17 = load ptr, ptr %6, align 8
%18 = load i32, ptr @A_REVERSE, align 4
%19 = call i32 @wattron(ptr noundef %17, i32 noundef %18)
br label %20
20: ; preds = %16, %5
%21 = load ptr, ptr %6, align 8
%22 = load i32, ptr %7, align 4
%23 = add nsw i32 %22, 1
%24 = call i32 @wmove(ptr noundef %21, i32 noundef %23, i32 noundef 1)
store i32 0, ptr %11, align 4
%25 = load ptr, ptr %10, align 8
%26 = load i32, ptr %11, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp ne i32 %30, 0
br i1 %31, label %.lr.ph, label %77
.lr.ph: ; preds = %20
br label %32
32: ; preds = %.lr.ph, %67
%33 = load ptr, ptr %10, align 8
%34 = load i32, ptr %11, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %38, 126
br i1 %39, label %40, label %49
40: ; preds = %32
%41 = load i32, ptr %9, align 4
%42 = icmp ne i32 %41, 0
br i1 %42, label %48, label %43
43: ; preds = %40
%44 = load ptr, ptr %6, align 8
%45 = load i32, ptr @A_BOLD, align 4
%46 = call i32 @wattron(ptr noundef %44, i32 noundef %45)
%47 = load i32, ptr @TRUE, align 4
store i32 %47, ptr %12, align 4
br label %48
48: ; preds = %43, %40
br label %66
49: ; preds = %32
%50 = load ptr, ptr %6, align 8
%51 = load ptr, ptr %10, align 8
%52 = load i32, ptr %11, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %51, i64 %53
%55 = load i8, ptr %54, align 1
%56 = call i32 @waddch(ptr noundef %50, i8 noundef signext %55)
%57 = load i32, ptr %12, align 4
%58 = load i32, ptr @TRUE, align 4
%59 = icmp eq i32 %57, %58
br i1 %59, label %60, label %65
60: ; preds = %49
%61 = load i32, ptr @FALSE, align 4
store i32 %61, ptr %12, align 4
%62 = load ptr, ptr %6, align 8
%63 = load i32, ptr @A_BOLD, align 4
%64 = call i32 @wattroff(ptr noundef %62, i32 noundef %63)
br label %65
65: ; preds = %60, %49
br label %66
66: ; preds = %65, %48
br label %67
67: ; preds = %66
%68 = load i32, ptr %11, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %11, align 4
%70 = load ptr, ptr %10, align 8
%71 = load i32, ptr %11, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8, ptr %70, i64 %72
%74 = load i8, ptr %73, align 1
%75 = sext i8 %74 to i32
%76 = icmp ne i32 %75, 0
br i1 %76, label %32, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %67
br label %77
77: ; preds = %._crit_edge, %20
%78 = load ptr, ptr %10, align 8
%79 = call i32 @strlen(ptr noundef %78)
store i32 %79, ptr %11, align 4
%80 = load i32, ptr %11, align 4
%81 = load i32, ptr %8, align 4
%82 = icmp slt i32 %80, %81
br i1 %82, label %.lr.ph2, label %92
.lr.ph2: ; preds = %77
br label %83
83: ; preds = %.lr.ph2, %86
%84 = load ptr, ptr %6, align 8
%85 = call i32 @waddch(ptr noundef %84, i8 noundef signext 32)
br label %86
86: ; preds = %83
%87 = load i32, ptr %11, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %11, align 4
%89 = load i32, ptr %11, align 4
%90 = load i32, ptr %8, align 4
%91 = icmp slt i32 %89, %90
br i1 %91, label %83, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %86
br label %92
92: ; preds = %._crit_edge3, %77
%93 = load i32, ptr %9, align 4
%94 = icmp ne i32 %93, 0
br i1 %94, label %95, label %99
95: ; preds = %92
%96 = load ptr, ptr %6, align 8
%97 = load i32, ptr @A_REVERSE, align 4
%98 = call i32 @wattroff(ptr noundef %96, i32 noundef %97)
br label %99
99: ; preds = %95, %92
ret void
}
declare i32 @wattron(ptr noundef, i32 noundef) #1
declare i32 @wmove(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @waddch(ptr noundef, i8 noundef signext) #1
declare i32 @wattroff(ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpvg2wf8sg.c'
source_filename = "/tmp/tmpvg2wf8sg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [48 x i8] c"COULD NOT ALLOCATE BINARY TREE OF DESIRED SIZE\0A\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"before generate\00", align 1
@.str.2 = private unnamed_addr constant [45 x i8] c"COULD NOT ALLOCATE DATA BLOB OF DESIRED SIZE\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"before load\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"real %llu\0A\00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"after load\0A\00", align 1
@.str.6 = private unnamed_addr constant [15 x i8] c"after balance\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%14 = call ptr @SimpleBinaryTree__create(i32 noundef 2000, i32 noundef 0, i32 noundef 16, i32 noundef 16)
store ptr %14, ptr %6, align 8
%15 = load ptr, ptr %6, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %20, label %17
17: ; preds = %2
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%19 = call i32 @exit(i32 noundef 1) #3
unreachable
20: ; preds = %2
%21 = call i32 @announce(ptr noundef @.str.1)
%22 = call ptr @malloc(i32 noundef 32000)
store ptr %22, ptr %7, align 8
%23 = load ptr, ptr %7, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %27, label %25
25: ; preds = %20
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %27
27: ; preds = %25, %20
store i32 25, ptr %8, align 4
store i64 0, ptr %9, align 8
br label %28
28: ; preds = %51, %27
%29 = load i64, ptr %9, align 8
%30 = icmp ult i64 %29, 2000
br i1 %30, label %31, label %59
31: ; preds = %28
store i32 0, ptr %10, align 4
br label %32
32: ; preds = %48, %31
%33 = load i32, ptr %10, align 4
%34 = icmp slt i32 %33, 15
br i1 %34, label %35, label %51
35: ; preds = %32
%36 = call i32 (...) @rand()
%37 = load i32, ptr %8, align 4
%38 = srem i32 %36, %37
%39 = add nsw i32 %38, 65
%40 = trunc i32 %39 to i8
%41 = load ptr, ptr %7, align 8
%42 = load i64, ptr %9, align 8
%43 = mul i64 %42, 16
%44 = load i32, ptr %10, align 4
%45 = sext i32 %44 to i64
%46 = add i64 %43, %45
%47 = getelementptr inbounds i8, ptr %41, i64 %46
store i8 %40, ptr %47, align 1
br label %48
48: ; preds = %35
%49 = load i32, ptr %10, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %10, align 4
br label %32, !llvm.loop !6
51: ; preds = %32
%52 = load ptr, ptr %7, align 8
%53 = load i64, ptr %9, align 8
%54 = mul i64 %53, 16
%55 = add i64 %54, 15
%56 = getelementptr inbounds i8, ptr %52, i64 %55
store i8 0, ptr %56, align 1
%57 = load i64, ptr %9, align 8
%58 = add i64 %57, 1
store i64 %58, ptr %9, align 8
br label %28, !llvm.loop !8
59: ; preds = %28
%60 = call i32 @announce(ptr noundef @.str.3)
store i64 0, ptr %11, align 8
store i64 0, ptr %12, align 8
br label %61
61: ; preds = %79, %59
%62 = load i64, ptr %11, align 8
%63 = icmp ult i64 %62, 2000
br i1 %63, label %64, label %82
64: ; preds = %61
%65 = load ptr, ptr %6, align 8
%66 = load ptr, ptr %7, align 8
%67 = load i64, ptr %11, align 8
%68 = mul i64 %67, 16
%69 = getelementptr inbounds i8, ptr %66, i64 %68
%70 = load ptr, ptr %7, align 8
%71 = load i64, ptr %11, align 8
%72 = mul i64 %71, 16
%73 = getelementptr inbounds i8, ptr %70, i64 %72
%74 = call i64 @SimpleBinaryTree__insert(ptr noundef %65, ptr noundef %69, ptr noundef %73)
%75 = icmp ne i64 %74, 0
br i1 %75, label %76, label %79
76: ; preds = %64
%77 = load i64, ptr %12, align 8
%78 = add i64 %77, 1
store i64 %78, ptr %12, align 8
br label %79
79: ; preds = %76, %64
%80 = load i64, ptr %11, align 8
%81 = add i64 %80, 1
store i64 %81, ptr %11, align 8
br label %61, !llvm.loop !9
82: ; preds = %61
%83 = load i64, ptr %12, align 8
%84 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i64 noundef %83)
%85 = call i32 @announce(ptr noundef @.str.5)
store i64 1000000, ptr %13, align 8
br label %86
86: ; preds = %90, %82
%87 = load i64, ptr %13, align 8
%88 = add i64 %87, -1
store i64 %88, ptr %13, align 8
%89 = icmp ne i64 %87, 0
br i1 %89, label %90, label %93
90: ; preds = %86
%91 = load ptr, ptr %6, align 8
%92 = call i32 @SimpleBinaryTree__balance(ptr noundef %91)
br label %86, !llvm.loop !10
93: ; preds = %86
%94 = call i32 @announce(ptr noundef @.str.6)
ret i32 0
}
declare ptr @SimpleBinaryTree__create(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @announce(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @rand(...) #1
declare i64 @SimpleBinaryTree__insert(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @SimpleBinaryTree__balance(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpvg2wf8sg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [48 x i8] c"COULD NOT ALLOCATE BINARY TREE OF DESIRED SIZE\0A\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"before generate\00", align 1
@.str.2 = private unnamed_addr constant [45 x i8] c"COULD NOT ALLOCATE DATA BLOB OF DESIRED SIZE\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"before load\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"real %llu\0A\00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"after load\0A\00", align 1
@.str.6 = private unnamed_addr constant [15 x i8] c"after balance\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%14 = call ptr @SimpleBinaryTree__create(i32 noundef 2000, i32 noundef 0, i32 noundef 16, i32 noundef 16)
store ptr %14, ptr %6, align 8
%15 = load ptr, ptr %6, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %20, label %17
17: ; preds = %2
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%19 = call i32 @exit(i32 noundef 1) #3
unreachable
20: ; preds = %2
%21 = call i32 @announce(ptr noundef @.str.1)
%22 = call ptr @malloc(i32 noundef 32000)
store ptr %22, ptr %7, align 8
%23 = load ptr, ptr %7, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %27, label %25
25: ; preds = %20
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %27
27: ; preds = %25, %20
store i32 25, ptr %8, align 4
store i64 0, ptr %9, align 8
%28 = load i64, ptr %9, align 8
%29 = icmp ult i64 %28, 2000
br i1 %29, label %.lr.ph2, label %61
.lr.ph2: ; preds = %27
br label %30
30: ; preds = %.lr.ph2, %51
store i32 0, ptr %10, align 4
%31 = load i32, ptr %10, align 4
%32 = icmp slt i32 %31, 15
br i1 %32, label %.lr.ph, label %51
.lr.ph: ; preds = %30
br label %33
33: ; preds = %.lr.ph, %46
%34 = call i32 (...) @rand()
%35 = load i32, ptr %8, align 4
%36 = srem i32 %34, %35
%37 = add nsw i32 %36, 65
%38 = trunc i32 %37 to i8
%39 = load ptr, ptr %7, align 8
%40 = load i64, ptr %9, align 8
%41 = mul i64 %40, 16
%42 = load i32, ptr %10, align 4
%43 = sext i32 %42 to i64
%44 = add i64 %41, %43
%45 = getelementptr inbounds i8, ptr %39, i64 %44
store i8 %38, ptr %45, align 1
br label %46
46: ; preds = %33
%47 = load i32, ptr %10, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %10, align 4
%49 = load i32, ptr %10, align 4
%50 = icmp slt i32 %49, 15
br i1 %50, label %33, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %46
br label %51
51: ; preds = %._crit_edge, %30
%52 = load ptr, ptr %7, align 8
%53 = load i64, ptr %9, align 8
%54 = mul i64 %53, 16
%55 = add i64 %54, 15
%56 = getelementptr inbounds i8, ptr %52, i64 %55
store i8 0, ptr %56, align 1
%57 = load i64, ptr %9, align 8
%58 = add i64 %57, 1
store i64 %58, ptr %9, align 8
%59 = load i64, ptr %9, align 8
%60 = icmp ult i64 %59, 2000
br i1 %60, label %30, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %51
br label %61
61: ; preds = %._crit_edge3, %27
%62 = call i32 @announce(ptr noundef @.str.3)
store i64 0, ptr %11, align 8
store i64 0, ptr %12, align 8
%63 = load i64, ptr %11, align 8
%64 = icmp ult i64 %63, 2000
br i1 %64, label %.lr.ph5, label %85
.lr.ph5: ; preds = %61
br label %65
65: ; preds = %.lr.ph5, %80
%66 = load ptr, ptr %6, align 8
%67 = load ptr, ptr %7, align 8
%68 = load i64, ptr %11, align 8
%69 = mul i64 %68, 16
%70 = getelementptr inbounds i8, ptr %67, i64 %69
%71 = load ptr, ptr %7, align 8
%72 = load i64, ptr %11, align 8
%73 = mul i64 %72, 16
%74 = getelementptr inbounds i8, ptr %71, i64 %73
%75 = call i64 @SimpleBinaryTree__insert(ptr noundef %66, ptr noundef %70, ptr noundef %74)
%76 = icmp ne i64 %75, 0
br i1 %76, label %77, label %80
77: ; preds = %65
%78 = load i64, ptr %12, align 8
%79 = add i64 %78, 1
store i64 %79, ptr %12, align 8
br label %80
80: ; preds = %77, %65
%81 = load i64, ptr %11, align 8
%82 = add i64 %81, 1
store i64 %82, ptr %11, align 8
%83 = load i64, ptr %11, align 8
%84 = icmp ult i64 %83, 2000
br i1 %84, label %65, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %80
br label %85
85: ; preds = %._crit_edge6, %61
%86 = load i64, ptr %12, align 8
%87 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i64 noundef %86)
%88 = call i32 @announce(ptr noundef @.str.5)
store i64 1000000, ptr %13, align 8
%89 = load i64, ptr %13, align 8
%90 = add i64 %89, -1
store i64 %90, ptr %13, align 8
%91 = icmp ne i64 %89, 0
br i1 %91, label %.lr.ph8, label %98
.lr.ph8: ; preds = %85
br label %92
92: ; preds = %.lr.ph8, %92
%93 = load ptr, ptr %6, align 8
%94 = call i32 @SimpleBinaryTree__balance(ptr noundef %93)
%95 = load i64, ptr %13, align 8
%96 = add i64 %95, -1
store i64 %96, ptr %13, align 8
%97 = icmp ne i64 %95, 0
br i1 %97, label %92, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %92
br label %98
98: ; preds = %._crit_edge9, %85
%99 = call i32 @announce(ptr noundef @.str.6)
ret i32 0
}
declare ptr @SimpleBinaryTree__create(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @announce(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @rand(...) #1
declare i64 @SimpleBinaryTree__insert(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @SimpleBinaryTree__balance(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmph5k_neio.c'
source_filename = "/tmp/tmph5k_neio.c"
target datalayout = "e-m:e-p270: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/tmph5k_neio.c"
target datalayout = "e-m:e-p270: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/tmp7midqjpg.c'
source_filename = "/tmp/tmp7midqjpg.c"
target datalayout = "e-m:e-p270: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/tmp7midqjpg.c"
target datalayout = "e-m:e-p270: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/tmphhmfkld6.c'
source_filename = "/tmp/tmphhmfkld6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ls\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"-l\00", align 1
@__const.my_execve.argv = private unnamed_addr constant [3 x ptr] [ptr @.str, ptr @.str.1, ptr null], align 16
@.str.2 = private unnamed_addr constant [20 x i8] c"CONTENT_LENGTH=1024\00", align 1
@__const.my_execve.envv = private unnamed_addr constant [2 x ptr] [ptr @.str.2, ptr null], align 16
@.str.3 = private unnamed_addr constant [8 x i8] c"/bin/ls\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [12 x i8] c"error : %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @my_execve() #0 {
%1 = alloca [3 x ptr], align 16
%2 = alloca [2 x ptr], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.my_execve.argv, i64 24, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.my_execve.envv, i64 16, i1 false)
%3 = getelementptr inbounds [3 x ptr], ptr %1, i64 0, i64 0
%4 = getelementptr inbounds [2 x ptr], ptr %2, i64 0, i64 0
%5 = call i32 @execve(ptr noundef @.str.3, ptr noundef %3, ptr noundef %4)
%6 = icmp eq i32 %5, -1
br i1 %6, label %7, label %12
7: ; preds = %0
%8 = load i32, ptr @stderr, align 4
%9 = load i32, ptr @errno, align 4
%10 = call ptr @strerror(i32 noundef %9)
%11 = call i32 @fprintf(i32 noundef %8, ptr noundef @.str.4, ptr noundef %10)
br label %12
12: ; preds = %7, %0
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 @execve(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #2
declare ptr @strerror(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/tmphhmfkld6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ls\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"-l\00", align 1
@__const.my_execve.argv = private unnamed_addr constant [3 x ptr] [ptr @.str, ptr @.str.1, ptr null], align 16
@.str.2 = private unnamed_addr constant [20 x i8] c"CONTENT_LENGTH=1024\00", align 1
@__const.my_execve.envv = private unnamed_addr constant [2 x ptr] [ptr @.str.2, ptr null], align 16
@.str.3 = private unnamed_addr constant [8 x i8] c"/bin/ls\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [12 x i8] c"error : %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @my_execve() #0 {
%1 = alloca [3 x ptr], align 16
%2 = alloca [2 x ptr], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.my_execve.argv, i64 24, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.my_execve.envv, i64 16, i1 false)
%3 = getelementptr inbounds [3 x ptr], ptr %1, i64 0, i64 0
%4 = getelementptr inbounds [2 x ptr], ptr %2, i64 0, i64 0
%5 = call i32 @execve(ptr noundef @.str.3, ptr noundef %3, ptr noundef %4)
%6 = icmp eq i32 %5, -1
br i1 %6, label %7, label %12
7: ; preds = %0
%8 = load i32, ptr @stderr, align 4
%9 = load i32, ptr @errno, align 4
%10 = call ptr @strerror(i32 noundef %9)
%11 = call i32 @fprintf(i32 noundef %8, ptr noundef @.str.4, ptr noundef %10)
br label %12
12: ; preds = %7, %0
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 @execve(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #2
declare ptr @strerror(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/tmpc9wfxzjl.c'
source_filename = "/tmp/tmpc9wfxzjl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @fmt_u64_hex(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = call i64 @fmt_bytes_hex_reverse(ptr noundef %5, ptr noundef %4, i32 noundef 8)
ret i64 %6
}
declare i64 @fmt_bytes_hex_reverse(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc9wfxzjl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @fmt_u64_hex(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = call i64 @fmt_bytes_hex_reverse(ptr noundef %5, ptr noundef %4, i32 noundef 8)
ret i64 %6
}
declare i64 @fmt_bytes_hex_reverse(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp2_h0fem.c'
source_filename = "/tmp/tmpp2_h0fem.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @init_2d_Array() #0 {
%1 = alloca ptr, align 8
%2 = call i64 @malloc(i32 noundef 8)
%3 = inttoptr i64 %2 to ptr
store ptr %3, ptr %1, align 8
%4 = load ptr, ptr %1, align 8
ret ptr %4
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp2_h0fem.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @init_2d_Array() #0 {
%1 = alloca ptr, align 8
%2 = call i64 @malloc(i32 noundef 8)
%3 = inttoptr i64 %2 to ptr
store ptr %3, ptr %1, align 8
%4 = load ptr, ptr %1, align 8
ret ptr %4
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpc5f68dsd.c'
source_filename = "/tmp/tmpc5f68dsd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @processor_cycles() #0 {
%1 = alloca ptr, align 8
%2 = call ptr asm sideeffect "rdtsc\0A\09shl $$32, %rdx\0A\09or %rdx, %rax", "={ax},~{rdx},~{cc},~{dirflag},~{fpsr},~{flags}"() #1, !srcloc !6
store ptr %2, ptr %1, align 8
%3 = load ptr, ptr %1, align 8
ret ptr %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 }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = !{i64 491, i64 502, i64 546}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc5f68dsd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @processor_cycles() #0 {
%1 = alloca ptr, align 8
%2 = call ptr asm sideeffect "rdtsc\0A\09shl $$32, %rdx\0A\09or %rdx, %rax", "={ax},~{rdx},~{cc},~{dirflag},~{fpsr},~{flags}"() #1, !srcloc !6
store ptr %2, ptr %1, align 8
%3 = load ptr, ptr %1, align 8
ret ptr %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 }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = !{i64 491, i64 502, i64 546}
|
; ModuleID = '/tmp/tmpz5jcr81f.c'
source_filename = "/tmp/tmpz5jcr81f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
br label %7
7: ; preds = %14, %0
%8 = load i32, ptr %4, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %9
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %21
14: ; preds = %7
%15 = load i32, ptr %4, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %16
%18 = call i32 @scanf(ptr noundef @.str, ptr noundef %17)
%19 = load i32, ptr %4, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %4, align 4
br label %7, !llvm.loop !6
21: ; preds = %7
%22 = load i32, ptr %4, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %23
%25 = call i32 @scanf(ptr noundef @.str, ptr noundef %24)
store i32 0, ptr %3, align 4
br label %26
26: ; preds = %55, %21
%27 = load i32, ptr %3, align 4
%28 = load i32, ptr %4, align 4
%29 = sdiv i32 %28, 2
%30 = icmp slt i32 %27, %29
br i1 %30, label %31, label %58
31: ; preds = %26
%32 = load i32, ptr %3, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %33
%35 = load i8, ptr %34, align 1
store i8 %35, ptr %6, align 1
%36 = load i32, ptr %3, align 4
%37 = load i32, ptr %4, align 4
%38 = add nsw i32 %37, 1
%39 = sdiv i32 %38, 2
%40 = add nsw i32 %36, %39
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %41
%43 = load i8, ptr %42, align 1
%44 = load i32, ptr %3, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %45
store i8 %43, ptr %46, align 1
%47 = load i8, ptr %6, align 1
%48 = load i32, ptr %3, align 4
%49 = load i32, ptr %4, align 4
%50 = add nsw i32 %49, 1
%51 = sdiv i32 %50, 2
%52 = add nsw i32 %48, %51
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %53
store i8 %47, ptr %54, align 1
br label %55
55: ; preds = %31
%56 = load i32, ptr %3, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %3, align 4
br label %26, !llvm.loop !8
58: ; preds = %26
%59 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%60 = call i32 @printf(ptr noundef @.str, ptr noundef %59)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz5jcr81f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %8
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 0
br i1 %12, label %.lr.ph, label %26
.lr.ph: ; preds = %0
br label %13
13: ; preds = %.lr.ph, %13
%14 = load i32, ptr %4, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %15
%17 = call i32 @scanf(ptr noundef @.str, ptr noundef %16)
%18 = load i32, ptr %4, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %4, align 4
%20 = load i32, ptr %4, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %21
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp ne i32 %24, 0
br i1 %25, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %26
26: ; preds = %._crit_edge, %0
%27 = load i32, ptr %4, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %28
%30 = call i32 @scanf(ptr noundef @.str, ptr noundef %29)
store i32 0, ptr %3, align 4
%31 = load i32, ptr %3, align 4
%32 = load i32, ptr %4, align 4
%33 = sdiv i32 %32, 2
%34 = icmp slt i32 %31, %33
br i1 %34, label %.lr.ph2, label %66
.lr.ph2: ; preds = %26
br label %35
35: ; preds = %.lr.ph2, %59
%36 = load i32, ptr %3, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %37
%39 = load i8, ptr %38, align 1
store i8 %39, ptr %6, align 1
%40 = load i32, ptr %3, align 4
%41 = load i32, ptr %4, align 4
%42 = add nsw i32 %41, 1
%43 = sdiv i32 %42, 2
%44 = add nsw i32 %40, %43
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %45
%47 = load i8, ptr %46, align 1
%48 = load i32, ptr %3, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %49
store i8 %47, ptr %50, align 1
%51 = load i8, ptr %6, align 1
%52 = load i32, ptr %3, align 4
%53 = load i32, ptr %4, align 4
%54 = add nsw i32 %53, 1
%55 = sdiv i32 %54, 2
%56 = add nsw i32 %52, %55
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %57
store i8 %51, ptr %58, align 1
br label %59
59: ; preds = %35
%60 = load i32, ptr %3, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %3, align 4
%62 = load i32, ptr %3, align 4
%63 = load i32, ptr %4, align 4
%64 = sdiv i32 %63, 2
%65 = icmp slt i32 %62, %64
br i1 %65, label %35, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %59
br label %66
66: ; preds = %._crit_edge3, %26
%67 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%68 = call i32 @printf(ptr noundef @.str, ptr noundef %67)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpw6gsbr9o.c'
source_filename = "/tmp/tmpw6gsbr9o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @GetOptString(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca 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
%12 = load ptr, ptr %8, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %15
14: ; preds = %4
store i32 0, ptr %5, align 4
br label %80
15: ; preds = %4
store i32 0, ptr %10, align 4
br label %16
16: ; preds = %76, %15
%17 = load i32, ptr %10, align 4
%18 = load ptr, ptr %6, align 8
%19 = load i32, ptr %18, align 4
%20 = icmp slt i32 %17, %19
br i1 %20, label %21, label %79
21: ; preds = %16
%22 = load ptr, ptr %7, align 8
%23 = load ptr, ptr %22, align 8
%24 = load i32, ptr %10, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %23, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = load ptr, ptr %8, align 8
%29 = call i64 @strcmp(ptr noundef %27, ptr noundef %28)
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %75
31: ; preds = %21
%32 = load i32, ptr %10, align 4
%33 = add nsw i32 %32, 1
%34 = load ptr, ptr %6, align 8
%35 = load i32, ptr %34, align 4
%36 = icmp eq i32 %33, %35
br i1 %36, label %37, label %38
37: ; preds = %31
store i32 0, ptr %5, align 4
br label %80
38: ; preds = %31
%39 = load ptr, ptr %9, align 8
%40 = load ptr, ptr %7, align 8
%41 = load ptr, ptr %40, align 8
%42 = load i32, ptr %10, align 4
%43 = add nsw i32 %42, 1
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds ptr, ptr %41, i64 %44
%46 = load ptr, ptr %45, align 8
%47 = call i32 @strcpy(ptr noundef %39, ptr noundef %46)
%48 = load i32, ptr %10, align 4
store i32 %48, ptr %11, align 4
br label %49
49: ; preds = %68, %38
%50 = load i32, ptr %11, align 4
%51 = load ptr, ptr %6, align 8
%52 = load i32, ptr %51, align 4
%53 = sub nsw i32 %52, 1
%54 = icmp slt i32 %50, %53
br i1 %54, label %55, label %71
55: ; preds = %49
%56 = load ptr, ptr %7, align 8
%57 = load ptr, ptr %56, align 8
%58 = load i32, ptr %11, align 4
%59 = add nsw i32 %58, 2
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds ptr, ptr %57, i64 %60
%62 = load ptr, ptr %61, align 8
%63 = load ptr, ptr %7, align 8
%64 = load ptr, ptr %63, align 8
%65 = load i32, ptr %11, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds ptr, ptr %64, i64 %66
store ptr %62, ptr %67, align 8
br label %68
68: ; preds = %55
%69 = load i32, ptr %11, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %11, align 4
br label %49, !llvm.loop !6
71: ; preds = %49
%72 = load ptr, ptr %6, align 8
%73 = load i32, ptr %72, align 4
%74 = sub nsw i32 %73, 2
store i32 %74, ptr %72, align 4
store i32 1, ptr %5, align 4
br label %80
75: ; preds = %21
br label %76
76: ; preds = %75
%77 = load i32, ptr %10, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %10, align 4
br label %16, !llvm.loop !8
79: ; preds = %16
store i32 0, ptr %5, align 4
br label %80
80: ; preds = %79, %71, %37, %14
%81 = load i32, ptr %5, align 4
ret i32 %81
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw6gsbr9o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @GetOptString(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca 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
%12 = load ptr, ptr %8, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %15
14: ; preds = %4
store i32 0, ptr %5, align 4
br label %87
15: ; preds = %4
store i32 0, ptr %10, align 4
%16 = load i32, ptr %10, align 4
%17 = load ptr, ptr %6, align 8
%18 = load i32, ptr %17, align 4
%19 = icmp slt i32 %16, %18
br i1 %19, label %.lr.ph, label %86
.lr.ph: ; preds = %15
br label %20
20: ; preds = %.lr.ph, %79
%21 = load ptr, ptr %7, align 8
%22 = load ptr, ptr %21, align 8
%23 = load i32, ptr %10, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds ptr, ptr %22, i64 %24
%26 = load ptr, ptr %25, align 8
%27 = load ptr, ptr %8, align 8
%28 = call i64 @strcmp(ptr noundef %26, ptr noundef %27)
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %78
30: ; preds = %20
%31 = load i32, ptr %10, align 4
%32 = add nsw i32 %31, 1
%33 = load ptr, ptr %6, align 8
%34 = load i32, ptr %33, align 4
%35 = icmp eq i32 %32, %34
br i1 %35, label %36, label %37
36: ; preds = %30
store i32 0, ptr %5, align 4
br label %87
37: ; preds = %30
%38 = load ptr, ptr %9, align 8
%39 = load ptr, ptr %7, align 8
%40 = load ptr, ptr %39, align 8
%41 = load i32, ptr %10, align 4
%42 = add nsw i32 %41, 1
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds ptr, ptr %40, i64 %43
%45 = load ptr, ptr %44, align 8
%46 = call i32 @strcpy(ptr noundef %38, ptr noundef %45)
%47 = load i32, ptr %10, align 4
store i32 %47, ptr %11, align 4
%48 = load i32, ptr %11, align 4
%49 = load ptr, ptr %6, align 8
%50 = load i32, ptr %49, align 4
%51 = sub nsw i32 %50, 1
%52 = icmp slt i32 %48, %51
br i1 %52, label %.lr.ph2, label %74
.lr.ph2: ; preds = %37
br label %53
53: ; preds = %.lr.ph2, %66
%54 = load ptr, ptr %7, align 8
%55 = load ptr, ptr %54, align 8
%56 = load i32, ptr %11, align 4
%57 = add nsw i32 %56, 2
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds ptr, ptr %55, i64 %58
%60 = load ptr, ptr %59, align 8
%61 = load ptr, ptr %7, align 8
%62 = load ptr, ptr %61, align 8
%63 = load i32, ptr %11, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds ptr, ptr %62, i64 %64
store ptr %60, ptr %65, align 8
br label %66
66: ; preds = %53
%67 = load i32, ptr %11, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %11, align 4
%69 = load i32, ptr %11, align 4
%70 = load ptr, ptr %6, align 8
%71 = load i32, ptr %70, align 4
%72 = sub nsw i32 %71, 1
%73 = icmp slt i32 %69, %72
br i1 %73, label %53, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %66
br label %74
74: ; preds = %._crit_edge3, %37
%75 = load ptr, ptr %6, align 8
%76 = load i32, ptr %75, align 4
%77 = sub nsw i32 %76, 2
store i32 %77, ptr %75, align 4
store i32 1, ptr %5, align 4
br label %87
78: ; preds = %20
br label %79
79: ; preds = %78
%80 = load i32, ptr %10, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %10, align 4
%82 = load i32, ptr %10, align 4
%83 = load ptr, ptr %6, align 8
%84 = load i32, ptr %83, align 4
%85 = icmp slt i32 %82, %84
br i1 %85, label %20, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %79
br label %86
86: ; preds = %._crit_edge, %15
store i32 0, ptr %5, align 4
br label %87
87: ; preds = %86, %74, %36, %14
%88 = load i32, ptr %5, align 4
ret i32 %88
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpmuom7vxt.c'
source_filename = "/tmp/tmpmuom7vxt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@STDERR_FILENO = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [12 x i8] c"minishell: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c": \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_error_double_msg(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 @STDERR_FILENO, align 4
%6 = call i32 @xwrite(i32 noundef %5, ptr noundef @.str, i32 noundef 11)
%7 = load i32, ptr @STDERR_FILENO, align 4
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = call i32 @my_strlen(ptr noundef %9)
%11 = call i32 @xwrite(i32 noundef %7, ptr noundef %8, i32 noundef %10)
%12 = load i32, ptr @STDERR_FILENO, align 4
%13 = call i32 @xwrite(i32 noundef %12, ptr noundef @.str.1, i32 noundef 2)
%14 = load i32, ptr @STDERR_FILENO, align 4
%15 = load ptr, ptr %4, align 8
%16 = load ptr, ptr %4, align 8
%17 = call i32 @my_strlen(ptr noundef %16)
%18 = call i32 @xwrite(i32 noundef %14, ptr noundef %15, i32 noundef %17)
%19 = load i32, ptr @STDERR_FILENO, align 4
%20 = call i32 @xwrite(i32 noundef %19, ptr noundef @.str.2, i32 noundef 1)
ret void
}
declare i32 @xwrite(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @my_strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmuom7vxt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@STDERR_FILENO = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [12 x i8] c"minishell: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c": \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_error_double_msg(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 @STDERR_FILENO, align 4
%6 = call i32 @xwrite(i32 noundef %5, ptr noundef @.str, i32 noundef 11)
%7 = load i32, ptr @STDERR_FILENO, align 4
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = call i32 @my_strlen(ptr noundef %9)
%11 = call i32 @xwrite(i32 noundef %7, ptr noundef %8, i32 noundef %10)
%12 = load i32, ptr @STDERR_FILENO, align 4
%13 = call i32 @xwrite(i32 noundef %12, ptr noundef @.str.1, i32 noundef 2)
%14 = load i32, ptr @STDERR_FILENO, align 4
%15 = load ptr, ptr %4, align 8
%16 = load ptr, ptr %4, align 8
%17 = call i32 @my_strlen(ptr noundef %16)
%18 = call i32 @xwrite(i32 noundef %14, ptr noundef %15, i32 noundef %17)
%19 = load i32, ptr @STDERR_FILENO, align 4
%20 = call i32 @xwrite(i32 noundef %19, ptr noundef @.str.2, i32 noundef 1)
ret void
}
declare i32 @xwrite(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @my_strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp63upcp7r.c'
source_filename = "/tmp/tmp63upcp7r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @numIslands(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
%13 = load i32, ptr %6, align 4
store i32 %13, ptr %9, align 4
%14 = load i32, ptr %9, align 4
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %3
store i32 0, ptr %4, align 4
br label %59
17: ; preds = %3
%18 = load i32, ptr %7, align 4
store i32 %18, ptr %10, align 4
store i32 0, ptr %11, align 4
br label %19
19: ; preds = %54, %17
%20 = load i32, ptr %11, align 4
%21 = load i32, ptr %9, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %57
23: ; preds = %19
store i32 0, ptr %12, align 4
br label %24
24: ; preds = %50, %23
%25 = load i32, ptr %12, align 4
%26 = load i32, ptr %10, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %53
28: ; preds = %24
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %11, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds ptr, ptr %29, i64 %31
%33 = load ptr, ptr %32, align 8
%34 = load i32, ptr %12, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %38, 49
br i1 %39, label %40, label %49
40: ; preds = %28
%41 = load i32, ptr %8, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %8, align 4
%43 = load ptr, ptr %5, align 8
%44 = load i32, ptr %11, align 4
%45 = load i32, ptr %9, align 4
%46 = load i32, ptr %12, align 4
%47 = load i32, ptr %10, align 4
%48 = call i32 @markVisited(ptr noundef %43, i32 noundef %44, i32 noundef %45, i32 noundef %46, i32 noundef %47)
br label %49
49: ; preds = %40, %28
br label %50
50: ; preds = %49
%51 = load i32, ptr %12, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %12, align 4
br label %24, !llvm.loop !6
53: ; preds = %24
br label %54
54: ; preds = %53
%55 = load i32, ptr %11, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %11, align 4
br label %19, !llvm.loop !8
57: ; preds = %19
%58 = load i32, ptr %8, align 4
store i32 %58, ptr %4, align 4
br label %59
59: ; preds = %57, %16
%60 = load i32, ptr %4, align 4
ret i32 %60
}
declare i32 @markVisited(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp63upcp7r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @numIslands(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
%13 = load i32, ptr %6, align 4
store i32 %13, ptr %9, align 4
%14 = load i32, ptr %9, align 4
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %3
store i32 0, ptr %4, align 4
br label %63
17: ; preds = %3
%18 = load i32, ptr %7, align 4
store i32 %18, ptr %10, align 4
store i32 0, ptr %11, align 4
%19 = load i32, ptr %11, align 4
%20 = load i32, ptr %9, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %.lr.ph2, label %61
.lr.ph2: ; preds = %17
br label %22
22: ; preds = %.lr.ph2, %55
store i32 0, ptr %12, align 4
%23 = load i32, ptr %12, align 4
%24 = load i32, ptr %10, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %.lr.ph, label %54
.lr.ph: ; preds = %22
br label %26
26: ; preds = %.lr.ph, %48
%27 = load ptr, ptr %5, align 8
%28 = load i32, ptr %11, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds ptr, ptr %27, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = load i32, ptr %12, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, i64 %33
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %36, 49
br i1 %37, label %38, label %47
38: ; preds = %26
%39 = load i32, ptr %8, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %8, align 4
%41 = load ptr, ptr %5, align 8
%42 = load i32, ptr %11, align 4
%43 = load i32, ptr %9, align 4
%44 = load i32, ptr %12, align 4
%45 = load i32, ptr %10, align 4
%46 = call i32 @markVisited(ptr noundef %41, i32 noundef %42, i32 noundef %43, i32 noundef %44, i32 noundef %45)
br label %47
47: ; preds = %38, %26
br label %48
48: ; preds = %47
%49 = load i32, ptr %12, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %12, align 4
%51 = load i32, ptr %12, align 4
%52 = load i32, ptr %10, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %48
br label %54
54: ; preds = %._crit_edge, %22
br label %55
55: ; preds = %54
%56 = load i32, ptr %11, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %11, align 4
%58 = load i32, ptr %11, align 4
%59 = load i32, ptr %9, align 4
%60 = icmp slt i32 %58, %59
br i1 %60, label %22, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %55
br label %61
61: ; preds = %._crit_edge3, %17
%62 = load i32, ptr %8, align 4
store i32 %62, ptr %4, align 4
br label %63
63: ; preds = %61, %16
%64 = load i32, ptr %4, align 4
ret i32 %64
}
declare i32 @markVisited(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp3uhkp1hw.c'
source_filename = "/tmp/tmp3uhkp1hw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ABMON_12 = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @langinfo_abmon_12() #0 {
%1 = load i32, ptr @ABMON_12, align 4
%2 = call ptr @nl_langinfo(i32 noundef %1)
ret ptr %2
}
declare ptr @nl_langinfo(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/tmp3uhkp1hw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ABMON_12 = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @langinfo_abmon_12() #0 {
%1 = load i32, ptr @ABMON_12, align 4
%2 = call ptr @nl_langinfo(i32 noundef %1)
ret ptr %2
}
declare ptr @nl_langinfo(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/tmp6_tg1cc4.c'
source_filename = "/tmp/tmp6_tg1cc4.c"
target datalayout = "e-m:e-p270: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/tmp6_tg1cc4.c"
target datalayout = "e-m:e-p270: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/tmpbildenic.c'
source_filename = "/tmp/tmpbildenic.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @pspFpuSqrt(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = call float @__builtin_allegrex_sqrt_s(float noundef %3)
ret float %4
}
declare float @__builtin_allegrex_sqrt_s(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/tmpbildenic.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @pspFpuSqrt(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = call float @__builtin_allegrex_sqrt_s(float noundef %3)
ret float %4
}
declare float @__builtin_allegrex_sqrt_s(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/tmpldy0znii.c'
source_filename = "/tmp/tmpldy0znii.c"
target datalayout = "e-m:e-p270: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.floatVals = private unnamed_addr constant [4 x float] [float 0x3FF3333340000000, float 0xC00D9999A0000000, float 0x4018CCCCC0000000, float 0x40211999A0000000], align 16
@.str = private unnamed_addr constant [6 x i8] c"%.2f \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [4 x float], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.floatVals, i64 16, i1 false)
%4 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
%5 = call i32 @multiplyBy2(ptr noundef %4, i32 noundef 4)
store i32 0, ptr %3, align 4
br label %6
6: ; preds = %16, %0
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 4
br i1 %8, label %9, label %19
9: ; preds = %6
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 %11
%13 = load float, ptr %12, align 4
%14 = fpext float %13 to double
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %14)
br label %16
16: ; preds = %9
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %3, align 4
br label %6, !llvm.loop !6
19: ; preds = %6
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
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 @multiplyBy2(ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpldy0znii.c"
target datalayout = "e-m:e-p270: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.floatVals = private unnamed_addr constant [4 x float] [float 0x3FF3333340000000, float 0xC00D9999A0000000, float 0x4018CCCCC0000000, float 0x40211999A0000000], align 16
@.str = private unnamed_addr constant [6 x i8] c"%.2f \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [4 x float], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.floatVals, i64 16, i1 false)
%4 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
%5 = call i32 @multiplyBy2(ptr noundef %4, i32 noundef 4)
store i32 0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 4
br i1 %7, label %.lr.ph, label %20
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %15
%9 = load i32, ptr %3, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 %10
%12 = load float, ptr %11, align 4
%13 = fpext float %12 to double
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %13)
br label %15
15: ; preds = %8
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %3, align 4
%18 = load i32, ptr %3, align 4
%19 = icmp slt i32 %18, 4
br i1 %19, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %20
20: ; preds = %._crit_edge, %0
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
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 @multiplyBy2(ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp6ebzox_v.c'
source_filename = "/tmp/tmp6ebzox_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"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @setLum(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = ashr i32 %10, 16
%12 = and i32 %11, 255
store i32 %12, ptr %5, align 4
%13 = load i32, ptr %4, align 4
%14 = ashr i32 %13, 8
%15 = and i32 %14, 255
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %4, align 4
%17 = and i32 %16, 255
store i32 %17, ptr %7, align 4
%18 = load i32, ptr %3, align 4
%19 = ashr i32 %18, 16
%20 = and i32 %19, 255
%21 = sitofp i32 %20 to double
%22 = load i32, ptr %3, align 4
%23 = ashr i32 %22, 8
%24 = and i32 %23, 255
%25 = sitofp i32 %24 to double
%26 = fmul double %25, 5.900000e-01
%27 = call double @llvm.fmuladd.f64(double %21, double 3.000000e-01, double %26)
%28 = load i32, ptr %3, align 4
%29 = and i32 %28, 255
%30 = sitofp i32 %29 to double
%31 = call double @llvm.fmuladd.f64(double %30, double 1.100000e-01, double %27)
%32 = fptosi double %31 to i32
store i32 %32, ptr %8, align 4
%33 = load i32, ptr %8, align 4
%34 = sitofp i32 %33 to double
%35 = load i32, ptr %4, align 4
%36 = ashr i32 %35, 16
%37 = and i32 %36, 255
%38 = sitofp i32 %37 to double
%39 = load i32, ptr %4, align 4
%40 = ashr i32 %39, 8
%41 = and i32 %40, 255
%42 = sitofp i32 %41 to double
%43 = fmul double %42, 5.900000e-01
%44 = call double @llvm.fmuladd.f64(double %38, double 3.000000e-01, double %43)
%45 = load i32, ptr %4, align 4
%46 = and i32 %45, 255
%47 = sitofp i32 %46 to double
%48 = call double @llvm.fmuladd.f64(double %47, double 1.100000e-01, double %44)
%49 = fsub double %34, %48
%50 = fptosi double %49 to i32
store i32 %50, ptr %9, align 4
%51 = load i32, ptr %9, align 4
%52 = load i32, ptr %5, align 4
%53 = add nsw i32 %52, %51
store i32 %53, ptr %5, align 4
%54 = load i32, ptr %9, align 4
%55 = load i32, ptr %6, align 4
%56 = add nsw i32 %55, %54
store i32 %56, ptr %6, align 4
%57 = load i32, ptr %9, align 4
%58 = load i32, ptr %7, align 4
%59 = add nsw i32 %58, %57
store i32 %59, ptr %7, align 4
%60 = load i32, ptr %5, align 4
%61 = load i32, ptr %6, align 4
%62 = load i32, ptr %7, align 4
%63 = load i32, ptr %8, align 4
%64 = call i32 @ClipColour(i32 noundef %60, i32 noundef %61, i32 noundef %62, i32 noundef %63)
ret i32 %64
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare i32 @ClipColour(i32 noundef, i32 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 nosync nounwind speculatable willreturn memory(none) }
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/tmp6ebzox_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"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @setLum(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = ashr i32 %10, 16
%12 = and i32 %11, 255
store i32 %12, ptr %5, align 4
%13 = load i32, ptr %4, align 4
%14 = ashr i32 %13, 8
%15 = and i32 %14, 255
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %4, align 4
%17 = and i32 %16, 255
store i32 %17, ptr %7, align 4
%18 = load i32, ptr %3, align 4
%19 = ashr i32 %18, 16
%20 = and i32 %19, 255
%21 = sitofp i32 %20 to double
%22 = load i32, ptr %3, align 4
%23 = ashr i32 %22, 8
%24 = and i32 %23, 255
%25 = sitofp i32 %24 to double
%26 = fmul double %25, 5.900000e-01
%27 = call double @llvm.fmuladd.f64(double %21, double 3.000000e-01, double %26)
%28 = load i32, ptr %3, align 4
%29 = and i32 %28, 255
%30 = sitofp i32 %29 to double
%31 = call double @llvm.fmuladd.f64(double %30, double 1.100000e-01, double %27)
%32 = fptosi double %31 to i32
store i32 %32, ptr %8, align 4
%33 = load i32, ptr %8, align 4
%34 = sitofp i32 %33 to double
%35 = load i32, ptr %4, align 4
%36 = ashr i32 %35, 16
%37 = and i32 %36, 255
%38 = sitofp i32 %37 to double
%39 = load i32, ptr %4, align 4
%40 = ashr i32 %39, 8
%41 = and i32 %40, 255
%42 = sitofp i32 %41 to double
%43 = fmul double %42, 5.900000e-01
%44 = call double @llvm.fmuladd.f64(double %38, double 3.000000e-01, double %43)
%45 = load i32, ptr %4, align 4
%46 = and i32 %45, 255
%47 = sitofp i32 %46 to double
%48 = call double @llvm.fmuladd.f64(double %47, double 1.100000e-01, double %44)
%49 = fsub double %34, %48
%50 = fptosi double %49 to i32
store i32 %50, ptr %9, align 4
%51 = load i32, ptr %9, align 4
%52 = load i32, ptr %5, align 4
%53 = add nsw i32 %52, %51
store i32 %53, ptr %5, align 4
%54 = load i32, ptr %9, align 4
%55 = load i32, ptr %6, align 4
%56 = add nsw i32 %55, %54
store i32 %56, ptr %6, align 4
%57 = load i32, ptr %9, align 4
%58 = load i32, ptr %7, align 4
%59 = add nsw i32 %58, %57
store i32 %59, ptr %7, align 4
%60 = load i32, ptr %5, align 4
%61 = load i32, ptr %6, align 4
%62 = load i32, ptr %7, align 4
%63 = load i32, ptr %8, align 4
%64 = call i32 @ClipColour(i32 noundef %60, i32 noundef %61, i32 noundef %62, i32 noundef %63)
ret i32 %64
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare i32 @ClipColour(i32 noundef, i32 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 nosync nounwind speculatable willreturn memory(none) }
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/tmpfk6ahjez.c'
source_filename = "/tmp/tmpfk6ahjez.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bigobject_uri_string_escape(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i8, align 1
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i8, align 1
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%13 = load ptr, ptr %4, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %16
15: ; preds = %2
store ptr null, ptr %3, align 8
br label %204
16: ; preds = %2
%17 = load ptr, ptr %4, align 8
%18 = getelementptr inbounds i8, ptr %17, i64 0
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %16
%23 = load ptr, ptr %4, align 8
%24 = call ptr @strdup(ptr noundef %23)
store ptr %24, ptr %3, align 8
br label %204
25: ; preds = %16
%26 = load ptr, ptr %4, align 8
%27 = call i32 @strlen(ptr noundef %26)
store i32 %27, ptr %10, align 4
%28 = load i32, ptr %10, align 4
%29 = icmp sgt i32 %28, 0
br i1 %29, label %31, label %30
30: ; preds = %25
store ptr null, ptr %3, align 8
br label %204
31: ; preds = %25
%32 = load i32, ptr %10, align 4
%33 = add nsw i32 %32, 20
store i32 %33, ptr %10, align 4
%34 = load i32, ptr %10, align 4
%35 = call ptr @malloc(i32 noundef %34)
store ptr %35, ptr %6, align 8
%36 = load ptr, ptr %4, align 8
store ptr %36, ptr %9, align 8
store i32 0, ptr %11, align 4
br label %37
37: ; preds = %197, %31
%38 = load ptr, ptr %9, align 8
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %198
42: ; preds = %37
%43 = load i32, ptr %10, align 4
%44 = load i32, ptr %11, align 4
%45 = sub nsw i32 %43, %44
%46 = icmp sle i32 %45, 3
br i1 %46, label %47, label %51
47: ; preds = %42
%48 = load ptr, ptr %6, align 8
%49 = call ptr @realloc2n(ptr noundef %48, ptr noundef %10)
store ptr %49, ptr %8, align 8
%50 = load ptr, ptr %8, align 8
store ptr %50, ptr %6, align 8
br label %51
51: ; preds = %47, %42
%52 = load ptr, ptr %9, align 8
%53 = load i8, ptr %52, align 1
store i8 %53, ptr %7, align 1
%54 = load i8, ptr %7, align 1
%55 = sext i8 %54 to i32
%56 = icmp ne i32 %55, 64
br i1 %56, label %57, label %188
57: ; preds = %51
%58 = load i8, ptr %7, align 1
%59 = sext i8 %58 to i32
%60 = icmp sge i32 %59, 97
br i1 %60, label %61, label %65
61: ; preds = %57
%62 = load i8, ptr %7, align 1
%63 = sext i8 %62 to i32
%64 = icmp sle i32 %63, 122
br i1 %64, label %188, label %65
65: ; preds = %61, %57
%66 = load i8, ptr %7, align 1
%67 = sext i8 %66 to i32
%68 = icmp sge i32 %67, 65
br i1 %68, label %69, label %73
69: ; preds = %65
%70 = load i8, ptr %7, align 1
%71 = sext i8 %70 to i32
%72 = icmp sle i32 %71, 90
br i1 %72, label %188, label %73
73: ; preds = %69, %65
%74 = load i8, ptr %7, align 1
%75 = sext i8 %74 to i32
%76 = icmp sge i32 %75, 48
br i1 %76, label %77, label %81
77: ; preds = %73
%78 = load i8, ptr %7, align 1
%79 = sext i8 %78 to i32
%80 = icmp sle i32 %79, 57
br i1 %80, label %188, label %81
81: ; preds = %77, %73
%82 = load i8, ptr %7, align 1
%83 = sext i8 %82 to i32
%84 = icmp eq i32 %83, 45
br i1 %84, label %188, label %85
85: ; preds = %81
%86 = load i8, ptr %7, align 1
%87 = sext i8 %86 to i32
%88 = icmp eq i32 %87, 95
br i1 %88, label %188, label %89
89: ; preds = %85
%90 = load i8, ptr %7, align 1
%91 = sext i8 %90 to i32
%92 = icmp eq i32 %91, 46
br i1 %92, label %188, label %93
93: ; preds = %89
%94 = load i8, ptr %7, align 1
%95 = sext i8 %94 to i32
%96 = icmp eq i32 %95, 33
br i1 %96, label %188, label %97
97: ; preds = %93
%98 = load i8, ptr %7, align 1
%99 = sext i8 %98 to i32
%100 = icmp eq i32 %99, 126
br i1 %100, label %188, label %101
101: ; preds = %97
%102 = load i8, ptr %7, align 1
%103 = sext i8 %102 to i32
%104 = icmp eq i32 %103, 42
br i1 %104, label %188, label %105
105: ; preds = %101
%106 = load i8, ptr %7, align 1
%107 = sext i8 %106 to i32
%108 = icmp eq i32 %107, 39
br i1 %108, label %188, label %109
109: ; preds = %105
%110 = load i8, ptr %7, align 1
%111 = sext i8 %110 to i32
%112 = icmp eq i32 %111, 40
br i1 %112, label %188, label %113
113: ; preds = %109
%114 = load i8, ptr %7, align 1
%115 = sext i8 %114 to i32
%116 = icmp eq i32 %115, 41
br i1 %116, label %188, label %117
117: ; preds = %113
%118 = load ptr, ptr %5, align 8
%119 = load i8, ptr %7, align 1
%120 = call i32 @strchr(ptr noundef %118, i8 noundef signext %119)
%121 = icmp ne i32 %120, 0
br i1 %121, label %188, label %122
122: ; preds = %117
%123 = load ptr, ptr %6, align 8
%124 = load i32, ptr %11, align 4
%125 = add nsw i32 %124, 1
store i32 %125, ptr %11, align 4
%126 = sext i32 %124 to i64
%127 = getelementptr inbounds i8, ptr %123, i64 %126
store i8 37, ptr %127, align 1
%128 = load i8, ptr %7, align 1
%129 = sext i8 %128 to i32
%130 = ashr i32 %129, 4
%131 = trunc i32 %130 to i8
store i8 %131, ptr %12, align 1
%132 = load i8, ptr %12, align 1
%133 = zext i8 %132 to i32
%134 = icmp sle i32 %133, 9
br i1 %134, label %135, label %145
135: ; preds = %122
%136 = load i8, ptr %12, align 1
%137 = zext i8 %136 to i32
%138 = add nsw i32 48, %137
%139 = trunc i32 %138 to i8
%140 = load ptr, ptr %6, align 8
%141 = load i32, ptr %11, align 4
%142 = add nsw i32 %141, 1
store i32 %142, ptr %11, align 4
%143 = sext i32 %141 to i64
%144 = getelementptr inbounds i8, ptr %140, i64 %143
store i8 %139, ptr %144, align 1
br label %156
145: ; preds = %122
%146 = load i8, ptr %12, align 1
%147 = zext i8 %146 to i32
%148 = add nsw i32 65, %147
%149 = sub nsw i32 %148, 10
%150 = trunc i32 %149 to i8
%151 = load ptr, ptr %6, align 8
%152 = load i32, ptr %11, align 4
%153 = add nsw i32 %152, 1
store i32 %153, ptr %11, align 4
%154 = sext i32 %152 to i64
%155 = getelementptr inbounds i8, ptr %151, i64 %154
store i8 %150, ptr %155, align 1
br label %156
156: ; preds = %145, %135
%157 = load i8, ptr %7, align 1
%158 = sext i8 %157 to i32
%159 = and i32 %158, 15
%160 = trunc i32 %159 to i8
store i8 %160, ptr %12, align 1
%161 = load i8, ptr %12, align 1
%162 = zext i8 %161 to i32
%163 = icmp sle i32 %162, 9
br i1 %163, label %164, label %174
164: ; preds = %156
%165 = load i8, ptr %12, align 1
%166 = zext i8 %165 to i32
%167 = add nsw i32 48, %166
%168 = trunc i32 %167 to i8
%169 = load ptr, ptr %6, align 8
%170 = load i32, ptr %11, align 4
%171 = add nsw i32 %170, 1
store i32 %171, ptr %11, align 4
%172 = sext i32 %170 to i64
%173 = getelementptr inbounds i8, ptr %169, i64 %172
store i8 %168, ptr %173, align 1
br label %185
174: ; preds = %156
%175 = load i8, ptr %12, align 1
%176 = zext i8 %175 to i32
%177 = add nsw i32 65, %176
%178 = sub nsw i32 %177, 10
%179 = trunc i32 %178 to i8
%180 = load ptr, ptr %6, align 8
%181 = load i32, ptr %11, align 4
%182 = add nsw i32 %181, 1
store i32 %182, ptr %11, align 4
%183 = sext i32 %181 to i64
%184 = getelementptr inbounds i8, ptr %180, i64 %183
store i8 %179, ptr %184, align 1
br label %185
185: ; preds = %174, %164
%186 = load ptr, ptr %9, align 8
%187 = getelementptr inbounds i8, ptr %186, i32 1
store ptr %187, ptr %9, align 8
br label %197
188: ; preds = %117, %113, %109, %105, %101, %97, %93, %89, %85, %81, %77, %69, %61, %51
%189 = load ptr, ptr %9, align 8
%190 = getelementptr inbounds i8, ptr %189, i32 1
store ptr %190, ptr %9, align 8
%191 = load i8, ptr %189, align 1
%192 = load ptr, ptr %6, align 8
%193 = load i32, ptr %11, align 4
%194 = add nsw i32 %193, 1
store i32 %194, ptr %11, align 4
%195 = sext i32 %193 to i64
%196 = getelementptr inbounds i8, ptr %192, i64 %195
store i8 %191, ptr %196, align 1
br label %197
197: ; preds = %188, %185
br label %37, !llvm.loop !6
198: ; preds = %37
%199 = load ptr, ptr %6, align 8
%200 = load i32, ptr %11, align 4
%201 = sext i32 %200 to i64
%202 = getelementptr inbounds i8, ptr %199, i64 %201
store i8 0, ptr %202, align 1
%203 = load ptr, ptr %6, align 8
store ptr %203, ptr %3, align 8
br label %204
204: ; preds = %198, %30, %22, %15
%205 = load ptr, ptr %3, align 8
ret ptr %205
}
declare ptr @strdup(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare ptr @realloc2n(ptr noundef, ptr noundef) #1
declare i32 @strchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfk6ahjez.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bigobject_uri_string_escape(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i8, align 1
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i8, align 1
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%13 = load ptr, ptr %4, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %16
15: ; preds = %2
store ptr null, ptr %3, align 8
br label %207
16: ; preds = %2
%17 = load ptr, ptr %4, align 8
%18 = getelementptr inbounds i8, ptr %17, i64 0
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %16
%23 = load ptr, ptr %4, align 8
%24 = call ptr @strdup(ptr noundef %23)
store ptr %24, ptr %3, align 8
br label %207
25: ; preds = %16
%26 = load ptr, ptr %4, align 8
%27 = call i32 @strlen(ptr noundef %26)
store i32 %27, ptr %10, align 4
%28 = load i32, ptr %10, align 4
%29 = icmp sgt i32 %28, 0
br i1 %29, label %31, label %30
30: ; preds = %25
store ptr null, ptr %3, align 8
br label %207
31: ; preds = %25
%32 = load i32, ptr %10, align 4
%33 = add nsw i32 %32, 20
store i32 %33, ptr %10, align 4
%34 = load i32, ptr %10, align 4
%35 = call ptr @malloc(i32 noundef %34)
store ptr %35, ptr %6, align 8
%36 = load ptr, ptr %4, align 8
store ptr %36, ptr %9, align 8
store i32 0, ptr %11, align 4
%37 = load ptr, ptr %9, align 8
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp ne i32 %39, 0
br i1 %40, label %.lr.ph, label %201
.lr.ph: ; preds = %31
br label %41
41: ; preds = %.lr.ph, %196
%42 = load i32, ptr %10, align 4
%43 = load i32, ptr %11, align 4
%44 = sub nsw i32 %42, %43
%45 = icmp sle i32 %44, 3
br i1 %45, label %46, label %50
46: ; preds = %41
%47 = load ptr, ptr %6, align 8
%48 = call ptr @realloc2n(ptr noundef %47, ptr noundef %10)
store ptr %48, ptr %8, align 8
%49 = load ptr, ptr %8, align 8
store ptr %49, ptr %6, align 8
br label %50
50: ; preds = %46, %41
%51 = load ptr, ptr %9, align 8
%52 = load i8, ptr %51, align 1
store i8 %52, ptr %7, align 1
%53 = load i8, ptr %7, align 1
%54 = sext i8 %53 to i32
%55 = icmp ne i32 %54, 64
br i1 %55, label %56, label %187
56: ; preds = %50
%57 = load i8, ptr %7, align 1
%58 = sext i8 %57 to i32
%59 = icmp sge i32 %58, 97
br i1 %59, label %60, label %64
60: ; preds = %56
%61 = load i8, ptr %7, align 1
%62 = sext i8 %61 to i32
%63 = icmp sle i32 %62, 122
br i1 %63, label %187, label %64
64: ; preds = %60, %56
%65 = load i8, ptr %7, align 1
%66 = sext i8 %65 to i32
%67 = icmp sge i32 %66, 65
br i1 %67, label %68, label %72
68: ; preds = %64
%69 = load i8, ptr %7, align 1
%70 = sext i8 %69 to i32
%71 = icmp sle i32 %70, 90
br i1 %71, label %187, label %72
72: ; preds = %68, %64
%73 = load i8, ptr %7, align 1
%74 = sext i8 %73 to i32
%75 = icmp sge i32 %74, 48
br i1 %75, label %76, label %80
76: ; preds = %72
%77 = load i8, ptr %7, align 1
%78 = sext i8 %77 to i32
%79 = icmp sle i32 %78, 57
br i1 %79, label %187, label %80
80: ; preds = %76, %72
%81 = load i8, ptr %7, align 1
%82 = sext i8 %81 to i32
%83 = icmp eq i32 %82, 45
br i1 %83, label %187, label %84
84: ; preds = %80
%85 = load i8, ptr %7, align 1
%86 = sext i8 %85 to i32
%87 = icmp eq i32 %86, 95
br i1 %87, label %187, label %88
88: ; preds = %84
%89 = load i8, ptr %7, align 1
%90 = sext i8 %89 to i32
%91 = icmp eq i32 %90, 46
br i1 %91, label %187, label %92
92: ; preds = %88
%93 = load i8, ptr %7, align 1
%94 = sext i8 %93 to i32
%95 = icmp eq i32 %94, 33
br i1 %95, label %187, label %96
96: ; preds = %92
%97 = load i8, ptr %7, align 1
%98 = sext i8 %97 to i32
%99 = icmp eq i32 %98, 126
br i1 %99, label %187, label %100
100: ; preds = %96
%101 = load i8, ptr %7, align 1
%102 = sext i8 %101 to i32
%103 = icmp eq i32 %102, 42
br i1 %103, label %187, label %104
104: ; preds = %100
%105 = load i8, ptr %7, align 1
%106 = sext i8 %105 to i32
%107 = icmp eq i32 %106, 39
br i1 %107, label %187, label %108
108: ; preds = %104
%109 = load i8, ptr %7, align 1
%110 = sext i8 %109 to i32
%111 = icmp eq i32 %110, 40
br i1 %111, label %187, label %112
112: ; preds = %108
%113 = load i8, ptr %7, align 1
%114 = sext i8 %113 to i32
%115 = icmp eq i32 %114, 41
br i1 %115, label %187, label %116
116: ; preds = %112
%117 = load ptr, ptr %5, align 8
%118 = load i8, ptr %7, align 1
%119 = call i32 @strchr(ptr noundef %117, i8 noundef signext %118)
%120 = icmp ne i32 %119, 0
br i1 %120, label %187, label %121
121: ; preds = %116
%122 = load ptr, ptr %6, align 8
%123 = load i32, ptr %11, align 4
%124 = add nsw i32 %123, 1
store i32 %124, ptr %11, align 4
%125 = sext i32 %123 to i64
%126 = getelementptr inbounds i8, ptr %122, i64 %125
store i8 37, ptr %126, align 1
%127 = load i8, ptr %7, align 1
%128 = sext i8 %127 to i32
%129 = ashr i32 %128, 4
%130 = trunc i32 %129 to i8
store i8 %130, ptr %12, align 1
%131 = load i8, ptr %12, align 1
%132 = zext i8 %131 to i32
%133 = icmp sle i32 %132, 9
br i1 %133, label %134, label %144
134: ; preds = %121
%135 = load i8, ptr %12, align 1
%136 = zext i8 %135 to i32
%137 = add nsw i32 48, %136
%138 = trunc i32 %137 to i8
%139 = load ptr, ptr %6, align 8
%140 = load i32, ptr %11, align 4
%141 = add nsw i32 %140, 1
store i32 %141, ptr %11, align 4
%142 = sext i32 %140 to i64
%143 = getelementptr inbounds i8, ptr %139, i64 %142
store i8 %138, ptr %143, align 1
br label %155
144: ; preds = %121
%145 = load i8, ptr %12, align 1
%146 = zext i8 %145 to i32
%147 = add nsw i32 65, %146
%148 = sub nsw i32 %147, 10
%149 = trunc i32 %148 to i8
%150 = load ptr, ptr %6, align 8
%151 = load i32, ptr %11, align 4
%152 = add nsw i32 %151, 1
store i32 %152, ptr %11, align 4
%153 = sext i32 %151 to i64
%154 = getelementptr inbounds i8, ptr %150, i64 %153
store i8 %149, ptr %154, align 1
br label %155
155: ; preds = %144, %134
%156 = load i8, ptr %7, align 1
%157 = sext i8 %156 to i32
%158 = and i32 %157, 15
%159 = trunc i32 %158 to i8
store i8 %159, ptr %12, align 1
%160 = load i8, ptr %12, align 1
%161 = zext i8 %160 to i32
%162 = icmp sle i32 %161, 9
br i1 %162, label %163, label %173
163: ; preds = %155
%164 = load i8, ptr %12, align 1
%165 = zext i8 %164 to i32
%166 = add nsw i32 48, %165
%167 = trunc i32 %166 to i8
%168 = load ptr, ptr %6, align 8
%169 = load i32, ptr %11, align 4
%170 = add nsw i32 %169, 1
store i32 %170, ptr %11, align 4
%171 = sext i32 %169 to i64
%172 = getelementptr inbounds i8, ptr %168, i64 %171
store i8 %167, ptr %172, align 1
br label %184
173: ; preds = %155
%174 = load i8, ptr %12, align 1
%175 = zext i8 %174 to i32
%176 = add nsw i32 65, %175
%177 = sub nsw i32 %176, 10
%178 = trunc i32 %177 to i8
%179 = load ptr, ptr %6, align 8
%180 = load i32, ptr %11, align 4
%181 = add nsw i32 %180, 1
store i32 %181, ptr %11, align 4
%182 = sext i32 %180 to i64
%183 = getelementptr inbounds i8, ptr %179, i64 %182
store i8 %178, ptr %183, align 1
br label %184
184: ; preds = %173, %163
%185 = load ptr, ptr %9, align 8
%186 = getelementptr inbounds i8, ptr %185, i32 1
store ptr %186, ptr %9, align 8
br label %196
187: ; preds = %116, %112, %108, %104, %100, %96, %92, %88, %84, %80, %76, %68, %60, %50
%188 = load ptr, ptr %9, align 8
%189 = getelementptr inbounds i8, ptr %188, i32 1
store ptr %189, ptr %9, align 8
%190 = load i8, ptr %188, align 1
%191 = load ptr, ptr %6, align 8
%192 = load i32, ptr %11, align 4
%193 = add nsw i32 %192, 1
store i32 %193, ptr %11, align 4
%194 = sext i32 %192 to i64
%195 = getelementptr inbounds i8, ptr %191, i64 %194
store i8 %190, ptr %195, align 1
br label %196
196: ; preds = %187, %184
%197 = load ptr, ptr %9, align 8
%198 = load i8, ptr %197, align 1
%199 = sext i8 %198 to i32
%200 = icmp ne i32 %199, 0
br i1 %200, label %41, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %196
br label %201
201: ; preds = %._crit_edge, %31
%202 = load ptr, ptr %6, align 8
%203 = load i32, ptr %11, align 4
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds i8, ptr %202, i64 %204
store i8 0, ptr %205, align 1
%206 = load ptr, ptr %6, align 8
store ptr %206, ptr %3, align 8
br label %207
207: ; preds = %201, %30, %22, %15
%208 = load ptr, ptr %3, align 8
ret ptr %208
}
declare ptr @strdup(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare ptr @realloc2n(ptr noundef, ptr noundef) #1
declare i32 @strchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp12e0a1p8.c'
source_filename = "/tmp/tmp12e0a1p8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [1000 x i32], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
store i32 0, ptr %4, align 4
br label %7
7: ; preds = %28, %0
%8 = load i32, ptr %4, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %30
11: ; preds = %7
br label %12
12: ; preds = %11
%13 = load i32, ptr %4, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [1000 x i32], ptr %3, i64 0, i64 %14
%16 = call i32 @scanf(ptr noundef @.str, ptr noundef %15)
%17 = load i32, ptr %4, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [1000 x i32], ptr %3, i64 0, i64 %18
%20 = load i32, ptr %19, align 4
%21 = srem i32 %20, 2
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %12
%24 = load i32, ptr %4, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %4, align 4
br label %28
26: ; preds = %12
%27 = load i32, ptr %4, align 4
br label %28
28: ; preds = %26, %23
%29 = phi i32 [ %24, %23 ], [ %27, %26 ]
br label %7, !llvm.loop !6
30: ; preds = %7
store i32 0, ptr %5, align 4
br label %31
31: ; preds = %57, %30
%32 = load i32, ptr %5, align 4
%33 = load i32, ptr %2, align 4
%34 = sdiv i32 %33, 2
%35 = icmp slt i32 %32, %34
br i1 %35, label %36, label %60
36: ; preds = %31
%37 = load i32, ptr %5, align 4
%38 = load i32, ptr %2, align 4
%39 = load i32, ptr %5, align 4
%40 = sub nsw i32 %38, %39
%41 = icmp ne i32 %37, %40
br i1 %41, label %42, label %56
42: ; preds = %36
%43 = load i32, ptr %5, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [1000 x i32], ptr %3, i64 0, i64 %44
%46 = load i32, ptr %45, align 4
%47 = load i32, ptr %2, align 4
%48 = sub nsw i32 %47, 1
%49 = load i32, ptr %5, align 4
%50 = sub nsw i32 %48, %49
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [1000 x i32], ptr %3, i64 0, i64 %51
%53 = load i32, ptr %52, align 4
%54 = sub nsw i32 %46, %53
%55 = call i32 @printf(ptr noundef @.str.1, i32 noundef %54)
br label %56
56: ; preds = %42, %36
br label %57
57: ; preds = %56
%58 = load i32, ptr %5, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %5, align 4
br label %31, !llvm.loop !8
60: ; preds = %31
%61 = load i32, ptr %2, align 4
%62 = srem i32 %61, 2
%63 = icmp ne i32 %62, 0
br i1 %63, label %64, label %71
64: ; preds = %60
%65 = load i32, ptr %2, align 4
%66 = sdiv i32 %65, 2
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [1000 x i32], ptr %3, i64 0, i64 %67
%69 = load i32, ptr %68, align 4
%70 = call i32 @printf(ptr noundef @.str.1, i32 noundef %69)
br label %71
71: ; preds = %64, %60
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp12e0a1p8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [1000 x i32], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
store i32 0, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph, label %32
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %27
br label %11
11: ; preds = %10
%12 = load i32, ptr %4, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [1000 x i32], ptr %3, i64 0, i64 %13
%15 = call i32 @scanf(ptr noundef @.str, ptr noundef %14)
%16 = load i32, ptr %4, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [1000 x i32], ptr %3, i64 0, i64 %17
%19 = load i32, ptr %18, align 4
%20 = srem i32 %19, 2
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %11
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %4, align 4
br label %27
25: ; preds = %11
%26 = load i32, ptr %4, align 4
br label %27
27: ; preds = %25, %22
%28 = phi i32 [ %23, %22 ], [ %26, %25 ]
%29 = load i32, ptr %4, align 4
%30 = load i32, ptr %2, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %32
32: ; preds = %._crit_edge, %0
store i32 0, ptr %5, align 4
%33 = load i32, ptr %5, align 4
%34 = load i32, ptr %2, align 4
%35 = sdiv i32 %34, 2
%36 = icmp slt i32 %33, %35
br i1 %36, label %.lr.ph2, label %65
.lr.ph2: ; preds = %32
br label %37
37: ; preds = %.lr.ph2, %58
%38 = load i32, ptr %5, align 4
%39 = load i32, ptr %2, align 4
%40 = load i32, ptr %5, align 4
%41 = sub nsw i32 %39, %40
%42 = icmp ne i32 %38, %41
br i1 %42, label %43, label %57
43: ; preds = %37
%44 = load i32, ptr %5, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [1000 x i32], ptr %3, i64 0, i64 %45
%47 = load i32, ptr %46, align 4
%48 = load i32, ptr %2, align 4
%49 = sub nsw i32 %48, 1
%50 = load i32, ptr %5, align 4
%51 = sub nsw i32 %49, %50
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [1000 x i32], ptr %3, i64 0, i64 %52
%54 = load i32, ptr %53, align 4
%55 = sub nsw i32 %47, %54
%56 = call i32 @printf(ptr noundef @.str.1, i32 noundef %55)
br label %57
57: ; preds = %43, %37
br label %58
58: ; preds = %57
%59 = load i32, ptr %5, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %5, align 4
%61 = load i32, ptr %5, align 4
%62 = load i32, ptr %2, align 4
%63 = sdiv i32 %62, 2
%64 = icmp slt i32 %61, %63
br i1 %64, label %37, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %58
br label %65
65: ; preds = %._crit_edge3, %32
%66 = load i32, ptr %2, align 4
%67 = srem i32 %66, 2
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %76
69: ; preds = %65
%70 = load i32, ptr %2, align 4
%71 = sdiv i32 %70, 2
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [1000 x i32], ptr %3, i64 0, i64 %72
%74 = load i32, ptr %73, align 4
%75 = call i32 @printf(ptr noundef @.str.1, i32 noundef %74)
br label %76
76: ; preds = %69, %65
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpgqjnxhch.c'
source_filename = "/tmp/tmpgqjnxhch.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 :\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isodigit_0x3a() #0 {
%1 = call i64 @isodigit(i32 noundef 58)
%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 295, 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/tmpgqjnxhch.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 :\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isodigit_0x3a() #0 {
%1 = call i64 @isodigit(i32 noundef 58)
%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 295, 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/tmpcxhplkof.c'
source_filename = "/tmp/tmpcxhplkof.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, i32, i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"create socket error\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"inet_pton error for %s\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"connect error\0A\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"Connect to Server successful!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @client_init(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
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
%9 = load i32, ptr @AF_INET, align 4
%10 = load i32, ptr @SOCK_STREAM, align 4
%11 = call i32 @socket(i32 noundef %9, i32 noundef %10, i32 noundef 0)
%12 = load ptr, ptr %5, align 8
store i32 %11, ptr %12, align 4
%13 = icmp slt i32 %11, 0
br i1 %13, label %14, label %18
14: ; preds = %4
%15 = load i32, ptr @stderr, align 4
%16 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %15, ptr noundef @.str)
%17 = call i32 @exit(i32 noundef 1) #3
unreachable
18: ; preds = %4
%19 = load ptr, ptr %6, align 8
%20 = call i32 @bzero(ptr noundef %19, i32 noundef 12)
%21 = load i32, ptr @AF_INET, align 4
%22 = load ptr, ptr %6, align 8
%23 = getelementptr inbounds %struct.sockaddr_in, ptr %22, i32 0, i32 2
store i32 %21, ptr %23, align 4
%24 = load i32, ptr %8, align 4
%25 = call i32 @htons(i32 noundef %24)
%26 = load ptr, ptr %6, align 8
%27 = getelementptr inbounds %struct.sockaddr_in, ptr %26, i32 0, i32 1
store i32 %25, ptr %27, align 4
%28 = load i32, ptr @AF_INET, align 4
%29 = load ptr, ptr %7, align 8
%30 = load ptr, ptr %6, align 8
%31 = getelementptr inbounds %struct.sockaddr_in, ptr %30, i32 0, i32 0
%32 = call i64 @inet_pton(i32 noundef %28, ptr noundef %29, ptr noundef %31)
%33 = icmp sle i64 %32, 0
br i1 %33, label %34, label %39
34: ; preds = %18
%35 = load i32, ptr @stderr, align 4
%36 = load ptr, ptr %7, align 8
%37 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %35, ptr noundef @.str.1, ptr noundef %36)
%38 = call i32 @exit(i32 noundef 1) #3
unreachable
39: ; preds = %18
%40 = load ptr, ptr %5, align 8
%41 = load i32, ptr %40, align 4
%42 = load ptr, ptr %6, align 8
%43 = call i64 @connect(i32 noundef %41, ptr noundef %42, i32 noundef 12)
%44 = icmp slt i64 %43, 0
br i1 %44, label %45, label %49
45: ; preds = %39
%46 = load i32, ptr @stderr, align 4
%47 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %46, ptr noundef @.str.2)
%48 = call i32 @exit(i32 noundef 1) #3
unreachable
49: ; preds = %39
%50 = call i32 @client_log(ptr noundef @.str.3)
ret void
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i64 @inet_pton(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @client_log(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpcxhplkof.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, i32, i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"create socket error\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"inet_pton error for %s\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"connect error\0A\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"Connect to Server successful!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @client_init(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
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
%9 = load i32, ptr @AF_INET, align 4
%10 = load i32, ptr @SOCK_STREAM, align 4
%11 = call i32 @socket(i32 noundef %9, i32 noundef %10, i32 noundef 0)
%12 = load ptr, ptr %5, align 8
store i32 %11, ptr %12, align 4
%13 = icmp slt i32 %11, 0
br i1 %13, label %14, label %18
14: ; preds = %4
%15 = load i32, ptr @stderr, align 4
%16 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %15, ptr noundef @.str)
%17 = call i32 @exit(i32 noundef 1) #3
unreachable
18: ; preds = %4
%19 = load ptr, ptr %6, align 8
%20 = call i32 @bzero(ptr noundef %19, i32 noundef 12)
%21 = load i32, ptr @AF_INET, align 4
%22 = load ptr, ptr %6, align 8
%23 = getelementptr inbounds %struct.sockaddr_in, ptr %22, i32 0, i32 2
store i32 %21, ptr %23, align 4
%24 = load i32, ptr %8, align 4
%25 = call i32 @htons(i32 noundef %24)
%26 = load ptr, ptr %6, align 8
%27 = getelementptr inbounds %struct.sockaddr_in, ptr %26, i32 0, i32 1
store i32 %25, ptr %27, align 4
%28 = load i32, ptr @AF_INET, align 4
%29 = load ptr, ptr %7, align 8
%30 = load ptr, ptr %6, align 8
%31 = getelementptr inbounds %struct.sockaddr_in, ptr %30, i32 0, i32 0
%32 = call i64 @inet_pton(i32 noundef %28, ptr noundef %29, ptr noundef %31)
%33 = icmp sle i64 %32, 0
br i1 %33, label %34, label %39
34: ; preds = %18
%35 = load i32, ptr @stderr, align 4
%36 = load ptr, ptr %7, align 8
%37 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %35, ptr noundef @.str.1, ptr noundef %36)
%38 = call i32 @exit(i32 noundef 1) #3
unreachable
39: ; preds = %18
%40 = load ptr, ptr %5, align 8
%41 = load i32, ptr %40, align 4
%42 = load ptr, ptr %6, align 8
%43 = call i64 @connect(i32 noundef %41, ptr noundef %42, i32 noundef 12)
%44 = icmp slt i64 %43, 0
br i1 %44, label %45, label %49
45: ; preds = %39
%46 = load i32, ptr @stderr, align 4
%47 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %46, ptr noundef @.str.2)
%48 = call i32 @exit(i32 noundef 1) #3
unreachable
49: ; preds = %39
%50 = call i32 @client_log(ptr noundef @.str.3)
ret void
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i64 @inet_pton(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @client_log(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpfb6l8y0e.c'
source_filename = "/tmp/tmpfb6l8y0e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"[%i.?] <session failure>\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @inner_failure(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load i32, ptr %5, align 4
%10 = call i32 @msglog(i32 noundef 1, ptr noundef @.str, i32 noundef %9)
%11 = load i32, ptr %5, align 4
%12 = load ptr, ptr %6, align 8
%13 = load ptr, ptr %7, align 8
%14 = load ptr, ptr %8, align 8
%15 = call i32 @stop_session(i32 noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14)
ret i32 %15
}
declare i32 @msglog(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @stop_session(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfb6l8y0e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"[%i.?] <session failure>\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @inner_failure(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load i32, ptr %5, align 4
%10 = call i32 @msglog(i32 noundef 1, ptr noundef @.str, i32 noundef %9)
%11 = load i32, ptr %5, align 4
%12 = load ptr, ptr %6, align 8
%13 = load ptr, ptr %7, align 8
%14 = load ptr, ptr %8, align 8
%15 = call i32 @stop_session(i32 noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14)
ret i32 %15
}
declare i32 @msglog(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @stop_session(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9v0clqmk.c'
source_filename = "/tmp/tmp9v0clqmk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"dmd\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c" //comment\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"comment\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"//comment\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c" /*comment*/\00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"/*comment*/\00", align 1
@.str.6 = private unnamed_addr constant [13 x i8] c" /+comment+/\00", align 1
@.str.7 = private unnamed_addr constant [12 x i8] c"/+comment+/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_dmd_comment_entities() #0 {
%1 = call i32 @test_parser_sourcefile(ptr noundef @.str, ptr noundef @.str.1)
%2 = call i32 @test_parser_verify_entity(i32 noundef %1, ptr noundef @.str.2, ptr noundef @.str.3)
%3 = call i32 @test_parser_sourcefile(ptr noundef @.str, ptr noundef @.str.4)
%4 = call i32 @test_parser_verify_entity(i32 noundef %3, ptr noundef @.str.2, ptr noundef @.str.5)
%5 = call i32 @test_parser_sourcefile(ptr noundef @.str, ptr noundef @.str.6)
%6 = call i32 @test_parser_verify_entity(i32 noundef %5, ptr noundef @.str.2, ptr noundef @.str.7)
ret void
}
declare i32 @test_parser_verify_entity(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @test_parser_sourcefile(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/tmp9v0clqmk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"dmd\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c" //comment\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"comment\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"//comment\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c" /*comment*/\00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"/*comment*/\00", align 1
@.str.6 = private unnamed_addr constant [13 x i8] c" /+comment+/\00", align 1
@.str.7 = private unnamed_addr constant [12 x i8] c"/+comment+/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_dmd_comment_entities() #0 {
%1 = call i32 @test_parser_sourcefile(ptr noundef @.str, ptr noundef @.str.1)
%2 = call i32 @test_parser_verify_entity(i32 noundef %1, ptr noundef @.str.2, ptr noundef @.str.3)
%3 = call i32 @test_parser_sourcefile(ptr noundef @.str, ptr noundef @.str.4)
%4 = call i32 @test_parser_verify_entity(i32 noundef %3, ptr noundef @.str.2, ptr noundef @.str.5)
%5 = call i32 @test_parser_sourcefile(ptr noundef @.str, ptr noundef @.str.6)
%6 = call i32 @test_parser_verify_entity(i32 noundef %5, ptr noundef @.str.2, ptr noundef @.str.7)
ret void
}
declare i32 @test_parser_verify_entity(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @test_parser_sourcefile(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/tmpxy7yz2ow.c'
source_filename = "/tmp/tmpxy7yz2ow.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [24 x i8] c"Uso: %s <errno_number>\0A\00", align 1
@errno = dso_local global i32 0, align 4
@EXIT_SUCCESS = 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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp slt i32 %6, 2
br i1 %7, label %8, label %14
8: ; preds = %2
%9 = load i32, ptr @stderr, align 4
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 0
%12 = load ptr, ptr %11, align 8
%13 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str, ptr noundef %12)
br label %23
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = call i32 @strtol(ptr noundef %17, i32 noundef 0, i32 noundef 10)
store i32 %18, ptr @errno, align 4
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 1
%21 = load ptr, ptr %20, align 8
%22 = call i32 @perror(ptr noundef %21)
br label %23
23: ; preds = %14, %8
%24 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %24
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @strtol(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxy7yz2ow.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [24 x i8] c"Uso: %s <errno_number>\0A\00", align 1
@errno = dso_local global i32 0, align 4
@EXIT_SUCCESS = 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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp slt i32 %6, 2
br i1 %7, label %8, label %14
8: ; preds = %2
%9 = load i32, ptr @stderr, align 4
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 0
%12 = load ptr, ptr %11, align 8
%13 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str, ptr noundef %12)
br label %23
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = call i32 @strtol(ptr noundef %17, i32 noundef 0, i32 noundef 10)
store i32 %18, ptr @errno, align 4
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 1
%21 = load ptr, ptr %20, align 8
%22 = call i32 @perror(ptr noundef %21)
br label %23
23: ; preds = %14, %8
%24 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %24
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @strtol(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1iozjeul.c'
source_filename = "/tmp/tmp1iozjeul.c"
target datalayout = "e-m:e-p270: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/tmp1iozjeul.c"
target datalayout = "e-m:e-p270: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/tmph7ytt8aj.c'
source_filename = "/tmp/tmph7ytt8aj.c"
target datalayout = "e-m:e-p270: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.barcode = private unnamed_addr constant [12 x i32] [i32 0, i32 7, i32 9, i32 4, i32 0, i32 0, i32 8, i32 0, i32 4, i32 5, i32 0, i32 1], align 16
@.str = private unnamed_addr constant [20 x i8] c"Barcode validated!\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"Barcode invalid!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [12 x i32], align 16
%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
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.barcode, i64 48, i1 false)
%7 = getelementptr inbounds [12 x i32], ptr %2, i64 0, i64 0
%8 = call i32 @sum_odd_numbers(ptr noundef %7, i32 noundef 12)
store i32 %8, ptr %3, align 4
%9 = getelementptr inbounds [12 x i32], ptr %2, i64 0, i64 0
%10 = call i32 @sum_even_numbers(ptr noundef %9, i32 noundef 12)
store i32 %10, ptr %4, align 4
%11 = load i32, ptr %3, align 4
%12 = mul nsw i32 %11, 3
%13 = load i32, ptr %4, align 4
%14 = add nsw i32 %12, %13
%15 = srem i32 %14, 10
store i32 %15, ptr %5, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %0
br label %22
19: ; preds = %0
%20 = load i32, ptr %5, align 4
%21 = sub nsw i32 10, %20
br label %22
22: ; preds = %19, %18
%23 = phi i32 [ 0, %18 ], [ %21, %19 ]
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %6, align 4
%25 = getelementptr inbounds [12 x i32], ptr %2, i64 0, i64 11
%26 = load i32, ptr %25, align 4
%27 = icmp eq i32 %24, %26
br i1 %27, label %28, label %30
28: ; preds = %22
%29 = call i32 @printf(ptr noundef @.str)
br label %32
30: ; preds = %22
%31 = call i32 @printf(ptr noundef @.str.1)
br label %32
32: ; preds = %30, %28
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 @sum_odd_numbers(ptr noundef, i32 noundef) #2
declare i32 @sum_even_numbers(ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmph7ytt8aj.c"
target datalayout = "e-m:e-p270: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.barcode = private unnamed_addr constant [12 x i32] [i32 0, i32 7, i32 9, i32 4, i32 0, i32 0, i32 8, i32 0, i32 4, i32 5, i32 0, i32 1], align 16
@.str = private unnamed_addr constant [20 x i8] c"Barcode validated!\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"Barcode invalid!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [12 x i32], align 16
%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
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.barcode, i64 48, i1 false)
%7 = getelementptr inbounds [12 x i32], ptr %2, i64 0, i64 0
%8 = call i32 @sum_odd_numbers(ptr noundef %7, i32 noundef 12)
store i32 %8, ptr %3, align 4
%9 = getelementptr inbounds [12 x i32], ptr %2, i64 0, i64 0
%10 = call i32 @sum_even_numbers(ptr noundef %9, i32 noundef 12)
store i32 %10, ptr %4, align 4
%11 = load i32, ptr %3, align 4
%12 = mul nsw i32 %11, 3
%13 = load i32, ptr %4, align 4
%14 = add nsw i32 %12, %13
%15 = srem i32 %14, 10
store i32 %15, ptr %5, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %0
br label %22
19: ; preds = %0
%20 = load i32, ptr %5, align 4
%21 = sub nsw i32 10, %20
br label %22
22: ; preds = %19, %18
%23 = phi i32 [ 0, %18 ], [ %21, %19 ]
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %6, align 4
%25 = getelementptr inbounds [12 x i32], ptr %2, i64 0, i64 11
%26 = load i32, ptr %25, align 4
%27 = icmp eq i32 %24, %26
br i1 %27, label %28, label %30
28: ; preds = %22
%29 = call i32 @printf(ptr noundef @.str)
br label %32
30: ; preds = %22
%31 = call i32 @printf(ptr noundef @.str.1)
br label %32
32: ; preds = %30, %28
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 @sum_odd_numbers(ptr noundef, i32 noundef) #2
declare i32 @sum_even_numbers(ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl1nwnjj9.c'
source_filename = "/tmp/tmpl1nwnjj9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @label_clusters(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = 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
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %6, align 4
%16 = mul nsw i32 %14, %15
store i32 %16, ptr %8, align 4
%17 = load i32, ptr %8, align 4
%18 = sdiv i32 %17, 2
%19 = add nsw i32 %18, 3
%20 = sext i32 %19 to i64
%21 = mul i64 %20, 4
%22 = trunc i64 %21 to i32
%23 = call i64 @malloc(i32 noundef %22)
%24 = inttoptr i64 %23 to ptr
store ptr %24, ptr %13, align 8
store i32 0, ptr %7, align 4
br label %25
25: ; preds = %37, %3
%26 = load i32, ptr %7, align 4
%27 = load i32, ptr %8, align 4
%28 = sdiv i32 %27, 2
%29 = add nsw i32 %28, 3
%30 = icmp slt i32 %26, %29
br i1 %30, label %31, label %40
31: ; preds = %25
%32 = load i32, ptr %7, align 4
%33 = load ptr, ptr %13, align 8
%34 = load i32, ptr %7, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i32, ptr %33, i64 %35
store i32 %32, ptr %36, align 4
br label %37
37: ; preds = %31
%38 = load i32, ptr %7, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %7, align 4
br label %25, !llvm.loop !6
40: ; preds = %25
store i32 2, ptr %9, align 4
%41 = load ptr, ptr %4, align 8
%42 = getelementptr inbounds i32, ptr %41, i64 0
%43 = load i32, ptr %42, align 4
%44 = icmp eq i32 %43, 1
br i1 %44, label %45, label %51
45: ; preds = %40
%46 = load i32, ptr %9, align 4
%47 = load ptr, ptr %4, align 8
%48 = getelementptr inbounds i32, ptr %47, i64 0
store i32 %46, ptr %48, align 4
%49 = load i32, ptr %9, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %9, align 4
br label %51
51: ; preds = %45, %40
store i32 1, ptr %7, align 4
br label %52
52: ; preds = %87, %51
%53 = load i32, ptr %7, align 4
%54 = load i32, ptr %6, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %56, label %90
56: ; preds = %52
%57 = load ptr, ptr %4, align 8
%58 = load i32, ptr %7, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i32, ptr %57, i64 %59
%61 = load i32, ptr %60, align 4
%62 = icmp eq i32 %61, 0
br i1 %62, label %63, label %64
63: ; preds = %56
br label %87
64: ; preds = %56
%65 = load ptr, ptr %4, align 8
%66 = load i32, ptr %7, align 4
%67 = sub nsw i32 %66, 1
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i32, ptr %65, i64 %68
%70 = load i32, ptr %69, align 4
store i32 %70, ptr %11, align 4
%71 = load i32, ptr %11, align 4
%72 = icmp eq i32 %71, 0
br i1 %72, label %73, label %81
73: ; preds = %64
%74 = load i32, ptr %9, align 4
%75 = load ptr, ptr %4, align 8
%76 = load i32, ptr %7, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i32, ptr %75, i64 %77
store i32 %74, ptr %78, align 4
%79 = load i32, ptr %9, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %9, align 4
br label %87
81: ; preds = %64
%82 = load i32, ptr %11, align 4
%83 = load ptr, ptr %4, align 8
%84 = load i32, ptr %7, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i32, ptr %83, i64 %85
store i32 %82, ptr %86, align 4
br label %87
87: ; preds = %81, %73, %63
%88 = load i32, ptr %7, align 4
%89 = add nsw i32 %88, 1
store i32 %89, ptr %7, align 4
br label %52, !llvm.loop !8
90: ; preds = %52
%91 = load i32, ptr %6, align 4
store i32 %91, ptr %7, align 4
br label %92
92: ; preds = %227, %90
%93 = load i32, ptr %7, align 4
%94 = load i32, ptr %8, align 4
%95 = icmp slt i32 %93, %94
br i1 %95, label %96, label %230
96: ; preds = %92
%97 = load ptr, ptr %4, align 8
%98 = load i32, ptr %7, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i32, ptr %97, i64 %99
%101 = load i32, ptr %100, align 4
%102 = icmp eq i32 %101, 0
br i1 %102, label %103, label %104
103: ; preds = %96
br label %227
104: ; preds = %96
%105 = load ptr, ptr %4, align 8
%106 = load i32, ptr %7, align 4
%107 = load i32, ptr %6, align 4
%108 = sub nsw i32 %106, %107
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i32, ptr %105, i64 %109
%111 = load i32, ptr %110, align 4
store i32 %111, ptr %10, align 4
%112 = load i32, ptr %7, align 4
%113 = load i32, ptr %6, align 4
%114 = srem i32 %112, %113
%115 = icmp sgt i32 %114, 0
br i1 %115, label %116, label %123
116: ; preds = %104
%117 = load ptr, ptr %4, align 8
%118 = load i32, ptr %7, align 4
%119 = sub nsw i32 %118, 1
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds i32, ptr %117, i64 %120
%122 = load i32, ptr %121, align 4
br label %124
123: ; preds = %104
br label %124
124: ; preds = %123, %116
%125 = phi i32 [ %122, %116 ], [ 0, %123 ]
store i32 %125, ptr %11, align 4
%126 = load i32, ptr %10, align 4
%127 = icmp eq i32 %126, 0
br i1 %127, label %128, label %139
128: ; preds = %124
%129 = load i32, ptr %11, align 4
%130 = icmp eq i32 %129, 0
br i1 %130, label %131, label %139
131: ; preds = %128
%132 = load i32, ptr %9, align 4
%133 = load ptr, ptr %4, align 8
%134 = load i32, ptr %7, align 4
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds i32, ptr %133, i64 %135
store i32 %132, ptr %136, align 4
%137 = load i32, ptr %9, align 4
%138 = add nsw i32 %137, 1
store i32 %138, ptr %9, align 4
br label %227
139: ; preds = %128, %124
%140 = load i32, ptr %10, align 4
%141 = load i32, ptr %11, align 4
%142 = mul nsw i32 %140, %141
%143 = icmp eq i32 %142, 0
br i1 %143, label %144, label %157
144: ; preds = %139
%145 = load i32, ptr %10, align 4
%146 = icmp sgt i32 %145, 0
br i1 %146, label %147, label %149
147: ; preds = %144
%148 = load i32, ptr %10, align 4
br label %151
149: ; preds = %144
%150 = load i32, ptr %11, align 4
br label %151
151: ; preds = %149, %147
%152 = phi i32 [ %148, %147 ], [ %150, %149 ]
%153 = load ptr, ptr %4, align 8
%154 = load i32, ptr %7, align 4
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds i32, ptr %153, i64 %155
store i32 %152, ptr %156, align 4
br label %227
157: ; preds = %139
br label %158
158: ; preds = %165, %157
%159 = load ptr, ptr %13, align 8
%160 = load i32, ptr %10, align 4
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds i32, ptr %159, i64 %161
%163 = load i32, ptr %162, align 4
%164 = icmp slt i32 %163, 0
br i1 %164, label %165, label %172
165: ; preds = %158
%166 = load ptr, ptr %13, align 8
%167 = load i32, ptr %10, align 4
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds i32, ptr %166, i64 %168
%170 = load i32, ptr %169, align 4
%171 = sub nsw i32 0, %170
store i32 %171, ptr %10, align 4
br label %158, !llvm.loop !9
172: ; preds = %158
br label %173
173: ; preds = %180, %172
%174 = load ptr, ptr %13, align 8
%175 = load i32, ptr %11, align 4
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds i32, ptr %174, i64 %176
%178 = load i32, ptr %177, align 4
%179 = icmp slt i32 %178, 0
br i1 %179, label %180, label %187
180: ; preds = %173
%181 = load ptr, ptr %13, align 8
%182 = load i32, ptr %11, align 4
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds i32, ptr %181, i64 %183
%185 = load i32, ptr %184, align 4
%186 = sub nsw i32 0, %185
store i32 %186, ptr %11, align 4
br label %173, !llvm.loop !10
187: ; preds = %173
%188 = load i32, ptr %10, align 4
%189 = load i32, ptr %11, align 4
%190 = icmp slt i32 %188, %189
br i1 %190, label %191, label %203
191: ; preds = %187
%192 = load i32, ptr %10, align 4
%193 = load ptr, ptr %4, align 8
%194 = load i32, ptr %7, align 4
%195 = sext i32 %194 to i64
%196 = getelementptr inbounds i32, ptr %193, i64 %195
store i32 %192, ptr %196, align 4
%197 = load i32, ptr %10, align 4
%198 = sub nsw i32 0, %197
%199 = load ptr, ptr %13, align 8
%200 = load i32, ptr %11, align 4
%201 = sext i32 %200 to i64
%202 = getelementptr inbounds i32, ptr %199, i64 %201
store i32 %198, ptr %202, align 4
br label %226
203: ; preds = %187
%204 = load i32, ptr %11, align 4
%205 = load i32, ptr %10, align 4
%206 = icmp slt i32 %204, %205
br i1 %206, label %207, label %219
207: ; preds = %203
%208 = load i32, ptr %11, align 4
%209 = load ptr, ptr %4, align 8
%210 = load i32, ptr %7, align 4
%211 = sext i32 %210 to i64
%212 = getelementptr inbounds i32, ptr %209, i64 %211
store i32 %208, ptr %212, align 4
%213 = load i32, ptr %11, align 4
%214 = sub nsw i32 0, %213
%215 = load ptr, ptr %13, align 8
%216 = load i32, ptr %10, align 4
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds i32, ptr %215, i64 %217
store i32 %214, ptr %218, align 4
br label %225
219: ; preds = %203
%220 = load i32, ptr %11, align 4
%221 = load ptr, ptr %4, align 8
%222 = load i32, ptr %7, align 4
%223 = sext i32 %222 to i64
%224 = getelementptr inbounds i32, ptr %221, i64 %223
store i32 %220, ptr %224, align 4
br label %225
225: ; preds = %219, %207
br label %226
226: ; preds = %225, %191
br label %227
227: ; preds = %226, %151, %131, %103
%228 = load i32, ptr %7, align 4
%229 = add nsw i32 %228, 1
store i32 %229, ptr %7, align 4
br label %92, !llvm.loop !11
230: ; preds = %92
store i32 0, ptr %7, align 4
br label %231
231: ; preds = %266, %230
%232 = load i32, ptr %7, align 4
%233 = load i32, ptr %8, align 4
%234 = icmp slt i32 %232, %233
br i1 %234, label %235, label %269
235: ; preds = %231
%236 = load ptr, ptr %4, align 8
%237 = load i32, ptr %7, align 4
%238 = sext i32 %237 to i64
%239 = getelementptr inbounds i32, ptr %236, i64 %238
%240 = load i32, ptr %239, align 4
store i32 %240, ptr %12, align 4
br label %241
241: ; preds = %248, %235
%242 = load ptr, ptr %13, align 8
%243 = load i32, ptr %12, align 4
%244 = sext i32 %243 to i64
%245 = getelementptr inbounds i32, ptr %242, i64 %244
%246 = load i32, ptr %245, align 4
%247 = icmp slt i32 %246, 0
br i1 %247, label %248, label %255
248: ; preds = %241
%249 = load ptr, ptr %13, align 8
%250 = load i32, ptr %12, align 4
%251 = sext i32 %250 to i64
%252 = getelementptr inbounds i32, ptr %249, i64 %251
%253 = load i32, ptr %252, align 4
%254 = sub nsw i32 0, %253
store i32 %254, ptr %12, align 4
br label %241, !llvm.loop !12
255: ; preds = %241
%256 = load i32, ptr %12, align 4
%257 = load ptr, ptr %13, align 8
%258 = load i32, ptr %12, align 4
%259 = sext i32 %258 to i64
%260 = getelementptr inbounds i32, ptr %257, i64 %259
store i32 %256, ptr %260, align 4
%261 = load i32, ptr %12, align 4
%262 = load ptr, ptr %4, align 8
%263 = load i32, ptr %7, align 4
%264 = sext i32 %263 to i64
%265 = getelementptr inbounds i32, ptr %262, i64 %264
store i32 %261, ptr %265, align 4
br label %266
266: ; preds = %255
%267 = load i32, ptr %7, align 4
%268 = add nsw i32 %267, 1
store i32 %268, ptr %7, align 4
br label %231, !llvm.loop !13
269: ; preds = %231
%270 = load ptr, ptr %13, align 8
%271 = call i32 @free(ptr noundef %270)
ret void
}
declare i64 @malloc(i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl1nwnjj9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @label_clusters(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = 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
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %6, align 4
%16 = mul nsw i32 %14, %15
store i32 %16, ptr %8, align 4
%17 = load i32, ptr %8, align 4
%18 = sdiv i32 %17, 2
%19 = add nsw i32 %18, 3
%20 = sext i32 %19 to i64
%21 = mul i64 %20, 4
%22 = trunc i64 %21 to i32
%23 = call i64 @malloc(i32 noundef %22)
%24 = inttoptr i64 %23 to ptr
store ptr %24, ptr %13, align 8
store i32 0, ptr %7, align 4
%25 = load i32, ptr %7, align 4
%26 = load i32, ptr %8, align 4
%27 = sdiv i32 %26, 2
%28 = add nsw i32 %27, 3
%29 = icmp slt i32 %25, %28
br i1 %29, label %.lr.ph, label %44
.lr.ph: ; preds = %3
br label %30
30: ; preds = %.lr.ph, %36
%31 = load i32, ptr %7, align 4
%32 = load ptr, ptr %13, align 8
%33 = load i32, ptr %7, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %32, i64 %34
store i32 %31, ptr %35, align 4
br label %36
36: ; preds = %30
%37 = load i32, ptr %7, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %7, align 4
%39 = load i32, ptr %7, align 4
%40 = load i32, ptr %8, align 4
%41 = sdiv i32 %40, 2
%42 = add nsw i32 %41, 3
%43 = icmp slt i32 %39, %42
br i1 %43, label %30, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %36
br label %44
44: ; preds = %._crit_edge, %3
store i32 2, ptr %9, align 4
%45 = load ptr, ptr %4, align 8
%46 = getelementptr inbounds i32, ptr %45, i64 0
%47 = load i32, ptr %46, align 4
%48 = icmp eq i32 %47, 1
br i1 %48, label %49, label %55
49: ; preds = %44
%50 = load i32, ptr %9, align 4
%51 = load ptr, ptr %4, align 8
%52 = getelementptr inbounds i32, ptr %51, i64 0
store i32 %50, ptr %52, align 4
%53 = load i32, ptr %9, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %9, align 4
br label %55
55: ; preds = %49, %44
store i32 1, ptr %7, align 4
%56 = load i32, ptr %7, align 4
%57 = load i32, ptr %6, align 4
%58 = icmp slt i32 %56, %57
br i1 %58, label %.lr.ph2, label %96
.lr.ph2: ; preds = %55
br label %59
59: ; preds = %.lr.ph2, %90
%60 = load ptr, ptr %4, align 8
%61 = load i32, ptr %7, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i32, ptr %60, i64 %62
%64 = load i32, ptr %63, align 4
%65 = icmp eq i32 %64, 0
br i1 %65, label %66, label %67
66: ; preds = %59
br label %90
67: ; preds = %59
%68 = load ptr, ptr %4, align 8
%69 = load i32, ptr %7, align 4
%70 = sub nsw i32 %69, 1
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i32, ptr %68, i64 %71
%73 = load i32, ptr %72, align 4
store i32 %73, ptr %11, align 4
%74 = load i32, ptr %11, align 4
%75 = icmp eq i32 %74, 0
br i1 %75, label %76, label %84
76: ; preds = %67
%77 = load i32, ptr %9, align 4
%78 = load ptr, ptr %4, align 8
%79 = load i32, ptr %7, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i32, ptr %78, i64 %80
store i32 %77, ptr %81, align 4
%82 = load i32, ptr %9, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %9, align 4
br label %90
84: ; preds = %67
%85 = load i32, ptr %11, align 4
%86 = load ptr, ptr %4, align 8
%87 = load i32, ptr %7, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i32, ptr %86, i64 %88
store i32 %85, ptr %89, align 4
br label %90
90: ; preds = %84, %76, %66
%91 = load i32, ptr %7, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %7, align 4
%93 = load i32, ptr %7, align 4
%94 = load i32, ptr %6, align 4
%95 = icmp slt i32 %93, %94
br i1 %95, label %59, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %90
br label %96
96: ; preds = %._crit_edge3, %55
%97 = load i32, ptr %6, align 4
store i32 %97, ptr %7, align 4
%98 = load i32, ptr %7, align 4
%99 = load i32, ptr %8, align 4
%100 = icmp slt i32 %98, %99
br i1 %100, label %.lr.ph11, label %248
.lr.ph11: ; preds = %96
br label %101
101: ; preds = %.lr.ph11, %242
%102 = load ptr, ptr %4, align 8
%103 = load i32, ptr %7, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds i32, ptr %102, i64 %104
%106 = load i32, ptr %105, align 4
%107 = icmp eq i32 %106, 0
br i1 %107, label %108, label %109
108: ; preds = %101
br label %242
109: ; preds = %101
%110 = load ptr, ptr %4, align 8
%111 = load i32, ptr %7, align 4
%112 = load i32, ptr %6, align 4
%113 = sub nsw i32 %111, %112
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds i32, ptr %110, i64 %114
%116 = load i32, ptr %115, align 4
store i32 %116, ptr %10, align 4
%117 = load i32, ptr %7, align 4
%118 = load i32, ptr %6, align 4
%119 = srem i32 %117, %118
%120 = icmp sgt i32 %119, 0
br i1 %120, label %121, label %128
121: ; preds = %109
%122 = load ptr, ptr %4, align 8
%123 = load i32, ptr %7, align 4
%124 = sub nsw i32 %123, 1
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds i32, ptr %122, i64 %125
%127 = load i32, ptr %126, align 4
br label %129
128: ; preds = %109
br label %129
129: ; preds = %128, %121
%130 = phi i32 [ %127, %121 ], [ 0, %128 ]
store i32 %130, ptr %11, align 4
%131 = load i32, ptr %10, align 4
%132 = icmp eq i32 %131, 0
br i1 %132, label %133, label %144
133: ; preds = %129
%134 = load i32, ptr %11, align 4
%135 = icmp eq i32 %134, 0
br i1 %135, label %136, label %144
136: ; preds = %133
%137 = load i32, ptr %9, align 4
%138 = load ptr, ptr %4, align 8
%139 = load i32, ptr %7, align 4
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds i32, ptr %138, i64 %140
store i32 %137, ptr %141, align 4
%142 = load i32, ptr %9, align 4
%143 = add nsw i32 %142, 1
store i32 %143, ptr %9, align 4
br label %242
144: ; preds = %133, %129
%145 = load i32, ptr %10, align 4
%146 = load i32, ptr %11, align 4
%147 = mul nsw i32 %145, %146
%148 = icmp eq i32 %147, 0
br i1 %148, label %149, label %162
149: ; preds = %144
%150 = load i32, ptr %10, align 4
%151 = icmp sgt i32 %150, 0
br i1 %151, label %152, label %154
152: ; preds = %149
%153 = load i32, ptr %10, align 4
br label %156
154: ; preds = %149
%155 = load i32, ptr %11, align 4
br label %156
156: ; preds = %154, %152
%157 = phi i32 [ %153, %152 ], [ %155, %154 ]
%158 = load ptr, ptr %4, align 8
%159 = load i32, ptr %7, align 4
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds i32, ptr %158, i64 %160
store i32 %157, ptr %161, align 4
br label %242
162: ; preds = %144
%163 = load ptr, ptr %13, align 8
%164 = load i32, ptr %10, align 4
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds i32, ptr %163, i64 %165
%167 = load i32, ptr %166, align 4
%168 = icmp slt i32 %167, 0
br i1 %168, label %.lr.ph5, label %182
.lr.ph5: ; preds = %162
br label %169
169: ; preds = %.lr.ph5, %169
%170 = load ptr, ptr %13, align 8
%171 = load i32, ptr %10, align 4
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds i32, ptr %170, i64 %172
%174 = load i32, ptr %173, align 4
%175 = sub nsw i32 0, %174
store i32 %175, ptr %10, align 4
%176 = load ptr, ptr %13, align 8
%177 = load i32, ptr %10, align 4
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds i32, ptr %176, i64 %178
%180 = load i32, ptr %179, align 4
%181 = icmp slt i32 %180, 0
br i1 %181, label %169, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %169
br label %182
182: ; preds = %._crit_edge6, %162
%183 = load ptr, ptr %13, align 8
%184 = load i32, ptr %11, align 4
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds i32, ptr %183, i64 %185
%187 = load i32, ptr %186, align 4
%188 = icmp slt i32 %187, 0
br i1 %188, label %.lr.ph8, label %202
.lr.ph8: ; preds = %182
br label %189
189: ; preds = %.lr.ph8, %189
%190 = load ptr, ptr %13, align 8
%191 = load i32, ptr %11, align 4
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds i32, ptr %190, i64 %192
%194 = load i32, ptr %193, align 4
%195 = sub nsw i32 0, %194
store i32 %195, ptr %11, align 4
%196 = load ptr, ptr %13, align 8
%197 = load i32, ptr %11, align 4
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds i32, ptr %196, i64 %198
%200 = load i32, ptr %199, align 4
%201 = icmp slt i32 %200, 0
br i1 %201, label %189, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %189
br label %202
202: ; preds = %._crit_edge9, %182
%203 = load i32, ptr %10, align 4
%204 = load i32, ptr %11, align 4
%205 = icmp slt i32 %203, %204
br i1 %205, label %206, label %218
206: ; preds = %202
%207 = load i32, ptr %10, align 4
%208 = load ptr, ptr %4, align 8
%209 = load i32, ptr %7, align 4
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds i32, ptr %208, i64 %210
store i32 %207, ptr %211, align 4
%212 = load i32, ptr %10, align 4
%213 = sub nsw i32 0, %212
%214 = load ptr, ptr %13, align 8
%215 = load i32, ptr %11, align 4
%216 = sext i32 %215 to i64
%217 = getelementptr inbounds i32, ptr %214, i64 %216
store i32 %213, ptr %217, align 4
br label %241
218: ; preds = %202
%219 = load i32, ptr %11, align 4
%220 = load i32, ptr %10, align 4
%221 = icmp slt i32 %219, %220
br i1 %221, label %222, label %234
222: ; preds = %218
%223 = load i32, ptr %11, align 4
%224 = load ptr, ptr %4, align 8
%225 = load i32, ptr %7, align 4
%226 = sext i32 %225 to i64
%227 = getelementptr inbounds i32, ptr %224, i64 %226
store i32 %223, ptr %227, align 4
%228 = load i32, ptr %11, align 4
%229 = sub nsw i32 0, %228
%230 = load ptr, ptr %13, align 8
%231 = load i32, ptr %10, align 4
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds i32, ptr %230, i64 %232
store i32 %229, ptr %233, align 4
br label %240
234: ; preds = %218
%235 = load i32, ptr %11, align 4
%236 = load ptr, ptr %4, align 8
%237 = load i32, ptr %7, align 4
%238 = sext i32 %237 to i64
%239 = getelementptr inbounds i32, ptr %236, i64 %238
store i32 %235, ptr %239, align 4
br label %240
240: ; preds = %234, %222
br label %241
241: ; preds = %240, %206
br label %242
242: ; preds = %241, %156, %136, %108
%243 = load i32, ptr %7, align 4
%244 = add nsw i32 %243, 1
store i32 %244, ptr %7, align 4
%245 = load i32, ptr %7, align 4
%246 = load i32, ptr %8, align 4
%247 = icmp slt i32 %245, %246
br i1 %247, label %101, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %242
br label %248
248: ; preds = %._crit_edge12, %96
store i32 0, ptr %7, align 4
%249 = load i32, ptr %7, align 4
%250 = load i32, ptr %8, align 4
%251 = icmp slt i32 %249, %250
br i1 %251, label %.lr.ph17, label %294
.lr.ph17: ; preds = %248
br label %252
252: ; preds = %.lr.ph17, %288
%253 = load ptr, ptr %4, align 8
%254 = load i32, ptr %7, align 4
%255 = sext i32 %254 to i64
%256 = getelementptr inbounds i32, ptr %253, i64 %255
%257 = load i32, ptr %256, align 4
store i32 %257, ptr %12, align 4
%258 = load ptr, ptr %13, align 8
%259 = load i32, ptr %12, align 4
%260 = sext i32 %259 to i64
%261 = getelementptr inbounds i32, ptr %258, i64 %260
%262 = load i32, ptr %261, align 4
%263 = icmp slt i32 %262, 0
br i1 %263, label %.lr.ph14, label %277
.lr.ph14: ; preds = %252
br label %264
264: ; preds = %.lr.ph14, %264
%265 = load ptr, ptr %13, align 8
%266 = load i32, ptr %12, align 4
%267 = sext i32 %266 to i64
%268 = getelementptr inbounds i32, ptr %265, i64 %267
%269 = load i32, ptr %268, align 4
%270 = sub nsw i32 0, %269
store i32 %270, ptr %12, align 4
%271 = load ptr, ptr %13, align 8
%272 = load i32, ptr %12, align 4
%273 = sext i32 %272 to i64
%274 = getelementptr inbounds i32, ptr %271, i64 %273
%275 = load i32, ptr %274, align 4
%276 = icmp slt i32 %275, 0
br i1 %276, label %264, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %264
br label %277
277: ; preds = %._crit_edge15, %252
%278 = load i32, ptr %12, align 4
%279 = load ptr, ptr %13, align 8
%280 = load i32, ptr %12, align 4
%281 = sext i32 %280 to i64
%282 = getelementptr inbounds i32, ptr %279, i64 %281
store i32 %278, ptr %282, align 4
%283 = load i32, ptr %12, align 4
%284 = load ptr, ptr %4, align 8
%285 = load i32, ptr %7, align 4
%286 = sext i32 %285 to i64
%287 = getelementptr inbounds i32, ptr %284, i64 %286
store i32 %283, ptr %287, align 4
br label %288
288: ; preds = %277
%289 = load i32, ptr %7, align 4
%290 = add nsw i32 %289, 1
store i32 %290, ptr %7, align 4
%291 = load i32, ptr %7, align 4
%292 = load i32, ptr %8, align 4
%293 = icmp slt i32 %291, %292
br i1 %293, label %252, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %288
br label %294
294: ; preds = %._crit_edge18, %248
%295 = load ptr, ptr %13, align 8
%296 = call i32 @free(ptr noundef %295)
ret void
}
declare i64 @malloc(i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
|
; ModuleID = '/tmp/tmp8ens11ol.c'
source_filename = "/tmp/tmp8ens11ol.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 i64, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i64 @strlen(ptr noundef %7)
store i64 %8, ptr %5, align 8
%9 = load ptr, ptr %3, align 8
store ptr %9, ptr %6, align 8
br label %10
10: ; preds = %23, %2
%11 = load ptr, ptr %6, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %28
13: ; preds = %10
%14 = load ptr, ptr %6, align 8
%15 = load ptr, ptr %4, align 8
%16 = load i64, ptr %5, align 8
%17 = call i32 @strncmp(ptr noundef %14, ptr noundef %15, i64 noundef %16)
%18 = icmp ne i32 %17, 0
br i1 %18, label %20, label %19
19: ; preds = %13
br label %28
20: ; preds = %13
%21 = load ptr, ptr %6, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %6, align 8
br label %23
23: ; preds = %20
%24 = load ptr, ptr %6, align 8
%25 = load ptr, ptr %4, align 8
%26 = load i8, ptr %25, align 1
%27 = call ptr @strchr(ptr noundef %24, i8 noundef signext %26)
store ptr %27, ptr %6, align 8
br label %10, !llvm.loop !6
28: ; preds = %19, %10
%29 = load ptr, ptr %6, align 8
ret ptr %29
}
declare i64 @strlen(ptr noundef) #1
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8ens11ol.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 i64, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i64 @strlen(ptr noundef %7)
store i64 %8, ptr %5, align 8
%9 = load ptr, ptr %3, align 8
store ptr %9, ptr %6, align 8
%10 = load ptr, ptr %6, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %22
%13 = load ptr, ptr %6, align 8
%14 = load ptr, ptr %4, align 8
%15 = load i64, ptr %5, align 8
%16 = call i32 @strncmp(ptr noundef %13, ptr noundef %14, i64 noundef %15)
%17 = icmp ne i32 %16, 0
br i1 %17, label %19, label %18
18: ; preds = %12
br label %29
19: ; preds = %12
%20 = load ptr, ptr %6, align 8
%21 = getelementptr inbounds i8, ptr %20, i32 1
store ptr %21, ptr %6, align 8
br label %22
22: ; preds = %19
%23 = load ptr, ptr %6, align 8
%24 = load ptr, ptr %4, align 8
%25 = load i8, ptr %24, align 1
%26 = call ptr @strchr(ptr noundef %23, i8 noundef signext %25)
store ptr %26, ptr %6, align 8
%27 = load ptr, ptr %6, align 8
%28 = icmp ne ptr %27, null
br i1 %28, label %12, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %22
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %2
br label %29
29: ; preds = %.loopexit, %18
%30 = load ptr, ptr %6, align 8
ret ptr %30
}
declare i64 @strlen(ptr noundef) #1
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_aphzpi_.c'
source_filename = "/tmp/tmp_aphzpi_.c"
target datalayout = "e-m:e-p270: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.sigaction = type { i64, i32, i32 }
@.str = private unnamed_addr constant [12 x i8] c"sigprocmask\00", align 1
@stdout = dso_local global ptr null, align 8
@.str.1 = private unnamed_addr constant [11 x i8] c"output.txt\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"fopen\00", align 1
@NSIG = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [12 x i8] c"signal %d: \00", align 1
@errno = dso_local global i64 0, align 8
@EINVAL = dso_local global i64 0, align 8
@.str.5 = private unnamed_addr constant [8 x i8] c"invalid\00", align 1
@.str.6 = private unnamed_addr constant [10 x i8] c"sigaction\00", align 1
@.str.7 = private unnamed_addr constant [23 x i8] c"sigaction={sa_handler=\00", align 1
@SIG_DFL = dso_local global i64 0, align 8
@.str.8 = private unnamed_addr constant [8 x i8] c"SIG_DFL\00", align 1
@SIG_IGN = dso_local global i64 0, align 8
@.str.9 = private unnamed_addr constant [8 x i8] c"SIG_IGN\00", align 1
@.str.10 = private unnamed_addr constant [11 x i8] c", sa_mask=\00", align 1
@.str.11 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.12 = private unnamed_addr constant [14 x i8] c", sa_flags=%d\00", align 1
@.str.13 = private unnamed_addr constant [13 x i8] c"}, masked=%d\00", align 1
@.str.14 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca %struct.sigaction, align 8
%11 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = call i32 @sigprocmask(i32 noundef 0, ptr noundef null, ptr noundef %8)
store i32 %12, ptr %9, align 4
%13 = load i32, ptr %9, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = call i32 @perror_and_exit(ptr noundef @.str)
br label %17
17: ; preds = %15, %2
%18 = load i32, ptr %4, align 4
%19 = icmp sgt i32 %18, 1
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = load ptr, ptr @stdout, align 8
store ptr %21, ptr %7, align 8
br label %29
22: ; preds = %17
%23 = call ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.2)
store ptr %23, ptr %7, align 8
%24 = load ptr, ptr %7, align 8
%25 = icmp eq ptr %24, null
br i1 %25, label %26, label %28
26: ; preds = %22
%27 = call i32 @perror_and_exit(ptr noundef @.str.3)
br label %28
28: ; preds = %26, %22
br label %29
29: ; preds = %28, %20
store i32 1, ptr %6, align 4
br label %30
30: ; preds = %107, %29
%31 = load i32, ptr %6, align 4
%32 = load i32, ptr @NSIG, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %34, label %110
34: ; preds = %30
%35 = load ptr, ptr %7, align 8
%36 = load i32, ptr %6, align 4
%37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef @.str.4, i32 noundef %36)
%38 = load i32, ptr %6, align 4
%39 = call i32 @sigaction(i32 noundef %38, ptr noundef null, ptr noundef %10)
store i32 %39, ptr %9, align 4
%40 = load i32, ptr %9, align 4
%41 = icmp eq i32 %40, -1
br i1 %41, label %42, label %49
42: ; preds = %34
%43 = load i64, ptr @errno, align 8
%44 = load i64, ptr @EINVAL, align 8
%45 = icmp eq i64 %43, %44
br i1 %45, label %46, label %49
46: ; preds = %42
%47 = load ptr, ptr %7, align 8
%48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef @.str.5)
br label %104
49: ; preds = %42, %34
%50 = load i32, ptr %9, align 4
%51 = icmp eq i32 %50, -1
br i1 %51, label %52, label %54
52: ; preds = %49
%53 = call i32 @perror_and_exit(ptr noundef @.str.6)
br label %103
54: ; preds = %49
%55 = load ptr, ptr %7, align 8
%56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef @.str.7)
%57 = getelementptr inbounds %struct.sigaction, ptr %10, i32 0, i32 0
%58 = load i64, ptr %57, align 8
%59 = load i64, ptr @SIG_DFL, align 8
%60 = icmp eq i64 %58, %59
br i1 %60, label %61, label %64
61: ; preds = %54
%62 = load ptr, ptr %7, align 8
%63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef @.str.8)
br label %75
64: ; preds = %54
%65 = getelementptr inbounds %struct.sigaction, ptr %10, i32 0, i32 0
%66 = load i64, ptr %65, align 8
%67 = load i64, ptr @SIG_IGN, align 8
%68 = icmp eq i64 %66, %67
br i1 %68, label %69, label %72
69: ; preds = %64
%70 = load ptr, ptr %7, align 8
%71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef @.str.9)
br label %74
72: ; preds = %64
%73 = call i32 (...) @abort() #3
unreachable
74: ; preds = %69
br label %75
75: ; preds = %74, %61
%76 = load ptr, ptr %7, align 8
%77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef @.str.10)
store i32 1, ptr %11, align 4
br label %78
78: ; preds = %91, %75
%79 = load i32, ptr %11, align 4
%80 = load i32, ptr @NSIG, align 4
%81 = icmp slt i32 %79, %80
br i1 %81, label %82, label %94
82: ; preds = %78
%83 = load ptr, ptr %7, align 8
%84 = getelementptr inbounds %struct.sigaction, ptr %10, i32 0, i32 2
%85 = load i32, ptr %11, align 4
%86 = call i32 @sigismember(ptr noundef %84, i32 noundef %85)
%87 = icmp ne i32 %86, 0
%88 = zext i1 %87 to i64
%89 = select i1 %87, i32 49, i32 48
%90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef @.str.11, i32 noundef %89)
br label %91
91: ; preds = %82
%92 = load i32, ptr %11, align 4
%93 = add nsw i32 %92, 1
store i32 %93, ptr %11, align 4
br label %78, !llvm.loop !6
94: ; preds = %78
%95 = load ptr, ptr %7, align 8
%96 = getelementptr inbounds %struct.sigaction, ptr %10, i32 0, i32 1
%97 = load i32, ptr %96, align 8
%98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef @.str.12, i32 noundef %97)
%99 = load ptr, ptr %7, align 8
%100 = load i32, ptr %6, align 4
%101 = call i32 @sigismember(ptr noundef %8, i32 noundef %100)
%102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %99, ptr noundef @.str.13, i32 noundef %101)
br label %103
103: ; preds = %94, %52
br label %104
104: ; preds = %103, %46
%105 = load ptr, ptr %7, align 8
%106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef @.str.14)
br label %107
107: ; preds = %104
%108 = load i32, ptr %6, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr %6, align 4
br label %30, !llvm.loop !8
110: ; preds = %30
%111 = load ptr, ptr %7, align 8
%112 = load ptr, ptr @stdout, align 8
%113 = icmp ne ptr %111, %112
br i1 %113, label %114, label %117
114: ; preds = %110
%115 = load ptr, ptr %7, align 8
%116 = call i32 @fclose(ptr noundef %115)
br label %117
117: ; preds = %114, %110
ret i32 0
}
declare i32 @sigprocmask(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @perror_and_exit(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @sigaction(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i32 @sigismember(ptr noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_aphzpi_.c"
target datalayout = "e-m:e-p270: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.sigaction = type { i64, i32, i32 }
@.str = private unnamed_addr constant [12 x i8] c"sigprocmask\00", align 1
@stdout = dso_local global ptr null, align 8
@.str.1 = private unnamed_addr constant [11 x i8] c"output.txt\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"fopen\00", align 1
@NSIG = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [12 x i8] c"signal %d: \00", align 1
@errno = dso_local global i64 0, align 8
@EINVAL = dso_local global i64 0, align 8
@.str.5 = private unnamed_addr constant [8 x i8] c"invalid\00", align 1
@.str.6 = private unnamed_addr constant [10 x i8] c"sigaction\00", align 1
@.str.7 = private unnamed_addr constant [23 x i8] c"sigaction={sa_handler=\00", align 1
@SIG_DFL = dso_local global i64 0, align 8
@.str.8 = private unnamed_addr constant [8 x i8] c"SIG_DFL\00", align 1
@SIG_IGN = dso_local global i64 0, align 8
@.str.9 = private unnamed_addr constant [8 x i8] c"SIG_IGN\00", align 1
@.str.10 = private unnamed_addr constant [11 x i8] c", sa_mask=\00", align 1
@.str.11 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.12 = private unnamed_addr constant [14 x i8] c", sa_flags=%d\00", align 1
@.str.13 = private unnamed_addr constant [13 x i8] c"}, masked=%d\00", align 1
@.str.14 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca %struct.sigaction, align 8
%11 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = call i32 @sigprocmask(i32 noundef 0, ptr noundef null, ptr noundef %8)
store i32 %12, ptr %9, align 4
%13 = load i32, ptr %9, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = call i32 @perror_and_exit(ptr noundef @.str)
br label %17
17: ; preds = %15, %2
%18 = load i32, ptr %4, align 4
%19 = icmp sgt i32 %18, 1
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = load ptr, ptr @stdout, align 8
store ptr %21, ptr %7, align 8
br label %29
22: ; preds = %17
%23 = call ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.2)
store ptr %23, ptr %7, align 8
%24 = load ptr, ptr %7, align 8
%25 = icmp eq ptr %24, null
br i1 %25, label %26, label %28
26: ; preds = %22
%27 = call i32 @perror_and_exit(ptr noundef @.str.3)
br label %28
28: ; preds = %26, %22
br label %29
29: ; preds = %28, %20
store i32 1, ptr %6, align 4
%30 = load i32, ptr %6, align 4
%31 = load i32, ptr @NSIG, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %.lr.ph2, label %114
.lr.ph2: ; preds = %29
br label %33
33: ; preds = %.lr.ph2, %108
%34 = load ptr, ptr %7, align 8
%35 = load i32, ptr %6, align 4
%36 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef @.str.4, i32 noundef %35)
%37 = load i32, ptr %6, align 4
%38 = call i32 @sigaction(i32 noundef %37, ptr noundef null, ptr noundef %10)
store i32 %38, ptr %9, align 4
%39 = load i32, ptr %9, align 4
%40 = icmp eq i32 %39, -1
br i1 %40, label %41, label %48
41: ; preds = %33
%42 = load i64, ptr @errno, align 8
%43 = load i64, ptr @EINVAL, align 8
%44 = icmp eq i64 %42, %43
br i1 %44, label %45, label %48
45: ; preds = %41
%46 = load ptr, ptr %7, align 8
%47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef @.str.5)
br label %105
48: ; preds = %41, %33
%49 = load i32, ptr %9, align 4
%50 = icmp eq i32 %49, -1
br i1 %50, label %51, label %53
51: ; preds = %48
%52 = call i32 @perror_and_exit(ptr noundef @.str.6)
br label %104
53: ; preds = %48
%54 = load ptr, ptr %7, align 8
%55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef @.str.7)
%56 = getelementptr inbounds %struct.sigaction, ptr %10, i32 0, i32 0
%57 = load i64, ptr %56, align 8
%58 = load i64, ptr @SIG_DFL, align 8
%59 = icmp eq i64 %57, %58
br i1 %59, label %60, label %63
60: ; preds = %53
%61 = load ptr, ptr %7, align 8
%62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef @.str.8)
br label %74
63: ; preds = %53
%64 = getelementptr inbounds %struct.sigaction, ptr %10, i32 0, i32 0
%65 = load i64, ptr %64, align 8
%66 = load i64, ptr @SIG_IGN, align 8
%67 = icmp eq i64 %65, %66
br i1 %67, label %68, label %71
68: ; preds = %63
%69 = load ptr, ptr %7, align 8
%70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef @.str.9)
br label %73
71: ; preds = %63
%72 = call i32 (...) @abort() #3
unreachable
73: ; preds = %68
br label %74
74: ; preds = %73, %60
%75 = load ptr, ptr %7, align 8
%76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef @.str.10)
store i32 1, ptr %11, align 4
%77 = load i32, ptr %11, align 4
%78 = load i32, ptr @NSIG, align 4
%79 = icmp slt i32 %77, %78
br i1 %79, label %.lr.ph, label %95
.lr.ph: ; preds = %74
br label %80
80: ; preds = %.lr.ph, %89
%81 = load ptr, ptr %7, align 8
%82 = getelementptr inbounds %struct.sigaction, ptr %10, i32 0, i32 2
%83 = load i32, ptr %11, align 4
%84 = call i32 @sigismember(ptr noundef %82, i32 noundef %83)
%85 = icmp ne i32 %84, 0
%86 = zext i1 %85 to i64
%87 = select i1 %85, i32 49, i32 48
%88 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %81, ptr noundef @.str.11, i32 noundef %87)
br label %89
89: ; preds = %80
%90 = load i32, ptr %11, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %11, align 4
%92 = load i32, ptr %11, align 4
%93 = load i32, ptr @NSIG, align 4
%94 = icmp slt i32 %92, %93
br i1 %94, label %80, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %89
br label %95
95: ; preds = %._crit_edge, %74
%96 = load ptr, ptr %7, align 8
%97 = getelementptr inbounds %struct.sigaction, ptr %10, i32 0, i32 1
%98 = load i32, ptr %97, align 8
%99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %96, ptr noundef @.str.12, i32 noundef %98)
%100 = load ptr, ptr %7, align 8
%101 = load i32, ptr %6, align 4
%102 = call i32 @sigismember(ptr noundef %8, i32 noundef %101)
%103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef @.str.13, i32 noundef %102)
br label %104
104: ; preds = %95, %51
br label %105
105: ; preds = %104, %45
%106 = load ptr, ptr %7, align 8
%107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %106, ptr noundef @.str.14)
br label %108
108: ; preds = %105
%109 = load i32, ptr %6, align 4
%110 = add nsw i32 %109, 1
store i32 %110, ptr %6, align 4
%111 = load i32, ptr %6, align 4
%112 = load i32, ptr @NSIG, align 4
%113 = icmp slt i32 %111, %112
br i1 %113, label %33, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %108
br label %114
114: ; preds = %._crit_edge3, %29
%115 = load ptr, ptr %7, align 8
%116 = load ptr, ptr @stdout, align 8
%117 = icmp ne ptr %115, %116
br i1 %117, label %118, label %121
118: ; preds = %114
%119 = load ptr, ptr %7, align 8
%120 = call i32 @fclose(ptr noundef %119)
br label %121
121: ; preds = %118, %114
ret i32 0
}
declare i32 @sigprocmask(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @perror_and_exit(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @sigaction(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i32 @sigismember(ptr noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpnt51q419.c'
source_filename = "/tmp/tmpnt51q419.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@.str = private unnamed_addr constant [24 x i8] c"Usage : %s <IP> <port>\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"received.dat\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [15 x i8] c"socket() error\00", align 1
@AF_INET = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [17 x i8] c"connect() error!\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"Thank you\00", align 1
@.str.6 = private unnamed_addr constant [18 x i8] c"Received file dat\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca [30 x i8], align 16
%9 = alloca i32, align 4
%10 = alloca %struct.sockaddr_in, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 3
br i1 %12, label %13, label %19
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
%17 = call i32 @printf(ptr noundef @.str, ptr noundef %16)
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
19: ; preds = %2
%20 = call ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.2)
store ptr %20, ptr %7, align 8
%21 = load i32, ptr @PF_INET, align 4
%22 = load i32, ptr @SOCK_STREAM, align 4
%23 = call i32 @socket(i32 noundef %21, i32 noundef %22, i32 noundef 0)
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %6, align 4
%25 = icmp eq i32 %24, -1
br i1 %25, label %26, label %28
26: ; preds = %19
%27 = call i32 @error_handling(ptr noundef @.str.3)
br label %28
28: ; preds = %26, %19
%29 = call i32 @memset(ptr noundef %10, i32 noundef 0, i32 noundef 12)
%30 = load i32, ptr @AF_INET, align 4
%31 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 2
store i32 %30, ptr %31, align 4
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 1
%34 = load ptr, ptr %33, align 8
%35 = call i32 @inet_addr(ptr noundef %34)
%36 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 1
%37 = getelementptr inbounds %struct.TYPE_2__, ptr %36, i32 0, i32 0
store i32 %35, ptr %37, align 4
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 2
%40 = load ptr, ptr %39, align 8
%41 = call i32 @atoi(ptr noundef %40)
%42 = call i32 @htons(i32 noundef %41)
%43 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 0
store i32 %42, ptr %43, align 4
%44 = load i32, ptr %6, align 4
%45 = call i32 @connect(i32 noundef %44, ptr noundef %10, i32 noundef 12)
%46 = icmp eq i32 %45, -1
br i1 %46, label %47, label %49
47: ; preds = %28
%48 = call i32 @error_handling(ptr noundef @.str.4)
br label %49
49: ; preds = %47, %28
br label %50
50: ; preds = %55, %49
%51 = load i32, ptr %6, align 4
%52 = getelementptr inbounds [30 x i8], ptr %8, i64 0, i64 0
%53 = call i32 @read(i32 noundef %51, ptr noundef %52, i32 noundef 30)
store i32 %53, ptr %9, align 4
%54 = icmp ne i32 %53, 0
br i1 %54, label %55, label %60
55: ; preds = %50
%56 = getelementptr inbounds [30 x i8], ptr %8, i64 0, i64 0
%57 = load i32, ptr %9, align 4
%58 = load ptr, ptr %7, align 8
%59 = call i32 @fwrite(ptr noundef %56, i32 noundef 1, i32 noundef %57, ptr noundef %58)
br label %50, !llvm.loop !6
60: ; preds = %50
%61 = load i32, ptr %6, align 4
%62 = call i32 @write(i32 noundef %61, ptr noundef @.str.5, i32 noundef 10)
%63 = call i32 @puts(ptr noundef @.str.6)
%64 = load ptr, ptr %7, align 8
%65 = call i32 @fclose(ptr noundef %64)
%66 = load i32, ptr %6, align 4
%67 = call i32 @close(i32 noundef %66)
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @error_handling(ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnt51q419.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@.str = private unnamed_addr constant [24 x i8] c"Usage : %s <IP> <port>\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"received.dat\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [15 x i8] c"socket() error\00", align 1
@AF_INET = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [17 x i8] c"connect() error!\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"Thank you\00", align 1
@.str.6 = private unnamed_addr constant [18 x i8] c"Received file dat\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca [30 x i8], align 16
%9 = alloca i32, align 4
%10 = alloca %struct.sockaddr_in, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 3
br i1 %12, label %13, label %19
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
%17 = call i32 @printf(ptr noundef @.str, ptr noundef %16)
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
19: ; preds = %2
%20 = call ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.2)
store ptr %20, ptr %7, align 8
%21 = load i32, ptr @PF_INET, align 4
%22 = load i32, ptr @SOCK_STREAM, align 4
%23 = call i32 @socket(i32 noundef %21, i32 noundef %22, i32 noundef 0)
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %6, align 4
%25 = icmp eq i32 %24, -1
br i1 %25, label %26, label %28
26: ; preds = %19
%27 = call i32 @error_handling(ptr noundef @.str.3)
br label %28
28: ; preds = %26, %19
%29 = call i32 @memset(ptr noundef %10, i32 noundef 0, i32 noundef 12)
%30 = load i32, ptr @AF_INET, align 4
%31 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 2
store i32 %30, ptr %31, align 4
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 1
%34 = load ptr, ptr %33, align 8
%35 = call i32 @inet_addr(ptr noundef %34)
%36 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 1
%37 = getelementptr inbounds %struct.TYPE_2__, ptr %36, i32 0, i32 0
store i32 %35, ptr %37, align 4
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 2
%40 = load ptr, ptr %39, align 8
%41 = call i32 @atoi(ptr noundef %40)
%42 = call i32 @htons(i32 noundef %41)
%43 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 0
store i32 %42, ptr %43, align 4
%44 = load i32, ptr %6, align 4
%45 = call i32 @connect(i32 noundef %44, ptr noundef %10, i32 noundef 12)
%46 = icmp eq i32 %45, -1
br i1 %46, label %47, label %49
47: ; preds = %28
%48 = call i32 @error_handling(ptr noundef @.str.4)
br label %49
49: ; preds = %47, %28
%50 = load i32, ptr %6, align 4
%51 = getelementptr inbounds [30 x i8], ptr %8, i64 0, i64 0
%52 = call i32 @read(i32 noundef %50, ptr noundef %51, i32 noundef 30)
store i32 %52, ptr %9, align 4
%53 = icmp ne i32 %52, 0
br i1 %53, label %.lr.ph, label %62
.lr.ph: ; preds = %49
br label %54
54: ; preds = %.lr.ph, %54
%55 = getelementptr inbounds [30 x i8], ptr %8, i64 0, i64 0
%56 = load i32, ptr %9, align 4
%57 = load ptr, ptr %7, align 8
%58 = call i32 @fwrite(ptr noundef %55, i32 noundef 1, i32 noundef %56, ptr noundef %57)
%59 = load i32, ptr %6, align 4
%60 = call i32 @read(i32 noundef %59, ptr noundef %51, i32 noundef 30)
store i32 %60, ptr %9, align 4
%61 = icmp ne i32 %60, 0
br i1 %61, label %54, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %54
br label %62
62: ; preds = %._crit_edge, %49
%63 = load i32, ptr %6, align 4
%64 = call i32 @write(i32 noundef %63, ptr noundef @.str.5, i32 noundef 10)
%65 = call i32 @puts(ptr noundef @.str.6)
%66 = load ptr, ptr %7, align 8
%67 = call i32 @fclose(ptr noundef %66)
%68 = load i32, ptr %6, align 4
%69 = call i32 @close(i32 noundef %68)
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @error_handling(ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpxws4fe7c.c'
source_filename = "/tmp/tmpxws4fe7c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"not enough memory\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @luaI_malloc(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = call ptr @malloc(i64 noundef %4) #3
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 @lua_error(ptr noundef @.str)
br label %10
10: ; preds = %8, %1
%11 = load ptr, ptr %3, align 8
ret ptr %11
}
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #1
declare i32 @lua_error(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 = { allocsize(0) "frame-pointer"="all" "no-trapping-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 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxws4fe7c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"not enough memory\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @luaI_malloc(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = call ptr @malloc(i64 noundef %4) #3
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 @lua_error(ptr noundef @.str)
br label %10
10: ; preds = %8, %1
%11 = load ptr, ptr %3, align 8
ret ptr %11
}
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #1
declare i32 @lua_error(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 = { allocsize(0) "frame-pointer"="all" "no-trapping-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 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbt66n_yn.c'
source_filename = "/tmp/tmpbt66n_yn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [56 x i8] c"pthread_mutex_init(mutex=%p): failed with error %s (%d)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pthread_mutex_init(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %7, align 4
%8 = call i32 (...) @init_tls()
store i32 %8, ptr %6, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = load i32, ptr %6, align 4
store i32 %12, ptr %3, align 4
br label %38
13: ; preds = %2
%14 = load ptr, ptr %4, align 8
%15 = load ptr, ptr %5, align 8
%16 = call i32 @pthread_mutex_real_init(ptr noundef %14, ptr noundef %15, ptr noundef %7)
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %27
19: ; preds = %13
%20 = load i32, ptr %6, align 4
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %6, align 4
%23 = call i32 @terror(i32 noundef %22)
%24 = load i32, ptr %6, align 4
%25 = call i32 @lksmith_error(i32 noundef %20, ptr noundef @.str, ptr noundef %21, i32 noundef %23, i32 noundef %24)
%26 = load i32, ptr %6, align 4
store i32 %26, ptr %3, align 4
br label %38
27: ; preds = %13
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %7, align 4
%30 = call i32 @lksmith_optional_init(ptr noundef %28, i32 noundef %29, i32 noundef 1)
store i32 %30, ptr %6, align 4
%31 = load i32, ptr %6, align 4
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %37
33: ; preds = %27
%34 = load ptr, ptr %4, align 8
%35 = call i32 @pthread_mutex_destroy(ptr noundef %34)
%36 = load i32, ptr %6, align 4
store i32 %36, ptr %3, align 4
br label %38
37: ; preds = %27
store i32 0, ptr %3, align 4
br label %38
38: ; preds = %37, %33, %19, %11
%39 = load i32, ptr %3, align 4
ret i32 %39
}
declare i32 @init_tls(...) #1
declare i32 @pthread_mutex_real_init(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @lksmith_error(i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @terror(i32 noundef) #1
declare i32 @lksmith_optional_init(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @pthread_mutex_destroy(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbt66n_yn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [56 x i8] c"pthread_mutex_init(mutex=%p): failed with error %s (%d)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pthread_mutex_init(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %7, align 4
%8 = call i32 (...) @init_tls()
store i32 %8, ptr %6, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = load i32, ptr %6, align 4
store i32 %12, ptr %3, align 4
br label %38
13: ; preds = %2
%14 = load ptr, ptr %4, align 8
%15 = load ptr, ptr %5, align 8
%16 = call i32 @pthread_mutex_real_init(ptr noundef %14, ptr noundef %15, ptr noundef %7)
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %27
19: ; preds = %13
%20 = load i32, ptr %6, align 4
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %6, align 4
%23 = call i32 @terror(i32 noundef %22)
%24 = load i32, ptr %6, align 4
%25 = call i32 @lksmith_error(i32 noundef %20, ptr noundef @.str, ptr noundef %21, i32 noundef %23, i32 noundef %24)
%26 = load i32, ptr %6, align 4
store i32 %26, ptr %3, align 4
br label %38
27: ; preds = %13
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %7, align 4
%30 = call i32 @lksmith_optional_init(ptr noundef %28, i32 noundef %29, i32 noundef 1)
store i32 %30, ptr %6, align 4
%31 = load i32, ptr %6, align 4
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %37
33: ; preds = %27
%34 = load ptr, ptr %4, align 8
%35 = call i32 @pthread_mutex_destroy(ptr noundef %34)
%36 = load i32, ptr %6, align 4
store i32 %36, ptr %3, align 4
br label %38
37: ; preds = %27
store i32 0, ptr %3, align 4
br label %38
38: ; preds = %37, %33, %19, %11
%39 = load i32, ptr %3, align 4
ret i32 %39
}
declare i32 @init_tls(...) #1
declare i32 @pthread_mutex_real_init(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @lksmith_error(i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @terror(i32 noundef) #1
declare i32 @lksmith_optional_init(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @pthread_mutex_destroy(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7gx1dvqv.c'
source_filename = "/tmp/tmp7gx1dvqv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [76 x i8] c"wget -q -O - http://localhost:47800/api/v1/bacnet/devices/1000/objects/0.12\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"Failed to run command\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [1035 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call ptr @popen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %14
11: ; preds = %2
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%13 = call i32 @exit(i32 noundef 1) #3
unreachable
14: ; preds = %2
br label %15
15: ; preds = %20, %14
%16 = getelementptr inbounds [1035 x i8], ptr %7, i64 0, i64 0
%17 = load ptr, ptr %6, align 8
%18 = call ptr @fgets(ptr noundef %16, i32 noundef 1035, ptr noundef %17)
%19 = icmp ne ptr %18, null
br i1 %19, label %20, label %23
20: ; preds = %15
%21 = getelementptr inbounds [1035 x i8], ptr %7, i64 0, i64 0
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %21)
br label %15, !llvm.loop !6
23: ; preds = %15
%24 = load ptr, ptr %6, align 8
%25 = call i32 @pclose(ptr noundef %24)
ret i32 0
}
declare ptr @popen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @pclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7gx1dvqv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [76 x i8] c"wget -q -O - http://localhost:47800/api/v1/bacnet/devices/1000/objects/0.12\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"Failed to run command\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [1035 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call ptr @popen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %14
11: ; preds = %2
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%13 = call i32 @exit(i32 noundef 1) #3
unreachable
14: ; preds = %2
%15 = getelementptr inbounds [1035 x i8], ptr %7, i64 0, i64 0
%16 = load ptr, ptr %6, align 8
%17 = call ptr @fgets(ptr noundef %15, i32 noundef 1035, ptr noundef %16)
%18 = icmp ne ptr %17, null
br i1 %18, label %.lr.ph, label %25
.lr.ph: ; preds = %14
br label %19
19: ; preds = %.lr.ph, %19
%20 = getelementptr inbounds [1035 x i8], ptr %7, i64 0, i64 0
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %20)
%22 = load ptr, ptr %6, align 8
%23 = call ptr @fgets(ptr noundef %15, i32 noundef 1035, ptr noundef %22)
%24 = icmp ne ptr %23, null
br i1 %24, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %25
25: ; preds = %._crit_edge, %14
%26 = load ptr, ptr %6, align 8
%27 = call i32 @pclose(ptr noundef %26)
ret i32 0
}
declare ptr @popen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @pclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpfinswmeg.c'
source_filename = "/tmp/tmpfinswmeg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = call i32 (...) @test_basics()
%6 = call i32 (...) @test_get_modified()
%7 = call i32 (...) @test_deletion()
%8 = call i32 (...) @test_get_nonexistant()
%9 = call i32 (...) @test_too_big()
%10 = call i32 (...) @test_copying_keys()
%11 = call i32 (...) @test_copying_vals()
%12 = call i32 (...) @test_lru()
ret i32 0
}
declare i32 @test_basics(...) #1
declare i32 @test_get_modified(...) #1
declare i32 @test_deletion(...) #1
declare i32 @test_get_nonexistant(...) #1
declare i32 @test_too_big(...) #1
declare i32 @test_copying_keys(...) #1
declare i32 @test_copying_vals(...) #1
declare i32 @test_lru(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfinswmeg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = call i32 (...) @test_basics()
%6 = call i32 (...) @test_get_modified()
%7 = call i32 (...) @test_deletion()
%8 = call i32 (...) @test_get_nonexistant()
%9 = call i32 (...) @test_too_big()
%10 = call i32 (...) @test_copying_keys()
%11 = call i32 (...) @test_copying_vals()
%12 = call i32 (...) @test_lru()
ret i32 0
}
declare i32 @test_basics(...) #1
declare i32 @test_get_modified(...) #1
declare i32 @test_deletion(...) #1
declare i32 @test_get_nonexistant(...) #1
declare i32 @test_too_big(...) #1
declare i32 @test_copying_keys(...) #1
declare i32 @test_copying_vals(...) #1
declare i32 @test_lru(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8dszg89x.c'
source_filename = "/tmp/tmp8dszg89x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isalpha.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isalpha should be 0 for 0xd0\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalpha_0xd0() #0 {
%1 = call i64 @isalpha(i32 noundef 208)
%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 1045, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalpha(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/tmp8dszg89x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isalpha.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isalpha should be 0 for 0xd0\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalpha_0xd0() #0 {
%1 = call i64 @isalpha(i32 noundef 208)
%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 1045, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalpha(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/tmphcsdo7x9.c'
source_filename = "/tmp/tmphcsdo7x9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @arg_gen(i32 noundef %0, i8 noundef signext %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i8, align 1
%5 = alloca i32, align 4
%6 = alloca i8, align 1
%7 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store i8 %1, ptr %4, align 1
%8 = load i32, ptr %3, align 4
%9 = add i32 %8, 1
%10 = call ptr @malloc(i32 noundef %9)
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %7, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %15, label %13
13: ; preds = %2
%14 = call i32 @exit(i32 noundef 1) #3
unreachable
15: ; preds = %2
store i32 0, ptr %5, align 4
br label %16
16: ; preds = %57, %15
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %3, align 4
%19 = icmp ult i32 %17, %18
br i1 %19, label %20, label %60
20: ; preds = %16
%21 = load i8, ptr %4, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %34
24: ; preds = %20
%25 = load i32, ptr %5, align 4
%26 = srem i32 %25, 2
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %34
28: ; preds = %24
%29 = load i8, ptr %4, align 1
%30 = load ptr, ptr %7, align 8
%31 = load i32, ptr %5, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %30, i64 %32
store i8 %29, ptr %33, align 1
br label %56
34: ; preds = %24, %20
%35 = load i32, ptr %5, align 4
%36 = srem i32 %35, 16
%37 = trunc i32 %36 to i8
store i8 %37, ptr %6, align 1
%38 = load i8, ptr %6, align 1
%39 = sext i8 %38 to i32
%40 = icmp sgt i32 %39, 9
br i1 %40, label %41, label %45
41: ; preds = %34
%42 = load i8, ptr %6, align 1
%43 = sext i8 %42 to i32
%44 = add nsw i32 55, %43
br label %49
45: ; preds = %34
%46 = load i8, ptr %6, align 1
%47 = sext i8 %46 to i32
%48 = add nsw i32 48, %47
br label %49
49: ; preds = %45, %41
%50 = phi i32 [ %44, %41 ], [ %48, %45 ]
%51 = trunc i32 %50 to i8
%52 = load ptr, ptr %7, align 8
%53 = load i32, ptr %5, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
store i8 %51, ptr %55, align 1
br label %56
56: ; preds = %49, %28
br label %57
57: ; preds = %56
%58 = load i32, ptr %5, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %5, align 4
br label %16, !llvm.loop !6
60: ; preds = %16
%61 = load ptr, ptr %7, align 8
%62 = load i32, ptr %3, align 4
%63 = zext i32 %62 to i64
%64 = getelementptr inbounds i8, ptr %61, i64 %63
store i8 0, ptr %64, align 1
%65 = load ptr, ptr %7, align 8
ret ptr %65
}
declare ptr @malloc(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphcsdo7x9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @arg_gen(i32 noundef %0, i8 noundef signext %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i8, align 1
%5 = alloca i32, align 4
%6 = alloca i8, align 1
%7 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store i8 %1, ptr %4, align 1
%8 = load i32, ptr %3, align 4
%9 = add i32 %8, 1
%10 = call ptr @malloc(i32 noundef %9)
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %7, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %15, label %13
13: ; preds = %2
%14 = call i32 @exit(i32 noundef 1) #3
unreachable
15: ; preds = %2
store i32 0, ptr %5, align 4
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %3, align 4
%18 = icmp ult i32 %16, %17
br i1 %18, label %.lr.ph, label %62
.lr.ph: ; preds = %15
br label %19
19: ; preds = %.lr.ph, %56
%20 = load i8, ptr %4, align 1
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %33
23: ; preds = %19
%24 = load i32, ptr %5, align 4
%25 = srem i32 %24, 2
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %33
27: ; preds = %23
%28 = load i8, ptr %4, align 1
%29 = load ptr, ptr %7, align 8
%30 = load i32, ptr %5, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
store i8 %28, ptr %32, align 1
br label %55
33: ; preds = %23, %19
%34 = load i32, ptr %5, align 4
%35 = srem i32 %34, 16
%36 = trunc i32 %35 to i8
store i8 %36, ptr %6, align 1
%37 = load i8, ptr %6, align 1
%38 = sext i8 %37 to i32
%39 = icmp sgt i32 %38, 9
br i1 %39, label %40, label %44
40: ; preds = %33
%41 = load i8, ptr %6, align 1
%42 = sext i8 %41 to i32
%43 = add nsw i32 55, %42
br label %48
44: ; preds = %33
%45 = load i8, ptr %6, align 1
%46 = sext i8 %45 to i32
%47 = add nsw i32 48, %46
br label %48
48: ; preds = %44, %40
%49 = phi i32 [ %43, %40 ], [ %47, %44 ]
%50 = trunc i32 %49 to i8
%51 = load ptr, ptr %7, align 8
%52 = load i32, ptr %5, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %51, i64 %53
store i8 %50, ptr %54, align 1
br label %55
55: ; preds = %48, %27
br label %56
56: ; preds = %55
%57 = load i32, ptr %5, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %5, align 4
%59 = load i32, ptr %5, align 4
%60 = load i32, ptr %3, align 4
%61 = icmp ult i32 %59, %60
br i1 %61, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %56
br label %62
62: ; preds = %._crit_edge, %15
%63 = load ptr, ptr %7, align 8
%64 = load i32, ptr %3, align 4
%65 = zext i32 %64 to i64
%66 = getelementptr inbounds i8, ptr %63, i64 %65
store i8 0, ptr %66, align 1
%67 = load ptr, ptr %7, align 8
ret ptr %67
}
declare ptr @malloc(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"}
|
; ModuleID = '/tmp/tmp2uvignop.c'
source_filename = "/tmp/tmp2uvignop.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [45 x i8] c"This is iSelect, Version 1.2.0 (01-Jul-2000)\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.3 = private unnamed_addr constant [51 x i8] c"Copyright (c) 1996,1997,1998 Ralf S. Engelschall.\0A\00", align 1
@.str.4 = private unnamed_addr constant [65 x i8] c"This program is distributed in the hope that it will be useful,\0A\00", align 1
@.str.5 = private unnamed_addr constant [64 x i8] c"but WITHOUT ANY WARRANTY; without even the implied warranty of\0A\00", align 1
@.str.6 = private unnamed_addr constant [63 x i8] c"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\0A\00", align 1
@.str.7 = private unnamed_addr constant [46 x i8] c"GNU General Public License for more details.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @give_version(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef @.str.1)
%5 = load i32, ptr @stdout, align 4
%6 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %5, ptr noundef @.str.2)
%7 = load i32, ptr @stdout, align 4
%8 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %7, ptr noundef @.str.3)
%9 = load i32, ptr @stdout, align 4
%10 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %9, ptr noundef @.str.2)
%11 = load i32, ptr @stdout, align 4
%12 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %11, ptr noundef @.str.4)
%13 = load i32, ptr @stdout, align 4
%14 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %13, ptr noundef @.str.5)
%15 = load i32, ptr @stdout, align 4
%16 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %15, ptr noundef @.str.6)
%17 = load i32, ptr @stdout, align 4
%18 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %17, ptr noundef @.str.7)
%19 = load i32, ptr @stdout, align 4
%20 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %19, ptr noundef @.str.2)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2uvignop.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [45 x i8] c"This is iSelect, Version 1.2.0 (01-Jul-2000)\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.3 = private unnamed_addr constant [51 x i8] c"Copyright (c) 1996,1997,1998 Ralf S. Engelschall.\0A\00", align 1
@.str.4 = private unnamed_addr constant [65 x i8] c"This program is distributed in the hope that it will be useful,\0A\00", align 1
@.str.5 = private unnamed_addr constant [64 x i8] c"but WITHOUT ANY WARRANTY; without even the implied warranty of\0A\00", align 1
@.str.6 = private unnamed_addr constant [63 x i8] c"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\0A\00", align 1
@.str.7 = private unnamed_addr constant [46 x i8] c"GNU General Public License for more details.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @give_version(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef @.str.1)
%5 = load i32, ptr @stdout, align 4
%6 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %5, ptr noundef @.str.2)
%7 = load i32, ptr @stdout, align 4
%8 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %7, ptr noundef @.str.3)
%9 = load i32, ptr @stdout, align 4
%10 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %9, ptr noundef @.str.2)
%11 = load i32, ptr @stdout, align 4
%12 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %11, ptr noundef @.str.4)
%13 = load i32, ptr @stdout, align 4
%14 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %13, ptr noundef @.str.5)
%15 = load i32, ptr @stdout, align 4
%16 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %15, ptr noundef @.str.6)
%17 = load i32, ptr @stdout, align 4
%18 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %17, ptr noundef @.str.7)
%19 = load i32, ptr @stdout, align 4
%20 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %19, ptr noundef @.str.2)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpr1cdb550.c'
source_filename = "/tmp/tmpr1cdb550.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"List of Environmental Variable\0A\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"--------------------------------\0A\00", align 1
@environ = external global ptr, align 8
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = load ptr, ptr @environ, align 8
store ptr %6, ptr %3, align 8
br label %7
7: ; preds = %15, %0
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %8, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %18
11: ; preds = %7
%12 = load ptr, ptr %3, align 8
%13 = load ptr, ptr %12, align 8
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %13)
br label %15
15: ; preds = %11
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds ptr, ptr %16, i32 1
store ptr %17, ptr %3, align 8
br label %7, !llvm.loop !6
18: ; preds = %7
%19 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr1cdb550.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"List of Environmental Variable\0A\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"--------------------------------\0A\00", align 1
@environ = external global ptr, align 8
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = load ptr, ptr @environ, align 8
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %7, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %.lr.ph, label %20
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %14
%11 = load ptr, ptr %3, align 8
%12 = load ptr, ptr %11, align 8
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %12)
br label %14
14: ; preds = %10
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds ptr, ptr %15, i32 1
store ptr %16, ptr %3, align 8
%17 = load ptr, ptr %3, align 8
%18 = load ptr, ptr %17, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %20
20: ; preds = %._crit_edge, %0
%21 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp1lzcc9_x.c'
source_filename = "/tmp/tmp1lzcc9_x.c"
target datalayout = "e-m:e-p270: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/tmp1lzcc9_x.c"
target datalayout = "e-m:e-p270: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/tmp6ztzrd2v.c'
source_filename = "/tmp/tmp6ztzrd2v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"No weights....\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @parse_import(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
%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
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca [256 x i8], align 16
%17 = alloca i32, align 4
%18 = alloca i8, align 1
%19 = alloca i32, align 4
%20 = alloca i32, align 4
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store ptr %2, ptr %11, align 8
store ptr %3, ptr %12, align 8
store ptr %4, ptr %13, align 8
store ptr %5, ptr %14, align 8
store ptr %6, ptr %15, align 8
store i32 0, ptr %19, align 4
store i32 1, ptr %20, align 4
br label %21
21: ; preds = %36, %7
%22 = load i32, ptr %20, align 4
%23 = icmp sgt i32 %22, 0
br i1 %23, label %24, label %37
24: ; preds = %21
%25 = load ptr, ptr %9, align 8
%26 = load i32, ptr %19, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = load i8, ptr %28, align 1
store i8 %29, ptr %18, align 1
%30 = load i32, ptr %19, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %19, align 4
%32 = load i8, ptr %18, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 40
br i1 %34, label %35, label %36
35: ; preds = %24
store i32 0, ptr %20, align 4
br label %36
36: ; preds = %35, %24
br label %21, !llvm.loop !6
37: ; preds = %21
%38 = load ptr, ptr %9, align 8
%39 = getelementptr inbounds [256 x i8], ptr %16, i64 0, i64 0
%40 = call i32 @getimpstr(ptr noundef %38, ptr noundef %19, ptr noundef %39)
store i32 %40, ptr %17, align 4
%41 = load ptr, ptr %10, align 8
%42 = getelementptr inbounds [256 x i8], ptr %16, i64 0, i64 0
%43 = call i32 @strcpy(ptr noundef %41, ptr noundef %42)
%44 = load i32, ptr %17, align 4
%45 = icmp eq i32 %44, 1
br i1 %45, label %46, label %48
46: ; preds = %37
%47 = call i32 (...) @import_error()
store i32 %47, ptr %8, align 4
br label %111
48: ; preds = %37
%49 = load ptr, ptr %9, align 8
%50 = getelementptr inbounds [256 x i8], ptr %16, i64 0, i64 0
%51 = call i32 @getimpstr(ptr noundef %49, ptr noundef %19, ptr noundef %50)
store i32 %51, ptr %17, align 4
%52 = load ptr, ptr %11, align 8
%53 = getelementptr inbounds [256 x i8], ptr %16, i64 0, i64 0
%54 = call i32 @strcpy(ptr noundef %52, ptr noundef %53)
%55 = load i32, ptr %17, align 4
%56 = icmp eq i32 %55, 1
br i1 %56, label %57, label %59
57: ; preds = %48
%58 = call i32 (...) @import_error()
store i32 %58, ptr %8, align 4
br label %111
59: ; preds = %48
%60 = load ptr, ptr %9, align 8
%61 = getelementptr inbounds [256 x i8], ptr %16, i64 0, i64 0
%62 = call i32 @getimpstr(ptr noundef %60, ptr noundef %19, ptr noundef %61)
store i32 %62, ptr %17, align 4
%63 = getelementptr inbounds [256 x i8], ptr %16, i64 0, i64 0
%64 = call i32 @atoi(ptr noundef %63)
%65 = load ptr, ptr %12, align 8
store i32 %64, ptr %65, align 4
%66 = load i32, ptr %17, align 4
%67 = icmp eq i32 %66, 1
br i1 %67, label %72, label %68
68: ; preds = %59
%69 = load ptr, ptr %12, align 8
%70 = load i32, ptr %69, align 4
%71 = icmp sle i32 %70, 0
br i1 %71, label %72, label %74
72: ; preds = %68, %59
%73 = call i32 (...) @import_error()
store i32 %73, ptr %8, align 4
br label %111
74: ; preds = %68
%75 = load ptr, ptr %9, align 8
%76 = getelementptr inbounds [256 x i8], ptr %16, i64 0, i64 0
%77 = call i32 @getimpstr(ptr noundef %75, ptr noundef %19, ptr noundef %76)
store i32 %77, ptr %17, align 4
%78 = load ptr, ptr %13, align 8
%79 = getelementptr inbounds [256 x i8], ptr %16, i64 0, i64 0
%80 = call i32 @strcpy(ptr noundef %78, ptr noundef %79)
%81 = load ptr, ptr %14, align 8
store i32 0, ptr %81, align 4
%82 = load i32, ptr %17, align 4
%83 = icmp eq i32 %82, 1
br i1 %83, label %84, label %86
84: ; preds = %74
%85 = call i32 @printf(ptr noundef @.str)
store i32 1, ptr %8, align 4
br label %111
86: ; preds = %74
store i32 1, ptr %20, align 4
br label %87
87: ; preds = %109, %86
%88 = load i32, ptr %20, align 4
%89 = icmp sgt i32 %88, 0
br i1 %89, label %90, label %110
90: ; preds = %87
%91 = load ptr, ptr %9, align 8
%92 = getelementptr inbounds [256 x i8], ptr %16, i64 0, i64 0
%93 = call i32 @getimpstr(ptr noundef %91, ptr noundef %19, ptr noundef %92)
store i32 %93, ptr %17, align 4
%94 = load ptr, ptr %15, align 8
%95 = load ptr, ptr %14, align 8
%96 = load i32, ptr %95, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds ptr, ptr %94, i64 %97
%99 = load ptr, ptr %98, align 8
%100 = getelementptr inbounds [256 x i8], ptr %16, i64 0, i64 0
%101 = call i32 @strcpy(ptr noundef %99, ptr noundef %100)
%102 = load ptr, ptr %14, align 8
%103 = load i32, ptr %102, align 4
%104 = add nsw i32 %103, 1
%105 = load ptr, ptr %14, align 8
store i32 %104, ptr %105, align 4
%106 = load i32, ptr %17, align 4
%107 = icmp eq i32 %106, 1
br i1 %107, label %108, label %109
108: ; preds = %90
store i32 0, ptr %20, align 4
br label %109
109: ; preds = %108, %90
br label %87, !llvm.loop !8
110: ; preds = %87
store i32 1, ptr %8, align 4
br label %111
111: ; preds = %110, %84, %72, %57, %46
%112 = load i32, ptr %8, align 4
ret i32 %112
}
declare i32 @getimpstr(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @import_error(...) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6ztzrd2v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"No weights....\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @parse_import(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
%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
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca [256 x i8], align 16
%17 = alloca i32, align 4
%18 = alloca i8, align 1
%19 = alloca i32, align 4
%20 = alloca i32, align 4
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store ptr %2, ptr %11, align 8
store ptr %3, ptr %12, align 8
store ptr %4, ptr %13, align 8
store ptr %5, ptr %14, align 8
store ptr %6, ptr %15, align 8
store i32 0, ptr %19, align 4
store i32 1, ptr %20, align 4
%21 = load i32, ptr %20, align 4
%22 = icmp sgt i32 %21, 0
br i1 %22, label %.lr.ph, label %38
.lr.ph: ; preds = %7
br label %23
23: ; preds = %.lr.ph, %35
%24 = load ptr, ptr %9, align 8
%25 = load i32, ptr %19, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
%28 = load i8, ptr %27, align 1
store i8 %28, ptr %18, align 1
%29 = load i32, ptr %19, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %19, align 4
%31 = load i8, ptr %18, align 1
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 40
br i1 %33, label %34, label %35
34: ; preds = %23
store i32 0, ptr %20, align 4
br label %35
35: ; preds = %34, %23
%36 = load i32, ptr %20, align 4
%37 = icmp sgt i32 %36, 0
br i1 %37, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %38
38: ; preds = %._crit_edge, %7
%39 = load ptr, ptr %9, align 8
%40 = getelementptr inbounds [256 x i8], ptr %16, i64 0, i64 0
%41 = call i32 @getimpstr(ptr noundef %39, ptr noundef %19, ptr noundef %40)
store i32 %41, ptr %17, align 4
%42 = load ptr, ptr %10, align 8
%43 = getelementptr inbounds [256 x i8], ptr %16, i64 0, i64 0
%44 = call i32 @strcpy(ptr noundef %42, ptr noundef %43)
%45 = load i32, ptr %17, align 4
%46 = icmp eq i32 %45, 1
br i1 %46, label %47, label %49
47: ; preds = %38
%48 = call i32 (...) @import_error()
store i32 %48, ptr %8, align 4
br label %113
49: ; preds = %38
%50 = load ptr, ptr %9, align 8
%51 = getelementptr inbounds [256 x i8], ptr %16, i64 0, i64 0
%52 = call i32 @getimpstr(ptr noundef %50, ptr noundef %19, ptr noundef %51)
store i32 %52, ptr %17, align 4
%53 = load ptr, ptr %11, align 8
%54 = getelementptr inbounds [256 x i8], ptr %16, i64 0, i64 0
%55 = call i32 @strcpy(ptr noundef %53, ptr noundef %54)
%56 = load i32, ptr %17, align 4
%57 = icmp eq i32 %56, 1
br i1 %57, label %58, label %60
58: ; preds = %49
%59 = call i32 (...) @import_error()
store i32 %59, ptr %8, align 4
br label %113
60: ; preds = %49
%61 = load ptr, ptr %9, align 8
%62 = getelementptr inbounds [256 x i8], ptr %16, i64 0, i64 0
%63 = call i32 @getimpstr(ptr noundef %61, ptr noundef %19, ptr noundef %62)
store i32 %63, ptr %17, align 4
%64 = getelementptr inbounds [256 x i8], ptr %16, i64 0, i64 0
%65 = call i32 @atoi(ptr noundef %64)
%66 = load ptr, ptr %12, align 8
store i32 %65, ptr %66, align 4
%67 = load i32, ptr %17, align 4
%68 = icmp eq i32 %67, 1
br i1 %68, label %73, label %69
69: ; preds = %60
%70 = load ptr, ptr %12, align 8
%71 = load i32, ptr %70, align 4
%72 = icmp sle i32 %71, 0
br i1 %72, label %73, label %75
73: ; preds = %69, %60
%74 = call i32 (...) @import_error()
store i32 %74, ptr %8, align 4
br label %113
75: ; preds = %69
%76 = load ptr, ptr %9, align 8
%77 = getelementptr inbounds [256 x i8], ptr %16, i64 0, i64 0
%78 = call i32 @getimpstr(ptr noundef %76, ptr noundef %19, ptr noundef %77)
store i32 %78, ptr %17, align 4
%79 = load ptr, ptr %13, align 8
%80 = getelementptr inbounds [256 x i8], ptr %16, i64 0, i64 0
%81 = call i32 @strcpy(ptr noundef %79, ptr noundef %80)
%82 = load ptr, ptr %14, align 8
store i32 0, ptr %82, align 4
%83 = load i32, ptr %17, align 4
%84 = icmp eq i32 %83, 1
br i1 %84, label %85, label %87
85: ; preds = %75
%86 = call i32 @printf(ptr noundef @.str)
store i32 1, ptr %8, align 4
br label %113
87: ; preds = %75
store i32 1, ptr %20, align 4
%88 = load i32, ptr %20, align 4
%89 = icmp sgt i32 %88, 0
br i1 %89, label %.lr.ph2, label %112
.lr.ph2: ; preds = %87
br label %90
90: ; preds = %.lr.ph2, %109
%91 = load ptr, ptr %9, align 8
%92 = getelementptr inbounds [256 x i8], ptr %16, i64 0, i64 0
%93 = call i32 @getimpstr(ptr noundef %91, ptr noundef %19, ptr noundef %92)
store i32 %93, ptr %17, align 4
%94 = load ptr, ptr %15, align 8
%95 = load ptr, ptr %14, align 8
%96 = load i32, ptr %95, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds ptr, ptr %94, i64 %97
%99 = load ptr, ptr %98, align 8
%100 = getelementptr inbounds [256 x i8], ptr %16, i64 0, i64 0
%101 = call i32 @strcpy(ptr noundef %99, ptr noundef %100)
%102 = load ptr, ptr %14, align 8
%103 = load i32, ptr %102, align 4
%104 = add nsw i32 %103, 1
%105 = load ptr, ptr %14, align 8
store i32 %104, ptr %105, align 4
%106 = load i32, ptr %17, align 4
%107 = icmp eq i32 %106, 1
br i1 %107, label %108, label %109
108: ; preds = %90
store i32 0, ptr %20, align 4
br label %109
109: ; preds = %108, %90
%110 = load i32, ptr %20, align 4
%111 = icmp sgt i32 %110, 0
br i1 %111, label %90, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %109
br label %112
112: ; preds = %._crit_edge3, %87
store i32 1, ptr %8, align 4
br label %113
113: ; preds = %112, %85, %73, %58, %47
%114 = load i32, ptr %8, align 4
ret i32 %114
}
declare i32 @getimpstr(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @import_error(...) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp9f6my2ti.c'
source_filename = "/tmp/tmp9f6my2ti.c"
target datalayout = "e-m:e-p270: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"TimeYrsecToYMDHMS\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"Tval: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [37 x i8] c"Time: %.4d-%.2d-%.2d %.2d:%.2d:%.2d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 18000, ptr %12, align 4
store i32 2002, ptr %6, align 4
%13 = load i32, ptr %12, align 4
%14 = load i32, ptr %6, align 4
%15 = call i32 @TimeYrsecToYMDHMS(i32 noundef %13, i32 noundef %14, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11)
%16 = load i32, ptr @stdout, align 4
%17 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %16, ptr noundef @.str)
%18 = load i32, ptr @stdout, align 4
%19 = load i32, ptr %12, align 4
%20 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %18, ptr noundef @.str.1, i32 noundef %19)
%21 = load i32, ptr @stdout, align 4
%22 = load i32, ptr %6, align 4
%23 = load i32, ptr %7, align 4
%24 = load i32, ptr %8, align 4
%25 = load i32, ptr %9, align 4
%26 = load i32, ptr %10, align 4
%27 = load i32, ptr %11, align 4
%28 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %21, ptr noundef @.str.2, i32 noundef %22, i32 noundef %23, i32 noundef %24, i32 noundef %25, i32 noundef %26, i32 noundef %27)
ret i32 0
}
declare i32 @TimeYrsecToYMDHMS(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9f6my2ti.c"
target datalayout = "e-m:e-p270: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"TimeYrsecToYMDHMS\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"Tval: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [37 x i8] c"Time: %.4d-%.2d-%.2d %.2d:%.2d:%.2d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 18000, ptr %12, align 4
store i32 2002, ptr %6, align 4
%13 = load i32, ptr %12, align 4
%14 = load i32, ptr %6, align 4
%15 = call i32 @TimeYrsecToYMDHMS(i32 noundef %13, i32 noundef %14, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11)
%16 = load i32, ptr @stdout, align 4
%17 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %16, ptr noundef @.str)
%18 = load i32, ptr @stdout, align 4
%19 = load i32, ptr %12, align 4
%20 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %18, ptr noundef @.str.1, i32 noundef %19)
%21 = load i32, ptr @stdout, align 4
%22 = load i32, ptr %6, align 4
%23 = load i32, ptr %7, align 4
%24 = load i32, ptr %8, align 4
%25 = load i32, ptr %9, align 4
%26 = load i32, ptr %10, align 4
%27 = load i32, ptr %11, align 4
%28 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %21, ptr noundef @.str.2, i32 noundef %22, i32 noundef %23, i32 noundef %24, i32 noundef %25, i32 noundef %26, i32 noundef %27)
ret i32 0
}
declare i32 @TimeYrsecToYMDHMS(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpf1nyvpsw.c'
source_filename = "/tmp/tmpf1nyvpsw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @best_pair(i64 noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12) #0 {
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%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 double, align 8
%28 = alloca [21 x double], align 16
%29 = alloca i64, align 8
%30 = alloca i64, align 8
%31 = alloca i64, align 8
%32 = alloca i64, align 8
store i64 %0, ptr %14, align 8
store i64 %1, ptr %15, align 8
store ptr %2, ptr %16, align 8
store ptr %3, ptr %17, align 8
store ptr %4, ptr %18, align 8
store ptr %5, ptr %19, align 8
store ptr %6, ptr %20, align 8
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
store double 1.000000e+18, ptr %27, align 8
store i64 16, ptr %32, align 8
store i64 1, ptr %30, align 8
br label %33
33: ; preds = %41, %13
%34 = load i64, ptr %30, align 8
%35 = load i64, ptr %32, align 8
%36 = icmp sle i64 %34, %35
br i1 %36, label %37, label %44
37: ; preds = %33
%38 = load ptr, ptr %26, align 8
%39 = load i64, ptr %30, align 8
%40 = getelementptr inbounds i64, ptr %38, i64 %39
store i64 0, ptr %40, align 8
br label %41
41: ; preds = %37
%42 = load i64, ptr %30, align 8
%43 = add nsw i64 %42, 1
store i64 %43, ptr %30, align 8
br label %33, !llvm.loop !6
44: ; preds = %33
store i64 1, ptr %30, align 8
br label %45
45: ; preds = %113, %44
%46 = load i64, ptr %30, align 8
%47 = load i64, ptr %15, align 8
%48 = icmp sle i64 %46, %47
br i1 %48, label %49, label %116
49: ; preds = %45
%50 = load i64, ptr %30, align 8
%51 = load i64, ptr %14, align 8
%52 = icmp eq i64 %50, %51
br i1 %52, label %65, label %53
53: ; preds = %49
%54 = load ptr, ptr %16, align 8
%55 = load i64, ptr %30, align 8
%56 = getelementptr inbounds i64, ptr %54, i64 %55
%57 = load i64, ptr %56, align 8
%58 = icmp slt i64 %57, 0
br i1 %58, label %65, label %59
59: ; preds = %53
%60 = load ptr, ptr %20, align 8
%61 = load i64, ptr %30, align 8
%62 = getelementptr inbounds i64, ptr %60, i64 %61
%63 = load i64, ptr %62, align 8
%64 = icmp ne i64 %63, 0
br i1 %64, label %65, label %66
65: ; preds = %59, %53, %49
br label %113
66: ; preds = %59
%67 = load i64, ptr %14, align 8
%68 = load i64, ptr %30, align 8
%69 = load ptr, ptr %24, align 8
%70 = load ptr, ptr %17, align 8
%71 = load ptr, ptr %18, align 8
%72 = load ptr, ptr %19, align 8
%73 = load ptr, ptr %21, align 8
%74 = load ptr, ptr %22, align 8
%75 = load ptr, ptr %23, align 8
%76 = load ptr, ptr %25, align 8
%77 = getelementptr inbounds [21 x double], ptr %28, i64 0, i64 0
%78 = call i32 @check_pairs(i64 noundef %67, i64 noundef %68, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %72, ptr noundef %73, ptr noundef %74, ptr noundef %75, ptr noundef %76, ptr noundef %77, ptr noundef %29, i32 noundef 0)
%79 = load i64, ptr %29, align 8
%80 = icmp ne i64 %79, 0
br i1 %80, label %81, label %112
81: ; preds = %66
%82 = getelementptr inbounds [21 x double], ptr %28, i64 0, i64 5
%83 = load double, ptr %82, align 8
%84 = load double, ptr %27, align 8
%85 = fcmp olt double %83, %84
br i1 %85, label %86, label %112
86: ; preds = %81
%87 = getelementptr inbounds [21 x double], ptr %28, i64 0, i64 5
%88 = load double, ptr %87, align 8
store double %88, ptr %27, align 8
%89 = load i64, ptr %30, align 8
%90 = load ptr, ptr %26, align 8
%91 = getelementptr inbounds i64, ptr %90, i64 1
store i64 %89, ptr %91, align 8
%92 = load i64, ptr %29, align 8
%93 = load ptr, ptr %26, align 8
%94 = getelementptr inbounds i64, ptr %93, i64 2
store i64 %92, ptr %94, align 8
store i64 1, ptr %31, align 8
br label %95
95: ; preds = %108, %86
%96 = load i64, ptr %31, align 8
%97 = icmp sle i64 %96, 14
br i1 %97, label %98, label %111
98: ; preds = %95
%99 = load i64, ptr %31, align 8
%100 = getelementptr inbounds [21 x double], ptr %28, i64 0, i64 %99
%101 = load double, ptr %100, align 8
%102 = fmul double 1.000000e+04, %101
%103 = call i64 @get_round(double noundef %102)
%104 = load ptr, ptr %26, align 8
%105 = load i64, ptr %31, align 8
%106 = add nsw i64 2, %105
%107 = getelementptr inbounds i64, ptr %104, i64 %106
store i64 %103, ptr %107, align 8
br label %108
108: ; preds = %98
%109 = load i64, ptr %31, align 8
%110 = add nsw i64 %109, 1
store i64 %110, ptr %31, align 8
br label %95, !llvm.loop !8
111: ; preds = %95
br label %112
112: ; preds = %111, %81, %66
br label %113
113: ; preds = %112, %65
%114 = load i64, ptr %30, align 8
%115 = add nsw i64 %114, 1
store i64 %115, ptr %30, align 8
br label %45, !llvm.loop !9
116: ; preds = %45
ret void
}
declare i32 @check_pairs(i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @get_round(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf1nyvpsw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @best_pair(i64 noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12) #0 {
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%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 double, align 8
%28 = alloca [21 x double], align 16
%29 = alloca i64, align 8
%30 = alloca i64, align 8
%31 = alloca i64, align 8
%32 = alloca i64, align 8
store i64 %0, ptr %14, align 8
store i64 %1, ptr %15, align 8
store ptr %2, ptr %16, align 8
store ptr %3, ptr %17, align 8
store ptr %4, ptr %18, align 8
store ptr %5, ptr %19, align 8
store ptr %6, ptr %20, align 8
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
store double 1.000000e+18, ptr %27, align 8
store i64 16, ptr %32, align 8
store i64 1, ptr %30, align 8
%33 = load i64, ptr %30, align 8
%34 = load i64, ptr %32, align 8
%35 = icmp sle i64 %33, %34
br i1 %35, label %.lr.ph, label %46
.lr.ph: ; preds = %13
br label %36
36: ; preds = %.lr.ph, %40
%37 = load ptr, ptr %26, align 8
%38 = load i64, ptr %30, align 8
%39 = getelementptr inbounds i64, ptr %37, i64 %38
store i64 0, ptr %39, align 8
br label %40
40: ; preds = %36
%41 = load i64, ptr %30, align 8
%42 = add nsw i64 %41, 1
store i64 %42, ptr %30, align 8
%43 = load i64, ptr %30, align 8
%44 = load i64, ptr %32, align 8
%45 = icmp sle i64 %43, %44
br i1 %45, label %36, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %40
br label %46
46: ; preds = %._crit_edge, %13
store i64 1, ptr %30, align 8
%47 = load i64, ptr %30, align 8
%48 = load i64, ptr %15, align 8
%49 = icmp sle i64 %47, %48
br i1 %49, label %.lr.ph5, label %121
.lr.ph5: ; preds = %46
br label %50
50: ; preds = %.lr.ph5, %115
%51 = load i64, ptr %30, align 8
%52 = load i64, ptr %14, align 8
%53 = icmp eq i64 %51, %52
br i1 %53, label %66, label %54
54: ; preds = %50
%55 = load ptr, ptr %16, align 8
%56 = load i64, ptr %30, align 8
%57 = getelementptr inbounds i64, ptr %55, i64 %56
%58 = load i64, ptr %57, align 8
%59 = icmp slt i64 %58, 0
br i1 %59, label %66, label %60
60: ; preds = %54
%61 = load ptr, ptr %20, align 8
%62 = load i64, ptr %30, align 8
%63 = getelementptr inbounds i64, ptr %61, i64 %62
%64 = load i64, ptr %63, align 8
%65 = icmp ne i64 %64, 0
br i1 %65, label %66, label %67
66: ; preds = %60, %54, %50
br label %115
67: ; preds = %60
%68 = load i64, ptr %14, align 8
%69 = load i64, ptr %30, align 8
%70 = load ptr, ptr %24, align 8
%71 = load ptr, ptr %17, align 8
%72 = load ptr, ptr %18, align 8
%73 = load ptr, ptr %19, align 8
%74 = load ptr, ptr %21, align 8
%75 = load ptr, ptr %22, align 8
%76 = load ptr, ptr %23, align 8
%77 = load ptr, ptr %25, align 8
%78 = getelementptr inbounds [21 x double], ptr %28, i64 0, i64 0
%79 = call i32 @check_pairs(i64 noundef %68, i64 noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %72, ptr noundef %73, ptr noundef %74, ptr noundef %75, ptr noundef %76, ptr noundef %77, ptr noundef %78, ptr noundef %29, i32 noundef 0)
%80 = load i64, ptr %29, align 8
%81 = icmp ne i64 %80, 0
br i1 %81, label %82, label %114
82: ; preds = %67
%83 = getelementptr inbounds [21 x double], ptr %28, i64 0, i64 5
%84 = load double, ptr %83, align 8
%85 = load double, ptr %27, align 8
%86 = fcmp olt double %84, %85
br i1 %86, label %87, label %114
87: ; preds = %82
%88 = getelementptr inbounds [21 x double], ptr %28, i64 0, i64 5
%89 = load double, ptr %88, align 8
store double %89, ptr %27, align 8
%90 = load i64, ptr %30, align 8
%91 = load ptr, ptr %26, align 8
%92 = getelementptr inbounds i64, ptr %91, i64 1
store i64 %90, ptr %92, align 8
%93 = load i64, ptr %29, align 8
%94 = load ptr, ptr %26, align 8
%95 = getelementptr inbounds i64, ptr %94, i64 2
store i64 %93, ptr %95, align 8
store i64 1, ptr %31, align 8
%96 = load i64, ptr %31, align 8
%97 = icmp sle i64 %96, 14
br i1 %97, label %.lr.ph2, label %113
.lr.ph2: ; preds = %87
br label %98
98: ; preds = %.lr.ph2, %108
%99 = load i64, ptr %31, align 8
%100 = getelementptr inbounds [21 x double], ptr %28, i64 0, i64 %99
%101 = load double, ptr %100, align 8
%102 = fmul double 1.000000e+04, %101
%103 = call i64 @get_round(double noundef %102)
%104 = load ptr, ptr %26, align 8
%105 = load i64, ptr %31, align 8
%106 = add nsw i64 2, %105
%107 = getelementptr inbounds i64, ptr %104, i64 %106
store i64 %103, ptr %107, align 8
br label %108
108: ; preds = %98
%109 = load i64, ptr %31, align 8
%110 = add nsw i64 %109, 1
store i64 %110, ptr %31, align 8
%111 = load i64, ptr %31, align 8
%112 = icmp sle i64 %111, 14
br i1 %112, label %98, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %108
br label %113
113: ; preds = %._crit_edge3, %87
br label %114
114: ; preds = %113, %82, %67
br label %115
115: ; preds = %114, %66
%116 = load i64, ptr %30, align 8
%117 = add nsw i64 %116, 1
store i64 %117, ptr %30, align 8
%118 = load i64, ptr %30, align 8
%119 = load i64, ptr %15, align 8
%120 = icmp sle i64 %118, %119
br i1 %120, label %50, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %115
br label %121
121: ; preds = %._crit_edge6, %46
ret void
}
declare i32 @check_pairs(i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @get_round(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpbwbjtvsf.c'
source_filename = "/tmp/tmpbwbjtvsf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [39 x i8] c"usage:\0A\09%s {i|e|a|v|r|f} n [in [out]]\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [2 x i8] c"-\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main_downsa(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 ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%16 = load i32, ptr %4, align 4
%17 = icmp ne i32 %16, 5
br i1 %17, label %18, label %30
18: ; preds = %2
%19 = load i32, ptr %4, align 4
%20 = icmp ne i32 %19, 4
br i1 %20, label %21, label %30
21: ; preds = %18
%22 = load i32, ptr %4, align 4
%23 = icmp ne i32 %22, 3
br i1 %23, label %24, label %30
24: ; preds = %21
%25 = load i32, ptr @stderr, align 4
%26 = load ptr, ptr %5, align 8
%27 = load ptr, ptr %26, align 8
%28 = call i32 @fprintf(i32 noundef %25, ptr noundef @.str, ptr noundef %27)
%29 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %29, ptr %3, align 4
br label %93
30: ; preds = %21, %18, %2
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 2
%33 = load ptr, ptr %32, align 8
%34 = call i32 @atoi(ptr noundef %33)
store i32 %34, ptr %6, align 4
%35 = load i32, ptr %4, align 4
%36 = icmp sgt i32 %35, 3
br i1 %36, label %37, label %41
37: ; preds = %30
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 3
%40 = load ptr, ptr %39, align 8
br label %42
41: ; preds = %30
br label %42
42: ; preds = %41, %37
%43 = phi ptr [ %40, %37 ], [ @.str.1, %41 ]
store ptr %43, ptr %7, align 8
%44 = load i32, ptr %4, align 4
%45 = icmp sgt i32 %44, 4
br i1 %45, label %46, label %50
46: ; preds = %42
%47 = load ptr, ptr %5, align 8
%48 = getelementptr inbounds ptr, ptr %47, i64 4
%49 = load ptr, ptr %48, align 8
br label %51
50: ; preds = %42
br label %51
51: ; preds = %50, %46
%52 = phi ptr [ %49, %46 ], [ @.str.1, %50 ]
store ptr %52, ptr %8, align 8
%53 = load ptr, ptr %7, align 8
%54 = call ptr @iio_read_image_float_vec(ptr noundef %53, ptr noundef %9, ptr noundef %10, ptr noundef %11)
store ptr %54, ptr %12, align 8
%55 = load i32, ptr %9, align 4
%56 = load i32, ptr %6, align 4
%57 = sdiv i32 %55, %56
store i32 %57, ptr %13, align 4
%58 = load i32, ptr %10, align 4
%59 = load i32, ptr %6, align 4
%60 = sdiv i32 %58, %59
store i32 %60, ptr %14, align 4
%61 = load i32, ptr %13, align 4
%62 = load i32, ptr %14, align 4
%63 = mul nsw i32 %61, %62
%64 = load i32, ptr %11, align 4
%65 = mul nsw i32 %63, %64
%66 = sext i32 %65 to i64
%67 = mul i64 %66, 4
%68 = trunc i64 %67 to i32
%69 = call ptr @xmalloc(i32 noundef %68)
store ptr %69, ptr %15, align 8
%70 = load ptr, ptr %15, align 8
%71 = load ptr, ptr %12, align 8
%72 = load i32, ptr %9, align 4
%73 = load i32, ptr %10, align 4
%74 = load i32, ptr %11, align 4
%75 = load i32, ptr %6, align 4
%76 = load ptr, ptr %5, align 8
%77 = getelementptr inbounds ptr, ptr %76, i64 1
%78 = load ptr, ptr %77, align 8
%79 = getelementptr inbounds i8, ptr %78, i64 0
%80 = load i8, ptr %79, align 1
%81 = call i32 @downsa2d(ptr noundef %70, ptr noundef %71, i32 noundef %72, i32 noundef %73, i32 noundef %74, i32 noundef %75, i8 noundef signext %80)
%82 = load ptr, ptr %8, align 8
%83 = load ptr, ptr %15, align 8
%84 = load i32, ptr %13, align 4
%85 = load i32, ptr %14, align 4
%86 = load i32, ptr %11, align 4
%87 = call i32 @iio_save_image_float_vec(ptr noundef %82, ptr noundef %83, i32 noundef %84, i32 noundef %85, i32 noundef %86)
%88 = load ptr, ptr %12, align 8
%89 = call i32 @free(ptr noundef %88)
%90 = load ptr, ptr %15, align 8
%91 = call i32 @free(ptr noundef %90)
%92 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %92, ptr %3, align 4
br label %93
93: ; preds = %51, %24
%94 = load i32, ptr %3, align 4
ret i32 %94
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare ptr @iio_read_image_float_vec(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @xmalloc(i32 noundef) #1
declare i32 @downsa2d(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef signext) #1
declare i32 @iio_save_image_float_vec(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbwbjtvsf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [39 x i8] c"usage:\0A\09%s {i|e|a|v|r|f} n [in [out]]\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [2 x i8] c"-\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main_downsa(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 ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%16 = load i32, ptr %4, align 4
%17 = icmp ne i32 %16, 5
br i1 %17, label %18, label %30
18: ; preds = %2
%19 = load i32, ptr %4, align 4
%20 = icmp ne i32 %19, 4
br i1 %20, label %21, label %30
21: ; preds = %18
%22 = load i32, ptr %4, align 4
%23 = icmp ne i32 %22, 3
br i1 %23, label %24, label %30
24: ; preds = %21
%25 = load i32, ptr @stderr, align 4
%26 = load ptr, ptr %5, align 8
%27 = load ptr, ptr %26, align 8
%28 = call i32 @fprintf(i32 noundef %25, ptr noundef @.str, ptr noundef %27)
%29 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %29, ptr %3, align 4
br label %93
30: ; preds = %21, %18, %2
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 2
%33 = load ptr, ptr %32, align 8
%34 = call i32 @atoi(ptr noundef %33)
store i32 %34, ptr %6, align 4
%35 = load i32, ptr %4, align 4
%36 = icmp sgt i32 %35, 3
br i1 %36, label %37, label %41
37: ; preds = %30
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 3
%40 = load ptr, ptr %39, align 8
br label %42
41: ; preds = %30
br label %42
42: ; preds = %41, %37
%43 = phi ptr [ %40, %37 ], [ @.str.1, %41 ]
store ptr %43, ptr %7, align 8
%44 = load i32, ptr %4, align 4
%45 = icmp sgt i32 %44, 4
br i1 %45, label %46, label %50
46: ; preds = %42
%47 = load ptr, ptr %5, align 8
%48 = getelementptr inbounds ptr, ptr %47, i64 4
%49 = load ptr, ptr %48, align 8
br label %51
50: ; preds = %42
br label %51
51: ; preds = %50, %46
%52 = phi ptr [ %49, %46 ], [ @.str.1, %50 ]
store ptr %52, ptr %8, align 8
%53 = load ptr, ptr %7, align 8
%54 = call ptr @iio_read_image_float_vec(ptr noundef %53, ptr noundef %9, ptr noundef %10, ptr noundef %11)
store ptr %54, ptr %12, align 8
%55 = load i32, ptr %9, align 4
%56 = load i32, ptr %6, align 4
%57 = sdiv i32 %55, %56
store i32 %57, ptr %13, align 4
%58 = load i32, ptr %10, align 4
%59 = load i32, ptr %6, align 4
%60 = sdiv i32 %58, %59
store i32 %60, ptr %14, align 4
%61 = load i32, ptr %13, align 4
%62 = load i32, ptr %14, align 4
%63 = mul nsw i32 %61, %62
%64 = load i32, ptr %11, align 4
%65 = mul nsw i32 %63, %64
%66 = sext i32 %65 to i64
%67 = mul i64 %66, 4
%68 = trunc i64 %67 to i32
%69 = call ptr @xmalloc(i32 noundef %68)
store ptr %69, ptr %15, align 8
%70 = load ptr, ptr %15, align 8
%71 = load ptr, ptr %12, align 8
%72 = load i32, ptr %9, align 4
%73 = load i32, ptr %10, align 4
%74 = load i32, ptr %11, align 4
%75 = load i32, ptr %6, align 4
%76 = load ptr, ptr %5, align 8
%77 = getelementptr inbounds ptr, ptr %76, i64 1
%78 = load ptr, ptr %77, align 8
%79 = getelementptr inbounds i8, ptr %78, i64 0
%80 = load i8, ptr %79, align 1
%81 = call i32 @downsa2d(ptr noundef %70, ptr noundef %71, i32 noundef %72, i32 noundef %73, i32 noundef %74, i32 noundef %75, i8 noundef signext %80)
%82 = load ptr, ptr %8, align 8
%83 = load ptr, ptr %15, align 8
%84 = load i32, ptr %13, align 4
%85 = load i32, ptr %14, align 4
%86 = load i32, ptr %11, align 4
%87 = call i32 @iio_save_image_float_vec(ptr noundef %82, ptr noundef %83, i32 noundef %84, i32 noundef %85, i32 noundef %86)
%88 = load ptr, ptr %12, align 8
%89 = call i32 @free(ptr noundef %88)
%90 = load ptr, ptr %15, align 8
%91 = call i32 @free(ptr noundef %90)
%92 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %92, ptr %3, align 4
br label %93
93: ; preds = %51, %24
%94 = load i32, ptr %3, align 4
ret i32 %94
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare ptr @iio_read_image_float_vec(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @xmalloc(i32 noundef) #1
declare i32 @downsa2d(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef signext) #1
declare i32 @iio_save_image_float_vec(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8_gqsrni.c'
source_filename = "/tmp/tmp8_gqsrni.c"
target datalayout = "e-m:e-p270: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.a = private unnamed_addr constant [9 x i32] [i32 1, i32 16, i32 24, i32 35, i32 4, i32 62, i32 73, i32 88, i32 99], align 16
@.str = private unnamed_addr constant [11 x i8] c"key_w: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [9 x i32], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.a, i64 36, i1 false)
store i32 73, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 9, ptr %7, align 4
%10 = getelementptr inbounds [9 x i32], ptr %6, i64 0, i64 0
%11 = load i32, ptr %8, align 4
%12 = load i32, ptr %7, align 4
%13 = sub nsw i32 %12, 1
%14 = call i32 @BinSearch(ptr noundef %10, i32 noundef %11, i32 noundef 0, i32 noundef %13)
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %9, align 4
%16 = call i32 @printf(ptr noundef @.str, i32 noundef %15)
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 @BinSearch(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @printf(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/tmp8_gqsrni.c"
target datalayout = "e-m:e-p270: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.a = private unnamed_addr constant [9 x i32] [i32 1, i32 16, i32 24, i32 35, i32 4, i32 62, i32 73, i32 88, i32 99], align 16
@.str = private unnamed_addr constant [11 x i8] c"key_w: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [9 x i32], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.a, i64 36, i1 false)
store i32 73, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 9, ptr %7, align 4
%10 = getelementptr inbounds [9 x i32], ptr %6, i64 0, i64 0
%11 = load i32, ptr %8, align 4
%12 = load i32, ptr %7, align 4
%13 = sub nsw i32 %12, 1
%14 = call i32 @BinSearch(ptr noundef %10, i32 noundef %11, i32 noundef 0, i32 noundef %13)
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %9, align 4
%16 = call i32 @printf(ptr noundef @.str, i32 noundef %15)
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 @BinSearch(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @printf(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/tmptxzecb5y.c'
source_filename = "/tmp/tmptxzecb5y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @uninivar_strncmp(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%10 = load ptr, ptr %7, align 8
%11 = load ptr, ptr %8, align 8
%12 = load i64, ptr %9, align 8
%13 = call i32 @strncmp(ptr noundef %10, ptr noundef %11, i64 noundef %12)
%14 = load ptr, ptr %7, align 8
%15 = load ptr, ptr %5, align 8
%16 = load i64, ptr %6, align 8
%17 = call i32 @strncmp(ptr noundef %14, ptr noundef %15, i64 noundef %16)
%18 = load ptr, ptr %4, align 8
%19 = load ptr, ptr %8, align 8
%20 = load i64, ptr %6, align 8
%21 = call i32 @strncmp(ptr noundef %18, ptr noundef %19, i64 noundef %20)
%22 = load ptr, ptr %4, align 8
%23 = load ptr, ptr %5, align 8
%24 = load i64, ptr %9, align 8
%25 = call i32 @strncmp(ptr noundef %22, ptr noundef %23, i64 noundef %24)
%26 = load ptr, ptr %4, align 8
%27 = load ptr, ptr %5, align 8
%28 = load i64, ptr %6, align 8
%29 = call i32 @strncmp(ptr noundef %26, ptr noundef %27, i64 noundef %28)
ret void
}
declare i32 @strncmp(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/tmptxzecb5y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @uninivar_strncmp(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%10 = load ptr, ptr %7, align 8
%11 = load ptr, ptr %8, align 8
%12 = load i64, ptr %9, align 8
%13 = call i32 @strncmp(ptr noundef %10, ptr noundef %11, i64 noundef %12)
%14 = load ptr, ptr %7, align 8
%15 = load ptr, ptr %5, align 8
%16 = load i64, ptr %6, align 8
%17 = call i32 @strncmp(ptr noundef %14, ptr noundef %15, i64 noundef %16)
%18 = load ptr, ptr %4, align 8
%19 = load ptr, ptr %8, align 8
%20 = load i64, ptr %6, align 8
%21 = call i32 @strncmp(ptr noundef %18, ptr noundef %19, i64 noundef %20)
%22 = load ptr, ptr %4, align 8
%23 = load ptr, ptr %5, align 8
%24 = load i64, ptr %9, align 8
%25 = call i32 @strncmp(ptr noundef %22, ptr noundef %23, i64 noundef %24)
%26 = load ptr, ptr %4, align 8
%27 = load ptr, ptr %5, align 8
%28 = load i64, ptr %6, align 8
%29 = call i32 @strncmp(ptr noundef %26, ptr noundef %27, i64 noundef %28)
ret void
}
declare i32 @strncmp(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/tmp8yqw5dxg.c'
source_filename = "/tmp/tmp8yqw5dxg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"a() from %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @a(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [100 x i8], align 16
store ptr %0, ptr %2, align 8
%4 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%5 = load ptr, ptr %2, align 8
%6 = call i32 @sprintf(ptr noundef %4, ptr noundef @.str, ptr noundef %5)
%7 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%8 = call i32 @setState(ptr noundef %7)
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @setState(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8yqw5dxg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"a() from %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @a(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [100 x i8], align 16
store ptr %0, ptr %2, align 8
%4 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%5 = load ptr, ptr %2, align 8
%6 = call i32 @sprintf(ptr noundef %4, ptr noundef @.str, ptr noundef %5)
%7 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%8 = call i32 @setState(ptr noundef %7)
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @setState(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyfo6novw.c'
source_filename = "/tmp/tmpyfo6novw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c" %i \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 1000, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
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/tmpyfo6novw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c" %i \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 1000, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
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/tmpwop373o7.c'
source_filename = "/tmp/tmpwop373o7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wRelative12(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = and i32 %5, 2048
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %15
8: ; preds = %2
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %4, align 4
%11 = and i32 %10, 2047
%12 = sub nsw i32 %11, 2048
%13 = add nsw i32 %12, 1
%14 = call i32 @wRelative(i32 noundef %9, i32 noundef %13)
br label %21
15: ; preds = %2
%16 = load i32, ptr %3, align 4
%17 = load i32, ptr %4, align 4
%18 = and i32 %17, 2047
%19 = add nsw i32 %18, 1
%20 = call i32 @wRelative(i32 noundef %16, i32 noundef %19)
br label %21
21: ; preds = %15, %8
ret void
}
declare i32 @wRelative(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/tmpwop373o7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wRelative12(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = and i32 %5, 2048
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %15
8: ; preds = %2
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %4, align 4
%11 = and i32 %10, 2047
%12 = sub nsw i32 %11, 2048
%13 = add nsw i32 %12, 1
%14 = call i32 @wRelative(i32 noundef %9, i32 noundef %13)
br label %21
15: ; preds = %2
%16 = load i32, ptr %3, align 4
%17 = load i32, ptr %4, align 4
%18 = and i32 %17, 2047
%19 = add nsw i32 %18, 1
%20 = call i32 @wRelative(i32 noundef %16, i32 noundef %19)
br label %21
21: ; preds = %15, %8
ret void
}
declare i32 @wRelative(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/tmpfsh0dh47.c'
source_filename = "/tmp/tmpfsh0dh47.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/Users/czz/c/fork.c\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"open fail\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%s\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 [100 x i8], align 16
store i32 0, ptr %1, align 4
%4 = load i32, ptr @O_RDONLY, align 4
%5 = load i32, ptr @O_NONBLOCK, align 4
%6 = or i32 %4, %5
%7 = call i32 @open(ptr noundef @.str, i32 noundef %6)
store i32 %7, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %8)
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = call i32 @perror(ptr noundef @.str.2)
store i32 -1, ptr %1, align 4
br label %24
14: ; preds = %0
br label %15
15: ; preds = %20, %14
%16 = load i32, ptr %2, align 4
%17 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%18 = call i64 @read(i32 noundef %16, ptr noundef %17, i32 noundef 99)
%19 = icmp sgt i64 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %15
%21 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %21)
br label %15, !llvm.loop !6
23: ; preds = %15
store i32 0, ptr %1, align 4
br label %24
24: ; preds = %23, %12
%25 = load i32, ptr %1, align 4
ret i32 %25
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @perror(ptr noundef) #1
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfsh0dh47.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/Users/czz/c/fork.c\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"open fail\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%s\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 [100 x i8], align 16
store i32 0, ptr %1, align 4
%4 = load i32, ptr @O_RDONLY, align 4
%5 = load i32, ptr @O_NONBLOCK, align 4
%6 = or i32 %4, %5
%7 = call i32 @open(ptr noundef @.str, i32 noundef %6)
store i32 %7, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %8)
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = call i32 @perror(ptr noundef @.str.2)
store i32 -1, ptr %1, align 4
br label %26
14: ; preds = %0
%15 = load i32, ptr %2, align 4
%16 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%17 = call i64 @read(i32 noundef %15, ptr noundef %16, i32 noundef 99)
%18 = icmp sgt i64 %17, 0
br i1 %18, label %.lr.ph, label %25
.lr.ph: ; preds = %14
br label %19
19: ; preds = %.lr.ph, %19
%20 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %20)
%22 = load i32, ptr %2, align 4
%23 = call i64 @read(i32 noundef %22, ptr noundef %16, i32 noundef 99)
%24 = icmp sgt i64 %23, 0
br i1 %24, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %25
25: ; preds = %._crit_edge, %14
store i32 0, ptr %1, align 4
br label %26
26: ; preds = %25, %12
%27 = load i32, ptr %1, align 4
ret i32 %27
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @perror(ptr noundef) #1
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp8cwlb5t4.c'
source_filename = "/tmp/tmp8cwlb5t4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Memory was allocated and freed!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%4 = call ptr @malloc(i64 noundef 1) #3
store i64 1073741824, ptr %2, align 8
br label %5
5: ; preds = %8, %0
%6 = load i64, ptr %2, align 8
%7 = icmp ugt i64 %6, 134217728
br i1 %7, label %8, label %20
8: ; preds = %5
%9 = load i64, ptr %2, align 8
%10 = call ptr @malloc(i64 noundef %9) #3
store ptr %10, ptr %3, align 8
%11 = load ptr, ptr %3, align 8
%12 = load i64, ptr %2, align 8
%13 = call i32 @memset(ptr noundef %11, i32 noundef 255, i64 noundef %12)
%14 = load ptr, ptr %3, align 8
%15 = load i64, ptr %2, align 8
%16 = call i32 @malloc_and_break(ptr noundef %14, i32 noundef 255, i64 noundef %15)
%17 = call i32 @free(i32 noundef %16)
%18 = load i64, ptr %2, align 8
%19 = udiv i64 %18, 3
store i64 %19, ptr %2, align 8
br label %5, !llvm.loop !6
20: ; preds = %5
%21 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) #2
declare i32 @free(i32 noundef) #2
declare i32 @malloc_and_break(ptr noundef, i32 noundef, i64 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 = { allocsize(0) "frame-pointer"="all" "no-trapping-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 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp8cwlb5t4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Memory was allocated and freed!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%4 = call ptr @malloc(i64 noundef 1) #3
store i64 1073741824, ptr %2, align 8
%5 = load i64, ptr %2, align 8
%6 = icmp ugt i64 %5, 134217728
br i1 %6, label %.lr.ph, label %21
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %7
%8 = load i64, ptr %2, align 8
%9 = call ptr @malloc(i64 noundef %8) #3
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
%11 = load i64, ptr %2, align 8
%12 = call i32 @memset(ptr noundef %10, i32 noundef 255, i64 noundef %11)
%13 = load ptr, ptr %3, align 8
%14 = load i64, ptr %2, align 8
%15 = call i32 @malloc_and_break(ptr noundef %13, i32 noundef 255, i64 noundef %14)
%16 = call i32 @free(i32 noundef %15)
%17 = load i64, ptr %2, align 8
%18 = udiv i64 %17, 3
store i64 %18, ptr %2, align 8
%19 = load i64, ptr %2, align 8
%20 = icmp ugt i64 %19, 134217728
br i1 %20, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %7
br label %21
21: ; preds = %._crit_edge, %0
%22 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) #2
declare i32 @free(i32 noundef) #2
declare i32 @malloc_and_break(ptr noundef, i32 noundef, i64 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 = { allocsize(0) "frame-pointer"="all" "no-trapping-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 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpj54pzutr.c'
source_filename = "/tmp/tmpj54pzutr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @remove_first_char(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
br label %3
3: ; preds = %7, %1
%4 = load ptr, ptr %2, align 8
%5 = load i64, ptr %4, align 8
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %14
7: ; preds = %3
%8 = load ptr, ptr %2, align 8
%9 = getelementptr inbounds i64, ptr %8, i64 1
%10 = load i64, ptr %9, align 8
%11 = load ptr, ptr %2, align 8
store i64 %10, ptr %11, align 8
%12 = load ptr, ptr %2, align 8
%13 = getelementptr inbounds i64, ptr %12, i32 1
store ptr %13, ptr %2, align 8
br label %3, !llvm.loop !6
14: ; preds = %3
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj54pzutr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @remove_first_char(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i64, ptr %3, align 8
%5 = icmp ne i64 %4, 0
br i1 %5, label %.lr.ph, label %16
.lr.ph: ; preds = %1
br label %6
6: ; preds = %.lr.ph, %6
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds i64, ptr %7, i64 1
%9 = load i64, ptr %8, align 8
%10 = load ptr, ptr %2, align 8
store i64 %9, ptr %10, align 8
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds i64, ptr %11, i32 1
store ptr %12, ptr %2, align 8
%13 = load ptr, ptr %2, align 8
%14 = load i64, ptr %13, align 8
%15 = icmp ne i64 %14, 0
br i1 %15, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %6
br label %16
16: ; preds = %._crit_edge, %1
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpwz98f6o3.c'
source_filename = "/tmp/tmpwz98f6o3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@INADDR_LOOPBACK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @start_server_thread(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca %struct.sockaddr_in, align 4
%5 = alloca %struct.sockaddr_in, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%7 = load i32, ptr @AF_INET, align 4
%8 = load i32, ptr @SOCK_STREAM, align 4
%9 = call i32 @socket(i32 noundef %7, i32 noundef %8, i32 noundef 0)
store i32 %9, ptr %3, align 4
%10 = call i32 @memset(ptr noundef %4, i32 noundef 0, i32 noundef 12)
%11 = load i32, ptr @AF_INET, align 4
%12 = getelementptr inbounds %struct.sockaddr_in, ptr %4, i32 0, i32 2
store i32 %11, ptr %12, align 4
%13 = load i32, ptr @INADDR_LOOPBACK, align 4
%14 = call i32 @htonl(i32 noundef %13)
%15 = getelementptr inbounds %struct.sockaddr_in, ptr %4, i32 0, i32 1
%16 = getelementptr inbounds %struct.TYPE_2__, ptr %15, i32 0, i32 0
store i32 %14, ptr %16, align 4
%17 = call i32 @htons(i32 noundef 25588)
%18 = getelementptr inbounds %struct.sockaddr_in, ptr %4, i32 0, i32 0
store i32 %17, ptr %18, align 4
%19 = load i32, ptr %3, align 4
%20 = call i32 @bind(i32 noundef %19, ptr noundef %4, i32 noundef 12)
%21 = load i32, ptr %3, align 4
%22 = call i32 @listen(i32 noundef %21, i32 noundef 5)
store i32 12, ptr %6, align 4
%23 = load i32, ptr %3, align 4
%24 = call i32 @accept(i32 noundef %23, ptr noundef %5, ptr noundef %6)
%25 = call i32 @usleep(i32 noundef 2000)
ret ptr null
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @usleep(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/tmpwz98f6o3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@INADDR_LOOPBACK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @start_server_thread(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca %struct.sockaddr_in, align 4
%5 = alloca %struct.sockaddr_in, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%7 = load i32, ptr @AF_INET, align 4
%8 = load i32, ptr @SOCK_STREAM, align 4
%9 = call i32 @socket(i32 noundef %7, i32 noundef %8, i32 noundef 0)
store i32 %9, ptr %3, align 4
%10 = call i32 @memset(ptr noundef %4, i32 noundef 0, i32 noundef 12)
%11 = load i32, ptr @AF_INET, align 4
%12 = getelementptr inbounds %struct.sockaddr_in, ptr %4, i32 0, i32 2
store i32 %11, ptr %12, align 4
%13 = load i32, ptr @INADDR_LOOPBACK, align 4
%14 = call i32 @htonl(i32 noundef %13)
%15 = getelementptr inbounds %struct.sockaddr_in, ptr %4, i32 0, i32 1
%16 = getelementptr inbounds %struct.TYPE_2__, ptr %15, i32 0, i32 0
store i32 %14, ptr %16, align 4
%17 = call i32 @htons(i32 noundef 25588)
%18 = getelementptr inbounds %struct.sockaddr_in, ptr %4, i32 0, i32 0
store i32 %17, ptr %18, align 4
%19 = load i32, ptr %3, align 4
%20 = call i32 @bind(i32 noundef %19, ptr noundef %4, i32 noundef 12)
%21 = load i32, ptr %3, align 4
%22 = call i32 @listen(i32 noundef %21, i32 noundef 5)
store i32 12, ptr %6, align 4
%23 = load i32, ptr %3, align 4
%24 = call i32 @accept(i32 noundef %23, ptr noundef %5, ptr noundef %6)
%25 = call i32 @usleep(i32 noundef 2000)
ret ptr null
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @usleep(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/tmph5sc48tz.c'
source_filename = "/tmp/tmph5sc48tz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mouse_has_data() #0 {
%1 = call i32 @inb(i32 noundef 100)
%2 = and i32 %1, 1
%3 = icmp eq i32 %2, 1
%4 = zext i1 %3 to i32
ret i32 %4
}
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmph5sc48tz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mouse_has_data() #0 {
%1 = call i32 @inb(i32 noundef 100)
%2 = and i32 %1, 1
%3 = icmp eq i32 %2, 1
%4 = zext i1 %3 to i32
ret i32 %4
}
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"}
|
; ModuleID = '/tmp/tmpot4dba5q.c'
source_filename = "/tmp/tmpot4dba5q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [53 x i8] c"Enter how many odd natural numbers you want sum up: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [46 x i8] c"\0AThe sum of given n odd natural numbers is %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 1, ptr %4, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
store i32 0, ptr %5, align 4
br label %8
8: ; preds = %18, %0
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %21
12: ; preds = %8
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %2, align 4
%15 = add nsw i32 %14, %13
store i32 %15, ptr %2, align 4
%16 = load i32, ptr %4, align 4
%17 = add nsw i32 %16, 2
store i32 %17, ptr %4, align 4
br label %18
18: ; preds = %12
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4
br label %8, !llvm.loop !6
21: ; preds = %8
%22 = load i32, ptr %2, align 4
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %22)
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpot4dba5q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [53 x i8] c"Enter how many odd natural numbers you want sum up: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [46 x i8] c"\0AThe sum of given n odd natural numbers is %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 1, ptr %4, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
store i32 0, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %23
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %17
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr %2, align 4
%14 = add nsw i32 %13, %12
store i32 %14, ptr %2, align 4
%15 = load i32, ptr %4, align 4
%16 = add nsw i32 %15, 2
store i32 %16, ptr %4, align 4
br label %17
17: ; preds = %11
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %3, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %23
23: ; preds = %._crit_edge, %0
%24 = load i32, ptr %2, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %24)
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpmhirva52.c'
source_filename = "/tmp/tmpmhirva52.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"%15s : %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"SIGHUP\00", align 1
@SIGHUP = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [7 x i8] c"SIGINT\00", align 1
@SIGINT = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [8 x i8] c"SIGQUIT\00", align 1
@SIGQUIT = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [7 x i8] c"SIGILL\00", align 1
@SIGILL = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [8 x i8] c"SIGTRAP\00", align 1
@SIGTRAP = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [8 x i8] c"SIGABRT\00", align 1
@SIGABRT = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [7 x i8] c"SIGBUS\00", align 1
@SIGBUS = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [7 x i8] c"SIGFPE\00", align 1
@SIGFPE = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [8 x i8] c"SIGKILL\00", align 1
@SIGKILL = dso_local global i32 0, align 4
@.str.10 = private unnamed_addr constant [8 x i8] c"SIGUSR1\00", align 1
@SIGUSR1 = dso_local global i32 0, align 4
@.str.11 = private unnamed_addr constant [8 x i8] c"SIGSEGV\00", align 1
@SIGSEGV = dso_local global i32 0, align 4
@.str.12 = private unnamed_addr constant [8 x i8] c"SIGUSR2\00", align 1
@SIGUSR2 = dso_local global i32 0, align 4
@.str.13 = private unnamed_addr constant [8 x i8] c"SIGPIPE\00", align 1
@SIGPIPE = dso_local global i32 0, align 4
@.str.14 = private unnamed_addr constant [8 x i8] c"SIGALRM\00", align 1
@SIGALRM = dso_local global i32 0, align 4
@.str.15 = private unnamed_addr constant [8 x i8] c"SIGTERM\00", align 1
@SIGTERM = dso_local global i32 0, align 4
@.str.16 = private unnamed_addr constant [10 x i8] c"SIGSTKFLT\00", align 1
@SIGSTKFLT = dso_local global i32 0, align 4
@.str.17 = private unnamed_addr constant [8 x i8] c"SIGCHLD\00", align 1
@SIGCHLD = dso_local global i32 0, align 4
@.str.18 = private unnamed_addr constant [8 x i8] c"SIGCONT\00", align 1
@SIGCONT = dso_local global i32 0, align 4
@.str.19 = private unnamed_addr constant [8 x i8] c"SIGSTOP\00", align 1
@SIGSTOP = dso_local global i32 0, align 4
@.str.20 = private unnamed_addr constant [8 x i8] c"SIGTSTP\00", align 1
@SIGTSTP = dso_local global i32 0, align 4
@.str.21 = private unnamed_addr constant [8 x i8] c"SIGTTIN\00", align 1
@SIGTTIN = dso_local global i32 0, align 4
@.str.22 = private unnamed_addr constant [8 x i8] c"SIGTTOU\00", align 1
@SIGTTOU = dso_local global i32 0, align 4
@.str.23 = private unnamed_addr constant [7 x i8] c"SIGURG\00", align 1
@SIGURG = dso_local global i32 0, align 4
@.str.24 = private unnamed_addr constant [8 x i8] c"SIGXCPU\00", align 1
@SIGXCPU = dso_local global i32 0, align 4
@.str.25 = private unnamed_addr constant [8 x i8] c"SIGXFSZ\00", align 1
@SIGXFSZ = dso_local global i32 0, align 4
@.str.26 = private unnamed_addr constant [10 x i8] c"SIGVTALRM\00", align 1
@SIGVTALRM = dso_local global i32 0, align 4
@.str.27 = private unnamed_addr constant [8 x i8] c"SIGPROF\00", align 1
@SIGPROF = dso_local global i32 0, align 4
@.str.28 = private unnamed_addr constant [9 x i8] c"SIGWINCH\00", align 1
@SIGWINCH = dso_local global i32 0, align 4
@.str.29 = private unnamed_addr constant [6 x i8] c"SIGIO\00", align 1
@SIGIO = dso_local global i32 0, align 4
@.str.30 = private unnamed_addr constant [7 x i8] c"SIGPWR\00", align 1
@SIGPWR = dso_local global i32 0, align 4
@.str.31 = private unnamed_addr constant [7 x i8] c"SIGSYS\00", align 1
@SIGSYS = dso_local global i32 0, align 4
@.str.32 = private unnamed_addr constant [9 x i8] c"SIGRTMIN\00", align 1
@SIGRTMIN = dso_local global i32 0, align 4
@.str.33 = private unnamed_addr constant [11 x i8] c"SIGRTMIN+2\00", align 1
@.str.34 = private unnamed_addr constant [11 x i8] c"SIGRTMIN+3\00", align 1
@.str.35 = private unnamed_addr constant [11 x i8] c"SIGRTMIN+4\00", align 1
@.str.36 = private unnamed_addr constant [11 x i8] c"SIGRTMIN+5\00", align 1
@.str.37 = private unnamed_addr constant [11 x i8] c"SIGRTMIN+6\00", align 1
@.str.38 = private unnamed_addr constant [11 x i8] c"SIGRTMIN+7\00", align 1
@.str.39 = private unnamed_addr constant [11 x i8] c"SIGRTMIN+8\00", align 1
@.str.40 = private unnamed_addr constant [11 x i8] c"SIGRTMIN+9\00", align 1
@.str.41 = private unnamed_addr constant [12 x i8] c"SIGRTMIN+10\00", align 1
@.str.42 = private unnamed_addr constant [12 x i8] c"SIGRTMIN+11\00", align 1
@.str.43 = private unnamed_addr constant [12 x i8] c"SIGRTMIN+12\00", align 1
@.str.44 = private unnamed_addr constant [12 x i8] c"SIGRTMIN+13\00", align 1
@.str.45 = private unnamed_addr constant [12 x i8] c"SIGRTMIN+14\00", align 1
@.str.46 = private unnamed_addr constant [12 x i8] c"SIGRTMIN+15\00", align 1
@.str.47 = private unnamed_addr constant [12 x i8] c"SIGRTMAX-14\00", align 1
@SIGRTMAX = dso_local global i32 0, align 4
@.str.48 = private unnamed_addr constant [12 x i8] c"SIGRTMAX-13\00", align 1
@.str.49 = private unnamed_addr constant [12 x i8] c"SIGRTMAX-12\00", align 1
@.str.50 = private unnamed_addr constant [12 x i8] c"SIGRTMAX-11\00", align 1
@.str.51 = private unnamed_addr constant [12 x i8] c"SIGRTMAX-10\00", align 1
@.str.52 = private unnamed_addr constant [11 x i8] c"SIGRTMAX-9\00", align 1
@.str.53 = private unnamed_addr constant [11 x i8] c"SIGRTMAX-8\00", align 1
@.str.54 = private unnamed_addr constant [11 x i8] c"SIGRTMAX-7\00", align 1
@.str.55 = private unnamed_addr constant [11 x i8] c"SIGRTMAX-6\00", align 1
@.str.56 = private unnamed_addr constant [11 x i8] c"SIGRTMAX-5\00", align 1
@.str.57 = private unnamed_addr constant [11 x i8] c"SIGRTMAX-4\00", align 1
@.str.58 = private unnamed_addr constant [11 x i8] c"SIGRTMAX-3\00", align 1
@.str.59 = private unnamed_addr constant [11 x i8] c"SIGRTMAX-2\00", align 1
@.str.60 = private unnamed_addr constant [11 x i8] c"SIGRTMAX-1\00", align 1
@.str.61 = private unnamed_addr constant [9 x i8] c"SIGRTMAX\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @print_signal() #0 {
%1 = load i32, ptr @SIGHUP, align 4
%2 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %1)
%3 = load i32, ptr @SIGINT, align 4
%4 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.2, i32 noundef %3)
%5 = load i32, ptr @SIGQUIT, align 4
%6 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.3, i32 noundef %5)
%7 = load i32, ptr @SIGILL, align 4
%8 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.4, i32 noundef %7)
%9 = load i32, ptr @SIGTRAP, align 4
%10 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.5, i32 noundef %9)
%11 = load i32, ptr @SIGABRT, align 4
%12 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.6, i32 noundef %11)
%13 = load i32, ptr @SIGBUS, align 4
%14 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.7, i32 noundef %13)
%15 = load i32, ptr @SIGFPE, align 4
%16 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.8, i32 noundef %15)
%17 = load i32, ptr @SIGKILL, align 4
%18 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.9, i32 noundef %17)
%19 = load i32, ptr @SIGUSR1, align 4
%20 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.10, i32 noundef %19)
%21 = load i32, ptr @SIGSEGV, align 4
%22 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.11, i32 noundef %21)
%23 = load i32, ptr @SIGUSR2, align 4
%24 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.12, i32 noundef %23)
%25 = load i32, ptr @SIGPIPE, align 4
%26 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.13, i32 noundef %25)
%27 = load i32, ptr @SIGALRM, align 4
%28 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.14, i32 noundef %27)
%29 = load i32, ptr @SIGTERM, align 4
%30 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.15, i32 noundef %29)
%31 = load i32, ptr @SIGSTKFLT, align 4
%32 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.16, i32 noundef %31)
%33 = load i32, ptr @SIGCHLD, align 4
%34 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.17, i32 noundef %33)
%35 = load i32, ptr @SIGCONT, align 4
%36 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.18, i32 noundef %35)
%37 = load i32, ptr @SIGSTOP, align 4
%38 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.19, i32 noundef %37)
%39 = load i32, ptr @SIGTSTP, align 4
%40 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.20, i32 noundef %39)
%41 = load i32, ptr @SIGTTIN, align 4
%42 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.21, i32 noundef %41)
%43 = load i32, ptr @SIGTTOU, align 4
%44 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.22, i32 noundef %43)
%45 = load i32, ptr @SIGURG, align 4
%46 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.23, i32 noundef %45)
%47 = load i32, ptr @SIGXCPU, align 4
%48 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.24, i32 noundef %47)
%49 = load i32, ptr @SIGXFSZ, align 4
%50 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.25, i32 noundef %49)
%51 = load i32, ptr @SIGVTALRM, align 4
%52 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.26, i32 noundef %51)
%53 = load i32, ptr @SIGPROF, align 4
%54 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.27, i32 noundef %53)
%55 = load i32, ptr @SIGWINCH, align 4
%56 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.28, i32 noundef %55)
%57 = load i32, ptr @SIGIO, align 4
%58 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.29, i32 noundef %57)
%59 = load i32, ptr @SIGPWR, align 4
%60 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.30, i32 noundef %59)
%61 = load i32, ptr @SIGSYS, align 4
%62 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.31, i32 noundef %61)
%63 = load i32, ptr @SIGRTMIN, align 4
%64 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.32, i32 noundef %63)
%65 = load i32, ptr @SIGRTMIN, align 4
%66 = add nsw i32 %65, 2
%67 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.33, i32 noundef %66)
%68 = load i32, ptr @SIGRTMIN, align 4
%69 = add nsw i32 %68, 3
%70 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.34, i32 noundef %69)
%71 = load i32, ptr @SIGRTMIN, align 4
%72 = add nsw i32 %71, 4
%73 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.35, i32 noundef %72)
%74 = load i32, ptr @SIGRTMIN, align 4
%75 = add nsw i32 %74, 5
%76 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.36, i32 noundef %75)
%77 = load i32, ptr @SIGRTMIN, align 4
%78 = add nsw i32 %77, 6
%79 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.37, i32 noundef %78)
%80 = load i32, ptr @SIGRTMIN, align 4
%81 = add nsw i32 %80, 7
%82 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.38, i32 noundef %81)
%83 = load i32, ptr @SIGRTMIN, align 4
%84 = add nsw i32 %83, 8
%85 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.39, i32 noundef %84)
%86 = load i32, ptr @SIGRTMIN, align 4
%87 = add nsw i32 %86, 9
%88 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.40, i32 noundef %87)
%89 = load i32, ptr @SIGRTMIN, align 4
%90 = add nsw i32 %89, 10
%91 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.41, i32 noundef %90)
%92 = load i32, ptr @SIGRTMIN, align 4
%93 = add nsw i32 %92, 11
%94 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.42, i32 noundef %93)
%95 = load i32, ptr @SIGRTMIN, align 4
%96 = add nsw i32 %95, 12
%97 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.43, i32 noundef %96)
%98 = load i32, ptr @SIGRTMIN, align 4
%99 = add nsw i32 %98, 13
%100 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.44, i32 noundef %99)
%101 = load i32, ptr @SIGRTMIN, align 4
%102 = add nsw i32 %101, 14
%103 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.45, i32 noundef %102)
%104 = load i32, ptr @SIGRTMIN, align 4
%105 = add nsw i32 %104, 15
%106 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.46, i32 noundef %105)
%107 = load i32, ptr @SIGRTMAX, align 4
%108 = sub nsw i32 %107, 14
%109 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.47, i32 noundef %108)
%110 = load i32, ptr @SIGRTMAX, align 4
%111 = sub nsw i32 %110, 13
%112 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.48, i32 noundef %111)
%113 = load i32, ptr @SIGRTMAX, align 4
%114 = sub nsw i32 %113, 12
%115 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.49, i32 noundef %114)
%116 = load i32, ptr @SIGRTMAX, align 4
%117 = sub nsw i32 %116, 11
%118 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.50, i32 noundef %117)
%119 = load i32, ptr @SIGRTMAX, align 4
%120 = sub nsw i32 %119, 10
%121 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.51, i32 noundef %120)
%122 = load i32, ptr @SIGRTMAX, align 4
%123 = sub nsw i32 %122, 9
%124 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.52, i32 noundef %123)
%125 = load i32, ptr @SIGRTMAX, align 4
%126 = sub nsw i32 %125, 8
%127 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.53, i32 noundef %126)
%128 = load i32, ptr @SIGRTMAX, align 4
%129 = sub nsw i32 %128, 7
%130 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.54, i32 noundef %129)
%131 = load i32, ptr @SIGRTMAX, align 4
%132 = sub nsw i32 %131, 6
%133 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.55, i32 noundef %132)
%134 = load i32, ptr @SIGRTMAX, align 4
%135 = sub nsw i32 %134, 5
%136 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.56, i32 noundef %135)
%137 = load i32, ptr @SIGRTMAX, align 4
%138 = sub nsw i32 %137, 4
%139 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.57, i32 noundef %138)
%140 = load i32, ptr @SIGRTMAX, align 4
%141 = sub nsw i32 %140, 3
%142 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.58, i32 noundef %141)
%143 = load i32, ptr @SIGRTMAX, align 4
%144 = sub nsw i32 %143, 2
%145 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.59, i32 noundef %144)
%146 = load i32, ptr @SIGRTMAX, align 4
%147 = sub nsw i32 %146, 1
%148 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.60, i32 noundef %147)
%149 = load i32, ptr @SIGRTMAX, align 4
%150 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.61, i32 noundef %149)
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmhirva52.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"%15s : %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"SIGHUP\00", align 1
@SIGHUP = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [7 x i8] c"SIGINT\00", align 1
@SIGINT = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [8 x i8] c"SIGQUIT\00", align 1
@SIGQUIT = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [7 x i8] c"SIGILL\00", align 1
@SIGILL = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [8 x i8] c"SIGTRAP\00", align 1
@SIGTRAP = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [8 x i8] c"SIGABRT\00", align 1
@SIGABRT = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [7 x i8] c"SIGBUS\00", align 1
@SIGBUS = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [7 x i8] c"SIGFPE\00", align 1
@SIGFPE = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [8 x i8] c"SIGKILL\00", align 1
@SIGKILL = dso_local global i32 0, align 4
@.str.10 = private unnamed_addr constant [8 x i8] c"SIGUSR1\00", align 1
@SIGUSR1 = dso_local global i32 0, align 4
@.str.11 = private unnamed_addr constant [8 x i8] c"SIGSEGV\00", align 1
@SIGSEGV = dso_local global i32 0, align 4
@.str.12 = private unnamed_addr constant [8 x i8] c"SIGUSR2\00", align 1
@SIGUSR2 = dso_local global i32 0, align 4
@.str.13 = private unnamed_addr constant [8 x i8] c"SIGPIPE\00", align 1
@SIGPIPE = dso_local global i32 0, align 4
@.str.14 = private unnamed_addr constant [8 x i8] c"SIGALRM\00", align 1
@SIGALRM = dso_local global i32 0, align 4
@.str.15 = private unnamed_addr constant [8 x i8] c"SIGTERM\00", align 1
@SIGTERM = dso_local global i32 0, align 4
@.str.16 = private unnamed_addr constant [10 x i8] c"SIGSTKFLT\00", align 1
@SIGSTKFLT = dso_local global i32 0, align 4
@.str.17 = private unnamed_addr constant [8 x i8] c"SIGCHLD\00", align 1
@SIGCHLD = dso_local global i32 0, align 4
@.str.18 = private unnamed_addr constant [8 x i8] c"SIGCONT\00", align 1
@SIGCONT = dso_local global i32 0, align 4
@.str.19 = private unnamed_addr constant [8 x i8] c"SIGSTOP\00", align 1
@SIGSTOP = dso_local global i32 0, align 4
@.str.20 = private unnamed_addr constant [8 x i8] c"SIGTSTP\00", align 1
@SIGTSTP = dso_local global i32 0, align 4
@.str.21 = private unnamed_addr constant [8 x i8] c"SIGTTIN\00", align 1
@SIGTTIN = dso_local global i32 0, align 4
@.str.22 = private unnamed_addr constant [8 x i8] c"SIGTTOU\00", align 1
@SIGTTOU = dso_local global i32 0, align 4
@.str.23 = private unnamed_addr constant [7 x i8] c"SIGURG\00", align 1
@SIGURG = dso_local global i32 0, align 4
@.str.24 = private unnamed_addr constant [8 x i8] c"SIGXCPU\00", align 1
@SIGXCPU = dso_local global i32 0, align 4
@.str.25 = private unnamed_addr constant [8 x i8] c"SIGXFSZ\00", align 1
@SIGXFSZ = dso_local global i32 0, align 4
@.str.26 = private unnamed_addr constant [10 x i8] c"SIGVTALRM\00", align 1
@SIGVTALRM = dso_local global i32 0, align 4
@.str.27 = private unnamed_addr constant [8 x i8] c"SIGPROF\00", align 1
@SIGPROF = dso_local global i32 0, align 4
@.str.28 = private unnamed_addr constant [9 x i8] c"SIGWINCH\00", align 1
@SIGWINCH = dso_local global i32 0, align 4
@.str.29 = private unnamed_addr constant [6 x i8] c"SIGIO\00", align 1
@SIGIO = dso_local global i32 0, align 4
@.str.30 = private unnamed_addr constant [7 x i8] c"SIGPWR\00", align 1
@SIGPWR = dso_local global i32 0, align 4
@.str.31 = private unnamed_addr constant [7 x i8] c"SIGSYS\00", align 1
@SIGSYS = dso_local global i32 0, align 4
@.str.32 = private unnamed_addr constant [9 x i8] c"SIGRTMIN\00", align 1
@SIGRTMIN = dso_local global i32 0, align 4
@.str.33 = private unnamed_addr constant [11 x i8] c"SIGRTMIN+2\00", align 1
@.str.34 = private unnamed_addr constant [11 x i8] c"SIGRTMIN+3\00", align 1
@.str.35 = private unnamed_addr constant [11 x i8] c"SIGRTMIN+4\00", align 1
@.str.36 = private unnamed_addr constant [11 x i8] c"SIGRTMIN+5\00", align 1
@.str.37 = private unnamed_addr constant [11 x i8] c"SIGRTMIN+6\00", align 1
@.str.38 = private unnamed_addr constant [11 x i8] c"SIGRTMIN+7\00", align 1
@.str.39 = private unnamed_addr constant [11 x i8] c"SIGRTMIN+8\00", align 1
@.str.40 = private unnamed_addr constant [11 x i8] c"SIGRTMIN+9\00", align 1
@.str.41 = private unnamed_addr constant [12 x i8] c"SIGRTMIN+10\00", align 1
@.str.42 = private unnamed_addr constant [12 x i8] c"SIGRTMIN+11\00", align 1
@.str.43 = private unnamed_addr constant [12 x i8] c"SIGRTMIN+12\00", align 1
@.str.44 = private unnamed_addr constant [12 x i8] c"SIGRTMIN+13\00", align 1
@.str.45 = private unnamed_addr constant [12 x i8] c"SIGRTMIN+14\00", align 1
@.str.46 = private unnamed_addr constant [12 x i8] c"SIGRTMIN+15\00", align 1
@.str.47 = private unnamed_addr constant [12 x i8] c"SIGRTMAX-14\00", align 1
@SIGRTMAX = dso_local global i32 0, align 4
@.str.48 = private unnamed_addr constant [12 x i8] c"SIGRTMAX-13\00", align 1
@.str.49 = private unnamed_addr constant [12 x i8] c"SIGRTMAX-12\00", align 1
@.str.50 = private unnamed_addr constant [12 x i8] c"SIGRTMAX-11\00", align 1
@.str.51 = private unnamed_addr constant [12 x i8] c"SIGRTMAX-10\00", align 1
@.str.52 = private unnamed_addr constant [11 x i8] c"SIGRTMAX-9\00", align 1
@.str.53 = private unnamed_addr constant [11 x i8] c"SIGRTMAX-8\00", align 1
@.str.54 = private unnamed_addr constant [11 x i8] c"SIGRTMAX-7\00", align 1
@.str.55 = private unnamed_addr constant [11 x i8] c"SIGRTMAX-6\00", align 1
@.str.56 = private unnamed_addr constant [11 x i8] c"SIGRTMAX-5\00", align 1
@.str.57 = private unnamed_addr constant [11 x i8] c"SIGRTMAX-4\00", align 1
@.str.58 = private unnamed_addr constant [11 x i8] c"SIGRTMAX-3\00", align 1
@.str.59 = private unnamed_addr constant [11 x i8] c"SIGRTMAX-2\00", align 1
@.str.60 = private unnamed_addr constant [11 x i8] c"SIGRTMAX-1\00", align 1
@.str.61 = private unnamed_addr constant [9 x i8] c"SIGRTMAX\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @print_signal() #0 {
%1 = load i32, ptr @SIGHUP, align 4
%2 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %1)
%3 = load i32, ptr @SIGINT, align 4
%4 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.2, i32 noundef %3)
%5 = load i32, ptr @SIGQUIT, align 4
%6 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.3, i32 noundef %5)
%7 = load i32, ptr @SIGILL, align 4
%8 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.4, i32 noundef %7)
%9 = load i32, ptr @SIGTRAP, align 4
%10 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.5, i32 noundef %9)
%11 = load i32, ptr @SIGABRT, align 4
%12 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.6, i32 noundef %11)
%13 = load i32, ptr @SIGBUS, align 4
%14 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.7, i32 noundef %13)
%15 = load i32, ptr @SIGFPE, align 4
%16 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.8, i32 noundef %15)
%17 = load i32, ptr @SIGKILL, align 4
%18 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.9, i32 noundef %17)
%19 = load i32, ptr @SIGUSR1, align 4
%20 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.10, i32 noundef %19)
%21 = load i32, ptr @SIGSEGV, align 4
%22 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.11, i32 noundef %21)
%23 = load i32, ptr @SIGUSR2, align 4
%24 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.12, i32 noundef %23)
%25 = load i32, ptr @SIGPIPE, align 4
%26 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.13, i32 noundef %25)
%27 = load i32, ptr @SIGALRM, align 4
%28 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.14, i32 noundef %27)
%29 = load i32, ptr @SIGTERM, align 4
%30 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.15, i32 noundef %29)
%31 = load i32, ptr @SIGSTKFLT, align 4
%32 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.16, i32 noundef %31)
%33 = load i32, ptr @SIGCHLD, align 4
%34 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.17, i32 noundef %33)
%35 = load i32, ptr @SIGCONT, align 4
%36 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.18, i32 noundef %35)
%37 = load i32, ptr @SIGSTOP, align 4
%38 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.19, i32 noundef %37)
%39 = load i32, ptr @SIGTSTP, align 4
%40 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.20, i32 noundef %39)
%41 = load i32, ptr @SIGTTIN, align 4
%42 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.21, i32 noundef %41)
%43 = load i32, ptr @SIGTTOU, align 4
%44 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.22, i32 noundef %43)
%45 = load i32, ptr @SIGURG, align 4
%46 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.23, i32 noundef %45)
%47 = load i32, ptr @SIGXCPU, align 4
%48 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.24, i32 noundef %47)
%49 = load i32, ptr @SIGXFSZ, align 4
%50 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.25, i32 noundef %49)
%51 = load i32, ptr @SIGVTALRM, align 4
%52 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.26, i32 noundef %51)
%53 = load i32, ptr @SIGPROF, align 4
%54 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.27, i32 noundef %53)
%55 = load i32, ptr @SIGWINCH, align 4
%56 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.28, i32 noundef %55)
%57 = load i32, ptr @SIGIO, align 4
%58 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.29, i32 noundef %57)
%59 = load i32, ptr @SIGPWR, align 4
%60 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.30, i32 noundef %59)
%61 = load i32, ptr @SIGSYS, align 4
%62 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.31, i32 noundef %61)
%63 = load i32, ptr @SIGRTMIN, align 4
%64 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.32, i32 noundef %63)
%65 = load i32, ptr @SIGRTMIN, align 4
%66 = add nsw i32 %65, 2
%67 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.33, i32 noundef %66)
%68 = load i32, ptr @SIGRTMIN, align 4
%69 = add nsw i32 %68, 3
%70 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.34, i32 noundef %69)
%71 = load i32, ptr @SIGRTMIN, align 4
%72 = add nsw i32 %71, 4
%73 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.35, i32 noundef %72)
%74 = load i32, ptr @SIGRTMIN, align 4
%75 = add nsw i32 %74, 5
%76 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.36, i32 noundef %75)
%77 = load i32, ptr @SIGRTMIN, align 4
%78 = add nsw i32 %77, 6
%79 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.37, i32 noundef %78)
%80 = load i32, ptr @SIGRTMIN, align 4
%81 = add nsw i32 %80, 7
%82 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.38, i32 noundef %81)
%83 = load i32, ptr @SIGRTMIN, align 4
%84 = add nsw i32 %83, 8
%85 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.39, i32 noundef %84)
%86 = load i32, ptr @SIGRTMIN, align 4
%87 = add nsw i32 %86, 9
%88 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.40, i32 noundef %87)
%89 = load i32, ptr @SIGRTMIN, align 4
%90 = add nsw i32 %89, 10
%91 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.41, i32 noundef %90)
%92 = load i32, ptr @SIGRTMIN, align 4
%93 = add nsw i32 %92, 11
%94 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.42, i32 noundef %93)
%95 = load i32, ptr @SIGRTMIN, align 4
%96 = add nsw i32 %95, 12
%97 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.43, i32 noundef %96)
%98 = load i32, ptr @SIGRTMIN, align 4
%99 = add nsw i32 %98, 13
%100 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.44, i32 noundef %99)
%101 = load i32, ptr @SIGRTMIN, align 4
%102 = add nsw i32 %101, 14
%103 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.45, i32 noundef %102)
%104 = load i32, ptr @SIGRTMIN, align 4
%105 = add nsw i32 %104, 15
%106 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.46, i32 noundef %105)
%107 = load i32, ptr @SIGRTMAX, align 4
%108 = sub nsw i32 %107, 14
%109 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.47, i32 noundef %108)
%110 = load i32, ptr @SIGRTMAX, align 4
%111 = sub nsw i32 %110, 13
%112 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.48, i32 noundef %111)
%113 = load i32, ptr @SIGRTMAX, align 4
%114 = sub nsw i32 %113, 12
%115 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.49, i32 noundef %114)
%116 = load i32, ptr @SIGRTMAX, align 4
%117 = sub nsw i32 %116, 11
%118 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.50, i32 noundef %117)
%119 = load i32, ptr @SIGRTMAX, align 4
%120 = sub nsw i32 %119, 10
%121 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.51, i32 noundef %120)
%122 = load i32, ptr @SIGRTMAX, align 4
%123 = sub nsw i32 %122, 9
%124 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.52, i32 noundef %123)
%125 = load i32, ptr @SIGRTMAX, align 4
%126 = sub nsw i32 %125, 8
%127 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.53, i32 noundef %126)
%128 = load i32, ptr @SIGRTMAX, align 4
%129 = sub nsw i32 %128, 7
%130 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.54, i32 noundef %129)
%131 = load i32, ptr @SIGRTMAX, align 4
%132 = sub nsw i32 %131, 6
%133 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.55, i32 noundef %132)
%134 = load i32, ptr @SIGRTMAX, align 4
%135 = sub nsw i32 %134, 5
%136 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.56, i32 noundef %135)
%137 = load i32, ptr @SIGRTMAX, align 4
%138 = sub nsw i32 %137, 4
%139 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.57, i32 noundef %138)
%140 = load i32, ptr @SIGRTMAX, align 4
%141 = sub nsw i32 %140, 3
%142 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.58, i32 noundef %141)
%143 = load i32, ptr @SIGRTMAX, align 4
%144 = sub nsw i32 %143, 2
%145 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.59, i32 noundef %144)
%146 = load i32, ptr @SIGRTMAX, align 4
%147 = sub nsw i32 %146, 1
%148 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.60, i32 noundef %147)
%149 = load i32, ptr @SIGRTMAX, align 4
%150 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.61, i32 noundef %149)
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqpupkgg7.c'
source_filename = "/tmp/tmpqpupkgg7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @EPIConfigHB8CSSet(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp slt i32 %9, 2
br i1 %10, label %11, label %15
11: ; preds = %3
%12 = load i32, ptr %5, align 4
%13 = shl i32 %12, 2
%14 = add nsw i32 16, %13
store i32 %14, ptr %7, align 4
br label %20
15: ; preds = %3
%16 = load i32, ptr %5, align 4
%17 = sub nsw i32 %16, 2
%18 = shl i32 %17, 2
%19 = add nsw i32 776, %18
store i32 %19, ptr %7, align 4
br label %20
20: ; preds = %15, %11
%21 = load i32, ptr %4, align 4
%22 = load i32, ptr %7, align 4
%23 = add nsw i32 %21, %22
%24 = sext i32 %23 to i64
%25 = inttoptr i64 %24 to ptr
%26 = load volatile i32, ptr %25, align 4
%27 = and i32 %26, -3670260
store i32 %27, ptr %8, align 4
%28 = load i32, ptr %8, align 4
%29 = load i32, ptr %6, align 4
%30 = or i32 %28, %29
%31 = load i32, ptr %4, align 4
%32 = load i32, ptr %7, align 4
%33 = add nsw i32 %31, %32
%34 = sext i32 %33 to i64
%35 = inttoptr i64 %34 to ptr
store volatile i32 %30, ptr %35, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqpupkgg7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @EPIConfigHB8CSSet(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp slt i32 %9, 2
br i1 %10, label %11, label %15
11: ; preds = %3
%12 = load i32, ptr %5, align 4
%13 = shl i32 %12, 2
%14 = add nsw i32 16, %13
store i32 %14, ptr %7, align 4
br label %20
15: ; preds = %3
%16 = load i32, ptr %5, align 4
%17 = sub nsw i32 %16, 2
%18 = shl i32 %17, 2
%19 = add nsw i32 776, %18
store i32 %19, ptr %7, align 4
br label %20
20: ; preds = %15, %11
%21 = load i32, ptr %4, align 4
%22 = load i32, ptr %7, align 4
%23 = add nsw i32 %21, %22
%24 = sext i32 %23 to i64
%25 = inttoptr i64 %24 to ptr
%26 = load volatile i32, ptr %25, align 4
%27 = and i32 %26, -3670260
store i32 %27, ptr %8, align 4
%28 = load i32, ptr %8, align 4
%29 = load i32, ptr %6, align 4
%30 = or i32 %28, %29
%31 = load i32, ptr %4, align 4
%32 = load i32, ptr %7, align 4
%33 = add nsw i32 %31, %32
%34 = sext i32 %33 to i64
%35 = inttoptr i64 %34 to ptr
store volatile i32 %30, ptr %35, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpiz2c1g05.c'
source_filename = "/tmp/tmpiz2c1g05.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@A_ATTRIBUTES = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @term_addch(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = load i32, ptr @A_ATTRIBUTES, align 4
%5 = xor i32 %4, -1
%6 = and i32 %3, %5
%7 = call i32 @addch(i32 noundef %6)
ret void
}
declare i32 @addch(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/tmpiz2c1g05.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@A_ATTRIBUTES = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @term_addch(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = load i32, ptr @A_ATTRIBUTES, align 4
%5 = xor i32 %4, -1
%6 = and i32 %3, %5
%7 = call i32 @addch(i32 noundef %6)
ret void
}
declare i32 @addch(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/tmpmwznrhht.c'
source_filename = "/tmp/tmpmwznrhht.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @openPathBetween(i16 noundef signext %0, i16 noundef signext %1, i16 noundef signext %2, i16 noundef signext %3) #0 {
%5 = alloca i8, align 1
%6 = alloca i16, align 2
%7 = alloca i16, align 2
%8 = alloca i16, align 2
%9 = alloca i16, align 2
%10 = alloca [2 x i16], align 2
%11 = alloca [2 x i16], align 2
%12 = alloca [2 x i16], align 2
store i16 %0, ptr %6, align 2
store i16 %1, ptr %7, align 2
store i16 %2, ptr %8, align 2
store i16 %3, ptr %9, align 2
%13 = getelementptr inbounds [2 x i16], ptr %11, i64 0, i64 0
%14 = load i16, ptr %6, align 2
store i16 %14, ptr %13, align 2
%15 = getelementptr inbounds i16, ptr %13, i64 1
%16 = load i16, ptr %7, align 2
store i16 %16, ptr %15, align 2
%17 = getelementptr inbounds [2 x i16], ptr %12, i64 0, i64 0
%18 = load i16, ptr %8, align 2
store i16 %18, ptr %17, align 2
%19 = getelementptr inbounds i16, ptr %17, i64 1
%20 = load i16, ptr %9, align 2
store i16 %20, ptr %19, align 2
%21 = getelementptr inbounds [2 x i16], ptr %10, i64 0, i64 0
%22 = getelementptr inbounds [2 x i16], ptr %11, i64 0, i64 0
%23 = getelementptr inbounds [2 x i16], ptr %12, i64 0, i64 0
%24 = call i32 @getImpactLoc(ptr noundef %21, ptr noundef %22, ptr noundef %23, i32 noundef 79, i32 noundef 0)
%25 = getelementptr inbounds [2 x i16], ptr %10, i64 0, i64 0
%26 = load i16, ptr %25, align 2
%27 = sext i16 %26 to i32
%28 = getelementptr inbounds [2 x i16], ptr %12, i64 0, i64 0
%29 = load i16, ptr %28, align 2
%30 = sext i16 %29 to i32
%31 = icmp eq i32 %27, %30
br i1 %31, label %32, label %41
32: ; preds = %4
%33 = getelementptr inbounds [2 x i16], ptr %10, i64 0, i64 1
%34 = load i16, ptr %33, align 2
%35 = sext i16 %34 to i32
%36 = getelementptr inbounds [2 x i16], ptr %12, i64 0, i64 1
%37 = load i16, ptr %36, align 2
%38 = sext i16 %37 to i32
%39 = icmp eq i32 %35, %38
br i1 %39, label %40, label %41
40: ; preds = %32
store i8 1, ptr %5, align 1
br label %42
41: ; preds = %32, %4
store i8 0, ptr %5, align 1
br label %42
42: ; preds = %41, %40
%43 = load i8, ptr %5, align 1
ret i8 %43
}
declare i32 @getImpactLoc(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmwznrhht.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @openPathBetween(i16 noundef signext %0, i16 noundef signext %1, i16 noundef signext %2, i16 noundef signext %3) #0 {
%5 = alloca i8, align 1
%6 = alloca i16, align 2
%7 = alloca i16, align 2
%8 = alloca i16, align 2
%9 = alloca i16, align 2
%10 = alloca [2 x i16], align 2
%11 = alloca [2 x i16], align 2
%12 = alloca [2 x i16], align 2
store i16 %0, ptr %6, align 2
store i16 %1, ptr %7, align 2
store i16 %2, ptr %8, align 2
store i16 %3, ptr %9, align 2
%13 = getelementptr inbounds [2 x i16], ptr %11, i64 0, i64 0
%14 = load i16, ptr %6, align 2
store i16 %14, ptr %13, align 2
%15 = getelementptr inbounds i16, ptr %13, i64 1
%16 = load i16, ptr %7, align 2
store i16 %16, ptr %15, align 2
%17 = getelementptr inbounds [2 x i16], ptr %12, i64 0, i64 0
%18 = load i16, ptr %8, align 2
store i16 %18, ptr %17, align 2
%19 = getelementptr inbounds i16, ptr %17, i64 1
%20 = load i16, ptr %9, align 2
store i16 %20, ptr %19, align 2
%21 = getelementptr inbounds [2 x i16], ptr %10, i64 0, i64 0
%22 = getelementptr inbounds [2 x i16], ptr %11, i64 0, i64 0
%23 = getelementptr inbounds [2 x i16], ptr %12, i64 0, i64 0
%24 = call i32 @getImpactLoc(ptr noundef %21, ptr noundef %22, ptr noundef %23, i32 noundef 79, i32 noundef 0)
%25 = getelementptr inbounds [2 x i16], ptr %10, i64 0, i64 0
%26 = load i16, ptr %25, align 2
%27 = sext i16 %26 to i32
%28 = getelementptr inbounds [2 x i16], ptr %12, i64 0, i64 0
%29 = load i16, ptr %28, align 2
%30 = sext i16 %29 to i32
%31 = icmp eq i32 %27, %30
br i1 %31, label %32, label %41
32: ; preds = %4
%33 = getelementptr inbounds [2 x i16], ptr %10, i64 0, i64 1
%34 = load i16, ptr %33, align 2
%35 = sext i16 %34 to i32
%36 = getelementptr inbounds [2 x i16], ptr %12, i64 0, i64 1
%37 = load i16, ptr %36, align 2
%38 = sext i16 %37 to i32
%39 = icmp eq i32 %35, %38
br i1 %39, label %40, label %41
40: ; preds = %32
store i8 1, ptr %5, align 1
br label %42
41: ; preds = %32, %4
store i8 0, ptr %5, align 1
br label %42
42: ; preds = %41, %40
%43 = load i8, ptr %5, align 1
ret i8 %43
}
declare i32 @getImpactLoc(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpra91q7uk.c'
source_filename = "/tmp/tmpra91q7uk.c"
target datalayout = "e-m:e-p270: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/tmpra91q7uk.c"
target datalayout = "e-m:e-p270: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/tmprul4jnwn.c'
source_filename = "/tmp/tmprul4jnwn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [61 x i8] c"ERROR in rotation_matrix_3: axis = %d, 1<=axis<=3 required.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @rotation_matrix_3(ptr noundef %0, i32 noundef %1, double noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca double, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store double %2, ptr %6, align 8
%7 = load i32, ptr %5, align 4
switch i32 %7, label %119 [
i32 1, label %8
i32 2, label %45
i32 3, label %82
]
8: ; preds = %3
%9 = load ptr, ptr %4, align 8
%10 = getelementptr inbounds [3 x double], ptr %9, i64 0
%11 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
store double 1.000000e+00, ptr %11, align 8
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds [3 x double], ptr %12, i64 1
%14 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 0
store double 0.000000e+00, ptr %14, align 8
%15 = load ptr, ptr %4, align 8
%16 = getelementptr inbounds [3 x double], ptr %15, i64 2
%17 = getelementptr inbounds [3 x double], ptr %16, i64 0, i64 0
store double 0.000000e+00, ptr %17, align 8
%18 = load ptr, ptr %4, align 8
%19 = getelementptr inbounds [3 x double], ptr %18, i64 0
%20 = getelementptr inbounds [3 x double], ptr %19, i64 0, i64 1
store double 0.000000e+00, ptr %20, align 8
%21 = load double, ptr %6, align 8
%22 = call double @cos(double noundef %21) #4
%23 = load ptr, ptr %4, align 8
%24 = getelementptr inbounds [3 x double], ptr %23, i64 1
%25 = getelementptr inbounds [3 x double], ptr %24, i64 0, i64 1
store double %22, ptr %25, align 8
%26 = load double, ptr %6, align 8
%27 = call double @sin(double noundef %26) #4
%28 = fneg double %27
%29 = load ptr, ptr %4, align 8
%30 = getelementptr inbounds [3 x double], ptr %29, i64 2
%31 = getelementptr inbounds [3 x double], ptr %30, i64 0, i64 1
store double %28, ptr %31, align 8
%32 = load ptr, ptr %4, align 8
%33 = getelementptr inbounds [3 x double], ptr %32, i64 0
%34 = getelementptr inbounds [3 x double], ptr %33, i64 0, i64 2
store double 0.000000e+00, ptr %34, align 8
%35 = load double, ptr %6, align 8
%36 = call double @sin(double noundef %35) #4
%37 = load ptr, ptr %4, align 8
%38 = getelementptr inbounds [3 x double], ptr %37, i64 1
%39 = getelementptr inbounds [3 x double], ptr %38, i64 0, i64 2
store double %36, ptr %39, align 8
%40 = load double, ptr %6, align 8
%41 = call double @cos(double noundef %40) #4
%42 = load ptr, ptr %4, align 8
%43 = getelementptr inbounds [3 x double], ptr %42, i64 2
%44 = getelementptr inbounds [3 x double], ptr %43, i64 0, i64 2
store double %41, ptr %44, align 8
br label %123
45: ; preds = %3
%46 = load double, ptr %6, align 8
%47 = call double @cos(double noundef %46) #4
%48 = load ptr, ptr %4, align 8
%49 = getelementptr inbounds [3 x double], ptr %48, i64 0
%50 = getelementptr inbounds [3 x double], ptr %49, i64 0, i64 0
store double %47, ptr %50, align 8
%51 = load ptr, ptr %4, align 8
%52 = getelementptr inbounds [3 x double], ptr %51, i64 1
%53 = getelementptr inbounds [3 x double], ptr %52, i64 0, i64 0
store double 0.000000e+00, ptr %53, align 8
%54 = load double, ptr %6, align 8
%55 = call double @sin(double noundef %54) #4
%56 = load ptr, ptr %4, align 8
%57 = getelementptr inbounds [3 x double], ptr %56, i64 2
%58 = getelementptr inbounds [3 x double], ptr %57, i64 0, i64 0
store double %55, ptr %58, align 8
%59 = load ptr, ptr %4, align 8
%60 = getelementptr inbounds [3 x double], ptr %59, i64 0
%61 = getelementptr inbounds [3 x double], ptr %60, i64 0, i64 1
store double 0.000000e+00, ptr %61, align 8
%62 = load ptr, ptr %4, align 8
%63 = getelementptr inbounds [3 x double], ptr %62, i64 1
%64 = getelementptr inbounds [3 x double], ptr %63, i64 0, i64 1
store double 1.000000e+00, ptr %64, align 8
%65 = load ptr, ptr %4, align 8
%66 = getelementptr inbounds [3 x double], ptr %65, i64 2
%67 = getelementptr inbounds [3 x double], ptr %66, i64 0, i64 1
store double 0.000000e+00, ptr %67, align 8
%68 = load double, ptr %6, align 8
%69 = call double @sin(double noundef %68) #4
%70 = fneg double %69
%71 = load ptr, ptr %4, align 8
%72 = getelementptr inbounds [3 x double], ptr %71, i64 0
%73 = getelementptr inbounds [3 x double], ptr %72, i64 0, i64 2
store double %70, ptr %73, align 8
%74 = load ptr, ptr %4, align 8
%75 = getelementptr inbounds [3 x double], ptr %74, i64 1
%76 = getelementptr inbounds [3 x double], ptr %75, i64 0, i64 2
store double 0.000000e+00, ptr %76, align 8
%77 = load double, ptr %6, align 8
%78 = call double @cos(double noundef %77) #4
%79 = load ptr, ptr %4, align 8
%80 = getelementptr inbounds [3 x double], ptr %79, i64 2
%81 = getelementptr inbounds [3 x double], ptr %80, i64 0, i64 2
store double %78, ptr %81, align 8
br label %123
82: ; preds = %3
%83 = load double, ptr %6, align 8
%84 = call double @cos(double noundef %83) #4
%85 = load ptr, ptr %4, align 8
%86 = getelementptr inbounds [3 x double], ptr %85, i64 0
%87 = getelementptr inbounds [3 x double], ptr %86, i64 0, i64 0
store double %84, ptr %87, align 8
%88 = load double, ptr %6, align 8
%89 = call double @sin(double noundef %88) #4
%90 = fneg double %89
%91 = load ptr, ptr %4, align 8
%92 = getelementptr inbounds [3 x double], ptr %91, i64 1
%93 = getelementptr inbounds [3 x double], ptr %92, i64 0, i64 0
store double %90, ptr %93, align 8
%94 = load ptr, ptr %4, align 8
%95 = getelementptr inbounds [3 x double], ptr %94, i64 2
%96 = getelementptr inbounds [3 x double], ptr %95, i64 0, i64 0
store double 0.000000e+00, ptr %96, align 8
%97 = load double, ptr %6, align 8
%98 = call double @sin(double noundef %97) #4
%99 = load ptr, ptr %4, align 8
%100 = getelementptr inbounds [3 x double], ptr %99, i64 0
%101 = getelementptr inbounds [3 x double], ptr %100, i64 0, i64 1
store double %98, ptr %101, align 8
%102 = load double, ptr %6, align 8
%103 = call double @cos(double noundef %102) #4
%104 = load ptr, ptr %4, align 8
%105 = getelementptr inbounds [3 x double], ptr %104, i64 1
%106 = getelementptr inbounds [3 x double], ptr %105, i64 0, i64 1
store double %103, ptr %106, align 8
%107 = load ptr, ptr %4, align 8
%108 = getelementptr inbounds [3 x double], ptr %107, i64 2
%109 = getelementptr inbounds [3 x double], ptr %108, i64 0, i64 1
store double 0.000000e+00, ptr %109, align 8
%110 = load ptr, ptr %4, align 8
%111 = getelementptr inbounds [3 x double], ptr %110, i64 0
%112 = getelementptr inbounds [3 x double], ptr %111, i64 0, i64 2
store double 0.000000e+00, ptr %112, align 8
%113 = load ptr, ptr %4, align 8
%114 = getelementptr inbounds [3 x double], ptr %113, i64 1
%115 = getelementptr inbounds [3 x double], ptr %114, i64 0, i64 2
store double 0.000000e+00, ptr %115, align 8
%116 = load ptr, ptr %4, align 8
%117 = getelementptr inbounds [3 x double], ptr %116, i64 2
%118 = getelementptr inbounds [3 x double], ptr %117, i64 0, i64 2
store double 1.000000e+00, ptr %118, align 8
br label %123
119: ; preds = %3
%120 = load i32, ptr %5, align 4
%121 = call i32 @printf(ptr noundef @.str, i32 noundef %120)
%122 = call i32 @exit(i32 noundef -1) #5
unreachable
123: ; preds = %82, %45, %8
ret void
}
; Function Attrs: nounwind
declare double @cos(double noundef) #1
; Function Attrs: nounwind
declare double @sin(double noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #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 = { 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 #4 = { nounwind }
attributes #5 = { 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/tmprul4jnwn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [61 x i8] c"ERROR in rotation_matrix_3: axis = %d, 1<=axis<=3 required.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @rotation_matrix_3(ptr noundef %0, i32 noundef %1, double noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca double, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store double %2, ptr %6, align 8
%7 = load i32, ptr %5, align 4
switch i32 %7, label %119 [
i32 1, label %8
i32 2, label %45
i32 3, label %82
]
8: ; preds = %3
%9 = load ptr, ptr %4, align 8
%10 = getelementptr inbounds [3 x double], ptr %9, i64 0
%11 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
store double 1.000000e+00, ptr %11, align 8
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds [3 x double], ptr %12, i64 1
%14 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 0
store double 0.000000e+00, ptr %14, align 8
%15 = load ptr, ptr %4, align 8
%16 = getelementptr inbounds [3 x double], ptr %15, i64 2
%17 = getelementptr inbounds [3 x double], ptr %16, i64 0, i64 0
store double 0.000000e+00, ptr %17, align 8
%18 = load ptr, ptr %4, align 8
%19 = getelementptr inbounds [3 x double], ptr %18, i64 0
%20 = getelementptr inbounds [3 x double], ptr %19, i64 0, i64 1
store double 0.000000e+00, ptr %20, align 8
%21 = load double, ptr %6, align 8
%22 = call double @cos(double noundef %21) #4
%23 = load ptr, ptr %4, align 8
%24 = getelementptr inbounds [3 x double], ptr %23, i64 1
%25 = getelementptr inbounds [3 x double], ptr %24, i64 0, i64 1
store double %22, ptr %25, align 8
%26 = load double, ptr %6, align 8
%27 = call double @sin(double noundef %26) #4
%28 = fneg double %27
%29 = load ptr, ptr %4, align 8
%30 = getelementptr inbounds [3 x double], ptr %29, i64 2
%31 = getelementptr inbounds [3 x double], ptr %30, i64 0, i64 1
store double %28, ptr %31, align 8
%32 = load ptr, ptr %4, align 8
%33 = getelementptr inbounds [3 x double], ptr %32, i64 0
%34 = getelementptr inbounds [3 x double], ptr %33, i64 0, i64 2
store double 0.000000e+00, ptr %34, align 8
%35 = load double, ptr %6, align 8
%36 = call double @sin(double noundef %35) #4
%37 = load ptr, ptr %4, align 8
%38 = getelementptr inbounds [3 x double], ptr %37, i64 1
%39 = getelementptr inbounds [3 x double], ptr %38, i64 0, i64 2
store double %36, ptr %39, align 8
%40 = load double, ptr %6, align 8
%41 = call double @cos(double noundef %40) #4
%42 = load ptr, ptr %4, align 8
%43 = getelementptr inbounds [3 x double], ptr %42, i64 2
%44 = getelementptr inbounds [3 x double], ptr %43, i64 0, i64 2
store double %41, ptr %44, align 8
br label %123
45: ; preds = %3
%46 = load double, ptr %6, align 8
%47 = call double @cos(double noundef %46) #4
%48 = load ptr, ptr %4, align 8
%49 = getelementptr inbounds [3 x double], ptr %48, i64 0
%50 = getelementptr inbounds [3 x double], ptr %49, i64 0, i64 0
store double %47, ptr %50, align 8
%51 = load ptr, ptr %4, align 8
%52 = getelementptr inbounds [3 x double], ptr %51, i64 1
%53 = getelementptr inbounds [3 x double], ptr %52, i64 0, i64 0
store double 0.000000e+00, ptr %53, align 8
%54 = load double, ptr %6, align 8
%55 = call double @sin(double noundef %54) #4
%56 = load ptr, ptr %4, align 8
%57 = getelementptr inbounds [3 x double], ptr %56, i64 2
%58 = getelementptr inbounds [3 x double], ptr %57, i64 0, i64 0
store double %55, ptr %58, align 8
%59 = load ptr, ptr %4, align 8
%60 = getelementptr inbounds [3 x double], ptr %59, i64 0
%61 = getelementptr inbounds [3 x double], ptr %60, i64 0, i64 1
store double 0.000000e+00, ptr %61, align 8
%62 = load ptr, ptr %4, align 8
%63 = getelementptr inbounds [3 x double], ptr %62, i64 1
%64 = getelementptr inbounds [3 x double], ptr %63, i64 0, i64 1
store double 1.000000e+00, ptr %64, align 8
%65 = load ptr, ptr %4, align 8
%66 = getelementptr inbounds [3 x double], ptr %65, i64 2
%67 = getelementptr inbounds [3 x double], ptr %66, i64 0, i64 1
store double 0.000000e+00, ptr %67, align 8
%68 = load double, ptr %6, align 8
%69 = call double @sin(double noundef %68) #4
%70 = fneg double %69
%71 = load ptr, ptr %4, align 8
%72 = getelementptr inbounds [3 x double], ptr %71, i64 0
%73 = getelementptr inbounds [3 x double], ptr %72, i64 0, i64 2
store double %70, ptr %73, align 8
%74 = load ptr, ptr %4, align 8
%75 = getelementptr inbounds [3 x double], ptr %74, i64 1
%76 = getelementptr inbounds [3 x double], ptr %75, i64 0, i64 2
store double 0.000000e+00, ptr %76, align 8
%77 = load double, ptr %6, align 8
%78 = call double @cos(double noundef %77) #4
%79 = load ptr, ptr %4, align 8
%80 = getelementptr inbounds [3 x double], ptr %79, i64 2
%81 = getelementptr inbounds [3 x double], ptr %80, i64 0, i64 2
store double %78, ptr %81, align 8
br label %123
82: ; preds = %3
%83 = load double, ptr %6, align 8
%84 = call double @cos(double noundef %83) #4
%85 = load ptr, ptr %4, align 8
%86 = getelementptr inbounds [3 x double], ptr %85, i64 0
%87 = getelementptr inbounds [3 x double], ptr %86, i64 0, i64 0
store double %84, ptr %87, align 8
%88 = load double, ptr %6, align 8
%89 = call double @sin(double noundef %88) #4
%90 = fneg double %89
%91 = load ptr, ptr %4, align 8
%92 = getelementptr inbounds [3 x double], ptr %91, i64 1
%93 = getelementptr inbounds [3 x double], ptr %92, i64 0, i64 0
store double %90, ptr %93, align 8
%94 = load ptr, ptr %4, align 8
%95 = getelementptr inbounds [3 x double], ptr %94, i64 2
%96 = getelementptr inbounds [3 x double], ptr %95, i64 0, i64 0
store double 0.000000e+00, ptr %96, align 8
%97 = load double, ptr %6, align 8
%98 = call double @sin(double noundef %97) #4
%99 = load ptr, ptr %4, align 8
%100 = getelementptr inbounds [3 x double], ptr %99, i64 0
%101 = getelementptr inbounds [3 x double], ptr %100, i64 0, i64 1
store double %98, ptr %101, align 8
%102 = load double, ptr %6, align 8
%103 = call double @cos(double noundef %102) #4
%104 = load ptr, ptr %4, align 8
%105 = getelementptr inbounds [3 x double], ptr %104, i64 1
%106 = getelementptr inbounds [3 x double], ptr %105, i64 0, i64 1
store double %103, ptr %106, align 8
%107 = load ptr, ptr %4, align 8
%108 = getelementptr inbounds [3 x double], ptr %107, i64 2
%109 = getelementptr inbounds [3 x double], ptr %108, i64 0, i64 1
store double 0.000000e+00, ptr %109, align 8
%110 = load ptr, ptr %4, align 8
%111 = getelementptr inbounds [3 x double], ptr %110, i64 0
%112 = getelementptr inbounds [3 x double], ptr %111, i64 0, i64 2
store double 0.000000e+00, ptr %112, align 8
%113 = load ptr, ptr %4, align 8
%114 = getelementptr inbounds [3 x double], ptr %113, i64 1
%115 = getelementptr inbounds [3 x double], ptr %114, i64 0, i64 2
store double 0.000000e+00, ptr %115, align 8
%116 = load ptr, ptr %4, align 8
%117 = getelementptr inbounds [3 x double], ptr %116, i64 2
%118 = getelementptr inbounds [3 x double], ptr %117, i64 0, i64 2
store double 1.000000e+00, ptr %118, align 8
br label %123
119: ; preds = %3
%120 = load i32, ptr %5, align 4
%121 = call i32 @printf(ptr noundef @.str, i32 noundef %120)
%122 = call i32 @exit(i32 noundef -1) #5
unreachable
123: ; preds = %82, %45, %8
ret void
}
; Function Attrs: nounwind
declare double @cos(double noundef) #1
; Function Attrs: nounwind
declare double @sin(double noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #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 = { 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 #4 = { nounwind }
attributes #5 = { 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/tmpb5ujyehy.c'
source_filename = "/tmp/tmpb5ujyehy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lf\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"+ %d %g\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"- %d %g\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 double, align 8
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%6 = load double, ptr %4, align 8
%7 = fcmp oge double %6, 0.000000e+00
br i1 %7, label %8, label %17
8: ; preds = %0
%9 = load double, ptr %4, align 8
%10 = fptosi double %9 to i32
%11 = load double, ptr %4, align 8
%12 = load double, ptr %4, align 8
%13 = fptosi double %12 to i32
%14 = sitofp i32 %13 to double
%15 = fsub double %11, %14
%16 = call i32 @printf(ptr noundef @.str.1, i32 noundef %10, double noundef %15)
br label %17
17: ; preds = %8, %0
%18 = load double, ptr %4, align 8
%19 = fcmp olt double %18, 0.000000e+00
br i1 %19, label %20, label %31
20: ; preds = %17
%21 = load double, ptr %4, align 8
%22 = fneg double %21
store double %22, ptr %4, align 8
%23 = load double, ptr %4, align 8
%24 = fptosi double %23 to i32
%25 = load double, ptr %4, align 8
%26 = load double, ptr %4, align 8
%27 = fptosi double %26 to i32
%28 = sitofp i32 %27 to double
%29 = fsub double %25, %28
%30 = call i32 @printf(ptr noundef @.str.2, i32 noundef %24, double noundef %29)
br label %31
31: ; preds = %20, %17
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 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/tmpb5ujyehy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lf\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"+ %d %g\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"- %d %g\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 double, align 8
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%6 = load double, ptr %4, align 8
%7 = fcmp oge double %6, 0.000000e+00
br i1 %7, label %8, label %17
8: ; preds = %0
%9 = load double, ptr %4, align 8
%10 = fptosi double %9 to i32
%11 = load double, ptr %4, align 8
%12 = load double, ptr %4, align 8
%13 = fptosi double %12 to i32
%14 = sitofp i32 %13 to double
%15 = fsub double %11, %14
%16 = call i32 @printf(ptr noundef @.str.1, i32 noundef %10, double noundef %15)
br label %17
17: ; preds = %8, %0
%18 = load double, ptr %4, align 8
%19 = fcmp olt double %18, 0.000000e+00
br i1 %19, label %20, label %31
20: ; preds = %17
%21 = load double, ptr %4, align 8
%22 = fneg double %21
store double %22, ptr %4, align 8
%23 = load double, ptr %4, align 8
%24 = fptosi double %23 to i32
%25 = load double, ptr %4, align 8
%26 = load double, ptr %4, align 8
%27 = fptosi double %26 to i32
%28 = sitofp i32 %27 to double
%29 = fsub double %25, %28
%30 = call i32 @printf(ptr noundef @.str.2, i32 noundef %24, double noundef %29)
br label %31
31: ; preds = %20, %17
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 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/tmp07oncuea.c'
source_filename = "/tmp/tmp07oncuea.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"Executing\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c" %s\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"execve\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_exec(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = getelementptr inbounds ptr, ptr %7, i32 1
store ptr %8, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 0
%11 = load ptr, ptr %10, align 8
store ptr %11, ptr %6, align 8
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %5, align 4
br label %13
13: ; preds = %27, %2
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %14, i64 %16
%18 = load ptr, ptr %17, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %20, label %30
20: ; preds = %13
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %5, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds ptr, ptr %21, i64 %23
%25 = load ptr, ptr %24, align 8
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %25)
br label %27
27: ; preds = %20
%28 = load i32, ptr %5, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %5, align 4
br label %13, !llvm.loop !6
30: ; preds = %13
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%32 = load ptr, ptr %6, align 8
%33 = load ptr, ptr %4, align 8
%34 = call i32 @execve(ptr noundef %32, ptr noundef %33, ptr noundef null)
%35 = call i32 @perror(ptr noundef @.str.3)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @execve(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp07oncuea.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"Executing\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c" %s\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"execve\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_exec(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = getelementptr inbounds ptr, ptr %7, i32 1
store ptr %8, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 0
%11 = load ptr, ptr %10, align 8
store ptr %11, ptr %6, align 8
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %5, align 4
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds ptr, ptr %13, i64 %15
%17 = load ptr, ptr %16, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %.lr.ph, label %35
.lr.ph: ; preds = %2
br label %19
19: ; preds = %.lr.ph, %26
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %5, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds ptr, ptr %20, i64 %22
%24 = load ptr, ptr %23, align 8
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %24)
br label %26
26: ; preds = %19
%27 = load i32, ptr %5, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %5, align 4
%29 = load ptr, ptr %4, align 8
%30 = load i32, ptr %5, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds ptr, ptr %29, i64 %31
%33 = load ptr, ptr %32, align 8
%34 = icmp ne ptr %33, null
br i1 %34, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %35
35: ; preds = %._crit_edge, %2
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%37 = load ptr, ptr %6, align 8
%38 = load ptr, ptr %4, align 8
%39 = call i32 @execve(ptr noundef %37, ptr noundef %38, ptr noundef null)
%40 = call i32 @perror(ptr noundef @.str.3)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @execve(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_djagch3.c'
source_filename = "/tmp/tmp_djagch3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @EEPROM_R_Enable() #0 {
%1 = call i32 (...) @CyEEPROM_Start()
ret void
}
declare i32 @CyEEPROM_Start(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!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_djagch3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @EEPROM_R_Enable() #0 {
%1 = call i32 (...) @CyEEPROM_Start()
ret void
}
declare i32 @CyEEPROM_Start(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbzzgvmvh.c'
source_filename = "/tmp/tmpbzzgvmvh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@optind = 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 i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
br label %7
7: ; preds = %2
%8 = load i32, ptr %4, align 4
%9 = load ptr, ptr %5, align 8
%10 = call i32 @getopt(i32 noundef %8, ptr noundef %9, ptr noundef @.str)
store i32 %10, ptr %6, align 4
%11 = icmp ne i32 %10, -1
br i1 %11, label %12, label %16
12: ; preds = %7
%13 = load i32, ptr %6, align 4
switch i32 %13, label %14 [
]
14: ; preds = %12
%15 = call i32 (...) @_usage()
store i32 %15, ptr %3, align 4
br label %33
16: ; preds = %7
%17 = load i32, ptr @optind, align 4
%18 = load i32, ptr %4, align 4
%19 = sub nsw i32 %18, 1
%20 = icmp ne i32 %17, %19
br i1 %20, label %21, label %23
21: ; preds = %16
%22 = call i32 (...) @_usage()
store i32 %22, ptr %3, align 4
br label %33
23: ; preds = %16
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr @optind, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %24, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = call i64 @_unlink(ptr noundef %28)
%30 = icmp eq i64 %29, 0
%31 = zext i1 %30 to i64
%32 = select i1 %30, i32 0, i32 2
store i32 %32, ptr %3, align 4
br label %33
33: ; preds = %23, %21, %14
%34 = load i32, ptr %3, align 4
ret i32 %34
}
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @_usage(...) #1
declare i64 @_unlink(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbzzgvmvh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@optind = 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 i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
br label %7
7: ; preds = %2
%8 = load i32, ptr %4, align 4
%9 = load ptr, ptr %5, align 8
%10 = call i32 @getopt(i32 noundef %8, ptr noundef %9, ptr noundef @.str)
store i32 %10, ptr %6, align 4
%11 = icmp ne i32 %10, -1
br i1 %11, label %12, label %16
12: ; preds = %7
%13 = load i32, ptr %6, align 4
switch i32 %13, label %14 [
]
14: ; preds = %12
%15 = call i32 (...) @_usage()
store i32 %15, ptr %3, align 4
br label %33
16: ; preds = %7
%17 = load i32, ptr @optind, align 4
%18 = load i32, ptr %4, align 4
%19 = sub nsw i32 %18, 1
%20 = icmp ne i32 %17, %19
br i1 %20, label %21, label %23
21: ; preds = %16
%22 = call i32 (...) @_usage()
store i32 %22, ptr %3, align 4
br label %33
23: ; preds = %16
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr @optind, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %24, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = call i64 @_unlink(ptr noundef %28)
%30 = icmp eq i64 %29, 0
%31 = zext i1 %30 to i64
%32 = select i1 %30, i32 0, i32 2
store i32 %32, ptr %3, align 4
br label %33
33: ; preds = %23, %21, %14
%34 = load i32, ptr %3, align 4
ret i32 %34
}
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @_usage(...) #1
declare i64 @_unlink(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgw8bwxxx.c'
source_filename = "/tmp/tmpgw8bwxxx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"%8x, %8x\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_5() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 -268435456, ptr %1, align 4
store i32 -268435456, ptr %2, align 4
%3 = load i32, ptr %1, align 4
%4 = ashr i32 %3, 1
store i32 %4, ptr %1, align 4
%5 = load i32, ptr %2, align 4
%6 = lshr i32 %5, 1
store i32 %6, ptr %2, align 4
%7 = load i32, ptr %1, align 4
%8 = load i32, ptr %2, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %7, i32 noundef %8)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgw8bwxxx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"%8x, %8x\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_5() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 -268435456, ptr %1, align 4
store i32 -268435456, ptr %2, align 4
%3 = load i32, ptr %1, align 4
%4 = ashr i32 %3, 1
store i32 %4, ptr %1, align 4
%5 = load i32, ptr %2, align 4
%6 = lshr i32 %5, 1
store i32 %6, ptr %2, align 4
%7 = load i32, ptr %1, align 4
%8 = load i32, ptr %2, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %7, i32 noundef %8)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp58qgf00z.c'
source_filename = "/tmp/tmp58qgf00z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = call i32 (...) @nondetpos()
store i32 %3, ptr %1, align 4
%4 = load i32, ptr %1, align 4
%5 = call ptr @allocstr(i32 noundef %4)
store ptr %5, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @validptr(ptr noundef %6)
ret void
}
declare i32 @nondetpos(...) #1
declare ptr @allocstr(i32 noundef) #1
declare i32 @validptr(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp58qgf00z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = call i32 (...) @nondetpos()
store i32 %3, ptr %1, align 4
%4 = load i32, ptr %1, align 4
%5 = call ptr @allocstr(i32 noundef %4)
store ptr %5, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @validptr(ptr noundef %6)
ret void
}
declare i32 @nondetpos(...) #1
declare ptr @allocstr(i32 noundef) #1
declare i32 @validptr(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpk0ubt5t3.c'
source_filename = "/tmp/tmpk0ubt5t3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"stupidlyinsecure\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @checkpass(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca [30 x i8], align 16
store ptr %0, ptr %3, align 8
%5 = getelementptr inbounds [30 x i8], ptr %4, i64 0, i64 0
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strcpy(ptr noundef %5, ptr noundef %6)
%8 = getelementptr inbounds [30 x i8], ptr %4, i64 0, i64 0
%9 = call i64 @strcmp(ptr noundef %8, ptr noundef @.str)
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %1
store i32 1, ptr %2, align 4
br label %13
12: ; preds = %1
store i32 0, ptr %2, align 4
br label %13
13: ; preds = %12, %11
%14 = load i32, ptr %2, align 4
ret i32 %14
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk0ubt5t3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"stupidlyinsecure\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @checkpass(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca [30 x i8], align 16
store ptr %0, ptr %3, align 8
%5 = getelementptr inbounds [30 x i8], ptr %4, i64 0, i64 0
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strcpy(ptr noundef %5, ptr noundef %6)
%8 = getelementptr inbounds [30 x i8], ptr %4, i64 0, i64 0
%9 = call i64 @strcmp(ptr noundef %8, ptr noundef @.str)
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %1
store i32 1, ptr %2, align 4
br label %13
12: ; preds = %1
store i32 0, ptr %2, align 4
br label %13
13: ; preds = %12, %11
%14 = load i32, ptr %2, align 4
ret i32 %14
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjrt5zemy.c'
source_filename = "/tmp/tmpjrt5zemy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @jump_front(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %22, %2
%8 = load ptr, ptr %3, align 8
%9 = load i32, ptr %6, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i8, ptr %8, i64 %10
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
store i32 %13, ptr %5, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %25
15: ; preds = %7
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %5, align 4
%18 = call i32 @strchr(ptr noundef %16, i32 noundef %17)
%19 = icmp ne i32 %18, 0
br i1 %19, label %21, label %20
20: ; preds = %15
br label %25
21: ; preds = %15
br label %22
22: ; preds = %21
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %6, align 4
br label %7, !llvm.loop !6
25: ; preds = %20, %7
%26 = load i32, ptr %6, align 4
ret i32 %26
}
declare i32 @strchr(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/tmpjrt5zemy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @jump_front(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %6, align 4
%7 = load ptr, ptr %3, align 8
%8 = load i32, ptr %6, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i8, ptr %7, i64 %9
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
store i32 %12, ptr %5, align 4
%13 = icmp ne i32 %12, 0
br i1 %13, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %21
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %5, align 4
%17 = call i32 @strchr(ptr noundef %15, i32 noundef %16)
%18 = icmp ne i32 %17, 0
br i1 %18, label %20, label %19
19: ; preds = %14
br label %31
20: ; preds = %14
br label %21
21: ; preds = %20
%22 = load i32, ptr %6, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %6, align 4
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %6, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
store i32 %29, ptr %5, align 4
%30 = icmp ne i32 %29, 0
br i1 %30, label %14, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %21
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %2
br label %31
31: ; preds = %.loopexit, %19
%32 = load i32, ptr %6, align 4
ret i32 %32
}
declare i32 @strchr(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/tmpaedge8ut.c'
source_filename = "/tmp/tmpaedge8ut.c"
target datalayout = "e-m:e-p270: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/tmpaedge8ut.c"
target datalayout = "e-m:e-p270: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/tmp12cy3xii.c'
source_filename = "/tmp/tmp12cy3xii.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @scan_name(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %7, align 4
%9 = load ptr, ptr %3, align 8
%10 = call i32 @strlen(ptr noundef %9)
%11 = sub nsw i32 %10, 1
store i32 %11, ptr %5, align 4
br label %12
12: ; preds = %27, %2
%13 = load i32, ptr %5, align 4
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %30
15: ; preds = %12
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %5, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 47
br i1 %22, label %23, label %26
23: ; preds = %15
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %5, align 4
br label %30
26: ; preds = %15
br label %27
27: ; preds = %26
%28 = load i32, ptr %5, align 4
%29 = add nsw i32 %28, -1
store i32 %29, ptr %5, align 4
br label %12, !llvm.loop !6
30: ; preds = %23, %12
%31 = load ptr, ptr %3, align 8
%32 = call i32 @strlen(ptr noundef %31)
%33 = sub nsw i32 %32, 1
store i32 %33, ptr %6, align 4
%34 = load ptr, ptr %3, align 8
%35 = call i32 @strlen(ptr noundef %34)
%36 = sub nsw i32 %35, 3
store i32 %36, ptr %8, align 4
br label %37
37: ; preds = %110, %30
%38 = load i32, ptr %8, align 4
%39 = icmp sgt i32 %38, 1
br i1 %39, label %40, label %113
40: ; preds = %37
%41 = load ptr, ptr %3, align 8
%42 = load i32, ptr %8, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 46
br i1 %47, label %48, label %109
48: ; preds = %40
%49 = load ptr, ptr %3, align 8
%50 = load i32, ptr %8, align 4
%51 = add nsw i32 %50, 1
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, ptr %49, i64 %52
%54 = load i8, ptr %53, align 1
%55 = sext i8 %54 to i32
%56 = icmp eq i32 %55, 116
br i1 %56, label %57, label %78
57: ; preds = %48
%58 = load ptr, ptr %3, align 8
%59 = load i32, ptr %8, align 4
%60 = add nsw i32 %59, 2
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8, ptr %58, i64 %61
%63 = load i8, ptr %62, align 1
%64 = sext i8 %63 to i32
%65 = icmp eq i32 %64, 98
br i1 %65, label %66, label %78
66: ; preds = %57
%67 = load ptr, ptr %3, align 8
%68 = load i32, ptr %8, align 4
%69 = add nsw i32 %68, 3
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, ptr %67, i64 %70
%72 = load i8, ptr %71, align 1
%73 = sext i8 %72 to i32
%74 = icmp eq i32 %73, 108
br i1 %74, label %75, label %78
75: ; preds = %66
%76 = load i32, ptr %8, align 4
%77 = sub nsw i32 %76, 1
store i32 %77, ptr %6, align 4
br label %78
78: ; preds = %75, %66, %57, %48
%79 = load ptr, ptr %3, align 8
%80 = load i32, ptr %8, align 4
%81 = add nsw i32 %80, 1
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i8, ptr %79, i64 %82
%84 = load i8, ptr %83, align 1
%85 = sext i8 %84 to i32
%86 = icmp eq i32 %85, 102
br i1 %86, label %87, label %108
87: ; preds = %78
%88 = load ptr, ptr %3, align 8
%89 = load i32, ptr %8, align 4
%90 = add nsw i32 %89, 2
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i8, ptr %88, i64 %91
%93 = load i8, ptr %92, align 1
%94 = sext i8 %93 to i32
%95 = icmp eq i32 %94, 105
br i1 %95, label %96, label %108
96: ; preds = %87
%97 = load ptr, ptr %3, align 8
%98 = load i32, ptr %8, align 4
%99 = add nsw i32 %98, 3
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i8, ptr %97, i64 %100
%102 = load i8, ptr %101, align 1
%103 = sext i8 %102 to i32
%104 = icmp eq i32 %103, 116
br i1 %104, label %105, label %108
105: ; preds = %96
%106 = load i32, ptr %8, align 4
%107 = sub nsw i32 %106, 1
store i32 %107, ptr %6, align 4
br label %108
108: ; preds = %105, %96, %87, %78
br label %109
109: ; preds = %108, %40
br label %110
110: ; preds = %109
%111 = load i32, ptr %8, align 4
%112 = add nsw i32 %111, -1
store i32 %112, ptr %8, align 4
br label %37, !llvm.loop !8
113: ; preds = %37
%114 = load i32, ptr %5, align 4
store i32 %114, ptr %8, align 4
br label %115
115: ; preds = %130, %113
%116 = load i32, ptr %8, align 4
%117 = load i32, ptr %6, align 4
%118 = icmp sle i32 %116, %117
br i1 %118, label %119, label %133
119: ; preds = %115
%120 = load ptr, ptr %3, align 8
%121 = load i32, ptr %8, align 4
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds i8, ptr %120, i64 %122
%124 = load i8, ptr %123, align 1
%125 = load ptr, ptr %4, align 8
%126 = load i32, ptr %7, align 4
%127 = add nsw i32 %126, 1
store i32 %127, ptr %7, align 4
%128 = sext i32 %126 to i64
%129 = getelementptr inbounds i8, ptr %125, i64 %128
store i8 %124, ptr %129, align 1
br label %130
130: ; preds = %119
%131 = load i32, ptr %8, align 4
%132 = add nsw i32 %131, 1
store i32 %132, ptr %8, align 4
br label %115, !llvm.loop !9
133: ; preds = %115
%134 = load ptr, ptr %4, align 8
%135 = load i32, ptr %7, align 4
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds i8, ptr %134, i64 %136
store i8 0, ptr %137, align 1
ret void
}
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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp12cy3xii.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @scan_name(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %7, align 4
%9 = load ptr, ptr %3, align 8
%10 = call i32 @strlen(ptr noundef %9)
%11 = sub nsw i32 %10, 1
store i32 %11, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp sgt i32 %12, 0
br i1 %13, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %26
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 47
br i1 %21, label %22, label %25
22: ; preds = %14
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %5, align 4
br label %31
25: ; preds = %14
br label %26
26: ; preds = %25
%27 = load i32, ptr %5, align 4
%28 = add nsw i32 %27, -1
store i32 %28, ptr %5, align 4
%29 = load i32, ptr %5, align 4
%30 = icmp sgt i32 %29, 0
br i1 %30, label %14, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %26
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %2
br label %31
31: ; preds = %.loopexit, %22
%32 = load ptr, ptr %3, align 8
%33 = call i32 @strlen(ptr noundef %32)
%34 = sub nsw i32 %33, 1
store i32 %34, ptr %6, align 4
%35 = load ptr, ptr %3, align 8
%36 = call i32 @strlen(ptr noundef %35)
%37 = sub nsw i32 %36, 3
store i32 %37, ptr %8, align 4
%38 = load i32, ptr %8, align 4
%39 = icmp sgt i32 %38, 1
br i1 %39, label %.lr.ph1, label %115
.lr.ph1: ; preds = %31
br label %40
40: ; preds = %.lr.ph1, %110
%41 = load ptr, ptr %3, align 8
%42 = load i32, ptr %8, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 46
br i1 %47, label %48, label %109
48: ; preds = %40
%49 = load ptr, ptr %3, align 8
%50 = load i32, ptr %8, align 4
%51 = add nsw i32 %50, 1
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, ptr %49, i64 %52
%54 = load i8, ptr %53, align 1
%55 = sext i8 %54 to i32
%56 = icmp eq i32 %55, 116
br i1 %56, label %57, label %78
57: ; preds = %48
%58 = load ptr, ptr %3, align 8
%59 = load i32, ptr %8, align 4
%60 = add nsw i32 %59, 2
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8, ptr %58, i64 %61
%63 = load i8, ptr %62, align 1
%64 = sext i8 %63 to i32
%65 = icmp eq i32 %64, 98
br i1 %65, label %66, label %78
66: ; preds = %57
%67 = load ptr, ptr %3, align 8
%68 = load i32, ptr %8, align 4
%69 = add nsw i32 %68, 3
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, ptr %67, i64 %70
%72 = load i8, ptr %71, align 1
%73 = sext i8 %72 to i32
%74 = icmp eq i32 %73, 108
br i1 %74, label %75, label %78
75: ; preds = %66
%76 = load i32, ptr %8, align 4
%77 = sub nsw i32 %76, 1
store i32 %77, ptr %6, align 4
br label %78
78: ; preds = %75, %66, %57, %48
%79 = load ptr, ptr %3, align 8
%80 = load i32, ptr %8, align 4
%81 = add nsw i32 %80, 1
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i8, ptr %79, i64 %82
%84 = load i8, ptr %83, align 1
%85 = sext i8 %84 to i32
%86 = icmp eq i32 %85, 102
br i1 %86, label %87, label %108
87: ; preds = %78
%88 = load ptr, ptr %3, align 8
%89 = load i32, ptr %8, align 4
%90 = add nsw i32 %89, 2
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i8, ptr %88, i64 %91
%93 = load i8, ptr %92, align 1
%94 = sext i8 %93 to i32
%95 = icmp eq i32 %94, 105
br i1 %95, label %96, label %108
96: ; preds = %87
%97 = load ptr, ptr %3, align 8
%98 = load i32, ptr %8, align 4
%99 = add nsw i32 %98, 3
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i8, ptr %97, i64 %100
%102 = load i8, ptr %101, align 1
%103 = sext i8 %102 to i32
%104 = icmp eq i32 %103, 116
br i1 %104, label %105, label %108
105: ; preds = %96
%106 = load i32, ptr %8, align 4
%107 = sub nsw i32 %106, 1
store i32 %107, ptr %6, align 4
br label %108
108: ; preds = %105, %96, %87, %78
br label %109
109: ; preds = %108, %40
br label %110
110: ; preds = %109
%111 = load i32, ptr %8, align 4
%112 = add nsw i32 %111, -1
store i32 %112, ptr %8, align 4
%113 = load i32, ptr %8, align 4
%114 = icmp sgt i32 %113, 1
br i1 %114, label %40, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %110
br label %115
115: ; preds = %._crit_edge, %31
%116 = load i32, ptr %5, align 4
store i32 %116, ptr %8, align 4
%117 = load i32, ptr %8, align 4
%118 = load i32, ptr %6, align 4
%119 = icmp sle i32 %117, %118
br i1 %119, label %.lr.ph3, label %137
.lr.ph3: ; preds = %115
br label %120
120: ; preds = %.lr.ph3, %131
%121 = load ptr, ptr %3, align 8
%122 = load i32, ptr %8, align 4
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds i8, ptr %121, i64 %123
%125 = load i8, ptr %124, align 1
%126 = load ptr, ptr %4, align 8
%127 = load i32, ptr %7, align 4
%128 = add nsw i32 %127, 1
store i32 %128, ptr %7, align 4
%129 = sext i32 %127 to i64
%130 = getelementptr inbounds i8, ptr %126, i64 %129
store i8 %125, ptr %130, align 1
br label %131
131: ; preds = %120
%132 = load i32, ptr %8, align 4
%133 = add nsw i32 %132, 1
store i32 %133, ptr %8, align 4
%134 = load i32, ptr %8, align 4
%135 = load i32, ptr %6, align 4
%136 = icmp sle i32 %134, %135
br i1 %136, label %120, label %._crit_edge4, !llvm.loop !9
._crit_edge4: ; preds = %131
br label %137
137: ; preds = %._crit_edge4, %115
%138 = load ptr, ptr %4, align 8
%139 = load i32, ptr %7, align 4
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds i8, ptr %138, i64 %140
store i8 0, ptr %141, align 1
ret void
}
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}
|
; ModuleID = '/tmp/tmpj9_054zr.c'
source_filename = "/tmp/tmpj9_054zr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"ncendef\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"ncid %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ncendef(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = call i32 @nc_enddef(i32 noundef %5)
store i32 %6, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %1
%10 = load i32, ptr %4, align 4
%11 = load i32, ptr %3, align 4
%12 = call i32 @nc_advise(ptr noundef @.str, i32 noundef %10, ptr noundef @.str.1, i32 noundef %11)
store i32 -1, ptr %2, align 4
br label %14
13: ; preds = %1
store i32 0, ptr %2, align 4
br label %14
14: ; preds = %13, %9
%15 = load i32, ptr %2, align 4
ret i32 %15
}
declare i32 @nc_enddef(i32 noundef) #1
declare i32 @nc_advise(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj9_054zr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"ncendef\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"ncid %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ncendef(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = call i32 @nc_enddef(i32 noundef %5)
store i32 %6, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %1
%10 = load i32, ptr %4, align 4
%11 = load i32, ptr %3, align 4
%12 = call i32 @nc_advise(ptr noundef @.str, i32 noundef %10, ptr noundef @.str.1, i32 noundef %11)
store i32 -1, ptr %2, align 4
br label %14
13: ; preds = %1
store i32 0, ptr %2, align 4
br label %14
14: ; preds = %13, %9
%15 = load i32, ptr %2, align 4
ret i32 %15
}
declare i32 @nc_enddef(i32 noundef) #1
declare i32 @nc_advise(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzb5gcl31.c'
source_filename = "/tmp/tmpzb5gcl31.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"%12.9f, %12.9f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca double, align 8
%4 = alloca double, align 8
store i32 0, ptr %1, align 4
%5 = call i32 (...) @timer_init()
store i32 0, ptr %2, align 4
br label %6
6: ; preds = %18, %0
%7 = load i32, ptr %2, align 4
%8 = icmp slt i32 %7, 20
br i1 %8, label %9, label %21
9: ; preds = %6
%10 = call double (...) @timer_seconds_since_init()
store double %10, ptr %3, align 8
%11 = call i32 @sleep(i32 noundef 1)
%12 = call double (...) @timer_seconds_since_init()
store double %12, ptr %4, align 8
%13 = load double, ptr %3, align 8
%14 = load double, ptr %4, align 8
%15 = load double, ptr %3, align 8
%16 = fsub double %14, %15
%17 = call i32 @printf(ptr noundef @.str, double noundef %13, double noundef %16)
br label %18
18: ; preds = %9
%19 = load i32, ptr %2, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %2, align 4
br label %6, !llvm.loop !6
21: ; preds = %6
%22 = load i32, ptr %1, align 4
ret i32 %22
}
declare i32 @timer_init(...) #1
declare double @timer_seconds_since_init(...) #1
declare i32 @sleep(i32 noundef) #1
declare i32 @printf(ptr noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzb5gcl31.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"%12.9f, %12.9f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca double, align 8
%4 = alloca double, align 8
store i32 0, ptr %1, align 4
%5 = call i32 (...) @timer_init()
store i32 0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 20
br i1 %7, label %.lr.ph, label %22
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %17
%9 = call double (...) @timer_seconds_since_init()
store double %9, ptr %3, align 8
%10 = call i32 @sleep(i32 noundef 1)
%11 = call double (...) @timer_seconds_since_init()
store double %11, ptr %4, align 8
%12 = load double, ptr %3, align 8
%13 = load double, ptr %4, align 8
%14 = load double, ptr %3, align 8
%15 = fsub double %13, %14
%16 = call i32 @printf(ptr noundef @.str, double noundef %12, double noundef %15)
br label %17
17: ; preds = %8
%18 = load i32, ptr %2, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %2, align 4
%20 = load i32, ptr %2, align 4
%21 = icmp slt i32 %20, 20
br i1 %21, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %22
22: ; preds = %._crit_edge, %0
%23 = load i32, ptr %1, align 4
ret i32 %23
}
declare i32 @timer_init(...) #1
declare double @timer_seconds_since_init(...) #1
declare i32 @sleep(i32 noundef) #1
declare i32 @printf(ptr noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpdf61mko3.c'
source_filename = "/tmp/tmpdf61mko3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ivzero(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @ivclear(ptr noundef %5, i32 noundef 0, i32 noundef %6)
ret void
}
declare i32 @ivclear(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdf61mko3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ivzero(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @ivclear(ptr noundef %5, i32 noundef 0, i32 noundef %6)
ret void
}
declare i32 @ivclear(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmf9o5m5y.c'
source_filename = "/tmp/tmpmf9o5m5y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bot_timestamp_now() #0 {
%1 = alloca %struct.timeval, align 8
%2 = call i32 @gettimeofday(ptr noundef %1, ptr noundef null)
%3 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 1
%4 = load i64, ptr %3, align 8
%5 = trunc i64 %4 to i32
%6 = mul nsw i32 %5, 1000000
%7 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 0
%8 = load i32, ptr %7, align 8
%9 = add nsw i32 %6, %8
ret i32 %9
}
declare i32 @gettimeofday(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/tmpmf9o5m5y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bot_timestamp_now() #0 {
%1 = alloca %struct.timeval, align 8
%2 = call i32 @gettimeofday(ptr noundef %1, ptr noundef null)
%3 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 1
%4 = load i64, ptr %3, align 8
%5 = trunc i64 %4 to i32
%6 = mul nsw i32 %5, 1000000
%7 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 0
%8 = load i32, ptr %7, align 8
%9 = add nsw i32 %6, %8
ret i32 %9
}
declare i32 @gettimeofday(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/tmp763ntxwc.c'
source_filename = "/tmp/tmp763ntxwc.c"
target datalayout = "e-m:e-p270: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/tmp763ntxwc.c"
target datalayout = "e-m:e-p270: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/tmp5dsqmevs.c'
source_filename = "/tmp/tmp5dsqmevs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sidh_concat(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i64 @strlen(ptr noundef %6)
%8 = load ptr, ptr %4, align 8
%9 = call i64 @strlen(ptr noundef %8)
%10 = add nsw i64 %7, %9
%11 = add nsw i64 %10, 1
%12 = call i64 @malloc(i64 noundef %11)
%13 = inttoptr i64 %12 to ptr
store ptr %13, ptr %5, align 8
%14 = load ptr, ptr %5, align 8
%15 = load ptr, ptr %3, align 8
%16 = call i32 @strcpy(ptr noundef %14, ptr noundef %15)
%17 = load ptr, ptr %5, align 8
%18 = load ptr, ptr %4, align 8
%19 = call i32 @strcat(ptr noundef %17, ptr noundef %18)
%20 = load ptr, ptr %5, align 8
ret ptr %20
}
declare i64 @malloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5dsqmevs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sidh_concat(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i64 @strlen(ptr noundef %6)
%8 = load ptr, ptr %4, align 8
%9 = call i64 @strlen(ptr noundef %8)
%10 = add nsw i64 %7, %9
%11 = add nsw i64 %10, 1
%12 = call i64 @malloc(i64 noundef %11)
%13 = inttoptr i64 %12 to ptr
store ptr %13, ptr %5, align 8
%14 = load ptr, ptr %5, align 8
%15 = load ptr, ptr %3, align 8
%16 = call i32 @strcpy(ptr noundef %14, ptr noundef %15)
%17 = load ptr, ptr %5, align 8
%18 = load ptr, ptr %4, align 8
%19 = call i32 @strcat(ptr noundef %17, ptr noundef %18)
%20 = load ptr, ptr %5, align 8
ret ptr %20
}
declare i64 @malloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8t6b9qv1.c'
source_filename = "/tmp/tmp8t6b9qv1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @maxArea(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = sub nsw i32 %9, 1
store i32 %10, ptr %6, align 4
br label %11
11: ; preds = %39, %2
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %6, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %40
15: ; preds = %11
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %6, align 4
%19 = call i32 @calArea(ptr noundef %16, i32 noundef %17, i32 noundef %18)
%20 = load i32, ptr %8, align 4
%21 = call i32 @max_v(i32 noundef %19, i32 noundef %20)
store i32 %21, ptr %8, align 4
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr %5, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %22, i64 %24
%26 = load i32, ptr %25, align 4
%27 = load ptr, ptr %3, align 8
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i32, ptr %27, i64 %29
%31 = load i32, ptr %30, align 4
%32 = icmp slt i32 %26, %31
br i1 %32, label %33, label %36
33: ; preds = %15
%34 = load i32, ptr %5, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %5, align 4
br label %39
36: ; preds = %15
%37 = load i32, ptr %6, align 4
%38 = add nsw i32 %37, -1
store i32 %38, ptr %6, align 4
br label %39
39: ; preds = %36, %33
br label %11, !llvm.loop !6
40: ; preds = %11
%41 = load i32, ptr %8, align 4
ret i32 %41
}
declare i32 @max_v(i32 noundef, i32 noundef) #1
declare i32 @calArea(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8t6b9qv1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @maxArea(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = sub nsw i32 %9, 1
store i32 %10, ptr %6, align 4
%11 = load i32, ptr %5, align 4
%12 = load i32, ptr %6, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %.lr.ph, label %42
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %38
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %6, align 4
%18 = call i32 @calArea(ptr noundef %15, i32 noundef %16, i32 noundef %17)
%19 = load i32, ptr %8, align 4
%20 = call i32 @max_v(i32 noundef %18, i32 noundef %19)
store i32 %20, ptr %8, align 4
%21 = load ptr, ptr %3, align 8
%22 = load i32, ptr %5, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, ptr %21, i64 %23
%25 = load i32, ptr %24, align 4
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %6, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i32, ptr %26, i64 %28
%30 = load i32, ptr %29, align 4
%31 = icmp slt i32 %25, %30
br i1 %31, label %32, label %35
32: ; preds = %14
%33 = load i32, ptr %5, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %5, align 4
br label %38
35: ; preds = %14
%36 = load i32, ptr %6, align 4
%37 = add nsw i32 %36, -1
store i32 %37, ptr %6, align 4
br label %38
38: ; preds = %35, %32
%39 = load i32, ptr %5, align 4
%40 = load i32, ptr %6, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %42
42: ; preds = %._crit_edge, %2
%43 = load i32, ptr %8, align 4
ret i32 %43
}
declare i32 @max_v(i32 noundef, i32 noundef) #1
declare i32 @calArea(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"}
|
; ModuleID = '/tmp/tmp1o9neq3b.c'
source_filename = "/tmp/tmp1o9neq3b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@BUFSIZ = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1o9neq3b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@BUFSIZ = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4svrnwsp.c'
source_filename = "/tmp/tmp4svrnwsp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strtrim(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strlen(ptr noundef %5)
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, ptr %4, i64 %7
%9 = getelementptr inbounds i8, ptr %8, i64 -1
store ptr %9, ptr %3, align 8
br label %10
10: ; preds = %21, %1
%11 = load ptr, ptr %3, align 8
%12 = load ptr, ptr %2, align 8
%13 = icmp ugt ptr %11, %12
br i1 %13, label %14, label %19
14: ; preds = %10
%15 = load ptr, ptr %3, align 8
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp sle i32 %17, 32
br label %19
19: ; preds = %14, %10
%20 = phi i1 [ false, %10 ], [ %18, %14 ]
br i1 %20, label %21, label %24
21: ; preds = %19
%22 = load ptr, ptr %3, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 -1
store ptr %23, ptr %3, align 8
store i8 0, ptr %22, align 1
br label %10, !llvm.loop !6
24: ; preds = %19
%25 = load ptr, ptr %2, align 8
ret ptr %25
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4svrnwsp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strtrim(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strlen(ptr noundef %5)
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, ptr %4, i64 %7
%9 = getelementptr inbounds i8, ptr %8, i64 -1
store ptr %9, ptr %3, align 8
br label %10
10: ; preds = %21, %1
%11 = load ptr, ptr %3, align 8
%12 = load ptr, ptr %2, align 8
%13 = icmp ugt ptr %11, %12
br i1 %13, label %14, label %19
14: ; preds = %10
%15 = load ptr, ptr %3, align 8
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp sle i32 %17, 32
br label %19
19: ; preds = %14, %10
%20 = phi i1 [ false, %10 ], [ %18, %14 ]
br i1 %20, label %21, label %24
21: ; preds = %19
%22 = load ptr, ptr %3, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 -1
store ptr %23, ptr %3, align 8
store i8 0, ptr %22, align 1
br label %10, !llvm.loop !6
24: ; preds = %19
%25 = load ptr, ptr %2, align 8
ret ptr %25
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpb37665ns.c'
source_filename = "/tmp/tmpb37665ns.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Remainder of %f / %d is %lf\0A\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"Remainder of %f / %f is %lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store float 0x4022666660000000, ptr %2, align 4
store float 0x400D9999A0000000, ptr %3, align 4
store i32 2, ptr %4, align 4
%5 = load float, ptr %2, align 4
%6 = load i32, ptr %4, align 4
%7 = sitofp i32 %6 to float
%8 = load float, ptr %2, align 4
%9 = load i32, ptr %4, align 4
%10 = sitofp i32 %9 to float
%11 = call i32 @fmod(float noundef %8, float noundef %10)
%12 = call i32 @printf(ptr noundef @.str, float noundef %5, float noundef %7, i32 noundef %11)
%13 = load float, ptr %2, align 4
%14 = load float, ptr %3, align 4
%15 = load float, ptr %2, align 4
%16 = load float, ptr %3, align 4
%17 = call i32 @fmod(float noundef %15, float noundef %16)
%18 = call i32 @printf(ptr noundef @.str.1, float noundef %13, float noundef %14, i32 noundef %17)
ret i32 0
}
declare i32 @printf(ptr noundef, float noundef, float noundef, i32 noundef) #1
declare i32 @fmod(float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb37665ns.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Remainder of %f / %d is %lf\0A\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"Remainder of %f / %f is %lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store float 0x4022666660000000, ptr %2, align 4
store float 0x400D9999A0000000, ptr %3, align 4
store i32 2, ptr %4, align 4
%5 = load float, ptr %2, align 4
%6 = load i32, ptr %4, align 4
%7 = sitofp i32 %6 to float
%8 = load float, ptr %2, align 4
%9 = load i32, ptr %4, align 4
%10 = sitofp i32 %9 to float
%11 = call i32 @fmod(float noundef %8, float noundef %10)
%12 = call i32 @printf(ptr noundef @.str, float noundef %5, float noundef %7, i32 noundef %11)
%13 = load float, ptr %2, align 4
%14 = load float, ptr %3, align 4
%15 = load float, ptr %2, align 4
%16 = load float, ptr %3, align 4
%17 = call i32 @fmod(float noundef %15, float noundef %16)
%18 = call i32 @printf(ptr noundef @.str.1, float noundef %13, float noundef %14, i32 noundef %17)
ret i32 0
}
declare i32 @printf(ptr noundef, float noundef, float noundef, i32 noundef) #1
declare i32 @fmod(float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnz3_bpu3.c'
source_filename = "/tmp/tmpnz3_bpu3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"!!!Hello World!!!\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @puts(ptr noundef @.str)
%3 = call i32 (...) @solution01()
%4 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %4
}
declare i32 @puts(ptr noundef) #1
declare i32 @solution01(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnz3_bpu3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"!!!Hello World!!!\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @puts(ptr noundef @.str)
%3 = call i32 (...) @solution01()
%4 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %4
}
declare i32 @puts(ptr noundef) #1
declare i32 @solution01(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyh0n_0uw.c'
source_filename = "/tmp/tmpyh0n_0uw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@encaps_hdlc.dest = internal global [8194 x i8] zeroinitializer, align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @encaps_hdlc(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i8, align 1
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%12 = load ptr, ptr %5, align 8
store ptr %12, ptr %7, align 8
store i32 0, ptr %8, align 4
%13 = load ptr, ptr %7, align 8
%14 = load i32, ptr %6, align 4
%15 = call i32 @pppfcs16(i32 noundef 65535, ptr noundef %13, i32 noundef %14)
%16 = xor i32 %15, 65535
store i32 %16, ptr %10, align 4
%17 = load i32, ptr %8, align 4
%18 = add i32 %17, 1
store i32 %18, ptr %8, align 4
%19 = zext i32 %17 to i64
%20 = getelementptr inbounds [8194 x i8], ptr @encaps_hdlc.dest, i64 0, i64 %19
store i8 126, ptr %20, align 1
store i32 0, ptr %9, align 4
br label %21
21: ; preds = %94, %3
%22 = load i32, ptr %9, align 4
%23 = load i32, ptr %6, align 4
%24 = add i32 %23, 2
%25 = icmp ult i32 %22, %24
br i1 %25, label %26, label %97
26: ; preds = %21
%27 = load i32, ptr %9, align 4
%28 = load i32, ptr %6, align 4
%29 = icmp ult i32 %27, %28
br i1 %29, label %30, label %37
30: ; preds = %26
%31 = load ptr, ptr %7, align 8
%32 = load i32, ptr %9, align 4
%33 = zext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, i64 %33
%35 = load i8, ptr %34, align 1
%36 = zext i8 %35 to i32
br label %50
37: ; preds = %26
%38 = load i32, ptr %9, align 4
%39 = load i32, ptr %6, align 4
%40 = icmp eq i32 %38, %39
br i1 %40, label %41, label %44
41: ; preds = %37
%42 = load i32, ptr %10, align 4
%43 = and i32 %42, 255
br label %48
44: ; preds = %37
%45 = load i32, ptr %10, align 4
%46 = ashr i32 %45, 8
%47 = and i32 %46, 255
br label %48
48: ; preds = %44, %41
%49 = phi i32 [ %43, %41 ], [ %47, %44 ]
br label %50
50: ; preds = %48, %30
%51 = phi i32 [ %36, %30 ], [ %49, %48 ]
%52 = trunc i32 %51 to i8
store i8 %52, ptr %11, align 1
%53 = load i32, ptr %8, align 4
%54 = zext i32 %53 to i64
%55 = icmp uge i64 %54, 8194
br i1 %55, label %56, label %57
56: ; preds = %50
br label %97
57: ; preds = %50
%58 = load i8, ptr %11, align 1
%59 = zext i8 %58 to i32
%60 = icmp slt i32 %59, 32
br i1 %60, label %69, label %61
61: ; preds = %57
%62 = load i8, ptr %11, align 1
%63 = zext i8 %62 to i32
%64 = icmp eq i32 %63, 126
br i1 %64, label %69, label %65
65: ; preds = %61
%66 = load i8, ptr %11, align 1
%67 = zext i8 %66 to i32
%68 = icmp eq i32 %67, 125
br i1 %68, label %69, label %87
69: ; preds = %65, %61, %57
%70 = load i32, ptr %8, align 4
%71 = add i32 %70, 1
store i32 %71, ptr %8, align 4
%72 = zext i32 %70 to i64
%73 = getelementptr inbounds [8194 x i8], ptr @encaps_hdlc.dest, i64 0, i64 %72
store i8 125, ptr %73, align 1
%74 = load i32, ptr %8, align 4
%75 = zext i32 %74 to i64
%76 = icmp ult i64 %75, 8194
br i1 %76, label %77, label %86
77: ; preds = %69
%78 = load i8, ptr %11, align 1
%79 = zext i8 %78 to i32
%80 = xor i32 %79, 32
%81 = trunc i32 %80 to i8
%82 = load i32, ptr %8, align 4
%83 = add i32 %82, 1
store i32 %83, ptr %8, align 4
%84 = zext i32 %82 to i64
%85 = getelementptr inbounds [8194 x i8], ptr @encaps_hdlc.dest, i64 0, i64 %84
store i8 %81, ptr %85, align 1
br label %86
86: ; preds = %77, %69
br label %93
87: ; preds = %65
%88 = load i8, ptr %11, align 1
%89 = load i32, ptr %8, align 4
%90 = add i32 %89, 1
store i32 %90, ptr %8, align 4
%91 = zext i32 %89 to i64
%92 = getelementptr inbounds [8194 x i8], ptr @encaps_hdlc.dest, i64 0, i64 %91
store i8 %88, ptr %92, align 1
br label %93
93: ; preds = %87, %86
br label %94
94: ; preds = %93
%95 = load i32, ptr %9, align 4
%96 = add i32 %95, 1
store i32 %96, ptr %9, align 4
br label %21, !llvm.loop !6
97: ; preds = %56, %21
%98 = load i32, ptr %8, align 4
%99 = zext i32 %98 to i64
%100 = icmp ult i64 %99, 8194
br i1 %100, label %101, label %106
101: ; preds = %97
%102 = load i32, ptr %8, align 4
%103 = add i32 %102, 1
store i32 %103, ptr %8, align 4
%104 = zext i32 %102 to i64
%105 = getelementptr inbounds [8194 x i8], ptr @encaps_hdlc.dest, i64 0, i64 %104
store i8 126, ptr %105, align 1
br label %106
106: ; preds = %101, %97
%107 = load i32, ptr %4, align 4
%108 = load i32, ptr %8, align 4
%109 = call i32 @write(i32 noundef %107, ptr noundef @encaps_hdlc.dest, i32 noundef %108)
ret i32 %109
}
declare i32 @pppfcs16(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpyh0n_0uw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@encaps_hdlc.dest = internal global [8194 x i8] zeroinitializer, align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @encaps_hdlc(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i8, align 1
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%12 = load ptr, ptr %5, align 8
store ptr %12, ptr %7, align 8
store i32 0, ptr %8, align 4
%13 = load ptr, ptr %7, align 8
%14 = load i32, ptr %6, align 4
%15 = call i32 @pppfcs16(i32 noundef 65535, ptr noundef %13, i32 noundef %14)
%16 = xor i32 %15, 65535
store i32 %16, ptr %10, align 4
%17 = load i32, ptr %8, align 4
%18 = add i32 %17, 1
store i32 %18, ptr %8, align 4
%19 = zext i32 %17 to i64
%20 = getelementptr inbounds [8194 x i8], ptr @encaps_hdlc.dest, i64 0, i64 %19
store i8 126, ptr %20, align 1
store i32 0, ptr %9, align 4
%21 = load i32, ptr %9, align 4
%22 = load i32, ptr %6, align 4
%23 = add i32 %22, 2
%24 = icmp ult i32 %21, %23
br i1 %24, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %3
br label %25
25: ; preds = %.lr.ph, %93
%26 = load i32, ptr %9, align 4
%27 = load i32, ptr %6, align 4
%28 = icmp ult i32 %26, %27
br i1 %28, label %29, label %36
29: ; preds = %25
%30 = load ptr, ptr %7, align 8
%31 = load i32, ptr %9, align 4
%32 = zext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %30, i64 %32
%34 = load i8, ptr %33, align 1
%35 = zext i8 %34 to i32
br label %49
36: ; preds = %25
%37 = load i32, ptr %9, align 4
%38 = load i32, ptr %6, align 4
%39 = icmp eq i32 %37, %38
br i1 %39, label %40, label %43
40: ; preds = %36
%41 = load i32, ptr %10, align 4
%42 = and i32 %41, 255
br label %47
43: ; preds = %36
%44 = load i32, ptr %10, align 4
%45 = ashr i32 %44, 8
%46 = and i32 %45, 255
br label %47
47: ; preds = %43, %40
%48 = phi i32 [ %42, %40 ], [ %46, %43 ]
br label %49
49: ; preds = %47, %29
%50 = phi i32 [ %35, %29 ], [ %48, %47 ]
%51 = trunc i32 %50 to i8
store i8 %51, ptr %11, align 1
%52 = load i32, ptr %8, align 4
%53 = zext i32 %52 to i64
%54 = icmp uge i64 %53, 8194
br i1 %54, label %55, label %56
55: ; preds = %49
br label %100
56: ; preds = %49
%57 = load i8, ptr %11, align 1
%58 = zext i8 %57 to i32
%59 = icmp slt i32 %58, 32
br i1 %59, label %68, label %60
60: ; preds = %56
%61 = load i8, ptr %11, align 1
%62 = zext i8 %61 to i32
%63 = icmp eq i32 %62, 126
br i1 %63, label %68, label %64
64: ; preds = %60
%65 = load i8, ptr %11, align 1
%66 = zext i8 %65 to i32
%67 = icmp eq i32 %66, 125
br i1 %67, label %68, label %86
68: ; preds = %64, %60, %56
%69 = load i32, ptr %8, align 4
%70 = add i32 %69, 1
store i32 %70, ptr %8, align 4
%71 = zext i32 %69 to i64
%72 = getelementptr inbounds [8194 x i8], ptr @encaps_hdlc.dest, i64 0, i64 %71
store i8 125, ptr %72, align 1
%73 = load i32, ptr %8, align 4
%74 = zext i32 %73 to i64
%75 = icmp ult i64 %74, 8194
br i1 %75, label %76, label %85
76: ; preds = %68
%77 = load i8, ptr %11, align 1
%78 = zext i8 %77 to i32
%79 = xor i32 %78, 32
%80 = trunc i32 %79 to i8
%81 = load i32, ptr %8, align 4
%82 = add i32 %81, 1
store i32 %82, ptr %8, align 4
%83 = zext i32 %81 to i64
%84 = getelementptr inbounds [8194 x i8], ptr @encaps_hdlc.dest, i64 0, i64 %83
store i8 %80, ptr %84, align 1
br label %85
85: ; preds = %76, %68
br label %92
86: ; preds = %64
%87 = load i8, ptr %11, align 1
%88 = load i32, ptr %8, align 4
%89 = add i32 %88, 1
store i32 %89, ptr %8, align 4
%90 = zext i32 %88 to i64
%91 = getelementptr inbounds [8194 x i8], ptr @encaps_hdlc.dest, i64 0, i64 %90
store i8 %87, ptr %91, align 1
br label %92
92: ; preds = %86, %85
br label %93
93: ; preds = %92
%94 = load i32, ptr %9, align 4
%95 = add i32 %94, 1
store i32 %95, ptr %9, align 4
%96 = load i32, ptr %9, align 4
%97 = load i32, ptr %6, align 4
%98 = add i32 %97, 2
%99 = icmp ult i32 %96, %98
br i1 %99, label %25, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %93
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %3
br label %100
100: ; preds = %.loopexit, %55
%101 = load i32, ptr %8, align 4
%102 = zext i32 %101 to i64
%103 = icmp ult i64 %102, 8194
br i1 %103, label %104, label %109
104: ; preds = %100
%105 = load i32, ptr %8, align 4
%106 = add i32 %105, 1
store i32 %106, ptr %8, align 4
%107 = zext i32 %105 to i64
%108 = getelementptr inbounds [8194 x i8], ptr @encaps_hdlc.dest, i64 0, i64 %107
store i8 126, ptr %108, align 1
br label %109
109: ; preds = %104, %100
%110 = load i32, ptr %4, align 4
%111 = load i32, ptr %8, align 4
%112 = call i32 @write(i32 noundef %110, ptr noundef @encaps_hdlc.dest, i32 noundef %111)
ret i32 %112
}
declare i32 @pppfcs16(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpqh8cj0z6.c'
source_filename = "/tmp/tmpqh8cj0z6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"readinittab\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @readinittab() #0 {
%1 = call i32 @nocall(ptr noundef @.str)
ret void
}
declare i32 @nocall(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqh8cj0z6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"readinittab\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @readinittab() #0 {
%1 = call i32 @nocall(ptr noundef @.str)
ret void
}
declare i32 @nocall(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfkk5qk9n.c'
source_filename = "/tmp/tmpfkk5qk9n.c"
target datalayout = "e-m:e-p270: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
@EINVAL = dso_local global i64 0, align 8
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [28 x i8] c"%s is not a symbolic link.\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"readlink\00", align 1
@.str.2 = private unnamed_addr constant [28 x i8] c"%s is symbolic link to %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 [256 x i8], align 16
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 1
%11 = load ptr, ptr %10, align 8
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %7, align 8
%13 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%14 = call i32 @readlink(ptr noundef %12, ptr noundef %13, i32 noundef 256)
store i32 %14, ptr %8, align 4
%15 = load i32, ptr %8, align 4
%16 = icmp eq i32 %15, -1
br i1 %16, label %17, label %28
17: ; preds = %2
%18 = load i64, ptr @errno, align 8
%19 = load i64, ptr @EINVAL, align 8
%20 = icmp eq i64 %18, %19
br i1 %20, label %21, label %25
21: ; preds = %17
%22 = load i32, ptr @stderr, align 4
%23 = load ptr, ptr %7, align 8
%24 = call i32 @fprintf(i32 noundef %22, ptr noundef @.str, ptr noundef %23)
br label %27
25: ; preds = %17
%26 = call i32 @perror(ptr noundef @.str.1)
br label %27
27: ; preds = %25, %21
store i32 1, ptr %3, align 4
br label %36
28: ; preds = %2
%29 = load i32, ptr %8, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %30
store i8 0, ptr %31, align 1
%32 = load ptr, ptr %7, align 8
%33 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%34 = call i32 @printf(ptr noundef @.str.2, ptr noundef %32, ptr noundef %33)
br label %35
35: ; preds = %28
store i32 0, ptr %3, align 4
br label %36
36: ; preds = %35, %27
%37 = load i32, ptr %3, align 4
ret i32 %37
}
declare i32 @readlink(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @printf(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/tmpfkk5qk9n.c"
target datalayout = "e-m:e-p270: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
@EINVAL = dso_local global i64 0, align 8
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [28 x i8] c"%s is not a symbolic link.\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"readlink\00", align 1
@.str.2 = private unnamed_addr constant [28 x i8] c"%s is symbolic link to %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 [256 x i8], align 16
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 1
%11 = load ptr, ptr %10, align 8
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %7, align 8
%13 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%14 = call i32 @readlink(ptr noundef %12, ptr noundef %13, i32 noundef 256)
store i32 %14, ptr %8, align 4
%15 = load i32, ptr %8, align 4
%16 = icmp eq i32 %15, -1
br i1 %16, label %17, label %28
17: ; preds = %2
%18 = load i64, ptr @errno, align 8
%19 = load i64, ptr @EINVAL, align 8
%20 = icmp eq i64 %18, %19
br i1 %20, label %21, label %25
21: ; preds = %17
%22 = load i32, ptr @stderr, align 4
%23 = load ptr, ptr %7, align 8
%24 = call i32 @fprintf(i32 noundef %22, ptr noundef @.str, ptr noundef %23)
br label %27
25: ; preds = %17
%26 = call i32 @perror(ptr noundef @.str.1)
br label %27
27: ; preds = %25, %21
store i32 1, ptr %3, align 4
br label %36
28: ; preds = %2
%29 = load i32, ptr %8, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %30
store i8 0, ptr %31, align 1
%32 = load ptr, ptr %7, align 8
%33 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%34 = call i32 @printf(ptr noundef @.str.2, ptr noundef %32, ptr noundef %33)
br label %35
35: ; preds = %28
store i32 0, ptr %3, align 4
br label %36
36: ; preds = %35, %27
%37 = load i32, ptr %3, align 4
ret i32 %37
}
declare i32 @readlink(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @printf(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/tmpe_5p7fua.c'
source_filename = "/tmp/tmpe_5p7fua.c"
target datalayout = "e-m:e-p270: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/tmpe_5p7fua.c"
target datalayout = "e-m:e-p270: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/tmpik0re7ej.c'
source_filename = "/tmp/tmpik0re7ej.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @USBDevEndpointConfigGet(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%10 = load ptr, ptr %8, align 8
%11 = load i32, ptr %10, align 4
%12 = and i32 %11, 8192
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %72
14: ; preds = %4
%15 = load ptr, ptr %8, align 8
store i32 8192, ptr %15, align 4
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %6, align 4
%18 = sub nsw i32 %17, 16
%19 = add nsw i32 %16, %18
%20 = add nsw i32 %19, 272
%21 = sext i32 %20 to i64
%22 = inttoptr i64 %21 to ptr
%23 = load volatile i64, ptr %22, align 8
%24 = trunc i64 %23 to i32
%25 = load ptr, ptr %7, align 8
store i32 %24, ptr %25, align 4
%26 = load i32, ptr %5, align 4
%27 = load i32, ptr %6, align 4
%28 = sub nsw i32 %27, 16
%29 = add nsw i32 %26, %28
%30 = add nsw i32 %29, 275
%31 = sext i32 %30 to i64
%32 = inttoptr i64 %31 to ptr
%33 = load volatile i64, ptr %32, align 8
%34 = trunc i64 %33 to i32
store i32 %34, ptr %9, align 4
%35 = load i32, ptr %9, align 4
%36 = and i32 %35, 128
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %42
38: ; preds = %14
%39 = load ptr, ptr %8, align 8
%40 = load i32, ptr %39, align 4
%41 = or i32 %40, 1
store i32 %41, ptr %39, align 4
br label %42
42: ; preds = %38, %14
%43 = load i32, ptr %9, align 4
%44 = and i32 %43, 16
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %59
46: ; preds = %42
%47 = load i32, ptr %9, align 4
%48 = and i32 %47, 4
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %54
50: ; preds = %46
%51 = load ptr, ptr %8, align 8
%52 = load i32, ptr %51, align 4
%53 = or i32 %52, 16
store i32 %53, ptr %51, align 4
br label %58
54: ; preds = %46
%55 = load ptr, ptr %8, align 8
%56 = load i32, ptr %55, align 4
%57 = or i32 %56, 8
store i32 %57, ptr %55, align 4
br label %58
58: ; preds = %54, %50
br label %59
59: ; preds = %58, %42
%60 = load i32, ptr %9, align 4
%61 = and i32 %60, 64
%62 = icmp ne i32 %61, 0
br i1 %62, label %63, label %67
63: ; preds = %59
%64 = load ptr, ptr %8, align 8
%65 = load i32, ptr %64, align 4
%66 = or i32 %65, 0
store i32 %66, ptr %64, align 4
br label %71
67: ; preds = %59
%68 = load ptr, ptr %8, align 8
%69 = load i32, ptr %68, align 4
%70 = or i32 %69, 256
store i32 %70, ptr %68, align 4
br label %71
71: ; preds = %67, %63
br label %130
72: ; preds = %4
%73 = load ptr, ptr %8, align 8
store i32 0, ptr %73, align 4
%74 = load i32, ptr %5, align 4
%75 = load i32, ptr %6, align 4
%76 = sub nsw i32 %75, 16
%77 = add nsw i32 %74, %76
%78 = add nsw i32 %77, 276
%79 = sext i32 %78 to i64
%80 = inttoptr i64 %79 to ptr
%81 = load volatile i64, ptr %80, align 8
%82 = trunc i64 %81 to i32
%83 = load ptr, ptr %7, align 8
store i32 %82, ptr %83, align 4
%84 = load i32, ptr %5, align 4
%85 = load i32, ptr %6, align 4
%86 = sub nsw i32 %85, 16
%87 = add nsw i32 %84, %86
%88 = add nsw i32 %87, 279
%89 = sext i32 %88 to i64
%90 = inttoptr i64 %89 to ptr
%91 = load volatile i64, ptr %90, align 8
%92 = trunc i64 %91 to i32
store i32 %92, ptr %9, align 4
%93 = load i32, ptr %9, align 4
%94 = and i32 %93, 128
%95 = icmp ne i32 %94, 0
br i1 %95, label %96, label %100
96: ; preds = %72
%97 = load ptr, ptr %8, align 8
%98 = load i32, ptr %97, align 4
%99 = or i32 %98, 4
store i32 %99, ptr %97, align 4
br label %100
100: ; preds = %96, %72
%101 = load i32, ptr %9, align 4
%102 = and i32 %101, 32
%103 = icmp ne i32 %102, 0
br i1 %103, label %104, label %117
104: ; preds = %100
%105 = load i32, ptr %9, align 4
%106 = and i32 %105, 8
%107 = icmp ne i32 %106, 0
br i1 %107, label %108, label %112
108: ; preds = %104
%109 = load ptr, ptr %8, align 8
%110 = load i32, ptr %109, align 4
%111 = or i32 %110, 16
store i32 %111, ptr %109, align 4
br label %116
112: ; preds = %104
%113 = load ptr, ptr %8, align 8
%114 = load i32, ptr %113, align 4
%115 = or i32 %114, 8
store i32 %115, ptr %113, align 4
br label %116
116: ; preds = %112, %108
br label %117
117: ; preds = %116, %100
%118 = load i32, ptr %9, align 4
%119 = and i32 %118, 64
%120 = icmp ne i32 %119, 0
br i1 %120, label %121, label %125
121: ; preds = %117
%122 = load ptr, ptr %8, align 8
%123 = load i32, ptr %122, align 4
%124 = or i32 %123, 0
store i32 %124, ptr %122, align 4
br label %129
125: ; preds = %117
%126 = load ptr, ptr %8, align 8
%127 = load i32, ptr %126, align 4
%128 = or i32 %127, 256
store i32 %128, ptr %126, align 4
br label %129
129: ; preds = %125, %121
br label %130
130: ; preds = %129, %71
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpik0re7ej.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @USBDevEndpointConfigGet(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%10 = load ptr, ptr %8, align 8
%11 = load i32, ptr %10, align 4
%12 = and i32 %11, 8192
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %72
14: ; preds = %4
%15 = load ptr, ptr %8, align 8
store i32 8192, ptr %15, align 4
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %6, align 4
%18 = sub nsw i32 %17, 16
%19 = add nsw i32 %16, %18
%20 = add nsw i32 %19, 272
%21 = sext i32 %20 to i64
%22 = inttoptr i64 %21 to ptr
%23 = load volatile i64, ptr %22, align 8
%24 = trunc i64 %23 to i32
%25 = load ptr, ptr %7, align 8
store i32 %24, ptr %25, align 4
%26 = load i32, ptr %5, align 4
%27 = load i32, ptr %6, align 4
%28 = sub nsw i32 %27, 16
%29 = add nsw i32 %26, %28
%30 = add nsw i32 %29, 275
%31 = sext i32 %30 to i64
%32 = inttoptr i64 %31 to ptr
%33 = load volatile i64, ptr %32, align 8
%34 = trunc i64 %33 to i32
store i32 %34, ptr %9, align 4
%35 = load i32, ptr %9, align 4
%36 = and i32 %35, 128
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %42
38: ; preds = %14
%39 = load ptr, ptr %8, align 8
%40 = load i32, ptr %39, align 4
%41 = or i32 %40, 1
store i32 %41, ptr %39, align 4
br label %42
42: ; preds = %38, %14
%43 = load i32, ptr %9, align 4
%44 = and i32 %43, 16
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %59
46: ; preds = %42
%47 = load i32, ptr %9, align 4
%48 = and i32 %47, 4
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %54
50: ; preds = %46
%51 = load ptr, ptr %8, align 8
%52 = load i32, ptr %51, align 4
%53 = or i32 %52, 16
store i32 %53, ptr %51, align 4
br label %58
54: ; preds = %46
%55 = load ptr, ptr %8, align 8
%56 = load i32, ptr %55, align 4
%57 = or i32 %56, 8
store i32 %57, ptr %55, align 4
br label %58
58: ; preds = %54, %50
br label %59
59: ; preds = %58, %42
%60 = load i32, ptr %9, align 4
%61 = and i32 %60, 64
%62 = icmp ne i32 %61, 0
br i1 %62, label %63, label %67
63: ; preds = %59
%64 = load ptr, ptr %8, align 8
%65 = load i32, ptr %64, align 4
%66 = or i32 %65, 0
store i32 %66, ptr %64, align 4
br label %71
67: ; preds = %59
%68 = load ptr, ptr %8, align 8
%69 = load i32, ptr %68, align 4
%70 = or i32 %69, 256
store i32 %70, ptr %68, align 4
br label %71
71: ; preds = %67, %63
br label %130
72: ; preds = %4
%73 = load ptr, ptr %8, align 8
store i32 0, ptr %73, align 4
%74 = load i32, ptr %5, align 4
%75 = load i32, ptr %6, align 4
%76 = sub nsw i32 %75, 16
%77 = add nsw i32 %74, %76
%78 = add nsw i32 %77, 276
%79 = sext i32 %78 to i64
%80 = inttoptr i64 %79 to ptr
%81 = load volatile i64, ptr %80, align 8
%82 = trunc i64 %81 to i32
%83 = load ptr, ptr %7, align 8
store i32 %82, ptr %83, align 4
%84 = load i32, ptr %5, align 4
%85 = load i32, ptr %6, align 4
%86 = sub nsw i32 %85, 16
%87 = add nsw i32 %84, %86
%88 = add nsw i32 %87, 279
%89 = sext i32 %88 to i64
%90 = inttoptr i64 %89 to ptr
%91 = load volatile i64, ptr %90, align 8
%92 = trunc i64 %91 to i32
store i32 %92, ptr %9, align 4
%93 = load i32, ptr %9, align 4
%94 = and i32 %93, 128
%95 = icmp ne i32 %94, 0
br i1 %95, label %96, label %100
96: ; preds = %72
%97 = load ptr, ptr %8, align 8
%98 = load i32, ptr %97, align 4
%99 = or i32 %98, 4
store i32 %99, ptr %97, align 4
br label %100
100: ; preds = %96, %72
%101 = load i32, ptr %9, align 4
%102 = and i32 %101, 32
%103 = icmp ne i32 %102, 0
br i1 %103, label %104, label %117
104: ; preds = %100
%105 = load i32, ptr %9, align 4
%106 = and i32 %105, 8
%107 = icmp ne i32 %106, 0
br i1 %107, label %108, label %112
108: ; preds = %104
%109 = load ptr, ptr %8, align 8
%110 = load i32, ptr %109, align 4
%111 = or i32 %110, 16
store i32 %111, ptr %109, align 4
br label %116
112: ; preds = %104
%113 = load ptr, ptr %8, align 8
%114 = load i32, ptr %113, align 4
%115 = or i32 %114, 8
store i32 %115, ptr %113, align 4
br label %116
116: ; preds = %112, %108
br label %117
117: ; preds = %116, %100
%118 = load i32, ptr %9, align 4
%119 = and i32 %118, 64
%120 = icmp ne i32 %119, 0
br i1 %120, label %121, label %125
121: ; preds = %117
%122 = load ptr, ptr %8, align 8
%123 = load i32, ptr %122, align 4
%124 = or i32 %123, 0
store i32 %124, ptr %122, align 4
br label %129
125: ; preds = %117
%126 = load ptr, ptr %8, align 8
%127 = load i32, ptr %126, align 4
%128 = or i32 %127, 256
store i32 %128, ptr %126, align 4
br label %129
129: ; preds = %125, %121
br label %130
130: ; preds = %129, %71
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.