llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmpljocpdn0.c'
source_filename = "/tmp/tmpljocpdn0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c" %s\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [101 x i8], align 16
store i32 0, ptr %1, align 4
br label %6
6: ; preds = %57, %0
%7 = getelementptr inbounds [101 x i8], ptr %5, i64 0, i64 0
%8 = call i64 @scanf(ptr noundef @.str, ptr noundef %7)
%9 = load i64, ptr @EOF, align 8
%10 = icmp ne i64 %8, %9
br i1 %10, label %11, label %17
11: ; preds = %6
%12 = getelementptr inbounds [101 x i8], ptr %5, i64 0, i64 0
%13 = load i8, ptr %12, align 16
%14 = sext i8 %13 to i32
%15 = sub nsw i32 %14, 48
%16 = icmp ne i32 %15, 0
br label %17
17: ; preds = %11, %6
%18 = phi i1 [ false, %6 ], [ %16, %11 ]
br i1 %18, label %19, label %61
19: ; preds = %17
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
br label %20
20: ; preds = %44, %19
%21 = load i32, ptr %4, align 4
%22 = getelementptr inbounds [101 x i8], ptr %5, i64 0, i64 0
%23 = call i32 @strlen(ptr noundef %22)
%24 = icmp slt i32 %21, %23
br i1 %24, label %25, label %47
25: ; preds = %20
%26 = load i32, ptr %4, align 4
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %25
br label %44
29: ; preds = %25
%30 = load i32, ptr %4, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [101 x i8], ptr %5, i64 0, i64 %31
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 65
br i1 %35, label %36, label %39
36: ; preds = %29
%37 = load i32, ptr %2, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %2, align 4
br label %42
39: ; preds = %29
%40 = load i32, ptr %3, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %3, align 4
br label %42
42: ; preds = %39, %36
br label %43
43: ; preds = %42
br label %44
44: ; preds = %43, %28
%45 = load i32, ptr %4, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %4, align 4
br label %20, !llvm.loop !6
47: ; preds = %20
%48 = load i32, ptr %2, align 4
%49 = load i32, ptr %3, align 4
%50 = icmp sgt i32 %48, %49
br i1 %50, label %51, label %54
51: ; preds = %47
%52 = load i32, ptr %2, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %2, align 4
br label %57
54: ; preds = %47
%55 = load i32, ptr %3, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %3, align 4
br label %57
57: ; preds = %54, %51
%58 = load i32, ptr %2, align 4
%59 = load i32, ptr %3, align 4
%60 = call i32 @printf(ptr noundef @.str.1, i32 noundef %58, i32 noundef %59)
br label %6, !llvm.loop !8
61: ; preds = %17
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpljocpdn0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c" %s\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [101 x i8], align 16
store i32 0, ptr %1, align 4
br label %6
6: ; preds = %59, %0
%7 = getelementptr inbounds [101 x i8], ptr %5, i64 0, i64 0
%8 = call i64 @scanf(ptr noundef @.str, ptr noundef %7)
%9 = load i64, ptr @EOF, align 8
%10 = icmp ne i64 %8, %9
br i1 %10, label %11, label %17
11: ; preds = %6
%12 = getelementptr inbounds [101 x i8], ptr %5, i64 0, i64 0
%13 = load i8, ptr %12, align 16
%14 = sext i8 %13 to i32
%15 = sub nsw i32 %14, 48
%16 = icmp ne i32 %15, 0
br label %17
17: ; preds = %11, %6
%18 = phi i1 [ false, %6 ], [ %16, %11 ]
br i1 %18, label %19, label %63
19: ; preds = %17
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%20 = load i32, ptr %4, align 4
%21 = getelementptr inbounds [101 x i8], ptr %5, i64 0, i64 0
%22 = call i32 @strlen(ptr noundef %21)
%23 = icmp slt i32 %20, %22
br i1 %23, label %.lr.ph, label %49
.lr.ph: ; preds = %19
br label %24
24: ; preds = %.lr.ph, %43
%25 = load i32, ptr %4, align 4
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %24
br label %43
28: ; preds = %24
%29 = load i32, ptr %4, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [101 x i8], ptr %5, i64 0, i64 %30
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 65
br i1 %34, label %35, label %38
35: ; preds = %28
%36 = load i32, ptr %2, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %2, align 4
br label %41
38: ; preds = %28
%39 = load i32, ptr %3, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %3, align 4
br label %41
41: ; preds = %38, %35
br label %42
42: ; preds = %41
br label %43
43: ; preds = %42, %27
%44 = load i32, ptr %4, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %4, align 4
%46 = load i32, ptr %4, align 4
%47 = call i32 @strlen(ptr noundef %21)
%48 = icmp slt i32 %46, %47
br i1 %48, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %43
br label %49
49: ; preds = %._crit_edge, %19
%50 = load i32, ptr %2, align 4
%51 = load i32, ptr %3, align 4
%52 = icmp sgt i32 %50, %51
br i1 %52, label %53, label %56
53: ; preds = %49
%54 = load i32, ptr %2, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %2, align 4
br label %59
56: ; preds = %49
%57 = load i32, ptr %3, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %3, align 4
br label %59
59: ; preds = %56, %53
%60 = load i32, ptr %2, align 4
%61 = load i32, ptr %3, align 4
%62 = call i32 @printf(ptr noundef @.str.1, i32 noundef %60, i32 noundef %61)
br label %6, !llvm.loop !8
63: ; preds = %17
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpeo04c6r5.c'
source_filename = "/tmp/tmpeo04c6r5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__NR_pivot_root = 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/tmpeo04c6r5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__NR_pivot_root = 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/tmppwo458v1.c'
source_filename = "/tmp/tmppwo458v1.c"
target datalayout = "e-m:e-p270: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/tmppwo458v1.c"
target datalayout = "e-m:e-p270: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/tmpeb_93s29.c'
source_filename = "/tmp/tmpeb_93s29.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"NDSP Initialisation failed\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"Unable to initialised decoder\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"File type is not supported\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"Unsupported number of channels\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ctrmus_strerror(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
switch i32 %4, label %9 [
i32 1000, label %5
i32 1001, label %6
i32 1002, label %7
i32 1003, label %8
]
5: ; preds = %1
store ptr @.str, ptr %3, align 8
br label %12
6: ; preds = %1
store ptr @.str.1, ptr %3, align 8
br label %12
7: ; preds = %1
store ptr @.str.2, ptr %3, align 8
br label %12
8: ; preds = %1
store ptr @.str.3, ptr %3, align 8
br label %12
9: ; preds = %1
%10 = load i32, ptr %2, align 4
%11 = call ptr @strerror(i32 noundef %10)
store ptr %11, ptr %3, align 8
br label %12
12: ; preds = %9, %8, %7, %6, %5
%13 = load ptr, ptr %3, align 8
ret ptr %13
}
declare ptr @strerror(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/tmpeb_93s29.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"NDSP Initialisation failed\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"Unable to initialised decoder\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"File type is not supported\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"Unsupported number of channels\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ctrmus_strerror(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
switch i32 %4, label %9 [
i32 1000, label %5
i32 1001, label %6
i32 1002, label %7
i32 1003, label %8
]
5: ; preds = %1
store ptr @.str, ptr %3, align 8
br label %12
6: ; preds = %1
store ptr @.str.1, ptr %3, align 8
br label %12
7: ; preds = %1
store ptr @.str.2, ptr %3, align 8
br label %12
8: ; preds = %1
store ptr @.str.3, ptr %3, align 8
br label %12
9: ; preds = %1
%10 = load i32, ptr %2, align 4
%11 = call ptr @strerror(i32 noundef %10)
store ptr %11, ptr %3, align 8
br label %12
12: ; preds = %9, %8, %7, %6, %5
%13 = load ptr, ptr %3, align 8
ret ptr %13
}
declare ptr @strerror(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/tmpdj8c7kf8.c'
source_filename = "/tmp/tmpdj8c7kf8.c"
target datalayout = "e-m:e-p270: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/tmpdj8c7kf8.c"
target datalayout = "e-m:e-p270: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/tmpsorft6nx.c'
source_filename = "/tmp/tmpsorft6nx.c"
target datalayout = "e-m:e-p270: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/tmpsorft6nx.c"
target datalayout = "e-m:e-p270: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/tmpwgosd69d.c'
source_filename = "/tmp/tmpwgosd69d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @new_identity_matrix2i(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = call ptr @new_matrix2i(i32 noundef %5, i32 noundef %6)
store ptr %7, ptr %3, align 8
store i32 0, ptr %4, align 4
br label %8
8: ; preds = %21, %1
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %24
12: ; preds = %8
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %4, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds ptr, ptr %13, i64 %15
%17 = load ptr, ptr %16, align 8
%18 = load i32, ptr %4, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %17, i64 %19
store i32 1, ptr %20, align 4
br label %21
21: ; preds = %12
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %4, align 4
br label %8, !llvm.loop !6
24: ; preds = %8
%25 = load ptr, ptr %3, align 8
ret ptr %25
}
declare ptr @new_matrix2i(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/tmpwgosd69d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @new_identity_matrix2i(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = call ptr @new_matrix2i(i32 noundef %5, i32 noundef %6)
store ptr %7, ptr %3, align 8
store i32 0, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %26
.lr.ph: ; preds = %1
br label %11
11: ; preds = %.lr.ph, %20
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %4, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds ptr, ptr %12, i64 %14
%16 = load ptr, ptr %15, align 8
%17 = load i32, ptr %4, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, ptr %16, i64 %18
store i32 1, ptr %19, align 4
br label %20
20: ; preds = %11
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %4, align 4
%23 = load i32, ptr %4, align 4
%24 = load i32, ptr %2, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %26
26: ; preds = %._crit_edge, %1
%27 = load ptr, ptr %3, align 8
ret ptr %27
}
declare ptr @new_matrix2i(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/tmpjy_02ma3.c'
source_filename = "/tmp/tmpjy_02ma3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AF_INET = dso_local global i32 0, align 4
@LOG_ERR = 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/tmpjy_02ma3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AF_INET = dso_local global i32 0, align 4
@LOG_ERR = 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/tmpujth79dk.c'
source_filename = "/tmp/tmpujth79dk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dectobin(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %5, align 4
store i32 1, ptr %4, align 4
br label %6
6: ; preds = %21, %1
%7 = load i32, ptr %2, align 4
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %24
9: ; preds = %6
%10 = load i32, ptr %2, align 4
%11 = srem i32 %10, 2
store i32 %11, ptr %3, align 4
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %4, align 4
%15 = sub nsw i32 %14, 1
%16 = call i32 @pow(i32 noundef 10, i32 noundef %15)
%17 = mul nsw i32 %13, %16
%18 = add nsw i32 %12, %17
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %2, align 4
%20 = sdiv i32 %19, 2
store i32 %20, ptr %2, align 4
br label %21
21: ; preds = %9
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %4, align 4
br label %6, !llvm.loop !6
24: ; preds = %6
%25 = load i32, ptr %5, align 4
ret i32 %25
}
declare i32 @pow(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/tmpujth79dk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dectobin(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %5, align 4
store i32 1, ptr %4, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp ne i32 %6, 0
br i1 %7, label %.lr.ph, label %25
.lr.ph: ; preds = %1
br label %8
8: ; preds = %.lr.ph, %20
%9 = load i32, ptr %2, align 4
%10 = srem i32 %9, 2
store i32 %10, ptr %3, align 4
%11 = load i32, ptr %5, align 4
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %4, align 4
%14 = sub nsw i32 %13, 1
%15 = call i32 @pow(i32 noundef 10, i32 noundef %14)
%16 = mul nsw i32 %12, %15
%17 = add nsw i32 %11, %16
store i32 %17, ptr %5, align 4
%18 = load i32, ptr %2, align 4
%19 = sdiv i32 %18, 2
store i32 %19, ptr %2, align 4
br label %20
20: ; preds = %8
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %4, align 4
%23 = load i32, ptr %2, align 4
%24 = icmp ne i32 %23, 0
br i1 %24, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %25
25: ; preds = %._crit_edge, %1
%26 = load i32, ptr %5, align 4
ret i32 %26
}
declare i32 @pow(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/tmp3t3ag4df.c'
source_filename = "/tmp/tmp3t3ag4df.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @encode_string(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 = call i64 @strlen(ptr noundef %4)
%6 = add nsw i64 %5, 2
%7 = call i64 @calloc(i32 noundef 1, i64 noundef %6)
%8 = inttoptr i64 %7 to ptr
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 2
%11 = load ptr, ptr %2, align 8
%12 = load ptr, ptr %2, align 8
%13 = call i64 @strlen(ptr noundef %12)
%14 = call i32 @memcpy(ptr noundef %10, ptr noundef %11, i64 noundef %13)
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 0
store i8 4, ptr %16, align 1
%17 = load ptr, ptr %2, align 8
%18 = call i64 @strlen(ptr noundef %17)
%19 = trunc i64 %18 to i8
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 1
store i8 %19, ptr %21, align 1
%22 = load ptr, ptr %3, align 8
ret ptr %22
}
declare i64 @calloc(i32 noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3t3ag4df.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @encode_string(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 = call i64 @strlen(ptr noundef %4)
%6 = add nsw i64 %5, 2
%7 = call i64 @calloc(i32 noundef 1, i64 noundef %6)
%8 = inttoptr i64 %7 to ptr
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 2
%11 = load ptr, ptr %2, align 8
%12 = load ptr, ptr %2, align 8
%13 = call i64 @strlen(ptr noundef %12)
%14 = call i32 @memcpy(ptr noundef %10, ptr noundef %11, i64 noundef %13)
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 0
store i8 4, ptr %16, align 1
%17 = load ptr, ptr %2, align 8
%18 = call i64 @strlen(ptr noundef %17)
%19 = trunc i64 %18 to i8
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 1
store i8 %19, ptr %21, align 1
%22 = load ptr, ptr %3, align 8
ret ptr %22
}
declare i64 @calloc(i32 noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvz8xegqe.c'
source_filename = "/tmp/tmpvz8xegqe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [63 x i8] c"programme qui multiplie 2 nombres \0A saisir un premier nombre :\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"saisir un deuxieme nombre : \00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"%d x %d = %d \0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr %3, align 4
%12 = mul nsw i32 %10, %11
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %8, i32 noundef %9, i32 noundef %12)
%14 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %14
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvz8xegqe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [63 x i8] c"programme qui multiplie 2 nombres \0A saisir un premier nombre :\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"saisir un deuxieme nombre : \00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"%d x %d = %d \0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr %3, align 4
%12 = mul nsw i32 %10, %11
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %8, i32 noundef %9, i32 noundef %12)
%14 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %14
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv18hs2b4.c'
source_filename = "/tmp/tmpv18hs2b4.c"
target datalayout = "e-m:e-p270: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/tmpv18hs2b4.c"
target datalayout = "e-m:e-p270: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/tmp3o4x2e8z.c'
source_filename = "/tmp/tmp3o4x2e8z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local constant double 0.000000e+00, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3o4x2e8z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local constant double 0.000000e+00, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyexldake.c'
source_filename = "/tmp/tmpyexldake.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rt\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"=\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 @iniGetKey(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [255 x i8], align 16
%10 = alloca [255 x i8], align 16
%11 = alloca ptr, align 8
%12 = 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 1, ptr %12, align 4
%13 = load ptr, ptr %7, align 8
%14 = call i32 @strcpy(ptr noundef %13, ptr noundef @.str)
%15 = load ptr, ptr %6, align 8
%16 = call i32 @strlen(ptr noundef %15)
%17 = icmp sgt i32 %16, 250
br i1 %17, label %18, label %19
18: ; preds = %3
store i32 2, ptr %4, align 4
br label %61
19: ; preds = %3
%20 = load ptr, ptr %5, align 8
%21 = call ptr @fopen(ptr noundef %20, ptr noundef @.str.1)
store ptr %21, ptr %8, align 8
%22 = icmp eq ptr %21, null
br i1 %22, label %23, label %24
23: ; preds = %19
store i32 3, ptr %4, align 4
br label %61
24: ; preds = %19
%25 = getelementptr inbounds [255 x i8], ptr %10, i64 0, i64 0
%26 = load ptr, ptr %6, align 8
%27 = call i32 @strcpy(ptr noundef %25, ptr noundef %26)
%28 = getelementptr inbounds [255 x i8], ptr %10, i64 0, i64 0
%29 = call i32 @strcat(ptr noundef %28, ptr noundef @.str.2)
br label %30
30: ; preds = %56, %24
%31 = getelementptr inbounds [255 x i8], ptr %9, i64 0, i64 0
%32 = load ptr, ptr %8, align 8
%33 = call ptr @fgets(ptr noundef %31, i32 noundef 255, ptr noundef %32)
%34 = icmp ne ptr %33, null
br i1 %34, label %35, label %57
35: ; preds = %30
%36 = getelementptr inbounds [255 x i8], ptr %9, i64 0, i64 0
%37 = getelementptr inbounds [255 x i8], ptr %10, i64 0, i64 0
%38 = call ptr @strstr(ptr noundef %36, ptr noundef %37)
store ptr %38, ptr %11, align 8
%39 = icmp ne ptr %38, null
br i1 %39, label %40, label %56
40: ; preds = %35
%41 = load ptr, ptr %11, align 8
%42 = getelementptr inbounds [255 x i8], ptr %9, i64 0, i64 0
%43 = icmp eq ptr %41, %42
br i1 %43, label %44, label %56
44: ; preds = %40
%45 = load ptr, ptr %7, align 8
%46 = load ptr, ptr %11, align 8
%47 = call ptr @strchr(ptr noundef %46, i8 noundef signext 61)
%48 = getelementptr inbounds i8, ptr %47, i64 1
%49 = call i32 @sprintf(ptr noundef %45, ptr noundef @.str.3, ptr noundef %48)
%50 = load ptr, ptr %7, align 8
%51 = load ptr, ptr %7, align 8
%52 = call i32 @strlen(ptr noundef %51)
%53 = sub nsw i32 %52, 1
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %50, i64 %54
store i8 0, ptr %55, align 1
store i32 0, ptr %12, align 4
br label %57
56: ; preds = %40, %35
br label %30, !llvm.loop !6
57: ; preds = %44, %30
%58 = load ptr, ptr %8, align 8
%59 = call i32 @fclose(ptr noundef %58)
%60 = load i32, ptr %12, align 4
store i32 %60, ptr %4, align 4
br label %61
61: ; preds = %57, %23, %18
%62 = load i32, ptr %4, align 4
ret i32 %62
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyexldake.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rt\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"=\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 @iniGetKey(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [255 x i8], align 16
%10 = alloca [255 x i8], align 16
%11 = alloca ptr, align 8
%12 = 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 1, ptr %12, align 4
%13 = load ptr, ptr %7, align 8
%14 = call i32 @strcpy(ptr noundef %13, ptr noundef @.str)
%15 = load ptr, ptr %6, align 8
%16 = call i32 @strlen(ptr noundef %15)
%17 = icmp sgt i32 %16, 250
br i1 %17, label %18, label %19
18: ; preds = %3
store i32 2, ptr %4, align 4
br label %63
19: ; preds = %3
%20 = load ptr, ptr %5, align 8
%21 = call ptr @fopen(ptr noundef %20, ptr noundef @.str.1)
store ptr %21, ptr %8, align 8
%22 = icmp eq ptr %21, null
br i1 %22, label %23, label %24
23: ; preds = %19
store i32 3, ptr %4, align 4
br label %63
24: ; preds = %19
%25 = getelementptr inbounds [255 x i8], ptr %10, i64 0, i64 0
%26 = load ptr, ptr %6, align 8
%27 = call i32 @strcpy(ptr noundef %25, ptr noundef %26)
%28 = getelementptr inbounds [255 x i8], ptr %10, i64 0, i64 0
%29 = call i32 @strcat(ptr noundef %28, ptr noundef @.str.2)
%30 = getelementptr inbounds [255 x i8], ptr %9, i64 0, i64 0
%31 = load ptr, ptr %8, align 8
%32 = call ptr @fgets(ptr noundef %30, i32 noundef 255, ptr noundef %31)
%33 = icmp ne ptr %32, null
br i1 %33, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %24
br label %34
34: ; preds = %.lr.ph, %55
%35 = getelementptr inbounds [255 x i8], ptr %9, i64 0, i64 0
%36 = getelementptr inbounds [255 x i8], ptr %10, i64 0, i64 0
%37 = call ptr @strstr(ptr noundef %35, ptr noundef %36)
store ptr %37, ptr %11, align 8
%38 = icmp ne ptr %37, null
br i1 %38, label %39, label %55
39: ; preds = %34
%40 = load ptr, ptr %11, align 8
%41 = getelementptr inbounds [255 x i8], ptr %9, i64 0, i64 0
%42 = icmp eq ptr %40, %41
br i1 %42, label %43, label %55
43: ; preds = %39
%44 = load ptr, ptr %7, align 8
%45 = load ptr, ptr %11, align 8
%46 = call ptr @strchr(ptr noundef %45, i8 noundef signext 61)
%47 = getelementptr inbounds i8, ptr %46, i64 1
%48 = call i32 @sprintf(ptr noundef %44, ptr noundef @.str.3, ptr noundef %47)
%49 = load ptr, ptr %7, align 8
%50 = load ptr, ptr %7, align 8
%51 = call i32 @strlen(ptr noundef %50)
%52 = sub nsw i32 %51, 1
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %49, i64 %53
store i8 0, ptr %54, align 1
store i32 0, ptr %12, align 4
br label %59
55: ; preds = %39, %34
%56 = load ptr, ptr %8, align 8
%57 = call ptr @fgets(ptr noundef %30, i32 noundef 255, ptr noundef %56)
%58 = icmp ne ptr %57, null
br i1 %58, label %34, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %55
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %24
br label %59
59: ; preds = %.loopexit, %43
%60 = load ptr, ptr %8, align 8
%61 = call i32 @fclose(ptr noundef %60)
%62 = load i32, ptr %12, align 4
store i32 %62, ptr %4, align 4
br label %63
63: ; preds = %59, %23, %18
%64 = load i32, ptr %4, align 4
ret i32 %64
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmps3rhy4tu.c'
source_filename = "/tmp/tmps3rhy4tu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"podaj liczb\C4\99 typu int: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"result: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"wprowad\C5\BA tekst: \00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"result: %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 [20 x i8], align 16
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = load i32, ptr %2, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %6)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%9 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 0
%10 = call i32 (ptr, ...) @scanf(ptr noundef @.str.4, ptr noundef %9)
%11 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 0
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %11)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmps3rhy4tu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"podaj liczb\C4\99 typu int: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"result: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"wprowad\C5\BA tekst: \00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"result: %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 [20 x i8], align 16
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = load i32, ptr %2, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %6)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%9 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 0
%10 = call i32 (ptr, ...) @scanf(ptr noundef @.str.4, ptr noundef %9)
%11 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 0
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %11)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxzobu_ww.c'
source_filename = "/tmp/tmpxzobu_ww.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_line(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %26, %2
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %4, align 4
%10 = sub nsw i32 %9, 1
%11 = icmp slt i32 %8, %10
br i1 %11, label %12, label %19
12: ; preds = %7
%13 = call i32 (...) @getchar()
store i32 %13, ptr %5, align 4
%14 = load i32, ptr @EOF, align 4
%15 = icmp ne i32 %13, %14
br i1 %15, label %16, label %19
16: ; preds = %12
%17 = load i32, ptr %5, align 4
%18 = icmp ne i32 %17, 10
br label %19
19: ; preds = %16, %12, %7
%20 = phi i1 [ false, %12 ], [ false, %7 ], [ %18, %16 ]
br i1 %20, label %21, label %29
21: ; preds = %19
%22 = load i32, ptr %5, align 4
%23 = trunc i32 %22 to i8
%24 = load ptr, ptr %3, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %3, align 8
store i8 %23, ptr %24, align 1
br label %26
26: ; preds = %21
%27 = load i32, ptr %6, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %6, align 4
br label %7, !llvm.loop !6
29: ; preds = %19
%30 = load i32, ptr %5, align 4
%31 = icmp eq i32 %30, 10
br i1 %31, label %32, label %39
32: ; preds = %29
%33 = load i32, ptr %5, align 4
%34 = trunc i32 %33 to i8
%35 = load ptr, ptr %3, align 8
%36 = getelementptr inbounds i8, ptr %35, i32 1
store ptr %36, ptr %3, align 8
store i8 %34, ptr %35, align 1
%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 = %32, %29
%40 = load ptr, ptr %3, align 8
store i8 0, ptr %40, align 1
%41 = load i32, ptr %6, align 4
ret i32 %41
}
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxzobu_ww.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_line(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %26, %2
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %4, align 4
%10 = sub nsw i32 %9, 1
%11 = icmp slt i32 %8, %10
br i1 %11, label %12, label %19
12: ; preds = %7
%13 = call i32 (...) @getchar()
store i32 %13, ptr %5, align 4
%14 = load i32, ptr @EOF, align 4
%15 = icmp ne i32 %13, %14
br i1 %15, label %16, label %19
16: ; preds = %12
%17 = load i32, ptr %5, align 4
%18 = icmp ne i32 %17, 10
br label %19
19: ; preds = %16, %12, %7
%20 = phi i1 [ false, %12 ], [ false, %7 ], [ %18, %16 ]
br i1 %20, label %21, label %29
21: ; preds = %19
%22 = load i32, ptr %5, align 4
%23 = trunc i32 %22 to i8
%24 = load ptr, ptr %3, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %3, align 8
store i8 %23, ptr %24, align 1
br label %26
26: ; preds = %21
%27 = load i32, ptr %6, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %6, align 4
br label %7, !llvm.loop !6
29: ; preds = %19
%30 = load i32, ptr %5, align 4
%31 = icmp eq i32 %30, 10
br i1 %31, label %32, label %39
32: ; preds = %29
%33 = load i32, ptr %5, align 4
%34 = trunc i32 %33 to i8
%35 = load ptr, ptr %3, align 8
%36 = getelementptr inbounds i8, ptr %35, i32 1
store ptr %36, ptr %3, align 8
store i8 %34, ptr %35, align 1
%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 = %32, %29
%40 = load ptr, ptr %3, align 8
store i8 0, ptr %40, align 1
%41 = load i32, ptr %6, align 4
ret i32 %41
}
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpq7_tsfnl.c'
source_filename = "/tmp/tmpq7_tsfnl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @USBDMAChannelStatusClear(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
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %6, align 4
%8 = and i32 %7, 256
store i32 %8, ptr %6, align 4
%9 = load i32, ptr %6, align 4
%10 = xor i32 %9, -1
%11 = load i32, ptr %4, align 4
%12 = add nsw i32 %11, 516
%13 = load i32, ptr %5, align 4
%14 = mul nsw i32 16, %13
%15 = add nsw i32 %12, %14
%16 = sext i32 %15 to i64
%17 = inttoptr i64 %16 to ptr
%18 = load volatile i32, ptr %17, align 4
%19 = and i32 %18, %10
store volatile i32 %19, ptr %17, 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/tmpq7_tsfnl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @USBDMAChannelStatusClear(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
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %6, align 4
%8 = and i32 %7, 256
store i32 %8, ptr %6, align 4
%9 = load i32, ptr %6, align 4
%10 = xor i32 %9, -1
%11 = load i32, ptr %4, align 4
%12 = add nsw i32 %11, 516
%13 = load i32, ptr %5, align 4
%14 = mul nsw i32 16, %13
%15 = add nsw i32 %12, %14
%16 = sext i32 %15 to i64
%17 = inttoptr i64 %16 to ptr
%18 = load volatile i32, ptr %17, align 4
%19 = and i32 %18, %10
store volatile i32 %19, ptr %17, 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/tmpgq_ksyj9.c'
source_filename = "/tmp/tmpgq_ksyj9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @closeShared(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @shm_unlink(ptr noundef %3)
ret i32 %4
}
declare i32 @shm_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/tmpgq_ksyj9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @closeShared(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @shm_unlink(ptr noundef %3)
ret i32 %4
}
declare i32 @shm_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/tmp1mc88svo.c'
source_filename = "/tmp/tmp1mc88svo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [42 x i8] c"NOT IMPLEMENTED:pa_config_parse_not_bool\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_config_parse_not_bool() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
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/tmp1mc88svo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [42 x i8] c"NOT IMPLEMENTED:pa_config_parse_not_bool\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_config_parse_not_bool() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
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/tmptnwtbqfd.c'
source_filename = "/tmp/tmptnwtbqfd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hashword(ptr noundef %0, i64 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%10 = load i64, ptr %5, align 8
%11 = trunc i64 %10 to i32
%12 = shl i32 %11, 2
%13 = add i32 -559038737, %12
%14 = load i32, ptr %6, align 4
%15 = add i32 %13, %14
store i32 %15, ptr %9, align 4
store i32 %15, ptr %8, align 4
store i32 %15, ptr %7, align 4
br label %16
16: ; preds = %19, %3
%17 = load i64, ptr %5, align 8
%18 = icmp ugt i64 %17, 3
br i1 %18, label %19, label %117
19: ; preds = %16
%20 = load ptr, ptr %4, align 8
%21 = getelementptr inbounds i32, ptr %20, i64 0
%22 = load i32, ptr %21, align 4
%23 = load i32, ptr %7, align 4
%24 = add nsw i32 %23, %22
store i32 %24, ptr %7, align 4
%25 = load ptr, ptr %4, align 8
%26 = getelementptr inbounds i32, ptr %25, i64 1
%27 = load i32, ptr %26, align 4
%28 = load i32, ptr %8, align 4
%29 = add nsw i32 %28, %27
store i32 %29, ptr %8, align 4
%30 = load ptr, ptr %4, align 8
%31 = getelementptr inbounds i32, ptr %30, i64 2
%32 = load i32, ptr %31, align 4
%33 = load i32, ptr %9, align 4
%34 = add nsw i32 %33, %32
store i32 %34, ptr %9, align 4
%35 = load i32, ptr %9, align 4
%36 = load i32, ptr %7, align 4
%37 = sub nsw i32 %36, %35
store i32 %37, ptr %7, align 4
%38 = load i32, ptr %9, align 4
%39 = shl i32 %38, 4
%40 = load i32, ptr %9, align 4
%41 = ashr i32 %40, 28
%42 = or i32 %39, %41
%43 = load i32, ptr %7, align 4
%44 = xor i32 %43, %42
store i32 %44, ptr %7, align 4
%45 = load i32, ptr %8, align 4
%46 = load i32, ptr %9, align 4
%47 = add nsw i32 %46, %45
store i32 %47, ptr %9, align 4
%48 = load i32, ptr %7, align 4
%49 = load i32, ptr %8, align 4
%50 = sub nsw i32 %49, %48
store i32 %50, ptr %8, align 4
%51 = load i32, ptr %7, align 4
%52 = shl i32 %51, 6
%53 = load i32, ptr %7, align 4
%54 = ashr i32 %53, 26
%55 = or i32 %52, %54
%56 = load i32, ptr %8, align 4
%57 = xor i32 %56, %55
store i32 %57, ptr %8, align 4
%58 = load i32, ptr %9, align 4
%59 = load i32, ptr %7, align 4
%60 = add nsw i32 %59, %58
store i32 %60, ptr %7, align 4
%61 = load i32, ptr %8, align 4
%62 = load i32, ptr %9, align 4
%63 = sub nsw i32 %62, %61
store i32 %63, ptr %9, align 4
%64 = load i32, ptr %8, align 4
%65 = shl i32 %64, 8
%66 = load i32, ptr %8, align 4
%67 = ashr i32 %66, 24
%68 = or i32 %65, %67
%69 = load i32, ptr %9, align 4
%70 = xor i32 %69, %68
store i32 %70, ptr %9, align 4
%71 = load i32, ptr %7, align 4
%72 = load i32, ptr %8, align 4
%73 = add nsw i32 %72, %71
store i32 %73, ptr %8, align 4
%74 = load i32, ptr %9, align 4
%75 = load i32, ptr %7, align 4
%76 = sub nsw i32 %75, %74
store i32 %76, ptr %7, align 4
%77 = load i32, ptr %9, align 4
%78 = shl i32 %77, 16
%79 = load i32, ptr %9, align 4
%80 = ashr i32 %79, 16
%81 = or i32 %78, %80
%82 = load i32, ptr %7, align 4
%83 = xor i32 %82, %81
store i32 %83, ptr %7, align 4
%84 = load i32, ptr %8, align 4
%85 = load i32, ptr %9, align 4
%86 = add nsw i32 %85, %84
store i32 %86, ptr %9, align 4
%87 = load i32, ptr %7, align 4
%88 = load i32, ptr %8, align 4
%89 = sub nsw i32 %88, %87
store i32 %89, ptr %8, align 4
%90 = load i32, ptr %7, align 4
%91 = shl i32 %90, 19
%92 = load i32, ptr %7, align 4
%93 = ashr i32 %92, 13
%94 = or i32 %91, %93
%95 = load i32, ptr %8, align 4
%96 = xor i32 %95, %94
store i32 %96, ptr %8, align 4
%97 = load i32, ptr %9, align 4
%98 = load i32, ptr %7, align 4
%99 = add nsw i32 %98, %97
store i32 %99, ptr %7, align 4
%100 = load i32, ptr %8, align 4
%101 = load i32, ptr %9, align 4
%102 = sub nsw i32 %101, %100
store i32 %102, ptr %9, align 4
%103 = load i32, ptr %8, align 4
%104 = shl i32 %103, 4
%105 = load i32, ptr %8, align 4
%106 = ashr i32 %105, 28
%107 = or i32 %104, %106
%108 = load i32, ptr %9, align 4
%109 = xor i32 %108, %107
store i32 %109, ptr %9, align 4
%110 = load i32, ptr %7, align 4
%111 = load i32, ptr %8, align 4
%112 = add nsw i32 %111, %110
store i32 %112, ptr %8, align 4
%113 = load i64, ptr %5, align 8
%114 = sub i64 %113, 3
store i64 %114, ptr %5, align 8
%115 = load ptr, ptr %4, align 8
%116 = getelementptr inbounds i32, ptr %115, i64 3
store ptr %116, ptr %4, align 8
br label %16, !llvm.loop !6
117: ; preds = %16
%118 = load i64, ptr %5, align 8
switch i64 %118, label %208 [
i64 3, label %119
i64 2, label %125
i64 1, label %131
i64 0, label %207
]
119: ; preds = %117
%120 = load ptr, ptr %4, align 8
%121 = getelementptr inbounds i32, ptr %120, i64 2
%122 = load i32, ptr %121, align 4
%123 = load i32, ptr %9, align 4
%124 = add nsw i32 %123, %122
store i32 %124, ptr %9, align 4
br label %125
125: ; preds = %117, %119
%126 = load ptr, ptr %4, align 8
%127 = getelementptr inbounds i32, ptr %126, i64 1
%128 = load i32, ptr %127, align 4
%129 = load i32, ptr %8, align 4
%130 = add nsw i32 %129, %128
store i32 %130, ptr %8, align 4
br label %131
131: ; preds = %117, %125
%132 = load ptr, ptr %4, align 8
%133 = getelementptr inbounds i32, ptr %132, i64 0
%134 = load i32, ptr %133, align 4
%135 = load i32, ptr %7, align 4
%136 = add nsw i32 %135, %134
store i32 %136, ptr %7, align 4
%137 = load i32, ptr %8, align 4
%138 = load i32, ptr %9, align 4
%139 = xor i32 %138, %137
store i32 %139, ptr %9, align 4
%140 = load i32, ptr %8, align 4
%141 = shl i32 %140, 14
%142 = load i32, ptr %8, align 4
%143 = ashr i32 %142, 18
%144 = or i32 %141, %143
%145 = load i32, ptr %9, align 4
%146 = sub nsw i32 %145, %144
store i32 %146, ptr %9, align 4
%147 = load i32, ptr %9, align 4
%148 = load i32, ptr %7, align 4
%149 = xor i32 %148, %147
store i32 %149, ptr %7, align 4
%150 = load i32, ptr %9, align 4
%151 = shl i32 %150, 11
%152 = load i32, ptr %9, align 4
%153 = ashr i32 %152, 21
%154 = or i32 %151, %153
%155 = load i32, ptr %7, align 4
%156 = sub nsw i32 %155, %154
store i32 %156, ptr %7, align 4
%157 = load i32, ptr %7, align 4
%158 = load i32, ptr %8, align 4
%159 = xor i32 %158, %157
store i32 %159, ptr %8, align 4
%160 = load i32, ptr %7, align 4
%161 = shl i32 %160, 25
%162 = load i32, ptr %7, align 4
%163 = ashr i32 %162, 7
%164 = or i32 %161, %163
%165 = load i32, ptr %8, align 4
%166 = sub nsw i32 %165, %164
store i32 %166, ptr %8, align 4
%167 = load i32, ptr %8, align 4
%168 = load i32, ptr %9, align 4
%169 = xor i32 %168, %167
store i32 %169, ptr %9, align 4
%170 = load i32, ptr %8, align 4
%171 = shl i32 %170, 16
%172 = load i32, ptr %8, align 4
%173 = ashr i32 %172, 16
%174 = or i32 %171, %173
%175 = load i32, ptr %9, align 4
%176 = sub nsw i32 %175, %174
store i32 %176, ptr %9, align 4
%177 = load i32, ptr %9, align 4
%178 = load i32, ptr %7, align 4
%179 = xor i32 %178, %177
store i32 %179, ptr %7, align 4
%180 = load i32, ptr %9, align 4
%181 = shl i32 %180, 4
%182 = load i32, ptr %9, align 4
%183 = ashr i32 %182, 28
%184 = or i32 %181, %183
%185 = load i32, ptr %7, align 4
%186 = sub nsw i32 %185, %184
store i32 %186, ptr %7, align 4
%187 = load i32, ptr %7, align 4
%188 = load i32, ptr %8, align 4
%189 = xor i32 %188, %187
store i32 %189, ptr %8, align 4
%190 = load i32, ptr %7, align 4
%191 = shl i32 %190, 14
%192 = load i32, ptr %7, align 4
%193 = ashr i32 %192, 18
%194 = or i32 %191, %193
%195 = load i32, ptr %8, align 4
%196 = sub nsw i32 %195, %194
store i32 %196, ptr %8, align 4
%197 = load i32, ptr %8, align 4
%198 = load i32, ptr %9, align 4
%199 = xor i32 %198, %197
store i32 %199, ptr %9, align 4
%200 = load i32, ptr %8, align 4
%201 = shl i32 %200, 24
%202 = load i32, ptr %8, align 4
%203 = ashr i32 %202, 8
%204 = or i32 %201, %203
%205 = load i32, ptr %9, align 4
%206 = sub nsw i32 %205, %204
store i32 %206, ptr %9, align 4
br label %207
207: ; preds = %117, %131
br label %208
208: ; preds = %117, %207
%209 = load i32, ptr %9, align 4
ret i32 %209
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmptnwtbqfd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hashword(ptr noundef %0, i64 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%10 = load i64, ptr %5, align 8
%11 = trunc i64 %10 to i32
%12 = shl i32 %11, 2
%13 = add i32 -559038737, %12
%14 = load i32, ptr %6, align 4
%15 = add i32 %13, %14
store i32 %15, ptr %9, align 4
store i32 %15, ptr %8, align 4
store i32 %15, ptr %7, align 4
%16 = load i64, ptr %5, align 8
%17 = icmp ugt i64 %16, 3
br i1 %17, label %.lr.ph, label %118
.lr.ph: ; preds = %3
br label %18
18: ; preds = %.lr.ph, %18
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds i32, ptr %19, i64 0
%21 = load i32, ptr %20, align 4
%22 = load i32, ptr %7, align 4
%23 = add nsw i32 %22, %21
store i32 %23, ptr %7, align 4
%24 = load ptr, ptr %4, align 8
%25 = getelementptr inbounds i32, ptr %24, i64 1
%26 = load i32, ptr %25, align 4
%27 = load i32, ptr %8, align 4
%28 = add nsw i32 %27, %26
store i32 %28, ptr %8, align 4
%29 = load ptr, ptr %4, align 8
%30 = getelementptr inbounds i32, ptr %29, i64 2
%31 = load i32, ptr %30, align 4
%32 = load i32, ptr %9, align 4
%33 = add nsw i32 %32, %31
store i32 %33, ptr %9, align 4
%34 = load i32, ptr %9, align 4
%35 = load i32, ptr %7, align 4
%36 = sub nsw i32 %35, %34
store i32 %36, ptr %7, align 4
%37 = load i32, ptr %9, align 4
%38 = shl i32 %37, 4
%39 = load i32, ptr %9, align 4
%40 = ashr i32 %39, 28
%41 = or i32 %38, %40
%42 = load i32, ptr %7, align 4
%43 = xor i32 %42, %41
store i32 %43, ptr %7, align 4
%44 = load i32, ptr %8, align 4
%45 = load i32, ptr %9, align 4
%46 = add nsw i32 %45, %44
store i32 %46, ptr %9, align 4
%47 = load i32, ptr %7, align 4
%48 = load i32, ptr %8, align 4
%49 = sub nsw i32 %48, %47
store i32 %49, ptr %8, align 4
%50 = load i32, ptr %7, align 4
%51 = shl i32 %50, 6
%52 = load i32, ptr %7, align 4
%53 = ashr i32 %52, 26
%54 = or i32 %51, %53
%55 = load i32, ptr %8, align 4
%56 = xor i32 %55, %54
store i32 %56, ptr %8, 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 %8, align 4
%61 = load i32, ptr %9, align 4
%62 = sub nsw i32 %61, %60
store i32 %62, ptr %9, align 4
%63 = load i32, ptr %8, align 4
%64 = shl i32 %63, 8
%65 = load i32, ptr %8, align 4
%66 = ashr i32 %65, 24
%67 = or i32 %64, %66
%68 = load i32, ptr %9, align 4
%69 = xor i32 %68, %67
store i32 %69, ptr %9, align 4
%70 = load i32, ptr %7, align 4
%71 = load i32, ptr %8, align 4
%72 = add nsw i32 %71, %70
store i32 %72, ptr %8, align 4
%73 = load i32, ptr %9, align 4
%74 = load i32, ptr %7, align 4
%75 = sub nsw i32 %74, %73
store i32 %75, ptr %7, align 4
%76 = load i32, ptr %9, align 4
%77 = shl i32 %76, 16
%78 = load i32, ptr %9, align 4
%79 = ashr i32 %78, 16
%80 = or i32 %77, %79
%81 = load i32, ptr %7, align 4
%82 = xor i32 %81, %80
store i32 %82, ptr %7, align 4
%83 = load i32, ptr %8, align 4
%84 = load i32, ptr %9, align 4
%85 = add nsw i32 %84, %83
store i32 %85, ptr %9, align 4
%86 = load i32, ptr %7, align 4
%87 = load i32, ptr %8, align 4
%88 = sub nsw i32 %87, %86
store i32 %88, ptr %8, align 4
%89 = load i32, ptr %7, align 4
%90 = shl i32 %89, 19
%91 = load i32, ptr %7, align 4
%92 = ashr i32 %91, 13
%93 = or i32 %90, %92
%94 = load i32, ptr %8, align 4
%95 = xor i32 %94, %93
store i32 %95, ptr %8, align 4
%96 = load i32, ptr %9, align 4
%97 = load i32, ptr %7, align 4
%98 = add nsw i32 %97, %96
store i32 %98, ptr %7, align 4
%99 = load i32, ptr %8, align 4
%100 = load i32, ptr %9, align 4
%101 = sub nsw i32 %100, %99
store i32 %101, ptr %9, align 4
%102 = load i32, ptr %8, align 4
%103 = shl i32 %102, 4
%104 = load i32, ptr %8, align 4
%105 = ashr i32 %104, 28
%106 = or i32 %103, %105
%107 = load i32, ptr %9, align 4
%108 = xor i32 %107, %106
store i32 %108, ptr %9, align 4
%109 = load i32, ptr %7, align 4
%110 = load i32, ptr %8, align 4
%111 = add nsw i32 %110, %109
store i32 %111, ptr %8, align 4
%112 = load i64, ptr %5, align 8
%113 = sub i64 %112, 3
store i64 %113, ptr %5, align 8
%114 = load ptr, ptr %4, align 8
%115 = getelementptr inbounds i32, ptr %114, i64 3
store ptr %115, ptr %4, align 8
%116 = load i64, ptr %5, align 8
%117 = icmp ugt i64 %116, 3
br i1 %117, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %118
118: ; preds = %._crit_edge, %3
%119 = load i64, ptr %5, align 8
switch i64 %119, label %209 [
i64 3, label %120
i64 2, label %126
i64 1, label %132
i64 0, label %208
]
120: ; preds = %118
%121 = load ptr, ptr %4, align 8
%122 = getelementptr inbounds i32, ptr %121, i64 2
%123 = load i32, ptr %122, align 4
%124 = load i32, ptr %9, align 4
%125 = add nsw i32 %124, %123
store i32 %125, ptr %9, align 4
br label %126
126: ; preds = %120, %118
%127 = load ptr, ptr %4, align 8
%128 = getelementptr inbounds i32, ptr %127, i64 1
%129 = load i32, ptr %128, align 4
%130 = load i32, ptr %8, align 4
%131 = add nsw i32 %130, %129
store i32 %131, ptr %8, align 4
br label %132
132: ; preds = %126, %118
%133 = load ptr, ptr %4, align 8
%134 = getelementptr inbounds i32, ptr %133, i64 0
%135 = load i32, ptr %134, align 4
%136 = load i32, ptr %7, align 4
%137 = add nsw i32 %136, %135
store i32 %137, ptr %7, align 4
%138 = load i32, ptr %8, align 4
%139 = load i32, ptr %9, align 4
%140 = xor i32 %139, %138
store i32 %140, ptr %9, align 4
%141 = load i32, ptr %8, align 4
%142 = shl i32 %141, 14
%143 = load i32, ptr %8, align 4
%144 = ashr i32 %143, 18
%145 = or i32 %142, %144
%146 = load i32, ptr %9, align 4
%147 = sub nsw i32 %146, %145
store i32 %147, ptr %9, align 4
%148 = load i32, ptr %9, align 4
%149 = load i32, ptr %7, align 4
%150 = xor i32 %149, %148
store i32 %150, ptr %7, align 4
%151 = load i32, ptr %9, align 4
%152 = shl i32 %151, 11
%153 = load i32, ptr %9, align 4
%154 = ashr i32 %153, 21
%155 = or i32 %152, %154
%156 = load i32, ptr %7, align 4
%157 = sub nsw i32 %156, %155
store i32 %157, ptr %7, align 4
%158 = load i32, ptr %7, align 4
%159 = load i32, ptr %8, align 4
%160 = xor i32 %159, %158
store i32 %160, ptr %8, align 4
%161 = load i32, ptr %7, align 4
%162 = shl i32 %161, 25
%163 = load i32, ptr %7, align 4
%164 = ashr i32 %163, 7
%165 = or i32 %162, %164
%166 = load i32, ptr %8, align 4
%167 = sub nsw i32 %166, %165
store i32 %167, ptr %8, align 4
%168 = load i32, ptr %8, align 4
%169 = load i32, ptr %9, align 4
%170 = xor i32 %169, %168
store i32 %170, ptr %9, align 4
%171 = load i32, ptr %8, align 4
%172 = shl i32 %171, 16
%173 = load i32, ptr %8, align 4
%174 = ashr i32 %173, 16
%175 = or i32 %172, %174
%176 = load i32, ptr %9, align 4
%177 = sub nsw i32 %176, %175
store i32 %177, ptr %9, align 4
%178 = load i32, ptr %9, align 4
%179 = load i32, ptr %7, align 4
%180 = xor i32 %179, %178
store i32 %180, ptr %7, align 4
%181 = load i32, ptr %9, align 4
%182 = shl i32 %181, 4
%183 = load i32, ptr %9, align 4
%184 = ashr i32 %183, 28
%185 = or i32 %182, %184
%186 = load i32, ptr %7, align 4
%187 = sub nsw i32 %186, %185
store i32 %187, ptr %7, align 4
%188 = load i32, ptr %7, align 4
%189 = load i32, ptr %8, align 4
%190 = xor i32 %189, %188
store i32 %190, ptr %8, align 4
%191 = load i32, ptr %7, align 4
%192 = shl i32 %191, 14
%193 = load i32, ptr %7, align 4
%194 = ashr i32 %193, 18
%195 = or i32 %192, %194
%196 = load i32, ptr %8, align 4
%197 = sub nsw i32 %196, %195
store i32 %197, ptr %8, align 4
%198 = load i32, ptr %8, align 4
%199 = load i32, ptr %9, align 4
%200 = xor i32 %199, %198
store i32 %200, ptr %9, align 4
%201 = load i32, ptr %8, align 4
%202 = shl i32 %201, 24
%203 = load i32, ptr %8, align 4
%204 = ashr i32 %203, 8
%205 = or i32 %202, %204
%206 = load i32, ptr %9, align 4
%207 = sub nsw i32 %206, %205
store i32 %207, ptr %9, align 4
br label %208
208: ; preds = %132, %118
br label %209
209: ; preds = %208, %118
%210 = load i32, ptr %9, align 4
ret i32 %210
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpspt8qery.c'
source_filename = "/tmp/tmpspt8qery.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @forward_soft_right(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 = call i32 @motion_direction(i32 noundef 2)
%6 = load i32, ptr %3, align 4
%7 = call i32 @speed_control(i32 noundef %6, i32 noundef 0)
%8 = load i32, ptr %4, align 4
%9 = mul i32 %8, 2
%10 = call i32 @cal_angle(i32 noundef %9)
%11 = call i32 @_delay_us(i32 noundef 10)
ret void
}
declare i32 @motion_direction(i32 noundef) #1
declare i32 @speed_control(i32 noundef, i32 noundef) #1
declare i32 @cal_angle(i32 noundef) #1
declare i32 @_delay_us(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/tmpspt8qery.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @forward_soft_right(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 = call i32 @motion_direction(i32 noundef 2)
%6 = load i32, ptr %3, align 4
%7 = call i32 @speed_control(i32 noundef %6, i32 noundef 0)
%8 = load i32, ptr %4, align 4
%9 = mul i32 %8, 2
%10 = call i32 @cal_angle(i32 noundef %9)
%11 = call i32 @_delay_us(i32 noundef 10)
ret void
}
declare i32 @motion_direction(i32 noundef) #1
declare i32 @speed_control(i32 noundef, i32 noundef) #1
declare i32 @cal_angle(i32 noundef) #1
declare i32 @_delay_us(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_utt8vns.c'
source_filename = "/tmp/tmp_utt8vns.c"
target datalayout = "e-m:e-p270: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/tmp_utt8vns.c"
target datalayout = "e-m:e-p270: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/tmp6j0wuirr.c'
source_filename = "/tmp/tmp6j0wuirr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fold_if(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %12
7: ; preds = %2
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 (...) @foo()
br label %14
12: ; preds = %7, %2
%13 = call i32 (...) @bar()
br label %14
14: ; preds = %12, %10
ret void
}
declare i32 @foo(...) #1
declare i32 @bar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6j0wuirr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fold_if(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %12
7: ; preds = %2
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 (...) @foo()
br label %14
12: ; preds = %7, %2
%13 = call i32 (...) @bar()
br label %14
14: ; preds = %12, %10
ret void
}
declare i32 @foo(...) #1
declare i32 @bar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbd7k0o_q.c'
source_filename = "/tmp/tmpbd7k0o_q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%.0f / %d = %.3f\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 i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store float 7.000000e+00, ptr %2, align 4
store i32 5, ptr %3, align 4
%5 = load float, ptr %2, align 4
%6 = load i32, ptr %3, align 4
%7 = load float, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = sitofp i32 %8 to float
%10 = fdiv float %7, %9
%11 = call i32 @printf(ptr noundef @.str, float noundef %5, i32 noundef %6, float noundef %10)
ret i32 0
}
declare i32 @printf(ptr noundef, float noundef, i32 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/tmpbd7k0o_q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%.0f / %d = %.3f\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 i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store float 7.000000e+00, ptr %2, align 4
store i32 5, ptr %3, align 4
%5 = load float, ptr %2, align 4
%6 = load i32, ptr %3, align 4
%7 = load float, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = sitofp i32 %8 to float
%10 = fdiv float %7, %9
%11 = call i32 @printf(ptr noundef @.str, float noundef %5, i32 noundef %6, float noundef %10)
ret i32 0
}
declare i32 @printf(ptr noundef, float noundef, i32 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/tmpv42mksyp.c'
source_filename = "/tmp/tmpv42mksyp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LOG_DEBUG = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv42mksyp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LOG_DEBUG = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpae7tw8nx.c'
source_filename = "/tmp/tmpae7tw8nx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%d %d %f\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [24 x i8] c"VALOR A PAGAR: R$ %.2f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
store i32 0, ptr %1, align 4
store float 0.000000e+00, ptr %5, align 4
br label %6
6: ; preds = %10, %0
%7 = call i64 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%8 = load i64, ptr @EOF, align 8
%9 = icmp ne i64 %7, %8
br i1 %9, label %10, label %15
10: ; preds = %6
%11 = load float, ptr %4, align 4
%12 = load float, ptr %3, align 4
%13 = load float, ptr %5, align 4
%14 = call float @llvm.fmuladd.f32(float %11, float %12, float %13)
store float %14, ptr %5, align 4
br label %6, !llvm.loop !6
15: ; preds = %6
%16 = load float, ptr %5, align 4
%17 = call i32 @printf(ptr noundef @.str.1, float noundef %16)
%18 = load i32, ptr %1, align 4
ret i32 %18
}
declare i64 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare i32 @printf(ptr 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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpae7tw8nx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%d %d %f\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [24 x i8] c"VALOR A PAGAR: R$ %.2f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
store i32 0, ptr %1, align 4
store float 0.000000e+00, ptr %5, align 4
%6 = call i64 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%7 = load i64, ptr @EOF, align 8
%8 = icmp ne i64 %6, %7
br i1 %8, label %.lr.ph, label %17
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %9
%10 = load float, ptr %4, align 4
%11 = load float, ptr %3, align 4
%12 = load float, ptr %5, align 4
%13 = call float @llvm.fmuladd.f32(float %10, float %11, float %12)
store float %13, ptr %5, align 4
%14 = call i64 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%15 = load i64, ptr @EOF, align 8
%16 = icmp ne i64 %14, %15
br i1 %16, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %17
17: ; preds = %._crit_edge, %0
%18 = load float, ptr %5, align 4
%19 = call i32 @printf(ptr noundef @.str.1, float noundef %18)
%20 = load i32, ptr %1, align 4
ret i32 %20
}
declare i64 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare i32 @printf(ptr 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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp5ric20ly.c'
source_filename = "/tmp/tmp5ric20ly.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: alwaysinline nounwind sspstrong uwtable
define weak dso_local i32 @softboundmpx_gettimeofday(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @gettimeofday(ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1
attributes #0 = { alwaysinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5ric20ly.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: alwaysinline nounwind sspstrong uwtable
define weak dso_local i32 @softboundmpx_gettimeofday(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @gettimeofday(ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1
attributes #0 = { alwaysinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp59top7ri.c'
source_filename = "/tmp/tmp59top7ri.c"
target datalayout = "e-m:e-p270: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/tmp59top7ri.c"
target datalayout = "e-m:e-p270: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/tmpfmolrr4r.c'
source_filename = "/tmp/tmpfmolrr4r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [13 x i8] c"WARNING:HOT:\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hot_sys_vWarning(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr @stderr, align 4
%6 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str)
%7 = load i32, ptr @stderr, align 4
%8 = load ptr, ptr %3, align 8
%9 = load i32, ptr %4, align 4
%10 = call i32 @vfprintf(i32 noundef %7, ptr noundef %8, i32 noundef %9)
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.1)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @vfprintf(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/tmpfmolrr4r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [13 x i8] c"WARNING:HOT:\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hot_sys_vWarning(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr @stderr, align 4
%6 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str)
%7 = load i32, ptr @stderr, align 4
%8 = load ptr, ptr %3, align 8
%9 = load i32, ptr %4, align 4
%10 = call i32 @vfprintf(i32 noundef %7, ptr noundef %8, i32 noundef %9)
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.1)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @vfprintf(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/tmpr1eqr324.c'
source_filename = "/tmp/tmpr1eqr324.c"
target datalayout = "e-m:e-p270: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/tmpr1eqr324.c"
target datalayout = "e-m:e-p270: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/tmp7ay_zerg.c'
source_filename = "/tmp/tmp7ay_zerg.c"
target datalayout = "e-m:e-p270: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.utmp = type { i32 }
@UT_LINESIZE = dso_local global i32 0, align 4
@STDIN_FILENO = dso_local global i32 0, align 4
@STDOUT_FILENO = dso_local global i32 0, align 4
@STDERR_FILENO = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"/dev/\00", align 1
@_PATH_UTMP = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [4 x i8] c"???\00", align 1
@_PATH_WTMP = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @__login(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca %struct.utmp, align 4
store ptr %0, ptr %2, align 8
%9 = load i32, ptr @UT_LINESIZE, align 4
%10 = add nsw i32 512, %9
%11 = zext i32 %10 to i64
%12 = call ptr @llvm.stacksave()
store ptr %12, ptr %3, align 8
%13 = alloca i8, i64 %11, align 16
store i64 %11, ptr %4, align 8
store ptr %13, ptr %5, align 8
%14 = load ptr, ptr %2, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %14, i64 4, i1 false)
%15 = load i32, ptr @STDIN_FILENO, align 4
%16 = trunc i64 %11 to i32
%17 = call i32 @tty_name(i32 noundef %15, ptr noundef %5, i32 noundef %16)
store i32 %17, ptr %6, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp slt i32 %18, 0
br i1 %19, label %20, label %24
20: ; preds = %1
%21 = load i32, ptr @STDOUT_FILENO, align 4
%22 = trunc i64 %11 to i32
%23 = call i32 @tty_name(i32 noundef %21, ptr noundef %5, i32 noundef %22)
store i32 %23, ptr %6, align 4
br label %24
24: ; preds = %20, %1
%25 = load i32, ptr %6, align 4
%26 = icmp slt i32 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %24
%28 = load i32, ptr @STDERR_FILENO, align 4
%29 = trunc i64 %11 to i32
%30 = call i32 @tty_name(i32 noundef %28, ptr noundef %5, i32 noundef %29)
store i32 %30, ptr %6, align 4
br label %31
31: ; preds = %27, %24
%32 = load i32, ptr %6, align 4
%33 = icmp sge i32 %32, 0
br i1 %33, label %34, label %64
34: ; preds = %31
%35 = load ptr, ptr %5, align 8
%36 = call i64 @strncmp(ptr noundef %35, ptr noundef @.str, i32 noundef 5)
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %41
38: ; preds = %34
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds i8, ptr %39, i64 5
store ptr %40, ptr %7, align 8
br label %44
41: ; preds = %34
%42 = load ptr, ptr %5, align 8
%43 = call ptr @basename(ptr noundef %42)
store ptr %43, ptr %7, align 8
br label %44
44: ; preds = %41, %38
%45 = getelementptr inbounds %struct.utmp, ptr %8, i32 0, i32 0
%46 = load i32, ptr %45, align 4
%47 = load ptr, ptr %7, align 8
%48 = load i32, ptr @UT_LINESIZE, align 4
%49 = call i32 @strncpy(i32 noundef %46, ptr noundef %47, i32 noundef %48)
%50 = load i32, ptr @_PATH_UTMP, align 4
%51 = call i64 @utmpname(i32 noundef %50)
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %57
53: ; preds = %44
%54 = call i32 (...) @setutent()
%55 = call i32 @pututline(ptr noundef %8)
%56 = call i32 (...) @endutent()
br label %57
57: ; preds = %53, %44
%58 = load ptr, ptr %5, align 8
%59 = icmp ne ptr %58, %13
br i1 %59, label %60, label %63
60: ; preds = %57
%61 = load ptr, ptr %5, align 8
%62 = call i32 @free(ptr noundef %61)
br label %63
63: ; preds = %60, %57
br label %69
64: ; preds = %31
%65 = getelementptr inbounds %struct.utmp, ptr %8, i32 0, i32 0
%66 = load i32, ptr %65, align 4
%67 = load i32, ptr @UT_LINESIZE, align 4
%68 = call i32 @strncpy(i32 noundef %66, ptr noundef @.str.1, i32 noundef %67)
br label %69
69: ; preds = %64, %63
%70 = load i32, ptr @_PATH_WTMP, align 4
%71 = call i32 @updwtmp(i32 noundef %70, ptr noundef %8)
%72 = load ptr, ptr %3, align 8
call void @llvm.stackrestore(ptr %72)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @tty_name(i32 noundef, ptr noundef, i32 noundef) #3
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #3
declare ptr @basename(ptr noundef) #3
declare i32 @strncpy(i32 noundef, ptr noundef, i32 noundef) #3
declare i64 @utmpname(i32 noundef) #3
declare i32 @setutent(...) #3
declare i32 @pututline(ptr noundef) #3
declare i32 @endutent(...) #3
declare i32 @free(ptr noundef) #3
declare i32 @updwtmp(i32 noundef, ptr noundef) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7ay_zerg.c"
target datalayout = "e-m:e-p270: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.utmp = type { i32 }
@UT_LINESIZE = dso_local global i32 0, align 4
@STDIN_FILENO = dso_local global i32 0, align 4
@STDOUT_FILENO = dso_local global i32 0, align 4
@STDERR_FILENO = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"/dev/\00", align 1
@_PATH_UTMP = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [4 x i8] c"???\00", align 1
@_PATH_WTMP = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @__login(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca %struct.utmp, align 4
store ptr %0, ptr %2, align 8
%9 = load i32, ptr @UT_LINESIZE, align 4
%10 = add nsw i32 512, %9
%11 = zext i32 %10 to i64
%12 = call ptr @llvm.stacksave()
store ptr %12, ptr %3, align 8
%13 = alloca i8, i64 %11, align 16
store i64 %11, ptr %4, align 8
store ptr %13, ptr %5, align 8
%14 = load ptr, ptr %2, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %14, i64 4, i1 false)
%15 = load i32, ptr @STDIN_FILENO, align 4
%16 = trunc i64 %11 to i32
%17 = call i32 @tty_name(i32 noundef %15, ptr noundef %5, i32 noundef %16)
store i32 %17, ptr %6, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp slt i32 %18, 0
br i1 %19, label %20, label %24
20: ; preds = %1
%21 = load i32, ptr @STDOUT_FILENO, align 4
%22 = trunc i64 %11 to i32
%23 = call i32 @tty_name(i32 noundef %21, ptr noundef %5, i32 noundef %22)
store i32 %23, ptr %6, align 4
br label %24
24: ; preds = %20, %1
%25 = load i32, ptr %6, align 4
%26 = icmp slt i32 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %24
%28 = load i32, ptr @STDERR_FILENO, align 4
%29 = trunc i64 %11 to i32
%30 = call i32 @tty_name(i32 noundef %28, ptr noundef %5, i32 noundef %29)
store i32 %30, ptr %6, align 4
br label %31
31: ; preds = %27, %24
%32 = load i32, ptr %6, align 4
%33 = icmp sge i32 %32, 0
br i1 %33, label %34, label %64
34: ; preds = %31
%35 = load ptr, ptr %5, align 8
%36 = call i64 @strncmp(ptr noundef %35, ptr noundef @.str, i32 noundef 5)
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %41
38: ; preds = %34
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds i8, ptr %39, i64 5
store ptr %40, ptr %7, align 8
br label %44
41: ; preds = %34
%42 = load ptr, ptr %5, align 8
%43 = call ptr @basename(ptr noundef %42)
store ptr %43, ptr %7, align 8
br label %44
44: ; preds = %41, %38
%45 = getelementptr inbounds %struct.utmp, ptr %8, i32 0, i32 0
%46 = load i32, ptr %45, align 4
%47 = load ptr, ptr %7, align 8
%48 = load i32, ptr @UT_LINESIZE, align 4
%49 = call i32 @strncpy(i32 noundef %46, ptr noundef %47, i32 noundef %48)
%50 = load i32, ptr @_PATH_UTMP, align 4
%51 = call i64 @utmpname(i32 noundef %50)
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %57
53: ; preds = %44
%54 = call i32 (...) @setutent()
%55 = call i32 @pututline(ptr noundef %8)
%56 = call i32 (...) @endutent()
br label %57
57: ; preds = %53, %44
%58 = load ptr, ptr %5, align 8
%59 = icmp ne ptr %58, %13
br i1 %59, label %60, label %63
60: ; preds = %57
%61 = load ptr, ptr %5, align 8
%62 = call i32 @free(ptr noundef %61)
br label %63
63: ; preds = %60, %57
br label %69
64: ; preds = %31
%65 = getelementptr inbounds %struct.utmp, ptr %8, i32 0, i32 0
%66 = load i32, ptr %65, align 4
%67 = load i32, ptr @UT_LINESIZE, align 4
%68 = call i32 @strncpy(i32 noundef %66, ptr noundef @.str.1, i32 noundef %67)
br label %69
69: ; preds = %64, %63
%70 = load i32, ptr @_PATH_WTMP, align 4
%71 = call i32 @updwtmp(i32 noundef %70, ptr noundef %8)
%72 = load ptr, ptr %3, align 8
call void @llvm.stackrestore(ptr %72)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @tty_name(i32 noundef, ptr noundef, i32 noundef) #3
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #3
declare ptr @basename(ptr noundef) #3
declare i32 @strncpy(i32 noundef, ptr noundef, i32 noundef) #3
declare i64 @utmpname(i32 noundef) #3
declare i32 @setutent(...) #3
declare i32 @pututline(ptr noundef) #3
declare i32 @endutent(...) #3
declare i32 @free(ptr noundef) #3
declare i32 @updwtmp(i32 noundef, ptr noundef) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpalakygrg.c'
source_filename = "/tmp/tmpalakygrg.c"
target datalayout = "e-m:e-p270: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 [29 x i8] c"pthread_rwlock_init[%d]: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"pthread_rwlock_destroy[%d]: %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 [2000 x i32], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %7, align 4
br label %9
9: ; preds = %27, %2
%10 = load i32, ptr %7, align 4
%11 = icmp slt i32 %10, 2000
br i1 %11, label %12, label %30
12: ; preds = %9
%13 = getelementptr inbounds [2000 x i32], ptr %6, i64 0, i64 0
%14 = load i32, ptr %7, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32, ptr %13, i64 %15
%17 = call i32 @pthread_rwlock_init(ptr noundef %16, ptr noundef null)
store i32 %17, ptr %8, align 4
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %26
19: ; preds = %12
%20 = load i32, ptr @stderr, align 4
%21 = load i32, ptr %7, align 4
%22 = load i32, ptr %8, align 4
%23 = call ptr @strerror(i32 noundef %22)
%24 = call i32 @fprintf(i32 noundef %20, ptr noundef @.str, i32 noundef %21, ptr noundef %23)
%25 = call i32 @exit(i32 noundef 1) #3
unreachable
26: ; preds = %12
br label %27
27: ; preds = %26
%28 = load i32, ptr %7, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %7, align 4
br label %9, !llvm.loop !6
30: ; preds = %9
store i32 0, ptr %7, align 4
br label %31
31: ; preds = %49, %30
%32 = load i32, ptr %7, align 4
%33 = icmp slt i32 %32, 2000
br i1 %33, label %34, label %52
34: ; preds = %31
%35 = getelementptr inbounds [2000 x i32], ptr %6, i64 0, i64 0
%36 = load i32, ptr %7, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %35, i64 %37
%39 = call i32 @pthread_rwlock_destroy(ptr noundef %38)
store i32 %39, ptr %8, align 4
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %48
41: ; preds = %34
%42 = load i32, ptr @stderr, align 4
%43 = load i32, ptr %7, align 4
%44 = load i32, ptr %8, align 4
%45 = call ptr @strerror(i32 noundef %44)
%46 = call i32 @fprintf(i32 noundef %42, ptr noundef @.str.1, i32 noundef %43, ptr noundef %45)
%47 = call i32 @exit(i32 noundef 1) #3
unreachable
48: ; preds = %34
br label %49
49: ; preds = %48
%50 = load i32, ptr %7, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %7, align 4
br label %31, !llvm.loop !8
52: ; preds = %31
%53 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @pthread_rwlock_init(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @pthread_rwlock_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" }
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/tmpalakygrg.c"
target datalayout = "e-m:e-p270: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 [29 x i8] c"pthread_rwlock_init[%d]: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"pthread_rwlock_destroy[%d]: %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 [2000 x i32], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = icmp slt i32 %9, 2000
br i1 %10, label %.lr.ph, label %31
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %26
%12 = getelementptr inbounds [2000 x i32], ptr %6, i64 0, i64 0
%13 = load i32, ptr %7, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i32, ptr %12, i64 %14
%16 = call i32 @pthread_rwlock_init(ptr noundef %15, ptr noundef null)
store i32 %16, ptr %8, align 4
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %25
18: ; preds = %11
%19 = load i32, ptr @stderr, align 4
%20 = load i32, ptr %7, align 4
%21 = load i32, ptr %8, align 4
%22 = call ptr @strerror(i32 noundef %21)
%23 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str, i32 noundef %20, ptr noundef %22)
%24 = call i32 @exit(i32 noundef 1) #3
unreachable
25: ; preds = %11
br label %26
26: ; preds = %25
%27 = load i32, ptr %7, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %7, align 4
%29 = load i32, ptr %7, align 4
%30 = icmp slt i32 %29, 2000
br i1 %30, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %31
31: ; preds = %._crit_edge, %2
store i32 0, ptr %7, align 4
%32 = load i32, ptr %7, align 4
%33 = icmp slt i32 %32, 2000
br i1 %33, label %.lr.ph2, label %54
.lr.ph2: ; preds = %31
br label %34
34: ; preds = %.lr.ph2, %49
%35 = getelementptr inbounds [2000 x i32], ptr %6, i64 0, i64 0
%36 = load i32, ptr %7, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %35, i64 %37
%39 = call i32 @pthread_rwlock_destroy(ptr noundef %38)
store i32 %39, ptr %8, align 4
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %48
41: ; preds = %34
%42 = load i32, ptr @stderr, align 4
%43 = load i32, ptr %7, align 4
%44 = load i32, ptr %8, align 4
%45 = call ptr @strerror(i32 noundef %44)
%46 = call i32 @fprintf(i32 noundef %42, ptr noundef @.str.1, i32 noundef %43, ptr noundef %45)
%47 = call i32 @exit(i32 noundef 1) #3
unreachable
48: ; preds = %34
br label %49
49: ; preds = %48
%50 = load i32, ptr %7, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %7, align 4
%52 = load i32, ptr %7, align 4
%53 = icmp slt i32 %52, 2000
br i1 %53, label %34, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %49
br label %54
54: ; preds = %._crit_edge3, %31
%55 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @pthread_rwlock_init(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @pthread_rwlock_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" }
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/tmp_0nfelqm.c'
source_filename = "/tmp/tmp_0nfelqm.c"
target datalayout = "e-m:e-p270: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/tmp_0nfelqm.c"
target datalayout = "e-m:e-p270: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/tmplr88m1ew.c'
source_filename = "/tmp/tmplr88m1ew.c"
target datalayout = "e-m:e-p270: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.protoent = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getprotobynumber(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = call i32 (...) @endprotoent()
br label %5
5: ; preds = %16, %1
%6 = call ptr (...) @getprotoent()
store ptr %6, ptr %3, align 8
br label %7
7: ; preds = %5
%8 = load ptr, ptr %3, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %16
10: ; preds = %7
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds %struct.protoent, ptr %11, i32 0, i32 0
%13 = load i32, ptr %12, align 4
%14 = load i32, ptr %2, align 4
%15 = icmp ne i32 %13, %14
br label %16
16: ; preds = %10, %7
%17 = phi i1 [ false, %7 ], [ %15, %10 ]
br i1 %17, label %5, label %18, !llvm.loop !6
18: ; preds = %16
%19 = load ptr, ptr %3, align 8
ret ptr %19
}
declare i32 @endprotoent(...) #1
declare ptr @getprotoent(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmplr88m1ew.c"
target datalayout = "e-m:e-p270: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.protoent = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getprotobynumber(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = call i32 (...) @endprotoent()
br label %5
5: ; preds = %16, %1
%6 = call ptr (...) @getprotoent()
store ptr %6, ptr %3, align 8
br label %7
7: ; preds = %5
%8 = load ptr, ptr %3, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %16
10: ; preds = %7
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds %struct.protoent, ptr %11, i32 0, i32 0
%13 = load i32, ptr %12, align 4
%14 = load i32, ptr %2, align 4
%15 = icmp ne i32 %13, %14
br label %16
16: ; preds = %10, %7
%17 = phi i1 [ false, %7 ], [ %15, %10 ]
br i1 %17, label %5, label %18, !llvm.loop !6
18: ; preds = %16
%19 = load ptr, ptr %3, align 8
ret ptr %19
}
declare i32 @endprotoent(...) #1
declare ptr @getprotoent(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp0njcnhqc.c'
source_filename = "/tmp/tmp0njcnhqc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0njcnhqc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv1c2f7rq.c'
source_filename = "/tmp/tmpv1c2f7rq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @rio_writen(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%11 = load i64, ptr %7, align 8
store i64 %11, ptr %8, align 8
%12 = load ptr, ptr %6, align 8
store ptr %12, ptr %9, align 8
br label %13
13: ; preds = %33, %32, %27, %3
%14 = load i64, ptr %8, align 8
%15 = icmp ugt i64 %14, 0
br i1 %15, label %16, label %40
16: ; preds = %13
%17 = load i32, ptr %5, align 4
%18 = load ptr, ptr %9, align 8
%19 = load i64, ptr %8, align 8
%20 = call i64 @write(i32 noundef %17, ptr noundef %18, i64 noundef %19)
store i64 %20, ptr %10, align 8
%21 = load i64, ptr %10, align 8
%22 = icmp slt i64 %21, 0
br i1 %22, label %23, label %29
23: ; preds = %16
%24 = load i64, ptr @errno, align 8
%25 = load i64, ptr @EINTR, align 8
%26 = icmp eq i64 %24, %25
br i1 %26, label %27, label %28
27: ; preds = %23
br label %13, !llvm.loop !6
28: ; preds = %23
store i64 -1, ptr %4, align 8
br label %42
29: ; preds = %16
%30 = load i64, ptr %10, align 8
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %29
br label %13, !llvm.loop !6
33: ; preds = %29
%34 = load i64, ptr %10, align 8
%35 = load ptr, ptr %9, align 8
%36 = getelementptr inbounds i8, ptr %35, i64 %34
store ptr %36, ptr %9, align 8
%37 = load i64, ptr %10, align 8
%38 = load i64, ptr %8, align 8
%39 = sub i64 %38, %37
store i64 %39, ptr %8, align 8
br label %13, !llvm.loop !6
40: ; preds = %13
%41 = load i64, ptr %7, align 8
store i64 %41, ptr %4, align 8
br label %42
42: ; preds = %40, %28
%43 = load i64, ptr %4, align 8
ret i64 %43
}
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv1c2f7rq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @rio_writen(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%11 = load i64, ptr %7, align 8
store i64 %11, ptr %8, align 8
%12 = load ptr, ptr %6, align 8
store ptr %12, ptr %9, align 8
%13 = load i64, ptr %8, align 8
%14 = icmp ugt i64 %13, 0
br i1 %14, label %.lr.ph, label %41
.lr.ph: ; preds = %3
br label %15
15: ; preds = %.lr.ph, %.backedge
%16 = load i32, ptr %5, align 4
%17 = load ptr, ptr %9, align 8
%18 = load i64, ptr %8, align 8
%19 = call i64 @write(i32 noundef %16, ptr noundef %17, i64 noundef %18)
store i64 %19, ptr %10, align 8
%20 = load i64, ptr %10, align 8
%21 = icmp slt i64 %20, 0
br i1 %21, label %22, label %30
22: ; preds = %15
%23 = load i64, ptr @errno, align 8
%24 = load i64, ptr @EINTR, align 8
%25 = icmp eq i64 %23, %24
br i1 %25, label %26, label %29
26: ; preds = %22
br label %.backedge
.backedge: ; preds = %26, %33, %34
%27 = load i64, ptr %8, align 8
%28 = icmp ugt i64 %27, 0
br i1 %28, label %15, label %._crit_edge, !llvm.loop !6
29: ; preds = %22
store i64 -1, ptr %4, align 8
br label %43
30: ; preds = %15
%31 = load i64, ptr %10, align 8
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %30
br label %.backedge
34: ; preds = %30
%35 = load i64, ptr %10, align 8
%36 = load ptr, ptr %9, align 8
%37 = getelementptr inbounds i8, ptr %36, i64 %35
store ptr %37, ptr %9, align 8
%38 = load i64, ptr %10, align 8
%39 = load i64, ptr %8, align 8
%40 = sub i64 %39, %38
store i64 %40, ptr %8, align 8
br label %.backedge
._crit_edge: ; preds = %.backedge
br label %41
41: ; preds = %._crit_edge, %3
%42 = load i64, ptr %7, align 8
store i64 %42, ptr %4, align 8
br label %43
43: ; preds = %41, %29
%44 = load i64, ptr %4, align 8
ret i64 %44
}
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpcgvpk2gy.c'
source_filename = "/tmp/tmpcgvpk2gy.c"
target datalayout = "e-m:e-p270: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/tmpcgvpk2gy.c"
target datalayout = "e-m:e-p270: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/tmpr_bd716j.c'
source_filename = "/tmp/tmpr_bd716j.c"
target datalayout = "e-m:e-p270: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 [10 x i32] [i32 2, i32 6, i32 4, i32 8, i32 10, i32 12, i32 89, i32 68, i32 45, i32 37], align 16
@.str = private unnamed_addr constant [30 x i8] c"Data items in original order\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%4d\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c"\0AData items in ascending order\0A\00", align 1
@.str.3 = 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 [10 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = 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.a, i64 40, i1 false)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %4, align 4
br label %7
7: ; preds = %16, %0
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 10
br i1 %9, label %10, label %19
10: ; preds = %7
%11 = load i32, ptr %4, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %12
%14 = load i32, ptr %13, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %14)
br label %16
16: ; preds = %10
%17 = load i32, ptr %4, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %4, align 4
br label %7, !llvm.loop !6
19: ; preds = %7
store i32 1, ptr %3, align 4
br label %20
20: ; preds = %61, %19
%21 = load i32, ptr %3, align 4
%22 = icmp slt i32 %21, 10
br i1 %22, label %23, label %64
23: ; preds = %20
store i32 0, ptr %4, align 4
br label %24
24: ; preds = %57, %23
%25 = load i32, ptr %4, align 4
%26 = icmp slt i32 %25, 9
br i1 %26, label %27, label %60
27: ; preds = %24
%28 = load i32, ptr %4, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %29
%31 = load i32, ptr %30, align 4
%32 = load i32, ptr %4, align 4
%33 = add nsw i32 %32, 1
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %34
%36 = load i32, ptr %35, align 4
%37 = icmp sgt i32 %31, %36
br i1 %37, label %38, label %56
38: ; preds = %27
%39 = load i32, ptr %4, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %40
%42 = load i32, ptr %41, align 4
store i32 %42, ptr %5, align 4
%43 = load i32, ptr %4, align 4
%44 = add nsw i32 %43, 1
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %45
%47 = load i32, ptr %46, align 4
%48 = load i32, ptr %4, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %49
store i32 %47, ptr %50, align 4
%51 = load i32, ptr %5, align 4
%52 = load i32, ptr %4, align 4
%53 = add nsw i32 %52, 1
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %54
store i32 %51, ptr %55, align 4
br label %56
56: ; preds = %38, %27
br label %57
57: ; preds = %56
%58 = load i32, ptr %4, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %4, align 4
br label %24, !llvm.loop !8
60: ; preds = %24
br label %61
61: ; preds = %60
%62 = load i32, ptr %3, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %3, align 4
br label %20, !llvm.loop !9
64: ; preds = %20
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %4, align 4
br label %66
66: ; preds = %75, %64
%67 = load i32, ptr %4, align 4
%68 = icmp slt i32 %67, 10
br i1 %68, label %69, label %78
69: ; preds = %66
%70 = load i32, ptr %4, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %71
%73 = load i32, ptr %72, align 4
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %73)
br label %75
75: ; preds = %69
%76 = load i32, ptr %4, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %4, align 4
br label %66, !llvm.loop !10
78: ; preds = %66
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr_bd716j.c"
target datalayout = "e-m:e-p270: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 [10 x i32] [i32 2, i32 6, i32 4, i32 8, i32 10, i32 12, i32 89, i32 68, i32 45, i32 37], align 16
@.str = private unnamed_addr constant [30 x i8] c"Data items in original order\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%4d\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c"\0AData items in ascending order\0A\00", align 1
@.str.3 = 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 [10 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = 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.a, i64 40, i1 false)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 10
br i1 %8, label %.lr.ph, label %20
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %15
%10 = load i32, ptr %4, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %11
%13 = load i32, ptr %12, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %13)
br label %15
15: ; preds = %9
%16 = load i32, ptr %4, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %4, align 4
%18 = load i32, ptr %4, align 4
%19 = icmp slt i32 %18, 10
br i1 %19, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %20
20: ; preds = %._crit_edge, %0
store i32 1, ptr %3, align 4
%21 = load i32, ptr %3, align 4
%22 = icmp slt i32 %21, 10
br i1 %22, label %.lr.ph5, label %67
.lr.ph5: ; preds = %20
br label %23
23: ; preds = %.lr.ph5, %62
store i32 0, ptr %4, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp slt i32 %24, 9
br i1 %25, label %.lr.ph2, label %61
.lr.ph2: ; preds = %23
br label %26
26: ; preds = %.lr.ph2, %56
%27 = load i32, ptr %4, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %28
%30 = load i32, ptr %29, align 4
%31 = load i32, ptr %4, align 4
%32 = add nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %33
%35 = load i32, ptr %34, align 4
%36 = icmp sgt i32 %30, %35
br i1 %36, label %37, label %55
37: ; preds = %26
%38 = load i32, ptr %4, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %39
%41 = load i32, ptr %40, align 4
store i32 %41, ptr %5, align 4
%42 = load i32, ptr %4, align 4
%43 = add nsw i32 %42, 1
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %44
%46 = load i32, ptr %45, align 4
%47 = load i32, ptr %4, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %48
store i32 %46, ptr %49, align 4
%50 = load i32, ptr %5, align 4
%51 = load i32, ptr %4, align 4
%52 = add nsw i32 %51, 1
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %53
store i32 %50, ptr %54, align 4
br label %55
55: ; preds = %37, %26
br label %56
56: ; preds = %55
%57 = load i32, ptr %4, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %4, align 4
%59 = load i32, ptr %4, align 4
%60 = icmp slt i32 %59, 9
br i1 %60, label %26, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %56
br label %61
61: ; preds = %._crit_edge3, %23
br label %62
62: ; preds = %61
%63 = load i32, ptr %3, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %3, align 4
%65 = load i32, ptr %3, align 4
%66 = icmp slt i32 %65, 10
br i1 %66, label %23, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %62
br label %67
67: ; preds = %._crit_edge6, %20
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %4, align 4
%69 = load i32, ptr %4, align 4
%70 = icmp slt i32 %69, 10
br i1 %70, label %.lr.ph8, label %82
.lr.ph8: ; preds = %67
br label %71
71: ; preds = %.lr.ph8, %77
%72 = load i32, ptr %4, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %73
%75 = load i32, ptr %74, align 4
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %75)
br label %77
77: ; preds = %71
%78 = load i32, ptr %4, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %4, align 4
%80 = load i32, ptr %4, align 4
%81 = icmp slt i32 %80, 10
br i1 %81, label %71, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %77
br label %82
82: ; preds = %._crit_edge9, %67
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmphlmy97ud.c'
source_filename = "/tmp/tmphlmy97ud.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mpu6050_init() #0 {
%1 = call i32 @mpu6050_write(i32 noundef 107, i32 noundef 0)
%2 = call i32 @usleep(i32 noundef 500)
%3 = call i32 @mpu6050_write(i32 noundef 28, i32 noundef 0)
%4 = call i32 @usleep(i32 noundef 500)
%5 = call i32 @mpu6050_write(i32 noundef 27, i32 noundef 0)
%6 = call i32 @usleep(i32 noundef 500)
ret void
}
declare i32 @mpu6050_write(i32 noundef, i32 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/tmphlmy97ud.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mpu6050_init() #0 {
%1 = call i32 @mpu6050_write(i32 noundef 107, i32 noundef 0)
%2 = call i32 @usleep(i32 noundef 500)
%3 = call i32 @mpu6050_write(i32 noundef 28, i32 noundef 0)
%4 = call i32 @usleep(i32 noundef 500)
%5 = call i32 @mpu6050_write(i32 noundef 27, i32 noundef 0)
%6 = call i32 @usleep(i32 noundef 500)
ret void
}
declare i32 @mpu6050_write(i32 noundef, i32 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/tmp942406fq.c'
source_filename = "/tmp/tmp942406fq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [50 x i8], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%6 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%7 = call i32 @strlen(ptr noundef %6)
store i32 %7, ptr %3, align 4
br label %8
8: ; preds = %11, %0
%9 = load i32, ptr %3, align 4
%10 = icmp sge i32 %9, 0
br i1 %10, label %11, label %19
11: ; preds = %8
%12 = load i32, ptr %3, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %13
%15 = load i8, ptr %14, align 1
%16 = call i32 @printf(ptr noundef @.str.1, i8 noundef signext %15)
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, -1
store i32 %18, ptr %3, align 4
br label %8, !llvm.loop !6
19: ; preds = %8
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp942406fq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [50 x i8], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%6 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%7 = call i32 @strlen(ptr noundef %6)
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp sge i32 %8, 0
br i1 %9, label %.lr.ph, label %20
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %10
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 %12
%14 = load i8, ptr %13, align 1
%15 = call i32 @printf(ptr noundef @.str.1, i8 noundef signext %14)
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, -1
store i32 %17, ptr %3, align 4
%18 = load i32, ptr %3, align 4
%19 = icmp sge i32 %18, 0
br i1 %19, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %20
20: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpwoavkdib.c'
source_filename = "/tmp/tmpwoavkdib.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @count_whitespace(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
br label %5
5: ; preds = %22, %1
%6 = load i32, ptr %4, align 4
%7 = load ptr, ptr %2, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = icmp slt i32 %6, %8
br i1 %9, label %10, label %25
10: ; preds = %5
%11 = load ptr, ptr %2, align 8
%12 = load i32, ptr %4, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = load i8, ptr %14, align 1
%16 = call i64 @isspace(i8 noundef signext %15)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %10
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %3, align 4
br label %21
21: ; preds = %18, %10
br label %22
22: ; preds = %21
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %4, align 4
br label %5, !llvm.loop !6
25: ; preds = %5
%26 = load i32, ptr %3, align 4
ret i32 %26
}
declare i32 @strlen(ptr noundef) #1
declare i64 @isspace(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/tmpwoavkdib.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @count_whitespace(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = icmp slt i32 %5, %7
br i1 %8, label %.lr.ph, label %28
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %21
%10 = load ptr, ptr %2, align 8
%11 = load i32, ptr %4, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
%14 = load i8, ptr %13, align 1
%15 = call i64 @isspace(i8 noundef signext %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %9
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %3, align 4
br label %20
20: ; preds = %17, %9
br label %21
21: ; preds = %20
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %4, align 4
%24 = load i32, ptr %4, align 4
%25 = load ptr, ptr %2, align 8
%26 = call i32 @strlen(ptr noundef %25)
%27 = icmp slt i32 %24, %26
br i1 %27, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %28
28: ; preds = %._crit_edge, %1
%29 = load i32, ptr %3, align 4
ret i32 %29
}
declare i32 @strlen(ptr noundef) #1
declare i64 @isspace(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/tmpfy_f0__o.c'
source_filename = "/tmp/tmpfy_f0__o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"/proc/cmdline\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"vga=%i\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"vga=normal\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_fb_mode() #0 {
%1 = alloca ptr, align 8
%2 = alloca [256 x i8], align 16
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %6, align 4
%7 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %7, ptr %1, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %36
9: ; preds = %0
%10 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%11 = load ptr, ptr %1, align 8
%12 = call i64 @fgets(ptr noundef %10, i32 noundef 256, ptr noundef %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %33
14: ; preds = %9
%15 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
store ptr %15, ptr %4, align 8
br label %16
16: ; preds = %31, %14
%17 = call ptr @strsep(ptr noundef %4, ptr noundef @.str.2)
store ptr %17, ptr %3, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %32
19: ; preds = %16
%20 = load ptr, ptr %3, align 8
%21 = call i32 @sscanf(ptr noundef %20, ptr noundef @.str.3, ptr noundef %5)
%22 = icmp eq i32 %21, 1
br i1 %22, label %23, label %25
23: ; preds = %19
%24 = load i32, ptr %5, align 4
store i32 %24, ptr %6, align 4
br label %25
25: ; preds = %23, %19
%26 = load ptr, ptr %3, align 8
%27 = call ptr @strstr(ptr noundef %26, ptr noundef @.str.4)
%28 = load ptr, ptr %3, align 8
%29 = icmp eq ptr %27, %28
br i1 %29, label %30, label %31
30: ; preds = %25
store i32 0, ptr %6, align 4
br label %31
31: ; preds = %30, %25
br label %16, !llvm.loop !6
32: ; preds = %16
br label %33
33: ; preds = %32, %9
%34 = load ptr, ptr %1, align 8
%35 = call i32 @fclose(ptr noundef %34)
br label %36
36: ; preds = %33, %0
%37 = load i32, ptr %6, align 4
%38 = icmp sgt i32 %37, 16
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = load i32, ptr %6, align 4
br label %42
41: ; preds = %36
br label %42
42: ; preds = %41, %39
%43 = phi i32 [ %40, %39 ], [ 0, %41 ]
ret i32 %43
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare ptr @strsep(ptr noundef, ptr noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfy_f0__o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"/proc/cmdline\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"vga=%i\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"vga=normal\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_fb_mode() #0 {
%1 = alloca ptr, align 8
%2 = alloca [256 x i8], align 16
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %6, align 4
%7 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %7, ptr %1, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %37
9: ; preds = %0
%10 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%11 = load ptr, ptr %1, align 8
%12 = call i64 @fgets(ptr noundef %10, i32 noundef 256, ptr noundef %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %34
14: ; preds = %9
%15 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
store ptr %15, ptr %4, align 8
%16 = call ptr @strsep(ptr noundef %4, ptr noundef @.str.2)
store ptr %16, ptr %3, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %.lr.ph, label %33
.lr.ph: ; preds = %14
br label %18
18: ; preds = %.lr.ph, %30
%19 = load ptr, ptr %3, align 8
%20 = call i32 @sscanf(ptr noundef %19, ptr noundef @.str.3, ptr noundef %5)
%21 = icmp eq i32 %20, 1
br i1 %21, label %22, label %24
22: ; preds = %18
%23 = load i32, ptr %5, align 4
store i32 %23, ptr %6, align 4
br label %24
24: ; preds = %22, %18
%25 = load ptr, ptr %3, align 8
%26 = call ptr @strstr(ptr noundef %25, ptr noundef @.str.4)
%27 = load ptr, ptr %3, align 8
%28 = icmp eq ptr %26, %27
br i1 %28, label %29, label %30
29: ; preds = %24
store i32 0, ptr %6, align 4
br label %30
30: ; preds = %29, %24
%31 = call ptr @strsep(ptr noundef %4, ptr noundef @.str.2)
store ptr %31, ptr %3, align 8
%32 = icmp ne ptr %31, null
br i1 %32, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %33
33: ; preds = %._crit_edge, %14
br label %34
34: ; preds = %33, %9
%35 = load ptr, ptr %1, align 8
%36 = call i32 @fclose(ptr noundef %35)
br label %37
37: ; preds = %34, %0
%38 = load i32, ptr %6, align 4
%39 = icmp sgt i32 %38, 16
br i1 %39, label %40, label %42
40: ; preds = %37
%41 = load i32, ptr %6, align 4
br label %43
42: ; preds = %37
br label %43
43: ; preds = %42, %40
%44 = phi i32 [ %41, %40 ], [ 0, %42 ]
ret i32 %44
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare ptr @strsep(ptr noundef, ptr noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpp_y8i4ik.c'
source_filename = "/tmp/tmpp_y8i4ik.c"
target datalayout = "e-m:e-p270: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 { i64, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @microsecSleep(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca %struct.timeval, align 8
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = sitofp i64 %4 to double
%6 = fmul double %5, 0x3EB0C6F7A0B5ED8D
%7 = fptosi double %6 to i64
%8 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 0
store i64 %7, ptr %8, align 8
%9 = load i64, ptr %2, align 8
%10 = sitofp i64 %9 to double
%11 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 0
%12 = load i64, ptr %11, align 8
%13 = sitofp i64 %12 to double
%14 = call double @llvm.fmuladd.f64(double -1.000000e+06, double %13, double %10)
%15 = fptosi double %14 to i64
%16 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 1
store i64 %15, ptr %16, align 8
%17 = call i32 @select(i32 noundef 0, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef %3)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree 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/tmpp_y8i4ik.c"
target datalayout = "e-m:e-p270: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 { i64, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @microsecSleep(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca %struct.timeval, align 8
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = sitofp i64 %4 to double
%6 = fmul double %5, 0x3EB0C6F7A0B5ED8D
%7 = fptosi double %6 to i64
%8 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 0
store i64 %7, ptr %8, align 8
%9 = load i64, ptr %2, align 8
%10 = sitofp i64 %9 to double
%11 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 0
%12 = load i64, ptr %11, align 8
%13 = sitofp i64 %12 to double
%14 = call double @llvm.fmuladd.f64(double -1.000000e+06, double %13, double %10)
%15 = fptosi double %14 to i64
%16 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 1
store i64 %15, ptr %16, align 8
%17 = call i32 @select(i32 noundef 0, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef %3)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree 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/tmp7t_iu2g0.c'
source_filename = "/tmp/tmp7t_iu2g0.c"
target datalayout = "e-m:e-p270: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/tmp7t_iu2g0.c"
target datalayout = "e-m:e-p270: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/tmpbc4md00_.c'
source_filename = "/tmp/tmpbc4md00_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"tcp_read()=%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @LogTrainTcpRead(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [1024 x i8], align 16
store i32 %0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 @tcp_select(i32 noundef 0, i32 noundef %7)
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %1
store i32 0, ptr %2, align 4
br label %24
12: ; preds = %1
%13 = load i32, ptr %5, align 4
%14 = icmp eq i32 %13, 1
br i1 %14, label %15, label %23
15: ; preds = %12
%16 = call i32 @tcp_read(ptr noundef %6, i32 noundef 1024)
store i32 %16, ptr %5, align 4
%17 = load i32, ptr %5, align 4
%18 = call i32 @com_logPrint(ptr noundef @.str, i32 noundef %17)
%19 = load i32, ptr %5, align 4
%20 = icmp sle i32 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %15
store i32 -1, ptr %2, align 4
br label %24
22: ; preds = %15
store i32 1, ptr %2, align 4
br label %24
23: ; preds = %12
store i32 -2, ptr %2, align 4
br label %24
24: ; preds = %23, %22, %21, %11
%25 = load i32, ptr %2, align 4
ret i32 %25
}
declare i32 @tcp_select(i32 noundef, i32 noundef) #1
declare i32 @tcp_read(ptr noundef, i32 noundef) #1
declare i32 @com_logPrint(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/tmpbc4md00_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"tcp_read()=%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @LogTrainTcpRead(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [1024 x i8], align 16
store i32 %0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 @tcp_select(i32 noundef 0, i32 noundef %7)
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %1
store i32 0, ptr %2, align 4
br label %24
12: ; preds = %1
%13 = load i32, ptr %5, align 4
%14 = icmp eq i32 %13, 1
br i1 %14, label %15, label %23
15: ; preds = %12
%16 = call i32 @tcp_read(ptr noundef %6, i32 noundef 1024)
store i32 %16, ptr %5, align 4
%17 = load i32, ptr %5, align 4
%18 = call i32 @com_logPrint(ptr noundef @.str, i32 noundef %17)
%19 = load i32, ptr %5, align 4
%20 = icmp sle i32 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %15
store i32 -1, ptr %2, align 4
br label %24
22: ; preds = %15
store i32 1, ptr %2, align 4
br label %24
23: ; preds = %12
store i32 -2, ptr %2, align 4
br label %24
24: ; preds = %23, %22, %21, %11
%25 = load i32, ptr %2, align 4
ret i32 %25
}
declare i32 @tcp_select(i32 noundef, i32 noundef) #1
declare i32 @tcp_read(ptr noundef, i32 noundef) #1
declare i32 @com_logPrint(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/tmpxyn1q8ps.c'
source_filename = "/tmp/tmpxyn1q8ps.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDONLY = dso_local global i32 0, align 4
@S_IRUSR = 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
%8 = alloca [29001 x i8], align 16
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (...) @on_empty()
br label %14
14: ; preds = %12, %2
store i32 1, ptr %9, align 4
br label %15
15: ; preds = %48, %14
%16 = load i32, ptr %9, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %51
19: ; preds = %15
%20 = load ptr, ptr %5, align 8
%21 = load i32, ptr %9, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds ptr, ptr %20, i64 %22
%24 = load ptr, ptr %23, align 8
%25 = load i32, ptr @O_RDONLY, align 4
%26 = load i32, ptr @S_IRUSR, align 4
%27 = call i32 @open(ptr noundef %24, i32 noundef %25, i32 noundef %26)
store i32 %27, ptr %6, align 4
%28 = load i32, ptr %6, align 4
%29 = icmp eq i32 %28, -1
br i1 %29, label %30, label %37
30: ; preds = %19
%31 = load ptr, ptr %5, align 8
%32 = load i32, ptr %9, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds ptr, ptr %31, i64 %33
%35 = load ptr, ptr %34, align 8
%36 = call i32 @on_error(ptr noundef %35)
br label %48
37: ; preds = %19
%38 = load i32, ptr %6, align 4
%39 = getelementptr inbounds [29001 x i8], ptr %8, i64 0, i64 0
%40 = call i32 @read(i32 noundef %38, ptr noundef %39, i32 noundef 29000)
store i32 %40, ptr %7, align 4
%41 = load i32, ptr %7, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [29001 x i8], ptr %8, i64 0, i64 %42
store i8 0, ptr %43, align 1
%44 = getelementptr inbounds [29001 x i8], ptr %8, i64 0, i64 0
%45 = call i32 @ft_putstr(ptr noundef %44)
%46 = load i32, ptr %6, align 4
%47 = call i32 @close(i32 noundef %46)
br label %48
48: ; preds = %37, %30
%49 = load i32, ptr %9, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %9, align 4
br label %15, !llvm.loop !6
51: ; preds = %15
ret i32 0
}
declare i32 @on_empty(...) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @on_error(ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @ft_putstr(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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpxyn1q8ps.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDONLY = dso_local global i32 0, align 4
@S_IRUSR = 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
%8 = alloca [29001 x i8], align 16
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (...) @on_empty()
br label %14
14: ; preds = %12, %2
store i32 1, ptr %9, align 4
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %53
.lr.ph: ; preds = %14
br label %18
18: ; preds = %.lr.ph, %47
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %9, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds ptr, ptr %19, i64 %21
%23 = load ptr, ptr %22, align 8
%24 = load i32, ptr @O_RDONLY, align 4
%25 = load i32, ptr @S_IRUSR, align 4
%26 = call i32 @open(ptr noundef %23, i32 noundef %24, i32 noundef %25)
store i32 %26, ptr %6, align 4
%27 = load i32, ptr %6, align 4
%28 = icmp eq i32 %27, -1
br i1 %28, label %29, label %36
29: ; preds = %18
%30 = load ptr, ptr %5, align 8
%31 = load i32, ptr %9, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds ptr, ptr %30, i64 %32
%34 = load ptr, ptr %33, align 8
%35 = call i32 @on_error(ptr noundef %34)
br label %47
36: ; preds = %18
%37 = load i32, ptr %6, align 4
%38 = getelementptr inbounds [29001 x i8], ptr %8, i64 0, i64 0
%39 = call i32 @read(i32 noundef %37, ptr noundef %38, i32 noundef 29000)
store i32 %39, ptr %7, align 4
%40 = load i32, ptr %7, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [29001 x i8], ptr %8, i64 0, i64 %41
store i8 0, ptr %42, align 1
%43 = getelementptr inbounds [29001 x i8], ptr %8, i64 0, i64 0
%44 = call i32 @ft_putstr(ptr noundef %43)
%45 = load i32, ptr %6, align 4
%46 = call i32 @close(i32 noundef %45)
br label %47
47: ; preds = %36, %29
%48 = load i32, ptr %9, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %9, align 4
%50 = load i32, ptr %9, align 4
%51 = load i32, ptr %4, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %47
br label %53
53: ; preds = %._crit_edge, %14
ret i32 0
}
declare i32 @on_empty(...) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @on_error(ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @ft_putstr(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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpvwy1wlxa.c'
source_filename = "/tmp/tmpvwy1wlxa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"0123456789ABCDEF\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @qhexdigit(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = sext i8 %3 to i32
%5 = and i32 %4, 15
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds [17 x i8], ptr @.str, i64 0, i64 %6
%8 = load i8, ptr %7, align 1
%9 = call i32 @qbyte(i8 noundef signext %8)
ret void
}
declare i32 @qbyte(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvwy1wlxa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"0123456789ABCDEF\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @qhexdigit(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = sext i8 %3 to i32
%5 = and i32 %4, 15
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds [17 x i8], ptr @.str, i64 0, i64 %6
%8 = load i8, ptr %7, align 1
%9 = call i32 @qbyte(i8 noundef signext %8)
ret void
}
declare i32 @qbyte(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp74luu7z.c'
source_filename = "/tmp/tmpp74luu7z.c"
target datalayout = "e-m:e-p270: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/tmpp74luu7z.c"
target datalayout = "e-m:e-p270: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/tmpoo0g4tkp.c'
source_filename = "/tmp/tmpoo0g4tkp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FD_SETSIZE = 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/tmpoo0g4tkp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FD_SETSIZE = 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/tmpsf_dcxqb.c'
source_filename = "/tmp/tmpsf_dcxqb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fffree(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %5, align 8
%7 = load i32, ptr %6, align 4
%8 = icmp sgt i32 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = load i32, ptr %10, align 4
store i32 %11, ptr %3, align 4
br label %21
12: ; preds = %2
%13 = load ptr, ptr %4, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = load ptr, ptr %4, align 8
%17 = call i32 @free(ptr noundef %16)
br label %18
18: ; preds = %15, %12
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %19, align 4
store i32 %20, ptr %3, align 4
br label %21
21: ; preds = %18, %9
%22 = load i32, ptr %3, align 4
ret i32 %22
}
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/tmpsf_dcxqb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fffree(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %5, align 8
%7 = load i32, ptr %6, align 4
%8 = icmp sgt i32 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = load i32, ptr %10, align 4
store i32 %11, ptr %3, align 4
br label %21
12: ; preds = %2
%13 = load ptr, ptr %4, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = load ptr, ptr %4, align 8
%17 = call i32 @free(ptr noundef %16)
br label %18
18: ; preds = %15, %12
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %19, align 4
store i32 %20, ptr %3, align 4
br label %21
21: ; preds = %18, %9
%22 = load i32, ptr %3, align 4
ret i32 %22
}
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/tmp9p8jcv_m.c'
source_filename = "/tmp/tmp9p8jcv_m.c"
target datalayout = "e-m:e-p270: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.get_dtime_by_row.decimal_part_dtime = private unnamed_addr constant [48 x double] [double 2.083000e-02, double 4.167000e-02, double 6.250000e-02, double 8.333000e-02, double 1.041700e-01, double 1.250000e-01, double 1.458300e-01, double 1.666700e-01, double 1.875000e-01, double 2.083300e-01, double 2.291700e-01, double 2.500000e-01, double 2.708300e-01, double 2.916700e-01, double 3.125000e-01, double 3.333300e-01, double 3.541700e-01, double 3.750000e-01, double 3.958300e-01, double 4.166700e-01, double 4.375000e-01, double 4.583300e-01, double 4.791700e-01, double 5.000000e-01, double 5.208300e-01, double 5.416700e-01, double 5.625000e-01, double 5.833300e-01, double 6.041700e-01, double 6.250000e-01, double 6.458300e-01, double 6.666700e-01, double 6.875000e-01, double 7.083300e-01, double 7.291700e-01, double 7.500000e-01, double 7.708300e-01, double 7.916700e-01, double 8.125000e-01, double 8.333300e-01, double 8.541700e-01, double 8.750000e-01, double 8.958300e-01, double 9.166700e-01, double 9.375000e-01, double 9.583300e-01, double 0x3FEF555C52E72DA1, double 1.000000e+00], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @get_dtime_by_row(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca double, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [48 x double], align 16
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const.get_dtime_by_row.decimal_part_dtime, i64 384, i1 false)
store i32 17568, ptr %8, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = load i32, ptr %8, align 4
%14 = sdiv i32 %13, 2
store i32 %14, ptr %8, align 4
br label %15
15: ; preds = %12, %2
%16 = load i32, ptr %3, align 4
%17 = icmp sge i32 %16, 0
br i1 %17, label %18, label %22
18: ; preds = %15
%19 = load i32, ptr %3, align 4
%20 = load i32, ptr %8, align 4
%21 = icmp slt i32 %19, %20
br label %22
22: ; preds = %18, %15
%23 = phi i1 [ false, %15 ], [ %21, %18 ]
%24 = zext i1 %23 to i32
%25 = call i32 @assert(i32 noundef %24)
%26 = load i32, ptr %4, align 4
%27 = icmp ne i32 %26, 0
%28 = zext i1 %27 to i64
%29 = select i1 %27, i32 24, i32 48
store i32 %29, ptr %7, align 4
%30 = load i32, ptr %3, align 4
%31 = load i32, ptr %7, align 4
%32 = sdiv i32 %30, %31
%33 = add nsw i32 %32, 1
%34 = sitofp i32 %33 to double
store double %34, ptr %6, align 8
%35 = load i32, ptr %3, align 4
%36 = load i32, ptr %7, align 4
%37 = srem i32 %35, %36
store i32 %37, ptr %5, align 4
%38 = load i32, ptr %4, align 4
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %45
40: ; preds = %22
%41 = load i32, ptr %5, align 4
%42 = mul nsw i32 %41, 2
store i32 %42, ptr %5, align 4
%43 = load i32, ptr %5, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %5, align 4
br label %45
45: ; preds = %40, %22
%46 = load double, ptr %6, align 8
%47 = load i32, ptr %5, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [48 x double], ptr %9, i64 0, i64 %48
%50 = load double, ptr %49, align 8
%51 = fadd double %46, %50
ret double %51
}
; 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 @assert(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/tmp9p8jcv_m.c"
target datalayout = "e-m:e-p270: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.get_dtime_by_row.decimal_part_dtime = private unnamed_addr constant [48 x double] [double 2.083000e-02, double 4.167000e-02, double 6.250000e-02, double 8.333000e-02, double 1.041700e-01, double 1.250000e-01, double 1.458300e-01, double 1.666700e-01, double 1.875000e-01, double 2.083300e-01, double 2.291700e-01, double 2.500000e-01, double 2.708300e-01, double 2.916700e-01, double 3.125000e-01, double 3.333300e-01, double 3.541700e-01, double 3.750000e-01, double 3.958300e-01, double 4.166700e-01, double 4.375000e-01, double 4.583300e-01, double 4.791700e-01, double 5.000000e-01, double 5.208300e-01, double 5.416700e-01, double 5.625000e-01, double 5.833300e-01, double 6.041700e-01, double 6.250000e-01, double 6.458300e-01, double 6.666700e-01, double 6.875000e-01, double 7.083300e-01, double 7.291700e-01, double 7.500000e-01, double 7.708300e-01, double 7.916700e-01, double 8.125000e-01, double 8.333300e-01, double 8.541700e-01, double 8.750000e-01, double 8.958300e-01, double 9.166700e-01, double 9.375000e-01, double 9.583300e-01, double 0x3FEF555C52E72DA1, double 1.000000e+00], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @get_dtime_by_row(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca double, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [48 x double], align 16
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const.get_dtime_by_row.decimal_part_dtime, i64 384, i1 false)
store i32 17568, ptr %8, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = load i32, ptr %8, align 4
%14 = sdiv i32 %13, 2
store i32 %14, ptr %8, align 4
br label %15
15: ; preds = %12, %2
%16 = load i32, ptr %3, align 4
%17 = icmp sge i32 %16, 0
br i1 %17, label %18, label %22
18: ; preds = %15
%19 = load i32, ptr %3, align 4
%20 = load i32, ptr %8, align 4
%21 = icmp slt i32 %19, %20
br label %22
22: ; preds = %18, %15
%23 = phi i1 [ false, %15 ], [ %21, %18 ]
%24 = zext i1 %23 to i32
%25 = call i32 @assert(i32 noundef %24)
%26 = load i32, ptr %4, align 4
%27 = icmp ne i32 %26, 0
%28 = zext i1 %27 to i64
%29 = select i1 %27, i32 24, i32 48
store i32 %29, ptr %7, align 4
%30 = load i32, ptr %3, align 4
%31 = load i32, ptr %7, align 4
%32 = sdiv i32 %30, %31
%33 = add nsw i32 %32, 1
%34 = sitofp i32 %33 to double
store double %34, ptr %6, align 8
%35 = load i32, ptr %3, align 4
%36 = load i32, ptr %7, align 4
%37 = srem i32 %35, %36
store i32 %37, ptr %5, align 4
%38 = load i32, ptr %4, align 4
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %45
40: ; preds = %22
%41 = load i32, ptr %5, align 4
%42 = mul nsw i32 %41, 2
store i32 %42, ptr %5, align 4
%43 = load i32, ptr %5, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %5, align 4
br label %45
45: ; preds = %40, %22
%46 = load double, ptr %6, align 8
%47 = load i32, ptr %5, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [48 x double], ptr %9, i64 0, i64 %48
%50 = load double, ptr %49, align 8
%51 = fadd double %46, %50
ret double %51
}
; 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 @assert(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/tmpf9pp8eng.c'
source_filename = "/tmp/tmpf9pp8eng.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @test_mq_msg_ws()
%3 = call i32 (...) @test_mq_msg_stats()
ret i32 0
}
declare i32 @test_mq_msg_ws(...) #1
declare i32 @test_mq_msg_stats(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf9pp8eng.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @test_mq_msg_ws()
%3 = call i32 (...) @test_mq_msg_stats()
ret i32 0
}
declare i32 @test_mq_msg_ws(...) #1
declare i32 @test_mq_msg_stats(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6tz8kr52.c'
source_filename = "/tmp/tmp6tz8kr52.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_execve(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @execve(ptr noundef %7, ptr noundef %8, ptr noundef %9)
ret i32 %10
}
declare i32 @execve(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/tmp6tz8kr52.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_execve(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @execve(ptr noundef %7, ptr noundef %8, ptr noundef %9)
ret i32 %10
}
declare i32 @execve(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/tmp086zg5v9.c'
source_filename = "/tmp/tmp086zg5v9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [144 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/tpenguin/solarisvoip-asterisk/refs/heads/master/plc.c\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"$Revision: 34087 $\00", align 1
@llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @__register_file_version, ptr null }]
; Function Attrs: noinline nounwind sspstrong uwtable
define internal void @__register_file_version() #0 {
%1 = call i32 @ast_register_file_version(ptr noundef @.str, ptr noundef @.str.1)
ret void
}
declare i32 @ast_register_file_version(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/tmp086zg5v9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [144 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/tpenguin/solarisvoip-asterisk/refs/heads/master/plc.c\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"$Revision: 34087 $\00", align 1
@llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @__register_file_version, ptr null }]
; Function Attrs: noinline nounwind sspstrong uwtable
define internal void @__register_file_version() #0 {
%1 = call i32 @ast_register_file_version(ptr noundef @.str, ptr noundef @.str.1)
ret void
}
declare i32 @ast_register_file_version(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/tmpy6wvmr39.c'
source_filename = "/tmp/tmpy6wvmr39.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"please send file! (wait for a while)\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"No file receive.\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"\0AReceive \00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c" bytes data.\0A\00", align 1
@.str.4 = private unnamed_addr constant [24 x i8] c"\0AThe first 16 byte are:\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"\0AThe last 16 bytes are:\00", align 1
@.str.6 = private unnamed_addr constant [40 x i8] c"\0ADo you sure update this program? (Y/n)\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c" >> \00", align 1
@.str.8 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.9 = private unnamed_addr constant [24 x i8] c"You have cancel update.\00", align 1
@.str.10 = private unnamed_addr constant [13 x i8] c"Updating ...\00", align 1
@.str.11 = private unnamed_addr constant [13 x i8] c"Update done!\00", align 1
@.str.12 = private unnamed_addr constant [40 x i8] c"\0ADo you want to show the content? (Y/n)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @update_program() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i8, align 1
store i32 1426063360, ptr %1, align 4
%7 = load i32, ptr %1, align 4
%8 = zext i32 %7 to i64
%9 = inttoptr i64 %8 to ptr
store ptr %9, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
%10 = call i32 @uart_puts(ptr noundef @.str)
br label %11
11: ; preds = %0, %32
%12 = load ptr, ptr %2, align 8
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = call i64 @uart_get_file(ptr noundef %15)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %11
store i32 1, ptr %4, align 4
store i32 0, ptr %3, align 4
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4
br label %28
21: ; preds = %11
%22 = load i32, ptr %4, align 4
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %21
%25 = load i32, ptr %3, align 4
%26 = add i32 %25, 1
store i32 %26, ptr %3, align 4
br label %27
27: ; preds = %24, %21
br label %28
28: ; preds = %27, %18
%29 = load i32, ptr %3, align 4
%30 = icmp eq i32 %29, 16777215
br i1 %30, label %31, label %32
31: ; preds = %28
br label %33
32: ; preds = %28
br label %11
33: ; preds = %31
%34 = load i32, ptr %5, align 4
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call i32 @uart_puts(ptr noundef @.str.1)
br label %92
38: ; preds = %33
%39 = call i32 @uart_printf(ptr noundef @.str.2)
%40 = load i32, ptr %5, align 4
%41 = call i32 @uart_send_int(i32 noundef %40)
%42 = call i32 @uart_printf(ptr noundef @.str.3)
%43 = call i32 @uart_printf(ptr noundef @.str.4)
%44 = load i32, ptr %1, align 4
%45 = load i32, ptr %1, align 4
%46 = add i32 %45, 15
%47 = call i32 @sdram_read(i32 noundef %44, i32 noundef %46)
%48 = call i32 @uart_printf(ptr noundef @.str.5)
%49 = load i32, ptr %1, align 4
%50 = load i32, ptr %5, align 4
%51 = add i32 %49, %50
%52 = sub i32 %51, 1
%53 = sub i32 %52, 15
%54 = load i32, ptr %1, align 4
%55 = load i32, ptr %5, align 4
%56 = add i32 %54, %55
%57 = sub i32 %56, 1
%58 = call i32 @sdram_read(i32 noundef %53, i32 noundef %57)
%59 = call i32 @uart_puts(ptr noundef @.str.6)
%60 = call i32 @uart_printf(ptr noundef @.str.7)
%61 = call signext i8 (...) @uart_getc()
store i8 %61, ptr %6, align 1
%62 = call i32 @uart_puts(ptr noundef @.str.8)
%63 = load i8, ptr %6, align 1
%64 = sext i8 %63 to i32
%65 = icmp ne i32 %64, 89
br i1 %65, label %66, label %72
66: ; preds = %38
%67 = load i8, ptr %6, align 1
%68 = sext i8 %67 to i32
%69 = icmp ne i32 %68, 121
br i1 %69, label %70, label %72
70: ; preds = %66
%71 = call i32 @uart_puts(ptr noundef @.str.9)
br label %92
72: ; preds = %66, %38
%73 = call i32 @uart_puts(ptr noundef @.str.10)
%74 = call i32 @nand_erase_block(i32 noundef 0)
%75 = load i32, ptr %1, align 4
%76 = load i32, ptr %5, align 4
%77 = call i32 @write_to_boot(i32 noundef %75, i32 noundef %76)
%78 = call i32 @uart_puts(ptr noundef @.str.11)
%79 = call i32 @uart_puts(ptr noundef @.str.12)
%80 = call i32 @uart_printf(ptr noundef @.str.7)
%81 = call signext i8 (...) @uart_getc()
store i8 %81, ptr %6, align 1
%82 = load i8, ptr %6, align 1
%83 = sext i8 %82 to i32
%84 = icmp eq i32 %83, 89
br i1 %84, label %89, label %85
85: ; preds = %72
%86 = load i8, ptr %6, align 1
%87 = sext i8 %86 to i32
%88 = icmp eq i32 %87, 121
br i1 %88, label %89, label %91
89: ; preds = %85, %72
%90 = call i32 @nand_read(i32 noundef 0, i32 noundef 20480)
br label %91
91: ; preds = %89, %85
br label %92
92: ; preds = %91, %70, %36
ret void
}
declare i32 @uart_puts(ptr noundef) #1
declare i64 @uart_get_file(ptr noundef) #1
declare i32 @uart_printf(ptr noundef) #1
declare i32 @uart_send_int(i32 noundef) #1
declare i32 @sdram_read(i32 noundef, i32 noundef) #1
declare signext i8 @uart_getc(...) #1
declare i32 @nand_erase_block(i32 noundef) #1
declare i32 @write_to_boot(i32 noundef, i32 noundef) #1
declare i32 @nand_read(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/tmpy6wvmr39.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"please send file! (wait for a while)\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"No file receive.\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"\0AReceive \00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c" bytes data.\0A\00", align 1
@.str.4 = private unnamed_addr constant [24 x i8] c"\0AThe first 16 byte are:\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"\0AThe last 16 bytes are:\00", align 1
@.str.6 = private unnamed_addr constant [40 x i8] c"\0ADo you sure update this program? (Y/n)\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c" >> \00", align 1
@.str.8 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.9 = private unnamed_addr constant [24 x i8] c"You have cancel update.\00", align 1
@.str.10 = private unnamed_addr constant [13 x i8] c"Updating ...\00", align 1
@.str.11 = private unnamed_addr constant [13 x i8] c"Update done!\00", align 1
@.str.12 = private unnamed_addr constant [40 x i8] c"\0ADo you want to show the content? (Y/n)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @update_program() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i8, align 1
store i32 1426063360, ptr %1, align 4
%7 = load i32, ptr %1, align 4
%8 = zext i32 %7 to i64
%9 = inttoptr i64 %8 to ptr
store ptr %9, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
%10 = call i32 @uart_puts(ptr noundef @.str)
br label %11
11: ; preds = %28, %0
%12 = load ptr, ptr %2, align 8
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = call i64 @uart_get_file(ptr noundef %15)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %11
store i32 1, ptr %4, align 4
store i32 0, ptr %3, align 4
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4
br label %28
21: ; preds = %11
%22 = load i32, ptr %4, align 4
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %21
%25 = load i32, ptr %3, align 4
%26 = add i32 %25, 1
store i32 %26, ptr %3, align 4
br label %27
27: ; preds = %24, %21
br label %28
28: ; preds = %27, %18
%29 = load i32, ptr %3, align 4
%30 = icmp eq i32 %29, 16777215
br i1 %30, label %31, label %11
31: ; preds = %28
br label %32
32: ; preds = %31
%33 = load i32, ptr %5, align 4
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %32
%36 = call i32 @uart_puts(ptr noundef @.str.1)
br label %91
37: ; preds = %32
%38 = call i32 @uart_printf(ptr noundef @.str.2)
%39 = load i32, ptr %5, align 4
%40 = call i32 @uart_send_int(i32 noundef %39)
%41 = call i32 @uart_printf(ptr noundef @.str.3)
%42 = call i32 @uart_printf(ptr noundef @.str.4)
%43 = load i32, ptr %1, align 4
%44 = load i32, ptr %1, align 4
%45 = add i32 %44, 15
%46 = call i32 @sdram_read(i32 noundef %43, i32 noundef %45)
%47 = call i32 @uart_printf(ptr noundef @.str.5)
%48 = load i32, ptr %1, align 4
%49 = load i32, ptr %5, align 4
%50 = add i32 %48, %49
%51 = sub i32 %50, 1
%52 = sub i32 %51, 15
%53 = load i32, ptr %1, align 4
%54 = load i32, ptr %5, align 4
%55 = add i32 %53, %54
%56 = sub i32 %55, 1
%57 = call i32 @sdram_read(i32 noundef %52, i32 noundef %56)
%58 = call i32 @uart_puts(ptr noundef @.str.6)
%59 = call i32 @uart_printf(ptr noundef @.str.7)
%60 = call signext i8 (...) @uart_getc()
store i8 %60, ptr %6, align 1
%61 = call i32 @uart_puts(ptr noundef @.str.8)
%62 = load i8, ptr %6, align 1
%63 = sext i8 %62 to i32
%64 = icmp ne i32 %63, 89
br i1 %64, label %65, label %71
65: ; preds = %37
%66 = load i8, ptr %6, align 1
%67 = sext i8 %66 to i32
%68 = icmp ne i32 %67, 121
br i1 %68, label %69, label %71
69: ; preds = %65
%70 = call i32 @uart_puts(ptr noundef @.str.9)
br label %91
71: ; preds = %65, %37
%72 = call i32 @uart_puts(ptr noundef @.str.10)
%73 = call i32 @nand_erase_block(i32 noundef 0)
%74 = load i32, ptr %1, align 4
%75 = load i32, ptr %5, align 4
%76 = call i32 @write_to_boot(i32 noundef %74, i32 noundef %75)
%77 = call i32 @uart_puts(ptr noundef @.str.11)
%78 = call i32 @uart_puts(ptr noundef @.str.12)
%79 = call i32 @uart_printf(ptr noundef @.str.7)
%80 = call signext i8 (...) @uart_getc()
store i8 %80, ptr %6, align 1
%81 = load i8, ptr %6, align 1
%82 = sext i8 %81 to i32
%83 = icmp eq i32 %82, 89
br i1 %83, label %88, label %84
84: ; preds = %71
%85 = load i8, ptr %6, align 1
%86 = sext i8 %85 to i32
%87 = icmp eq i32 %86, 121
br i1 %87, label %88, label %90
88: ; preds = %84, %71
%89 = call i32 @nand_read(i32 noundef 0, i32 noundef 20480)
br label %90
90: ; preds = %88, %84
br label %91
91: ; preds = %90, %69, %35
ret void
}
declare i32 @uart_puts(ptr noundef) #1
declare i64 @uart_get_file(ptr noundef) #1
declare i32 @uart_printf(ptr noundef) #1
declare i32 @uart_send_int(i32 noundef) #1
declare i32 @sdram_read(i32 noundef, i32 noundef) #1
declare signext i8 @uart_getc(...) #1
declare i32 @nand_erase_block(i32 noundef) #1
declare i32 @write_to_boot(i32 noundef, i32 noundef) #1
declare i32 @nand_read(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/tmpygd__dq_.c'
source_filename = "/tmp/tmpygd__dq_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"Usage:\09\09%s Integer1 Integer2\09\09\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"%s + %s = %d\09\09\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp ne i32 %6, 3
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 0
%11 = load ptr, ptr %10, align 8
%12 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str, ptr noundef %11)
br label %30
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 2
%19 = load ptr, ptr %18, align 8
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = call i32 @atoi(ptr noundef %22)
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 2
%26 = load ptr, ptr %25, align 8
%27 = call i32 @atoi(ptr noundef %26)
%28 = add nsw i32 %23, %27
%29 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %16, ptr noundef %19, i32 noundef %28)
br label %30
30: ; preds = %13, %8
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef, ...) #1
declare i32 @atoi(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpygd__dq_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"Usage:\09\09%s Integer1 Integer2\09\09\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"%s + %s = %d\09\09\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp ne i32 %6, 3
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 0
%11 = load ptr, ptr %10, align 8
%12 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str, ptr noundef %11)
br label %30
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 2
%19 = load ptr, ptr %18, align 8
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = call i32 @atoi(ptr noundef %22)
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 2
%26 = load ptr, ptr %25, align 8
%27 = call i32 @atoi(ptr noundef %26)
%28 = add nsw i32 %23, %27
%29 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %16, ptr noundef %19, i32 noundef %28)
br label %30
30: ; preds = %13, %8
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef, ...) #1
declare i32 @atoi(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp76gytqiz.c'
source_filename = "/tmp/tmp76gytqiz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [267 x i8] c"common 1.0\0ACopyright (C) 2011 Toni Romic.\0ALicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.\0AThis is free software: you are free to change and redistribute it.\0AThere is NO WARRANTY, to the extent permitted by law.\0A\0AWritten by Toni Romic.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_version() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp76gytqiz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [267 x i8] c"common 1.0\0ACopyright (C) 2011 Toni Romic.\0ALicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.\0AThis is free software: you are free to change and redistribute it.\0AThere is NO WARRANTY, to the extent permitted by law.\0A\0AWritten by Toni Romic.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_version() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6pgiik3t.c'
source_filename = "/tmp/tmp6pgiik3t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"Error!\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"Number is higher than 256!\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10 x i8], align 1
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%5 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
br label %7
7: ; preds = %82, %0
%8 = load i32, ptr %3, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 %9
%11 = load i8, ptr %10, align 1
%12 = icmp ne i8 %11, 0
br i1 %12, label %13, label %85
13: ; preds = %7
%14 = load i32, ptr %3, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 %15
%17 = load i8, ptr %16, align 1
%18 = call i32 @digitValue(i8 noundef signext %17)
%19 = icmp slt i32 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %13
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %93
22: ; preds = %13
%23 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 0
%24 = call i32 @strlen(ptr noundef %23)
%25 = load i32, ptr %3, align 4
%26 = sub nsw i32 %24, %25
%27 = icmp sgt i32 %26, 2
br i1 %27, label %28, label %44
28: ; preds = %22
%29 = load i32, ptr %3, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 %30
%32 = load i8, ptr %31, align 1
%33 = call i32 @digitValue(i8 noundef signext %32)
%34 = load i32, ptr %3, align 4
%35 = add nsw i32 %34, 2
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 %36
%38 = load i8, ptr %37, align 1
%39 = call i32 @digitValue(i8 noundef signext %38)
%40 = icmp slt i32 %33, %39
br i1 %40, label %41, label %43
41: ; preds = %28
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %93
43: ; preds = %28
br label %44
44: ; preds = %43, %22
%45 = load i32, ptr %3, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 %46
%48 = load i8, ptr %47, align 1
%49 = call i32 @digitValue(i8 noundef signext %48)
%50 = load i32, ptr %3, align 4
%51 = add nsw i32 %50, 1
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 %52
%54 = load i8, ptr %53, align 1
%55 = call i32 @digitValue(i8 noundef signext %54)
%56 = icmp sge i32 %49, %55
br i1 %56, label %57, label %65
57: ; preds = %44
%58 = load i32, ptr %4, align 4
%59 = load i32, ptr %3, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 %60
%62 = load i8, ptr %61, align 1
%63 = call i32 @digitValue(i8 noundef signext %62)
%64 = add nsw i32 %58, %63
store i32 %64, ptr %4, align 4
br label %82
65: ; preds = %44
%66 = load i32, ptr %4, align 4
%67 = load i32, ptr %3, align 4
%68 = add nsw i32 %67, 1
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 %69
%71 = load i8, ptr %70, align 1
%72 = call i32 @digitValue(i8 noundef signext %71)
%73 = load i32, ptr %3, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 %74
%76 = load i8, ptr %75, align 1
%77 = call i32 @digitValue(i8 noundef signext %76)
%78 = sub nsw i32 %72, %77
%79 = add nsw i32 %66, %78
store i32 %79, ptr %4, align 4
%80 = load i32, ptr %3, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %3, align 4
br label %82
82: ; preds = %65, %57
%83 = load i32, ptr %3, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %3, align 4
br label %7, !llvm.loop !6
85: ; preds = %7
%86 = load i32, ptr %4, align 4
%87 = icmp sgt i32 %86, 256
br i1 %87, label %88, label %90
88: ; preds = %85
%89 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 404, ptr %1, align 4
br label %93
90: ; preds = %85
%91 = load i32, ptr %4, align 4
%92 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %91)
store i32 0, ptr %1, align 4
br label %93
93: ; preds = %90, %88, %41, %20
%94 = load i32, ptr %1, align 4
ret i32 %94
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @digitValue(i8 noundef signext) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6pgiik3t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"Error!\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"Number is higher than 256!\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10 x i8], align 1
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%5 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
%7 = load i32, ptr %3, align 4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 %8
%10 = load i8, ptr %9, align 1
%11 = icmp ne i8 %10, 0
br i1 %11, label %.lr.ph, label %89
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %81
%13 = load i32, ptr %3, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 %14
%16 = load i8, ptr %15, align 1
%17 = call i32 @digitValue(i8 noundef signext %16)
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %12
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %97
21: ; preds = %12
%22 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 0
%23 = call i32 @strlen(ptr noundef %22)
%24 = load i32, ptr %3, align 4
%25 = sub nsw i32 %23, %24
%26 = icmp sgt i32 %25, 2
br i1 %26, label %27, label %43
27: ; preds = %21
%28 = load i32, ptr %3, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 %29
%31 = load i8, ptr %30, align 1
%32 = call i32 @digitValue(i8 noundef signext %31)
%33 = load i32, ptr %3, align 4
%34 = add nsw i32 %33, 2
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 %35
%37 = load i8, ptr %36, align 1
%38 = call i32 @digitValue(i8 noundef signext %37)
%39 = icmp slt i32 %32, %38
br i1 %39, label %40, label %42
40: ; preds = %27
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %97
42: ; preds = %27
br label %43
43: ; preds = %42, %21
%44 = load i32, ptr %3, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 %45
%47 = load i8, ptr %46, align 1
%48 = call i32 @digitValue(i8 noundef signext %47)
%49 = load i32, ptr %3, align 4
%50 = add nsw i32 %49, 1
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 %51
%53 = load i8, ptr %52, align 1
%54 = call i32 @digitValue(i8 noundef signext %53)
%55 = icmp sge i32 %48, %54
br i1 %55, label %56, label %64
56: ; preds = %43
%57 = load i32, ptr %4, align 4
%58 = load i32, ptr %3, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 %59
%61 = load i8, ptr %60, align 1
%62 = call i32 @digitValue(i8 noundef signext %61)
%63 = add nsw i32 %57, %62
store i32 %63, ptr %4, align 4
br label %81
64: ; preds = %43
%65 = load i32, ptr %4, align 4
%66 = load i32, ptr %3, align 4
%67 = add nsw i32 %66, 1
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 %68
%70 = load i8, ptr %69, align 1
%71 = call i32 @digitValue(i8 noundef signext %70)
%72 = load i32, ptr %3, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 %73
%75 = load i8, ptr %74, align 1
%76 = call i32 @digitValue(i8 noundef signext %75)
%77 = sub nsw i32 %71, %76
%78 = add nsw i32 %65, %77
store i32 %78, ptr %4, align 4
%79 = load i32, ptr %3, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %3, align 4
br label %81
81: ; preds = %64, %56
%82 = load i32, ptr %3, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %3, align 4
%84 = load i32, ptr %3, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 %85
%87 = load i8, ptr %86, align 1
%88 = icmp ne i8 %87, 0
br i1 %88, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %81
br label %89
89: ; preds = %._crit_edge, %0
%90 = load i32, ptr %4, align 4
%91 = icmp sgt i32 %90, 256
br i1 %91, label %92, label %94
92: ; preds = %89
%93 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 404, ptr %1, align 4
br label %97
94: ; preds = %89
%95 = load i32, ptr %4, align 4
%96 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %95)
store i32 0, ptr %1, align 4
br label %97
97: ; preds = %94, %92, %40, %19
%98 = load i32, ptr %1, align 4
ret i32 %98
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @digitValue(i8 noundef signext) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmphiece6rt.c'
source_filename = "/tmp/tmphiece6rt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\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 [1 x i32], align 4
%7 = alloca [1 x i32], align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = 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
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
br label %19
19: ; preds = %22, %18
%20 = load i32, ptr %8, align 4
%21 = icmp slt i32 %20, 1
br i1 %21, label %22, label %37
22: ; preds = %19
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %23, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = call i64 @strtoul(ptr noundef %28, i32 noundef 0, i32 noundef 10)
%30 = trunc i64 %29 to i32
store i32 %30, ptr %9, align 4
%31 = load i32, ptr %9, align 4
%32 = load i32, ptr %8, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [1 x i32], ptr %6, i64 0, i64 %33
store i32 %31, ptr %34, align 4
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %8, align 4
br label %19, !llvm.loop !6
37: ; preds = %19
%38 = getelementptr inbounds [1 x i32], ptr %6, i64 0, i64 0
%39 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%40 = call i32 @RandomFunc(ptr noundef %38, ptr noundef %39)
%41 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%42 = load i32, ptr %41, align 4
%43 = icmp eq i32 %42, -1100543023
br i1 %43, label %44, label %46
44: ; preds = %37
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %47
46: ; preds = %37
br label %47
47: ; preds = %46, %44
store i32 0, ptr %10, align 4
br label %48
48: ; preds = %51, %47
%49 = load i32, ptr %10, align 4
%50 = icmp slt i32 %49, 1
br i1 %50, label %51, label %59
51: ; preds = %48
%52 = load i32, ptr %10, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 %53
%55 = load i32, ptr %54, align 4
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %55)
%57 = load i32, ptr %10, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %10, align 4
br label %48, !llvm.loop !8
59: ; preds = %48
%60 = load i32, ptr %3, align 4
ret i32 %60
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(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" }
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/tmphiece6rt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\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 [1 x i32], align 4
%7 = alloca [1 x i32], align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = 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
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp slt i32 %19, 1
br i1 %20, label %.lr.ph, label %38
.lr.ph: ; preds = %18
br label %21
21: ; preds = %.lr.ph, %21
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %22, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = call i64 @strtoul(ptr noundef %27, i32 noundef 0, i32 noundef 10)
%29 = trunc i64 %28 to i32
store i32 %29, ptr %9, align 4
%30 = load i32, ptr %9, align 4
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [1 x i32], ptr %6, i64 0, i64 %32
store i32 %30, ptr %33, align 4
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %8, align 4
%36 = load i32, ptr %8, align 4
%37 = icmp slt i32 %36, 1
br i1 %37, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %38
38: ; preds = %._crit_edge, %18
%39 = getelementptr inbounds [1 x i32], ptr %6, i64 0, i64 0
%40 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%41 = call i32 @RandomFunc(ptr noundef %39, ptr noundef %40)
%42 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%43 = load i32, ptr %42, align 4
%44 = icmp eq i32 %43, -1100543023
br i1 %44, label %45, label %47
45: ; preds = %38
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %48
47: ; preds = %38
br label %48
48: ; preds = %47, %45
store i32 0, ptr %10, align 4
%49 = load i32, ptr %10, align 4
%50 = icmp slt i32 %49, 1
br i1 %50, label %.lr.ph2, label %61
.lr.ph2: ; preds = %48
br label %51
51: ; preds = %.lr.ph2, %51
%52 = load i32, ptr %10, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 %53
%55 = load i32, ptr %54, align 4
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %55)
%57 = load i32, ptr %10, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %10, align 4
%59 = load i32, ptr %10, align 4
%60 = icmp slt i32 %59, 1
br i1 %60, label %51, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %51
br label %61
61: ; preds = %._crit_edge3, %48
%62 = load i32, ptr %3, align 4
ret i32 %62
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(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" }
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/tmpsykkuwuh.c'
source_filename = "/tmp/tmpsykkuwuh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalnum.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isalnum should be 0 for *\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalnum_0x2a() #0 {
%1 = call i64 @isalnum(i32 noundef 42)
%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 215, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalnum(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/tmpsykkuwuh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalnum.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isalnum should be 0 for *\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalnum_0x2a() #0 {
%1 = call i64 @isalnum(i32 noundef 42)
%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 215, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalnum(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/tmp5lsao8ws.c'
source_filename = "/tmp/tmp5lsao8ws.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"one is smaller than fortytwo \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5lsao8ws.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"one is smaller than fortytwo \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwazihwfd.c'
source_filename = "/tmp/tmpwazihwfd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [3 x i8] c"*\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"*\0A**\0A\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"*\0A**\0A***\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%4 = load i32, ptr %2, align 4
%5 = icmp eq i32 %4, 1
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @printf(ptr noundef @.str.1)
br label %8
8: ; preds = %6, %0
%9 = load i32, ptr %2, align 4
%10 = icmp eq i32 %9, 2
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = call i32 @printf(ptr noundef @.str.2)
br label %13
13: ; preds = %11, %8
%14 = load i32, ptr %2, align 4
%15 = icmp eq i32 %14, 3
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 @printf(ptr noundef @.str.3)
br label %18
18: ; preds = %16, %13
ret i32 0
}
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/tmpwazihwfd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [3 x i8] c"*\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"*\0A**\0A\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"*\0A**\0A***\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%4 = load i32, ptr %2, align 4
%5 = icmp eq i32 %4, 1
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @printf(ptr noundef @.str.1)
br label %8
8: ; preds = %6, %0
%9 = load i32, ptr %2, align 4
%10 = icmp eq i32 %9, 2
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = call i32 @printf(ptr noundef @.str.2)
br label %13
13: ; preds = %11, %8
%14 = load i32, ptr %2, align 4
%15 = icmp eq i32 %14, 3
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 @printf(ptr noundef @.str.3)
br label %18
18: ; preds = %16, %13
ret i32 0
}
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/tmpwlxnyb1y.c'
source_filename = "/tmp/tmpwlxnyb1y.c"
target datalayout = "e-m:e-p270: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 [41 x i8] c"Usage: %s: <compression-level> <string>\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"Invalid compression level\0A\00", align 1
@Z_OK = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [43 x i8] c"Error calling zlib compress2 function: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"\\x%02hhx\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local 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 [32 x i8], align 16
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = 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
store i64 31, ptr %7, align 8
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 3
br i1 %13, label %14, label %20
14: ; preds = %2
%15 = load i32, ptr @stderr, align 4
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 0
%18 = load ptr, ptr %17, align 8
%19 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %15, ptr noundef @.str, ptr noundef %18)
store i32 1, ptr %3, align 4
br label %75
20: ; preds = %2
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = call i32 @strtol(ptr noundef %23, ptr noundef %11, i32 noundef 10)
store i32 %24, ptr %10, align 4
%25 = load ptr, ptr %11, align 8
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 1
%28 = load ptr, ptr %27, align 8
%29 = icmp eq ptr %25, %28
br i1 %29, label %36, label %30
30: ; preds = %20
%31 = load i32, ptr %10, align 4
%32 = icmp slt i32 %31, 0
br i1 %32, label %36, label %33
33: ; preds = %30
%34 = load i32, ptr %10, align 4
%35 = icmp sgt i32 %34, 9
br i1 %35, label %36, label %39
36: ; preds = %33, %30, %20
%37 = load i32, ptr @stderr, align 4
%38 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %37, ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %75
39: ; preds = %33
%40 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds ptr, ptr %41, i64 2
%43 = load ptr, ptr %42, align 8
%44 = load ptr, ptr %5, align 8
%45 = getelementptr inbounds ptr, ptr %44, i64 2
%46 = load ptr, ptr %45, align 8
%47 = call i32 @strlen(ptr noundef %46)
%48 = load i32, ptr %10, align 4
%49 = call i32 @compress2(ptr noundef %40, ptr noundef %7, ptr noundef %43, i32 noundef %47, i32 noundef %48)
store i32 %49, ptr %8, align 4
%50 = load i32, ptr %8, align 4
%51 = load i32, ptr @Z_OK, align 4
%52 = icmp ne i32 %50, %51
br i1 %52, label %53, label %57
53: ; preds = %39
%54 = load i32, ptr @stderr, align 4
%55 = load i32, ptr %8, align 4
%56 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %54, ptr noundef @.str.2, i32 noundef %55)
store i32 1, ptr %3, align 4
br label %75
57: ; preds = %39
store i32 0, ptr %9, align 4
br label %58
58: ; preds = %70, %57
%59 = load i32, ptr %9, align 4
%60 = sext i32 %59 to i64
%61 = load i64, ptr %7, align 8
%62 = icmp ult i64 %60, %61
br i1 %62, label %63, label %73
63: ; preds = %58
%64 = load i32, ptr %9, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 %65
%67 = load i8, ptr %66, align 1
%68 = zext i8 %67 to i32
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %68)
br label %70
70: ; preds = %63
%71 = load i32, ptr %9, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %9, align 4
br label %58, !llvm.loop !6
73: ; preds = %58
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %3, align 4
br label %75
75: ; preds = %73, %53, %36, %14
%76 = load i32, ptr %3, align 4
ret i32 %76
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @compress2(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwlxnyb1y.c"
target datalayout = "e-m:e-p270: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 [41 x i8] c"Usage: %s: <compression-level> <string>\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"Invalid compression level\0A\00", align 1
@Z_OK = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [43 x i8] c"Error calling zlib compress2 function: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"\\x%02hhx\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local 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 [32 x i8], align 16
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = 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
store i64 31, ptr %7, align 8
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 3
br i1 %13, label %14, label %20
14: ; preds = %2
%15 = load i32, ptr @stderr, align 4
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 0
%18 = load ptr, ptr %17, align 8
%19 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %15, ptr noundef @.str, ptr noundef %18)
store i32 1, ptr %3, align 4
br label %78
20: ; preds = %2
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = call i32 @strtol(ptr noundef %23, ptr noundef %11, i32 noundef 10)
store i32 %24, ptr %10, align 4
%25 = load ptr, ptr %11, align 8
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 1
%28 = load ptr, ptr %27, align 8
%29 = icmp eq ptr %25, %28
br i1 %29, label %36, label %30
30: ; preds = %20
%31 = load i32, ptr %10, align 4
%32 = icmp slt i32 %31, 0
br i1 %32, label %36, label %33
33: ; preds = %30
%34 = load i32, ptr %10, align 4
%35 = icmp sgt i32 %34, 9
br i1 %35, label %36, label %39
36: ; preds = %33, %30, %20
%37 = load i32, ptr @stderr, align 4
%38 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %37, ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %78
39: ; preds = %33
%40 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds ptr, ptr %41, i64 2
%43 = load ptr, ptr %42, align 8
%44 = load ptr, ptr %5, align 8
%45 = getelementptr inbounds ptr, ptr %44, i64 2
%46 = load ptr, ptr %45, align 8
%47 = call i32 @strlen(ptr noundef %46)
%48 = load i32, ptr %10, align 4
%49 = call i32 @compress2(ptr noundef %40, ptr noundef %7, ptr noundef %43, i32 noundef %47, i32 noundef %48)
store i32 %49, ptr %8, align 4
%50 = load i32, ptr %8, align 4
%51 = load i32, ptr @Z_OK, align 4
%52 = icmp ne i32 %50, %51
br i1 %52, label %53, label %57
53: ; preds = %39
%54 = load i32, ptr @stderr, align 4
%55 = load i32, ptr %8, align 4
%56 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %54, ptr noundef @.str.2, i32 noundef %55)
store i32 1, ptr %3, align 4
br label %78
57: ; preds = %39
store i32 0, ptr %9, align 4
%58 = load i32, ptr %9, align 4
%59 = sext i32 %58 to i64
%60 = load i64, ptr %7, align 8
%61 = icmp ult i64 %59, %60
br i1 %61, label %.lr.ph, label %76
.lr.ph: ; preds = %57
br label %62
62: ; preds = %.lr.ph, %69
%63 = load i32, ptr %9, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 %64
%66 = load i8, ptr %65, align 1
%67 = zext i8 %66 to i32
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %67)
br label %69
69: ; preds = %62
%70 = load i32, ptr %9, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %9, align 4
%72 = load i32, ptr %9, align 4
%73 = sext i32 %72 to i64
%74 = load i64, ptr %7, align 8
%75 = icmp ult i64 %73, %74
br i1 %75, label %62, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %69
br label %76
76: ; preds = %._crit_edge, %57
%77 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %3, align 4
br label %78
78: ; preds = %76, %53, %36, %14
%79 = load i32, ptr %3, align 4
ret i32 %79
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @compress2(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(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"}
|
; ModuleID = '/tmp/tmph4nq8_j0.c'
source_filename = "/tmp/tmph4nq8_j0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @swap(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %13, label %10
10: ; preds = %3
%11 = load ptr, ptr %5, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %14
13: ; preds = %10, %3
br label %31
14: ; preds = %10
%15 = load i64, ptr %6, align 8
%16 = call ptr @malloc(i64 noundef %15) #3
store ptr %16, ptr %7, align 8
%17 = load ptr, ptr %7, align 8
%18 = load ptr, ptr %4, align 8
%19 = load i64, ptr %6, align 8
%20 = call i32 @memmove(ptr noundef %17, ptr noundef %18, i64 noundef %19)
%21 = load ptr, ptr %4, align 8
%22 = load ptr, ptr %5, align 8
%23 = load i64, ptr %6, align 8
%24 = call i32 @memmove(ptr noundef %21, ptr noundef %22, i64 noundef %23)
%25 = load ptr, ptr %5, align 8
%26 = load ptr, ptr %7, align 8
%27 = load i64, ptr %6, align 8
%28 = call i32 @memmove(ptr noundef %25, ptr noundef %26, i64 noundef %27)
%29 = load ptr, ptr %7, align 8
%30 = call i32 @free(ptr noundef %29)
br label %31
31: ; preds = %14, %13
ret void
}
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i64 noundef) #2
declare i32 @free(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/tmph4nq8_j0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @swap(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %13, label %10
10: ; preds = %3
%11 = load ptr, ptr %5, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %14
13: ; preds = %10, %3
br label %31
14: ; preds = %10
%15 = load i64, ptr %6, align 8
%16 = call ptr @malloc(i64 noundef %15) #3
store ptr %16, ptr %7, align 8
%17 = load ptr, ptr %7, align 8
%18 = load ptr, ptr %4, align 8
%19 = load i64, ptr %6, align 8
%20 = call i32 @memmove(ptr noundef %17, ptr noundef %18, i64 noundef %19)
%21 = load ptr, ptr %4, align 8
%22 = load ptr, ptr %5, align 8
%23 = load i64, ptr %6, align 8
%24 = call i32 @memmove(ptr noundef %21, ptr noundef %22, i64 noundef %23)
%25 = load ptr, ptr %5, align 8
%26 = load ptr, ptr %7, align 8
%27 = load i64, ptr %6, align 8
%28 = call i32 @memmove(ptr noundef %25, ptr noundef %26, i64 noundef %27)
%29 = load ptr, ptr %7, align 8
%30 = call i32 @free(ptr noundef %29)
br label %31
31: ; preds = %14, %13
ret void
}
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i64 noundef) #2
declare i32 @free(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/tmpt14gjath.c'
source_filename = "/tmp/tmpt14gjath.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dmatrix(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %6, align 4
%14 = sub nsw i32 %12, %13
%15 = add nsw i32 %14, 1
%16 = sext i32 %15 to i64
%17 = mul i64 %16, 8
%18 = call i64 @malloc(i64 noundef %17)
%19 = inttoptr i64 %18 to ptr
store ptr %19, ptr %11, align 8
%20 = load ptr, ptr %11, align 8
%21 = icmp ne ptr %20, null
br i1 %21, label %23, label %22
22: ; preds = %4
store ptr null, ptr %5, align 8
br label %75
23: ; preds = %4
%24 = load i32, ptr %6, align 4
%25 = load ptr, ptr %11, align 8
%26 = sext i32 %24 to i64
%27 = sub i64 0, %26
%28 = getelementptr inbounds ptr, ptr %25, i64 %27
store ptr %28, ptr %11, align 8
%29 = load i32, ptr %6, align 4
store i32 %29, ptr %10, align 4
br label %30
30: ; preds = %70, %23
%31 = load i32, ptr %10, align 4
%32 = load i32, ptr %7, align 4
%33 = icmp sle i32 %31, %32
br i1 %33, label %34, label %73
34: ; preds = %30
%35 = load i32, ptr %9, align 4
%36 = load i32, ptr %8, align 4
%37 = sub nsw i32 %35, %36
%38 = add nsw i32 %37, 1
%39 = sext i32 %38 to i64
%40 = mul i64 %39, 8
%41 = call i64 @malloc(i64 noundef %40)
%42 = inttoptr i64 %41 to ptr
%43 = load ptr, ptr %11, align 8
%44 = load i32, ptr %10, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds ptr, ptr %43, i64 %45
store ptr %42, ptr %46, align 8
%47 = load ptr, ptr %11, align 8
%48 = load i32, ptr %10, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds ptr, ptr %47, i64 %49
%51 = load ptr, ptr %50, align 8
%52 = icmp ne ptr %51, null
br i1 %52, label %60, label %53
53: ; preds = %34
%54 = load ptr, ptr %11, align 8
%55 = load i32, ptr %6, align 4
%56 = load i32, ptr %10, align 4
%57 = sub nsw i32 %56, 1
%58 = load i32, ptr %8, align 4
%59 = call i32 @free_dmatrix(ptr noundef %54, i32 noundef %55, i32 noundef %57, i32 noundef %58)
store ptr null, ptr %5, align 8
br label %75
60: ; preds = %34
%61 = load i32, ptr %8, align 4
%62 = load ptr, ptr %11, align 8
%63 = load i32, ptr %10, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds ptr, ptr %62, i64 %64
%66 = load ptr, ptr %65, align 8
%67 = sext i32 %61 to i64
%68 = sub i64 0, %67
%69 = getelementptr inbounds double, ptr %66, i64 %68
store ptr %69, ptr %65, align 8
br label %70
70: ; preds = %60
%71 = load i32, ptr %10, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %10, align 4
br label %30, !llvm.loop !6
73: ; preds = %30
%74 = load ptr, ptr %11, align 8
store ptr %74, ptr %5, align 8
br label %75
75: ; preds = %73, %53, %22
%76 = load ptr, ptr %5, align 8
ret ptr %76
}
declare i64 @malloc(i64 noundef) #1
declare i32 @free_dmatrix(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt14gjath.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dmatrix(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %6, align 4
%14 = sub nsw i32 %12, %13
%15 = add nsw i32 %14, 1
%16 = sext i32 %15 to i64
%17 = mul i64 %16, 8
%18 = call i64 @malloc(i64 noundef %17)
%19 = inttoptr i64 %18 to ptr
store ptr %19, ptr %11, align 8
%20 = load ptr, ptr %11, align 8
%21 = icmp ne ptr %20, null
br i1 %21, label %23, label %22
22: ; preds = %4
store ptr null, ptr %5, align 8
br label %77
23: ; preds = %4
%24 = load i32, ptr %6, align 4
%25 = load ptr, ptr %11, align 8
%26 = sext i32 %24 to i64
%27 = sub i64 0, %26
%28 = getelementptr inbounds ptr, ptr %25, i64 %27
store ptr %28, ptr %11, align 8
%29 = load i32, ptr %6, align 4
store i32 %29, ptr %10, align 4
%30 = load i32, ptr %10, align 4
%31 = load i32, ptr %7, align 4
%32 = icmp sle i32 %30, %31
br i1 %32, label %.lr.ph, label %75
.lr.ph: ; preds = %23
br label %33
33: ; preds = %.lr.ph, %69
%34 = load i32, ptr %9, align 4
%35 = load i32, ptr %8, align 4
%36 = sub nsw i32 %34, %35
%37 = add nsw i32 %36, 1
%38 = sext i32 %37 to i64
%39 = mul i64 %38, 8
%40 = call i64 @malloc(i64 noundef %39)
%41 = inttoptr i64 %40 to ptr
%42 = load ptr, ptr %11, align 8
%43 = load i32, ptr %10, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds ptr, ptr %42, i64 %44
store ptr %41, ptr %45, align 8
%46 = load ptr, ptr %11, align 8
%47 = load i32, ptr %10, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds ptr, ptr %46, i64 %48
%50 = load ptr, ptr %49, align 8
%51 = icmp ne ptr %50, null
br i1 %51, label %59, label %52
52: ; preds = %33
%53 = load ptr, ptr %11, align 8
%54 = load i32, ptr %6, align 4
%55 = load i32, ptr %10, align 4
%56 = sub nsw i32 %55, 1
%57 = load i32, ptr %8, align 4
%58 = call i32 @free_dmatrix(ptr noundef %53, i32 noundef %54, i32 noundef %56, i32 noundef %57)
store ptr null, ptr %5, align 8
br label %77
59: ; preds = %33
%60 = load i32, ptr %8, align 4
%61 = load ptr, ptr %11, align 8
%62 = load i32, ptr %10, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds ptr, ptr %61, i64 %63
%65 = load ptr, ptr %64, align 8
%66 = sext i32 %60 to i64
%67 = sub i64 0, %66
%68 = getelementptr inbounds double, ptr %65, i64 %67
store ptr %68, ptr %64, align 8
br label %69
69: ; preds = %59
%70 = load i32, ptr %10, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %10, align 4
%72 = load i32, ptr %10, align 4
%73 = load i32, ptr %7, align 4
%74 = icmp sle i32 %72, %73
br i1 %74, label %33, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %69
br label %75
75: ; preds = %._crit_edge, %23
%76 = load ptr, ptr %11, align 8
store ptr %76, ptr %5, align 8
br label %77
77: ; preds = %75, %52, %22
%78 = load ptr, ptr %5, align 8
ret ptr %78
}
declare i64 @malloc(i64 noundef) #1
declare i32 @free_dmatrix(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp3e4yysvi.c'
source_filename = "/tmp/tmp3e4yysvi.c"
target datalayout = "e-m:e-p270: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.cmsghdr = type { i32 }
%struct.ip6_ext = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @inet6_option_alloc(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
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
%15 = load ptr, ptr %6, align 8
%16 = load ptr, ptr %6, align 8
%17 = getelementptr inbounds %struct.cmsghdr, ptr %16, i32 0, i32 0
%18 = load i32, ptr %17, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %15, i64 %19
store ptr %20, ptr %12, align 8
%21 = load ptr, ptr %6, align 8
%22 = call i64 @CMSG_DATA(ptr noundef %21)
%23 = inttoptr i64 %22 to ptr
store ptr %23, ptr %14, align 8
%24 = load i32, ptr %8, align 4
%25 = icmp ne i32 %24, 1
br i1 %25, label %26, label %36
26: ; preds = %4
%27 = load i32, ptr %8, align 4
%28 = icmp ne i32 %27, 2
br i1 %28, label %29, label %36
29: ; preds = %26
%30 = load i32, ptr %8, align 4
%31 = icmp ne i32 %30, 4
br i1 %31, label %32, label %36
32: ; preds = %29
%33 = load i32, ptr %8, align 4
%34 = icmp ne i32 %33, 8
br i1 %34, label %35, label %36
35: ; preds = %32
store ptr null, ptr %5, align 8
br label %140
36: ; preds = %32, %29, %26, %4
%37 = load i32, ptr %9, align 4
%38 = icmp slt i32 %37, 0
br i1 %38, label %42, label %39
39: ; preds = %36
%40 = load i32, ptr %9, align 4
%41 = icmp sgt i32 %40, 7
br i1 %41, label %42, label %43
42: ; preds = %39, %36
store ptr null, ptr %5, align 8
br label %140
43: ; preds = %39
%44 = load ptr, ptr %12, align 8
%45 = load ptr, ptr %14, align 8
%46 = icmp eq ptr %44, %45
br i1 %46, label %47, label %54
47: ; preds = %43
%48 = load ptr, ptr %12, align 8
%49 = getelementptr inbounds i32, ptr %48, i64 2
store ptr %49, ptr %12, align 8
%50 = load ptr, ptr %6, align 8
%51 = getelementptr inbounds %struct.cmsghdr, ptr %50, i32 0, i32 0
%52 = load i32, ptr %51, align 4
%53 = add nsw i32 %52, 2
store i32 %53, ptr %51, align 4
br label %54
54: ; preds = %47, %43
%55 = load ptr, ptr %12, align 8
%56 = load ptr, ptr %14, align 8
%57 = ptrtoint ptr %55 to i64
%58 = ptrtoint ptr %56 to i64
%59 = sub i64 %57, %58
%60 = sdiv exact i64 %59, 4
%61 = trunc i64 %60 to i32
store i32 %61, ptr %11, align 4
%62 = load i32, ptr %11, align 4
%63 = load i32, ptr %8, align 4
%64 = srem i32 %62, %63
%65 = load i32, ptr %8, align 4
%66 = sub nsw i32 %65, 1
%67 = add nsw i32 %64, %66
%68 = load i32, ptr %8, align 4
%69 = sub nsw i32 %68, 1
%70 = xor i32 %69, -1
%71 = and i32 %67, %70
%72 = load i32, ptr %11, align 4
%73 = load i32, ptr %8, align 4
%74 = srem i32 %72, %73
%75 = sub nsw i32 %71, %74
store i32 %75, ptr %10, align 4
%76 = load i32, ptr %9, align 4
%77 = load i32, ptr %10, align 4
%78 = add nsw i32 %77, %76
store i32 %78, ptr %10, align 4
%79 = load i32, ptr %8, align 4
%80 = load i32, ptr %10, align 4
%81 = srem i32 %80, %79
store i32 %81, ptr %10, align 4
%82 = load ptr, ptr %12, align 8
%83 = load i32, ptr %10, align 4
%84 = call i32 @inet6_insert_padopt(ptr noundef %82, i32 noundef %83)
%85 = load i32, ptr %10, align 4
%86 = load ptr, ptr %6, align 8
%87 = getelementptr inbounds %struct.cmsghdr, ptr %86, i32 0, i32 0
%88 = load i32, ptr %87, align 4
%89 = add nsw i32 %88, %85
store i32 %89, ptr %87, align 4
%90 = load i32, ptr %10, align 4
%91 = load ptr, ptr %12, align 8
%92 = sext i32 %90 to i64
%93 = getelementptr inbounds i32, ptr %91, i64 %92
store ptr %93, ptr %12, align 8
%94 = load ptr, ptr %12, align 8
store ptr %94, ptr %13, align 8
%95 = load i32, ptr %7, align 4
%96 = load ptr, ptr %12, align 8
%97 = sext i32 %95 to i64
%98 = getelementptr inbounds i32, ptr %96, i64 %97
store ptr %98, ptr %12, align 8
%99 = load i32, ptr %7, align 4
%100 = load ptr, ptr %6, align 8
%101 = getelementptr inbounds %struct.cmsghdr, ptr %100, i32 0, i32 0
%102 = load i32, ptr %101, align 4
%103 = add nsw i32 %102, %99
store i32 %103, ptr %101, align 4
%104 = load ptr, ptr %12, align 8
%105 = load ptr, ptr %14, align 8
%106 = ptrtoint ptr %104 to i64
%107 = ptrtoint ptr %105 to i64
%108 = sub i64 %106, %107
%109 = sdiv exact i64 %108, 4
%110 = trunc i64 %109 to i32
store i32 %110, ptr %11, align 4
%111 = load i32, ptr %11, align 4
%112 = add nsw i32 %111, 7
%113 = and i32 %112, -8
%114 = load i32, ptr %11, align 4
%115 = sub nsw i32 %113, %114
store i32 %115, ptr %10, align 4
%116 = load ptr, ptr %12, align 8
%117 = load i32, ptr %10, align 4
%118 = call i32 @inet6_insert_padopt(ptr noundef %116, i32 noundef %117)
%119 = load i32, ptr %10, align 4
%120 = load ptr, ptr %12, align 8
%121 = sext i32 %119 to i64
%122 = getelementptr inbounds i32, ptr %120, i64 %121
store ptr %122, ptr %12, align 8
%123 = load i32, ptr %10, align 4
%124 = load ptr, ptr %6, align 8
%125 = getelementptr inbounds %struct.cmsghdr, ptr %124, i32 0, i32 0
%126 = load i32, ptr %125, align 4
%127 = add nsw i32 %126, %123
store i32 %127, ptr %125, align 4
%128 = load ptr, ptr %12, align 8
%129 = load ptr, ptr %14, align 8
%130 = ptrtoint ptr %128 to i64
%131 = ptrtoint ptr %129 to i64
%132 = sub i64 %130, %131
%133 = sdiv exact i64 %132, 4
%134 = ashr i64 %133, 3
%135 = sub nsw i64 %134, 1
%136 = trunc i64 %135 to i32
%137 = load ptr, ptr %14, align 8
%138 = getelementptr inbounds %struct.ip6_ext, ptr %137, i32 0, i32 0
store i32 %136, ptr %138, align 4
%139 = load ptr, ptr %13, align 8
store ptr %139, ptr %5, align 8
br label %140
140: ; preds = %54, %42, %35
%141 = load ptr, ptr %5, align 8
ret ptr %141
}
declare i64 @CMSG_DATA(ptr noundef) #1
declare i32 @inet6_insert_padopt(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/tmp3e4yysvi.c"
target datalayout = "e-m:e-p270: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.cmsghdr = type { i32 }
%struct.ip6_ext = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @inet6_option_alloc(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
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
%15 = load ptr, ptr %6, align 8
%16 = load ptr, ptr %6, align 8
%17 = getelementptr inbounds %struct.cmsghdr, ptr %16, i32 0, i32 0
%18 = load i32, ptr %17, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %15, i64 %19
store ptr %20, ptr %12, align 8
%21 = load ptr, ptr %6, align 8
%22 = call i64 @CMSG_DATA(ptr noundef %21)
%23 = inttoptr i64 %22 to ptr
store ptr %23, ptr %14, align 8
%24 = load i32, ptr %8, align 4
%25 = icmp ne i32 %24, 1
br i1 %25, label %26, label %36
26: ; preds = %4
%27 = load i32, ptr %8, align 4
%28 = icmp ne i32 %27, 2
br i1 %28, label %29, label %36
29: ; preds = %26
%30 = load i32, ptr %8, align 4
%31 = icmp ne i32 %30, 4
br i1 %31, label %32, label %36
32: ; preds = %29
%33 = load i32, ptr %8, align 4
%34 = icmp ne i32 %33, 8
br i1 %34, label %35, label %36
35: ; preds = %32
store ptr null, ptr %5, align 8
br label %140
36: ; preds = %32, %29, %26, %4
%37 = load i32, ptr %9, align 4
%38 = icmp slt i32 %37, 0
br i1 %38, label %42, label %39
39: ; preds = %36
%40 = load i32, ptr %9, align 4
%41 = icmp sgt i32 %40, 7
br i1 %41, label %42, label %43
42: ; preds = %39, %36
store ptr null, ptr %5, align 8
br label %140
43: ; preds = %39
%44 = load ptr, ptr %12, align 8
%45 = load ptr, ptr %14, align 8
%46 = icmp eq ptr %44, %45
br i1 %46, label %47, label %54
47: ; preds = %43
%48 = load ptr, ptr %12, align 8
%49 = getelementptr inbounds i32, ptr %48, i64 2
store ptr %49, ptr %12, align 8
%50 = load ptr, ptr %6, align 8
%51 = getelementptr inbounds %struct.cmsghdr, ptr %50, i32 0, i32 0
%52 = load i32, ptr %51, align 4
%53 = add nsw i32 %52, 2
store i32 %53, ptr %51, align 4
br label %54
54: ; preds = %47, %43
%55 = load ptr, ptr %12, align 8
%56 = load ptr, ptr %14, align 8
%57 = ptrtoint ptr %55 to i64
%58 = ptrtoint ptr %56 to i64
%59 = sub i64 %57, %58
%60 = sdiv exact i64 %59, 4
%61 = trunc i64 %60 to i32
store i32 %61, ptr %11, align 4
%62 = load i32, ptr %11, align 4
%63 = load i32, ptr %8, align 4
%64 = srem i32 %62, %63
%65 = load i32, ptr %8, align 4
%66 = sub nsw i32 %65, 1
%67 = add nsw i32 %64, %66
%68 = load i32, ptr %8, align 4
%69 = sub nsw i32 %68, 1
%70 = xor i32 %69, -1
%71 = and i32 %67, %70
%72 = load i32, ptr %11, align 4
%73 = load i32, ptr %8, align 4
%74 = srem i32 %72, %73
%75 = sub nsw i32 %71, %74
store i32 %75, ptr %10, align 4
%76 = load i32, ptr %9, align 4
%77 = load i32, ptr %10, align 4
%78 = add nsw i32 %77, %76
store i32 %78, ptr %10, align 4
%79 = load i32, ptr %8, align 4
%80 = load i32, ptr %10, align 4
%81 = srem i32 %80, %79
store i32 %81, ptr %10, align 4
%82 = load ptr, ptr %12, align 8
%83 = load i32, ptr %10, align 4
%84 = call i32 @inet6_insert_padopt(ptr noundef %82, i32 noundef %83)
%85 = load i32, ptr %10, align 4
%86 = load ptr, ptr %6, align 8
%87 = getelementptr inbounds %struct.cmsghdr, ptr %86, i32 0, i32 0
%88 = load i32, ptr %87, align 4
%89 = add nsw i32 %88, %85
store i32 %89, ptr %87, align 4
%90 = load i32, ptr %10, align 4
%91 = load ptr, ptr %12, align 8
%92 = sext i32 %90 to i64
%93 = getelementptr inbounds i32, ptr %91, i64 %92
store ptr %93, ptr %12, align 8
%94 = load ptr, ptr %12, align 8
store ptr %94, ptr %13, align 8
%95 = load i32, ptr %7, align 4
%96 = load ptr, ptr %12, align 8
%97 = sext i32 %95 to i64
%98 = getelementptr inbounds i32, ptr %96, i64 %97
store ptr %98, ptr %12, align 8
%99 = load i32, ptr %7, align 4
%100 = load ptr, ptr %6, align 8
%101 = getelementptr inbounds %struct.cmsghdr, ptr %100, i32 0, i32 0
%102 = load i32, ptr %101, align 4
%103 = add nsw i32 %102, %99
store i32 %103, ptr %101, align 4
%104 = load ptr, ptr %12, align 8
%105 = load ptr, ptr %14, align 8
%106 = ptrtoint ptr %104 to i64
%107 = ptrtoint ptr %105 to i64
%108 = sub i64 %106, %107
%109 = sdiv exact i64 %108, 4
%110 = trunc i64 %109 to i32
store i32 %110, ptr %11, align 4
%111 = load i32, ptr %11, align 4
%112 = add nsw i32 %111, 7
%113 = and i32 %112, -8
%114 = load i32, ptr %11, align 4
%115 = sub nsw i32 %113, %114
store i32 %115, ptr %10, align 4
%116 = load ptr, ptr %12, align 8
%117 = load i32, ptr %10, align 4
%118 = call i32 @inet6_insert_padopt(ptr noundef %116, i32 noundef %117)
%119 = load i32, ptr %10, align 4
%120 = load ptr, ptr %12, align 8
%121 = sext i32 %119 to i64
%122 = getelementptr inbounds i32, ptr %120, i64 %121
store ptr %122, ptr %12, align 8
%123 = load i32, ptr %10, align 4
%124 = load ptr, ptr %6, align 8
%125 = getelementptr inbounds %struct.cmsghdr, ptr %124, i32 0, i32 0
%126 = load i32, ptr %125, align 4
%127 = add nsw i32 %126, %123
store i32 %127, ptr %125, align 4
%128 = load ptr, ptr %12, align 8
%129 = load ptr, ptr %14, align 8
%130 = ptrtoint ptr %128 to i64
%131 = ptrtoint ptr %129 to i64
%132 = sub i64 %130, %131
%133 = sdiv exact i64 %132, 4
%134 = ashr i64 %133, 3
%135 = sub nsw i64 %134, 1
%136 = trunc i64 %135 to i32
%137 = load ptr, ptr %14, align 8
%138 = getelementptr inbounds %struct.ip6_ext, ptr %137, i32 0, i32 0
store i32 %136, ptr %138, align 4
%139 = load ptr, ptr %13, align 8
store ptr %139, ptr %5, align 8
br label %140
140: ; preds = %54, %42, %35
%141 = load ptr, ptr %5, align 8
ret ptr %141
}
declare i64 @CMSG_DATA(ptr noundef) #1
declare i32 @inet6_insert_padopt(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/tmpp5upqiny.c'
source_filename = "/tmp/tmpp5upqiny.c"
target datalayout = "e-m:e-p270: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/tmpp5upqiny.c"
target datalayout = "e-m:e-p270: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/tmplrtusl23.c'
source_filename = "/tmp/tmplrtusl23.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @convolve_5x5(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store i64 %3, ptr %10, align 8
store i64 %4, ptr %11, align 8
store i64 %5, ptr %12, align 8
%13 = load ptr, ptr %7, align 8
%14 = load ptr, ptr %8, align 8
%15 = load ptr, ptr %9, align 8
%16 = load i64, ptr %10, align 8
%17 = load i64, ptr %11, align 8
%18 = load i64, ptr %11, align 8
%19 = load i64, ptr %12, align 8
%20 = call i32 @convolve_5x5_sse(ptr noundef %13, ptr noundef %14, ptr noundef %15, i64 noundef %16, i64 noundef %17, i64 noundef %18, i64 noundef %19)
ret void
}
declare i32 @convolve_5x5_sse(ptr noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmplrtusl23.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @convolve_5x5(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store i64 %3, ptr %10, align 8
store i64 %4, ptr %11, align 8
store i64 %5, ptr %12, align 8
%13 = load ptr, ptr %7, align 8
%14 = load ptr, ptr %8, align 8
%15 = load ptr, ptr %9, align 8
%16 = load i64, ptr %10, align 8
%17 = load i64, ptr %11, align 8
%18 = load i64, ptr %11, align 8
%19 = load i64, ptr %12, align 8
%20 = call i32 @convolve_5x5_sse(ptr noundef %13, ptr noundef %14, ptr noundef %15, i64 noundef %16, i64 noundef %17, i64 noundef %18, i64 noundef %19)
ret void
}
declare i32 @convolve_5x5_sse(ptr noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpr7yaesau.c'
source_filename = "/tmp/tmpr7yaesau.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_SUCCESS = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr7yaesau.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_SUCCESS = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6wop4efw.c'
source_filename = "/tmp/tmp6wop4efw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isFourFlush(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 [4 x i32], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 16, i1 false)
store i32 0, ptr %6, align 4
br label %8
8: ; preds = %22, %2
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %9, 5
br i1 %10, label %11, label %25
11: ; preds = %8
%12 = load ptr, ptr %4, align 8
%13 = load ptr, ptr %5, align 8
%14 = load i32, ptr %6, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32, ptr %13, i64 %15
%17 = load i32, ptr %16, align 4
%18 = call i64 @getCardSuit(ptr noundef %12, i32 noundef %17)
%19 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 %18
%20 = load i32, ptr %19, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %19, align 4
br label %22
22: ; preds = %11
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %6, align 4
br label %8, !llvm.loop !6
25: ; preds = %8
store i32 0, ptr %6, align 4
br label %26
26: ; preds = %38, %25
%27 = load i32, ptr %6, align 4
%28 = icmp slt i32 %27, 4
br i1 %28, label %29, label %41
29: ; preds = %26
%30 = load i32, ptr %6, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 %31
%33 = load i32, ptr %32, align 4
%34 = icmp eq i32 %33, 4
br i1 %34, label %35, label %37
35: ; preds = %29
%36 = load i32, ptr %6, align 4
store i32 %36, ptr %3, align 4
br label %42
37: ; preds = %29
br label %38
38: ; preds = %37
%39 = load i32, ptr %6, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %6, align 4
br label %26, !llvm.loop !8
41: ; preds = %26
store i32 -1, ptr %3, align 4
br label %42
42: ; preds = %41, %35
%43 = load i32, ptr %3, align 4
ret i32 %43
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i64 @getCardSuit(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6wop4efw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isFourFlush(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 [4 x i32], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 16, i1 false)
store i32 0, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = icmp slt i32 %8, 5
br i1 %9, label %.lr.ph, label %26
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %21
%11 = load ptr, ptr %4, align 8
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr %6, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i32, ptr %12, i64 %14
%16 = load i32, ptr %15, align 4
%17 = call i64 @getCardSuit(ptr noundef %11, i32 noundef %16)
%18 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 %17
%19 = load i32, ptr %18, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %18, align 4
br label %21
21: ; preds = %10
%22 = load i32, ptr %6, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %6, align 4
%25 = icmp slt i32 %24, 5
br i1 %25, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %26
26: ; preds = %._crit_edge, %2
store i32 0, ptr %6, align 4
%27 = load i32, ptr %6, align 4
%28 = icmp slt i32 %27, 4
br i1 %28, label %.lr.ph2, label %43
.lr.ph2: ; preds = %26
br label %29
29: ; preds = %.lr.ph2, %38
%30 = load i32, ptr %6, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 %31
%33 = load i32, ptr %32, align 4
%34 = icmp eq i32 %33, 4
br i1 %34, label %35, label %37
35: ; preds = %29
%36 = load i32, ptr %6, align 4
store i32 %36, ptr %3, align 4
br label %44
37: ; preds = %29
br label %38
38: ; preds = %37
%39 = load i32, ptr %6, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %6, align 4
%41 = load i32, ptr %6, align 4
%42 = icmp slt i32 %41, 4
br i1 %42, label %29, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %38
br label %43
43: ; preds = %._crit_edge3, %26
store i32 -1, ptr %3, align 4
br label %44
44: ; preds = %43, %35
%45 = load i32, ptr %3, align 4
ret i32 %45
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i64 @getCardSuit(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpvco19nov.c'
source_filename = "/tmp/tmpvco19nov.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Enter a integer:\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"%d is divisible by %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"%d is a prime\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
store i32 2, ptr %2, align 4
br label %6
6: ; preds = %17, %0
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %20
10: ; preds = %6
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %2, align 4
%13 = srem i32 %11, %12
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %10
br label %20
16: ; preds = %10
br label %17
17: ; preds = %16
%18 = load i32, ptr %2, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %2, align 4
br label %6, !llvm.loop !6
20: ; preds = %15, %6
%21 = load i32, ptr %2, align 4
%22 = load i32, ptr %2, align 4
%23 = mul nsw i32 %21, %22
%24 = load i32, ptr %3, align 4
%25 = icmp sle i32 %23, %24
br i1 %25, label %26, label %30
26: ; preds = %20
%27 = load i32, ptr %3, align 4
%28 = load i32, ptr %2, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %27, i32 noundef %28)
br label %33
30: ; preds = %20
%31 = load i32, ptr %3, align 4
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %31)
br label %33
33: ; preds = %30, %26
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/tmpvco19nov.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Enter a integer:\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"%d is divisible by %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"%d is a prime\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
store i32 2, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %16
%10 = load i32, ptr %3, align 4
%11 = load i32, ptr %2, align 4
%12 = srem i32 %10, %11
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %9
br label %22
15: ; preds = %9
br label %16
16: ; preds = %15
%17 = load i32, ptr %2, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %2, align 4
%19 = load i32, ptr %2, align 4
%20 = load i32, ptr %3, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %9, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %16
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %0
br label %22
22: ; preds = %.loopexit, %14
%23 = load i32, ptr %2, align 4
%24 = load i32, ptr %2, align 4
%25 = mul nsw i32 %23, %24
%26 = load i32, ptr %3, align 4
%27 = icmp sle i32 %25, %26
br i1 %27, label %28, label %32
28: ; preds = %22
%29 = load i32, ptr %3, align 4
%30 = load i32, ptr %2, align 4
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %29, i32 noundef %30)
br label %35
32: ; preds = %22
%33 = load i32, ptr %3, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %33)
br label %35
35: ; preds = %32, %28
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/tmp07xardn2.c'
source_filename = "/tmp/tmp07xardn2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pushcomplex8array(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 = mul nsw i32 %6, 8
%8 = call i32 @pushNarray(ptr noundef %5, i32 noundef %7)
ret void
}
declare i32 @pushNarray(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/tmp07xardn2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pushcomplex8array(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 = mul nsw i32 %6, 8
%8 = call i32 @pushNarray(ptr noundef %5, i32 noundef %7)
ret void
}
declare i32 @pushNarray(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/tmpjx6b2hq2.c'
source_filename = "/tmp/tmpjx6b2hq2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @update_filesize(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, 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/tmpjx6b2hq2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @update_filesize(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, 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/tmphwy4azfj.c'
source_filename = "/tmp/tmphwy4azfj.c"
target datalayout = "e-m:e-p270: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/tmphwy4azfj.c"
target datalayout = "e-m:e-p270: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/tmpisgaga47.c'
source_filename = "/tmp/tmpisgaga47.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ft_strrchr(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%6 = load ptr, ptr %4, align 8
%7 = load i8, ptr %6, align 1
%8 = icmp ne i8 %7, 0
br i1 %8, label %15, label %9
9: ; preds = %2
%10 = load i32, ptr %5, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = load ptr, ptr %4, align 8
store ptr %13, ptr %3, align 8
br label %36
14: ; preds = %9
br label %27
15: ; preds = %2
%16 = load ptr, ptr %4, align 8
%17 = getelementptr inbounds i8, ptr %16, i64 1
%18 = load i32, ptr %5, align 4
%19 = call ptr @ft_strrchr(ptr noundef %17, i32 noundef %18)
%20 = icmp ne ptr %19, null
br i1 %20, label %21, label %26
21: ; preds = %15
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds i8, ptr %22, i64 1
%24 = load i32, ptr %5, align 4
%25 = call ptr @ft_strrchr(ptr noundef %23, i32 noundef %24)
store ptr %25, ptr %3, align 8
br label %36
26: ; preds = %15
br label %27
27: ; preds = %26, %14
%28 = load ptr, ptr %4, align 8
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = load i32, ptr %5, align 4
%32 = icmp eq i32 %30, %31
br i1 %32, label %33, label %35
33: ; preds = %27
%34 = load ptr, ptr %4, align 8
store ptr %34, ptr %3, align 8
br label %36
35: ; preds = %27
store ptr null, ptr %3, align 8
br label %36
36: ; preds = %35, %33, %21, %12
%37 = load ptr, ptr %3, align 8
ret ptr %37
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpisgaga47.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ft_strrchr(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%6 = load ptr, ptr %4, align 8
%7 = load i8, ptr %6, align 1
%8 = icmp ne i8 %7, 0
br i1 %8, label %15, label %9
9: ; preds = %2
%10 = load i32, ptr %5, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = load ptr, ptr %4, align 8
store ptr %13, ptr %3, align 8
br label %36
14: ; preds = %9
br label %27
15: ; preds = %2
%16 = load ptr, ptr %4, align 8
%17 = getelementptr inbounds i8, ptr %16, i64 1
%18 = load i32, ptr %5, align 4
%19 = call ptr @ft_strrchr(ptr noundef %17, i32 noundef %18)
%20 = icmp ne ptr %19, null
br i1 %20, label %21, label %26
21: ; preds = %15
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds i8, ptr %22, i64 1
%24 = load i32, ptr %5, align 4
%25 = call ptr @ft_strrchr(ptr noundef %23, i32 noundef %24)
store ptr %25, ptr %3, align 8
br label %36
26: ; preds = %15
br label %27
27: ; preds = %26, %14
%28 = load ptr, ptr %4, align 8
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = load i32, ptr %5, align 4
%32 = icmp eq i32 %30, %31
br i1 %32, label %33, label %35
33: ; preds = %27
%34 = load ptr, ptr %4, align 8
store ptr %34, ptr %3, align 8
br label %36
35: ; preds = %27
store ptr null, ptr %3, align 8
br label %36
36: ; preds = %35, %33, %21, %12
%37 = load ptr, ptr %3, align 8
ret ptr %37
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkqwu_aqy.c'
source_filename = "/tmp/tmpkqwu_aqy.c"
target datalayout = "e-m:e-p270: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/tmpkqwu_aqy.c"
target datalayout = "e-m:e-p270: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/tmpa47683h6.c'
source_filename = "/tmp/tmpa47683h6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @shift(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%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 %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
store i32 0, ptr %9, align 4
br label %10
10: ; preds = %28, %4
%11 = load i32, ptr %9, align 4
%12 = icmp ult i32 %11, 8
br i1 %12, label %13, label %31
13: ; preds = %10
%14 = load i32, ptr %5, align 4
%15 = call i32 @off(i32 noundef %14)
%16 = load i32, ptr %8, align 4
%17 = load i32, ptr %9, align 4
%18 = sub i32 7, %17
%19 = shl i32 1, %18
%20 = and i32 %16, %19
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %13
%23 = load i32, ptr %5, align 4
%24 = call i32 @on(i32 noundef %23)
br label %25
25: ; preds = %22, %13
%26 = load i32, ptr %6, align 4
%27 = call i32 @pulse(i32 noundef %26)
br label %28
28: ; preds = %25
%29 = load i32, ptr %9, align 4
%30 = add i32 %29, 1
store i32 %30, ptr %9, align 4
br label %10, !llvm.loop !6
31: ; preds = %10
%32 = load i32, ptr %7, align 4
%33 = call i32 @pulse(i32 noundef %32)
ret void
}
declare i32 @off(i32 noundef) #1
declare i32 @on(i32 noundef) #1
declare i32 @pulse(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/tmpa47683h6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @shift(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%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 %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
store i32 0, ptr %9, align 4
%10 = load i32, ptr %9, align 4
%11 = icmp ult i32 %10, 8
br i1 %11, label %.lr.ph, label %32
.lr.ph: ; preds = %4
br label %12
12: ; preds = %.lr.ph, %27
%13 = load i32, ptr %5, align 4
%14 = call i32 @off(i32 noundef %13)
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %9, align 4
%17 = sub i32 7, %16
%18 = shl i32 1, %17
%19 = and i32 %15, %18
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %12
%22 = load i32, ptr %5, align 4
%23 = call i32 @on(i32 noundef %22)
br label %24
24: ; preds = %21, %12
%25 = load i32, ptr %6, align 4
%26 = call i32 @pulse(i32 noundef %25)
br label %27
27: ; preds = %24
%28 = load i32, ptr %9, align 4
%29 = add i32 %28, 1
store i32 %29, ptr %9, align 4
%30 = load i32, ptr %9, align 4
%31 = icmp ult i32 %30, 8
br i1 %31, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %32
32: ; preds = %._crit_edge, %4
%33 = load i32, ptr %7, align 4
%34 = call i32 @pulse(i32 noundef %33)
ret void
}
declare i32 @off(i32 noundef) #1
declare i32 @on(i32 noundef) #1
declare i32 @pulse(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/tmph793qlg0.c'
source_filename = "/tmp/tmph793qlg0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Item midStack_popped is %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"Middle Element is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%3 = call ptr (...) @midStack_create()
store ptr %3, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @midStack_push(ptr noundef %4, i32 noundef 11)
%6 = load ptr, ptr %2, align 8
%7 = call i32 @midStack_push(ptr noundef %6, i32 noundef 22)
%8 = load ptr, ptr %2, align 8
%9 = call i32 @midStack_push(ptr noundef %8, i32 noundef 33)
%10 = load ptr, ptr %2, align 8
%11 = call i32 @midStack_push(ptr noundef %10, i32 noundef 44)
%12 = load ptr, ptr %2, align 8
%13 = call i32 @midStack_push(ptr noundef %12, i32 noundef 55)
%14 = load ptr, ptr %2, align 8
%15 = call i32 @midStack_push(ptr noundef %14, i32 noundef 66)
%16 = load ptr, ptr %2, align 8
%17 = call i32 @midStack_push(ptr noundef %16, i32 noundef 77)
%18 = load ptr, ptr %2, align 8
%19 = call i32 @midStack_pop(ptr noundef %18)
%20 = call i32 @printf(ptr noundef @.str, i32 noundef %19)
%21 = load ptr, ptr %2, align 8
%22 = call i32 @midStack_pop(ptr noundef %21)
%23 = call i32 @printf(ptr noundef @.str, i32 noundef %22)
%24 = load ptr, ptr %2, align 8
%25 = call i32 @findMiddle(ptr noundef %24)
%26 = call i32 @printf(ptr noundef @.str.1, i32 noundef %25)
ret i32 0
}
declare ptr @midStack_create(...) #1
declare i32 @midStack_push(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @midStack_pop(ptr noundef) #1
declare i32 @findMiddle(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmph793qlg0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Item midStack_popped is %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"Middle Element is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%3 = call ptr (...) @midStack_create()
store ptr %3, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @midStack_push(ptr noundef %4, i32 noundef 11)
%6 = load ptr, ptr %2, align 8
%7 = call i32 @midStack_push(ptr noundef %6, i32 noundef 22)
%8 = load ptr, ptr %2, align 8
%9 = call i32 @midStack_push(ptr noundef %8, i32 noundef 33)
%10 = load ptr, ptr %2, align 8
%11 = call i32 @midStack_push(ptr noundef %10, i32 noundef 44)
%12 = load ptr, ptr %2, align 8
%13 = call i32 @midStack_push(ptr noundef %12, i32 noundef 55)
%14 = load ptr, ptr %2, align 8
%15 = call i32 @midStack_push(ptr noundef %14, i32 noundef 66)
%16 = load ptr, ptr %2, align 8
%17 = call i32 @midStack_push(ptr noundef %16, i32 noundef 77)
%18 = load ptr, ptr %2, align 8
%19 = call i32 @midStack_pop(ptr noundef %18)
%20 = call i32 @printf(ptr noundef @.str, i32 noundef %19)
%21 = load ptr, ptr %2, align 8
%22 = call i32 @midStack_pop(ptr noundef %21)
%23 = call i32 @printf(ptr noundef @.str, i32 noundef %22)
%24 = load ptr, ptr %2, align 8
%25 = call i32 @findMiddle(ptr noundef %24)
%26 = call i32 @printf(ptr noundef @.str.1, i32 noundef %25)
ret i32 0
}
declare ptr @midStack_create(...) #1
declare i32 @midStack_push(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @midStack_pop(ptr noundef) #1
declare i32 @findMiddle(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp79ivz8td.c'
source_filename = "/tmp/tmp79ivz8td.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fexists(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %4, align 4
%5 = load ptr, ptr %2, align 8
%6 = call ptr @fopen(ptr noundef %5, ptr noundef @.str)
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %12
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = call i32 @fclose(ptr noundef %10)
store i32 1, ptr %4, align 4
br label %12
12: ; preds = %9, %1
%13 = load i32, ptr %4, align 4
ret i32 %13
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp79ivz8td.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fexists(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %4, align 4
%5 = load ptr, ptr %2, align 8
%6 = call ptr @fopen(ptr noundef %5, ptr noundef @.str)
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %12
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = call i32 @fclose(ptr noundef %10)
store i32 1, ptr %4, align 4
br label %12
12: ; preds = %9, %1
%13 = load i32, ptr %4, align 4
ret i32 %13
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbpncmmc7.c'
source_filename = "/tmp/tmpbpncmmc7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @filter_quadratic(i64 noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
store i64 %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%13 = load i64, ptr %6, align 8
%14 = load i64, ptr %5, align 8
%15 = sub nsw i64 %13, %14
store i64 %15, ptr %9, align 8
%16 = load ptr, ptr %8, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %43
18: ; preds = %4
%19 = load i64, ptr %9, align 8
%20 = icmp slt i64 %19, 0
br i1 %20, label %21, label %25
21: ; preds = %18
%22 = load ptr, ptr %8, align 8
%23 = load i64, ptr %22, align 8
%24 = icmp slt i64 %23, 0
br i1 %24, label %32, label %25
25: ; preds = %21, %18
%26 = load i64, ptr %9, align 8
%27 = icmp sgt i64 %26, 0
br i1 %27, label %28, label %37
28: ; preds = %25
%29 = load ptr, ptr %8, align 8
%30 = load i64, ptr %29, align 8
%31 = icmp sgt i64 %30, 0
br i1 %31, label %32, label %37
32: ; preds = %28, %21
%33 = load i64, ptr %9, align 8
%34 = load ptr, ptr %8, align 8
%35 = load i64, ptr %34, align 8
%36 = add nsw i64 %35, %33
store i64 %36, ptr %34, align 8
br label %40
37: ; preds = %28, %25
%38 = load i64, ptr %9, align 8
%39 = load ptr, ptr %8, align 8
store i64 %38, ptr %39, align 8
br label %40
40: ; preds = %37, %32
%41 = load ptr, ptr %8, align 8
%42 = load i64, ptr %41, align 8
store i64 %42, ptr %10, align 8
br label %45
43: ; preds = %4
%44 = load i64, ptr %9, align 8
store i64 %44, ptr %10, align 8
br label %45
45: ; preds = %43, %40
%46 = load i64, ptr %10, align 8
%47 = call i64 @abs(i64 noundef %46)
store i64 %47, ptr %10, align 8
%48 = load i64, ptr %10, align 8
%49 = load i64, ptr %7, align 8
%50 = icmp slt i64 %48, %49
br i1 %50, label %51, label %60
51: ; preds = %45
%52 = load i64, ptr %10, align 8
%53 = load i64, ptr %10, align 8
%54 = mul nsw i64 %52, %53
%55 = shl i64 %54, 11
%56 = load i64, ptr %7, align 8
%57 = load i64, ptr %7, align 8
%58 = mul nsw i64 %56, %57
%59 = sdiv i64 %55, %58
store i64 %59, ptr %11, align 8
br label %79
60: ; preds = %45
%61 = load i64, ptr %10, align 8
%62 = load i64, ptr %7, align 8
%63 = mul nsw i64 %62, 2
%64 = icmp slt i64 %61, %63
br i1 %64, label %65, label %77
65: ; preds = %60
%66 = load i64, ptr %10, align 8
%67 = shl i64 %66, 11
%68 = load i64, ptr %7, align 8
%69 = sdiv i64 %67, %68
%70 = sub nsw i64 %69, 4096
store i64 %70, ptr %12, align 8
%71 = load i64, ptr %12, align 8
%72 = load i64, ptr %12, align 8
%73 = mul nsw i64 %71, %72
%74 = ashr i64 %73, 11
%75 = sub nsw i64 0, %74
%76 = add nsw i64 %75, 4096
store i64 %76, ptr %11, align 8
br label %78
77: ; preds = %60
store i64 4096, ptr %11, align 8
br label %78
78: ; preds = %77, %65
br label %79
79: ; preds = %78, %51
%80 = load i64, ptr %5, align 8
%81 = load i64, ptr %11, align 8
%82 = sub nsw i64 4096, %81
%83 = mul nsw i64 %80, %82
%84 = load i64, ptr %11, align 8
%85 = load i64, ptr %6, align 8
%86 = mul nsw i64 %84, %85
%87 = add nsw i64 %83, %86
%88 = ashr i64 %87, 12
ret i64 %88
}
declare i64 @abs(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/tmpbpncmmc7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @filter_quadratic(i64 noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
store i64 %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%13 = load i64, ptr %6, align 8
%14 = load i64, ptr %5, align 8
%15 = sub nsw i64 %13, %14
store i64 %15, ptr %9, align 8
%16 = load ptr, ptr %8, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %43
18: ; preds = %4
%19 = load i64, ptr %9, align 8
%20 = icmp slt i64 %19, 0
br i1 %20, label %21, label %25
21: ; preds = %18
%22 = load ptr, ptr %8, align 8
%23 = load i64, ptr %22, align 8
%24 = icmp slt i64 %23, 0
br i1 %24, label %32, label %25
25: ; preds = %21, %18
%26 = load i64, ptr %9, align 8
%27 = icmp sgt i64 %26, 0
br i1 %27, label %28, label %37
28: ; preds = %25
%29 = load ptr, ptr %8, align 8
%30 = load i64, ptr %29, align 8
%31 = icmp sgt i64 %30, 0
br i1 %31, label %32, label %37
32: ; preds = %28, %21
%33 = load i64, ptr %9, align 8
%34 = load ptr, ptr %8, align 8
%35 = load i64, ptr %34, align 8
%36 = add nsw i64 %35, %33
store i64 %36, ptr %34, align 8
br label %40
37: ; preds = %28, %25
%38 = load i64, ptr %9, align 8
%39 = load ptr, ptr %8, align 8
store i64 %38, ptr %39, align 8
br label %40
40: ; preds = %37, %32
%41 = load ptr, ptr %8, align 8
%42 = load i64, ptr %41, align 8
store i64 %42, ptr %10, align 8
br label %45
43: ; preds = %4
%44 = load i64, ptr %9, align 8
store i64 %44, ptr %10, align 8
br label %45
45: ; preds = %43, %40
%46 = load i64, ptr %10, align 8
%47 = call i64 @abs(i64 noundef %46)
store i64 %47, ptr %10, align 8
%48 = load i64, ptr %10, align 8
%49 = load i64, ptr %7, align 8
%50 = icmp slt i64 %48, %49
br i1 %50, label %51, label %60
51: ; preds = %45
%52 = load i64, ptr %10, align 8
%53 = load i64, ptr %10, align 8
%54 = mul nsw i64 %52, %53
%55 = shl i64 %54, 11
%56 = load i64, ptr %7, align 8
%57 = load i64, ptr %7, align 8
%58 = mul nsw i64 %56, %57
%59 = sdiv i64 %55, %58
store i64 %59, ptr %11, align 8
br label %79
60: ; preds = %45
%61 = load i64, ptr %10, align 8
%62 = load i64, ptr %7, align 8
%63 = mul nsw i64 %62, 2
%64 = icmp slt i64 %61, %63
br i1 %64, label %65, label %77
65: ; preds = %60
%66 = load i64, ptr %10, align 8
%67 = shl i64 %66, 11
%68 = load i64, ptr %7, align 8
%69 = sdiv i64 %67, %68
%70 = sub nsw i64 %69, 4096
store i64 %70, ptr %12, align 8
%71 = load i64, ptr %12, align 8
%72 = load i64, ptr %12, align 8
%73 = mul nsw i64 %71, %72
%74 = ashr i64 %73, 11
%75 = sub nsw i64 0, %74
%76 = add nsw i64 %75, 4096
store i64 %76, ptr %11, align 8
br label %78
77: ; preds = %60
store i64 4096, ptr %11, align 8
br label %78
78: ; preds = %77, %65
br label %79
79: ; preds = %78, %51
%80 = load i64, ptr %5, align 8
%81 = load i64, ptr %11, align 8
%82 = sub nsw i64 4096, %81
%83 = mul nsw i64 %80, %82
%84 = load i64, ptr %11, align 8
%85 = load i64, ptr %6, align 8
%86 = mul nsw i64 %84, %85
%87 = add nsw i64 %83, %86
%88 = ashr i64 %87, 12
ret i64 %88
}
declare i64 @abs(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/tmpid4ta_o7.c'
source_filename = "/tmp/tmpid4ta_o7.c"
target datalayout = "e-m:e-p270: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 { ptr }
@EXIT_SUCCESS = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"%s: sigprocmask error\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@SIGUSR1 = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [28 x i8] c"%s: SIGUSR not in procmask\0A\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"%s: sigaction error\0A\00", align 1
@SIG_DFL = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [31 x i8] c"%s: SIGUSR1 action != SIG_DFL\0A\00", align 1
@.str.4 = private unnamed_addr constant [48 x i8] c"%s: waiting for command from parent on pipe %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [32 x i8] c"%s: got command %c from parent\0A\00", align 1
@.str.6 = private unnamed_addr constant [29 x i8] c"%s: %d is no pipe, errno %d\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
%8 = alloca i32, align 4
%9 = alloca %struct.sigaction, align 8
%10 = alloca i32, align 4
%11 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %12, ptr %7, align 4
%13 = call i32 @sigemptyset(ptr noundef %8)
%14 = call i64 @sigprocmask(i32 noundef 0, ptr noundef null, ptr noundef %8)
%15 = icmp slt i64 %14, 0
br i1 %15, label %16, label %21
16: ; preds = %2
%17 = load i32, ptr @stderr, align 4
%18 = call ptr (...) @getprogname()
%19 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str, ptr noundef %18)
%20 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %20, ptr %7, align 4
br label %21
21: ; preds = %16, %2
%22 = load i32, ptr @SIGUSR1, align 4
%23 = call i32 @sigismember(ptr noundef %8, i32 noundef %22)
%24 = icmp ne i32 %23, 0
br i1 %24, label %30, label %25
25: ; preds = %21
%26 = load i32, ptr @stderr, align 4
%27 = call ptr (...) @getprogname()
%28 = call i32 @fprintf(i32 noundef %26, ptr noundef @.str.1, ptr noundef %27)
%29 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %29, ptr %7, align 4
br label %30
30: ; preds = %25, %21
%31 = load i32, ptr @SIGUSR1, align 4
%32 = call i64 @sigaction(i32 noundef %31, ptr noundef null, ptr noundef %9)
%33 = icmp slt i64 %32, 0
br i1 %33, label %34, label %39
34: ; preds = %30
%35 = load i32, ptr @stderr, align 4
%36 = call ptr (...) @getprogname()
%37 = call i32 @fprintf(i32 noundef %35, ptr noundef @.str.2, ptr noundef %36)
%38 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %38, ptr %7, align 4
br label %39
39: ; preds = %34, %30
%40 = getelementptr inbounds %struct.sigaction, ptr %9, i32 0, i32 0
%41 = load ptr, ptr %40, align 8
%42 = load i64, ptr @SIG_DFL, align 8
%43 = inttoptr i64 %42 to ptr
%44 = icmp ne ptr %41, %43
br i1 %44, label %45, label %50
45: ; preds = %39
%46 = load i32, ptr @stderr, align 4
%47 = call ptr (...) @getprogname()
%48 = call i32 @fprintf(i32 noundef %46, ptr noundef @.str.3, ptr noundef %47)
%49 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %49, ptr %7, align 4
br label %50
50: ; preds = %45, %39
%51 = load i32, ptr %4, align 4
%52 = icmp sge i32 %51, 2
br i1 %52, label %53, label %85
53: ; preds = %50
%54 = load ptr, ptr %5, align 8
%55 = getelementptr inbounds ptr, ptr %54, i64 1
%56 = load ptr, ptr %55, align 8
%57 = call i32 @atoi(ptr noundef %56)
store i32 %57, ptr %6, align 4
%58 = load i32, ptr %6, align 4
%59 = icmp sgt i32 %58, 2
br i1 %59, label %60, label %84
60: ; preds = %53
%61 = call ptr (...) @getprogname()
%62 = load i32, ptr %6, align 4
%63 = call i32 (ptr, ptr, i32, ...) @printf(ptr noundef @.str.4, ptr noundef %61, i32 noundef %62)
%64 = load i32, ptr %6, align 4
%65 = call i32 @read(i32 noundef %64, ptr noundef %11, i32 noundef 1)
store i32 %65, ptr %10, align 4
%66 = load i32, ptr %10, align 4
%67 = icmp eq i32 %66, 1
br i1 %67, label %68, label %73
68: ; preds = %60
%69 = call ptr (...) @getprogname()
%70 = load i8, ptr %11, align 1
%71 = sext i8 %70 to i32
%72 = call i32 (ptr, ptr, i32, ...) @printf(ptr noundef @.str.5, ptr noundef %69, i32 noundef %71)
br label %83
73: ; preds = %60
%74 = load i32, ptr %10, align 4
%75 = icmp eq i32 %74, -1
br i1 %75, label %76, label %82
76: ; preds = %73
%77 = call ptr (...) @getprogname()
%78 = load i32, ptr %6, align 4
%79 = load i32, ptr @errno, align 4
%80 = call i32 (ptr, ptr, i32, ...) @printf(ptr noundef @.str.6, ptr noundef %77, i32 noundef %78, i32 noundef %79)
%81 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %81, ptr %7, align 4
br label %82
82: ; preds = %76, %73
br label %83
83: ; preds = %82, %68
br label %84
84: ; preds = %83, %53
br label %85
85: ; preds = %84, %50
%86 = load i32, ptr %7, align 4
ret i32 %86
}
declare i32 @sigemptyset(ptr noundef) #1
declare i64 @sigprocmask(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @getprogname(...) #1
declare i32 @sigismember(ptr noundef, i32 noundef) #1
declare i64 @sigaction(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef, ...) #1
declare i32 @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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpid4ta_o7.c"
target datalayout = "e-m:e-p270: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 { ptr }
@EXIT_SUCCESS = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"%s: sigprocmask error\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@SIGUSR1 = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [28 x i8] c"%s: SIGUSR not in procmask\0A\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"%s: sigaction error\0A\00", align 1
@SIG_DFL = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [31 x i8] c"%s: SIGUSR1 action != SIG_DFL\0A\00", align 1
@.str.4 = private unnamed_addr constant [48 x i8] c"%s: waiting for command from parent on pipe %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [32 x i8] c"%s: got command %c from parent\0A\00", align 1
@.str.6 = private unnamed_addr constant [29 x i8] c"%s: %d is no pipe, errno %d\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
%8 = alloca i32, align 4
%9 = alloca %struct.sigaction, align 8
%10 = alloca i32, align 4
%11 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %12, ptr %7, align 4
%13 = call i32 @sigemptyset(ptr noundef %8)
%14 = call i64 @sigprocmask(i32 noundef 0, ptr noundef null, ptr noundef %8)
%15 = icmp slt i64 %14, 0
br i1 %15, label %16, label %21
16: ; preds = %2
%17 = load i32, ptr @stderr, align 4
%18 = call ptr (...) @getprogname()
%19 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str, ptr noundef %18)
%20 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %20, ptr %7, align 4
br label %21
21: ; preds = %16, %2
%22 = load i32, ptr @SIGUSR1, align 4
%23 = call i32 @sigismember(ptr noundef %8, i32 noundef %22)
%24 = icmp ne i32 %23, 0
br i1 %24, label %30, label %25
25: ; preds = %21
%26 = load i32, ptr @stderr, align 4
%27 = call ptr (...) @getprogname()
%28 = call i32 @fprintf(i32 noundef %26, ptr noundef @.str.1, ptr noundef %27)
%29 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %29, ptr %7, align 4
br label %30
30: ; preds = %25, %21
%31 = load i32, ptr @SIGUSR1, align 4
%32 = call i64 @sigaction(i32 noundef %31, ptr noundef null, ptr noundef %9)
%33 = icmp slt i64 %32, 0
br i1 %33, label %34, label %39
34: ; preds = %30
%35 = load i32, ptr @stderr, align 4
%36 = call ptr (...) @getprogname()
%37 = call i32 @fprintf(i32 noundef %35, ptr noundef @.str.2, ptr noundef %36)
%38 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %38, ptr %7, align 4
br label %39
39: ; preds = %34, %30
%40 = getelementptr inbounds %struct.sigaction, ptr %9, i32 0, i32 0
%41 = load ptr, ptr %40, align 8
%42 = load i64, ptr @SIG_DFL, align 8
%43 = inttoptr i64 %42 to ptr
%44 = icmp ne ptr %41, %43
br i1 %44, label %45, label %50
45: ; preds = %39
%46 = load i32, ptr @stderr, align 4
%47 = call ptr (...) @getprogname()
%48 = call i32 @fprintf(i32 noundef %46, ptr noundef @.str.3, ptr noundef %47)
%49 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %49, ptr %7, align 4
br label %50
50: ; preds = %45, %39
%51 = load i32, ptr %4, align 4
%52 = icmp sge i32 %51, 2
br i1 %52, label %53, label %85
53: ; preds = %50
%54 = load ptr, ptr %5, align 8
%55 = getelementptr inbounds ptr, ptr %54, i64 1
%56 = load ptr, ptr %55, align 8
%57 = call i32 @atoi(ptr noundef %56)
store i32 %57, ptr %6, align 4
%58 = load i32, ptr %6, align 4
%59 = icmp sgt i32 %58, 2
br i1 %59, label %60, label %84
60: ; preds = %53
%61 = call ptr (...) @getprogname()
%62 = load i32, ptr %6, align 4
%63 = call i32 (ptr, ptr, i32, ...) @printf(ptr noundef @.str.4, ptr noundef %61, i32 noundef %62)
%64 = load i32, ptr %6, align 4
%65 = call i32 @read(i32 noundef %64, ptr noundef %11, i32 noundef 1)
store i32 %65, ptr %10, align 4
%66 = load i32, ptr %10, align 4
%67 = icmp eq i32 %66, 1
br i1 %67, label %68, label %73
68: ; preds = %60
%69 = call ptr (...) @getprogname()
%70 = load i8, ptr %11, align 1
%71 = sext i8 %70 to i32
%72 = call i32 (ptr, ptr, i32, ...) @printf(ptr noundef @.str.5, ptr noundef %69, i32 noundef %71)
br label %83
73: ; preds = %60
%74 = load i32, ptr %10, align 4
%75 = icmp eq i32 %74, -1
br i1 %75, label %76, label %82
76: ; preds = %73
%77 = call ptr (...) @getprogname()
%78 = load i32, ptr %6, align 4
%79 = load i32, ptr @errno, align 4
%80 = call i32 (ptr, ptr, i32, ...) @printf(ptr noundef @.str.6, ptr noundef %77, i32 noundef %78, i32 noundef %79)
%81 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %81, ptr %7, align 4
br label %82
82: ; preds = %76, %73
br label %83
83: ; preds = %82, %68
br label %84
84: ; preds = %83, %53
br label %85
85: ; preds = %84, %50
%86 = load i32, ptr %7, align 4
ret i32 %86
}
declare i32 @sigemptyset(ptr noundef) #1
declare i64 @sigprocmask(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @getprogname(...) #1
declare i32 @sigismember(ptr noundef, i32 noundef) #1
declare i64 @sigaction(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef, ...) #1
declare i32 @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"}
|
; ModuleID = '/tmp/tmplxhkrv46.c'
source_filename = "/tmp/tmplxhkrv46.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_first_wchar(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [2 x i8], align 1
store ptr %0, ptr %2, align 8
call void @llvm.memset.p0.i64(ptr align 1 %3, i8 0, i64 2, i1 false)
%4 = getelementptr inbounds [2 x i8], ptr %3, i64 0, i64 0
%5 = load ptr, ptr %2, align 8
%6 = call i32 @mbstowcs(ptr noundef %4, ptr noundef %5, i32 noundef 2)
%7 = icmp sge i32 %6, 1
br i1 %7, label %8, label %12
8: ; preds = %1
%9 = getelementptr inbounds [2 x i8], ptr %3, i64 0, i64 0
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
br label %17
12: ; preds = %1
%13 = load ptr, ptr %2, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 0
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
br label %17
17: ; preds = %12, %8
%18 = phi i32 [ %11, %8 ], [ %16, %12 ]
%19 = trunc i32 %18 to i8
ret i8 %19
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @mbstowcs(ptr noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmplxhkrv46.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_first_wchar(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [2 x i8], align 1
store ptr %0, ptr %2, align 8
call void @llvm.memset.p0.i64(ptr align 1 %3, i8 0, i64 2, i1 false)
%4 = getelementptr inbounds [2 x i8], ptr %3, i64 0, i64 0
%5 = load ptr, ptr %2, align 8
%6 = call i32 @mbstowcs(ptr noundef %4, ptr noundef %5, i32 noundef 2)
%7 = icmp sge i32 %6, 1
br i1 %7, label %8, label %12
8: ; preds = %1
%9 = getelementptr inbounds [2 x i8], ptr %3, i64 0, i64 0
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
br label %17
12: ; preds = %1
%13 = load ptr, ptr %2, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 0
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
br label %17
17: ; preds = %12, %8
%18 = phi i32 [ %11, %8 ], [ %16, %12 ]
%19 = trunc i32 %18 to i8
ret i8 %19
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @mbstowcs(ptr noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9hccqf5m.c'
source_filename = "/tmp/tmp9hccqf5m.c"
target datalayout = "e-m:e-p270: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/tmp9hccqf5m.c"
target datalayout = "e-m:e-p270: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/tmpbt43xkm3.c'
source_filename = "/tmp/tmpbt43xkm3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ft_strjoin(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 i32, align 4
%8 = 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
%9 = load ptr, ptr %4, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %14
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %15, label %14
14: ; preds = %11, %2
store ptr null, ptr %3, align 8
br label %80
15: ; preds = %11
%16 = load ptr, ptr %4, align 8
%17 = call i32 @ft_strlen(ptr noundef %16)
%18 = load ptr, ptr %5, align 8
%19 = call i32 @ft_strlen(ptr noundef %18)
%20 = add nsw i32 %17, %19
%21 = add nsw i32 %20, 1
%22 = sext i32 %21 to i64
%23 = mul i64 8, %22
%24 = trunc i64 %23 to i32
%25 = call ptr @malloc(i32 noundef %24)
store ptr %25, ptr %6, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %28, label %27
27: ; preds = %15
store ptr null, ptr %3, align 8
br label %80
28: ; preds = %15
br label %29
29: ; preds = %36, %28
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %7, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %30, i64 %32
%34 = load i8, ptr %33, align 1
%35 = icmp ne i8 %34, 0
br i1 %35, label %36, label %48
36: ; preds = %29
%37 = load ptr, ptr %4, align 8
%38 = load i32, ptr %7, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %37, i64 %39
%41 = load i8, ptr %40, align 1
%42 = load ptr, ptr %6, align 8
%43 = load i32, ptr %7, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, ptr %42, i64 %44
store i8 %41, ptr %45, align 1
%46 = load i32, ptr %7, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %7, align 4
br label %29, !llvm.loop !6
48: ; preds = %29
%49 = load i32, ptr %7, align 4
store i32 %49, ptr %8, align 4
store i32 0, ptr %7, align 4
br label %50
50: ; preds = %57, %48
%51 = load ptr, ptr %5, align 8
%52 = load i32, ptr %7, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %51, i64 %53
%55 = load i8, ptr %54, align 1
%56 = icmp ne i8 %55, 0
br i1 %56, label %57, label %71
57: ; preds = %50
%58 = load ptr, ptr %5, align 8
%59 = load i32, ptr %7, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i8, ptr %58, i64 %60
%62 = load i8, ptr %61, align 1
%63 = load ptr, ptr %6, align 8
%64 = load i32, ptr %8, align 4
%65 = load i32, ptr %7, align 4
%66 = add nsw i32 %64, %65
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8, ptr %63, i64 %67
store i8 %62, ptr %68, align 1
%69 = load i32, ptr %7, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %7, align 4
br label %50, !llvm.loop !8
71: ; preds = %50
%72 = load ptr, ptr %6, align 8
%73 = load i32, ptr %7, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %7, align 4
%75 = load i32, ptr %8, align 4
%76 = add nsw i32 %73, %75
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8, ptr %72, i64 %77
store i8 0, ptr %78, align 1
%79 = load ptr, ptr %6, align 8
store ptr %79, ptr %3, align 8
br label %80
80: ; preds = %71, %27, %14
%81 = load ptr, ptr %3, align 8
ret ptr %81
}
declare ptr @malloc(i32 noundef) #1
declare i32 @ft_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/tmpbt43xkm3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ft_strjoin(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 i32, align 4
%8 = 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
%9 = load ptr, ptr %4, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %14
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %15, label %14
14: ; preds = %11, %2
store ptr null, ptr %3, align 8
br label %90
15: ; preds = %11
%16 = load ptr, ptr %4, align 8
%17 = call i32 @ft_strlen(ptr noundef %16)
%18 = load ptr, ptr %5, align 8
%19 = call i32 @ft_strlen(ptr noundef %18)
%20 = add nsw i32 %17, %19
%21 = add nsw i32 %20, 1
%22 = sext i32 %21 to i64
%23 = mul i64 8, %22
%24 = trunc i64 %23 to i32
%25 = call ptr @malloc(i32 noundef %24)
store ptr %25, ptr %6, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %28, label %27
27: ; preds = %15
store ptr null, ptr %3, align 8
br label %90
28: ; preds = %15
%29 = load ptr, ptr %4, align 8
%30 = load i32, ptr %7, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i8, ptr %32, align 1
%34 = icmp ne i8 %33, 0
br i1 %34, label %.lr.ph, label %53
.lr.ph: ; preds = %28
br label %35
35: ; preds = %.lr.ph, %35
%36 = load ptr, ptr %4, align 8
%37 = load i32, ptr %7, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
%40 = load i8, ptr %39, align 1
%41 = load ptr, ptr %6, align 8
%42 = load i32, ptr %7, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
store i8 %40, ptr %44, align 1
%45 = load i32, ptr %7, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %7, align 4
%47 = load ptr, ptr %4, align 8
%48 = load i32, ptr %7, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, ptr %47, i64 %49
%51 = load i8, ptr %50, align 1
%52 = icmp ne i8 %51, 0
br i1 %52, label %35, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %53
53: ; preds = %._crit_edge, %28
%54 = load i32, ptr %7, align 4
store i32 %54, ptr %8, align 4
store i32 0, ptr %7, align 4
%55 = load ptr, ptr %5, align 8
%56 = load i32, ptr %7, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8, ptr %55, i64 %57
%59 = load i8, ptr %58, align 1
%60 = icmp ne i8 %59, 0
br i1 %60, label %.lr.ph2, label %81
.lr.ph2: ; preds = %53
br label %61
61: ; preds = %.lr.ph2, %61
%62 = load ptr, ptr %5, align 8
%63 = load i32, ptr %7, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i8, ptr %62, i64 %64
%66 = load i8, ptr %65, align 1
%67 = load ptr, ptr %6, align 8
%68 = load i32, ptr %8, align 4
%69 = load i32, ptr %7, align 4
%70 = add nsw i32 %68, %69
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i8, ptr %67, i64 %71
store i8 %66, ptr %72, align 1
%73 = load i32, ptr %7, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %7, align 4
%75 = load ptr, ptr %5, align 8
%76 = load i32, ptr %7, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8, ptr %75, i64 %77
%79 = load i8, ptr %78, align 1
%80 = icmp ne i8 %79, 0
br i1 %80, label %61, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %61
br label %81
81: ; preds = %._crit_edge3, %53
%82 = load ptr, ptr %6, align 8
%83 = load i32, ptr %7, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %7, align 4
%85 = load i32, ptr %8, align 4
%86 = add nsw i32 %83, %85
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i8, ptr %82, i64 %87
store i8 0, ptr %88, align 1
%89 = load ptr, ptr %6, align 8
store ptr %89, ptr %3, align 8
br label %90
90: ; preds = %81, %27, %14
%91 = load ptr, ptr %3, align 8
ret ptr %91
}
declare ptr @malloc(i32 noundef) #1
declare i32 @ft_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/tmpyly3anh6.c'
source_filename = "/tmp/tmpyly3anh6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lfind(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %8, align 8
%14 = load i64, ptr %9, align 8
%15 = load ptr, ptr %10, align 8
%16 = call ptr @lwork(ptr noundef %11, ptr noundef %12, ptr noundef %13, i64 noundef %14, ptr noundef %15, i32 noundef 0)
ret ptr %16
}
declare ptr @lwork(ptr noundef, ptr noundef, ptr noundef, i64 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/tmpyly3anh6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lfind(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %8, align 8
%14 = load i64, ptr %9, align 8
%15 = load ptr, ptr %10, align 8
%16 = call ptr @lwork(ptr noundef %11, ptr noundef %12, ptr noundef %13, i64 noundef %14, ptr noundef %15, i32 noundef 0)
ret ptr %16
}
declare ptr @lwork(ptr noundef, ptr noundef, ptr noundef, i64 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/tmp_e4yzkym.c'
source_filename = "/tmp/tmp_e4yzkym.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dup2(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = call i64 @smbw_fd(i32 noundef %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load i32, ptr %5, align 4
%11 = call i32 @close(i32 noundef %10)
br label %12
12: ; preds = %9, %2
%13 = load i32, ptr %4, align 4
%14 = call i64 @smbw_fd(i32 noundef %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %20
16: ; preds = %12
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %5, align 4
%19 = call i32 @smbw_dup2(i32 noundef %17, i32 noundef %18)
store i32 %19, ptr %3, align 4
br label %24
20: ; preds = %12
%21 = load i32, ptr %4, align 4
%22 = load i32, ptr %5, align 4
%23 = call i32 @real_dup2(i32 noundef %21, i32 noundef %22)
store i32 %23, ptr %3, align 4
br label %24
24: ; preds = %20, %16
%25 = load i32, ptr %3, align 4
ret i32 %25
}
declare i64 @smbw_fd(i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @smbw_dup2(i32 noundef, i32 noundef) #1
declare i32 @real_dup2(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/tmp_e4yzkym.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dup2(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = call i64 @smbw_fd(i32 noundef %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load i32, ptr %5, align 4
%11 = call i32 @close(i32 noundef %10)
br label %12
12: ; preds = %9, %2
%13 = load i32, ptr %4, align 4
%14 = call i64 @smbw_fd(i32 noundef %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %20
16: ; preds = %12
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %5, align 4
%19 = call i32 @smbw_dup2(i32 noundef %17, i32 noundef %18)
store i32 %19, ptr %3, align 4
br label %24
20: ; preds = %12
%21 = load i32, ptr %4, align 4
%22 = load i32, ptr %5, align 4
%23 = call i32 @real_dup2(i32 noundef %21, i32 noundef %22)
store i32 %23, ptr %3, align 4
br label %24
24: ; preds = %20, %16
%25 = load i32, ptr %3, align 4
ret i32 %25
}
declare i64 @smbw_fd(i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @smbw_dup2(i32 noundef, i32 noundef) #1
declare i32 @real_dup2(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/tmp6eijbkp1.c'
source_filename = "/tmp/tmp6eijbkp1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @prb_insert(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 = load ptr, ptr %4, align 8
%8 = call ptr @prb_probe(ptr noundef %6, ptr noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %16, label %11
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = load ptr, ptr %12, align 8
%14 = load ptr, ptr %4, align 8
%15 = icmp eq ptr %13, %14
br i1 %15, label %16, label %17
16: ; preds = %11, %2
br label %20
17: ; preds = %11
%18 = load ptr, ptr %5, align 8
%19 = load ptr, ptr %18, align 8
br label %20
20: ; preds = %17, %16
%21 = phi ptr [ null, %16 ], [ %19, %17 ]
ret ptr %21
}
declare ptr @prb_probe(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/tmp6eijbkp1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @prb_insert(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 = load ptr, ptr %4, align 8
%8 = call ptr @prb_probe(ptr noundef %6, ptr noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %16, label %11
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = load ptr, ptr %12, align 8
%14 = load ptr, ptr %4, align 8
%15 = icmp eq ptr %13, %14
br i1 %15, label %16, label %17
16: ; preds = %11, %2
br label %20
17: ; preds = %11
%18 = load ptr, ptr %5, align 8
%19 = load ptr, ptr %18, align 8
br label %20
20: ; preds = %17, %16
%21 = phi ptr [ null, %16 ], [ %19, %17 ]
ret ptr %21
}
declare ptr @prb_probe(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/tmpb8ek6ks7.c'
source_filename = "/tmp/tmpb8ek6ks7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nvme_reset_controller(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 @nvme_verify_chr(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 %11
9: ; preds = %1
%10 = load i32, ptr %4, align 4
store i32 %10, ptr %2, align 4
br label %15
11: ; preds = %1
%12 = load i32, ptr %3, align 4
%13 = call i32 @_IO(i8 noundef signext 78, i32 noundef 68)
%14 = call i32 @ioctl(i32 noundef %12, i32 noundef %13)
store i32 %14, ptr %2, align 4
br label %15
15: ; preds = %11, %9
%16 = load i32, ptr %2, align 4
ret i32 %16
}
declare i32 @nvme_verify_chr(i32 noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef) #1
declare i32 @_IO(i8 noundef signext, 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/tmpb8ek6ks7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nvme_reset_controller(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 @nvme_verify_chr(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 %11
9: ; preds = %1
%10 = load i32, ptr %4, align 4
store i32 %10, ptr %2, align 4
br label %15
11: ; preds = %1
%12 = load i32, ptr %3, align 4
%13 = call i32 @_IO(i8 noundef signext 78, i32 noundef 68)
%14 = call i32 @ioctl(i32 noundef %12, i32 noundef %13)
store i32 %14, ptr %2, align 4
br label %15
15: ; preds = %11, %9
%16 = load i32, ptr %2, align 4
ret i32 %16
}
declare i32 @nvme_verify_chr(i32 noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef) #1
declare i32 @_IO(i8 noundef signext, 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/tmpbw_sfdnx.c'
source_filename = "/tmp/tmpbw_sfdnx.c"
target datalayout = "e-m:e-p270: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/tmpbw_sfdnx.c"
target datalayout = "e-m:e-p270: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/tmp39o49_59.c'
source_filename = "/tmp/tmp39o49_59.c"
target datalayout = "e-m:e-p270: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/tmp39o49_59.c"
target datalayout = "e-m:e-p270: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/tmps70kx8_k.c'
source_filename = "/tmp/tmps70kx8_k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmps70kx8_k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2xex2860.c'
source_filename = "/tmp/tmp2xex2860.c"
target datalayout = "e-m:e-p270: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
@STDOUT_FILENO = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2xex2860.c"
target datalayout = "e-m:e-p270: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
@STDOUT_FILENO = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgjscb6ca.c'
source_filename = "/tmp/tmpgjscb6ca.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINTR = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
@EAGAIN = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fullRead(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %10
10: ; preds = %42, %34, %3
%11 = load i32, ptr %8, align 4
%12 = load i32, ptr %7, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %46
14: ; preds = %10
%15 = load i32, ptr %5, align 4
%16 = load ptr, ptr %6, align 8
%17 = load i32, ptr %8, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i32, ptr %7, align 4
%21 = load i32, ptr %8, align 4
%22 = sub nsw i32 %20, %21
%23 = call i32 @read(i32 noundef %15, ptr noundef %19, i32 noundef %22)
store i32 %23, ptr %9, align 4
%24 = load i32, ptr %9, align 4
%25 = icmp slt i32 %24, 0
br i1 %25, label %26, label %36
26: ; preds = %14
%27 = load i64, ptr @EINTR, align 8
%28 = load i64, ptr @errno, align 8
%29 = icmp eq i64 %27, %28
br i1 %29, label %34, label %30
30: ; preds = %26
%31 = load i64, ptr @EAGAIN, align 8
%32 = load i64, ptr @errno, align 8
%33 = icmp eq i64 %31, %32
br i1 %33, label %34, label %35
34: ; preds = %30, %26
br label %10, !llvm.loop !6
35: ; preds = %30
store i32 -1, ptr %4, align 4
br label %48
36: ; preds = %14
%37 = load i32, ptr %9, align 4
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = load i32, ptr %8, align 4
store i32 %40, ptr %4, align 4
br label %48
41: ; preds = %36
br label %42
42: ; preds = %41
%43 = load i32, ptr %9, align 4
%44 = load i32, ptr %8, align 4
%45 = add nsw i32 %44, %43
store i32 %45, ptr %8, align 4
br label %10, !llvm.loop !6
46: ; preds = %10
%47 = load i32, ptr %8, align 4
store i32 %47, ptr %4, align 4
br label %48
48: ; preds = %46, %39, %35
%49 = load i32, ptr %4, align 4
ret i32 %49
}
declare i32 @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/tmpgjscb6ca.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINTR = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
@EAGAIN = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fullRead(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
%10 = load i32, ptr %8, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph, label %48
.lr.ph: ; preds = %3
br label %13
13: ; preds = %.lr.ph, %.backedge
%14 = load i32, ptr %5, align 4
%15 = load ptr, ptr %6, align 8
%16 = load i32, ptr %8, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %8, align 4
%21 = sub nsw i32 %19, %20
%22 = call i32 @read(i32 noundef %14, ptr noundef %18, i32 noundef %21)
store i32 %22, ptr %9, align 4
%23 = load i32, ptr %9, align 4
%24 = icmp slt i32 %23, 0
br i1 %24, label %25, label %38
25: ; preds = %13
%26 = load i64, ptr @EINTR, align 8
%27 = load i64, ptr @errno, align 8
%28 = icmp eq i64 %26, %27
br i1 %28, label %33, label %29
29: ; preds = %25
%30 = load i64, ptr @EAGAIN, align 8
%31 = load i64, ptr @errno, align 8
%32 = icmp eq i64 %30, %31
br i1 %32, label %33, label %37
33: ; preds = %29, %25
br label %.backedge
.backedge: ; preds = %33, %44
%34 = load i32, ptr %8, align 4
%35 = load i32, ptr %7, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %13, label %._crit_edge, !llvm.loop !6
37: ; preds = %29
store i32 -1, ptr %4, align 4
br label %50
38: ; preds = %13
%39 = load i32, ptr %9, align 4
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %38
%42 = load i32, ptr %8, align 4
store i32 %42, ptr %4, align 4
br label %50
43: ; preds = %38
br label %44
44: ; preds = %43
%45 = load i32, ptr %9, align 4
%46 = load i32, ptr %8, align 4
%47 = add nsw i32 %46, %45
store i32 %47, ptr %8, align 4
br label %.backedge
._crit_edge: ; preds = %.backedge
br label %48
48: ; preds = %._crit_edge, %3
%49 = load i32, ptr %8, align 4
store i32 %49, ptr %4, align 4
br label %50
50: ; preds = %48, %41, %37
%51 = load i32, ptr %4, align 4
ret i32 %51
}
declare i32 @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/tmpak0g_4pm.c'
source_filename = "/tmp/tmpak0g_4pm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i8 0, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @countchar(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i8, align 1
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %5
5: ; preds = %12, %1
%6 = load ptr, ptr %2, align 8
%7 = call signext i8 @fgetc(ptr noundef %6)
store i8 %7, ptr %4, align 1
%8 = sext i8 %7 to i32
%9 = load i8, ptr @EOF, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %8, %10
br i1 %11, label %12, label %15
12: ; preds = %5
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %3, align 4
br label %5, !llvm.loop !6
15: ; preds = %5
%16 = load i32, ptr %3, align 4
ret i32 %16
}
declare signext i8 @fgetc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpak0g_4pm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i8 0, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @countchar(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i8, align 1
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%5 = load ptr, ptr %2, align 8
%6 = call signext i8 @fgetc(ptr noundef %5)
store i8 %6, ptr %4, align 1
%7 = sext i8 %6 to i32
%8 = load i8, ptr @EOF, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %7, %9
br i1 %10, label %.lr.ph, label %20
.lr.ph: ; preds = %1
br label %11
11: ; preds = %.lr.ph, %11
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %3, align 4
%14 = load ptr, ptr %2, align 8
%15 = call signext i8 @fgetc(ptr noundef %14)
store i8 %15, ptr %4, align 1
%16 = sext i8 %15 to i32
%17 = load i8, ptr @EOF, align 1
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %16, %18
br i1 %19, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %20
20: ; preds = %._crit_edge, %1
%21 = load i32, ptr %3, align 4
ret i32 %21
}
declare signext i8 @fgetc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp0ny4nfuz.c'
source_filename = "/tmp/tmp0ny4nfuz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @papif_unlock_(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %5, align 4
%7 = call i32 @PAPI_unlock(i32 noundef %6)
%8 = load ptr, ptr %4, align 8
store i32 %7, ptr %8, align 4
ret void
}
declare i32 @PAPI_unlock(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/tmp0ny4nfuz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @papif_unlock_(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %5, align 4
%7 = call i32 @PAPI_unlock(i32 noundef %6)
%8 = load ptr, ptr %4, align 8
store i32 %7, ptr %8, align 4
ret void
}
declare i32 @PAPI_unlock(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/tmp2zpvpr12.c'
source_filename = "/tmp/tmp2zpvpr12.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%p\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"BAD ARGUMENT\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_wvline(i32 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 ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%8 = load i32, ptr %3, align 4
%9 = call i32 @check_arg_count(i32 noundef %8, i32 noundef 3)
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %12
11: ; preds = %2
br label %42
12: ; preds = %2
%13 = load ptr, ptr %4, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = call i64 @sscanf(ptr noundef %15, ptr noundef @.str, ptr noundef %5)
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %12
%19 = call i32 @report_count(i32 noundef 1)
%20 = call i32 @report_error(ptr noundef @.str.1)
br label %42
21: ; preds = %12
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
store ptr %24, ptr %7, align 8
%25 = load ptr, ptr %4, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 2
%27 = load ptr, ptr %26, align 8
%28 = call i64 @sscanf(ptr noundef %27, ptr noundef @.str.2, ptr noundef %6)
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %33
30: ; preds = %21
%31 = call i32 @report_count(i32 noundef 1)
%32 = call i32 @report_error(ptr noundef @.str.1)
br label %42
33: ; preds = %21
%34 = call i32 @report_count(i32 noundef 1)
%35 = load ptr, ptr %5, align 8
%36 = load ptr, ptr %7, align 8
%37 = getelementptr inbounds i32, ptr %36, i64 0
%38 = load i32, ptr %37, align 4
%39 = load i32, ptr %6, align 4
%40 = call i32 @wvline(ptr noundef %35, i32 noundef %38, i32 noundef %39)
%41 = call i32 @report_return(i32 noundef %40)
br label %42
42: ; preds = %33, %30, %18, %11
ret void
}
declare i32 @check_arg_count(i32 noundef, i32 noundef) #1
declare i64 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @report_count(i32 noundef) #1
declare i32 @report_error(ptr noundef) #1
declare i32 @report_return(i32 noundef) #1
declare i32 @wvline(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/tmp2zpvpr12.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%p\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"BAD ARGUMENT\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_wvline(i32 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 ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%8 = load i32, ptr %3, align 4
%9 = call i32 @check_arg_count(i32 noundef %8, i32 noundef 3)
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %12
11: ; preds = %2
br label %42
12: ; preds = %2
%13 = load ptr, ptr %4, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = call i64 @sscanf(ptr noundef %15, ptr noundef @.str, ptr noundef %5)
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %12
%19 = call i32 @report_count(i32 noundef 1)
%20 = call i32 @report_error(ptr noundef @.str.1)
br label %42
21: ; preds = %12
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
store ptr %24, ptr %7, align 8
%25 = load ptr, ptr %4, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 2
%27 = load ptr, ptr %26, align 8
%28 = call i64 @sscanf(ptr noundef %27, ptr noundef @.str.2, ptr noundef %6)
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %33
30: ; preds = %21
%31 = call i32 @report_count(i32 noundef 1)
%32 = call i32 @report_error(ptr noundef @.str.1)
br label %42
33: ; preds = %21
%34 = call i32 @report_count(i32 noundef 1)
%35 = load ptr, ptr %5, align 8
%36 = load ptr, ptr %7, align 8
%37 = getelementptr inbounds i32, ptr %36, i64 0
%38 = load i32, ptr %37, align 4
%39 = load i32, ptr %6, align 4
%40 = call i32 @wvline(ptr noundef %35, i32 noundef %38, i32 noundef %39)
%41 = call i32 @report_return(i32 noundef %40)
br label %42
42: ; preds = %33, %30, %18, %11
ret void
}
declare i32 @check_arg_count(i32 noundef, i32 noundef) #1
declare i64 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @report_count(i32 noundef) #1
declare i32 @report_error(ptr noundef) #1
declare i32 @report_return(i32 noundef) #1
declare i32 @wvline(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/tmpi2vq5dao.c'
source_filename = "/tmp/tmpi2vq5dao.c"
target datalayout = "e-m:e-p270: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/tmpi2vq5dao.c"
target datalayout = "e-m:e-p270: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/tmpub0h_zva.c'
source_filename = "/tmp/tmpub0h_zva.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"Enter query\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"Found\0A\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"Not Found\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @search(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%8 = load i32, ptr %3, align 4
%9 = srem i32 %8, 9
store i32 %9, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %10
10: ; preds = %24, %1
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %11, 9
br i1 %12, label %13, label %27
13: ; preds = %10
%14 = load ptr, ptr %2, align 8
%15 = load i32, ptr %4, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i32, ptr %14, i64 %16
%18 = load i32, ptr %17, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp eq i32 %18, %19
br i1 %20, label %21, label %23
21: ; preds = %13
%22 = call i32 @printf(ptr noundef @.str.2)
br label %27
23: ; preds = %13
br label %24
24: ; preds = %23
%25 = load i32, ptr %5, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %5, align 4
br label %10, !llvm.loop !6
27: ; preds = %21, %10
%28 = call i32 @printf(ptr noundef @.str.3)
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpub0h_zva.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"Enter query\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"Found\0A\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"Not Found\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @search(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%8 = load i32, ptr %3, align 4
%9 = srem i32 %8, 9
store i32 %9, ptr %4, align 4
store i32 0, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp slt i32 %10, 9
br i1 %11, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %1
br label %12
12: ; preds = %.lr.ph, %23
%13 = load ptr, ptr %2, align 8
%14 = load i32, ptr %4, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32, ptr %13, i64 %15
%17 = load i32, ptr %16, align 4
%18 = load i32, ptr %3, align 4
%19 = icmp eq i32 %17, %18
br i1 %19, label %20, label %22
20: ; preds = %12
%21 = call i32 @printf(ptr noundef @.str.2)
br label %28
22: ; preds = %12
br label %23
23: ; preds = %22
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %5, align 4
%26 = load i32, ptr %5, align 4
%27 = icmp slt i32 %26, 9
br i1 %27, label %12, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %23
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %1
br label %28
28: ; preds = %.loopexit, %20
%29 = call i32 @printf(ptr noundef @.str.3)
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpa6ifhydb.c'
source_filename = "/tmp/tmpa6ifhydb.c"
target datalayout = "e-m:e-p270: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/tmpa6ifhydb.c"
target datalayout = "e-m:e-p270: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/tmpu3zl99_j.c'
source_filename = "/tmp/tmpu3zl99_j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @foo(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @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/tmpu3zl99_j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @foo(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.